/* ===== W88优德 Site Kit 共享样式 ===== */

/* ---------- 1. 变量与重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --deep-pitch: #0B3B2D;
  --pitch-green: #146A4B;
  --gold-primary: #E8B62B;
  --gold-light: #F8D568;
  --dark-red: #9E2B25;
  --ink: #121C18;
  --paper: #F3F0E6;
  --mist: #D9E3DC;
  --gold-mist: rgba(232, 182, 43, 0.15);

  --font-display: 'Anton', 'Impact', 'Arial Black', 'Noto Sans SC', 'PingFang SC', sans-serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --font-mono: 'Oswald', 'DIN Alternate', 'Bahnschrift', 'Arial Narrow', sans-serif;

  --container: 1200px;
  --container-wider: 1360px;
  --container-narrow: 840px;

  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-pill: 999px;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;

  --shadow-capsule: 0 8px 32px rgba(11, 59, 45, 0.38);
  --shadow-card: 0 2px 16px rgba(18, 28, 24, 0.06);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 200ms var(--ease);
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
}

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

a {
  color: var(--pitch-green);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold-primary);
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 12px;
}

/* ---------- 2. 布局容器 ---------- */
.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.container-wider {
  width: min(100% - 32px, var(--container-wider));
  margin-inline: auto;
}

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

/* ---------- 3. 通用工具 ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 3000;
  padding: 12px 24px;
  background: var(--gold-primary);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  border-radius: 0 0 12px 12px;
  text-decoration: none;
  transition: top 220ms var(--ease);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.skip-link:focus {
  top: 0;
}

.display-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.2vw, 68px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.display-number {
  font-family: var(--font-mono);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--gold-primary);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pitch-green);
  white-space: nowrap;
}

.section-label::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-primary);
  flex-shrink: 0;
}

.section-note {
  writing-mode: vertical-rl;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--pitch-green);
  opacity: 0.72;
  line-height: 1.5;
}

/* ---------- 4. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn-primary {
  background: var(--gold-primary);
  color: var(--ink);
  box-shadow: 0 4px 18px rgba(232, 182, 43, 0.3);
}

.btn-primary:hover {
  background: var(--gold-light);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(232, 182, 43, 0.42);
}

.btn-ghost {
  background: transparent;
  color: var(--gold-primary);
  border-color: var(--gold-primary);
}

.btn-ghost:hover {
  background: var(--gold-mist);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

/* ---------- 5. 标签 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  background: var(--mist);
  color: var(--ink);
}

.badge-gold {
  background: var(--gold-primary);
  color: var(--ink);
}

.badge-live {
  background: var(--dark-red);
  color: #fff;
}

.badge-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: live-pulse 1.6s ease-in-out infinite;
}

@keyframes live-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

/* ---------- 6. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 14px 0;
  font-size: 13px;
  color: var(--pitch-green);
}

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

.breadcrumb li + li::before {
  content: "/";
  margin: 0 4px;
  color: var(--pitch-green);
  opacity: 0.45;
}

.breadcrumb a {
  color: var(--pitch-green);
  text-decoration: none;
}

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

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

/* ---------- 7. 媒体容器 ---------- */
.media-frame {
  display: block;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--mist);
  aspect-ratio: 16 / 9;
}

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

.media-frame--1x1 {
  aspect-ratio: 1 / 1;
}

.media-frame--tilt {
  border-radius: var(--radius-lg);
  transform: rotate(-1.6deg);
  overflow: hidden;
  background: var(--mist);
}

.media-frame--tilt:hover {
  transform: rotate(0deg);
  transition: transform 360ms var(--ease);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(18, 28, 24, 0.08);
  pointer-events: none;
}

.media-frame img,
.media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-frame-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--pitch-green);
  background: linear-gradient(135deg, rgba(217, 227, 220, 0.6), rgba(217, 227, 220, 0.25));
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- 8. 卡片与表格 ---------- */
.data-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  border: 1px solid var(--mist);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.data-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 182, 43, 0.55);
  box-shadow: 0 10px 26px rgba(18, 28, 24, 0.1);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--mist);
}

.data-table th {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pitch-green);
  background: rgba(217, 227, 220, 0.45);
  white-space: nowrap;
}

.data-table td {
  color: var(--ink);
}

.data-table tbody tr:hover {
  background: rgba(232, 182, 43, 0.05);
}

/* ---------- 9. 栅格 ---------- */
.grid {
  display: grid;
  gap: var(--space-3);
}

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

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

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

.grid-6 {
  grid-template-columns: repeat(6, 1fr);
}

/* ---------- 10. 头部 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  padding: 14px 16px 0;
  pointer-events: none;
}

.site-header-inner {
  position: relative;
  pointer-events: auto;
  width: min(100%, var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 8px 22px;
  background: var(--deep-pitch);
  border: 1px solid rgba(232, 182, 43, 0.22);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-capsule);
}

.site-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  z-index: 3000;
  background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
  border-radius: 0 3px 3px 0;
  pointer-events: none;
}

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

.brand:hover {
  opacity: 0.92;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--paper);
  transition: color var(--transition);
}

.brand-mark em {
  font-style: normal;
  color: var(--gold-primary);
}

.brand-name {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--paper);
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  background: var(--gold-mist);
  border: 1px solid rgba(232, 182, 43, 0.4);
  border-radius: var(--radius-pill);
  padding: 2px 9px;
  line-height: 1.5;
}

/* ---------- 12. 导航 ---------- */
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  display: inline-block;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--mist);
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.nav-link:hover {
  background: rgba(232, 182, 43, 0.12);
  color: var(--gold-light);
  transform: translateY(-1px);
}

