/* ==========================================================================
   dy业务网 - 全站样式
   淡杏桃浅底 + 珊瑚/深棕（区别于站1-9 全部配色）
   目录清单式布局（区别于站7横幅时间线、站8分栏价格表、站9全屏hero案例卡）
   纯静态、零依赖、移动优先
   ========================================================================== */

:root {
  --bg: #fdf3ec;
  --bg-soft: #f9e9de;
  --bg-deep: #f4ddcd;
  --card: #ffffff;
  --card-soft: #fffaf5;
  --line: #eed6c6;
  --line-strong: #dfb89d;
  --ink: #33221a;
  --ink-dim: #6d5445;
  --ink-mute: #a08674;
  --coral: #e8635a;
  --coral-deep: #c7453d;
  --brown: #7a4a30;
  --grad: linear-gradient(120deg, #e8635a 0%, #e8825a 50%, #7a4a30 100%);
  --grad-soft: linear-gradient(120deg, rgba(232, 99, 90, .10), rgba(122, 74, 48, .10));
  --radius: 14px;
  --radius-sm: 9px;
  --max: 1080px;
  --shadow: 0 12px 34px rgba(122, 74, 48, .10);
  --shadow-sm: 0 5px 18px rgba(122, 74, 48, .07);
  --header-h: 66px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

.shell { max-width: var(--max); margin: 0 auto; padding: 0 22px; }

a { color: var(--coral); text-decoration: none; }
a:hover { color: var(--coral-deep); }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(253, 243, 236, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.topbar.scrolled { box-shadow: 0 8px 24px rgba(122, 74, 48, .08); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; }
.logo-mark {
  width: 14px; height: 14px;
  border-radius: 3px;
  transform: rotate(-45deg);
  background: var(--grad);
}
.logo-name { font-size: 17px; letter-spacing: .5px; }

.menu { display: flex; gap: 26px; }
.menu a { color: var(--ink-dim); font-size: 14.5px; transition: color .2s; }
.menu a:hover { color: var(--coral-deep); }

@media (max-width: 640px) {
  .menu { gap: 14px; }
  .menu a { font-size: 13px; }
}

/* ---------- 站点横幅 ---------- */
.masthead {
  padding: 80px 0 60px;
  text-align: center;
  background:
    radial-gradient(720px 340px at 50% -5%, rgba(232, 99, 90, .12), transparent 60%),
    var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.masthead h1 {
  font-size: clamp(34px, 6vw, 52px);
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 16px;
  color: var(--ink);
}
.masthead h1::after {
  content: ""; display: block;
  width: 64px; height: 4px;
  margin: 18px auto 0;
  border-radius: 2px;
  background: var(--grad);
}
.masthead-sub { max-width: 640px; margin: 0 auto; color: var(--ink-dim); font-size: 16.5px; }
.masthead-actions { margin-top: 30px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 34px;
  border-radius: 999px;
  font-size: 15.5px; font-weight: 700;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn-solid {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 10px 26px rgba(232, 99, 90, .32);
}
.btn-solid:hover { transform: translateY(-2px); background: var(--coral-deep); color: #fff; box-shadow: 0 14px 32px rgba(232, 99, 90, .42); }

/* 快速索引条 */
.quick-index {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 12px;
  margin-top: 40px;
}
.quick-index a {
  padding: 8px 24px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 14px; font-weight: 600;
  color: var(--brown);
  background: var(--card);
  transition: all .2s;
}
.quick-index a:hover { background: var(--coral); border-color: var(--coral); color: #fff; }

/* ---------- 区块 ---------- */
.sec { padding: 68px 0; }
.sec-alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.sec-title { font-size: clamp(24px, 4vw, 30px); font-weight: 800; margin-bottom: 12px; text-align: center; }
.sec-lead { text-align: center; color: var(--ink-dim); max-width: 600px; margin: 0 auto 40px; }

/* ---------- 分类目录 ---------- */
.cat-head {
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--line);
}
.cat-no {
  font-size: 40px; font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--coral);
  letter-spacing: 1px;
}
.cat-head h2 { font-size: 23px; font-weight: 800; }
.cat-head p { font-size: 14px; color: var(--ink-dim); }

.cat-list { display: grid; gap: 14px; }
.cat-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--coral);
  border-radius: var(--radius-sm);
  padding: 18px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s, border-color .22s;
}
.cat-item:hover { transform: translateX(6px); border-left-color: var(--brown); }
.cat-item h3 { font-size: 16.5px; margin-bottom: 4px; }
.cat-item p { font-size: 14px; color: var(--ink-dim); }

/* ---------- 目录总览表 ---------- */
.dir-table {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.dir-row {
  display: grid;
  grid-template-columns: 0.7fr 2fr 0.9fr 0.6fr;
  gap: 14px; align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.dir-row:last-child { border-bottom: none; }
.dir-head {
  background: var(--bg-soft);
  font-size: 13px; letter-spacing: 1.5px;
  color: var(--brown);
  font-weight: 700;
}
.dir-row > span:first-child { font-weight: 700; color: var(--ink); }
.dir-row > span:nth-child(2) { color: var(--ink-dim); }
.dir-row > span:nth-child(3) { color: var(--coral-deep); font-weight: 600; }
.dir-row a {
  justify-self: end;
  padding: 6px 18px;
  background: var(--coral);
  color: #fff;
  border-radius: 999px;
  font-size: 13px; font-weight: 700;
  white-space: nowrap;
  transition: background .2s;
}
.dir-row a:hover { background: var(--coral-deep); color: #fff; }

@media (max-width: 720px) {
  .dir-row { grid-template-columns: 1fr 1fr; }
  .dir-head { display: none; }
  .dir-row > span:nth-child(2) { grid-column: 1 / -1; }
}

/* ---------- 答疑 ---------- */
.ask-list { max-width: 780px; margin: 0 auto; display: grid; gap: 14px; }
.ask-list details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  transition: border-color .2s;
}
.ask-list details[open] { border-color: var(--line-strong); }
.ask-list summary { cursor: pointer; font-weight: 700; font-size: 16px; list-style: none; }
.ask-list summary::-webkit-details-marker { display: none; }
.ask-list summary::after { content: "+"; float: right; color: var(--coral); font-size: 20px; font-weight: 700; }
.ask-list details[open] summary::after { content: "−"; }
.ask-list details p { margin-top: 12px; color: var(--ink-dim); font-size: 14.5px; }

/* ---------- 底部 CTA ---------- */
.cta-band {
  padding: 74px 0;
  text-align: center;
  background:
    radial-gradient(640px 300px at 50% 100%, rgba(232, 99, 90, .14), transparent 65%),
    var(--bg-deep);
  border-top: 1px solid var(--line);
}
.cta-band h2 { font-size: clamp(24px, 4vw, 30px); font-weight: 800; margin-bottom: 12px; }
.cta-band p { color: var(--ink-dim); margin-bottom: 30px; }

/* ---------- 页脚 ---------- */
.foot { border-top: 1px solid var(--line); padding: 34px 0; background: var(--bg-deep); }
.foot-inner { text-align: center; display: grid; gap: 10px; }
.foot-menu { display: flex; justify-content: center; gap: 22px; }
.foot-menu a { color: var(--ink-mute); font-size: 14px; }
.foot-menu a:hover { color: var(--coral-deep); }
.foot-note { color: var(--ink-mute); font-size: 12.5px; }

/* ---------- 入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.body-404 { display: flex; align-items: center; justify-content: center; min-height: 100vh; text-align: center; }
.box-404 h1 {
  font-size: 88px; font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.box-404 p { color: var(--ink-dim); margin: 14px 0 28px; }
