/* ================= 环球主页 · 共享样式 /assets/site.css ================= */

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #0A0A0A;
  --porcelain: #F7F3EA;
  --deep: #0B2E4F;
  --coral: #FF6B4A;
  --sand: #D9A441;
  --celadon: #2F8F83;
  --mist: #D8D5CC;
  --graphite: #3A3A38;
  --ice: #8FC7E8;

  --rail-w: 88px;
  --topbar-h: 64px;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);

  --font-display: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: var(--ink);
  background-color: var(--porcelain);
  background-image:
    linear-gradient(90deg, rgba(10, 10, 10, 0.045) 1px, transparent 1px);
  background-size: 25% 100%;
  overflow-x: hidden;
  min-height: 100vh;
}

body[data-drawer="open"] { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
input, select, textarea { font: inherit; }
[hidden] { display: none !important; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

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

/* ---------- 排版工具 ---------- */
.display {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.display strong { font-weight: 800; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

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

.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--graphite);
}
.kicker--sand { color: var(--sand); }
.kicker--coral { color: var(--coral); }

.rule {
  height: 3px;
  border: 0;
  background: var(--ink);
}

/* ---------- 布局 ---------- */
.canvas {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(18px, 4.5vw, 48px);
  padding-block: clamp(28px, 5vw, 64px);
}

.section { padding-block: clamp(32px, 6vw, 72px); }
.section--deep { background: var(--deep); color: var(--porcelain); }
.section--mist { background: var(--mist); }
.section--ink { background: var(--ink); color: var(--porcelain); }
.section--deep .lead,
.section--ink .lead { color: var(--mist); }
.section--deep .kicker,
.section--ink .kicker { color: var(--ice); }

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
  grid-template-columns: minmax(0, 1fr);
}
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1080px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--coral);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 头部 ---------- */
.site-header {
  position: relative;
  z-index: 50;
}

.rail-shell { display: none; }

@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }

  .rail-shell {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--rail-w);
    display: flex;
    flex-direction: column;
    background: var(--deep);
    border-right: 3px solid var(--ink);
    z-index: 60;
    overflow: hidden;
  }
}

.rail-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 0 14px;
  border-bottom: 3px solid rgba(247, 243, 234, 0.2);
}
.rail-brand__glyph {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--coral);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
}
.rail-brand__word {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  line-height: 1.25;
  color: var(--mist);
  writing-mode: vertical-rl;
  text-orientation: upright;
}

.rail-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(247, 243, 234, 0.35) transparent;
}
.rail-list { display: flex; flex-direction: column; }

.rail-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 92px;
  padding: 16px 0 18px;
  color: var(--porcelain);
  border-left: 4px solid transparent;
  border-bottom: 1px solid rgba(247, 243, 234, 0.14);
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.rail-link__num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--sand);
}
.rail-link__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.16em;
  line-height: 1;
  writing-mode: vertical-rl;
  text-orientation: upright;
}
.rail-link:hover {
  background: rgba(247, 243, 234, 0.1);
  border-left-color: var(--ice);
}
.rail-link[aria-current="page"] {
  background: var(--coral);
  color: var(--ink);
  border-left-color: var(--ink);
}
.rail-link[aria-current="page"] .rail-link__num { color: var(--ink); }

.rail-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid rgba(247, 243, 234, 0.2);
}
.rail-foot__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--celadon);
  box-shadow: 0 0 0 3px rgba(47, 143, 131, 0.3);
}
.rail-foot__txt {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--mist);
  writing-mode: vertical-rl;
  text-orientation: upright;
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--topbar-h);
  padding: 10px clamp(16px, 4vw, 40px);
  background: var(--porcelain);
  border-bottom: 3px solid var(--ink);
}

