/* ═══════════════════════════════════════════════════════════════
   墨子智能 设计系统 v4 —— 「墨 · 纸」前沿克制美学。
   语言：暖纸底 + 近黑墨字 + 大量留白 + 强排版 + 单一克制的印泥红(朱砂)点睛。
   参照：OpenAI 的克制、Anthropic 的暖度、NVIDIA/SpaceX 的confident留白。
   目标观感：成熟、有格局、东方现代——非通用 AI 紫蓝渐变。
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* 墨 / 纸 */
  --paper:   #fbfaf7;   /* 暖白基底 */
  --paper-2: #f4f1ea;   /* 柔和分区 */
  --white:   #ffffff;
  --ink:     #1a1a18;   /* 近黑墨——标题/主按钮 */
  --ink-2:   #45443e;   /* 正文 */
  --ink-3:   #6f6e65;   /* 次要 */
  --ink-4:   #9c9a8f;   /* 弱 */
  --line:    #e6e2d7;   /* 暖描边 */
  --line-2:  #efece3;
  /* 印泥红（朱砂）——唯一克制点睛色 */
  --seal:    #c2402b;
  --seal-2:  #a8331f;
  --seal-soft:#f6e7e2;
  --ok:      #2f7d5b;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(26,26,24,.05), 0 2px 8px rgba(26,26,24,.04);
  --shadow: 0 6px 24px rgba(26,26,24,.07);
  --shadow-lg: 0 24px 70px rgba(26,26,24,.14);

  --maxw: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Songti SC", "Noto Serif SC", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink-2); background: var(--paper); line-height: 1.7; -webkit-font-smoothing: antialiased; font-size: 16.5px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: rgba(194, 64, 43, .18); }
:focus-visible { outline: 2px solid var(--seal); outline-offset: 2px; border-radius: 6px; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.1; letter-spacing: -.02em; font-weight: 680; }
.eyebrow { display: inline-block; font-weight: 650; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--seal); }
.lead { font-size: 19px; color: var(--ink-3); line-height: 1.65; }
.muted { color: var(--ink-4); }
.center { text-align: center; }
/* 朱砂→梅子渐变字——与配图的印泥红点睛同源，全站唯一的彩色语汇。 */
.grad-text { background: linear-gradient(105deg, var(--seal) 0%, #9a3a5f 92%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── 导航 ── */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(251,250,247,.82); backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 38px; height: 68px; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); letter-spacing: -.02em; }
.logo .mark { width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-size: 16px; font-weight: 800; font-family: var(--serif); }
.nav-links { display: flex; gap: 30px; }
.nav-links a { position: relative; color: var(--ink-2); font-size: 15px; font-weight: 500; padding: 4px 0; transition: color .15s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -1px; height: 2px; border-radius: 2px; background: var(--seal); transition: right .2s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-spacer { flex: 1; }
.nav-cta { display: flex; align-items: center; gap: 16px; }

/* ── 按钮 ── */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; padding: 10px 20px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; transition: all .16s; white-space: nowrap; }
.btn:active { transform: translateY(0) scale(.99); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #000; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(26, 26, 24, .18); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-text { color: var(--ink-2); font-weight: 600; }
.btn-text:hover { color: var(--seal); }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 11px; }
.on-dark .btn-ghost { background: transparent; color: var(--paper); border-color: rgba(255,255,255,.28); }
.on-dark .btn-ghost:hover { border-color: rgba(255,255,255,.7); }
.on-dark .btn-primary { background: var(--paper); color: var(--ink); }
.on-dark .btn-primary:hover { background: #fff; }

/* ── Hero（浅纸 · 大标题 · 克制）── */
.hero { position: relative; overflow: hidden; padding: 96px 0 88px; background: var(--paper); color: var(--ink-2); }
.hero.on-dark { color: var(--ink-2); }
.hero-grid { display: none; }
.hero-orb { position: absolute; right: -4%; top: 50%; transform: translateY(-50%); width: 560px; max-width: 46%; opacity: .9; pointer-events: none; border-radius: var(--radius-lg); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: 60px; margin: 22px 0 22px; color: var(--ink); letter-spacing: -.035em; font-weight: 700; }
.hero p.lead { max-width: 540px; margin-bottom: 32px; color: var(--ink-3); font-size: 20px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { margin-top: 38px; display: flex; gap: 36px; flex-wrap: wrap; color: var(--ink-3); font-size: 14px; }
.hero-trust b { color: var(--ink); font-size: 22px; font-weight: 750; display: block; }

/* Hero 演示卡（浅色卡）*/
.demo-card { position: relative; z-index: 2; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.demo-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: var(--paper-2); border-bottom: 1px solid var(--line); color: var(--ink); }
.demo-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.demo-head .who { font-weight: 700; font-size: 14.5px; }
.demo-head .st { font-size: 12px; color: var(--ink-4); margin-left: auto; }
.demo-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; min-height: 286px; }
.bubble { max-width: 84%; padding: 11px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.6; }
.bubble.bot { align-self: flex-start; background: var(--paper-2); border: 1px solid var(--line); color: var(--ink-2); border-bottom-left-radius: 4px; }
.bubble.me { align-self: flex-end; background: var(--ink); color: var(--paper); border-bottom-right-radius: 4px; }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 13px 15px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-4); animation: bounce 1.3s infinite both; }
.typing i:nth-child(2){ animation-delay: .16s; } .typing i:nth-child(3){ animation-delay: .32s; }
@keyframes bounce { 0%,70%,100%{ transform: translateY(0); opacity: .4; } 35%{ transform: translateY(-5px); opacity: 1; } }

/* ── 区块 ── */
section { padding: 96px 0; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: 40px; margin: 14px 0 16px; letter-spacing: -.03em; }
.section-head .lead { font-size: 18px; }
.bg-soft { background: var(--paper-2); }

/* 能力网格 */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; transition: all .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--ink-4); }
.feature .ficon { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; font-size: 22px; background: var(--paper-2); border: 1px solid var(--line); margin-bottom: 18px; }
.feature h3 { font-size: 18.5px; margin-bottom: 8px; }
.feature p { color: var(--ink-3); font-size: 14.5px; }

