/* ============ 全站共享 CSS：万博新站 Site Kit ============ */

/* ---- 1. 变量与 Reset ---- */
:root {
  --bg-primary: #0B1A2F;
  --bg-secondary: #0E213B;
  --accent-orange: #FF6B00;
  --accent-orange-bright: #FF8A00;
  --accent-orange-deep: #FF5E00;
  --accent-cyan: #00A8FF;
  --accent-cyan-deep: #0066FF;
  --surface-white: #FFFFFF;
  --light-gray: #F0F4F8;
  --dark-gray: #1A1D21;
  --steel-blue: #2B4A6E;
  --text-muted: #A8B3C0;
  --grad-orange: linear-gradient(135deg, #FF8A00 0%, #FF5E00 100%);
  --grad-cyan: linear-gradient(135deg, #00A8FF 0%, #0066FF 100%);
  --font-heading: 'Rajdhani', 'Noto Sans SC', sans-serif;
  --font-body: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --container-w: 1280px;
  --header-height: 72px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 72px;
  --scroll-progress: 0%;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--light-gray);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul,
ol {
  list-style: none;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

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

h1 { font-size: 40px; }
h2 { font-size: 32px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }

p {
  line-height: 1.7;
}

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

/* ---- 2. 可访问性与焦点 ---- */
.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: -100px;
  left: 16px;
  z-index: 1000;
  padding: 12px 20px;
  background: var(--accent-orange);
  color: var(--surface-white);
  font-weight: 700;
  font-size: 14px;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 16px;
}

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

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent-orange);
  outline-offset: 0;
}

/* ---- 3. 布局容器与分区 ---- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

#main-content {
  min-height: 60vh;
  scroll-margin-top: calc(var(--header-height) + 16px);
}

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

.section--tight {
  padding-block: var(--space-4);
}

.section--alt {
  background: var(--bg-secondary);
}

.section--light {
  background: var(--light-gray);
  color: var(--dark-gray);
}

.section--light h1,
.section--light h2,
.section--light h3 {
  color: var(--bg-primary);
}

.hero {
  position: relative;
  padding-block: var(--space-7) var(--space-6);
}

@media (max-width: 600px) {
  .section {
    padding-block: var(--space-5);
  }

  .hero {
    padding-block: var(--space-5) var(--space-4);
  }
}

/* ---- 4. 头部框架 ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 26, 47, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--steel-blue);
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: var(--scroll-progress);
  height: 3px;
  background: var(--grad-orange);
  transition: width 0.05s linear;
}

.site-header[data-scrolled] {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-height);
}

.header-inner::before,
.header-inner::after {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  width: 2px;
  opacity: 0.3;
  pointer-events: none;
}

.header-inner::before {
  left: 6px;
  background: var(--grad-orange);
}

.header-inner::after {
  right: 6px;
  background: var(--grad-cyan);
}

/* ---- 5. 品牌 ---- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  color: var(--surface-white);
}

.brand:hover {
  color: var(--surface-white);
}

.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--grad-orange);
  color: var(--surface-white);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18);
}

.brand-mark::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 8px 8px 0;
  border-color: transparent var(--bg-primary) transparent transparent;
}

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

.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.05em;
  color: var(--surface-white);
}

.brand-sub {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* ---- 6. 导航 ---- */
.site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 2px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--light-gray);
  transition: color 0.15s ease;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease;
}

.nav-link:hover {
  color: var(--surface-white);
}

.nav-link:hover::before,
.nav-link[aria-current="page"]::before,
.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

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

/* ---- 7. 头部动作区 ---- */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.header-tagline {
  display: none;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  white-space: nowrap;
}

@media (min-width: 1280px) {
  .header-tagline {
    display: inline;
  }
}

/* ---- 8. 按钮 ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 11px 26px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--grad-orange);
  color: var(--surface-white);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.15), 0 4px 12px rgba(255, 107, 0, 0.2);
}

.btn-primary:hover {
  color: var(--surface-white);
  transform: translateY(-2px);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.15), 0 8px 20px rgba(255, 107, 0, 0.3);
}

.btn-outline {
  background: transparent;
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-outline:hover {
  transform: translateY(-2px);
  background: rgba(0, 168, 255, 0.08);
  border-color: var(--surface-white);
  color: var(--surface-white);
}

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

/* ---- 9. 移动导航开关与下拉 ---- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--steel-blue);
  border-radius: 0;
  cursor: pointer;
}

.nav-toggle:hover {
  border-color: var(--accent-orange);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--surface-white);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

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

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

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

@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    flex: none;
    background: var(--bg-secondary);
    border-top: 1px solid var(--steel-blue);
    border-bottom: 2px solid var(--accent-orange);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  }

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

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-2) var(--space-4);
  }

  .nav-link {
    display: block;
    padding: 14px 8px;
    font-size: 17px;
    border-bottom: 1px solid rgba(43, 74, 110, 0.4);
  }

  .nav-link::before,
  .nav-link::after {
    display: none;
  }

  .nav-link[aria-current="page"] {
    color: var(--accent-orange);
    background: rgba(255, 107, 0, 0.06);
    padding-left: var(--space-3);
    border-left: 3px solid var(--accent-orange);
  }
}

@media (max-width: 600px) {
  .header-inner {
    min-height: 60px;
  }

  .brand-sub {
    display: none;
  }

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

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .header-actions .btn {
    padding: 8px 14px;
    font-size: 14px;
  }

  .header-actions {
    gap: var(--space-2);
  }

  .header-inner {
    gap: var(--space-2);
  }
}

/* ---- 10. 页脚 ---- */
.site-footer {
  position: relative;
  background: var(--bg-secondary);
  border-top: 4px solid var(--accent-orange);
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent-cyan);
  opacity: 0.5;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-6);
  padding-block: var(--space-7) var(--space-6);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

