/* ============================================================
   追梦人传媒 dreamer.com.cn — 全站基础样式
   设计语言：高端 / 现代 / 克制 / 专业 · 品牌咨询 + 创意内容 + 影像 + 媒体传播 + AI增长
   配色：追梦红橙 / 深海军蓝 / 暖白 · 红橙小面积高频强调
   ============================================================ */

/* ---------- 设计令牌 ---------- */
:root {
  --brand: #F23B1D;
  --brand-hover: #D93318;
  --brand-dark: #D93318;
  --navy: #102338;
  --navy-dark: #0A1928;
  --text-main: #172536;
  --text-secondary: #6D7680;
  --bg: #FFFFFF;
  --bg-soft: #FAF8F5;
  --border: #E8E6E2;
  --tag-bg: #F4F3F1;

  --ink: var(--text-main);
  --ink-2: #28394B;
  --text: var(--text-main);
  --muted: var(--text-secondary);
  --line: var(--border);
  --line-strong: #D7D3CC;
  --bg-mist: var(--tag-bg);

  --primary: var(--navy);
  --primary-deep: var(--navy-dark);
  --primary-soft: #EEF2F5;
  --primary-ink: var(--navy);
  --accent: var(--brand);
  --accent-deep: var(--brand);
  --accent-soft: #FFF0EB;

  /* 品牌识别红橙：Logo、CTA、图标与交互统一 */
  --brand-deep: var(--brand-dark);
  --brand-soft: #FFF0EB;
  --cta: var(--brand);
  --cta-deep: var(--brand-dark);
  --cta-soft: #FFF0EB;

  --dark: var(--navy-dark);
  --dark-2: var(--navy);
  --dark-3: #183149;
  --dark-text: #EDF0F5;
  --dark-muted: rgba(237, 240, 245, 0.60);
  --dark-line: rgba(255, 255, 255, 0.12);

  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 2px rgba(26, 35, 48, 0.05);
  --shadow-md: 0 2px 6px rgba(26, 35, 48, 0.05), 0 16px 32px -18px rgba(26, 35, 48, 0.14);
  --shadow-lg: 0 4px 12px rgba(26, 35, 48, 0.07), 0 24px 56px -22px rgba(26, 35, 48, 0.18);

  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Noto Serif SC", "Songti SC", "STSong", "SimSun", "Source Han Serif SC", serif;
  --container: 1200px;
  --nav-h: 68px;
}

/* ---------- 重置与基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5 { margin: 0; color: var(--ink); font-weight: 700; line-height: 1.28; }
h1, h2 { font-family: var(--font-display); font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
[id] { scroll-margin-top: calc(var(--nav-h) + 24px); }

::selection { background: var(--brand); color: #fff; }

/* 容器与栅格 */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--wide { max-width: 1360px; }

/* 区块 */
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
.section--mist { background: var(--bg-mist); }
.section--dark { background: var(--dark); color: var(--dark-text); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--tight { padding: 64px 0; }

/* 标题区 */
.sec-head { max-width: 760px; margin-bottom: 56px; }
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--brand); margin-bottom: 16px;
}
.sec-eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--brand); border-radius: 2px; }
.sec-head--center .sec-eyebrow::after { content: ""; width: 24px; height: 2px; background: var(--brand); border-radius: 2px; }
.sec-title { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; letter-spacing: -0.01em; line-height: 1.24; }
.sec-sub { margin-top: 14px; font-size: 16px; color: var(--text); max-width: 640px; }
.sec-head--center .sec-sub { margin-left: auto; margin-right: auto; }
.section--dark .sec-eyebrow { color: var(--brand); }
.section--dark .sec-sub { color: var(--dark-muted); }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 26px; border-radius: 10px;
  font-size: 15px; font-weight: 600; color: #fff;
  background: var(--cta); border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--cta-deep); transform: translateY(-2px); box-shadow: 0 12px 28px -12px rgba(242, 59, 29, .52); }
