/* ==========================================================================
   德赢体育 · 共享样式 /assets/site.css
   夜场转播间视觉：墨绿底 + 荧光青路径 + 琥珀金赛程 + 玫红状态
   ========================================================================== */

:root {
  /* 色彩 */
  --ink: #071512;
  --panel: #0C231D;
  --panel-2: #0F2A24;
  --cyan: #3BF2CE;
  --mist: #9BE8DA;
  --amber: #F5B740;
  --rose: #FF5C8A;
  --paper: #F6F9F4;
  --cool: #DCE9E3;
  --sage: #7F9A91;
  --glass: rgba(15, 42, 36, 0.55);
  --shade: #030B09;

  --line: rgba(155, 232, 218, 0.16);
  --line-strong: rgba(155, 232, 218, 0.32);

  /* 字体 */
  --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-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* 尺度 */
  --step-xl: clamp(3.2rem, 11vw, 8.5rem);
  --step-lg: clamp(1.8rem, 4vw, 3rem);
  --step-md: clamp(1.25rem, 2vw, 1.5rem);
  --shell: min(1240px, 100% - 40px);
  --gap: clamp(20px, 3.4vw, 56px);
  --section-y: clamp(64px, 9vw, 140px);
  --radius: 18px;
  --radius-lg: 26px;
}

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

* { margin: 0; }

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

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a { color: inherit; }

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

/* ---------- 基础排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 620px at 82% -8%, rgba(59, 242, 206, 0.10), transparent 62%),
    radial-gradient(900px 520px at 2% 104%, rgba(245, 183, 64, 0.07), transparent 58%);
  background-attachment: fixed;
  color: var(--cool);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.015em;
  color: var(--paper);
}

p { max-width: 64ch; }

small { font-size: 12.5px; }

a { color: var(--mist); }

a:hover { color: var(--cyan); }

::selection {
  background: var(--cyan);
  color: #04120F;
}

/* ---------- 排版工具 ---------- */
.display-xl {
  font-family: var(--font-display);
  font-size: var(--step-xl);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.03em;
  color: var(--paper);
}

.display-lg {
  font-family: var(--font-display);
  font-size: var(--step-lg);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--paper);
}

.display-mid {
  font-family: var(--font-display);
  font-size: var(--step-md);
  font-weight: 800;
  line-height: 1.3;
  color: var(--paper);
}

.editorial {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.6;
  color: var(--paper);
}

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
}

/* ---------- 布局容器 ---------- */
.container {
  width: var(--shell);
  margin-inline: auto;
}

.container--narrow {
  width: min(760px, 100% - 40px);
  margin-inline: auto;
}

.section { padding-block: var(--section-y); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(28px, 4vw, 56px);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.grid {
  display: grid;
  gap: var(--gap);
}

.grid--8-4 { grid-template-columns: 8fr 4fr; }
.grid--7-5 { grid-template-columns: 7fr 5fr; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn--primary {
  background: var(--cyan);
  color: #04120F;
}

.btn--primary:hover {
  color: #04120F;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -20px var(--cyan);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--cool);
  background: transparent;
}

.btn--ghost:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(59, 242, 206, 0.08);
}

.btn--rose {
  background: var(--rose);
  color: #200510;
}

.btn--rose:hover {
  color: #200510;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -20px var(--rose);
}

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--mist);
  white-space: nowrap;
}

.tag--cyan {
  color: var(--cyan);
  border-color: rgba(59, 242, 206, 0.45);
  background: rgba(59, 242, 206, 0.1);
}

.tag--amber {
  color: var(--amber);
  border-color: rgba(245, 183, 64, 0.45);
  background: rgba(245, 183, 64, 0.1);
}

.tag--rose {
  color: var(--rose);
  border-color: rgba(255, 92, 138, 0.45);
  background: rgba(255, 92, 138, 0.1);
}

/* ---------- 面包屑 ---------- */
.breadcrumb { margin-bottom: 22px; }

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--sage);
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: rgba(155, 232, 218, 0.35);
}

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

.breadcrumb-item a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

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

/* ---------- 层 ---------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.glass {
  background: var(--glass);
  border: 1px solid rgba(155, 232, 218, 0.22);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* ---------- 图片容器（页面阶段放占位） ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel-2);
  isolation: isolate;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.05);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 21, 18, 0.10) 0%, rgba(3, 11, 9, 0.78) 100%);
}

.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }

.clip-corner {
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
}

.clip-corner--flip {
  clip-path: polygon(24px 0, 100% 0, 100% 100%, 0 100%, 0 24px);
}

/* ---------- 滚动显现 ---------- */
html.has-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.6s ease-out;
}

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

/* ---------- 滚动进度条（由 JS 注入） ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  pointer-events: none;
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--cyan);
  color: #04120F;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  color: #04120F;
}

/* ==========================================================================
   页头 · 紧凑命令栏
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: linear-gradient(180deg, rgba(7, 21, 18, 0.97), rgba(7, 21, 18, 0.86));
  border-bottom: 1px solid rgba(155, 232, 218, 0.14);
  transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.site-header.is-stuck {
  background: var(--glass);
  border-bottom-color: rgba(59, 242, 206, 0.30);
  box-shadow: 0 20px 46px -32px #000;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(14px, 2vw, 32px);
  width: var(--shell);
  margin-inline: auto;
  padding-block: 13px;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 3px;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(59, 242, 206, 0.14), 0 0 18px rgba(59, 242, 206, 0.55);
  transform: rotate(45deg);
}

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

.brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.brand-signature {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--sage);
}

/* 导航 */
.primary-nav { justify-self: center; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item { flex: 0 0 auto; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--cool);
  text-decoration: none;
  transition: color 0.22s ease, background-color 0.22s ease;
}