.breadcrumb { min-width: 0; }
.breadcrumb__list {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--graphite);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.breadcrumb__list li + li::before {
  content: "/";
  color: var(--sand);
  margin-right: 10px;
}
.breadcrumb a {
  padding-bottom: 1px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.16s var(--ease);
}
.breadcrumb a:hover { border-bottom-color: var(--coral); }
.breadcrumb__here {
  color: var(--ink);
  font-weight: 600;
  padding-bottom: 1px;
  border-bottom: 2px solid var(--coral);
}

.topbar__tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.topbar__link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 8px 12px;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: background 0.16s var(--ease), color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.topbar__link:hover { background: var(--ink); color: var(--porcelain); }
.topbar__link--key {
  background: var(--coral);
  color: var(--ink);
  border-width: 3px;
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 700;
}
.topbar__link--key:hover { background: var(--ink); color: var(--coral); }

.nav-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 3px solid var(--ink);
  background: var(--deep);
  color: var(--porcelain);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.nav-toggle:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.nav-toggle__bars { display: flex; flex-direction: column; gap: 3px; width: 16px; }
.nav-toggle__bars i {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--coral);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.nav-toggle__text { line-height: 1; }

.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  overflow: hidden;
  pointer-events: none;
}
.progress__bar {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--coral);
  transition: width 0.12s linear;
}

/* ---------- 移动抽屉 ---------- */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  background: var(--deep);
  color: var(--porcelain);
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), visibility 0.24s;
}
.nav-drawer[data-open] {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.drawer-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: var(--deep);
  border-bottom: 3px solid rgba(247, 243, 234, 0.25);
}
.drawer-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.drawer-close {
  padding: 8px 14px;
  border: 3px solid var(--coral);
  background: transparent;
  color: var(--coral);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}
.drawer-close:hover { background: var(--coral); color: var(--ink); }

.drawer-body { padding: 22px 16px 48px; }

.drawer-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand);
  margin: 26px 0 12px;
}
.drawer-kicker:first-child { margin-top: 0; }

.tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-height: 88px;
  padding: 12px;
  background: rgba(247, 243, 234, 0.07);
  border: 2px solid rgba(247, 243, 234, 0.35);
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease);
}
.tile:hover { border-color: var(--coral); background: rgba(255, 107, 74, 0.14); }
.tile__num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--sand);
}
.tile__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
}

.drawer-list { border-top: 1px solid rgba(247, 243, 234, 0.16); }
.drawer-list a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 13px 4px;
  border-bottom: 1px solid rgba(247, 243, 234, 0.16);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  transition: color 0.16s var(--ease), background 0.16s var(--ease);
}
.drawer-list a:hover { color: var(--coral); background: rgba(247, 243, 234, 0.06); }
.drawer-list a[aria-current="page"] { color: var(--coral); }
.drawer-list__num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--sand);
}
.drawer-list a[aria-current="page"] .drawer-list__num { color: var(--porcelain); }

.drawer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 13px;
  color: var(--mist);
}
.drawer-legal a { border-bottom: 1px solid rgba(247, 243, 234, 0.4); padding-bottom: 1px; }
.drawer-legal a:hover { color: var(--coral); border-color: var(--coral); }

@media (min-width: 1024px) {
  .nav-drawer { display: none; }
  .nav-toggle { display: none; }
}
@media (max-width: 639px) {
  .topbar__link:not(.topbar__link--key) { display: none; }
  .nav-toggle__text { display: none; }
}

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: clamp(48px, 8vw, 96px);
  background: var(--deep);
  color: var(--porcelain);
  border-top: 6px solid var(--coral);
}

.footer-inner {
  max-width: 1280px;
  margin-inline: auto;
  padding: clamp(32px, 5vw, 64px) clamp(20px, 5vw, 48px) 0;
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) {
  .footer-inner { grid-template-columns: 1.05fr 1.45fr; }
}

.footer-id { min-width: 0; }
.footer-brand {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.footer-tag {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--sand);
}

