/* 官网首页样式（2026-11-25 改版）。只给 index.html 用。主色和产品一致：#2563EB。 */
:root {
  --blue: #2563eb; --blue-d: #1d4ed8; --blue-50: #eff5ff; --blue-100: #dbeafe; --blue-200: #bfd4fe;
  --ink: #0b1220; --ink-2: #475569; --ink-3: #64748b; --line: #e6ebf2; --soft: #f7f9fc; --white: #fff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif; color: var(--ink); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.028em; text-wrap: balance; overflow-wrap: break-word; }
:lang(zh-CN) h1, :lang(zh-CN) h2, :lang(zh-CN) h3 { letter-spacing: -0.005em; line-height: 1.22; word-break: auto-phrase; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 22px; border-radius: 12px; font-size: 15px; font-weight: 600; text-align: center; transition: background .15s, border-color .15s, transform .15s, box-shadow .15s; }
.btn:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--blue-200); outline-offset: 2px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 1px 2px rgba(29,78,216,.24), 0 8px 20px -10px rgba(37,99,235,.6); }
.btn-primary:hover { background: var(--blue-d); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid #d8dfea; }
.btn-ghost:hover { border-color: var(--blue-200); background: var(--blue-50); }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 13px; border-radius: 10px; }

header.nav { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.82); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid rgba(15,23,42,.06); }
header.nav .wrap { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.logo i { font-style: normal; width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.links { display: flex; gap: 30px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.links a:hover { color: var(--blue-d); }
.nav-end { display: flex; align-items: center; gap: 8px; }
.lang { border: 1px solid #d8dfea; background: #fff; border-radius: 10px; min-height: 36px; padding: 0 8px; font: 600 13px/1 inherit; font-family: inherit; color: var(--ink); cursor: pointer; }
.nav-login { font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 0 6px; white-space: nowrap; }

.shot { border: 1px solid #dde4ee; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 30px 60px -30px rgba(30,64,175,.28); }
.shot .bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #f6f8fb; border-bottom: 1px solid #e9eef5; }
.shot .bar b { width: 9px; height: 9px; border-radius: 50%; background: #d5dde8; }
.shot .bar span { margin-left: 10px; font-size: 11px; color: var(--ink-3); }
.shot img { width: 100%; height: auto; aspect-ratio: 2720 / 1700; object-fit: cover; object-position: top; }
.phone { width: 232px; padding: 7px; border-radius: 34px; background: #fff; border: 1px solid #d9e0eb; box-shadow: 0 34px 60px -28px rgba(30,64,175,.38), 0 2px 6px rgba(15,23,42,.06); }
/* 只露出手机画面上面 91%：客户页 / 派工页底部操作栏现在仍是深色按钮，产品还没改 */
.phone img { width: 100%; aspect-ratio: 390 / 772; object-fit: cover; object-position: top; border-radius: 28px; border: 1px solid #eef2f7; }

details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 600; font-size: 15px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid #94a3b8; border-bottom: 2px solid #94a3b8; transform: rotate(45deg); flex: none; margin-right: 4px; transition: transform .15s; }
details[open] summary::after { transform: rotate(225deg); }
details p { padding: 0 0 18px; color: var(--ink-2); font-size: 14px; max-width: 62ch; }

.check { list-style: none; display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }
.check li { display: flex; gap: 10px; align-items: flex-start; }
.check li::before { content: ""; flex: none; width: 6px; height: 11px; margin: 4px 4px 0 3px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); }

footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 13px; color: var(--ink-3); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }

@media (max-width: 900px) { .links { display: none; } }
@media (max-width: 520px) {
  .wrap { padding: 0 18px; }
  header.nav .wrap { height: 58px; padding: 0 12px; gap: 6px; }
  .nav-login { display: none; }
  .logo { gap: 7px; font-size: 14px; }
  .lang { max-width: 92px; font-size: 12px; padding: 0 4px; }
  .nav-end .btn { padding: 6px 10px; font-size: 12px; white-space: nowrap; }
}
@media (max-width: 380px) { .logo span { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- 页面区块 ---------- */
/* 首屏 */
.hero { position: relative; padding: 76px 0 0; text-align: center; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -64px 0 0; z-index: -2;
  background:
    radial-gradient(60% 46% at 18% 12%, rgba(147,197,253,.48), transparent 70%),
    radial-gradient(52% 44% at 84% 4%, rgba(186,214,255,.58), transparent 70%),
    radial-gradient(70% 40% at 50% 62%, rgba(191,219,254,.52), transparent 72%),
    linear-gradient(180deg, #f6faff 0%, #fff 92%); }
.hero::after { content: ""; position: absolute; inset: -64px 0 22%; z-index: -1;
  background-image: radial-gradient(rgba(37,99,235,.17) 1px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent 78%); mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent 78%); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; background: rgba(255,255,255,.78); border: 1px solid var(--blue-200); color: var(--blue-d); font-size: 13px; font-weight: 600; line-height: 1.4; text-align: left; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(37,99,235,.14); flex: none; }
.hero h1 { margin: 22px auto 0; max-width: 15.5em; font-size: clamp(34px, 6vw, 68px); font-weight: 750; }
.hero h1 span { display: block; }
.hero h1 .grad { background: linear-gradient(95deg, #1d4ed8 0%, #2563eb 45%, #4f93ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.hero p.sub { margin: 20px auto 0; max-width: 36em; font-size: clamp(15px, 1.6vw, 18px); color: var(--ink-2); }
.cta-row { display: flex; gap: 12px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.trust { margin-top: 14px; font-size: 13px; color: var(--ink-3); }
.stage { position: relative; margin: 54px auto 0; max-width: 1060px; }
.stage .shot { border-radius: 16px; box-shadow: 0 0 0 7px rgba(255,255,255,.6), 0 50px 90px -40px rgba(30,64,175,.38); }
.stage .phone { position: absolute; width: 206px; bottom: -46px; }
.stage .p1 { right: -52px; }
.stage .p2 { left: -52px; bottom: -78px; }
.demo-note { margin-top: 100px; font-size: 12px; color: #94a3b8; }

section.block { padding: 96px 0; }
.head { text-align: center; max-width: 720px; margin: 0 auto; }
.head h2 { font-size: clamp(26px, 3.6vw, 42px); font-weight: 730; }
.head p { margin-top: 12px; color: var(--ink-2); font-size: 16px; }

/* 产品切换 */
.tabs { margin: 34px auto 0; display: flex; justify-content: center; }
.tabs div { display: inline-flex; gap: 4px; padding: 5px; border-radius: 14px; background: #eef3fa; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs button { border: 0; background: transparent; padding: 9px 18px; border-radius: 10px; font: 600 14px/1.3 Inter, "PingFang SC", sans-serif; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--blue-d); box-shadow: 0 1px 3px rgba(15,23,42,.12); }
.tab-desc { margin: 16px auto 0; max-width: 640px; text-align: center; color: var(--ink-2); font-size: 15px; min-height: 3.2em; }
.tour-frame { margin: 18px auto 0; max-width: 1080px; padding: 26px; border-radius: 26px; background: linear-gradient(180deg, #edf4ff, #f8fbff); border: 1px solid #e1ebfb; }

/* 三段图文（来自 B），换成 A 的圆角淡蓝风格 */
.story { display: grid; gap: 72px; }
.chapter { display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); gap: 52px; align-items: center; }
.chapter .txt { display: flex; flex-direction: column; gap: 18px; }
.chapter .tag { align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--blue-50); border: 1px solid var(--blue-200); color: var(--blue-d); font-size: 12.5px; font-weight: 700; line-height: 1.5; }
.chapter h2 { font-size: clamp(25px, 2.9vw, 36px); font-weight: 730; }
.chapter dl { display: grid; gap: 14px; }
.chapter dl > div { border-left: 2px solid var(--blue-200); padding-left: 14px; }
.chapter dt { font-weight: 700; font-size: 15px; }
.chapter dd { font-size: 14px; color: var(--ink-2); }
.chapter .pic { height: 430px; border-radius: 26px; overflow: hidden; border: 1px solid #e1ebfb; background: radial-gradient(70% 70% at 85% 0%, rgba(191,219,254,.55), transparent 70%), linear-gradient(180deg, #edf4ff, #f8fbff); }
.crop { margin: 40px 0 0 40px; height: 390px; border: 1px solid #dde4ee; border-right: 0; border-bottom: 0; border-radius: 14px 0 0 0; overflow: hidden; background: #fff; box-shadow: 0 24px 50px -30px rgba(30,64,175,.4); }
.crop img { width: 150%; max-width: none; }
.crop.price img { width: 165%; }
.duo { display: flex; gap: 22px; padding: 40px 24px 0; justify-content: center; align-items: flex-start; }
.duo .phone { width: 236px; }
.duo .phone + .phone { margin-top: 34px; }
.chapter.flip { grid-template-columns: minmax(0,1.18fr) minmax(0,.82fr); }
.chapter.flip .txt { order: 2; }

/* 拼格功能 */
.alt { background: var(--soft); border-block: 1px solid var(--line); }
.bento { margin-top: 44px; display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 16px; }
.cell { grid-column: span 3; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.cell h3 { font-size: 16px; font-weight: 700; }
.cell p { font-size: 14px; color: var(--ink-2); }
.cell svg { width: 22px; height: 22px; color: var(--blue); margin-bottom: 4px; }
/* 价格 */
.plans { margin: 44px auto 0; max-width: 780px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; text-align: left; }
.plan { border: 1px solid var(--line); border-radius: 20px; padding: 28px; background: #fff; display: flex; flex-direction: column; gap: 16px; }
.plan.main { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-50), 0 30px 50px -34px rgba(37,99,235,.55); }
.plan .name { font-size: 13px; font-weight: 700; color: var(--blue-d); }
.plan .price { font-size: 42px; font-weight: 750; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan .price small { font-size: 14px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.plan .fine { font-size: 12px; color: var(--ink-3); }
.plan .btn { margin-top: auto; }
.faq { max-width: 780px; margin: 36px auto 0; border-top: 1px solid var(--line); }

.final { margin-bottom: 72px; }
.final .panel { position: relative; overflow: hidden; text-align: center; padding: 68px 24px; border-radius: 28px; border: 1px solid #d6e4fd;
  background: radial-gradient(70% 120% at 15% 0%, rgba(147,197,253,.6), transparent 65%), radial-gradient(60% 120% at 90% 100%, rgba(147,197,253,.55), transparent 65%), #eef5ff; }
.final h2 { font-size: clamp(24px, 3.4vw, 38px); font-weight: 730; }

@media (max-width: 1180px) { .stage .p1 { right: -8px; } .stage .p2 { left: -8px; } .stage .phone { width: 180px; } }
@media (max-width: 900px) {
  .chapter, .chapter.flip { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .chapter.flip .txt { order: 0; }
  .cell { grid-column: span 6; }
}
@media (max-width: 720px) {
  .hero { padding-top: 40px; }
  .stage { margin-top: 36px; }
  .stage > .shot { display: none; }
  /* 手机上不缩小电脑截图：改放两台手机（客户方案 + 派工单） */
  .stage .phone { position: static; width: 47%; max-width: 220px; padding: 5px; border-radius: 24px; }
  .stage .phone img { border-radius: 20px; }
  .stage { display: flex; justify-content: center; align-items: flex-start; gap: 10px; }
  .stage .p2 { margin-top: 26px; }
  .demo-note { margin-top: 18px; }
  section.block { padding: 64px 0; }
  .tour-frame { padding: 10px; border-radius: 18px; }
  .tour-frame .shot img { aspect-ratio: 4 / 4.2; object-position: left top; }
  .plans { grid-template-columns: 1fr; }
  .story { gap: 56px; }
  .chapter .pic { height: 360px; border-radius: 18px; }
  .crop { margin: 20px 0 0 18px; height: 340px; }
  .crop img, .crop.price img { width: 230%; }
  .duo { gap: 10px; padding: 22px 10px 0; }
  .duo .phone { width: 47%; max-width: 200px; padding: 5px; border-radius: 24px; }
  .duo .phone img { border-radius: 20px; }
  .cta-row .btn { width: 100%; }
}
@media (max-width: 520px) { .cell { grid-column: span 12; } }
@media (max-width: 360px) { .tabs button { padding: 9px 11px; font-size: 13px; } }

/* 限时活动横幅（GET /api/pricing 返回 promo.active 才显示） */
.promo { max-width: 780px; margin: 32px auto 0; padding: 18px 22px; border-radius: 18px; border: 1px solid var(--blue-200); background: var(--blue-50); text-align: left; }
.promo + .plans { margin-top: 20px; }
.promo-top { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.promo-badge { padding: 2px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--blue-200); color: var(--blue-d); font-size: 11.5px; font-weight: 700; }
.promo-days { font-size: 12px; color: var(--blue-d); white-space: pre-wrap; }
.promo-title { margin-top: 8px; font-size: 14.5px; font-weight: 700; }
.promo-sub { margin-top: 2px; font-size: 13px; color: var(--ink-2); }
.hidden { display: none !important; }