.btn:active { transform: translateY(0); }
.btn--lg { height: 54px; padding: 0 34px; font-size: 16px; border-radius: 12px; }
.btn--sm { height: 38px; padding: 0 18px; font-size: 14px; border-radius: 8px; }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.32); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); box-shadow: none; }
.btn--outline { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--brand); color: var(--brand); box-shadow: var(--shadow-sm); background: #fff; }
.btn--light { background: var(--brand); color: #fff; }
.btn--light:hover { background: var(--brand-deep); box-shadow: 0 12px 28px -12px rgba(242, 59, 29, .48); }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* 链接箭头 */
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--primary-ink);
  transition: color .2s ease, gap .2s ease;
}
.link-arrow:hover { color: var(--brand); gap: 10px; }
.link-arrow .arr { font-size: 16px; line-height: 1; }

/* 标签 / 胶囊 */
.pill {
  display: inline-flex; align-items: center;
  height: 32px; padding: 0 14px; border-radius: 999px;
  font-size: 13px; color: var(--ink-2); background: #fff;
  border: 1px solid var(--line-strong); transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.pill:hover { border-color: var(--brand); color: var(--brand); }
.chip {
  display: inline-flex; align-items: center;
  height: 30px; padding: 0 12px; border-radius: 8px;
  font-size: 12.5px; color: var(--text); background: var(--bg-soft); border: 1px solid var(--line);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.chip:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.tag {
  display: inline-flex; align-items: center; height: 26px; padding: 0 11px;
  font-size: 12px; font-weight: 600; color: var(--brand);
  background: var(--brand-soft); border-radius: 6px;
}
.tag--dark { color: #fff; background: rgba(22, 50, 79, .22); }

/* 面包屑 */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); transition: color .2s; }
.crumbs a:hover { color: var(--primary-ink); }
.crumbs .sep { color: var(--line-strong); }
.crumbs .now { color: var(--ink-2); font-weight: 600; }

/* ============================================================
   顶部导航
   ============================================================ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h); background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s ease, box-shadow .25s ease;
}
.site-nav.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 10px rgba(15,22,32,.05); }
.nav-inner { display: flex; align-items: center; height: var(--nav-h); gap: 32px; }

.nav-logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.site-nav .nav-logo > img { width: 36px !important; height: 36px !important; border-radius: 8px; }
.nav-logo .mark { width: 36px; height: 36px; border-radius: 10px; background: var(--primary); display: grid; place-items: center; }
.nav-logo .word { display: flex; flex-direction: column; line-height: 1.15; }
.nav-logo .word b { font-size: 16px; font-weight: 800; color: var(--ink); letter-spacing: .02em; }
.nav-logo .word i { font-style: normal; font-size: 9px; letter-spacing: .18em; color: #9aa3ad; font-weight: 400; display: block; margin-top: 3px; }

.nav-menu { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  height: 44px; padding: 0 16px; border-radius: 8px;
  font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  transition: color .2s ease, background .2s ease;
}
.nav-link:hover, .nav-item.is-active > .nav-link { color: var(--brand); background: var(--brand-soft); }
.nav-link .chev { width: 9px; height: 9px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; margin-top: -2px; }
.nav-item:hover > .nav-link .chev { transform: rotate(225deg) translateY(-1px); }

/* 下拉面板 */
.drop {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 232px; padding: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.drop::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav-item:hover > .drop, .nav-item.is-open > .drop { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.drop--wide { min-width: 420px; }
.drop--grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; min-width: 460px; }
.drop a {
  display: flex; align-items: flex-start; flex-direction: column; gap: 2px;
  padding: 10px 12px; border-radius: 9px; transition: background .18s ease;
}
.drop a:hover { background: var(--brand-soft); }
.drop a:hover b { color: var(--brand); }
.drop a b { font-size: 14px; font-weight: 600; color: var(--ink); }
.drop a span { font-size: 12px; color: var(--muted); }
.drop .drop-label { display: block; padding: 8px 12px 4px; font-size: 11.5px; color: var(--muted); letter-spacing: .08em; }

.nav-cta { margin-left: 8px; flex-shrink: 0; }

/* 移动端导航 */
.nav-toggle { display: none; }
.mobile-panel {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; z-index: 99;
  background: #fff; overflow-y: auto; padding: 12px 20px 48px;
  border-top: 1px solid var(--line);
}
.mobile-panel.is-open { display: block; }
.m-group { border-bottom: 1px solid var(--line); }
.m-head {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 15px 4px; font-size: 15.5px; font-weight: 600; color: var(--ink);
  background: none; border: none;
}
.m-head .chev { width: 8px; height: 8px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(45deg); transition: transform .2s ease; }
.m-group.is-open .m-head .chev { transform: rotate(225deg); }
.m-sub { display: none; padding: 0 4px 12px; }
.m-group.is-open .m-sub { display: block; }
.m-sub a { display: block; padding: 9px 4px; font-size: 14px; color: var(--text); }
.m-sub a:hover { color: var(--brand); }
.m-link { display: block; padding: 15px 4px; font-size: 15.5px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-panel .m-cta { margin-top: 20px; }
body.nav-lock { overflow: hidden; }

/* ============================================================
   页脚
   ============================================================ */
.site-footer { background: var(--dark); color: var(--dark-muted); font-size: 13.5px; }
.footer-main { padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2.1fr 1fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand .nav-logo .word b { color: #fff; }
.footer-brand .nav-logo .word i { color: rgba(255,255,255,.42); }
.footer-brand p { margin-top: 16px; max-width: 300px; font-size: 13px; line-height: 1.9; }
.footer-brand .f-stats { display: flex; gap: 22px; margin-top: 22px; flex-wrap: wrap; }
.footer-brand .f-stats b { display: block; font-size: 18px; color: #fff; font-weight: 700; }
.footer-brand .f-stats span { font-size: 12px; color: var(--brand); }
.f-col h4 { font-size: 14px; color: #fff; font-weight: 600; margin-bottom: 18px; }
.f-col a { display: block; padding: 5px 0; color: var(--dark-muted); transition: color .2s ease; }
.f-col a:hover { color: var(--brand); }
.f-links { border-top: 1px solid var(--dark-line); padding: 22px 0; display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: center; }
.f-links b { font-size: 13px; color: rgba(255,255,255,.6); font-weight: 500; }
.f-links a { font-size: 12.5px; color: rgba(255,255,255,.4); transition: color .2s; }
.f-links a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid var(--dark-line); padding: 20px 0 28px; display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; justify-content: space-between; font-size: 12.5px; color: rgba(255,255,255,.42); }
.footer-bottom a { color: rgba(255,255,255,.55); transition: color .2s; }
.footer-bottom a:hover { color: var(--brand); }

/* 悬浮咨询按钮 */
.float-cta {
  position: fixed; right: 24px; bottom: 40px; z-index: 90;
  display: inline-flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: 14px; font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 12px 30px -8px rgba(242, 59, 29, .45);
  transition: transform .2s ease, background .2s ease;
}
.float-cta:hover { background: var(--brand-deep); transform: translateY(-2px); }
.float-cta .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(20px);
  z-index: 200; padding: 13px 22px; border-radius: 10px;
  background: var(--ink); color: #fff; font-size: 14px;
  opacity: 0; visibility: hidden; transition: all .3s ease;
  box-shadow: var(--shadow-lg); max-width: 88vw; text-align: center;
}
.toast.is-show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* ============================================================
   基础动效（JS 增强，无 JS 时内容默认可见）
   ============================================================ */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); transition-delay: var(--d, 0s); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .flow-line { transform: scaleX(0); transform-origin: left center; transition: transform 1.4s cubic-bezier(.22,.61,.36,1); }
html.js .flow-line.in { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