.footer-trust {
  max-width: 34em;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted);
}

.footer-column,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-heading {
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--steel-blue);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--surface-white);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent-orange);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: var(--space-2);
  border-bottom: 1px solid rgba(43, 74, 110, 0.35);
}

.contact-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel-blue);
}

.contact-value {
  font-size: 14px;
  color: var(--light-gray);
}

.footer-bottom {
  border-top: 1px solid var(--steel-blue);
  background: var(--bg-primary);
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  padding-block: var(--space-3);
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ---- 11. 网格 ---- */
.grid {
  display: grid;
  gap: var(--space-4);
}

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

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

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

@media (max-width: 1024px) {
  .grid-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

/* ---- 12. 卡片 ---- */
.card {
  position: relative;
  padding: var(--space-5);
  background: var(--bg-secondary);
  border: 1px solid var(--steel-blue);
  border-radius: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-cyan);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

.card--light {
  background: var(--surface-white);
  border-color: transparent;
  color: var(--dark-gray);
}

/* ---- 13. 标签与指标 ---- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 4px 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 168, 255, 0.4);
  background: rgba(0, 168, 255, 0.06);
}

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

.metric {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--surface-white);
}

.metric--orange {
  color: var(--accent-orange);
}

.metric--cyan {
  color: var(--accent-cyan);
}

/* ---- 14. 面包屑 ---- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-2);
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--accent-cyan);
}

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

.breadcrumb li + li::before {
  content: '/';
  margin-right: var(--space-2);
  color: var(--steel-blue);
}

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

/* ---- 15. 长文排版 ---- */
.prose {
  font-size: 16px;
  line-height: 1.8;
  color: var(--light-gray);
}

.prose h2 {
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--steel-blue);
}

.prose h3 {
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
}

.prose p {
  margin-bottom: var(--space-3);
}

.prose ul,
.prose ol {
  margin: var(--space-3) 0;
  padding-left: var(--space-5);
}

.prose ul {
  list-style: square;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: var(--space-2);
}

.prose a {
  color: var(--accent-cyan);
}

.prose strong {
  color: var(--surface-white);
}

.prose blockquote {
  margin: var(--space-4) 0;
  padding: var(--space-4);
  background: var(--bg-secondary);
  border-left: 3px solid var(--accent-orange);
  color: var(--light-gray);
}

.prose--light {
  color: var(--dark-gray);
}

.prose--light h2 {
  color: var(--bg-primary);
  border-color: rgba(27, 43, 68, 0.15);
}

.prose--light strong {
  color: var(--bg-primary);
}

/* ---- 16. 图片容器 ---- */
.img-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg-secondary);
  border: 1px solid var(--steel-blue);
}

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

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

.img-frame::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, transparent 50%, rgba(255, 107, 0, 0.85) 50%);
}

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

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

/* ---- 17. 页面标题区 ---- */
.page-header {
  padding-block: var(--space-6) var(--space-5);
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--steel-blue);
}

.page-title {
  margin-top: var(--space-2);
  font-size: 40px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.page-desc {
  max-width: 48em;
  margin-top: var(--space-2);
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .page-header {
    padding-block: var(--space-4) var(--space-3);
    margin-bottom: var(--space-4);
  }

  .page-title {
    font-size: 30px;
  }
}

/* ---- 18. 表格 ---- */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--bg-secondary);
}

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

.table th {
  background: var(--bg-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--surface-white);
}

.table--light {
  background: var(--surface-white);
  color: var(--dark-gray);
}

.table--light th {
  background: var(--light-gray);
  color: var(--bg-primary);
}

.table--light th,
.table--light td {
  border-color: #dbe3ec;
}

@media (max-width: 600px) {
  .table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* ---- 19. 滚动条与选区 ---- */
::selection {
  background: var(--accent-orange);
  color: var(--surface-white);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--steel-blue);
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-orange);
}

/* ---- 20. 桌面端细节 ---- */
@media (min-width: 961px) {
  .header-actions .btn {
    letter-spacing: 0.06em;
  }
}

/* ---- 21. 减少动态偏好 ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }

  .site-header::before {
    display: none;
  }
}
