/* =========================================================
   爱游官网 · 共享外壳样式
   文件位置：/assets/site.css
   ========================================================= */

/* ---------- 00 · 重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.85;
  color: var(--ink);
  background-color: var(--sand);
  background-image:
    radial-gradient(circle at 50% 116%, rgba(21, 106, 147, .045) 0 45%, transparent 46%);
  background-size: 140px 70px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
address { font-style: normal; }

/* ---------- 01 · 变量 ---------- */
:root {
  /* 品牌色 */
  --deep: #0B3E63;
  --sea: #156A93;
  --shallow: #D9EAF3;
  --coral: #FF6B4A;
  --coral-light: #FFE2D8;
  --coral-deep: #D9441F;
  --palm: #2F9E6E;
  --palm-deep: #1F7A52;
  --sand: #FAF4E8;
  --sun: #FFC24B;
  --sun-deep: #8A5A00;
  --ink: #10222E;
  --stone: #6B7C88;
  --white: #FFFFFF;

  /* 语义映射 */
  --bg: var(--sand);
  --surface: var(--white);
  --line: rgba(11, 62, 99, .14);
  --line-soft: rgba(11, 62, 99, .08);

  /* 字体 */
  --font-sans: 'PingFang SC', 'HarmonyOS Sans SC', 'Noto Sans SC', 'Source Han Sans SC', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* 尺度 */
  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 48px);
  --read: 720px;
  --header-h: 76px;

  /* 形状 */
  --cut: 18px;
  --cut-lg: 22px;
  --radius: 20px;

  /* 阴影 */
  --shadow-1: 0 4px 14px rgba(11, 62, 99, .08);
  --shadow-2: 0 16px 28px rgba(11, 62, 99, .18);
  --shadow-3: 0 24px 48px rgba(11, 62, 99, .28);

  /* 缓动 */
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 02 · 排版 ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.02em;
  color: var(--deep);
  text-wrap: balance;
}

.display {
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.03em;
}

.page-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.025em;
}

.section-title {
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 700;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--deep);
}

.lede {
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.8;
  color: var(--stone);
  max-width: 62ch;
}

.text-sm { font-size: 14px; line-height: 1.7; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--sea);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--coral);
  flex: none;
}

/* ---------- 03 · 布局容器 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--read { max-width: calc(var(--read) + var(--gutter) * 2); }

.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(36px, 5vw, 64px); }
.section--shallow { background: var(--shallow); }

.section--deep {
  background: var(--deep);
  color: rgba(255, 255, 255, .78);
}
.section--deep h2,
.section--deep h3,
.section--deep .section-title { color: var(--white); }
.section--deep .lede { color: rgba(217, 234, 243, .8); }
.section--deep .eyebrow { color: var(--shallow); }

.page-head {
  padding-block: clamp(40px, 6vw, 76px) clamp(20px, 3vw, 36px);
}
.page-head .page-title { max-width: 20ch; }
.page-head .lede { margin-top: 18px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: clamp(24px, 3vw, 40px);
}

/* ---------- 04 · 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .01em;
  border: 2px solid transparent;
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}

.btn-primary {
  background: var(--coral);
  color: var(--ink);
}
.btn-primary:hover {
  background: var(--coral-deep);
  color: var(--white);
}
.btn-primary:active { background: var(--coral); transform: translateY(1px); }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--sea);
}
.btn-ghost:hover {
  background: var(--shallow);
  border-color: var(--sea);
  color: var(--deep);
}

/* ---------- 05 · 页头 ---------- */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 400;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  background: var(--deep);
  border-radius: 0 0 14px 14px;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(250, 244, 232, .94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: var(--wrap);
  min-height: var(--header-h);
  margin-inline: auto;
  padding: 12px var(--gutter);
}

/* 中段虚线航道，只在宽屏出现 */
.header-inner::before {
  content: "";
  order: 2;
  flex: 1 1 40px;
  min-width: 24px;
  height: 2px;
  align-self: center;
  margin-inline: clamp(10px, 2vw, 30px);
  background-image: repeating-linear-gradient(
    90deg,
    rgba(21, 106, 147, .38) 0 8px,
    transparent 8px 17px
  );
  transform: rotate(-.8deg);
  transform-origin: left center;
  pointer-events: none;
}

