/* ==========================================================================
   开yun体育入口 · 共享 Site Kit
   /assets/site.css
   ========================================================================== */

/* 1 — Reset
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

[hidden] { display: none !important; }

/* 2 — Design tokens
   ========================================================================== */
:root {
  /* 品牌色 */
  --teal:        #0E7C86;
  --teal-deep:   #095E66;
  --teal-dark:   #073F45;
  --orange:      #FF6B35;
  --orange-deep: #E8551F;
  --orange-soft: #FFE3D6;
  --night:       #1B2A4A;
  --night-soft:  #24365C;
  --sand:        #F1EDE6;
  --mist:        #D8D2C7;
  --ink:         #14181F;
  --ink-soft:    #4B5360;
  --paper:       #FBF9F5;
  --moss:        #6F8F5E;

  /* 字体栈（不加载外部字体，缺失时回落到系统字体） */
  --font-display: "Barlow Condensed", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* 度量 */
  --wrap-max: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 28px;
  --r-pill: 999px;

  /* 描边与阴影 */
  --edge: 1px solid var(--mist);
  --edge-dark: 1px solid rgba(251, 249, 245, 0.16);
  --shadow: 0 24px 48px -34px rgba(20, 24, 31, 0.65);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 3 — 文字建筑
   ========================================================================== */
.h-display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 7.2vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.018em;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.008em;
}
.lede {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.72;
  color: var(--ink-soft);
  max-width: 34em;
}
.prose { max-width: 36em; }
.prose > * + * { margin-top: 1.05em; }
.prose p { line-height: 1.78; }
.mono {
  font-family: var(--font-mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--orange);
  flex: 0 0 auto;
}
.section--teal .eyebrow,
.section--night .eyebrow { color: var(--orange-soft); }

/* 4 — 布局骨架
   ========================================================================== */
.wrap {
  width: 100%;
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.main { display: block; }

#main-content { scroll-margin-top: 132px; }

.section { padding-block: clamp(40px, 6vw, 80px); }
.section--sand { background: var(--sand); }
.section--soft { background: var(--orange-soft); }
.section--teal { background: var(--teal); color: var(--paper); }
.section--night { background: var(--night); color: var(--paper); }
.section--teal .lede,
.section--night .lede { color: rgba(251, 249, 245, 0.78); }

.section-head {
  display: grid;
  gap: 14px;
  margin-bottom: clamp(22px, 3vw, 36px);
}

/* 5 — 按钮
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-cta {
  background: var(--orange);
  color: var(--ink);
  box-shadow: 0 12px 26px -16px rgba(255, 107, 53, 0.95);
}
.btn-cta:hover { background: var(--orange-deep); color: var(--paper); }

.btn-outline {
  background: transparent;
  color: var(--teal-deep);
  border-color: var(--teal);
}
.btn-outline:hover { background: var(--teal); color: var(--paper); border-color: var(--teal); }

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(251, 249, 245, 0.4);
}
.btn-ghost:hover { background: rgba(251, 249, 245, 0.14); border-color: var(--paper); }

/* 6 — 页头：命令栏 + 青带导航
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--night);
  color: var(--paper);
  border-bottom: 3px solid var(--orange);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal) 55%, var(--orange) 100%);
  pointer-events: none;
  transition: width 0.1s linear;
}

.skip-link {
  position: absolute;
  top: -72px;
  left: 12px;
  z-index: 120;
  padding: 11px 20px;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  background: var(--orange);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: top 0.18s var(--ease);
}
.skip-link:focus { top: 0; }

.cmd-bar { padding-block: 10px; }

.cmd-inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  min-height: 56px;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  min-height: 44px;
}
.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: var(--r-sm);
  background: linear-gradient(142deg, var(--teal) 0%, var(--teal-deep) 62%, var(--teal-dark) 100%);
  box-shadow: inset 0 0 0 1px rgba(251, 249, 245, 0.24);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.brand-mark::after {
  content: "";
  position: absolute;
  top: -3px;
  right: -3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 2px var(--night);
}
.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.16;
}
.brand-line {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.01em;
  color: var(--paper);
}
.brand-tagline {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(251, 249, 245, 0.62);
}

/* 状态串 */
.cmd-utility {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(251, 249, 245, 0.66);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cmd-utility::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--moss);
  box-shadow: 0 0 0 3px rgba(111, 143, 94, 0.26);
}

