/* ============================================================
   得胜28 品牌 · 共享样式表 /assets/site.css
   高原清晨 · 竖向轨道 · 展签索引 · 切角运动语言
   ============================================================ */

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

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

html.nav-open {
  overflow: hidden;
}

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

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

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

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

address {
  font-style: normal;
}

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

.site-footer :focus-visible {
  outline-color: var(--sand);
}

/* ---------- 2. 变量 ---------- */
:root {
  --paper: #FBF7F0;
  --sand-light: #F4E8D8;
  --sand: #D8B98A;
  --red: #B7352D;
  --red-deep: #7E1F1A;
  --red-soft: #F3D8D4;
  --teal: #1F5C5A;
  --teal-deep: #123C3B;
  --teal-soft: #D9E8E5;
  --ink: #1C1B19;
  --moss: #6F7F78;
  --white: #FFFFFF;

  --rail-w: 88px;
  --topbar-h: 60px;
  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1240px;

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular,
    Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 200ms;
  --line: rgba(28, 27, 25, 0.12);
}

/* ---------- 3. 排版 ---------- */
h1,
.h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

h2,
.h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.14;
  letter-spacing: -0.015em;
}

h3,
.h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.88em;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--red);
  flex: none;
}

.prose {
  max-width: 68ch;
}

.prose p + p {
  margin-top: 1em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 4. 布局工具 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(44px, 7vw, 88px);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 24px;
  margin-bottom: clamp(20px, 3vw, 36px);
}

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 28px);
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  padding: 16px 26px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color var(--dur) var(--ease),
    color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.btn--primary {
  --btn-bg: var(--red);
  color: var(--white);
  background-color: var(--btn-bg);
  background-image: linear-gradient(225deg, transparent 13px, var(--btn-bg) 13px);
}

.btn--primary:hover {
  --btn-bg: var(--red-deep);
}

.btn--primary:active {
  transform: translateY(1px);
}

.btn--ghost {
  color: var(--teal-deep);
  border-color: rgba(18, 60, 59, 0.3);
  background: transparent;
}

.btn--ghost:hover {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
  color: var(--white);
}

/* ---------- 6. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 11px;
  background: var(--teal-soft);
  color: var(--teal-deep);
  white-space: nowrap;
}

.tag--red {
  background: var(--red-soft);
  color: var(--red-deep);
}

.tag--sand {
  background: var(--sand-light);
  color: #6B4E27;
}

/* ---------- 7. 面板 / 图片容器 ---------- */
.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background-color: var(--white);
  background-image: linear-gradient(225deg, transparent 16px, var(--white) 16px);
  box-shadow: 0 1px 0 rgba(28, 27, 25, 0.08);
}

.panel--sand {
  background-color: var(--sand-light);
  background-image: linear-gradient(225deg, transparent 16px, var(--sand-light) 16px);
}

.figure {
  position: relative;
  overflow: hidden;
  background: var(--sand-light);
  aspect-ratio: 4 / 3;
  isolation: isolate;
}

.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms var(--ease);
}

.figure::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(198deg, rgba(31, 92, 90, 0.12), transparent 58%);
}

.figure--wide {
  aspect-ratio: 16 / 9;
}

.figure--tall {
  aspect-ratio: 3 / 4;
}

.figure--square {
  aspect-ratio: 1 / 1;
}

a:hover > .figure img,
.panel:hover .figure img {
  transform: scale(1.03);
}

/* ---------- 8. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-block: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--moss);
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb li + li::before {
  content: "/";
  color: rgba(28, 27, 25, 0.28);
}

.breadcrumb a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.breadcrumb a:hover {
  color: var(--teal);
  border-bottom-color: currentColor;
}

.breadcrumb span[aria-current="page"] {
  color: var(--ink);
}

/* ---------- 9. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 13px 22px;
  background: var(--red);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform var(--dur) var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: none;
  outline: 3px solid var(--teal-deep);
  outline-offset: 2px;
}

/* ---------- 10. 页头：竖向轨道 ---------- */
.site-header {
  position: relative;
  z-index: 60;
}