.footer-contact { margin-top: 26px; display: grid; gap: 14px; }
.footer-contact li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.footer-contact__k {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand);
}
.footer-contact__v { color: var(--porcelain); word-break: break-word; }

.copy-btn {
  align-self: flex-start;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  border: 2px solid var(--ice);
  background: transparent;
  color: var(--ice);
  transition: background 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.copy-btn:hover { background: var(--ice); color: var(--deep); }
.copy-btn[data-copied] {
  background: var(--celadon);
  border-color: var(--celadon);
  color: var(--porcelain);
}

.footer-note {
  margin-top: 14px;
  max-width: 36ch;
  font-size: 12px;
  line-height: 1.7;
  color: var(--mist);
}

.footer-cols {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.footer-col__title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(247, 243, 234, 0.22);
}
.footer-col__list li + li { margin-top: 9px; }
.footer-col__list a {
  font-size: 15px;
  color: var(--porcelain);
  padding-bottom: 1px;
  border-bottom: 2px solid transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.footer-col__list a:hover { color: var(--coral); border-bottom-color: var(--coral); }

.footer-legal {
  margin-top: clamp(28px, 4vw, 48px);
  border-top: 1px solid rgba(247, 243, 234, 0.22);
}
.footer-legal__inner {
  max-width: 1280px;
  margin-inline: auto;
  padding: 18px clamp(20px, 5vw, 48px) 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--mist);
}
.footer-copy { line-height: 1.7; }
.icp { color: var(--ice); }

.legal-links { display: flex; flex-wrap: wrap; gap: 16px; }
.legal-links a {
  border-bottom: 1px solid rgba(247, 243, 234, 0.4);
  padding-bottom: 1px;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.legal-links a:hover { color: var(--coral); border-bottom-color: var(--coral); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  color: var(--ink);
  background: var(--porcelain);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease), background 0.16s var(--ease), color 0.16s var(--ease);
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}
.btn--primary { background: var(--coral); }
.btn--deep { background: var(--deep); color: var(--porcelain); }
.btn--deep:hover { background: var(--ink); }
.btn--sand { background: var(--sand); }
.btn--sm {
  padding: 8px 14px;
  font-size: 13px;
  border-width: 2px;
  box-shadow: 3px 3px 0 var(--ink);
}
.section--deep .btn { box-shadow: 4px 4px 0 var(--coral); }
.section--deep .btn:hover { box-shadow: 6px 6px 0 var(--coral); }

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--sand);
  color: var(--ink);
  border: 2px solid var(--ink);
}
.tag--coral { background: var(--coral); }
.tag--celadon { background: var(--celadon); color: var(--porcelain); }
.tag--ghost { background: transparent; border-color: var(--graphite); color: var(--graphite); }

/* ---------- 分段切换 ---------- */
.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: stretch;
  border: 3px solid var(--ink);
  background: var(--porcelain);
  box-shadow: var(--shadow-sm);
  max-width: 100%;
}
.seg-btn {
  position: relative;
  padding: 11px 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--graphite);
  border-right: 2px solid var(--mist);
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}
.seg-btn:last-child { border-right: 0; }
.seg-btn:hover { background: rgba(217, 164, 65, 0.18); color: var(--ink); }
.seg-btn[aria-selected="true"] { background: var(--ink); color: var(--porcelain); }
.seg-btn[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 4px;
  background: var(--coral);
}
.seg-btn:focus-visible { outline-offset: -5px; }

/* ---------- 图片容器 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  background: var(--mist);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
}
.media-frame img,
.media-frame svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--band { aspect-ratio: 21 / 9; }
@media (max-width: 640px) {
  .media-frame--tall { aspect-ratio: 4 / 5; }
  .media-frame { box-shadow: var(--shadow-sm); }
}

/* ---------- 无障碍与动效 ---------- */
@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;
  }
  .btn:hover,
  .nav-toggle:hover { transform: none; }
  .progress__bar { transition: none; }
}