/* 对比表 */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 760px; background: var(--white); }
table.cmp th, table.cmp td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line-2); font-size: 14.5px; }
table.cmp thead th { background: var(--paper-2); font-weight: 700; color: var(--ink); }
table.cmp th.us { color: var(--seal); }
table.cmp td.us { background: var(--seal-soft); color: var(--ink); font-weight: 700; }
.yes { color: var(--ok); font-weight: 700; } .no { color: var(--ink-4); }

/* 价格 */
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.price-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 26px; display: flex; flex-direction: column; transition: all .2s; }
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.price-card.featured { position: relative; border: 1.5px solid var(--ink); box-shadow: var(--shadow-lg); margin-top: 14px; }
.price-card.featured .pop-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--seal); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 15px; border-radius: 999px; }
.price-card h3 { font-size: 18px; }
.price-card .price { font-size: 38px; font-weight: 780; color: var(--ink); margin: 12px 0 4px; letter-spacing: -.02em; }
.price-card .price small { font-size: 15px; font-weight: 600; color: var(--ink-4); }
.price-card .renew { color: var(--ink-4); font-size: 13px; margin-bottom: 4px; min-height: 18px; }
.price-card ul { list-style: none; margin: 16px 0 24px; display: flex; flex-direction: column; gap: 11px; }
.price-card li { font-size: 14px; color: var(--ink-3); padding-left: 24px; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--seal); font-weight: 800; }
.price-card .btn { margin-top: auto; justify-content: center; }

