/* ============================================================
   万象城登录口 · 中国官方主站
   共享样式表 /assets/site.css
   深墨蓝夜色 + 暖金入口 + 极细边界 + Bento 板
   ============================================================ */

/* ---------- 1. 变量 ---------- */
:root {
  --ink: #0E1B2E;          /* 墨蓝主底 */
  --ink-2: #16263F;        /* 墨蓝分层 / 卡片底 */
  --navy: #1E3A5F;         /* 夜航蓝 */
  --gold: #E8B65A;         /* 暖金强调 */
  --gold-soft: #F6D79A;    /* 暖金浅调 */
  --coral: #F0714E;        /* 珊瑚橙 */
  --celadon: #4FA98B;      /* 青瓷绿 */
  --cream: #F4F1EA;        /* 米白承托 */
  --graphite: #10161F;     /* 石墨正文 */
  --line: #C9CFD8;         /* 细边灰 */
  --line-dark: rgba(244, 241, 234, 0.12);
  --line-gold: rgba(232, 182, 90, 0.24);

  --radius: 14px;
  --radius-pill: 999px;
  --gap: 16px;
  --gap-lg: 24px;
  --shell: 1240px;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC",
    "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI",
    Roboto, sans-serif;
  --font-num: "Inter Tight", "DIN Alternate", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-1: 0 6px 18px rgba(4, 10, 20, 0.32);
  --shadow-2: 0 14px 34px rgba(4, 10, 20, 0.44);
}

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

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

body {
  margin: 0;
  min-height: 100%;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.85;
  font-weight: 400;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

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

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

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

#main-content,
section[id],
article[id] { scroll-margin-top: 104px; }

/* ---------- 3. 骨架容器 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: clamp(18px, 4vw, 40px);
}

.band { padding: clamp(56px, 8vw, 104px) 0; }
.band--ink { background: var(--ink); color: var(--cream); }
.band--ink-2 { background: var(--ink-2); color: var(--cream); }
.band--cream { background: var(--cream); color: var(--graphite); }

.band--cream .section-title { color: var(--graphite); }
.band--cream .section-lead { color: rgba(16, 22, 31, 0.68); }
.band--cream .card__text { color: rgba(16, 22, 31, 0.7); }
.band--cream .card__meta { color: rgba(16, 22, 31, 0.52); }
.band--cream .stat__label { color: rgba(16, 22, 31, 0.55); }

/* ---------- 4. 文本层级 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  flex: none;
}

.section-title {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-lead {
  max-width: 62ch;
  margin-top: 14px;
  font-size: clamp(15px, 1.2vw, 17px);
  font-weight: 300;
  line-height: 1.85;
  color: rgba(244, 241, 234, 0.66);
}

.num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.01em;
}

/* ---------- 5. 栅格 ---------- */
.grid {
  display: grid;
  gap: var(--gap-lg);
}
.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: clamp(14px, 1.6vw, 24px);
}

.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 64px);
  align-items: start;
}
.split--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.split--flip > :first-child { order: 2; }

/* ---------- 6. 卡片 / 标签 / 数据 ---------- */
.card {
  position: relative;
  padding: clamp(18px, 1.8vw, 26px);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--ink-2);
  color: var(--cream);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.card:hover,
.card:focus-within {
  border-color: rgba(232, 182, 90, 0.42);
  transform: translateY(-2px);
  box-shadow: var(--shadow-1);
}

.card--light {
  background: #FBFAF6;
  color: var(--graphite);
  border-color: var(--line);
}

.card__title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.card__meta {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: rgba(244, 241, 234, 0.56);
}

.card__text {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(244, 241, 234, 0.72);
}

.card__hint {
  margin-top: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--gold-soft);
  transition: opacity 0.2s var(--ease), max-height 0.26s var(--ease),
    margin-top 0.2s var(--ease);
}

.card:hover .card__hint,
.card:focus-within .card__hint {
  margin-top: 12px;
  max-height: 90px;
  opacity: 1;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(244, 241, 234, 0.72);
}

