/* Towkay AI 头家AI — 颜色取自 logo D（头家印） */
:root {
  --paper: #F3EEE4;
  --paper-2: #EAE2D3;
  --card: #FBF8F2;
  --ink: #1E1A15;
  --ink-2: #5A5148;
  --line: #D6CCBA;
  --red: #C0241F;
  --red-d: #9E1C18;
  --blue: #305567;
  --brown: #8C5938;
  --chat: #E6DDCD;
  --in: #FFFFFF;
  --out: #DCEFD6;
  --serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --r: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h2 { font: 900 clamp(28px, 4.2vw, 44px)/1.25 var(--serif); letter-spacing: -0.01em; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0; }
br.m { display: none; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: 17px; text-decoration: none;
  border: 2px solid transparent; transition: transform .15s, background .15s;
}
.btn:active { transform: scale(.97); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-d); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-sm { padding: 9px 18px; font-size: 15px; }

/* 页首 */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(243, 238, 228, .94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand-name { font: 900 20px/1 var(--serif); }
.brand-name b { font-weight: 700; margin-left: 4px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink-2); font-weight: 500; }
.nav a:hover { color: var(--red); }

/* 首屏 */
.hero {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: clamp(24px, 4vw, 64px);
  max-width: 1200px; margin: 0 auto;
  padding: clamp(40px, 7vw, 96px) clamp(16px, 4vw, 48px);
}
.eyebrow { color: var(--brown); font-weight: 700; letter-spacing: .08em; margin-bottom: 14px; }
.hero h1 { font: 900 clamp(40px, 6.4vw, 76px)/1.15 var(--serif); letter-spacing: -0.02em; }
.hl { color: var(--red); }
.lead { margin-top: 22px; font-size: 19px; color: var(--ink-2); max-width: 30em; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 24px 0 0; color: var(--ink-2); font-size: 15px; }
.hero-points li::before { content: "✓ "; color: var(--red); font-weight: 700; }

/* 示范区 */
.demo { position: relative; width: 100%; max-width: 560px; height: 540px; justify-self: center; }
.demo-tag {
  position: absolute; left: 0; bottom: -30px; font-size: 13px; color: var(--ink-2);
}
.phone {
  position: absolute; left: 0; top: 20px; width: 58%; height: 470px;
  background: var(--chat); border: 10px solid var(--ink); border-radius: 34px;
  overflow: hidden; box-shadow: 0 24px 50px rgba(30, 26, 21, .22);
  display: flex; flex-direction: column;
}
.phone-head {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 14px 12px; background: var(--blue); color: #fff; font-weight: 700; font-size: 14px;
}
.phone-head .dot { width: 26px; height: 26px; border-radius: 50%; background: url(seal.png) center/cover, #fff; }
.phone-head small { margin-left: auto; font-weight: 400; opacity: .8; }
.chat {
  flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  padding: 12px 10px; overflow: hidden;
}
.msg {
  max-width: 88%; padding: 7px 11px 8px; border-radius: 12px; font-size: 14px; line-height: 1.45;
  background: var(--in); box-shadow: 0 1px 1px rgba(0, 0, 0, .08);
}
.msg b { display: block; font-size: 12px; color: var(--brown); }
.msg.out { align-self: flex-end; background: var(--out); }
.msg.out small { display: block; text-align: right; font-size: 11px; color: var(--blue); }
.voice .wave { display: block; color: var(--blue); letter-spacing: 1px; white-space: nowrap; overflow: hidden; }
.voice em { display: block; font-style: normal; font-size: 12px; color: var(--ink-2); }
.slip {
  display: block; margin-top: 4px; padding: 8px 10px; transform: rotate(-2deg);
  background: #FFF9E8 repeating-linear-gradient(transparent 0 19px, #E8DCC0 19px 20px);
  font: 500 13px/20px "KaiTi", "STKaiti", var(--serif); color: #3A3128;
  border: 1px solid #E3D6B8;
}
.draft {
  position: relative; align-self: flex-end; width: 92%;
  padding: 10px 12px; border-radius: 12px; background: #fff; border: 2px dashed var(--blue);
  font-size: 14px; line-height: 1.45;
}
.draft small { display: block; font-size: 11px; color: var(--blue); font-weight: 700; }
.draft button {
  margin-top: 8px; width: 100%; padding: 7px; border: 0; border-radius: 8px;
  background: var(--blue); color: #fff; font: 700 14px var(--sans);
}
.stamp {
  position: absolute; right: 8px; top: 6px;
  padding: 4px 10px; border: 3px solid var(--red); border-radius: 6px;
  color: var(--red); font: 900 18px var(--serif); letter-spacing: .1em;
  transform: rotate(-12deg) scale(1.8); opacity: 0;
}
.sheet {
  position: absolute; right: 0; top: 0; width: 56%;
  background: var(--card); border-radius: var(--r); padding: 14px 14px 10px;
  border: 1px solid var(--line); box-shadow: 0 16px 36px rgba(30, 26, 21, .16);
  font-size: 13px;
}
.sheet-head { display: flex; align-items: baseline; font: 900 17px var(--serif); margin-bottom: 8px; }
.sheet-head small { margin-left: auto; font: 500 11px var(--sans); color: var(--red); }
.row {
  display: grid; grid-template-columns: 1.3fr 1.2fr .7fr; gap: 6px;
  padding: 6px 4px; border-top: 1px solid var(--line);
}
.row span:last-child { text-align: right; font-weight: 700; }
.row.th { color: var(--ink-2); font-size: 11px; border-top: 0; }
.report {
  position: absolute; right: 2%; bottom: 0; width: 62%;
  background: var(--ink); color: var(--paper); border-radius: var(--r);
  padding: 14px 16px; box-shadow: 0 20px 40px rgba(30, 26, 21, .3); font-size: 13px;
}
.report-head { font: 900 16px var(--serif); margin-bottom: 6px; color: #fff; }
.report ul { list-style: none; margin: 0; padding: 0; line-height: 1.8; }

/* 示范动画：JS 依时间加 .on / .off */
.demo [data-step] { opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s, background-color .6s; }
.demo [data-step].on { opacity: 1; transform: none; }
.demo .row[data-step].on { animation: flash 1.2s ease; }
.demo .draft.on.press button { background: var(--ink); transform: scale(.96); }
.demo .draft.on.press .stamp { animation: stamp .35s cubic-bezier(.3, 1.6, .5, 1) forwards; }
.demo .draft.off { display: none; }
.demo .report[data-step] { transform: translateY(24px); }
.demo .report[data-step].on { transform: none; }
@keyframes flash { 0% { background: #FCE3B0; } 100% { background: transparent; } }
@keyframes stamp { to { opacity: .92; transform: rotate(-12deg) scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .demo [data-step] { transition: none; animation: none !important; }
}

/* 段落 */
.band { padding: clamp(56px, 8vw, 104px) clamp(16px, 4vw, 48px); }
.band.alt { background: var(--paper-2); }
.wrap { max-width: 1120px; margin: 0 auto; }
.wrap.narrow { max-width: 760px; }
.label { display: flex; align-items: center; gap: 10px; color: var(--red); font-weight: 700; letter-spacing: .06em; margin-bottom: 12px; }
.label i { width: 12px; height: 12px; background: var(--red); border-radius: 2px; }
.band h2 { margin-bottom: 36px; }
.note { margin-top: 24px; color: var(--ink-2); font-size: 15px; }
.muted { color: var(--ink-2); margin-top: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* 收据卡（承诺） */
.receipt {
  position: relative; background: var(--card); padding: 30px 26px 34px;
  border-radius: 6px; box-shadow: 0 10px 26px rgba(30, 26, 21, .08);
  -webkit-mask: radial-gradient(circle 7px at 50% 100%, transparent 98%, #000) 0 0 / 18px 100% repeat-x;
          mask: radial-gradient(circle 7px at 50% 100%, transparent 98%, #000) 0 0 / 18px 100% repeat-x;
}
.receipt .no {
  display: inline-block; margin-bottom: 14px; padding: 2px 8px;
  border: 2px solid var(--red); color: var(--red); border-radius: 4px;
  font: 900 16px var(--serif); transform: rotate(-6deg);
}
.receipt h3 { font: 900 22px var(--serif); margin-bottom: 10px; }
.receipt p { color: var(--ink-2); }

/* 旅程 */
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: j; }
.journey li { position: relative; padding-top: 42px; }
.journey li::before {
  counter-increment: j; content: counter(j);
  position: absolute; top: 0; left: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: var(--paper); font: 700 15px/30px var(--sans); text-align: center;
}
.journey li:not(:last-child)::after {
  content: ""; position: absolute; top: 15px; left: 38px; right: -8px; border-top: 2px dashed var(--line);
}
.journey .t { position: absolute; top: 4px; left: 40px; padding: 0 6px; background: var(--paper); font-size: 13px; color: var(--brown); font-weight: 700; }
.journey h3 { margin-bottom: 6px; }
.journey p { color: var(--ink-2); font-size: 15px; }

/* 行业卡 */
.card { background: var(--card); border-radius: var(--r); padding: 28px 26px; border-top: 6px solid var(--blue); }
.card:nth-child(2) { border-top-color: var(--brown); }
.card:nth-child(3) { border-top-color: var(--red); }
.card h3 { font: 900 24px var(--serif); margin-bottom: 12px; }
.card ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); }
.card li + li { margin-top: 6px; }

/* 左右两栏 */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.split h2 { margin-bottom: 0; }
.lists { display: grid; gap: 18px; }
.list { background: var(--card); border-radius: var(--r); padding: 24px 26px; }
.list h3 { margin-bottom: 10px; }
.list ul { list-style: none; margin: 0; padding: 0; }
.list li { padding: 6px 0 6px 30px; position: relative; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list li::before { position: absolute; left: 0; font-weight: 900; }
.list.yes li::before { content: "✓"; color: #2E7D4F; }
.list.no li::before { content: "✕"; color: var(--red); }
.list.no { background: transparent; border: 2px solid var(--ink); }
.sub { margin: 26px 0 10px; }
.done { margin: 0; padding-left: 1.1em; color: var(--ink-2); }
.done li + li { margin-top: 6px; }

/* 合作步骤 */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { background: var(--card); border-radius: var(--r); padding: 26px 22px; }
.steps span {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px;
  background: var(--red); color: #fff; border-radius: 8px; font: 900 22px var(--serif); transform: rotate(-4deg);
}
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: 15px; }

/* 影片 */
.videos { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); gap: 28px; }
.videos video { width: 100%; aspect-ratio: 9 / 16; border-radius: var(--r); background: var(--ink); }
.videos figure { margin: 0; }
.videos figcaption { margin-top: 10px; font-weight: 700; }

/* 常见问题 */
details { border-top: 1px solid var(--line); padding: 4px 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 16px 36px 16px 0; font-weight: 700; font-size: 18px; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 26px; color: var(--red); }
details[open] summary::after { content: "–"; }
details p { padding: 0 0 18px; color: var(--ink-2); }

/* 联络 */
.cta { background: var(--ink); color: var(--paper); text-align: center; padding: clamp(64px, 9vw, 112px) 16px; }
.cta img { margin: 0 auto 20px; }
.cta h2 { color: #fff; margin-bottom: 14px; }
.cta p { color: #CFC6B8; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 30px 0 18px; }
.cta .btn-line { border-color: var(--paper); color: var(--paper); }
.cta .btn-line:hover { background: var(--paper); color: var(--ink); }
.cta .small { font-size: 14px; }
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  padding: 20px clamp(16px, 4vw, 48px); font-size: 14px; color: var(--ink-2);
}

/* 平板 */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .demo { margin-bottom: 30px; }
  .nav { display: none; }
  .top .btn { margin-left: auto; }
  .journey { grid-template-columns: 1fr; gap: 0; }
  .journey li { padding: 0 0 24px 50px; }
  .journey li::before { top: 2px; }
  .journey li:not(:last-child)::after { top: 38px; bottom: 4px; left: 14px; right: auto; border-top: 0; border-left: 2px dashed var(--line); }
  .journey .t { position: static; padding: 0; background: none; display: block; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
}

/* 手机 */
@media (max-width: 600px) {
  body { font-size: 16px; }
  br.m { display: inline; }
  .brand-name { font-size: 17px; }
  .brand img { width: 34px; height: 34px; }
  .lead { font-size: 17px; }
  .hero-btns .btn { flex: 1 1 100%; }
  .demo { height: 660px; }
  .phone { width: 74%; height: 420px; top: 0; }
  .sheet { width: 72%; top: 260px; font-size: 12px; padding: 12px 10px 8px; }
  .row { grid-template-columns: 1.3fr 1.2fr .6fr; gap: 4px; }
  .report { width: 88%; right: 6%; }
  .grid3, .steps { grid-template-columns: 1fr; }
  .videos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
