/* ============================================================
   OPC 个人站 · 全站样式
   深色科技风 · 蓝→紫渐变主色 · 移动端响应式
   ============================================================ */

/* ---------- 变量与重置 ---------- */
:root {
  --bg: #0d1021;
  --bg-soft: #141830;
  --bg-card: rgba(23, 28, 54, 0.8);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8eaf6;
  --text-dim: #9aa3c7;
  --text-faint: #6b7499;
  --primary: #4f8cff;
  --accent: #8a5cff;
  --gradient: linear-gradient(135deg, #4f8cff 0%, #8a5cff 100%);
  --radius: 14px;
  --radius-sm: 9px;
  --container: 1120px;
  --nav-h: 64px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui,
    -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", Consolas, "Courier New", monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

::selection {
  background: rgba(79, 140, 255, 0.35);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* 渐变文字 */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(13, 16, 33, 0.66);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.5px;
}

.logo:hover {
  color: var(--text);
}

.logo img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
}

.nav .nav-cta {
  background: var(--gradient);
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
}

.nav .nav-cta:hover {
  opacity: 0.88;
  color: #fff;
}

.nav .nav-cta::after {
  display: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero 首屏 ---------- */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  pointer-events: none;
}

.hero::before {
  width: 520px;
  height: 520px;
  background: #2b4ecc;
  top: -160px;
  right: -120px;
}

.hero::after {
  width: 420px;
  height: 420px;
  background: #6a3bd8;
  bottom: -180px;
  left: -140px;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(79, 140, 255, 0.12);
  border: 1px solid rgba(79, 140, 255, 0.35);
  color: #9db9ff;
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 26px;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5ef3a5;
  box-shadow: 0 0 8px #5ef3a5;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-size: clamp(34px, 6vw, 58px);
  font-weight: 800;
  line-height: 1.22;
  margin-bottom: 22px;
  letter-spacing: 1px;
}

.hero-sub {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--text-dim);
  max-width: 640px;
  margin-bottom: 38px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 60px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, opacity 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 6px 24px rgba(94, 84, 255, 0.4);
}

.btn-primary:hover {
  color: #fff;
  opacity: 0.92;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.stat-num {
  font-size: 30px;
  font-weight: 800;
  font-family: var(--mono);
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 2px;
}

/* ---------- 通用 Section ---------- */
.section {
  padding: 90px 0;
  position: relative;
}

.section-alt {
  background: rgba(20, 24, 48, 0.55);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--primary);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: 1px;
}

.section-desc {
  color: var(--text-dim);
  max-width: 620px;
  margin: 14px auto 0;
  font-size: 16px;
}

/* ---------- 我是谁 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text p {
  color: var(--text-dim);
  margin-bottom: 16px;
  font-size: 16px;
}

.about-text strong {
  color: var(--text);
}

.about-text em {
  color: var(--primary);
  font-style: normal;
  font-weight: 600;
}

.about-points {
  display: grid;
  gap: 14px;
}

.point-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.point-icon {
  font-size: 22px;
  line-height: 1.2;
  flex-shrink: 0;
}

.point-card h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.point-card p {
  font-size: 14px;
  color: var(--text-dim);
}

/* ---------- 服务卡片 ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.25s;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 140, 255, 0.45);
  box-shadow: var(--shadow);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  font-size: 34px;
  margin-bottom: 18px;
}

.service-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.service-card > p {
  color: var(--text-dim);
  font-size: 15px;
  margin-bottom: 18px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tags span {
  font-size: 12px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 999px;
}

/* ---------- 痛点 ---------- */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.pain-item {
  display: flex;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: border-color 0.25s;
}

.pain-item:hover {
  border-color: rgba(138, 92, 255, 0.45);
}

.pain-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.pain-item h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.pain-item p {
  font-size: 14px;
  color: var(--text-dim);
}

