/* ==========================================================
   VWIN 德赢赛场 · 全站共享样式
   文件位置：/assets/site.css
   覆盖：reset、变量、排版、头部、页脚、按钮、面包屑、
        正文容器、网格与基础组件
   ========================================================== */

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

html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
figure,
dl,
dd,
ul,
ol,
address {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

address {
  font-style: normal;
}

/* ---------- 2. CSS 变量 ---------- */
:root {
  --navy: #0A1E3F;
  --navy-2: #122A54;
  --navy-deep: #071426;
  --blue: #00B3FF;
  --orange: #FF6B00;
  --orange-dark: #CC5500;
  --white: #FFFFFF;
  --cloud: #F0F4F8;
  --silver: #A0B0C0;
  --line: rgba(255, 255, 255, 0.08);
  --grad-accent: linear-gradient(135deg, #FF6B00 0%, #00B3FF 100%);
  --font-heading: Impact, "Oswald", "Arial Narrow", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Open Sans", "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --container: 1200px;
  --max-line: 600px;
  --header-z: 100;
  --radius: 2px;
}

/* ---------- 3. 基础排版与背景 ---------- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--white);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

main#main-content {
  flex: 1;
  width: 100%;
  outline: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

p {
  overflow-wrap: break-word;
  word-break: break-word;
}

a {
  transition: color 0.2s ease;
}

::selection {
  background: var(--orange);
  color: var(--navy);
}

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

/* ---------- 4. 布局工具 ---------- */
.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: clamp(2.5rem, 7vw, 5rem) 0;
}

.section--narrow {
  padding-inline: 1rem;
}

.section--wide {
  width: 100%;
}

.divider {
  height: 1px;
  margin: 2rem 0;
  background: var(--line);
  border: 0;
}

.scale-line {
  height: 10px;
  background: repeating-linear-gradient(
    90deg,
    rgba(160, 176, 192, 0.35) 0px,
    rgba(160, 176, 192, 0.35) 1px,
    transparent 1px,
    transparent 10px
  );
  opacity: 0.5;
  pointer-events: none;
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  line-height: 1;
  color: var(--navy);
  background: var(--orange);
  border-radius: 0;
  cursor: pointer;
  text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--orange-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--orange);
  color: var(--navy);
}

.btn--primary:hover {
  background: var(--orange-dark);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--cloud);
  border: 1px solid var(--line);
  padding: calc(0.75rem - 1px) 1.5rem;
}

.btn--ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(0, 179, 255, 0.06);
  transform: none;
}

.btn--compact {
  padding: 0.55rem 1.1rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}

/* ---------- 6. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: -120px;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--navy);
  background: var(--orange);
  border-radius: var(--radius);
  transition: top 0.2s ease;
}

.skip-link:hover {
  color: var(--navy);
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- 7. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--header-z);
  background: var(--navy);
  border-bottom: 1px solid var(--line);
}

.progress-track {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
  z-index: calc(var(--header-z) + 100);
}

.progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--orange) 0%, var(--blue) 100%);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.masthead__strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 2rem 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--silver);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.masthead__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px rgba(255, 107, 0, 0.6);
}

.masthead__edition {
  font-family: var(--font-heading);
  letter-spacing: 0.35em;
  color: var(--silver);
}

.masthead__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 2rem;
}

.masthead__side {
  display: flex;
  align-items: center;
  justify-self: start;
}

.masthead__kicker {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  color: var(--silver);
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.nav-toggle:hover {
  border-color: rgba(255, 107, 0, 0.5);
}

.nav-toggle__line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

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

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

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

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
}

.brand__cn {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--white);
}

.brand__en {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--blue);
  margin-top: 0.3rem;
  padding-bottom: 0.3rem;
  position: relative;
}

.brand__en::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 2px;
  background: var(--grad-accent);
}

.masthead__tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-self: end;
}

.masthead__search {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--cloud);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.masthead__search:hover {
  color: var(--orange);
  border-color: rgba(255, 107, 0, 0.5);
}

.masthead__search-ic {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.masthead__search-ic::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 6px;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
}

.main-nav {
  border-top: 1px solid var(--line);
}

.main-nav__list {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  max-width: var(--container);
  margin-inline: auto;
  padding: 0 1rem;
}

.main-nav__link {
  display: inline-block;
  position: relative;
  padding: 0.9rem 1.25rem 0.8rem;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--cloud);
  transition: color 0.2s ease;
}

.main-nav__link::after {
  content: "";
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 0.35rem;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.2s ease;
}

.main-nav__link:hover {
  color: var(--white);
}

.main-nav__link:hover::after {
  transform: scaleX(1);
}

.main-nav__link[aria-current="page"] {
  color: var(--orange);
}

.main-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

/* ---------- 8. 页脚 ---------- */
.site-footer {
  margin-top: auto;
  position: relative;
  background: var(--navy-deep);
  border-top: 1px solid var(--line);
}