.brand {
  order: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand-mark {
  display: block;
  width: 46px;
  height: 22px;
  flex: none;
  color: var(--sea);
}
.brand-mark svg { width: 100%; height: 100%; }

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-name {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .06em;
  color: var(--deep);
}

.brand-tag {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: .05em;
  color: var(--stone);
}

/* 汉堡按钮 */
.nav-toggle {
  order: 3;
  display: none;
  align-items: center;
  gap: 9px;
  flex: none;
  padding: 9px 15px;
  font-size: 14px;
  font-weight: 600;
  color: var(--deep);
  border: 2px solid var(--line);
  border-radius: 999px;
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.nav-toggle:hover { border-color: var(--sea); background: var(--shallow); }

.nav-toggle-icon {
  display: grid;
  gap: 4px;
  width: 20px;
  flex: none;
}

.nav-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 主导航 */
.site-nav {
  order: 4;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 26px);
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 2px 10px;
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--sea);
  transition: color .18s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 62%;
  height: 3px;
  border-radius: 3px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .2s var(--ease);
}

.nav-link:hover { color: var(--deep); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link[aria-current="page"] { color: var(--deep); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.nav-actions .btn {
  padding: 10px 18px;
  font-size: 14px;
}

/* 抽屉底部联系方式，桌面端隐藏 */
.nav-contact { display: none; }
.nav-contact-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--sun);
  margin-bottom: 12px;
}
.nav-contact-item {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .86);
  word-break: break-all;
}
.nav-contact-item--muted { color: rgba(217, 234, 243, .6); }

/* 遮罩，桌面端不参与渲染 */
.nav-scrim { display: none; }

/* 滚动进度条 */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--sea), var(--coral));
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

/* ---------- 06 · 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 120px);
  background: var(--deep);
  color: rgba(255, 255, 255, .74);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(114deg, transparent 49.85%, rgba(217, 234, 243, .09) 49.85%, rgba(217, 234, 243, .09) 50.15%, transparent 50.15%),
    radial-gradient(circle at 90% -10%, rgba(255, 107, 74, .18), transparent 52%),
    radial-gradient(circle at 4% 108%, rgba(47, 158, 110, .16), transparent 46%);
}

.footer-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(48px, 7vw, 88px) var(--gutter) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr .95fr .95fr .95fr 1.15fr;
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
}

.footer-col { min-width: 0; }

.footer-col--brand { padding-right: clamp(0px, 2vw, 28px); }

.footer-logo {
  display: inline-block;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--white);
  line-height: 1.2;
}

.footer-note {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(217, 234, 243, .74);
  max-width: 30ch;
}

.footer-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-links li + li { margin-top: 10px; }

.footer-links a {
  display: inline-block;
  font-size: 15px;
  color: rgba(255, 255, 255, .74);
  transition: color .18s var(--ease), transform .18s var(--ease);
}
.footer-links a:hover {
  color: var(--sun);
  transform: translateX(4px);
}

.footer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-chip {
  display: inline-block;
  padding: 5px 12px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .8);
  border: 1px solid rgba(217, 234, 243, .28);
  border-radius: 999px;
}

.footer-contact li + li { margin-top: 14px; }

.footer-label {
  display: block;
  font-size: 12px;
  letter-spacing: .08em;
  color: rgba(217, 234, 243, .62);
  margin-bottom: 2px;
}

.footer-value {
  display: block;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .88);
  word-break: break-word;
}

.footer-hint {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.75;
  color: rgba(217, 234, 243, .6);
}

.footer-slash {
  height: 2px;
  margin-top: clamp(40px, 5vw, 64px);
  background: linear-gradient(90deg, var(--coral) 0 72px, rgba(255, 255, 255, .2) 72px);
  transform: rotate(-.6deg);
  transform-origin: left center;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 24px 0 clamp(28px, 4vw, 42px);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .56);
}

.footer-copy { margin: 0; }
.footer-icp { color: rgba(217, 234, 243, .72); }

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-legal-links a { transition: color .18s var(--ease); }
.footer-legal-links a:hover { color: var(--sun); }

/* ---------- 07 · 通用组件 ---------- */
#main-content {
  display: block;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.breadcrumb {
  font-size: 14px;
  color: var(--stone);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: rgba(107, 124, 136, .55);
}
.breadcrumb a { color: var(--sea); }
.breadcrumb a:hover { color: var(--coral-deep); }
.breadcrumb [aria-current="page"] { color: var(--ink); }

.prose {
  max-width: var(--read);
  font-size: 17px;
  line-height: 1.85;
}
.prose > * + * { margin-top: 1.15em; }
.prose h2 {
  font-size: clamp(24px, 2.6vw, 30px);
  margin-top: 1.9em;
}
.prose h3 {
  font-size: 20px;
  margin-top: 1.6em;
}
.prose ul,
.prose ol {
  padding-left: 1.35em;
  list-style: disc;
}
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .45em; }
.prose a {
  color: var(--coral-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--deep); }
