/* ============================================================
   棱镜AI官网 · 设计系统（编辑极简）
   源自 2026-08-29 拍板的设计语言：米白底 / 紫强调 / 黑 CTA
   唯一真源：F:\workbuddy仓库\设计语言规范\DESIGN-LANGUAGE.md + tokens.css
   ============================================================ */

:root {
  --bg: #FAFAF8;
  --white: #FFFFFF;
  --ink: #18181B;
  --purple: #5B3DF5;
  --purple-soft: rgba(91, 61, 245, 0.30);
  --purple-tint: rgba(91, 61, 245, 0.06);
  --line: #E8E8E3;
  --line-soft: #F1EFE8;
  --border: #D4D4D8;
  --text-1: #52525B;
  --text-2: #71717A;
  --text-3: #A1A1AA;
  --green: #16A34A;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: var(--font); }
ul, ol { list-style: none; }

/* ================= 顶部导航 ================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 64px;
  background: rgba(250, 250, 248, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 12px; height: 12px; background: var(--purple);
  transform: rotate(45deg); flex-shrink: 0;
}
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: 1.5px; }
.brand-name em { font-style: normal; color: var(--purple); }

.nav-links { display: flex; gap: 36px; margin-left: 72px; }
.nav-links a { font-size: 14px; color: var(--text-2); letter-spacing: 0.5px; padding-bottom: 4px; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 700; border-bottom: 2px solid var(--purple); }

.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-search {
  display: flex; align-items: center; gap: 8px; width: 190px;
  border-bottom: 1px solid var(--border); padding: 6px 4px;
  color: var(--text-3); font-size: 13px; letter-spacing: 0.5px;
}
.nav-search input {
  border: none; outline: none; background: transparent;
  font-family: var(--font); font-size: 13px; color: var(--ink); width: 100%;
}
.nav-lang { font-size: 12px; color: var(--text-3); letter-spacing: 1px; display: flex; gap: 6px; }
.nav-lang b { color: var(--ink); font-weight: 700; cursor: pointer; }
.nav-lang a { cursor: pointer; }
.nav-lang a:hover { color: var(--ink); }
.nav-login { font-size: 14px; color: var(--text-1); letter-spacing: 0.5px; cursor: pointer; }
.nav-login:hover { color: var(--ink); }

.btn-dark {
  display: inline-block; background: var(--ink); color: #fff; border: none;
  padding: 10px 24px; font-size: 13px; font-weight: 600; letter-spacing: 1px;
  cursor: pointer; border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}
.btn-dark:hover { background: var(--purple); }
.btn-dark.btn-lg { padding: 14px 40px; font-size: 14px; }
.btn-dark.btn-sm { padding: 7px 16px; font-size: 12px; }
.btn-outline {
  display: inline-block; background: transparent; color: var(--ink);
  border: 1px solid var(--ink); padding: 9px 24px;
  font-size: 13px; font-weight: 600; letter-spacing: 1px; cursor: pointer;
  border-radius: var(--radius-sm); transition: all 0.15s ease;
}
.btn-outline:hover { border-color: var(--purple); color: var(--purple); }
.btn-link {
  display: inline-block; color: var(--purple); font-size: 12px; font-weight: 600;
  letter-spacing: 1px; border-bottom: 1.5px solid var(--purple); padding-bottom: 2px;
  cursor: pointer;
}
.btn-link:hover { color: var(--ink); border-color: var(--ink); }

.nav-toggle { display: none; }
.nav-burger { display: none; }

/* ================= 轮播区 ================= */
.hero-carousel { display: flex; gap: 40px; padding: 40px 64px 48px; align-items: stretch; }
.hero-stage {
  flex: 1; height: 240px; position: relative;
  border: 1px solid var(--line); background: var(--white);
  display: flex; overflow: hidden;
}
.stage-visual {
  width: 44%; background: #F4F4F0; border-right: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.stage-phone {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 280px; height: 216px; background: var(--white); border: 1px solid var(--line);
  padding: 14px;
}
.phone-bar { height: 6px; background: var(--purple); width: 52px; margin-bottom: 12px; }
.phone-line { height: 5px; background: var(--line); margin-bottom: 8px; }
.phone-line.w { width: 100%; } .phone-line.l { width: 80%; }
.phone-line.m { width: 60%; } .phone-line.s { width: 40%; }
.phone-block {
  height: 64px; background: #F4F4F0; border: 1px dashed var(--border); margin: 12px 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); font-size: 12px; letter-spacing: 2px;
}
.stage-copy { flex: 1; padding: 26px 40px; display: flex; flex-direction: column; }
.stage-tag { font-size: 11px; color: var(--purple); letter-spacing: 4px; text-transform: uppercase; }
.stage-h { font-size: 23px; font-weight: 700; letter-spacing: 1px; line-height: 1.35; margin-top: 10px; }
.stage-h span { color: var(--purple); }
.stage-d { font-size: 13px; color: var(--text-2); line-height: 1.7; margin-top: 8px; letter-spacing: 0.5px; }
.stage-feats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.feat {
  font-size: 12px; color: var(--purple); letter-spacing: 0.5px;
  border-bottom: 1px solid var(--purple-soft); padding: 2px 2px 3px;
}
.stage-cta { margin-top: auto; display: flex; align-items: center; gap: 20px; }
.stage-price { font-size: 12px; color: var(--text-3); letter-spacing: 0.5px; }

.hero-cards { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; }
.hcard {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--line); background: var(--white);
  padding: 18px 20px; height: 72px; cursor: pointer;
  transition: border-color 0.15s ease;
}
.hcard:hover { border-color: var(--border); }
.hcard.active { border-color: var(--purple); }
.hcard.active .hc-name { color: var(--purple); font-weight: 700; }
.hc-logo {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff;
}
.hc-logo.prism { background: var(--purple); }
.hc-logo.mixia { background: var(--ink); }
.hc-logo.agent { background: var(--text-2); }
.hc-info { flex: 1; min-width: 0; }
.hc-name { font-size: 14px; font-weight: 600; letter-spacing: 0.5px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-sub { font-size: 11px; color: var(--text-3); letter-spacing: 1.5px; margin-top: 4px; line-height: 1.2; text-transform: uppercase; }
.hc-status {
  font-size: 10px; color: var(--green); flex-shrink: 0;
  display: flex; align-items: center; gap: 5px; letter-spacing: 1px;
}
.hc-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }

