/* =========================================================
   AIGC Lab · 智能生成实验室
   统一公共样式表（全站共享）
   设计原则：可信 / 易懂 / 咨询 / 成交
   手机端优先 · PC完整适配 · 轻量 · 无外部依赖
   ========================================================= */

/* ---------- 设计令牌 ---------- */
:root {
  /* 颜色：浅灰白底 + 深墨字 + 靛蓝紫科技强调色 */
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-dark: #0e1014;
  --bg-dark-2: #15181f;

  --ink: #14151a;
  --ink-2: #3a3f4b;
  --ink-soft: #6b7280;
  --line: #e7e9ee;
  --line-dark: #262b36;

  --accent: #4f46e5;      /* 靛蓝 */
  --accent-2: #7c3aed;    /* 紫 */
  --accent-soft: #eef0fe;
  --ok: #0f9d6b;

  /* 字体 */
  --font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
    "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  /* 间距与圆角 */
  --gap: 16px;
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1160px;

  /* 阴影（克制） */
  --shadow: 0 1px 2px rgba(20, 21, 26, .04), 0 8px 24px rgba(20, 21, 26, .06);
  --shadow-hover: 0 2px 6px rgba(20, 21, 26, .06), 0 14px 36px rgba(20, 21, 26, .10);
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
}
/* 全站统一渐变氛围：首页 hero 同款光斑 + 极简网格，固定顶部、往下渐隐 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(20, 21, 26, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 21, 26, .045) 1px, transparent 1px),
    radial-gradient(900px 520px at 82% -8%, rgba(124, 58, 237, .12), transparent 60%),
    radial-gradient(720px 460px at 4% 8%, rgba(79, 70, 229, .12), transparent 55%),
    radial-gradient(620px 420px at 50% 0%, rgba(124, 58, 237, .06), transparent 60%);
  background-size: 48px 48px, 48px 48px, 100% 100%, 100% 100%, 100% 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 20%, transparent 52%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 20%, transparent 52%);
}
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(28px, 5vw, 46px); letter-spacing: -.01em; }
h2 { font-size: clamp(24px, 3.6vw, 36px); letter-spacing: -.01em; }
h3 { font-size: clamp(18px, 2.2vw, 22px); }
p { margin: 0 0 1em; color: var(--ink-2); }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin: .35em 0; color: var(--ink-2); }
small { font-size: 13px; color: var(--ink-soft); }

/* ---------- 布局容器 ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--bg-dark); color: #e8eaef; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p, .section--dark li { color: #b9bec9; }

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.section-head { max-width: 760px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section-head--left { margin-left: 0; text-align: left; }
.lead { font-size: clamp(16px, 2vw, 19px); color: var(--ink-soft); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: all .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #4338ca; transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.section--dark .btn-ghost { color: #fff; border-color: var(--line-dark); }
.section--dark .btn-ghost:hover { border-color: #fff; }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; flex-direction: row; align-items: center; gap: 10px; line-height: 1; }
.brand-mark { width: 44px; height: 44px; border-radius: 12px; flex: none; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand .logo { font-size: 22px; letter-spacing: .04em; color: var(--ink); }
.brand .logo-a { font-weight: 900; }
.brand .logo-b { font-weight: 600; letter-spacing: .02em; }
.brand .logo-sub { display: flex; align-items: baseline; gap: 7px; margin-top: 3px; flex-wrap: wrap; }
.brand .logo-domain { font-size: 11.5px; color: var(--accent); font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace; letter-spacing: .01em; font-weight: 600; }
.brand .logo-cn { font-size: 13px; color: var(--ink-soft); }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 16px; color: var(--ink-2); font-weight: 500; transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; transition: .2s; }

/* ---------- 移动端抽屉 ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed; inset: 64px 0 auto 0; background: #fff;
    border-bottom: 1px solid var(--line); padding: 12px 20px 22px;
    transform: translateY(-120%); transition: transform .25s ease; z-index: 49;
    box-shadow: var(--shadow);
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-links { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-links a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-cta { margin: 14px 0 0; }
  .nav-cta .btn { width: 100%; }
  /* 品牌区手机端与 PC 保持一致：不折行、不隐藏，仅按比例微缩 */
  .brand-mark { width: 38px; height: 38px; border-radius: 10px; }
  .brand .logo { font-size: 20px; }
  .brand .logo-sub { flex-wrap: nowrap; white-space: nowrap; }
  .brand .logo-domain, .brand .logo-cn { font-size: 12px; }
}
@media (max-width: 520px) {
  /* 超窄屏进一步微缩，保持与 PC 同布局不折行 */
  .brand-mark { width: 34px; height: 34px; border-radius: 9px; }
  .brand .logo { font-size: 18px; }
  .brand .logo-domain, .brand .logo-cn { font-size: 11px; }
}