/* 行动区 */
.cmd-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex: 0 0 auto;
}

/* 移动端开关 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 15px;
  border: 1px solid rgba(251, 249, 245, 0.32);
  border-radius: var(--r-pill);
  background: rgba(251, 249, 245, 0.06);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.nav-toggle:hover { background: rgba(251, 249, 245, 0.16); border-color: var(--paper); }
.nav-toggle-bars {
  display: grid;
  gap: 4px;
  width: 16px;
}
.nav-toggle-bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:first-child {
  transform: translateY(3px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* 导航带 */
.site-nav {
  background: var(--teal-deep);
  border-top: 1px solid rgba(251, 249, 245, 0.1);
}
.site-nav .nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-inline: -14px;
}
.nav-item { flex: 0 0 auto; }

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(251, 249, 245, 0.86);
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s var(--ease);
}
.nav-link:hover {
  color: var(--paper);
  background: rgba(255, 227, 214, 0.13);
}
.nav-link:hover::after { transform: scaleX(1); }

.nav-index {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 227, 214, 0.58);
  transition: color 0.18s var(--ease);
}

.nav-link[aria-current="page"] {
  color: var(--paper);
  font-weight: 700;
  background: rgba(255, 227, 214, 0.1);
}
.nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link[aria-current="page"] .nav-index { color: var(--orange); }

/* 7 — 页脚
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  padding-top: clamp(40px, 5vw, 64px);
  background: var(--night);
  color: rgba(251, 249, 245, 0.78);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--teal) 0 34%,
    var(--teal-deep) 34% 48%,
    var(--orange) 48% 60%,
    var(--moss) 60% 70%,
    var(--mist) 70% 100%
  );
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.75fr) minmax(0, 0.9fr) minmax(0, 1.35fr);
  gap: clamp(24px, 4vw, 52px);
}

.brand--footer { min-height: 0; }
.brand--footer .brand-mark::after { box-shadow: 0 0 0 2px var(--night); }

.footer-summary {
  margin-top: 16px;
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(251, 249, 245, 0.76);
}
.footer-flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  background: rgba(255, 227, 214, 0.14);
  color: var(--orange-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.footer-col-title {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: var(--edge-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-soft);
}

.footer-links { display: grid; gap: 2px; }
.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 4px;
  font-size: 15px;
  color: rgba(251, 249, 245, 0.78);
  transition: color 0.18s var(--ease), transform 0.18s var(--ease);
}
.footer-link:hover,
.footer-link:focus-visible {
  color: var(--orange-soft);
  transform: translateX(3px);
}

.footer-meta { display: grid; gap: 10px; margin: 0; }
.footer-meta-row {
  display: grid;
  grid-template-columns: 3.2em minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  font-size: 14px;
  line-height: 1.65;
}
.footer-meta-row dt {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255, 227, 214, 0.62);
}
.footer-meta-row dd {
  margin: 0;
  color: rgba(251, 249, 245, 0.82);
  word-break: break-word;
}
.footer-note {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(251, 249, 245, 0.58);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(28px, 4vw, 48px);
  padding-block: 20px 24px;
  border-top: var(--edge-dark);
  font-size: 13px;
  color: rgba(251, 249, 245, 0.58);
}
.footer-legal {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.footer-copy { font-size: 13px; }

/* 8 — 面包屑
   ========================================================================== */
