/* ==========================================================
   新利平台 · 全站 Site Kit
   文件：/assets/site.css
   ========================================================== */

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

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--gold) var(--paper);
  -webkit-text-size-adjust: 100%;
}

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

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

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

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

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

a {
  color: inherit;
}

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

/* 02 设计变量 */
:root {
  --paper: #F5EFE6;
  --ink: #1A1D24;
  --navy: #0F2A43;
  --gold: #C9A96E;
  --orange: #FF6B35;
  --slate: #4A5568;
  --mist: #E2E8F0;
  --pale-ivory: #FFFBF2;
  --success: #2F8F6B;
  --alert: #E04F3F;

  --font-display: '思源黑体', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: '思源黑体', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-index: '思源黑体', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  --container-width: 1200px;
  --radius-sm: 0.75rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-pill: 999px;

  --shadow-soft: 0 4px 20px rgba(15, 42, 67, 0.06);
  --shadow-float: 0 14px 44px rgba(15, 42, 67, 0.12);

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 0.875rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4.5rem;

  --z-header: 1000;
  --z-skip: 2000;
}

/* 03 基础排版与全局布局 */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(720px 320px at 85% 0%, rgba(201, 169, 110, 0.1), transparent 70%),
    radial-gradient(480px 280px at 5% 35%, rgba(15, 42, 67, 0.04), transparent 70%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
  padding-top: 7rem;
}

@media (max-width: 640px) {
  .site-main {
    padding-top: 5.75rem;
  }
}

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

/* 04 无障碍工具 */
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: var(--z-skip);
  background: var(--navy);
  color: #fff;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-float);
  transform: translateY(-250%);
  transition: transform 0.2s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.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;
}

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

/* 06 头部悬浮胶囊 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  padding: 1rem clamp(0.5rem, 3vw, 2rem);
  pointer-events: none;
}

.nav-capsule {
  position: relative;
  max-width: var(--container-width);
  margin-inline: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem 0.55rem 0.5rem 0.9rem;
  background: rgba(255, 251, 242, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 1.625rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 16px 48px rgba(15, 42, 67, 0.1);
  pointer-events: auto;
}

.page-progress {
  position: absolute;
  top: -1px;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background: rgba(201, 169, 110, 0.18);
  border-radius: 99px;
  pointer-events: none;
}

.page-progress-thumb {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  border-radius: inherit;
  transition: width 0.15s ease-out;
}

/* 07 品牌标识 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  padding: 0.15rem 0.2rem;
  border-radius: 999px;
}

.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
}

.brand-mark-circle,
.brand-mark-gold,
.brand-mark-line {
  stroke: currentColor;
}

.brand .brand-mark-circle {
  stroke: var(--navy);
}

.brand .brand-mark-gold {
  stroke: var(--gold);
  fill: rgba(201, 169, 110, 0.08);
}

.brand .brand-mark-line {
  stroke: var(--gold);
}

.brand-name {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand-name em {
  font-style: normal;
  font-weight: 900;
  color: var(--gold);
}

/* 08 导航 */
.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.15rem;
  margin-left: auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.nav-link:hover {
  background: rgba(201, 169, 110, 0.14);
  border-color: rgba(201, 169, 110, 0.4);
  color: var(--navy);
}

.nav-link[aria-current="page"] {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  box-shadow: 0 4px 10px rgba(15, 42, 67, 0.15);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.25rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--mist);
  background: rgba(245, 239, 230, 0.6);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(201, 169, 110, 0.15);
  border-color: rgba(201, 169, 110, 0.4);
}

.nav-toggle-line {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(6px) 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(-6px) rotate(-45deg);
}

/* 09 移动端导航展开 */
@media (max-width: 980px) {
  .site-header {
    padding: 0.75rem clamp(0.5rem, 2vw, 1rem);
  }

  .nav-capsule {
    border-radius: 1.25rem;
  }

  .brand {
    order: 1;
  }

  .nav-toggle {
    order: 2;
    display: inline-flex;
    margin-left: auto;
  }

  .primary-nav {
    order: 3;
    flex-basis: 100%;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transform: translateY(-4px);
    transition:
      max-height 0.35s ease,
      opacity 0.25s ease,
      transform 0.25s ease,
      visibility 0s linear 0.35s;
  }

  .primary-nav[data-open] {
    max-height: 70vh;
    opacity: 1;
    visibility: visible;
    transform: none;
    overflow: auto;
    transition:
      max-height 0.35s ease,
      opacity 0.25s ease,
      transform 0.25s ease;
  }

  .nav-link {
    display: flex;
    width: 100%;
    padding: 0.72rem 0.9rem;
    font-size: 0.9375rem;
    border-radius: 0.75rem;
  }
}

/* 10 页脚 */
.site-footer {
  flex-shrink: 0;
  background:
    radial-gradient(720px 300px at 85% 0%, rgba(201, 169, 110, 0.09), transparent 60%),
    linear-gradient(135deg, var(--ink), #101319 60%, #0D0F14);
  color: rgba(255, 251, 242, 0.72);
  padding: clamp(2.5rem, 6vw, 5rem) 1rem 1.5rem;
}

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

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.2fr;
  gap: 2rem 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 251, 242, 0.08);
}

.footer-brand .brand {
  color: #fff;
}

.footer-brand .brand-mark {
  width: 2.75rem;
  height: 2.75rem;
  color: var(--gold);
}

.footer-brand .brand-mark-circle {
  stroke: var(--gold);
}