.nav-link[aria-current="page"] {
  background: var(--gold-primary);
  color: var(--ink);
  font-weight: 600;
}

.nav-link[aria-current="page"]:hover {
  background: var(--gold-light);
  color: var(--ink);
}

/* ---------- 13. 移动导航 ---------- */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(232, 182, 43, 0.35);
  background: transparent;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
  transition: border-color var(--transition), background var(--transition);
}

.nav-toggle:hover {
  border-color: var(--gold-primary);
  background: rgba(232, 182, 43, 0.08);
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-primary);
  transition: transform 240ms var(--ease), opacity 180ms var(--ease);
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 14. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: calc(var(--space-6) * 1.2);
  background-color: var(--deep-pitch);
  background-image:
    linear-gradient(rgba(232, 182, 43, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 182, 43, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--mist);
  overflow: hidden;
  padding-top: var(--space-5);
}

.site-footer::before {
  content: "114°30'E 38°02'N";
  position: absolute;
  right: 18px;
  bottom: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(232, 182, 43, 0.28);
  user-select: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-primary) 0%, rgba(232, 182, 43, 0.35) 30%, rgba(20, 106, 75, 0.5) 70%, transparent 100%);
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: var(--space-5);
  padding-bottom: var(--space-5);
}

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

.brand-footer .brand-mark {
  font-size: 26px;
}

.brand-footer .brand-name {
  font-size: 20px;
}

.footer-slogan {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--gold-light);
  letter-spacing: 0.2em;
  line-height: 1.6;
}

.footer-trust {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--mist);
  opacity: 0.85;
  max-width: 320px;
}

.sync-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(232, 182, 43, 0.18);
  animation: sync-glow 2.2s ease-in-out infinite;
}

@keyframes sync-glow {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(232, 182, 43, 0.18);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(232, 182, 43, 0.08);
  }
}

.footer-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(232, 182, 43, 0.18);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-list a {
  font-size: 14px;
  color: var(--mist);
  text-decoration: none;
  transition: color var(--transition), padding-left var(--transition);
}

.footer-list a:hover {
  color: var(--gold-light);
  padding-left: 5px;
}

.footer-list-contact li {
  font-size: 14px;
  line-height: 1.6;
}

.footer-address {
  color: var(--mist);
  opacity: 0.75;
  font-size: 13px;
}

.footer-bottom {
  position: relative;
  border-top: 1px solid rgba(232, 182, 43, 0.14);
  padding: 20px 0;
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: rgba(217, 227, 220, 0.6);
}

.footer-icp {
  letter-spacing: 0.04em;
}

.footer-note {
  padding: 8px 16px 0;
  text-align: center;
  font-size: 11px;
  color: rgba(217, 227, 220, 0.45);
}

/* ---------- 15. 返回顶部 ---------- */
.back-top {
  position: fixed;
  right: 24px;
  bottom: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--deep-pitch);
  border: 1px solid rgba(232, 182, 43, 0.5);
  color: var(--gold-primary);
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 280ms var(--ease), transform 280ms var(--ease), visibility 280ms, background var(--transition);
  box-shadow: 0 6px 22px rgba(11, 59, 45, 0.3);
  cursor: pointer;
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover {
  background: var(--gold-primary);
  color: var(--ink);
}

.back-top::before {
  content: "↑";
  font-weight: 700;
}

/* ---------- 16. 滚动显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
  will-change: opacity, transform;
}

[data-reveal][data-visible] {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 17. 响应式 ---------- */
@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }

  .footer-brand-col {
    grid-column: 1 / -1;
    padding-bottom: var(--space-2);
  }
}

@media (max-width: 860px) {
  .site-header {
    padding: 12px 12px 0;
  }

  .site-header-inner {
    padding: 8px 10px;
    border-radius: 30px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--deep-pitch);
    border: 1px solid rgba(232, 182, 43, 0.25);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-capsule);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transition: opacity 220ms var(--ease), transform 220ms var(--ease), visibility 220ms;
    z-index: 100;
  }

  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav-link {
    display: block;
    padding: 12px 20px;
    border-radius: 14px;
    color: var(--paper);
  }

  .nav-link:hover {
    background: rgba(232, 182, 43, 0.1);
  }

  .nav-link[aria-current="page"] {
    background: var(--gold-primary);
    color: var(--ink);
  }

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

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

@media (max-width: 640px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }

  .grid-6 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    padding-bottom: var(--space-4);
  }

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

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

  .site-header-inner {
    padding: 6px 8px;
  }

  .brand-mark {
    font-size: 19px;
  }

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

  .brand-badge {
    display: none;
  }

  .back-top {
    right: 16px;
    bottom: 24px;
    width: 42px;
    height: 42px;
  }
}

/* ---------- 18. 焦点状态 ---------- */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--gold-primary);
  outline-offset: 2px;
  border-radius: 6px;
}

.nav-link:focus-visible,
.btn:focus-visible,
.brand:focus-visible,
.nav-toggle:focus-visible {
  border-radius: var(--radius-pill);
  outline-color: var(--gold-light);
}

/* ---------- 19. 减少动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

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

  .media-frame--tilt {
    transform: none;
  }

  .back-top {
    transition: none;
  }
}