/* ---------- 工具链 ---------- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.25s, border-color 0.25s;
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 140, 255, 0.45);
}

.tool-logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.tool-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.tool-card p {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.tool-skill {
  display: inline-block;
  font-size: 12px;
  color: #9db9ff;
  background: rgba(79, 140, 255, 0.12);
  border: 1px solid rgba(79, 140, 255, 0.3);
  padding: 4px 12px;
  border-radius: 999px;
}

/* ---------- 流程 ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.process-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  counter-increment: step;
}

.process-step::before {
  content: "0" counter(step);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 12px;
}

.process-step h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 14px;
  color: var(--text-dim);
}

/* ---------- 文章列表 ---------- */
.articles-list {
  display: grid;
  gap: 18px;
}

.article-item {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  color: var(--text);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.article-item:hover {
  transform: translateY(-3px);
  border-color: rgba(79, 140, 255, 0.45);
  box-shadow: var(--shadow);
}

.article-item h3 {
  font-size: 19px;
  margin: 10px 0 8px;
  color: var(--text);
}

.article-item:hover h3 {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.article-item .summary {
  color: var(--text-dim);
  font-size: 14px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-faint);
  flex-wrap: wrap;
}

.article-meta .date {
  font-family: var(--mono);
}

.tag {
  font-size: 12px;
  color: #9db9ff;
  background: rgba(79, 140, 255, 0.12);
  border: 1px solid rgba(79, 140, 255, 0.3);
  padding: 2px 12px;
  border-radius: 999px;
}

.articles-empty {
  text-align: center;
  color: var(--text-faint);
  padding: 60px 0;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* ---------- 文章内容页 ---------- */
.article-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 50px) 24px 40px;
}

.article-head {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.article-head h1 {
  font-size: clamp(26px, 4.5vw, 40px);
  line-height: 1.3;
  margin: 14px 0 16px;
}

.article-content {
  font-size: 16px;
  color: var(--text);
  padding-bottom: 60px;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin: 34px 0 14px;
  line-height: 1.4;
}

.article-content h2 {
  font-size: 26px;
  padding-left: 14px;
  border-left: 4px solid;
  border-image: var(--gradient) 1;
}

.article-content h3 {
  font-size: 20px;
}

.article-content p {
  margin-bottom: 18px;
  color: var(--text-dim);
}

.article-content strong {
  color: var(--text);
}

.article-content a {
  border-bottom: 1px dashed rgba(79, 140, 255, 0.5);
}

.article-content ul,
.article-content ol {
  margin: 0 0 18px 26px;
  color: var(--text-dim);
}

.article-content li {
  margin-bottom: 8px;
}

.article-content blockquote {
  margin: 22px 0;
  padding: 14px 22px;
  background: var(--bg-card);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-dim);
}

.article-content pre {
  background: #0a0d1a;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  overflow-x: auto;
  margin: 22px 0;
  font-size: 14px;
  line-height: 1.6;
}

.article-content code {
  font-family: var(--mono);
  font-size: 0.9em;
}

.article-content p code,
.article-content li code {
  background: rgba(79, 140, 255, 0.14);
  color: #9db9ff;
  padding: 2px 7px;
  border-radius: 5px;
}

.article-content img {
  border-radius: var(--radius-sm);
  margin: 22px auto;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 14px;
}

.article-content th,
.article-content td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
  color: var(--text-dim);
}

.article-content th {
  background: var(--bg-card);
  color: var(--text);
}

.article-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 34px 0;
}

/* ---------- CTA / 联系 ---------- */
.cta-box {
  text-align: center;
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.14), rgba(138, 92, 255, 0.14));
  border: 1px solid rgba(79, 140, 255, 0.3);
  border-radius: var(--radius);
  padding: 64px 32px;
}

.cta-box h2 {
  font-size: clamp(24px, 3.5vw, 34px);
  margin-bottom: 14px;
}

