/* ===== 设计令牌 ===== */
:root {
  --c-primary: #0A1F44;
  --c-primary-soft: #102A5C;
  --c-accent: #FF6B00;
  --c-accent-soft: #FF8A50;
  --c-bg: #F5F7FA;
  --c-surface: #FFFFFF;
  --c-body: #1A202C;
  --c-muted: #4A5568;
  --c-line: #E2E8F0;
  --c-success: #2F855A;
  --c-white: #FFFFFF;

  --font-heading: "Playfair Display", "Noto Serif SC", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-data: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --header-h: 80px;
  --container: 1280px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 10px rgba(10,31,68,0.06);
  --shadow-md: 0 8px 24px rgba(10,31,68,0.12);
  --shadow-lg: 0 18px 44px rgba(10,31,68,0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== 基础重置 ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background-color: var(--c-bg);
  background-image: linear-gradient(rgba(10,31,68,0.028) 1px, transparent 1px);
  background-size: 100% 34px;
  color: var(--c-body);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-heading);
  color: var(--c-primary);
  line-height: 1.25;
  text-wrap: balance;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

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

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

button {
  font: inherit;
  color: inherit;
}

a {
  color: var(--c-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

/* ===== 跳过链接 ===== */
.skip-link {
  position: fixed;
  top: -4rem;
  left: 1rem;
  z-index: 2000;
  padding: 0.8rem 1.4rem;
  background: var(--c-accent);
  color: var(--c-white);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

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

/* ===== 滚动进度 ===== */
.x-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1200;
  width: 100%;
  height: 3px;
  background: transparent;
  pointer-events: none;
}

.x-scroll-progress::after {
  content: "";
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--c-accent), var(--c-accent-soft));
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
  will-change: transform;
}

/* ===== 头部结构 ===== */
.x-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(115deg, var(--c-primary) 0%, var(--c-primary-soft) 55%, #16337A 100%);
  border-bottom: 3px solid var(--c-accent);
  box-shadow: 0 6px 24px rgba(10,31,68,0.18);
}

.x-header__inner {
  position: relative;
  max-width: var(--container);
  height: var(--header-h);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* ===== 品牌 ===== */
.x-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
}

.x-header__brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 6px 18px rgba(255, 107, 0, 0.4), inset 0 -2px 4px rgba(0, 0, 0, 0.12);
}

.x-header__brand-ball {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--c-white);
  box-shadow: inset 0 0 0 2px rgba(10, 31, 68, 0.08);
}

.x-header__brand-ball::before,
.x-header__brand-ball::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -25%;
  width: 2px;
  height: 150%;
  background: var(--c-primary);
  border-radius: 1px;
}

.x-header__brand-ball::before {
  transform: translateX(-50%) rotate(38deg);
}

.x-header__brand-ball::after {
  transform: translateX(-50%) rotate(-38deg);
}

.x-header__brand-text {
  display: flex;
  flex-direction: column;
}

.x-header__brand-name {
  color: var(--c-white);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.06em;
  display: block;
}

.x-header__brand-tag {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  white-space: nowrap;
  margin-top: 0.2rem;
  display: block;
}