/* ---------- HERO ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(64px, 10vw, 120px) 0 clamp(56px, 8vw, 96px); }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(124, 58, 237, .10), transparent 60%),
    radial-gradient(700px 420px at 8% 10%, rgba(79, 70, 229, .10), transparent 55%);
}
/* 极简网格背景（CSS only，轻量） */
.hero-grid {
  position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image:
    linear-gradient(to right, rgba(20,21,26,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20,21,26,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000, transparent 75%);
          mask-image: radial-gradient(circle at 50% 30%, #000, transparent 75%);
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; }
.hero h1 { font-size: clamp(32px, 6vw, 56px); }
.hero .sub { font-size: clamp(17px, 2.4vw, 21px); color: var(--ink-2); font-weight: 600; }
.hero .desc { font-size: 16px; color: var(--ink-soft); max-width: 640px; }
.hero .trust { margin-top: 22px; font-size: 14px; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 8px 16px; }
.hero .trust span::before { content: "✓"; color: var(--ok); margin-right: 6px; font-weight: 700; }
.hero .btn-row { margin-top: 28px; }

/* ---------- 卡片 / 网格 ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: #d7dae2; }
.card--dark { background: var(--bg-dark-2); border-color: var(--line-dark); color: #d7dae2; }
.card--dark h3 { color: #fff; }
.card .num { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .08em; }
.card h3 { margin: 10px 0 8px; }
.card p { margin: 0; font-size: 15px; }

/* 痛点卡 */
.pain { border-left: 3px solid var(--line); }
.pain:hover { border-left-color: var(--accent); }

/* 流程步骤 */
.steps { display: grid; gap: 18px; counter-reset: step; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.step .idx { font-size: 30px; font-weight: 800; color: var(--accent-soft); line-height: 1; }
.step h3 { margin: 12px 0 6px; font-size: 18px; }
.step p { margin: 0; font-size: 14px; }

/* 流程图（箭头） */
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.flow .node {
  background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 14px;
  padding: 10px 14px; border-radius: 10px;
}
.flow .arrow { color: var(--ink-soft); font-weight: 700; }

/* 产品卡 */
.product { display: flex; flex-direction: column; height: 100%; }
.product .price { font-size: 14px; color: var(--ink-soft); margin: 6px 0 16px; }
.product ul { font-size: 14px; flex: 1; }
.product .btn { margin-top: 18px; width: 100%; }

/* 价格页大号醒目价格（仅作用于 .price-xl，不污染首页 .price） */
.product .price-xl { display: flex; flex-direction: column; margin: 12px 0 18px; }
.price-prefix { font-size: .8rem; color: var(--ink-soft); letter-spacing: .05em; margin-bottom: 4px; font-weight: 500; }
.price-num { font-size: 2.6rem; font-weight: 800; color: var(--accent); line-height: 1.05; font-variant-numeric: tabular-nums; }
.price-unit { font-size: 1rem; font-weight: 600; color: var(--ink-soft); margin-left: 3px; }
@media (max-width: 600px) { .price-num { font-size: 2.1rem; } }

/* 标签 */
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.tag--warn { background: #fff4e5; color: #b25e09; }
.tag--muted { background: var(--bg-soft); color: var(--ink-soft); }
.ticks { list-style: none; padding: 0; margin: 10px 0 0; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--ok, #1f9d6b); font-weight: 700; }

/* 案例 / 实验列表 */
.entry { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; }
.entry + .entry { margin-top: 18px; }
.entry .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.entry h3 { margin: 0 0 4px; }
.entry .summary { font-size: 14px; margin: 0; }

/* 数据条 */
.metric-row { display: flex; flex-wrap: wrap; gap: 28px; }
.metric { min-width: 120px; }
.metric .v { font-size: clamp(28px, 4vw, 38px); font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.metric .k { font-size: 13px; color: var(--ink-soft); }

/* 判定徽章（实验室） */
.verdict { font-weight: 700; padding: 6px 14px; border-radius: 999px; display: inline-block; font-size: 14px; }
.verdict--go { background: #e6f7f0; color: var(--ok); }
.verdict--watch { background: #fff4e5; color: #b25e09; }
.verdict--no { background: #fdeaea; color: #c0392b; }

/* ---------- 表单 ---------- */
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field .req { color: #c0392b; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 15px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 13px; color: var(--ink-soft); }
.form-status { margin-top: 16px; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #e6f7f0; color: var(--ok); }
.form-status.warn { background: #fff4e5; color: #b25e09; }

/* ---------- 联系信息块（占位） ---------- */
.contact-cards { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .contact-cards { grid-template-columns: 1fr; } }
.contact-card { border: 1px dashed var(--line); border-radius: var(--radius); padding: 22px; text-align: center; }
.contact-card .ic { font-size: 24px; }
.contact-card .k { font-weight: 600; margin: 8px 0 4px; }
.contact-card .v { color: var(--ink-soft); font-size: 14px; }
.placeholder-flag { display: inline-block; margin-top: 10px; font-size: 11px; color: #b25e09; background: #fff4e5; padding: 3px 8px; border-radius: 6px; }
.qr-box { width: 120px; height: 120px; margin: 10px auto; border: 1px dashed var(--line); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--ink-soft); font-size: 12px; text-align: center; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--bg-dark); color: #b9bec9; padding: 56px 0 28px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .logo { font-size: 20px; font-weight: 800; color: #fff; }
.site-footer .logo-en { font-size: 11px; color: #8b90a0; margin-top: 6px; letter-spacing: .14em; }
.site-footer h4 { color: #fff; font-size: 14px; margin: 0 0 14px; letter-spacing: .04em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 8px 0; }
.site-footer a { color: #b9bec9; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--line-dark); margin-top: 36px; padding-top: 20px; font-size: 13px; color: #8b90a0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* ---------- 面包屑 ---------- */
.crumb { font-size: 13px; color: var(--ink-soft); padding: 18px 0 0; }
.crumb a:hover { color: var(--accent); }

/* ---------- 内部页头 ---------- */
.page-hero { padding: clamp(40px, 7vw, 72px) 0 clamp(28px, 4vw, 44px); }
.page-hero h1 { max-width: 880px; }
.page-hero .lead { max-width: 720px; }

/* ---------- 提示框 ---------- */
.notice { border: 1px solid var(--line); background: var(--bg-soft); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 14px; color: var(--ink-2); }
.notice--accent { border-color: var(--accent-soft); background: var(--accent-soft); }

/* ---------- 滚动入场动画（轻量，可降级） ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 404 ---------- */
.err404 { text-align: center; padding: 80px 0; }
.err404 .code { font-size: clamp(72px, 18vw, 160px); font-weight: 800; color: var(--accent-soft); line-height: 1; }

/* ---------- 工具类 ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 36px; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.maxw { max-width: 760px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }


/* ---------- 文章 / 洞察页 ---------- */
.post-body { max-width: 760px; margin: 0 auto; }
.post-body h2 { margin-top: 1.8em; font-size: clamp(20px, 2.6vw, 26px); }
.post-body h3 { margin-top: 1.4em; }
.post-body p, .post-body li { color: var(--ink-2); }
.post-body blockquote {
  margin: 1.3em 0; padding: 10px 0 10px 18px;
  border-left: 3px solid var(--accent); color: var(--ink); font-size: 17px; background: transparent;
}
.post-body blockquote p { color: var(--ink); }
.post-meta { font-size: 13px; color: var(--ink-soft); margin-top: 14px; }
.post-meta a { color: var(--accent); }
.related-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .related-grid { grid-template-columns: 1fr; } }
.related-card { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; transition: transform .18s, box-shadow .18s, border-color .18s; }
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: #d7dae2; }
.related-card .cat { font-size: 12px; font-weight: 600; color: var(--accent); }
.related-card h3 { font-size: 17px; margin: 8px 0 0; }
.related-card .more { margin-top: 12px; font-size: 13px; color: var(--ink-soft); }
.post-card { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; transition: transform .18s, box-shadow .18s, border-color .18s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: #d7dae2; }
.post-card .cat { font-size: 12px; font-weight: 600; color: var(--accent); }
.post-card h3 { font-size: 18px; margin: 8px 0 8px; }
.post-card p { margin: 0; font-size: 14px; }

/* ---------- 价格页 FAQ ---------- */
.faq-list { display: grid; gap: 14px; max-width: 860px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: #fff; transition: border-color .18s, box-shadow .18s; }
.faq-item:hover { border-color: #d7dae2; box-shadow: var(--shadow-hover); }
.faq-item h3 { margin: 0 0 8px; font-size: 17px; color: var(--ink); }
.faq-item p { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.7; }