.crumbs {
  padding-block: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs li + li::before {
  content: "/";
  color: var(--mist);
}
.crumbs a { transition: color 0.18s var(--ease); }
.crumbs a:hover { color: var(--teal); }
.crumbs [aria-current="page"] { color: var(--ink); }

/* 9 — 通用组件
   ========================================================================== */
/* 标签钉 */
.tag,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.6;
}
.tag {
  background: var(--orange-soft);
  border: 1px solid rgba(232, 85, 31, 0.28);
  color: #8A2F0F;
}
.chip {
  background: rgba(14, 124, 134, 0.1);
  border: 1px solid rgba(14, 124, 134, 0.32);
  color: var(--teal-deep);
}
.section--teal .chip,
.section--night .chip {
  background: rgba(255, 227, 214, 0.14);
  border-color: rgba(255, 227, 214, 0.34);
  color: var(--orange-soft);
}

/* 档案卡 */
.card {
  background: var(--paper);
  border: var(--edge);
  border-radius: var(--r-md);
  padding: clamp(18px, 2.4vw, 28px);
  box-shadow: var(--shadow);
}
.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.28;
  letter-spacing: -0.005em;
}
.card-meta {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

/* 分段标签页 */
.tab-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid var(--mist);
  margin-bottom: 0;
}
.tab-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  background: var(--paper);
  color: var(--teal-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.tab-btn:hover { background: var(--orange-soft); color: #8A2F0F; }
.tab-btn[aria-selected="true"] {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--paper);
}
.tab-panel { padding-top: 24px; }
.tab-panel:focus-visible { outline: 3px solid var(--orange); outline-offset: 6px; }

/* 战术贴士条 */
.tip-strip {
  border: var(--edge);
  border-left: 4px solid var(--orange);
  border-radius: var(--r-sm);
  background: var(--paper);
  padding: 0;
  overflow: hidden;
}
.tip-strip > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--teal-deep);
}
.tip-strip > summary::-webkit-details-marker { display: none; }
.tip-strip > summary::before {
  content: "+";
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--orange);
  width: 1em;
  text-align: center;
}
.tip-strip[open] > summary::before { content: "–"; }
.tip-strip > summary:hover { background: rgba(255, 227, 214, 0.5); }
.tip-strip > :not(summary) {
  padding: 0 18px 16px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* 图片容器 */
.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-lg);
  border: 1px solid rgba(20, 24, 31, 0.14);
  background: linear-gradient(150deg, var(--teal-deep) 0%, var(--night) 100%);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--sq { aspect-ratio: 1 / 1; }
.media-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* 渐显 */
[data-js="on"] [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
[data-js="on"] [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* 10 — 响应式
   ========================================================================== */
@keyframes navUnfold {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 1080px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  }
  .footer-contact { grid-column: 1 / -1; }
  .footer-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 28px;
  }
}

@media (max-width: 900px) {
  .cmd-utility { display: none; }
  .nav-toggle { display: inline-flex; }

  .site-nav { display: none; }
  .site-nav[data-open] {
    display: block;
    animation: navUnfold 0.22s var(--ease) both;
  }

  .site-nav .nav-list {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    margin-inline: 0;
    padding-block: 4px 10px;
  }
  .nav-item { border-bottom: 1px solid rgba(251, 249, 245, 0.14); }
  .nav-item:last-child { border-bottom: 0; }

  .nav-link {
    min-height: 52px;
    padding: 14px 0;
    font-size: 16px;
  }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] {
    background: transparent;
    box-shadow: inset 4px 0 0 var(--orange);
    padding-left: 14px;
  }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }

  .brand-tagline { font-size: 10px; letter-spacing: 0.1em; }
  .brand-line { font-size: 17px; }
}

@media (max-width: 600px) {
  .cmd-inner { flex-wrap: wrap; row-gap: 10px; }
  .cmd-actions { width: 100%; justify-content: space-between; }
  .cmd-actions .btn-cta { flex: 1 1 auto; }

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

  .crumbs { font-size: 11px; letter-spacing: 0.04em; }

  .media-frame { border-radius: var(--r-md); }
  .tab-btn { padding: 11px 14px; font-size: 15px; }
}

/* 11 — 无障碍与降噪
   ========================================================================== */
@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;
  }

  [data-js="on"] [data-reveal],
  [data-js="on"] [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }

  .footer-link:hover,
  .footer-link:focus-visible { transform: none; }
}
