/* 图灵 · 详情页生产线 —— 营销首页（PackScena 式：克制、单价值、信任优先）
   全站 Google 非衬线体 Noto Sans SC（自托管于本服务器，大陆直连无障碍）。 */

/* ── 自托管 Noto Sans SC（OFL 许可）── */
@font-face {
  font-family: 'Noto Sans SC'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/noto-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Noto Sans SC'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/noto-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Noto Sans SC'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/noto-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Noto Sans SC'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/noto-chinese-simplified-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Sans SC'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/noto-chinese-simplified-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Sans SC'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/noto-chinese-simplified-700.woff2') format('woff2');
}

:root {
  --paper: #F7F5F0;
  --paper-alt: #EFECE4;
  --ink: #1B1813;
  --ink-60: rgba(27,24,19,.62);
  --ink-40: rgba(27,24,19,.40);
  --line: rgba(27,24,19,.14);
  --accent: #6C3BF4;
  --accent-deep: #5626E0;
  --font-display: 'Noto Sans SC', 'PingFang SC', 'HarmonyOS Sans SC', 'MiSans', sans-serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'HarmonyOS Sans SC', 'MiSans', 'Microsoft YaHei', sans-serif;
  --radius: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body); background: var(--paper); color: var(--ink);
  line-height: 1.7; -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: #fff; }

/* ── 顶栏 ── */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px clamp(20px, 5vw, 56px);
  background: rgba(247,245,240,.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { text-decoration: none; color: var(--ink); font-family: var(--font-display); font-size: 21px; display: flex; align-items: baseline; gap: 9px; }
.brand-tuling { font-weight: 700; }
.brand-sep { color: var(--accent); }
.brand-sub { font-family: var(--font-body); font-size: 12.5px; letter-spacing: .3em; color: var(--ink-60); }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--ink-60); text-decoration: none; font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover { color: var(--accent); }
.topbar-cta { display: flex; gap: 10px; }