.tag--gold { color: var(--gold); border-color: rgba(232, 182, 90, 0.42); }
.tag--coral { color: var(--coral); border-color: rgba(240, 113, 78, 0.42); }
.tag--celadon { color: var(--celadon); border-color: rgba(79, 169, 139, 0.42); }

.stat { display: block; }

.stat__value {
  display: block;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--gold);
}

.stat__label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(244, 241, 234, 0.6);
}

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
    border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.btn:hover { transform: translateY(-2px); }

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

.btn--ghost {
  background: transparent;
  border-color: var(--line-dark);
  color: var(--cream);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-soft); }

.btn--cream {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--graphite);
}
.btn--cream:hover { background: #FFFFFF; border-color: #FFFFFF; }

/* ---------- 8. 面包屑与正文 ---------- */
.breadcrumbs {
  font-size: 12.5px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(244, 241, 234, 0.52);
}

.band--cream .breadcrumbs { color: rgba(16, 22, 31, 0.5); }

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.breadcrumbs li + li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--coral);
  flex: none;
}

.breadcrumbs a:hover { color: var(--gold); }

.prose { max-width: 68ch; }

.prose h2 {
  margin-top: 2.2em;
  margin-bottom: 0.6em;
  font-size: clamp(22px, 2.2vw, 30px);
}

.prose h3 {
  margin-top: 1.8em;
  margin-bottom: 0.5em;
  font-size: clamp(18px, 1.6vw, 22px);
}

.prose p {
  margin-bottom: 1.15em;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.85;
}

.prose ul { margin-bottom: 1.15em; }

.prose ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 0.5em;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 8px;
  height: 1px;
  background: var(--gold);
}

/* ---------- 9. 图片容器基础 ---------- */
.media {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--navy), var(--ink-2) 62%, var(--ink));
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(244, 241, 234, 0.06) 0 1px,
    transparent 1px 34px
  );
  opacity: 0.65;
}

.media--wide { aspect-ratio: 21 / 9; }
.media--band { aspect-ratio: 16 / 7; }
.media--square { aspect-ratio: 1 / 1; }
.media--portrait { aspect-ratio: 4 / 5; }

.media__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px clamp(16px, 2vw, 24px);
  font-size: 12.5px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(244, 241, 234, 0.82);
  background: linear-gradient(
    180deg,
    rgba(14, 27, 46, 0) 0%,
    rgba(14, 27, 46, 0.88) 100%
  );
}

/* ---------- 10. 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 200;
  padding: 12px 22px;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--gold);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transform: translate(-50%, -140%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus-visible {
  transform: translate(-50%, 0);
  outline-offset: -4px;
}

/* ---------- 11. 悬浮胶囊头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  padding: clamp(10px, 1.6vw, 18px) clamp(12px, 4vw, 32px);
  background: transparent;
  transition: padding 0.26s var(--ease);
}

.header-rail {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
}

.brand-island {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  padding: 7px 18px 7px 9px;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-pill);
  background: var(--ink-2);
  box-shadow: var(--shadow-1);
  color: var(--cream);
  white-space: nowrap;
}

.brand-island:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-2);
}

.brand-mark {
  position: relative;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--gold-soft), var(--gold) 55%, var(--coral));
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 9px;
  height: 9px;
  margin: auto;
  border-radius: 3px;
  background: var(--ink);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-tagline {
  max-height: 18px;
  overflow: hidden;
  opacity: 1;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(244, 241, 234, 0.52);
  transition: max-height 0.24s var(--ease), opacity 0.16s var(--ease);
}

.site-header[data-condensed="true"] { padding-top: 8px; padding-bottom: 8px; }
.site-header[data-condensed="true"] .brand-tagline {
  max-height: 0;
  opacity: 0;
}

.nav-island {
  display: flex;
  align-items: center;
  margin-left: auto;
  padding: 5px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-pill);
  background: var(--ink-2);
  box-shadow: var(--shadow-1);
}

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

.nav-list a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(244, 241, 234, 0.72);
}

.nav-list a:hover {
  color: var(--gold-soft);
  background: rgba(232, 182, 90, 0.1);
}

.nav-list a[aria-current="page"] {
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
}

.nav-list a[aria-current="page"]:hover { background: var(--gold-soft); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 11px 20px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-pill);
  background: var(--gold);
  box-shadow: 0 6px 18px rgba(232, 182, 90, 0.22);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

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

.cta-arrow {
  width: 15px;
  height: 15px;
  flex: none;
  transition: transform 0.18s var(--ease);
}

.header-cta:hover .cta-arrow { transform: translateX(3px); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-pill);
  background: var(--ink-2);
  color: var(--cream);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow-1);
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.nav-toggle__bars span {
  display: block;
  height: 1.5px;
  border-radius: 2px;
  background: var(--gold);
  transition: transform 0.2s var(--ease);
}

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

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

.nav-toggle__label { line-height: 1; }

/* ---------- 12. 页脚横带 ---------- */
.site-footer {
  position: relative;
  padding: clamp(44px, 6vw, 72px) 0 30px;
  border-top: 1px solid var(--line-gold);
  background: var(--ink);
  color: var(--cream);
}

