/* === 设计变量与基础重置 === */
:root {
  --c-deep: #231334;
  --c-paper: #E9E8EA;
  --c-text: #1C1523;
  --c-brand: #7D14EB;
  --c-accent: #EDD26E;
  --r-card: 20px;
  --r-btn: 12px;
  --card-border: 0;
  --card-shadow: none;
  --sec-y: clamp(3.5rem, 7vw, 6rem);
  --gap: clamp(1rem, 2vw, 1.75rem);
  --max-w: 960px;
  --lh-body: 1.65;
  --font-main: system-ui, -apple-system, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  color: var(--c-text);
  background: var(--c-paper);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* === 布局容器与分节 === */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gap); }
section { padding: var(--sec-y) 0; }
.bg-deep { background: var(--c-deep); color: var(--c-paper); }
.bg-paper { background: var(--c-paper); color: var(--c-text); }
.bg-deep .hl, .bg-deep .badge { color: var(--c-accent); }
.bg-paper .hl, .bg-paper .badge { color: var(--c-brand); }

/* === 排版 === */
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: var(--gap); text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; line-height: 1.25; letter-spacing: -0.02em; margin-bottom: var(--gap); }
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.3; margin-bottom: calc(var(--gap) / 2); }
p { margin-bottom: var(--gap); max-width: 38em; }
.badge { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; margin-bottom: 0.6rem; }
.hl { font-weight: 800; }

/* === 棋盘交错布局 === */
.chess-row { display: flex; flex-wrap: wrap; gap: var(--gap); align-items: center; }
.chess-row.reverse { flex-direction: row-reverse; }
.text-col, .visual-col { flex: 1 1 minmax(0, 1fr); }
.visual-panel { background: rgba(255,255,255,0.06); border-radius: var(--r-card); padding: var(--gap); position: relative; overflow: hidden; aspect-ratio: 4/3; }
.bg-paper .visual-panel { background: rgba(0,0,0,0.04); }

/* === 组件：按钮 === */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  height: 52px; padding: 0 24px; border-radius: var(--r-btn);
  font-weight: 600; font-size: 1rem; cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.btn-primary { background: var(--c-accent); color: var(--c-deep); border: none; }
.btn-primary:hover { transform: translateY(-2px); }
.btn-outline { background: transparent; border: 1px solid var(--c-text); color: var(--c-text); }
.btn-outline:hover { background: rgba(0,0,0,0.05); }
.bg-deep .btn-outline { border-color: var(--c-paper); color: var(--c-paper); }
.bg-deep .btn-outline:hover { background: rgba(255,255,255,0.1); }

/* === 组件：卡片与网格 === */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--gap); }
.card { background: rgba(255,255,255,0.05); border-radius: var(--r-card); padding: var(--gap); }
.bg-paper .card { background: rgba(0,0,0,0.04); }
.card time { display: block; font-size: 0.85rem; opacity: 0.7; margin-top: 0.5rem; }

/* === 组件：表格 === */
table { width: 100%; border-collapse: collapse; margin-bottom: var(--gap); }
th, td { padding: 14px 0; text-align: left; border-bottom: 1px solid rgba(128,128,128,0.25); }
th { font-weight: 600; }
td a { color: var(--c-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.bg-paper td a { color: var(--c-brand); }

/* === 组件：FAQ === */
details { border-radius: var(--r-card); margin-bottom: var(--gap); overflow: hidden; }
summary { padding: 16px 20px; font-weight: 600; cursor: pointer; background: rgba(255,255,255,0.08); list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::-webkit-details-marker { display: none; }
details[open] summary { border-bottom: 1px solid rgba(128,128,128,0.2); }
.faq-body { padding: 16px 20px; line-height: 1.7; }
.faq-body p { margin-bottom: 0.6rem; }

/* === 组件：页头页脚 === */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(233,232,234,0.85); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(0,0,0,0.08); }
.bg-deep .site-header { background: rgba(35,19,52,0.9); border-bottom-color: rgba(255,255,255,0.1); }
.header-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; }
.logo img { width: 28px; height: 28px; object-fit: contain; }
nav { display: flex; gap: 24px; align-items: center; }
nav a { font-weight: 500; opacity: 0.8; transition: opacity 0.2s; }
nav a:hover, nav a[aria-current="page"] { opacity: 1; }
nav a[aria-current="page"] { font-weight: 700; }
.footer { padding: 48px 0; border-top: 1px solid rgba(128,128,128,0.2); margin-top: var(--sec-y); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-links { display: flex; gap: 20px; }
.footer-copy { font-size: 0.9rem; opacity: 0.7; }

/* === SVG 动效体系 === */
svg { width: 100%; height: auto; }
.draw-path { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }
@keyframes drawIn { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.node-light { animation: nodeGlow 5s ease-in-out infinite; }
@keyframes nodeGlow {
  0%, 100% { opacity: 0.15; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1); }
}
.float-group { animation: gentleFloat 6s ease-in-out infinite; }
@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.breathe-dot { animation: breathPulse 3.5s ease-in-out infinite; }
@keyframes breathPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}
.slide-in { animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
@keyframes slideUp {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.transform-box-center { transform-box: fill-box; transform-origin: center; }

/* === 无障碍：减少动态效果 === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* === 响应式微调 === */
@media (max-width: 768px) {
  .chess-row, .chess-row.reverse { flex-direction: column; }
  .visual-panel { width: 100%; }
  nav { gap: 16px; }
}
