/* ============================================================
   华体汇移动版 · 共享样式 /assets/site.css
   01 reset · 02 变量 · 03 基础排版 · 04 布局与栅格
   05 按钮与标签 · 06 卡片与图像容器 · 07 显现与工具
   08 命令栏页头 · 09 分区页脚 · 10 响应式与动效偏好
   ============================================================ */

/* 01 reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dt, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, picture { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }

/* 02 变量 */
:root {
  --sky: #2E8BD6;
  --sky-deep: #14547F;
  --mist: #EDF5FC;
  --white: #FFFFFF;
  --tea: #2C9E7A;
  --tea-deep: #17664F;
  --tea-light: #E5F5EF;
  --orange: #EE8A32;
  --orange-mist: #FFF0E0;
  --ink: #1D2B3A;
  --ink-soft: #51657A;
  --hair: #D3E3F0;
  --glass: rgba(255, 255, 255, 0.62);
  --font-sans: 'Noto Sans SC', 'PingFang SC', 'HarmonyOS Sans', 'Source Han Sans SC', 'Microsoft YaHei', sans-serif;
  --radius: 16px;
  --radius-pill: 999px;
  --header-h: 64px;
  --header-h-sm: 56px;
  --maxw: 1200px;
  --gap: 24px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-soft: 0 10px 34px rgba(29, 43, 58, 0.10);
}

/* 03 基础排版 */
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
p { max-width: 38em; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
strong { font-weight: 600; }
.num, [data-year] { font-variant-numeric: tabular-nums; }

.display {
  font-size: clamp(2.6rem, 9vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.display--airy { font-weight: 400; letter-spacing: -0.03em; }
.section-title { font-size: clamp(1.75rem, 4.4vw, 2.9rem); font-weight: 700; line-height: 1.12; }
.section-index,
.chapter-num {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  font-variant-numeric: tabular-nums;
  color: var(--tea-deep);
}
.section-index::before,
.chapter-num::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--sky);
  flex: none;
}
.lead { font-size: 1.0625rem; line-height: 1.75; color: var(--ink-soft); max-width: 36em; }
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--tea-deep);
  background: var(--tea-light);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}
.text-soft { color: var(--ink-soft); }
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sky-deep);
  border-bottom: 2px solid var(--hair);
  padding-bottom: 3px;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.link-more:hover { border-color: var(--sky); }

/* 04 布局与栅格 */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(64px, 9vw, 132px) 0; }
.section--tight { padding: clamp(40px, 6vw, 80px) 0; }
.section--mist { background: var(--mist); }
.section--tea { background: var(--tea-light); }
.section--white { background: var(--white); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); }

.band { height: 12px; background: var(--mist); }
.band--tea { background: var(--tea-light); }
.band--tall { height: 20px; }

.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-12 { grid-column: span 12; }
.grid--offset { padding-left: calc(100% / 12); }

.stack { display: grid; gap: 16px; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.breadcrumbs { padding: 16px 0 4px; font-size: 0.8125rem; color: var(--ink-soft); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "／"; color: var(--hair); margin-right: 8px; }
.breadcrumbs a:hover { color: var(--sky-deep); text-decoration: underline; }

/* 05 按钮与标签 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--sky-deep); color: #fff; }
.btn-primary:hover { background: var(--sky); }
.btn-notice { background: var(--orange); color: #24180B; }
.btn-notice:hover { background: #F09A4D; }
.btn-ghost { background: transparent; border-color: var(--hair); color: var(--sky-deep); }
.btn-ghost:hover { border-color: var(--sky); background: var(--mist); }
.btn-block { width: 100%; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--tea-light);
  color: var(--tea-deep);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.tag--sky { background: var(--mist); color: var(--sky-deep); }
.tag--notice { background: var(--orange-mist); color: #8A4A0F; }
.dot-live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

/* 06 卡片与图像容器 */
.card {
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
}
.card--glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}
.card--notice { background: var(--orange-mist); border-color: #F7D9BB; }
.card--tea { background: var(--tea-light); border-color: #C7E8DB; }

.media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  border: 1px solid var(--hair);
  background: linear-gradient(135deg, var(--mist) 0%, #DDEFFA 42%, var(--tea-light) 100%);
}
.media::after {
  content: "";
  position: absolute;
  right: -14%;
  bottom: -34%;
  width: 62%;
  height: 78%;
  background: radial-gradient(closest-side, rgba(46, 139, 214, 0.36), rgba(46, 139, 214, 0));
  z-index: 0;
}
.media > img,
.media > picture > img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; }
.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }
.media__caption {
  position: absolute;
  z-index: 2;
  left: 16px;
  bottom: 14px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink-soft);
  font-size: 0.75rem;
}

/* 07 显现与工具 */
.has-js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .42s var(--ease), transform .42s var(--ease);
}
.has-js .reveal.is-visible { opacity: 1; transform: none; }

.skip-link {
  position: absolute;
  left: 16px;
  top: 0;
  transform: translateY(-140%);
  z-index: 120;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: var(--sky-deep);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(10px); }

.to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sky-deep);
  color: #fff;
  font-size: 1.125rem;
  line-height: 1;
  box-shadow: var(--shadow-soft);
  transition: background-color .2s var(--ease);
}
.to-top.is-on { display: flex; }
.to-top:hover { background: var(--sky); }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

/* 08 命令栏页头 */
.site-header { position: sticky; top: 0; z-index: 60; background: transparent; }
.header-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--hair);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-h);
  transition: height .25s var(--ease);
}
.site-header[data-scrolled="true"] .header-inner { height: var(--header-h-sm); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--tea));
  box-shadow: 0 0 0 4px rgba(46, 139, 214, 0.14);
  transition: box-shadow .25s var(--ease);
}
.brand:hover .brand-dot { box-shadow: 0 0 0 7px rgba(46, 139, 214, 0.18); }