.footer-shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: clamp(18px, 4vw, 40px);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(130px, 1fr));
  gap: clamp(24px, 4vw, 56px);
}

.footer-brand .brand-mark { margin-bottom: 14px; }

.footer-brand__name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.footer-brand__line {
  margin-top: 10px;
  max-width: 30ch;
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(244, 241, 234, 0.58);
}

.footer-col__title {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col a {
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: rgba(244, 241, 234, 0.66);
}

.footer-col a:hover { color: var(--gold-soft); }

.footer-rule {
  position: relative;
  height: 1px;
  margin: clamp(28px, 4vw, 46px) 0 20px;
  background: var(--line-dark);
}

.footer-rule::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 52px;
  height: 1px;
  background: var(--gold);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
}

.footer-meta__line {
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0.02em;
  color: rgba(244, 241, 234, 0.5);
}

.footer-meta__line--strong {
  color: rgba(244, 241, 234, 0.76);
  font-weight: 400;
}

/* ---------- 13. 滚动显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  transition-delay: calc(var(--reveal-delay, 0) * 60ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1180px) {
  .nav-list a { padding: 8px 11px; font-size: 13px; }
}

@media (max-width: 1024px) {
  .nav-toggle {
    display: inline-flex;
    order: 3;
    margin-left: 8px;
  }

  .header-cta {
    order: 2;
    margin-left: auto;
    padding: 10px 16px;
    font-size: 13px;
  }

  .brand-island { order: 1; }

  .nav-island {
    order: 4;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
    padding: 10px;
    border-radius: 20px;
    border-color: var(--line-gold);
    box-shadow: var(--shadow-2);
  }

  .nav-island[data-open] { display: flex; }

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

  .nav-list a {
    padding: 13px 16px;
    font-size: 15px;
  }

  .site-header[data-condensed="true"] .brand-tagline {
    max-height: 18px;
    opacity: 1;
  }
}

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

  .split,
  .split--flip { grid-template-columns: minmax(0, 1fr); }
  .split--flip > :first-child { order: 0; }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
  }

  .footer-brand { grid-column: 1 / -1; }
}

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

  .col-3,
  .col-4,
  .col-6,
  .col-8 { grid-column: span 12; }
}

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

  .brand-tagline { display: none; }
  .brand-name { font-size: 14px; }

  .site-header { padding-inline: 10px; }

  .prose p { font-size: 16px; }
}

@media (max-width: 560px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-meta { flex-direction: column; gap: 6px; }
}

@media (max-width: 420px) {
  .cta-arrow { display: none; }
  .header-cta { padding: 10px 14px; }
}

/* ---------- 15. 动效降级 ---------- */
@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;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition-delay: 0ms !important;
  }

  .btn:hover,
  .card:hover,
  .header-cta:hover { transform: none; }
}

@media print {
  .site-header,
  .skip-link { display: none; }
}