.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail-w);
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 0 16px;
  background: var(--teal);
  color: var(--paper);
  border-right: 1px solid rgba(251, 247, 240, 0.16);
  overflow-y: auto;
  scrollbar-width: none;
}

.rail::-webkit-scrollbar {
  display: none;
}

.rail__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--paper);
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(251, 247, 240, 0.18);
  width: 56px;
}

.rail__brand-cn {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.16em;
  line-height: 1;
}

.rail__brand-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 4px 7px;
  background: var(--red);
  color: var(--white);
}

.rail__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 14px 0 auto;
}

.rail__link {
  position: relative;
  display: block;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.2em;
  line-height: 1;
  padding: 12px 5px;
  color: rgba(251, 247, 240, 0.78);
  text-decoration: none;
  border-radius: 2px;
  transition: color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.rail__link:hover {
  color: var(--white);
  background: rgba(251, 247, 240, 0.1);
}

.rail__link[aria-current="page"] {
  color: var(--white);
  background: var(--teal-deep);
  font-weight: 700;
}

.rail__link[aria-current="page"]::before {
  content: "";
  position: absolute;
  inset-inline-start: -11px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: var(--red);
  border-radius: 1px;
}

.rail__actions {
  margin-top: auto;
  width: 100%;
  padding: 16px 14px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(251, 247, 240, 0.18);
}

.rail__action {
  display: block;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  line-height: 1;
  padding: 9px 4px;
  color: rgba(251, 247, 240, 0.74);
  text-decoration: none;
  border: 1px solid rgba(251, 247, 240, 0.26);
  transition: color var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

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

.rail__action--accent {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.rail__action--accent:hover {
  background: var(--red-deep);
  border-color: var(--red-deep);
  color: var(--white);
}

.rail__progress {
  position: absolute;
  top: 0;
  right: 0;
  width: 3px;
  height: 100%;
  background: rgba(251, 247, 240, 0.12);
  pointer-events: none;
}

.rail__progress-bar {
  display: block;
  width: 100%;
  height: 0;
  background: var(--red);
}

/* ---------- 11. 移动顶栏 / 抽屉 ---------- */
.topbar {
  display: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--paper);
  padding: 8px 4px;
}

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

.nav-toggle__bars i {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) {
  transform: translateY(6px) 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(-6px) rotate(-45deg);
}

.drawer {
  display: none;
}

/* ---------- 12. 页脚 ---------- */
.site-footer {
  margin-top: clamp(48px, 8vw, 104px);
  background: var(--teal-deep);
  color: rgba(251, 247, 240, 0.82);
  border-top: 3px solid var(--red);
}

.footer__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(28px, 4vw, 44px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 34px 24px;
}

.footer__brand {
  grid-column: span 4;
}

.footer__wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 30px;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--paper);
}

.footer__tagline {
  margin-top: 8px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--sand);
}

.footer__note {
  margin-top: 14px;
  max-width: 26ch;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(251, 247, 240, 0.58);
}

.footer__col {
  grid-column: span 2;
  min-width: 0;
}

.footer__heading {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(251, 247, 240, 0.48);
  margin-bottom: 14px;
}

.footer__list li + li {
  margin-top: 9px;
}

.footer__list a {
  font-size: 14px;
  text-decoration: none;
  color: rgba(251, 247, 240, 0.82);
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.footer__list a:hover {
  color: var(--white);
  border-bottom-color: var(--sand);
}

.footer__subnote {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(251, 247, 240, 0.58);
  margin-bottom: 12px;
}

.footer__sub-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-decoration: none;
  padding: 9px 12px;
  background: var(--red);
  color: var(--white);
  transition: background-color var(--dur) var(--ease);
}

.footer__sub-link:hover {
  background: var(--red-deep);
}

.footer__base {
  border-top: 1px solid rgba(251, 247, 240, 0.14);
  background: rgba(0, 0, 0, 0.16);
}

.footer__base-grid {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 22px var(--gutter) 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 40px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  line-height: 1.6;
  color: rgba(251, 247, 240, 0.62);
}