/* ===== 导航 ===== */
.x-header__nav-list {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.x-header__nav-link {
  position: relative;
  display: block;
  padding: 0.6rem 0.8rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.x-header__nav-link::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.3rem;
  height: 2px;
  background: var(--c-accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s var(--ease);
}

.x-header__nav-link:hover,
.x-header__nav-link[aria-current="page"] {
  color: var(--c-white);
  background: rgba(255, 255, 255, 0.06);
}

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

/* ===== 移动端头部 ===== */
.x-header__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.x-header__toggle:hover {
  border-color: var(--c-accent);
}

.x-header__toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-white);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

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

.x-header__toggle[aria-expanded="true"] .x-header__toggle-line:nth-child(2) {
  opacity: 0;
}

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

.x-header__overlay {
  display: none;
}

@media (max-width: 960px) {
  .x-header {
    --header-h: 64px;
  }

  .x-header__toggle {
    display: inline-flex;
  }

  .x-header__nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 300;
    width: min(340px, 88vw);
    padding: 1.5rem 1.25rem;
    background: linear-gradient(200deg, var(--c-primary) 0%, var(--c-primary-soft) 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: -16px 0 48px rgba(10, 31, 68, 0.32);
    transform: translateX(105%);
    transition: transform 0.3s var(--ease);
    overflow-y: auto;
  }

  .x-header__nav::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--c-accent);
  }

  .x-header__nav[data-open] {
    transform: translateX(0);
  }

  .x-header__nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    margin-top: 2rem;
  }

  .x-header__nav-link {
    padding: 0.8rem 0.9rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.02rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
  }

  .x-header__nav-link::after {
    display: none;
  }

  .x-header__nav-link:hover,
  .x-header__nav-link[aria-current="page"] {
    color: var(--c-accent);
    background: transparent;
  }

  .x-header__overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 290;
    background: rgba(6, 15, 35, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0s linear 0.3s;
  }

  .x-header__overlay[data-open] {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s;
  }
}

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

/* ===== 页脚 ===== */
.x-footer {
  background: var(--c-primary);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.94rem;
}

.x-footer::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--c-accent) 0%, var(--c-accent-soft) 40%, var(--c-primary) 100%);
}

.x-footer__main {
  max-width: var(--container);
  margin-inline: auto;
  padding: 3.5rem clamp(1.25rem, 5vw, 2.5rem) 2.75rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr;
  gap: clamp(2rem, 5vw, 4rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.x-footer__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.x-footer__brand-name {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--c-white);
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.x-footer__brand-desc {
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.7;
  max-width: 34em;
}

.x-footer__trust {
  display: inline-block;
  margin-top: 1.1rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 107, 0, 0.12);
  border: 1px solid rgba(255, 107, 0, 0.42);
  border-radius: 999px;
  color: var(--c-accent-soft);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.x-footer__heading {
  font-family: var(--font-data);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.x-footer__col--contact .x-footer__heading {
  color: var(--c-accent);
  border-bottom-color: rgba(255, 107, 0, 0.3);
}

.x-footer__list {
  display: grid;
  gap: 0.5rem;
}

.x-footer__link {
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
}

.x-footer__link:hover {
  color: var(--c-white);
  padding-left: 0.35rem;
}

.x-footer__contact {
  display: grid;
  gap: 0.75rem;
}

.x-footer__contact-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.x-footer__contact-label {
  min-width: 3.5em;
  font-family: var(--font-data);
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-top: 0.15rem;
}

.x-footer__contact-text {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
  word-break: break-word;
}

.x-footer__bottom {
  max-width: var(--container);
  margin-inline: auto;
  padding: 1.25rem clamp(1.25rem, 5vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.8rem;
}

.x-footer__copyright,
.x-footer__icp {
  margin: 0;
}

.x-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.x-footer__legal-link {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.x-footer__legal-link:hover {
  color: var(--c-accent);
}

@media (max-width: 900px) {
  .x-footer__main {
    grid-template-columns: 1fr 1fr;
  }

  .x-footer__intro {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .x-footer__main {
    grid-template-columns: 1fr;
    padding-top: 2.5rem;
  }

  .x-footer__intro {
    grid-column: auto;
  }

  .x-footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== 共享布局 ===== */
.x-container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.x-section {
  padding-block: clamp(3rem, 8vw, 6rem);
}

.x-eyebrow {
  font-family: var(--font-data);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 0.75rem;
}

.x-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--c-primary);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.x-text {
  color: var(--c-muted);
  line-height: 1.7;
}

.x-divider {
  border: none;
  border-top: 1px solid var(--c-line);
  margin: 2rem 0;
}

/* ===== 网格 ===== */
.x-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.x-grid__span-3 { grid-column: span 3; }
.x-grid__span-4 { grid-column: span 4; }
.x-grid__span-6 { grid-column: span 6; }
.x-grid__span-8 { grid-column: span 8; }
.x-grid__span-12 { grid-column: span 12; }

@media (max-width: 768px) {
  .x-grid__span-3,
  .x-grid__span-4,
  .x-grid__span-6,
  .x-grid__span-8,
  .x-grid__span-12 {
    grid-column: span 12;
  }
}

/* ===== 卡片 ===== */
.x-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(1rem, 2.5vw, 1.75rem);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.x-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ===== 标签与标签行 ===== */
.x-tag {
  display: inline-block;
  font-family: var(--font-data);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--c-accent);
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid rgba(255, 107, 0, 0.3);
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
}

.x-tag--success {
  color: var(--c-success);
  background: rgba(47, 133, 90, 0.1);
  border-color: rgba(47, 133, 90, 0.3);
}

.x-label {
  display: inline-block;
  font-family: var(--font-data);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-primary);
  background: rgba(10, 31, 68, 0.06);
  border: 1px solid var(--c-line);
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
}

.x-datalist {
  border-top: 1px solid var(--c-line);
}

.x-datalist__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--c-line);
}

.x-datalist__key {
  color: var(--c-muted);
  font-size: 0.9rem;
}

.x-datalist__value {
  font-family: var(--font-data);
  color: var(--c-primary);
  font-weight: 600;
  text-align: right;
}

/* ===== 按钮 ===== */
.x-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  column-gap: 0.5rem;
  padding: 0.72rem 1.4rem;
  border-radius: 0.6rem;
  border: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}

.x-btn--primary {
  background: var(--c-accent);
  color: var(--c-white);
  box-shadow: 0 6px 18px rgba(255, 107, 0, 0.28);
}

.x-btn--primary:hover {
  background: var(--c-accent-soft);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 107, 0, 0.34);
}

