/* ===========================================================
   365国际速发 · 共享样式 /assets/site.css
   =========================================================== */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100%; }
img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; }
ul, ol { margin: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid rgba(63, 74, 77, .16); margin: 0; }

/* ---------- 2. Variables ---------- */
:root {
  --grass: #2E6E5B;
  --lake: #1C4A44;
  --sky: #2E7FB8;
  --gold: #D9A227;
  --gold-deep: #9C6F14;
  --gold-soft: #F0DCA8;
  --moss: #6F8F63;
  --clay: #C0714E;
  --stone: #3F4A4D;
  --cream: #F7F3EA;
  --mist: #E6EDE7;
  --ink: #16201E;
  --track: #F5E7C2;
  --line: rgba(63, 74, 77, .16);
  --line-strong: rgba(63, 74, 77, .32);
  --shadow-soft: 0 20px 46px -38px rgba(22, 32, 30, .85);
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-pill: 999px;
  --gap: clamp(16px, 2.4vw, 28px);
  --shell: 1320px;
  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, "Times New Roman", serif;
  --font-ui: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- 3. Base typography ---------- */
body {
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.02em;
  color: var(--lake);
}
h1 { font-size: clamp(32px, 4.6vw, 58px); font-weight: 900; }
h2 { font-size: clamp(26px, 3.2vw, 40px); }
h3 { font-size: clamp(20px, 2.1vw, 26px); }
h4 { font-size: 17px; }
::selection { background: var(--gold-soft); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 6px;
}
.site-footer :focus-visible { outline-color: var(--gold-soft); }

/* ---------- 4. Layout ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 48px);
}
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.bento > * { grid-column: span 12; min-width: 0; }

/* ---------- 5. Small components ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--grass);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--gold); flex: 0 0 auto; }

.section-head { display: grid; gap: 10px; max-width: 72ch; margin-bottom: clamp(20px, 3vw, 34px); }
.section-head__title { font-size: clamp(26px, 3.4vw, 40px); }
.section-head__note { font-family: var(--font-ui); font-size: 14px; line-height: 1.85; color: var(--stone); }

.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.85; color: var(--stone); max-width: 38ch; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  background: var(--mist);
  color: var(--lake);
  border: 1px solid var(--line);
}
.tag--gold { background: var(--gold-soft); color: #6B4A08; border-color: rgba(217, 162, 39, .5); }
.tag--sky { background: rgba(46, 127, 184, .12); color: #1D5A85; border-color: rgba(46, 127, 184, .35); }
.tag--clay { background: rgba(192, 113, 78, .14); color: #8A4426; border-color: rgba(192, 113, 78, .4); }
.tag--moss { background: rgba(111, 143, 99, .16); color: #456039; border-color: rgba(111, 143, 99, .4); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 24px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn--primary { background: var(--gold); color: var(--ink); border-color: rgba(217, 162, 39, .9); }
.btn--primary:hover { background: #E3B23B; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--lake); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--gold); background: rgba(240, 220, 168, .4); }
.btn--quiet { background: var(--lake); color: var(--cream); }
.btn--quiet:hover { background: var(--grass); }

.breadcrumbs { font-family: var(--font-ui); font-size: 13px; letter-spacing: .02em; color: var(--stone); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: rgba(63, 74, 77, .45); }
.breadcrumbs a { color: var(--sky); border-bottom: 1px solid rgba(46, 127, 184, .35); }
.breadcrumbs a:hover { color: var(--lake); border-color: var(--gold); }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 700; }

.panel {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(18px, 2.6vw, 30px);
}
.panel--cream { background: var(--cream); }
.panel--outline { background: transparent; }
.panel--dark { background: var(--lake); color: rgba(247, 243, 234, .9); border-color: rgba(247, 243, 234, .16); }
.panel--dark h2, .panel--dark h3, .panel--dark h4 { color: var(--cream); }

.stat { display: grid; gap: 4px; }
.stat__value {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--gold-deep);
}
.panel--dark .stat__value { color: var(--gold); }
.stat__label { font-family: var(--font-ui); font-size: 13px; letter-spacing: .1em; color: var(--stone); }
.panel--dark .stat__label { color: rgba(247, 243, 234, .72); }

.prose {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.9;
  color: var(--ink);
  max-width: 38em;
}
.prose p { margin: 0 0 1.1em; }
.prose h2, .prose h3 { margin: 1.6em 0 .6em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.1em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .4em; }
.prose strong { font-weight: 700; color: var(--lake); }
.prose a { color: var(--sky); border-bottom: 1px solid rgba(46, 127, 184, .35); }
.prose a:hover { color: var(--lake); border-bottom-color: var(--gold); }

.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(135deg, rgba(46, 110, 91, .08) 0 14px, transparent 14px 28px),
    linear-gradient(160deg, var(--mist), var(--cream));
}
.media > img, .media > svg, .media > video { width: 100%; height: 100%; object-fit: cover; }
.media--21x9 { aspect-ratio: 21 / 9; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--auto { aspect-ratio: auto; min-height: 180px; }
.media__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 12px 16px;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--cream);
  background: linear-gradient(180deg, transparent, rgba(22, 32, 30, .78));
}

.timeline { position: relative; display: grid; gap: 22px; padding-left: 28px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--gold), var(--grass) 42%, var(--sky));
}
.timeline__item { position: relative; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--grass);
}
.timeline__date { font-family: var(--font-ui); font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--clay); }

/* ---------- 6. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform .22s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 7. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: clamp(10px, 1.6vw, 18px) clamp(14px, 3vw, 32px) 0;
  font-family: var(--font-ui);
}
.header-rail {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 8px 10px 8px 16px;
  background: rgba(247, 243, 234, .94);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-soft);
  transition: padding .3s ease, background .3s ease;
}
.site-header[data-scrolled] .header-rail { padding: 5px 10px 5px 14px; background: rgba(247, 243, 234, .99); }

.brand-island {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 6px 12px 6px 8px;
  border-radius: var(--r-pill);
  transition: background .2s ease;
}
.brand-island:hover { background: var(--mist); }
.brand-mark {
  position: relative;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 9px 9px 9px 3px;
  background: linear-gradient(135deg, var(--grass), var(--sky));
}
.brand-mark::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 6px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-size: 15px; font-weight: 800; letter-spacing: .01em; color: var(--lake); }
.brand-sub { font-size: 11px; letter-spacing: .16em; color: var(--stone); }

.capsule-nav { margin-inline: auto; min-width: 0; }
.capsule-list { display: flex; align-items: center; gap: clamp(2px, .6vw, 10px); list-style: none; }
.capsule {
  display: block;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: 14px;
  letter-spacing: .02em;
  white-space: nowrap;
  color: var(--stone);
  transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}
.capsule:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  background: rgba(240, 220, 168, .45);
  color: var(--lake);
}
.capsule[aria-current="page"] {
  background: var(--gold-soft);
  border-color: rgba(217, 162, 39, .55);
  color: var(--lake);
  font-weight: 700;
}

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.announce {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--stone);
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.announce:hover { border-color: var(--gold); background: rgba(240, 220, 168, .35); color: var(--lake); }
.announce__dot { position: relative; width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--clay); }
.announce__dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--clay);
  animation: sk-pulse 2.4s ease-out infinite;
}
@keyframes sk-pulse {
  0% { transform: scale(.6); opacity: .7; }
  70% { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(1.3); opacity: 0; }
}

.entry-island {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  background: var(--gold);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .2s ease, transform .2s ease;
}
.entry-island::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}
.entry-island:hover { background: #E3B23B; transform: translateY(-2px); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  color: var(--lake);
  font-size: 14px;
  font-weight: 700;
}
.nav-toggle__bars { display: grid; gap: 4px; }
.nav-toggle__bars span { display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s ease; }
.site-header[data-open] .nav-toggle__bars span:first-child { transform: translateY(3px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars span:last-child { transform: translateY(-3px) rotate(-45deg); }

.scroll-progress {
  max-width: var(--shell);
  height: 2px;
  margin: 8px auto 0;
  border-radius: 2px;
  background: rgba(63, 74, 77, .12);
  overflow: hidden;
}
.scroll-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--grass) 0%, var(--sky) 58%, var(--gold) 100%);
}

/* ---------- 8. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 112px);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 10% 0%, rgba(46, 110, 91, .55), transparent 62%),
    radial-gradient(90% 70% at 96% 14%, rgba(46, 127, 184, .28), transparent 60%),
    var(--lake);
  color: rgba(247, 243, 234, .86);
  font-family: var(--font-ui);
}
.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .35;
  background-image: radial-gradient(rgba(247, 243, 234, .11) 1px, transparent 1px);
  background-size: 4px 4px;
}
.footer-speedlines {
  height: 6px;
  background: repeating-linear-gradient(90deg, rgba(217, 162, 39, .7) 0 34px, transparent 34px 62px);
  opacity: .45;
}
.footer-inner { position: relative; z-index: 1; padding-block: clamp(40px, 6vw, 72px) clamp(24px, 3vw, 36px); }

.footer-top {
  display: grid;
  grid-template-columns: minmax(240px, 1.05fr) 2.4fr;
  gap: clamp(28px, 5vw, 64px);
}
.footer-brand { display: grid; gap: 12px; align-content: start; }
.brand-island--foot { padding-left: 0; }
.brand-island--foot:hover { background: rgba(247, 243, 234, .08); }
.brand-island--foot .brand-name { color: var(--cream); }
.brand-island--foot .brand-sub { color: rgba(247, 243, 234, .7); }
.footer-brand__line { font-size: 14px; line-height: 1.9; color: rgba(247, 243, 234, .84); }
.footer-brand__meta { font-size: 13px; letter-spacing: .04em; color: rgba(247, 243, 234, .6); }

.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.footer-col__title {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--gold-soft);
  margin-bottom: 14px;
}
.footer-links { display: grid; gap: 10px; list-style: none; }
.footer-links a {
  display: inline-block;
  font-size: 14px;
  color: rgba(247, 243, 234, .82);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.footer-links a:hover { color: var(--gold-soft); border-bottom-color: var(--gold); }

.footer-meta {
  display: grid;
  gap: 14px;
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: 22px;
  border-top: 1px solid rgba(247, 243, 234, .16);
}
.footer-contact { font-size: 14px; line-height: 2; color: rgba(247, 243, 234, .78); }
.footer-contact strong { color: var(--gold-soft); font-weight: 700; }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.footer-copy { font-size: 13px; letter-spacing: .02em; color: rgba(247, 243, 234, .66); }
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(247, 243, 234, .28);
  color: var(--gold-soft);
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: .06em;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.to-top::before {
  content: "";
  width: 7px;
  height: 7px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}
.to-top:hover { background: rgba(240, 220, 168, .16); border-color: var(--gold); color: #fff; }

/* ---------- 9. Reveal ---------- */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
.has-js [data-reveal].is-revealed { opacity: 1; transform: none; }

/* ---------- 10. Responsive ---------- */
@media (min-width: 760px) {
  .bento .span-4 { grid-column: span 4; }
  .bento .span-6 { grid-column: span 6; }
  .bento .span-8 { grid-column: span 8; }
  .bento .span-12 { grid-column: span 12; }
}

@media (max-width: 1200px) {
  .capsule { padding: 8px 10px; font-size: 13.5px; }
  .header-rail { gap: 8px; }
}

@media (max-width: 1080px) {
  .announce { padding: 8px 10px; }
  .announce__label { display: none; }
}

@media (max-width: 1000px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
}

@media (max-width: 960px) {
  .site-header { padding-top: 10px; }
  .header-rail { gap: 8px; padding: 7px 9px 7px 12px; }
  .nav-toggle { display: inline-flex; }
  .capsule-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    margin: 0;
    padding: 10px;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: 0 26px 50px -34px rgba(22, 32, 30, .9);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
  }
  .site-header[data-open] .capsule-nav { opacity: 1; visibility: visible; transform: translateY(0); }
  .capsule-list { flex-direction: column; align-items: stretch; gap: 6px; }
  .capsule { padding: 12px 16px; border-radius: 16px; border-color: var(--line); font-size: 15px; }
  .capsule:hover { transform: none; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media--21x9 { aspect-ratio: 16 / 9; }
}

@media (max-width: 640px) {
  .brand-sub { display: none; }
  .entry-island { padding: 8px 13px; font-size: 13px; gap: 7px; }
  .nav-toggle { padding: 8px 12px; }
  .nav-toggle__label { display: none; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .footer-base { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .capsule { font-size: 14px; }
  .brand-name { font-size: 14px; }
}

@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 [data-reveal] { opacity: 1; transform: none; }
}
