/* ============================================================
   万搏官网 · /assets/site.css
   共享外壳：品牌轨道 / 胶囊导航 / 页脚 / 通用组件
   ============================================================ */

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

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

body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { max-width: 100%; }
button { font: inherit; }

:root {
  --sand: #FBF3E4;
  --sand-2: #F4E8D6;
  --sand-3: #EDE0C9;
  --ink: #212A26;
  --ink-2: #4C564F;
  --mint: #4FC3A1;
  --mint-deep: #2E9E7B;
  --mint-mist: #DDF0E7;
  --volt: #2F5BFF;
  --flame: #FF6B4A;
  --archive: #A9B8C6;
  --archive-2: #5C6E7E;
  --paper: #FFFFFF;

  --rail-w: 76px;
  --shell: 1180px;
  --pad: clamp(20px, 4vw, 44px);
  --cut: 16px;
  --radius: 16px;

  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.22, .7, .3, 1);
  --shadow-lift: 0 16px 32px -20px rgba(33, 42, 38, .55);
  --shadow-soft: 0 2px 0 rgba(33, 42, 38, .08);
}

::selection { background: var(--mint); color: #0A2B22; }

body {
  margin: 0;
  padding-left: var(--rail-w);
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-width: 1024px) {
  body { font-size: 18px; }
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: .01em;
  color: var(--ink);
}
h1 { font-size: clamp(32px, 5vw, 64px); }
h2 { font-size: clamp(25px, 3.4vw, 40px); }
h3 { font-size: clamp(19px, 2.2vw, 26px); }

p { max-width: 38em; }

a { color: var(--volt); text-underline-offset: 3px; }

:focus-visible {
  outline: 3px solid var(--volt);
  outline-offset: 3px;
  border-radius: 6px;
}

#main-content {
  display: block;
  position: relative;
  padding-top: clamp(20px, 3vw, 42px);
}

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: -90px;
  left: 14px;
  z-index: 300;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--sand);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top .18s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { top: 14px; }

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

/* 品牌轨道 */
.brand-rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--ink);
  color: var(--sand);
  text-decoration: none;
  z-index: 80;
  overflow: hidden;
}
.brand-rail::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--mint) 0%, rgba(79, 195, 161, .18) 46%, transparent 82%);
}
.rail-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(79, 195, 161, .16);
  flex: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.brand-rail:hover .rail-dot,
.brand-rail:focus-visible .rail-dot {
  transform: scale(1.25);
  box-shadow: 0 0 0 7px rgba(79, 195, 161, .22);
}
.rail-name {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: .2em;
  color: var(--sand);
}
.rail-latin {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .34em;
  color: var(--mint);
  opacity: .85;
}