.footer-lane {
  height: 3px;
  background: var(--grad-accent);
  opacity: 0.85;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.4fr;
  gap: 3rem;
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}

.footer-col {
  min-width: 0;
}

.footer-col--brand {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: flex-start;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--white);
  line-height: 1.1;
}

.footer-brand__tag {
  font-family: var(--font-heading);
  font-size: 0.58rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--blue);
}

.footer-trust {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--silver);
  max-width: 280px;
}

.footer-icp {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--silver);
  opacity: 0.65;
  margin-top: 0.25rem;
}

.footer-col__title {
  display: inline-block;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--cloud);
  border-bottom: 2px solid var(--orange);
}

.footer-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem 1rem;
  font-size: 0.88rem;
}

.footer-list a {
  display: inline-block;
  padding: 0.15rem 0;
  color: var(--silver);
  transition: color 0.2s ease, transform 0.2s ease;
  transform-origin: left center;
}

.footer-list a:hover {
  color: var(--orange);
  transform: translateX(3px);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.9rem;
}

.footer-contact-list__item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.footer-contact-list__label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--silver);
  text-transform: uppercase;
}

.footer-contact-list__value {
  font-size: 0.9rem;
  color: var(--white);
  overflow-wrap: anywhere;
}

.footer-contact-list__item--note {
  margin-top: 0.4rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--silver);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--silver);
}

.footer-bottom__deco {
  flex-shrink: 0;
  width: 40px;
  height: 3px;
  background: var(--grad-accent);
}

/* ---------- 9. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem 0;
  font-size: 0.82rem;
  color: var(--silver);
}

.breadcrumb a {
  color: var(--silver);
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--orange);
}

.breadcrumb__sep {
  color: var(--blue);
  font-size: 0.7rem;
  opacity: 0.7;
}

.breadcrumb__current {
  color: var(--cloud);
}

/* ---------- 10. 页面标题区 ---------- */
.page-head {
  padding: clamp(2rem, 5vw, 3.5rem) 0 1.5rem;
  border-bottom: 1px solid var(--line);
}

.page-head__kicker {
  margin-bottom: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--blue);
}

.page-head__title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  letter-spacing: 0.04em;
  text-shadow: 3px 3px 0 rgba(0, 179, 255, 0.18);
}

.page-head__desc {
  margin-top: 0.6rem;
  max-width: var(--max-line);
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--silver);
}

/* ---------- 11. 章节标题 ---------- */
.section__head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section__index {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--orange);
}

.section__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: 0.06em;
}

.section__note {
  margin-left: auto;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  writing-mode: vertical-rl;
  color: var(--silver);
  white-space: nowrap;
}

/* ---------- 12. 卡片 ---------- */
.card {
  position: relative;
  padding: 1.5rem;
  background: var(--navy-2);
  border: 1px solid var(--line);
  border-radius: 0;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: rgba(255, 107, 0, 0.5);
  transform: translateY(-3px);
}

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

.card__title {
  margin-bottom: 0.45rem;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}

.card__desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--silver);
}

/* ---------- 13. 标签 ---------- */
.tag {
  display: inline-block;
  padding: 0.22em 0.7em;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--blue);
  background: rgba(0, 179, 255, 0.08);
  border: 1px solid rgba(0, 179, 255, 0.35);
  text-transform: uppercase;
}