.cta-box p {
  color: var(--text-dim);
  margin-bottom: 30px;
}

.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 34px 0;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--text-faint);
  font-size: 14px;
}

.footer-inner a {
  color: var(--text-dim);
}

.footer-inner a:hover {
  color: var(--primary);
}

/* ---------- 滚动显现动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .about-grid,
  .services-grid,
  .tools-grid,
  .pain-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 64px 0;
  }

  .hero-stats {
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .nav {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(13, 16, 33, 0.97);
    backdrop-filter: blur(14px);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--border);
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    display: block;
    width: 100%;
    padding: 12px 0;
    font-size: 16px;
  }

  .nav a.active::after {
    display: none;
  }

  .nav .nav-cta {
    margin-top: 8px;
    text-align: center;
    justify-content: center;
  }

  .nav-toggle {
    display: flex;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    gap: 24px;
  }

  .stat-num {
    font-size: 24px;
  }

  .article-item {
    padding: 20px;
  }
}

/* ============================================================
   新增：Hero 3D 背景 + 科技风页脚（含 ICP / 网安备案）
   ============================================================ */

/* 全页 3D 背景：fixed 铺满视口，页面内容绘制在画布之上 */
#bg3d {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  pointer-events: none;
  opacity: 0.92;
}

.hero::before,
.hero::after {
  z-index: 0;
}

.hero .container {
  z-index: 2;
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: 56px 0 36px;
  margin-top: 40px;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(ellipse 70% 120% at 50% 0%, rgba(79, 140, 255, 0.08), transparent 70%),
    linear-gradient(180deg, rgba(20, 24, 48, 0.4), transparent 42%);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 5%,
    var(--primary) 35%,
    var(--accent) 65%,
    transparent 95%
  );
  opacity: 0.85;
}

.footer-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, #000 10%, transparent 75%);
  opacity: 0.7;
}

.site-footer .container {
  position: relative;
  z-index: 1;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.footer-brand .logo {
  font-size: 18px;
}

.footer-brand p {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-faint);
  letter-spacing: 0.5px;
}

.footer-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.footer-nav a {
  font-size: 14px;
  color: var(--text-dim);
}

.footer-nav a:hover {
  color: var(--primary);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
  margin-bottom: 20px;
}

.legal-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.6px;
  color: var(--text-faint);
  transition: color 0.2s, text-shadow 0.2s;
}

.legal-link:hover {
  color: #9db9ff;
  text-shadow: 0 0 14px rgba(79, 140, 255, 0.6);
}

.legal-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: #7fa6ff;
  border: 1px solid rgba(79, 140, 255, 0.45);
  border-radius: 4px;
  padding: 1px 5px;
  line-height: 1.4;
}

.legal-sep {
  width: 1px;
  height: 14px;
  background: var(--border);
}

.legal-shield {
  width: 14px;
  height: 14px;
  color: #7188e8;
  flex-shrink: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-faint);
}

.footer-tech {
  font-family: var(--mono);
  letter-spacing: 1.5px;
  color: #4c557c;
}

/* 404 页底部署名 + 备案 */
.nf-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 44px;
}

@media (max-width: 640px) {
  .site-footer {
    padding: 42px 0 28px;
  }

  .footer-top {
    flex-direction: column;
    gap: 18px;
  }

  .footer-legal {
    gap: 12px;
  }

  .footer-legal .legal-sep {
    display: none;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }

  .hero-canvas {
    opacity: 0.75;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer::before {
    opacity: 0.5;
  }
}

/* ============================================================
   新增：全页科幻滚动效果 + 联系区 + 移动端 / iPad 适配
   ============================================================ */

/* 顶部滚动进度条 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 200;
  background: var(--gradient);
  transform-origin: 0 50%;
  transform: scaleX(0);
  box-shadow: 0 0 12px rgba(94, 84, 255, 0.8);
  pointer-events: none;
}

/* SCROLL 下滑指示 */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-faint);
}