.footer__contact span:first-child {
  color: rgba(251, 247, 240, 0.85);
}

.footer__legal {
  text-align: right;
}

.footer__legal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: flex-end;
}

.footer__legal-list a {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: rgba(251, 247, 240, 0.72);
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.footer__legal-list a:hover {
  color: var(--white);
  border-bottom-color: var(--sand);
}

.footer__copy {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: rgba(251, 247, 240, 0.42);
}

/* ---------- 13. 动效 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}

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

/* ---------- 14. 响应式 ---------- */
@media (max-height: 820px) {
  .rail__link {
    font-size: 11.5px;
    letter-spacing: 0.16em;
    padding: 9px 4px;
  }

  .rail__action {
    font-size: 10px;
    padding: 7px 4px;
  }

  .rail__brand {
    padding-bottom: 10px;
  }
}

@media (max-width: 1023px) {
  .footer__inner {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 30px 20px;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__note {
    max-width: 46ch;
  }

  .footer__col {
    grid-column: span 3;
  }
}

@media (max-width: 900px) {
  body {
    padding-left: 0;
    padding-top: var(--topbar-h);
  }

  .rail {
    display: none;
  }

  .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-h);
    z-index: 70;
    padding-inline: var(--gutter);
    background: var(--teal);
    color: var(--paper);
    border-bottom: 1px solid rgba(251, 247, 240, 0.16);
  }

  .topbar__brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    color: var(--paper);
  }

  .topbar__mark {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1;
    padding: 4px 6px;
    background: var(--red);
    color: var(--white);
  }

  .topbar__name {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 17px;
    letter-spacing: 0.02em;
    line-height: 1;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .drawer {
    display: block;
    position: fixed;
    inset: var(--topbar-h) 0 0 0;
    z-index: 65;
    padding: 24px var(--gutter) 40px;
    background: var(--teal-deep);
    color: var(--paper);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
      visibility var(--dur);
  }

  .drawer[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .drawer__nav {
    counter-reset: draweridx;
    display: flex;
    flex-direction: column;
  }

  .drawer__link {
    counter-increment: draweridx;
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 16px 2px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.02em;
    text-decoration: none;
    color: rgba(251, 247, 240, 0.86);
    border-bottom: 1px solid rgba(251, 247, 240, 0.14);
    transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
  }

  .drawer__link::before {
    content: "A-" counter(draweridx, decimal-leading-zero);
    flex: none;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: rgba(251, 247, 240, 0.45);
  }

  .drawer__link:hover {
    color: var(--white);
    padding-left: 6px;
  }

  .drawer__link[aria-current="page"] {
    color: var(--white);
    box-shadow: inset 3px 0 0 var(--red);
    padding-left: 14px;
  }

  .drawer__actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 28px;
  }

  .drawer__action {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.14em;
    padding: 13px 6px;
    text-decoration: none;
    color: rgba(251, 247, 240, 0.82);
    border: 1px solid rgba(251, 247, 240, 0.26);
    transition: background-color var(--dur) var(--ease),
      color var(--dur) var(--ease);
  }

  .drawer__action:hover {
    background: var(--paper);
    color: var(--teal-deep);
  }

  .drawer__action--solid {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
  }

  .drawer__action--solid:hover {
    background: var(--red-deep);
    border-color: var(--red-deep);
    color: var(--white);
  }

  .drawer__note {
    margin-top: 34px;
    padding-top: 18px;
    border-top: 1px solid rgba(251, 247, 240, 0.14);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: rgba(251, 247, 240, 0.44);
  }

  .footer__base-grid {
    flex-direction: column;
  }

  .footer__legal {
    text-align: left;
  }

  .footer__legal-list {
    justify-content: flex-start;
  }
}

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

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .footer__col {
    grid-column: 1 / -1;
  }

  .footer__wordmark {
    font-size: 26px;
  }

  .drawer__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .drawer__action--solid {
    grid-column: 1 / -1;
  }

  .breadcrumb {
    padding-block: 16px;
  }
}

@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;
    transform: none;
  }

  .figure img {
    transition: none;
  }
}