.tag--hot {
  color: var(--orange);
  background: rgba(255, 107, 0, 0.08);
  border-color: rgba(255, 107, 0, 0.35);
}

/* ---------- 14. 数据面板 ---------- */
.data-panel {
  position: relative;
  padding: 1.5rem;
  background: var(--navy-2);
  border: 1px solid var(--line);
  border-radius: 0;
}

.data-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--grad-accent);
}

.data-panel__title {
  margin-bottom: 0.8rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--blue);
}

.data-panel__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}

.data-panel__row:last-child {
  border-bottom: none;
}

.data-panel__label {
  color: var(--silver);
}

.data-panel__value {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--orange);
}

/* ---------- 15. 单个数据块 ---------- */
.stat {
  text-align: center;
  padding: 1rem 0;
}

.stat__value {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1;
  color: var(--orange);
}

.stat__label {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--silver);
}

/* ---------- 16. 图片容器 ---------- */
.img-frame {
  position: relative;
  background: var(--navy-2);
  border: 1px solid var(--line);
  overflow: hidden;
  min-height: 0;
}

.img-frame::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 38px;
  height: 38px;
  border-right: 3px solid var(--orange);
  border-bottom: 3px solid var(--orange);
  pointer-events: none;
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.img-frame:hover img {
  transform: scale(1.02);
}

.img-frame--ratio-16-9 {
  aspect-ratio: 16 / 9;
}

.img-frame--ratio-4-3 {
  aspect-ratio: 4 / 3;
}

.img-frame--ratio-1-1 {
  aspect-ratio: 1 / 1;
}

/* ---------- 17. 框景首屏 ---------- */
.hero-frame {
  position: relative;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
}

.hero-frame::before,
.hero-frame::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  pointer-events: none;
}

.hero-frame::before {
  top: -2px;
  left: -2px;
  border-top: 3px solid var(--orange);
  border-left: 3px solid var(--orange);
}

.hero-frame::after {
  right: -2px;
  bottom: -2px;
  border-right: 3px solid var(--blue);
  border-bottom: 3px solid var(--blue);
}

/* ---------- 18. 响应式 ---------- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .footer-col--contact {
    grid-column: 1 / -1;
  }

  .masthead__bar {
    padding: 1rem;
  }

  .masthead__strip {
    padding: 0.6rem 1rem 0.35rem;
  }
}

@media (max-width: 768px) {
  .masthead__strip {
    display: none;
  }

  .masthead__bar {
    gap: 0.75rem;
    padding: 0.7rem 1rem;
  }

  .masthead__kicker {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .brand__cn {
    font-size: 1.55rem;
    letter-spacing: 0.08em;
  }

  .brand__en {
    font-size: 0.5rem;
    letter-spacing: 0.3em;
  }

  .masthead__tools {
    gap: 0.25rem;
  }

  .masthead__search {
    padding: 0.4rem 0.5rem;
  }

  .masthead__search-text {
    display: none;
  }

  .btn--compact {
    padding: 0.5rem 0.85rem;
    font-size: 0.7rem;
  }

  .main-nav {
    max-height: 0;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    overflow: hidden;
    transition: max-height 0.2s ease, opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .main-nav[data-open] {
    max-height: 380px;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .main-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 1rem 0.75rem;
  }

  .main-nav__link {
    display: block;
    padding: 0.85rem 0.5rem;
    text-align: center;
    border-bottom: 1px solid var(--line);
  }

  .main-nav__link::after {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 0;
  }

  .footer-col--contact {
    grid-column: auto;
  }

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

  .section__head {
    flex-wrap: wrap;
  }

  .section__note {
    margin-left: 0;
    writing-mode: horizontal-tb;
  }
}

@media (max-width: 480px) {
  .masthead__search {
    display: none;
  }

  .brand__cn {
    font-size: 1.35rem;
    letter-spacing: 0.06em;
  }

  .brand__en {
    display: none;
  }

  .masthead__bar {
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .btn--compact {
    padding: 0.45rem 0.8rem;
    font-size: 0.68rem;
  }

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

/* ---------- 19. 弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
