/* ==========================================================================
   博狗BOGO中国站 · 共享样式 /assets/site.css
   设计语言：翻旧的预约手册 × 实时电子公告牌
   ========================================================================== */

/* ---------- 1. 重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img, svg, video {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

main { display: block; }

/* ---------- 2. 变量 ---------- */
:root {
  /* 品牌色 */
  --ink: #0E3B2E;
  --ink-deep: #082A21;
  --gold: #D8B56A;
  --gold-soft: #F0DDB0;
  --paper: #F6F0E3;
  --paper-white: #FFFBF3;
  --cyan: #19C3B1;
  --brick: #C64B35;
  --text: #221C18;
  --text-soft: #6C6459;
  --mist: #8FA79A;

  /* 线条与阴影 */
  --line: rgba(34, 28, 24, 0.14);
  --line-strong: rgba(34, 28, 24, 0.28);
  --line-gold: rgba(216, 181, 106, 0.42);
  --shadow-card: 0 1px 0 rgba(34, 28, 24, 0.05), 0 10px 26px -22px rgba(8, 42, 33, 0.6);

  /* 形状 */
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  /* 尺度 */
  --maxw: 1240px;
  --gutter: clamp(16px, 4vw, 48px);

  /* 字体 */
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Roboto Mono", "DejaVu Sans Mono", "Courier New", monospace;
}

/* ---------- 3. 基础排版 ---------- */
body {
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 14% -8%, rgba(216, 181, 106, 0.20), transparent 52%),
    radial-gradient(circle at 96% 4%, rgba(25, 195, 177, 0.08), transparent 46%),
    repeating-linear-gradient(0deg, rgba(34, 28, 24, 0.024) 0 1px, transparent 1px 5px);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: 0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--ink-deep);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.022em;
}

h1 { font-size: clamp(30px, 4.4vw, 52px); }
h2 { font-size: clamp(23px, 2.9vw, 34px); }
h3 { font-size: clamp(18px, 2.1vw, 23px); }
h4 { font-size: 17px; letter-spacing: -0.01em; }

p { line-height: 1.78; }

a {
  color: var(--ink);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -72px;
  left: 16px;
  z-index: 200;
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: var(--ink-deep);
  font-weight: 800;
  text-decoration: none;
  transition: top 0.18s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- 4. 布局工具 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid {
  display: grid;
  gap: var(--gap, 20px);
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

@media (max-width: 760px) {
  .grid--2,
  .grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.stack > * + * {
  margin-top: var(--stack, 16px);
}

.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.85;
}

.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 1.9em; }
.prose h3 { margin-top: 1.6em; }
.prose ul,
.prose ol {
  padding-left: 1.35em;
}
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4em; }

/* ---------- 5. 通用组件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.btn--primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper-white);
  box-shadow: 0 3px 0 var(--gold);
}

.btn--primary:hover {
  background: var(--ink-deep);
  border-color: var(--ink-deep);
  transform: translateY(-2px);
}

.btn--quiet {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn--quiet:hover {
  background: var(--gold-soft);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink-deep);
}

.btn--gold:hover {
  background: var(--gold-soft);
  transform: translateY(-2px);
}

.btn--accent {
  background: var(--brick);
  border-color: var(--brick);
  color: #FFF7F2;
}

.btn--accent:hover {
  background: #A93A26;
  border-color: #A93A26;
  transform: translateY(-2px);
}

.btn:active { transform: translateY(0); }

.panel {
  background: var(--paper-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(18px, 2.6vw, 30px);
  box-shadow: var(--shadow-card);
}

.panel--ink {
  background: var(--ink);
  border-color: rgba(216, 181, 106, 0.24);
  color: var(--paper-white);
}

.panel--ink h2,
.panel--ink h3 { color: var(--gold-soft); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 13px;
  border-radius: var(--radius-pill);
  background: var(--gold-soft);
  color: var(--ink-deep);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

.tag--accent {
  background: var(--brick);
  color: #FFF7F2;
}

.tag--cyan {
  background: var(--cyan);
  color: #04231D;
}

.num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 32px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  background: var(--gold);
  color: var(--ink-deep);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

.eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brick);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: clamp(18px, 3vw, 30px);
}

.section-head__title {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink-deep);
}

.section-head__note {
  font-size: 13.5px;
  color: var(--text-soft);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 18px 0 6px;
  font-size: 13px;
  color: var(--text-soft);
}

.breadcrumb a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}

.breadcrumb a:hover {
  color: var(--brick);
  border-color: var(--brick);
}

.breadcrumb > * + *::before {
  content: "/";
  margin-right: 8px;
  color: var(--mist);
}

.breadcrumb span[aria-current] {
  color: var(--text-soft);
}

/* 图片容器基础规则（页面阶段放置占位图） */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius-lg);
  background: var(--gold-soft);
  aspect-ratio: 16 / 10;
}

.media-frame img,
.media-frame picture {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(155deg, rgba(14, 59, 46, 0.10), rgba(216, 181, 106, 0.16));
}

.media-frame figcaption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 16px 20px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--paper-white);
  background: linear-gradient(transparent, rgba(8, 42, 33, 0.86));
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }

/* ---------- 6. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--paper);
  isolation: isolate;
}

/* 报头层 */
.masthead {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.masthead__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 16px var(--gutter) 14px;
  transition: padding 0.22s ease;
}

.masthead__kicker {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  justify-self: start;
}

.masthead__kicker .mono {
  color: var(--brick);
  font-weight: 700;
}

.masthead__edition {
  justify-self: end;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  text-align: right;
}