.footer-brand .brand-mark-gold {
  stroke: var(--gold);
  fill: rgba(201, 169, 110, 0.08);
}

.footer-brand .brand-mark-line {
  stroke: var(--orange);
}

.footer-brand .brand-name {
  font-size: 1.375rem;
}

.footer-brand .brand-name em {
  color: var(--gold);
}

.footer-tagline {
  margin-top: 0.75rem;
  max-width: 34rem;
  color: rgba(255, 251, 242, 0.55);
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 251, 242, 0.38);
  margin-bottom: 0.9rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem;
  margin-left: -0.5rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.footer-links a::before {
  content: '';
  width: 0.325rem;
  height: 0.325rem;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.6;
  flex-shrink: 0;
}

.footer-links a:hover {
  color: #fff;
  background: rgba(201, 169, 110, 0.12);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.9rem;
  color: rgba(255, 251, 242, 0.72);
}

.footer-email {
  color: var(--gold);
  font-weight: 600;
}

.footer-phone {
  font-weight: 500;
}

.footer-address {
  margin-top: 0.25rem;
  opacity: 0.75;
  font-size: 0.85rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding-top: 1.25rem;
  font-size: 0.8125rem;
  color: rgba(255, 251, 242, 0.4);
  letter-spacing: 0.02em;
}

.footer-copyright {
  margin: 0;
}

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

@media (max-width: 860px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 560px) {
  .footer-top {
    grid-template-columns: 1fr;
  }

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

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

/* 11 展区与章节 */
.section {
  position: relative;
  padding-block: clamp(2.5rem, 7vw, 5.5rem);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.section-index {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.85rem;
  background: rgba(201, 169, 110, 0.12);
  border: 1px solid rgba(201, 169, 110, 0.4);
  border-radius: 999px;
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 100;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}

.section-title--dark {
  color: var(--pale-ivory);
}

.section-lead {
  max-width: 54rem;
  margin-top: 0.75rem;
  color: var(--slate);
  font-size: 1rem;
}

/* 12 网格 */
.grid {
  display: grid;
  gap: 1.5rem;
}

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

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

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

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

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

/* 13 卡片与按钮 */
.card {
  background: var(--pale-ivory);
  border: 1px solid var(--mist);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-float);
  border-color: rgba(201, 169, 110, 0.5);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-pill);
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  box-shadow: 0 4px 12px rgba(15, 42, 67, 0.08);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  background: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 107, 53, 0.2);
}

.btn--accent {
  background: var(--gold);
  color: var(--ink);
}

.btn--accent:hover {
  background: var(--orange);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
  box-shadow: none;
}

.btn--ghost:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 42, 67, 0.16);
}

/* 14 标签与状态 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.8rem;
  background: var(--mist);
  color: var(--slate);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge::before {
  content: '';
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}

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

.badge--live::before {
  animation: live-pulse 1.6s ease-out infinite;
}

.badge--success {
  background: rgba(47, 143, 107, 0.12);
  color: var(--success);
}

.badge--alert {
  background: rgba(224, 79, 63, 0.12);
  color: var(--alert);
}

@keyframes live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45);
  }
  70% {
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* 15 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.8125rem;
  color: var(--slate);
}

.breadcrumb a {
  color: var(--navy);
  text-decoration: none;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

.breadcrumb a:hover {
  background: rgba(201, 169, 110, 0.14);
  color: var(--ink);
}

.breadcrumb [aria-current="page"] {
  color: var(--ink);
  padding: 0.15rem 0.45rem;
  font-weight: 600;
}

/* 16 数据指标 */
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}

.data-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--mist);
  font-size: 0.875rem;
}

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

.data-row dt {
  color: var(--slate);
}

.data-row dd {
  font-weight: 700;
  color: var(--ink);
}

.progress-display {
  height: 8px;
  border-radius: 999px;
  background: var(--mist);
  overflow: hidden;
}

.progress-display > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--navy), var(--gold));
}

/* 17 时间轴与分屏 */
.timeline {
  position: relative;
  padding-left: 1.4rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0.4rem;
  bottom: 0.4rem;
  left: 0.4rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), rgba(201, 169, 110, 0.25));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-bottom: 1.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 0.4rem;
  left: -1.4rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--gold);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* 18 纯 CSS 图片容器 */
.media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background-color: var(--navy);
  background-image:
    radial-gradient(80% 70% at 25% 20%, rgba(201, 169, 110, 0.16), transparent 65%),
    linear-gradient(145deg, var(--navy), #12304C 55%, #081A2B);
  color: var(--pale-ivory);
}

.media::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(90% 90% at 50% 50%, #000, transparent 90%);
  mask-image: radial-gradient(90% 90% at 50% 50%, #000, transparent 90%);
}

.media--portrait {
  aspect-ratio: 4 / 5;
}

.media--square {
  aspect-ratio: 1 / 1;
}

.media-caption {
  position: absolute;
  left: 0.625rem;
  right: 0.625rem;
  bottom: 0.625rem;
  padding: 0.35rem 0.75rem;
  background: rgba(26, 29, 36, 0.65);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: var(--pale-ivory);
  border-radius: 999px;
  font-size: 0.8125rem;
  line-height: 1.4;
  text-align: center;
}

/* 19 信息提示 */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(201, 169, 110, 0.09);
  border: 1px solid rgba(201, 169, 110, 0.28);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--slate);
}

.notice strong {
  color: var(--ink);
}

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

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

/* 21 动效偏好 */
@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;
  }

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .badge--live::before {
    animation: none;
  }
}