.nav-link:hover {
  color: var(--cyan);
  background: rgba(59, 242, 206, 0.08);
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--sage);
  transition: color 0.22s ease;
}

.nav-link[aria-current="page"] {
  color: var(--cyan);
  font-weight: 700;
}

.nav-link[aria-current="page"] .nav-index { color: var(--amber); }

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(59, 242, 206, 0.75);
}

.nav-item--cta { display: none; }

/* 右工具 */
.header-utils {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

.util-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cool);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.util-link:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(59, 242, 206, 0.08);
}

.util-link--rose {
  color: var(--rose);
  border-color: rgba(255, 92, 138, 0.42);
  background: rgba(255, 92, 138, 0.08);
}

.util-link--rose::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 10px rgba(255, 92, 138, 0.85);
}

.util-link--rose:hover {
  color: #200510;
  background: var(--rose);
  border-color: var(--rose);
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid rgba(59, 242, 206, 0.42);
  border-radius: 999px;
  background: rgba(59, 242, 206, 0.09);
  color: var(--cyan);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}

.nav-toggle-bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  margin-top: var(--section-y);
  padding-top: clamp(48px, 7vw, 96px);
  border-top: 1px solid rgba(59, 242, 206, 0.22);
  background: linear-gradient(180deg, var(--panel) 0%, #04100D 56%, var(--shade) 100%);
  color: var(--cool);
}

.footer-inner {
  width: var(--shell);
  margin-inline: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) minmax(120px, 0.75fr) minmax(120px, 0.75fr) minmax(200px, 1.15fr);
  gap: clamp(24px, 4vw, 64px);
}

.footer-mark {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--paper);
}

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

.footer-feedback {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 11px 18px;
  border: 1px solid rgba(255, 92, 138, 0.45);
  border-radius: 999px;
  background: rgba(255, 92, 138, 0.12);
  color: var(--rose);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.footer-feedback:hover {
  background: var(--rose);
  border-color: var(--rose);
  color: #200510;
}

.footer-feedback-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--rose);
  animation: feedback-pulse 2.4s ease-out infinite;
}

@keyframes feedback-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 92, 138, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(255, 92, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 92, 138, 0); }
}

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

.footer-col-title {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
}

.footer-links {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-block;
  font-size: 14.5px;
  color: var(--cool);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-links a:hover {
  color: var(--cyan);
  border-bottom-color: rgba(59, 242, 206, 0.6);
}

.footer-contact-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-contact-item {
  display: grid;
  gap: 3px;
}

.footer-contact-key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--sage);
}

.footer-contact-value {
  font-size: 14px;
  line-height: 1.6;
  color: var(--cool);
  word-break: break-all;
}

.footer-hours { color: var(--mist); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  margin-top: clamp(36px, 5vw, 64px);
  padding-block: 22px;
  border-top: 1px solid rgba(155, 232, 218, 0.14);
  font-size: 12.5px;
  color: var(--sage);
}

.footer-legal {
  margin: 0;
  max-width: none;
}

.footer-legal a {
  color: var(--mist);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--cyan);
}

.footer-icp {
  margin: 0;
  max-width: none;
  letter-spacing: 0.06em;
  color: var(--sage);
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1079px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding-block: 11px;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .header-utils { display: none; }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    justify-self: stretch;
    padding: 10px 0 16px;
    background: var(--glass);
    border-bottom: 1px solid rgba(59, 242, 206, 0.26);
    box-shadow: 0 26px 48px -30px #000;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  .primary-nav[data-open="true"] { display: block; }

  .nav-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    padding-inline: 16px;
    scrollbar-width: thin;
  }

  .nav-link {
    padding: 10px 13px;
    font-size: 14.5px;
    border: 1px solid var(--line);
    background: rgba(12, 35, 29, 0.7);
  }

  .nav-link[aria-current="page"]::after { display: none; }

  .nav-link[aria-current="page"] {
    border-color: var(--cyan);
    background: rgba(59, 242, 206, 0.12);
  }

  .nav-item--cta {
    display: block;
    margin-left: 6px;
  }

  .nav-item--cta .btn {
    padding: 10px 18px;
    font-size: 13.5px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 40px;
  }

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

@media (max-width: 900px) {
  .grid--8-4,
  .grid--7-5 { grid-template-columns: 1fr; }
}

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

  :root { --shell: min(1240px, 100% - 28px); }

  .container--narrow { width: min(760px, 100% - 28px); }

  .brand-name { font-size: 16px; }

  .brand-signature { font-size: 9.5px; }

  .footer-grid {
    grid-template-columns: 1fr;
    row-gap: 34px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ==========================================================================
   降低动效偏好
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  html.has-reveal [data-reveal] {
    opacity: 1;
    transform: none;
    transition: opacity 0.2s ease;
  }

  .site-header,
  .nav-link,
  .util-link,
  .nav-toggle,
  .nav-toggle-bars span,
  .btn,
  .footer-feedback,
  .footer-links a,
  .breadcrumb-item a {
    transition: none;
  }

  .footer-feedback-dot { animation: none; }
}