.x-btn--ghost {
  background: transparent;
  color: var(--c-primary);
  border: 2px solid rgba(10, 31, 68, 0.4);
}

.x-btn--ghost:hover {
  border-color: var(--c-primary);
  background: var(--c-primary);
  color: var(--c-white);
  transform: translateY(-2px);
}

/* ===== 面包屑 ===== */
.x-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1.5rem;
  padding: 0.9rem 1.1rem;
  font-size: 0.86rem;
  list-style: none;
  background: rgba(10, 31, 68, 0.04);
  border: 1px solid var(--c-line);
  border-radius: 0.5rem;
}

.x-breadcrumbs li + li::before {
  content: "/";
  color: var(--c-muted);
  margin-right: 0.4rem;
  opacity: 0.5;
}

.x-breadcrumbs a {
  color: var(--c-muted);
  text-decoration: none;
}

.x-breadcrumbs a:hover {
  color: var(--c-accent);
}

.x-breadcrumbs [aria-current="page"] {
  color: var(--c-primary);
  font-weight: 600;
}

/* ===== 媒体占位 ===== */
.x-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #DFE4EC;
  box-shadow: var(--shadow-sm);
}

.x-media::before {
  content: "";
  display: block;
  width: 100%;
}

.x-media--16-9::before { padding-bottom: 56.25%; }
.x-media--4-3::before { padding-bottom: 75%; }
.x-media--1-1::before { padding-bottom: 100%; }
.x-media--2-1::before { padding-bottom: 50%; }

.x-media img,
.x-media picture,
.x-media svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== 归约动效 ===== */
@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;
  }

  .x-header__toggle-line,
  .x-header__nav,
  .x-header__overlay,
  .x-card,
  .x-btn {
    transition: none;
  }

  .x-card:hover,
  .x-btn:hover,
  .x-btn--primary:hover,
  .x-btn--ghost:hover {
    transform: none;
  }
}