.scroll-hint-text {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 4px;
}

.scroll-hint-line {
  width: 1px;
  height: 38px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--primary), transparent);
}

.scroll-hint-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 100%;
  height: 40%;
  background: #9db9ff;
  animation: scrollDrop 1.8s ease-in-out infinite;
}

@keyframes scrollDrop {
  0% { top: -40%; }
  100% { top: 110%; }
}

/* 卡片 3D 倾斜 + 光晕跟随（桌面精确指针） */
.tilt {
  --mx: 50%;
  --my: 50%;
  position: relative;
  will-change: transform;
}

.tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(120, 160, 255, 0.14), transparent 45%);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}

.tilt:hover::after {
  opacity: 1;
}

/* 联系区（微信 / 电话） */
.contact-list {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(13, 16, 33, 0.6);
  border: 1px solid rgba(79, 140, 255, 0.3);
  border-radius: var(--radius);
  padding: 16px 26px;
  color: var(--text);
  cursor: pointer;
  font-family: var(--font);
  text-align: left;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.contact-item:hover {
  border-color: rgba(79, 140, 255, 0.6);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.contact-icon {
  font-size: 24px;
}

.contact-label {
  display: block;
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 2px;
}

.contact-value {
  font-size: 17px;
  font-weight: 600;
  font-family: var(--mono);
}

.contact-value em {
  font-style: normal;
  font-size: 11px;
  color: #7fa6ff;
  margin-left: 6px;
}

/* 页脚公司信息 */
.footer-contact {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 2;
}

.footer-contact .fc-company {
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.fc-copy {
  background: none;
  border: none;
  padding: 0;
  color: #9db9ff;
  font-family: var(--mono);
  font-size: 13px;
  cursor: pointer;
  border-bottom: 1px dashed rgba(79, 140, 255, 0.5);
}

.fc-copy:hover {
  color: #c0d4ff;
}

/* Toast 提示 */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(16px);
  background: rgba(23, 28, 54, 0.92);
  border: 1px solid rgba(79, 140, 255, 0.4);
  color: var(--text);
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 300;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  max-width: calc(100vw - 32px);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%);
}

/* 刘海屏安全区 */
.hero {
  padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 40px);
}

.site-footer {
  padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px));
}

/* iPad（641-1024）：双列布局 */
@media (min-width: 641px) and (max-width: 1024px) {
  .hero {
    min-height: 88vh;
  }

  .services-grid,
  .tools-grid,
  .process-grid,
  .pain-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #bg3d {
    opacity: 0.85;
  }
}

/* 手机：联系卡片纵向排列、画布更通透 */
@media (max-width: 640px) {
  .contact-list {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-item {
    justify-content: flex-start;
  }

  .footer-top {
    gap: 16px;
  }

  #bg3d {
    opacity: 0.7;
  }
}

/* 触屏设备：关闭倾斜光晕 */
@media (hover: none) {
  .tilt::after {
    display: none;
  }

  .tilt {
    will-change: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint-line::after {
    animation: none;
  }
}

/* ============================================================
   微信二维码弹窗
   ============================================================ */
.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
}

.qr-modal.open {
  display: flex;
}

.qr-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 18, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.qr-modal__card {
  position: relative;
  z-index: 1;
  background: rgba(23, 28, 54, 0.96);
  border: 1px solid rgba(79, 140, 255, 0.4);
  border-radius: var(--radius);
  padding: 30px 28px 24px;
  text-align: center;
  max-width: calc(100vw - 48px);
  box-shadow: var(--shadow);
}

.qr-modal__card img {
  width: min(260px, 64vw);
  border-radius: 10px;
  border: 1px solid var(--border);
  margin: 0 auto 16px;
}