/* ── 按钮 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-size: 14px; text-decoration: none;
  border-radius: 999px; padding: 10px 22px; min-height: 44px; cursor: pointer;
  border: 1px solid transparent;
  transition: transform 160ms var(--ease), background 160ms, border-color 160ms, color 160ms, box-shadow 160ms;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(108,59,244,.22); }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-outline { border-color: rgba(27,24,19,.36); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { color: var(--ink-60); }
.btn-ghost:hover { color: var(--ink); }
.btn-lg { padding: 13px 34px; font-size: 15.5px; }
.btn-block { width: 100%; }

/* ── 版心 ── */
main { max-width: 1040px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }
.section { padding: clamp(56px, 9vh, 96px) 0; }
.section-alt { margin: 0 calc(50% - 50vw); padding-left: calc(50vw - 50%); padding-right: calc(50vw - 50%); background: var(--paper-alt); }
.sec-kicker { font-size: 12px; letter-spacing: .42em; color: var(--accent); margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.sec-kicker::after { content: ''; flex: 1; max-width: 72px; height: 1px; background: var(--line); }
.sec-title { font-family: var(--font-display); font-size: clamp(28px, 4.4vw, 40px); letter-spacing: -.02em; line-height: 1.16; }
.sec-sub { color: var(--ink-60); margin-top: 12px; font-size: 15px; }

/* ── Hero ── */
.hero { padding: clamp(64px, 12vh, 120px) 0 clamp(48px, 8vh, 72px); text-align: left; max-width: 720px; }
.kicker { font-size: 12px; letter-spacing: .42em; color: var(--accent); margin-bottom: 20px; }
.hero-title { font-family: var(--font-display); font-size: clamp(38px, 6.4vw, 64px); line-height: 1.1; letter-spacing: -.025em; }
.hero-sub { margin: 22px 0 30px; font-size: clamp(15px, 2vw, 17.5px); color: var(--ink-60); max-width: 34em; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { margin-top: 16px; font-size: 13px; color: var(--ink-40); }

/* ── 样品画廊：1 原图 → 1 成品 ── */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.case { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 14px; }
.case-pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.ph {
  aspect-ratio: 1 / 1; border-radius: 10px;
  background: repeating-linear-gradient(45deg, var(--paper-alt) 0 10px, #fff 10px 20px);
  border: 1.5px dashed var(--line);
  display: grid; place-items: center;
  color: var(--ink-40); font-size: 12px; text-align: center; padding: 8px;
}
.ph::after { content: attr(data-label); }
.ph-after { border-style: solid; border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: color-mix(in srgb, var(--accent) 6%, #fff); color: var(--accent); }
.case-arrow { color: var(--accent); font-size: 18px; }
.case figcaption { margin-top: 12px; font-size: 13px; color: var(--ink-60); }
.case figcaption strong { display: block; color: var(--ink); font-size: 14.5px; margin-bottom: 2px; }
.gallery-note { margin-top: 18px; font-size: 12.5px; color: var(--ink-40); }

/* ── 滑块画廊（0→1 前后对比）── */
.cmp { margin-top: 36px; }
.cmp-frame {
  position: relative; max-width: 640px; margin: 0 auto;
  aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: #fff;
  touch-action: none; user-select: none; cursor: ew-resize;
  box-shadow: var(--shadow-2);
}
.cmp-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cmp-a { clip-path: inset(0 0 0 var(--split, 100%)); }
.cmp-bar {
  position: absolute; top: 0; bottom: 0; left: var(--split, 50%);
  width: 2px; background: var(--accent); transform: translateX(-1px); pointer-events: none;
}
.cmp-handle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  font-size: 17px;
}
.cmp-handle::before { content: '⇔'; }
.cmp-tag {
  position: absolute; top: 14px; font-size: 11px; letter-spacing: .16em;
  background: rgba(27,24,19,.72); color: #fff; border-radius: 5px; padding: 3px 10px;
  pointer-events: none; font-family: var(--font-mono);
}
.tag-l { left: 14px; }
.tag-r { right: 14px; background: var(--accent); }

.cmp-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
.cmp-tab {
  font: inherit; font-size: 13px; cursor: pointer; min-height: 40px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: transparent; color: var(--ink-60); padding: 7px 18px;
  transition: all var(--t-fast);
}
.cmp-tab:hover { border-color: var(--accent); color: var(--accent); }
.cmp-tab.on { background: var(--accent); border-color: var(--accent); color: #fff; }

.cmp-cap { max-width: 640px; margin: 14px auto 0; text-align: center; font-size: 13.5px; color: var(--ink-60); }
.cmp-cap b { color: var(--ink); margin-right: 8px; }

@media (max-width: 560px) {
  .cmp-tabs { overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start; padding-bottom: 6px; }
  .cmp-tab { flex: 0 0 auto; }
}

/* ── 滑块画廊结束 ── */

.case-cap {
  display: block; font-size: 11px; letter-spacing: .14em;
  color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 999px; padding: 3px 11px; margin-bottom: 10px; width: fit-content;
}

.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }
.cap-item {
  background: #fff; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm);
  padding: 16px 15px; font-size: 12.5px; color: var(--ink-60); line-height: 1.55;
}
.cap-item b { display: block; color: var(--ink); font-size: 13px; margin-bottom: 4px; letter-spacing: .02em; }

/* ── 三步 ── */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 36px; }
.step3 { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.step3-no {
  font-family: var(--font-display); font-size: 30px; color: var(--accent);
  display: inline-grid; place-items: center; width: 48px; height: 48px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 50%;
  margin-bottom: 14px;
}
.step3 h3 { font-size: 16.5px; margin-bottom: 8px; }
.step3 p { font-size: 13.5px; color: var(--ink-60); }

/* ── 交付物 ── */
.deliver-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
.dl {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 22px 18px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--ink-60);
}
.dl-num { font-family: var(--font-display); font-size: 38px; color: var(--accent); line-height: 1; }

/* ── 价格 ── */
.price-card { max-width: 480px; margin-top: 36px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 30px 24px; box-shadow: 0 24px 64px rgba(27,24,19,.08); }
.price-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.price-name { font-size: 15px; font-weight: 600; }
.price-val { font-family: var(--font-display); font-size: 40px; color: var(--accent); }
.price-val small { font-size: 14px; color: var(--ink-60); font-family: var(--font-body); }
.price-list { list-style: none; margin-bottom: 22px; }
.price-list li { padding: 7px 0 7px 24px; position: relative; font-size: 14px; border-bottom: 1px dashed var(--line); }
.price-list li::before { content: ''; position: absolute; left: 2px; top: 14px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.price-note { margin-top: 14px; font-size: 12.5px; color: var(--ink-40); }

/* ── FAQ ── */
.faq { margin-top: 30px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 18px 0; font-size: 15.5px; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 20px; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 0 18px; font-size: 14px; color: var(--ink-60); max-width: 46em; }

/* ── 试用申请 ── */
.section-apply { padding-bottom: 96px; }
.apply-card { max-width: 560px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 5vw, 44px); box-shadow: 0 24px 64px rgba(27,24,19,.10); }
.apply-form { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.field-input {
  font: inherit; font-size: 15px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 15px; color: var(--ink); min-height: 48px;
}
.field-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(108,59,244,.16); }
.apply-msg { min-height: 22px; font-size: 13.5px; color: var(--ink-60); text-align: center; }
.apply-msg.ok { color: #1D7A46; }
.apply-msg.err { color: #C0392B; }

/* ── 页脚 ── */
.footer {
  border-top: 1px solid var(--line); padding: 26px clamp(20px, 5vw, 56px);
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center;
  font-size: 13px; color: var(--ink-60);
}
.footer a { color: var(--ink-60); }
.footer .sep { color: var(--line); }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero > *, .sec-title, .gallery .case, .steps3 .step3 { animation: rise 420ms var(--ease) both; }
.gallery .case:nth-child(2), .steps3 .step3:nth-child(2) { animation-delay: 70ms; }
.gallery .case:nth-child(3), .steps3 .step3:nth-child(3) { animation-delay: 140ms; }
.gallery .case:nth-child(4) { animation-delay: 210ms; }
.gallery .case:nth-child(5) { animation-delay: 280ms; }
.gallery .case:nth-child(6) { animation-delay: 350ms; }

@media (max-width: 860px) {
  .nav { display: none; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .steps3 { grid-template-columns: 1fr; }
  .deliver-grid { grid-template-columns: 1fr 1fr; }
  .brand-sub { display: none; }
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; }
  .topbar-cta .btn-ghost { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