/* 信任带（浅） */
.trust-band { background: var(--ink); color: var(--paper); }
.trust-band .container { position: relative; z-index: 2; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; }
.trust-grid .v { font-size: 40px; font-weight: 760; color: #fff; letter-spacing: -.02em; }
.trust-grid .k { color: rgba(255,255,255,.6); font-size: 14.5px; margin-top: 6px; }

/* 深墨 CTA（唯一的一处近黑区，confident 收束）*/
.cta-deep { position: relative; color: var(--paper); overflow: hidden; background: var(--ink); }
.cta-deep h2 { color: #fff; font-size: 42px; letter-spacing: -.03em; }
.cta-deep .lead { color: rgba(255,255,255,.72); }
/* R7 防隐形兜底：深色区内按钮永远走反色方案（曾因漏挂 on-dark 出现
   "查看价格"墨字墨底完全不可见的缺陷——规则级修复，防再犯）。 */
.cta-deep .btn-ghost { color: var(--paper); border-color: rgba(255,255,255,.28); }
.cta-deep .btn-ghost:hover { border-color: rgba(255,255,255,.7); }
.cta-deep .btn-primary { background: var(--paper); color: var(--ink); }
.cta-deep .btn-primary:hover { background: #fff; }

/* ── 页脚 ── */
footer.site { background: var(--paper-2); color: var(--ink-3); padding: 60px 0 32px; font-size: 14px; border-top: 1px solid var(--line); }
footer.site .cols { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
footer.site h4 { color: var(--ink); font-size: 14px; margin-bottom: 16px; font-weight: 700; }
footer.site a { display: block; color: var(--ink-3); padding: 5px 0; }
footer.site a:hover { color: var(--seal); }
footer.site .foot-logo { color: var(--ink); font-weight: 800; font-size: 19px; margin-bottom: 12px; display:flex; align-items:center; gap:10px; }
footer.site .foot-logo .mark { width: 28px; height: 28px; border-radius: 8px; background: var(--ink); color: var(--paper); display:grid; place-items:center; font-size:15px; font-family: var(--serif); }
footer.site .bottom { border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--ink-4); }

/* ── 营销子页：页面 Hero + 交错分层 ── */
.page-hero { position: relative; overflow: hidden; background: var(--paper); color: var(--ink-2); padding: 84px 0 76px; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 52px; align-items: center; }
.page-hero h1 { color: var(--ink); font-size: 48px; margin: 18px 0 18px; letter-spacing: -.035em; font-weight: 700; }
.page-hero p.lead { color: var(--ink-3); font-size: 19px; max-width: 540px; margin-bottom: 26px; }
.page-hero.center { text-align: center; }
.page-hero.center .ph-center { max-width: 760px; margin: 0 auto; }
.page-hero.center p.lead { margin-left: auto; margin-right: auto; }
.page-hero.center .hero-actions { justify-content: center; }
/* 水墨配图：底色与纸同源，用极淡描边 + 柔影让画面"浮"在纸上而非被框住。
   配图为 <picture>：AVIF 主用（平滑渐变无块状伪影 · ~100KB），无损 WebP 兜底。 */
.hero-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); background: var(--paper); }
.hero-media picture { display: block; }
.hero-media img { width: 100%; height: auto; display: block; }

/* 交错分层区 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split + .split { margin-top: 88px; }
.split.rev .split-text { order: 2; }
.split-text h2 { font-size: 32px; margin: 12px 0 14px; letter-spacing: -.03em; }
.split-text > p { color: var(--ink-3); font-size: 16px; margin-bottom: 18px; }
.checklist { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.checklist li { position: relative; padding-left: 28px; color: var(--ink-2); font-size: 15px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 19px; height: 19px; border-radius: 50%; background: var(--seal-soft); color: var(--seal); font-weight: 800; font-size: 11px; display: grid; place-items: center; }

/* 小药丸标签 */
.ui-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; background: var(--seal-soft); color: var(--seal); font-weight: 700; font-size: 12.5px; padding: 5px 12px; border-radius: 999px; }

/* ── 滚动渐显（reveal.js 渐进增强；reduce-motion 用户不启用）── */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .55s cubic-bezier(.2, .8, .25, 1); }
.rv-in { opacity: 1; transform: none; }

/* ── 页内登录弹窗（iframe 复用控制台登录组件）── */
.mz-modal-backdrop { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(26, 26, 24, .46); backdrop-filter: saturate(120%) blur(7px); opacity: 0; transition: opacity .2s ease; }
.mz-modal-backdrop.open { opacity: 1; }
.mz-modal { position: relative; width: min(820px, 100%); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; transform: translateY(14px) scale(.985); transition: transform .22s cubic-bezier(.2, .8, .25, 1); }
.mz-modal-backdrop.open .mz-modal { transform: none; }
.mz-modal-close { position: absolute; top: 12px; right: 14px; z-index: 2; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ink-4); font-size: 16px; line-height: 1; cursor: pointer; transition: background .15s, color .15s; }
.mz-modal-close:hover { background: var(--paper-2); color: var(--ink); }
.mz-modal-frame { display: block; width: 100%; height: 440px; border: 0; background: var(--white); }
@media (max-width: 860px) { .mz-modal-frame { height: 620px; } .mz-modal-backdrop { padding: 14px; } }

/* 响应式 */
@media (max-width: 920px) {
  .hero-inner, .page-hero-grid, .split { grid-template-columns: 1fr; gap: 36px; }
  .hero-orb { display: none; }
  .grid-4, .grid-3, .pricing, .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 44px; } .section-head h2 { font-size: 32px; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .grid-4, .grid-3, .pricing, .trust-grid, .cols { grid-template-columns: 1fr; }
}