.prose blockquote {
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--coral);
  color: var(--stone);
}

.card {
  position: relative;
  display: block;
  padding: clamp(20px, 2.4vw, 28px);
  background: var(--surface);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  filter: drop-shadow(0 4px 14px rgba(11, 62, 99, .08));
  transition: transform .18s var(--ease), filter .18s var(--ease), background-color .18s var(--ease);
}
.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  background: var(--coral-light);
  filter: drop-shadow(0 16px 28px rgba(11, 62, 99, .18));
}
.card--flat:hover { transform: none; }

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--stone);
  opacity: .75;
  transition: opacity .18s var(--ease);
}
.card:hover .card-meta,
.card:focus-within .card-meta { opacity: 1; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  border-radius: 999px;
  background: var(--shallow);
  color: var(--sea);
}
.tag--coral { background: var(--coral-light); color: var(--coral-deep); }
.tag--palm { background: rgba(47, 158, 110, .14); color: var(--palm-deep); }
.tag--sun { background: rgba(255, 194, 75, .24); color: var(--sun-deep); }

.media-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(170deg, var(--shallow), var(--sea));
  aspect-ratio: 16 / 10;
  clip-path: polygon(0 0, calc(100% - var(--cut-lg)) 0, 100% var(--cut-lg), 100% 100%, 0 100%);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.9);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(21, 106, 147, .16), rgba(11, 62, 99, .06));
}
.media-ratio-wide { aspect-ratio: 21 / 9; }
.media-ratio-tall { aspect-ratio: 4 / 5; }
.media-ratio-square { aspect-ratio: 1 / 1; }

.route-line {
  height: 0;
  border-top: 2px dashed var(--sea);
  opacity: .38;
  transform: rotate(-1.2deg);
  transform-origin: left center;
}

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-split { grid-template-columns: 1.1fr 1.9fr; }
.grid-split--rev { grid-template-columns: 2fr 1fr; }
.grid-tight { gap: 16px; }
.grid-loose { gap: clamp(32px, 4vw, 56px); }

/* 显现动效（由脚本添加 .reveal-ready 与 .is-visible） */
html.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
html.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 08 · 响应式 ---------- */
@media (max-width: 1120px) {
  .header-inner::before { display: none; }
}

@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-col--brand { grid-column: 1 / -1; }
  .footer-note { max-width: 46ch; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }

  .nav-toggle { display: inline-flex; }

  .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(11, 62, 99, .52);
    opacity: 0;
    visibility: hidden;
    transition: opacity .26s var(--ease), visibility .26s linear;
  }
  .nav-scrim.is-open { opacity: 1; visibility: visible; }

  .site-nav {
    position: fixed;
    z-index: 2;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(86vw, 350px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 30px 26px 32px;
    background: var(--deep);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(-102%);
    transition: transform .3s var(--ease);
    box-shadow: 14px 0 44px rgba(11, 62, 99, .34);
  }
  .site-nav[data-open="true"] { transform: translateX(0); }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-link {
    display: block;
    padding: 15px 4px;
    font-size: 18px;
    color: rgba(255, 255, 255, .9);
    border-bottom: 1px solid rgba(217, 234, 243, .14);
  }
  .nav-link::after { display: none; }
  .nav-link:hover { color: var(--white); }
  .nav-link[aria-current="page"] { color: var(--sun); }
  .nav-link[aria-current="page"]::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--coral);
    vertical-align: middle;
  }

  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 26px;
  }
  .nav-actions .btn {
    width: 100%;
    padding: 13px 20px;
    font-size: 15px;
  }
  .site-nav .btn-ghost {
    border-color: rgba(255, 255, 255, .32);
    color: var(--shallow);
  }
  .site-nav .btn-ghost:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .5);
    color: var(--white);
  }

  .nav-contact {
    display: block;
    margin-top: auto;
    padding-top: 28px;
    border-top: 1px dashed rgba(217, 234, 243, .24);
  }

  body.is-nav-open { overflow: hidden; }

  .grid-2,
  .grid-3,
  .grid-split,
  .grid-split--rev { grid-template-columns: minmax(0, 1fr); }
}

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

  .brand-mark { width: 38px; height: 18px; }
  .brand-name { font-size: 21px; }
  .brand-tag { font-size: 11px; }
  .nav-toggle-text { display: none; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-legal { flex-direction: column; align-items: flex-start; }
}

/* ---------- 09 · 无障碍 ---------- */
:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  html.reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .card:hover,
  .card:focus-within { transform: none; }

  .footer-links a:hover { transform: none; }

  .site-nav { transition: none; }
}