/* ================= 通用区块 ================= */
.section { padding: 72px 64px; border-top: 1px solid var(--line); }
.sec-label {
  font-size: 11px; color: var(--text-3); letter-spacing: 4px; text-transform: uppercase;
  display: flex; align-items: center; gap: 16px;
}
.sec-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sec-h { font-size: 30px; font-weight: 700; letter-spacing: 1px; margin-top: 20px; line-height: 1.3; }
.sec-h span { color: var(--purple); }
.sec-d { font-size: 14px; color: var(--text-2); letter-spacing: 0.5px; line-height: 2; margin-top: 12px; max-width: 720px; }

/* 平台定位横幅 */
.position {
  padding: 48px 64px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 40px;
}
.pos-mark { width: 14px; height: 14px; background: var(--purple); transform: rotate(45deg); flex-shrink: 0; }
.pos-h { font-size: 22px; font-weight: 700; letter-spacing: 1px; line-height: 1.4; }
.pos-h em { font-style: normal; color: var(--purple); }
.pos-d { font-size: 13px; color: var(--text-2); letter-spacing: 0.5px; margin-top: 8px; }

/* 产品矩阵 */
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.tool-card {
  border: 1px solid var(--line); background: var(--white); padding: 32px;
  display: flex; flex-direction: column; min-height: 320px;
  transition: border-color 0.15s ease;
}
.tool-card:hover { border-color: var(--border); }
.tc-logo {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px; font-weight: 700;
}
.tc-logo.p { background: var(--purple); }
.tc-logo.m { background: var(--ink); }
.tc-logo.a { background: var(--text-2); }
.tc-name { font-size: 20px; font-weight: 700; letter-spacing: 0.5px; margin-top: 20px; }
.tc-sub { font-size: 11px; color: var(--text-3); letter-spacing: 3px; margin-top: 6px; text-transform: uppercase; }
.tc-desc { font-size: 13px; color: var(--text-1); line-height: 1.9; margin-top: 14px; letter-spacing: 0.3px; }
.tc-feats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tc-foot {
  margin-top: auto; padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line);
}
.tc-price { font-size: 11px; color: var(--text-3); letter-spacing: 0.5px; }
.tool-more {
  grid-column: 1 / -1;
  border: 1px dashed var(--border); padding: 32px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  min-height: 140px; color: var(--text-3); text-align: center;
}
.tm-plus {
  width: 40px; height: 40px; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.tm-text { font-size: 13px; letter-spacing: 2px; }

/* 特色能力 */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.feat-card { padding: 28px 0; border-top: 2px solid var(--ink); }
.feat-card .f-num { font-size: 12px; color: var(--purple); font-weight: 700; letter-spacing: 2px; }
.feat-card h3 { font-size: 17px; font-weight: 700; margin-top: 14px; letter-spacing: 0.5px; }
.feat-card p { font-size: 13px; color: var(--text-2); line-height: 1.9; margin-top: 10px; letter-spacing: 0.3px; }

/* 三步上手 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 40px; }
.step { padding: 0 40px; position: relative; }
.step:first-child { padding-left: 0; }
.step:last-child { padding-right: 0; }
.step:not(:last-child)::after {
  content: ""; position: absolute; right: 0; top: 24px;
  width: 40px; height: 1px; background: var(--border);
}
.step-num { font-size: 40px; font-weight: 700; color: var(--line); letter-spacing: 1px; }
.step h3 { font-size: 17px; font-weight: 700; margin-top: 12px; }
.step p { font-size: 13px; color: var(--text-2); line-height: 1.9; margin-top: 10px; }

/* 定价 */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; align-items: stretch; }
.plan { border: 1px solid var(--line); background: var(--white); padding: 36px 32px; display: flex; flex-direction: column; }
.plan.hot { border: 2px solid var(--purple); }
.plan-tag { font-size: 11px; letter-spacing: 3px; color: var(--text-3); text-transform: uppercase; }
.plan.hot .plan-tag { color: var(--purple); font-weight: 700; }
.plan-name { font-size: 22px; font-weight: 700; margin-top: 14px; letter-spacing: 0.5px; }
.plan-price { margin-top: 18px; display: flex; align-items: baseline; gap: 8px; }
.plan-price b { font-size: 40px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.plan-price span { font-size: 13px; color: var(--text-2); }
.plan-pts { font-size: 12px; color: var(--text-3); margin-top: 6px; letter-spacing: 0.5px; }
.plan-list { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.plan-list div { font-size: 13px; color: var(--text-1); display: flex; gap: 10px; letter-spacing: 0.3px; }
.plan-list .ck { color: var(--purple); font-weight: 700; }
.plan-btn { margin-top: auto; padding-top: 30px; }
.btn-plan, .plan-btn a.btn-plan {
  display: block; width: 100%; padding: 14px 0; font-size: 13px; font-weight: 600; letter-spacing: 2px; cursor: pointer;
  background: var(--white); color: var(--ink); border: 1px solid var(--ink);
  border-radius: var(--radius-sm); transition: all 0.15s ease;
  text-align: center; text-decoration: none; box-sizing: border-box;
}
.plan.hot .btn-plan { background: var(--ink); color: #fff; border: none; }
.plan.hot .btn-plan:hover { background: var(--purple); }
.btn-plan:hover { border-color: var(--purple); color: var(--purple); }
.price-note { text-align: center; font-size: 12px; color: var(--text-3); letter-spacing: 1px; margin-top: 24px; }

/* 信任背书 */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.trust-item { text-align: center; padding: 20px 0; }
.trust-item b { font-size: 32px; font-weight: 700; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.trust-item p { font-size: 12px; color: var(--text-3); letter-spacing: 2px; margin-top: 10px; text-transform: uppercase; }

/* 底部 CTA */
.final-cta { padding: 88px 64px; border-top: 1px solid var(--line); text-align: center; }
.final-cta h2 { font-size: 32px; font-weight: 700; letter-spacing: 1px; line-height: 1.4; }
.final-cta h2 span { color: var(--purple); }
.final-cta p { font-size: 14px; color: var(--text-2); margin-top: 16px; letter-spacing: 0.5px; }
.final-cta .btn-dark { margin-top: 36px; }

/* ================= 页脚 ================= */
.footer { border-top: 1px solid var(--line); padding: 56px 64px 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; }
.f-brand p { font-size: 12px; color: var(--text-3); line-height: 2; margin-top: 14px; letter-spacing: 0.5px; max-width: 260px; }
.f-subscribe { display: flex; gap: 10px; margin-top: 18px; max-width: 300px; }
.f-subscribe input {
  flex: 1; border: none; border-bottom: 1px solid var(--border); background: transparent;
  padding: 6px 4px; font-family: var(--font); font-size: 12px; color: var(--ink); outline: none;
}
.f-subscribe input::placeholder { color: var(--text-3); }
.f-col h4 { font-size: 11px; color: var(--text-3); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 18px; }
.f-col a { display: block; font-size: 13px; color: var(--text-1); letter-spacing: 0.5px; padding: 6px 0; }
.f-col a:hover { color: var(--purple); }
.f-bottom {
  border-top: 1px solid var(--line); margin-top: 40px; padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 11px; color: var(--border); letter-spacing: 1px;
}
.f-bottom a { color: var(--text-3); }
.f-bottom a:hover { color: var(--purple); }

/* 在线客服浮动按钮 */
.service-fab {
  position: fixed; right: 36px; bottom: 36px; z-index: 100;
  width: 48px; height: 48px; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; letter-spacing: 0.5px; cursor: pointer;
  border: none; border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}
.service-fab:hover { background: var(--purple); }

/* ================= 内页通用 ================= */
.page-hero { padding: 64px 64px 56px; border-bottom: 1px solid var(--line); }
.page-hero .ph-tag { font-size: 11px; color: var(--purple); letter-spacing: 4px; text-transform: uppercase; }
.page-hero h1 { font-size: 34px; font-weight: 700; letter-spacing: 1px; margin-top: 16px; line-height: 1.3; }
.page-hero h1 span { color: var(--purple); }
.page-hero p { font-size: 14px; color: var(--text-2); letter-spacing: 0.5px; line-height: 2; margin-top: 14px; max-width: 720px; }
.breadcrumb { font-size: 12px; color: var(--text-3); letter-spacing: 0.5px; margin-top: 20px; }
.breadcrumb a:hover { color: var(--purple); }
.breadcrumb span { color: var(--ink); }

.prose { max-width: 860px; }
.prose h2 { font-size: 22px; font-weight: 700; letter-spacing: 0.5px; margin: 48px 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.prose h3 { font-size: 16px; font-weight: 700; margin: 32px 0 12px; letter-spacing: 0.5px; }
.prose p { font-size: 14px; color: var(--text-1); line-height: 2; margin-bottom: 16px; letter-spacing: 0.3px; }
.prose ul, .prose ol { margin: 0 0 16px 0; padding-left: 20px; }
.prose ul li, .prose ol li {
  font-size: 14px; color: var(--text-1); line-height: 2; letter-spacing: 0.3px;
  list-style: disc; position: relative; padding-left: 8px;
}
.prose ol li { list-style: decimal; }
.prose a { color: var(--purple); border-bottom: 1px solid var(--purple-soft); }
.prose a:hover { color: var(--ink); border-color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0 28px; font-size: 13px; }
.prose th {
  text-align: left; font-size: 11px; color: var(--text-3); letter-spacing: 2px;
  text-transform: uppercase; padding: 10px 12px; border-bottom: 1px solid var(--border); font-weight: 600;
}
.prose td { padding: 12px; border-bottom: 1px solid var(--line); color: var(--text-1); line-height: 1.8; }
.prose code {
  font-family: "SF Mono", "Cascadia Code", "JetBrains Mono", Consolas, monospace;
  font-size: 12px; background: var(--line-soft); padding: 2px 6px;
  border-radius: var(--radius-sm); color: var(--ink);
}
.prose .note {
  background: var(--purple-tint); border-left: 2px solid var(--purple);
  padding: 16px 20px; margin: 20px 0; font-size: 13px; color: var(--text-1); line-height: 1.9;
}

/* 通用卡片 */
.card {
  border: 1px solid var(--line); background: var(--white); padding: 32px;
}
.card h3 { font-size: 17px; font-weight: 700; letter-spacing: 0.5px; }
.card p { font-size: 13px; color: var(--text-2); line-height: 1.9; margin-top: 10px; letter-spacing: 0.3px; }

/* 字段行（1Password 风格详情） */
.field-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 4px; border-bottom: 1px solid var(--line);
}
.field-row .fr-label { font-size: 11px; color: var(--text-3); letter-spacing: 2px; text-transform: uppercase; }
.field-row .fr-value { font-size: 14px; color: var(--ink); font-weight: 500; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 4px; font-size: 15px; font-weight: 600; letter-spacing: 0.3px; cursor: pointer;
}
.faq-q .faq-icon { color: var(--purple); font-size: 16px; font-weight: 700; }
.faq-a { display: none; padding: 0 4px 24px; font-size: 14px; color: var(--text-1); line-height: 2; }
.faq-item.open .faq-a { display: block; }

/* 状态页 */
.status-list { margin-top: 40px; }
.status-row {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 24px; border: 1px solid var(--line); background: var(--white); margin-bottom: 12px;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.status-dot.ok { background: var(--green); }
.status-dot.warn { background: #F59E0B; }
.status-dot.down { background: #E24B4A; }
.status-name { font-size: 14px; font-weight: 600; flex: 1; letter-spacing: 0.5px; }
.status-val { font-size: 12px; color: var(--text-3); letter-spacing: 1px; }

/* 404 */
.notfound { text-align: center; padding: 120px 64px; }
.notfound .nf-mark { width: 24px; height: 24px; background: var(--purple); transform: rotate(45deg); margin: 0 auto 32px; }
.notfound h1 { font-size: 64px; font-weight: 700; letter-spacing: 4px; }
.notfound p { font-size: 14px; color: var(--text-2); margin-top: 16px; letter-spacing: 0.5px; }
.notfound .btn-dark { margin-top: 36px; }

/* ================= 响应式 ================= */
@media (max-width: 1180px) {
  .nav { padding: 0 32px; }
  .nav-links { gap: 24px; margin-left: 40px; }
  .hero-carousel, .section, .position, .page-hero, .final-cta, .footer { padding-left: 32px; padding-right: 32px; }
  .stage-visual { display: none; }
}

@media (max-width: 900px) {
  .nav-burger {
    display: flex; cursor: pointer; color: var(--ink);
  }
  .nav-menu {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 16px 32px 24px; flex-direction: column; gap: 16px;
  }
  .nav-toggle:checked ~ .nav-menu { display: flex; }
  .nav-links { flex-direction: column; margin: 0; gap: 12px; }
  .nav-links a.active { border-bottom: none; }
  .nav-right { flex-wrap: wrap; gap: 14px; }
  .nav-search { width: 100%; }

  .hero-carousel { flex-direction: column; padding-top: 24px; }
  .hero-cards { width: 100%; flex-direction: row; }
  .hcard { height: 64px; flex: 1; padding: 12px 16px; }
  .hc-sub { display: none; }
  .hero-stage { height: auto; min-height: 300px; }
  .stage-copy { padding: 28px; }
  .stage-visual { display: block; width: 100%; height: 200px; border-right: none; border-bottom: 1px solid var(--line); }

  .tools, .pricing, .features { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .step:not(:last-child)::after { display: none; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
  .service-fab { right: 20px; bottom: 20px; }
}