/* 胶囊导航 */
.nav-shell {
  position: fixed;
  top: 22px;
  right: 26px;
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 10px;
}
.capsule {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px;
  border: 1px solid rgba(33, 42, 38, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--shadow-lift);
  backdrop-filter: blur(8px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s var(--ease);
}
.capsule-list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.capsule-link {
  display: block;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.capsule-link:hover { background: var(--mint-mist); color: var(--ink); }
.capsule-link[aria-current="page"] {
  background: var(--ink);
  color: var(--sand);
  font-weight: 700;
}
.capsule-link[aria-current="page"]:hover { background: var(--ink); color: var(--sand); }

.capsule-cta {
  margin-left: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--mint);
  color: #0A2B22;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s var(--ease), color .15s var(--ease), transform .15s var(--ease);
}
.capsule-cta:hover {
  background: var(--mint-deep);
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* 移动 / 折叠切换按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(33, 42, 38, .18);
  border-radius: 50%;
  background: var(--mint);
  color: #0A2B22;
  cursor: pointer;
  box-shadow: var(--shadow-lift);
  transition: background .15s var(--ease), color .15s var(--ease), transform .15s var(--ease);
}
.nav-toggle:hover { background: var(--mint-deep); color: #FFFFFF; }
.nav-toggle-glyph {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}
.nav-toggle-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* 折叠态：胶囊收为圆钮，展开成纵向浮岛 */
.site-header[data-condensed] .nav-toggle { display: inline-flex; }
.site-header[data-condensed] .capsule {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 224px;
  flex-direction: column;
  align-items: stretch;
  padding: 10px;
  border-radius: 22px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(.97);
  pointer-events: none;
}
.site-header[data-condensed] .capsule-list {
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}
.site-header[data-condensed] .capsule-link { padding: 11px 14px; border-radius: 14px; }
.site-header[data-condensed] .capsule-cta { margin: 8px 0 0; text-align: center; }
.site-header[data-condensed][data-nav-open] .capsule {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

/* 返回顶部 */
.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 85;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(33, 42, 38, .16);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-lift);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s var(--ease), background .15s var(--ease), color .15s var(--ease);
}
.to-top[data-visible] { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--mint); color: #0A2B22; }
.to-top-glyph {
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg) translate(1px, 1px);
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 10vw, 120px);
  background: var(--sand-2);
  color: var(--ink);
  border-top: 1px solid rgba(33, 42, 38, .12);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--mint) 0 34px, var(--mint-mist) 34px 68px);
}
.foot-inner {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(38px, 5vw, 66px) var(--pad) clamp(28px, 4vw, 44px);
  display: grid;
  grid-template-columns: 1.4fr .85fr 1.3fr .8fr;
  gap: clamp(24px, 3vw, 46px);
}
.foot-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 900;
  letter-spacing: .02em;
  margin-bottom: 12px;
}
.foot-line {
  max-width: 26em;
  font-size: 15px;
  line-height: 1.72;
  color: var(--ink-2);
}
.foot-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--mint-deep);
}
.foot-mark-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--flame);
}
.foot-head {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--archive-2);
}
.foot-nav { display: grid; gap: 9px; }
.foot-link {
  display: inline-block;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.foot-link:hover { color: var(--mint-deep); border-color: var(--mint-deep); }
.foot-meta {
  display: grid;
  gap: 8px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
}
.foot-mono {
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: -.01em;
  color: var(--ink);
  word-break: break-word;
}
.foot-note {
  margin-top: 14px;
  max-width: 30em;
  font-size: 13px;
  line-height: 1.65;
  color: var(--archive-2);
}
.foot-base {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 18px var(--pad) 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  border-top: 1px dashed rgba(33, 42, 38, .22);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--archive-2);
}
.foot-copy, .foot-icp { margin: 0; max-width: none; }

/* ---------- 通用排版与组件 ---------- */
.wrap {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mint-deep);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--flame);
}
.lede {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.8;
  color: var(--ink-2);
  max-width: 34em;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--mint-mist);
  color: var(--mint-deep);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease);
}
.btn--primary {
  background: var(--mint);
  color: #0A2B22;
  box-shadow: 0 10px 0 -6px rgba(46, 158, 123, .45);
}
.btn--primary:hover { background: var(--mint-deep); color: #FFFFFF; transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  border-color: rgba(33, 42, 38, .3);
  color: var(--ink);
}
.btn--ghost:hover { background: var(--paper); border-color: var(--ink); transform: translateY(-2px); }

.breadcrumb {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 22px var(--pad) 0;
}
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--archive-2);
}
.breadcrumb__link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--mint);
  padding-bottom: 1px;
}
.breadcrumb__link:hover { color: var(--mint-deep); border-color: var(--mint-deep); }
.breadcrumb__sep { color: var(--archive); }

.cut-panel {
  background: var(--paper);
  padding: clamp(20px, 3vw, 32px);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--mint-mist);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}
.media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }

/* ---------- 平板 ---------- */
@media (max-width: 1024px) {
  .foot-inner { grid-template-columns: 1fr 1fr; }
}

/* ---------- 手机 ---------- */
@media (max-width: 860px) {
  :root { --rail-w: 0px; }

  body {
    padding-left: 0;
    padding-top: 58px;
    font-size: 16px;
  }

  .brand-rail {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    height: 58px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 0 16px 0 18px;
  }
  .brand-rail::after { display: none; }
  .rail-name {
    writing-mode: horizontal-tb;
    font-size: 19px;
    letter-spacing: .14em;
  }
  .rail-latin {
    writing-mode: horizontal-tb;
    font-size: 10px;
    letter-spacing: .26em;
    align-self: center;
  }

  .nav-shell { top: 6px; right: 12px; }
  .nav-toggle { display: inline-flex; }

  .capsule {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(78vw, 264px);
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border-radius: 22px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
  }
  .capsule-list { flex-direction: column; align-items: stretch; gap: 4px; }
  .capsule-link { padding: 12px 14px; border-radius: 14px; font-size: 15px; }
  .capsule-cta { margin: 8px 0 0; text-align: center; }
  .site-header[data-nav-open] .capsule {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }

  #main-content { padding-top: 16px; }
}

@media (max-width: 620px) {
  .foot-inner { grid-template-columns: 1fr; gap: 30px; }
  .foot-base { flex-direction: column; align-items: flex-start; }
}

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