.primary-nav { flex: 1 1 auto; display: flex; justify-content: center; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-list a {
  position: relative;
  display: inline-block;
  padding: 12px 12px 15px;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav-list a:hover { color: var(--sky-deep); background: rgba(237, 245, 252, 0.9); }
.nav-list a[aria-current="page"] { color: var(--sky-deep); font-weight: 600; }
.nav-list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--orange);
}

.header-tools { flex: none; display: flex; align-items: center; gap: 8px; }
.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hair);
  background: rgba(255, 255, 255, 0.72);
  color: var(--sky-deep);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.tool-btn:hover { border-color: var(--sky); background: var(--white); }
.tool-glyph { font-size: 1rem; line-height: 1; }

.notice-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid #F7D9BB;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.notice-link:hover { background: var(--orange-mist); border-color: var(--orange); }
.notice-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  flex: none;
  animation: notice-breath 6s ease-in-out infinite;
}
@keyframes notice-breath {
  0%, 88%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(238, 138, 50, 0.5); }
  94% { transform: scale(1.04); box-shadow: 0 0 0 6px rgba(238, 138, 50, 0); }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hair);
  background: rgba(255, 255, 255, 0.72);
}
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .25s var(--ease);
}
[data-nav-toggle][aria-expanded="true"] .nav-toggle-bar:first-child { transform: translateY(3.5px) rotate(45deg); }
[data-nav-toggle][aria-expanded="true"] .nav-toggle-bar:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  overflow: hidden;
  pointer-events: none;
}
.scroll-progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--sky), var(--tea));
}

.search-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--hair);
  box-shadow: 0 18px 40px rgba(29, 43, 58, 0.10);
  animation: panel-in .24s var(--ease);
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
.search-panel-inner {
  display: grid;
  gap: 10px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px 20px 28px;
}
.search-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; color: var(--tea-deep); }
.search-input {
  width: 100%;
  max-width: 560px;
  height: 48px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hair);
  background: var(--mist);
  font-size: 0.9375rem;
}
.search-input:focus {
  outline: none;
  border-color: var(--sky);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(46, 139, 214, 0.14);
}
.search-count { font-size: 0.8125rem; color: var(--ink-soft); }
.search-empty {
  font-size: 0.875rem;
  color: var(--tea-deep);
  background: var(--tea-light);
  padding: 10px 16px;
  border-radius: var(--radius);
}

.mobile-command { display: none; }

/* 09 分区页脚 */
.site-footer { background: var(--mist); border-top: 1px solid var(--hair); color: var(--ink); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.1fr 1.6fr;
  gap: 32px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 80px) 20px clamp(32px, 5vw, 56px);
}
.footer-brand { display: grid; gap: 14px; align-content: start; justify-items: start; }
.footer-tagline { font-size: 0.9375rem; color: var(--ink-soft); max-width: 24em; }
.footer-col { min-width: 0; }
.footer-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--tea-deep);
}
.footer-title::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: var(--sky); flex: none; }
.footer-list { display: grid; gap: 10px; font-size: 0.9375rem; }
.footer-list a {
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.footer-list a:hover { color: var(--sky-deep); border-bottom-color: var(--sky); }

.footer-col--contact { display: grid; align-content: start; gap: 12px; }
.footer-contact { display: grid; gap: 12px; }
.footer-contact-item { display: grid; gap: 2px; }
.footer-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; color: var(--ink-soft); }
.footer-value { font-size: 0.9375rem; font-variant-numeric: tabular-nums; word-break: break-word; }
.footer-note { font-size: 0.8125rem; line-height: 1.7; color: var(--ink-soft); }

.footer-legal { background: var(--sky-deep); color: #fff; }
.footer-legal-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 20px;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

/* 10 响应式与动效偏好 */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .grid--offset { padding-left: 0; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 61;
    display: block;
    padding: 20px 20px calc(24px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
    border-top: 1px solid var(--hair);
    border-radius: var(--radius) var(--radius) 0 0;
    box-shadow: 0 -18px 40px rgba(29, 43, 58, 0.14);
    transform: translateY(115%);
    visibility: hidden;
    transition: transform .32s var(--ease), visibility .32s var(--ease);
  }
  [data-nav][data-open] { transform: translateY(0); visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-list a { padding: 14px 16px; font-size: 1rem; border-radius: var(--radius); }
  .nav-list a:hover { background: var(--mist); }
  .nav-list a[aria-current="page"] { background: var(--mist); }
  .nav-list a[aria-current="page"]::after {
    left: 16px;
    right: auto;
    top: 50%;
    bottom: auto;
    width: 4px;
    height: 22px;
    transform: translateY(-50%);
  }
  .col-3, .col-4, .col-5 { grid-column: span 6; }
  .col-6, .col-7, .col-8, .col-9 { grid-column: span 12; }
}

@media (max-width: 720px) {
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .primary-nav { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .search-panel-inner { padding: 20px 20px 24px; }
  .mobile-command {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 62;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: calc(60px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
    border-top: 1px solid var(--hair);
  }
  .mobile-command a,
  .mobile-command .cmd-search {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--ink);
  }
  .mobile-command a[aria-current="page"] { color: var(--sky-deep); box-shadow: inset 0 3px 0 var(--orange); }
  .to-top { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-legal-inner { justify-content: flex-start; }
}

@media (max-width: 620px) {
  .col-3, .col-4, .col-5 { grid-column: span 12; }
  .notice-text { display: none; }
  .notice-link { width: 44px; padding: 0; justify-content: center; }
  .grid { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .has-js .reveal { opacity: 1 !important; transform: none !important; }
  .primary-nav { transition: none; }
}