.qr-modal__tip {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.qr-modal__close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.qr-modal__close:hover {
  color: var(--text);
}

/* ============================================================
   WorkBuddy 专家认证：卡片徽章 + 证书灯箱
   ============================================================ */
.cert-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: rgba(79, 140, 255, 0.08);
  border: 1px solid rgba(79, 140, 255, 0.35);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 14px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}

.cert-badge:hover {
  border-color: rgba(79, 140, 255, 0.7);
  background: rgba(79, 140, 255, 0.14);
  transform: translateY(-2px);
}

.cert-badge img {
  width: 46px;
  height: 60px;
  object-fit: cover;
  object-position: top;
  border-radius: 6px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.cert-badge__text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}

.cert-badge__text em {
  font-style: normal;
  font-size: 11px;
  font-weight: 400;
  color: #7fa6ff;
}

.cert-figures {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.cert-figures figure {
  width: min(260px, 62vw);
  margin: 0;
}

.cert-figures img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.cert-figures figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-faint);
  font-family: var(--mono);
  letter-spacing: 1px;
}

.qr-modal__card.cert-modal-card {
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}

/* ============================================================
   FAQ 常见问题（SEO / GEO 内容区块）
   ============================================================ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 22px;
  transition: border-color 0.25s;
}

.faq-item[open] {
  border-color: rgba(79, 140, 255, 0.45);
}

.faq-item summary {
  cursor: pointer;
  padding: 14px 28px 14px 0;
  font-size: 16px;
  font-weight: 600;
  list-style: none;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #7fa6ff;
  transition: transform 0.25s;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  color: var(--text-dim);
  font-size: 14px;
  padding-bottom: 16px;
}

/* ============================================================
   移动端溢出修复：长文本断行 + 禁止横向滑动
   ============================================================ */
html {
  overflow-x: hidden;
}

/* 长邮箱 / 电话 / 备案号等等宽文本允许断行 */
.contact-value,
.footer-contact,
.legal-link span,
.article-meta .date {
  overflow-wrap: anywhere;
}

.contact-info {
  min-width: 0;
}

.contact-item {
  max-width: 100%;
}

@media (max-width: 640px) {
  .cta-box {
    padding: 48px 20px;
  }

  .contact-item {
    padding: 14px 18px;
  }

  .contact-value {
    font-size: 15px;
  }

  .footer-contact {
    word-break: break-all;
  }

  .footer-legal {
    padding-left: 0;
    padding-right: 0;
  }

  .footer-bottom {
    overflow-wrap: anywhere;
  }
}

/* ============================================================
   居右悬浮微信二维码
   ============================================================ */
.wx-float {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 250;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wx-float__btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #4f8cff, #8a5cff);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(79, 140, 255, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}

.wx-float__btn:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 26px rgba(138, 92, 255, 0.55);
}

.wx-float__txt {
  font-size: 10px;
  letter-spacing: 1px;
  margin-top: -2px;
}

.wx-float__card {
  position: absolute;
  right: 64px;
  top: 50%;
  width: 220px;
  transform: translateY(-50%) translateX(10px);
  background: rgba(23, 28, 54, 0.97);
  border: 1px solid rgba(79, 140, 255, 0.4);
  border-radius: var(--radius);
  padding: 16px 14px 12px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  box-shadow: var(--shadow);
}

.wx-float.open .wx-float__card,
.wx-float:hover .wx-float__card {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

.wx-float__card img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 10px;
}

.wx-float__card p {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 8px;
}

.wx-float__card strong {
  color: var(--text);
  font-family: var(--mono);
}

/* 触屏设备：仅点击展开，避免悬停误触 */
@media (hover: none) {
  .wx-float:hover .wx-float__card {
    opacity: 0;
    pointer-events: none;
  }
}

@media (max-width: 640px) {
  .wx-float {
    right: 12px;
  }

  .wx-float__btn {
    width: 46px;
    height: 46px;
  }

  .wx-float__card {
    right: 54px;
    width: min(200px, 60vw);
  }
}