.masthead__edition .mono {
  color: var(--ink);
  font-weight: 700;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  justify-self: center;
  text-decoration: none;
}

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: var(--ink);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: width 0.22s ease, height 0.22s ease, font-size 0.22s ease, border-radius 0.22s ease;
}

.brand__word {
  font-size: clamp(19px, 2.3vw, 26px);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--ink-deep);
  transition: font-size 0.22s ease;
}

.brand:hover .brand__word { color: var(--ink); }

/* 导航条层 */
.header-bar {
  background: var(--paper-white);
  box-shadow: 0 1px 0 var(--gold), 0 10px 22px -22px rgba(8, 42, 33, 0.9);
}

.header-bar__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "announce nav actions";
  align-items: center;
  gap: 12px 18px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 10px var(--gutter);
  transition: padding 0.22s ease;
}

.rail-pill {
  grid-area: announce;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--brick);
  color: #FFF6F1;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.18s ease, transform 0.16s ease;
}

.rail-pill:hover {
  background: #A93A26;
  color: #FFF6F1;
  transform: translateY(-1px);
}

.primary-nav {
  grid-area: nav;
  justify-self: center;
  min-width: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2px;
}

.nav-link {
  display: inline-block;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.nav-link:hover {
  background: var(--gold-soft);
  color: var(--ink-deep);
}

.nav-link[aria-current="page"] {
  background: var(--ink);
  color: var(--gold-soft);
}

.nav-link[aria-current="page"]:hover {
  background: var(--ink-deep);
  color: var(--gold-soft);
}

.header-actions {
  grid-area: actions;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-actions .btn {
  padding: 9px 18px;
  font-size: 14px;
}

/* 折叠开关 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--paper-white);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 16px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* 滚动压缩 */
.site-header[data-shrank="true"] .masthead__inner {
  padding-top: 6px;
  padding-bottom: 6px;
}

.site-header[data-shrank="true"] .brand__word { font-size: 17px; }

.site-header[data-shrank="true"] .brand__mark {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  font-size: 11px;
}

.site-header[data-shrank="true"] .masthead__kicker,
.site-header[data-shrank="true"] .masthead__edition {
  opacity: 0.72;
}

.site-header[data-shrank="true"] .header-bar__inner {
  padding-top: 7px;
  padding-bottom: 7px;
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  isolation: isolate;
  margin-top: clamp(48px, 8vw, 96px);
  background: var(--ink-deep);
  color: rgba(240, 221, 176, 0.86);
  border-top: 6px solid var(--gold);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(760px 340px at 10% -12%, rgba(25, 195, 177, 0.16), transparent 70%),
    radial-gradient(680px 320px at 94% 0%, rgba(216, 181, 106, 0.16), transparent 72%);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  gap: clamp(28px, 4vw, 60px);
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 76px) var(--gutter) clamp(26px, 4vw, 40px);
}

.footer-lead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--gold);
  color: var(--ink-deep);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.footer-brand__name {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--paper-white);
}

.footer-brand__line {
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(240, 221, 176, 0.78);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 32px);
}

.footer-col__title {
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-gold);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.footer-list {
  display: grid;
  gap: 9px;
}

.footer-link {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 251, 243, 0.88);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.footer-link:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.footer-contact {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px 28px;
  margin-top: 6px;
  padding-top: 24px;
  border-top: 1px solid var(--line-gold);
}

.footer-contact__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.footer-contact__label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.footer-contact__value {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  color: rgba(255, 251, 243, 0.9);
  overflow-wrap: anywhere;
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 16px var(--gutter) 28px;
  border-top: 1px solid rgba(216, 181, 106, 0.20);
  font-size: 13px;
  color: rgba(240, 221, 176, 0.62);
}

.footer-legal { line-height: 1.6; }

/* ---------- 8. 返回顶部进度环 ---------- */
.to-top {
  position: fixed;
  right: clamp(12px, 3vw, 28px);
  bottom: clamp(12px, 3vw, 28px);
  z-index: 80;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid rgba(216, 181, 106, 0.55);
  border-radius: 50%;
  background: var(--ink-deep);
  color: var(--gold);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.to-top svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.to-top__ring {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.to-top__arrow {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

/* ---------- 9. 响应式 ---------- */
@media (max-width: 1080px) {
  .nav-link {
    padding: 8px 10px;
    font-size: 14px;
  }
  .header-actions .btn {
    padding: 8px 14px;
    font-size: 13px;
  }
}

@media (max-width: 899px) {
  html { scroll-padding-top: 88px; }

  .masthead__inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px var(--gutter);
  }

  .masthead__kicker,
  .masthead__edition {
    display: none;
  }

  .brand {
    justify-self: center;
  }

  .header-bar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    padding: 9px var(--gutter);
  }

  .rail-pill {
    order: 1;
    justify-self: auto;
  }

  .nav-toggle {
    order: 2;
    display: inline-flex;
    margin-left: auto;
  }

  .primary-nav {
    order: 3;
    flex-basis: 100%;
    display: none;
    justify-self: stretch;
    max-height: 68vh;
    overflow-y: auto;
    padding-top: 6px;
  }

  .primary-nav[data-open="true"] {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
  }

  .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    font-size: 16px;
  }

  .nav-link[aria-current="page"] {
    border-color: var(--ink);
  }

  .header-actions {
    order: 4;
    flex-basis: 100%;
    display: none;
    justify-self: stretch;
    gap: 10px;
    padding-top: 6px;
  }

  .primary-nav[data-open="true"] ~ .header-actions {
    display: flex;
  }

  .header-actions .btn {
    flex: 1 1 0;
    padding: 11px 12px;
    font-size: 14px;
  }

  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  body { font-size: 16px; }

  .footer-nav {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .site-footer__base {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- 10. 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
