:root {
  --color-primary: #7c3aed;
  --color-primary-light: #a78bfa;
  --color-secondary: #db2777;
  --color-secondary-light: #f472b6;
  --color-bg: #f8fafc;
  --color-surface: rgba(255, 255, 255, 0.72);
  --color-surface-hover: rgba(255, 255, 255, 0.9);
  --color-text: #0f172a;
  --color-text-muted: #475569;
  --color-border: rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 24px rgba(124, 58, 237, 0.12);
  --radius-base: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-full: 9999px;
  --font-main: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --space-section: clamp(3.5rem, 7vw, 6.5rem);
  --space-container: clamp(1.25rem, 3vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-family: var(--font-main); line-height: 1.7; color: var(--color-text); background: var(--color-bg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { min-height: 100vh; display: flex; flex-direction: column; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--color-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 0.2s ease, background 0.2s ease; }
a:hover { color: var(--color-secondary); }
h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; margin-bottom: 0.6em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin-bottom: 1em; max-width: 68ch; }
ul, ol { padding-left: 1.4em; margin-bottom: 1em; }
li { margin-bottom: 0.45em; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--space-container); }
section { padding: var(--space-section) 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.5rem; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; padding: 0.85em 1.8em; border-radius: var(--radius-full); font-weight: 500; font-size: 1rem; cursor: pointer; border: none; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; text-decoration: none; white-space: nowrap; }
.btn-primary { background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); color: #fff; box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(219, 39, 119, 0.4); color: #fff; background: linear-gradient(135deg, #6d28d9, #be185d); }
.btn-secondary { background: var(--color-surface); color: var(--color-text); border: 1px solid var(--color-border); backdrop-filter: blur(8px); }
.btn-secondary:hover { background: #fff; color: var(--color-primary); border-color: var(--color-primary-light); }
.btn:focus-visible { outline: 2px solid var(--color-secondary); outline-offset: 3px; }

/* 卡片 */
.card { background: var(--color-surface); backdrop-filter: blur(12px); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.5rem; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--color-primary-light); }
.card-icon { width: 44px; height: 44px; border-radius: 0.75rem; background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(219, 39, 119, 0.1)); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.card-icon svg { width: 24px; height: 24px; stroke: var(--color-primary); stroke-width: 1.8; fill: none; }

/* 导航与页脚 */
header { position: sticky; top: 0; z-index: 100; background: rgba(248, 250, 252, 0.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--color-border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 0.65em; font-weight: 600; font-size: 1.15rem; color: var(--color-text); text-decoration: none; }
.brand img { height: 32px; width: auto; }
nav ul { display: flex; gap: 1.2em; list-style: none; }
nav a { color: var(--color-text-muted); font-weight: 500; padding: 0.35em 0.8em; border-radius: 0.6em; transition: all 0.2s; }
nav a:hover, nav a[aria-current="page"] { color: var(--color-primary); background: rgba(124, 58, 237, 0.08); }
@media (max-width: 768px) { nav ul { display: none; } }
footer { background: #0f172a; color: #94a3b8; padding: 3.5rem 0 1.8rem; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2.5rem; margin-bottom: 2rem; }
.footer-col h4 { color: #e2e8f0; font-size: 1rem; margin-bottom: 0.8em; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.5em; }
.footer-col a { color: #94a3b8; font-size: 0.95rem; }
.footer-col a:hover { color: #f8fafc; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 1.2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.9rem; color: #64748b; }

/* 表格 */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-base); border: 1px solid var(--color-border); background: var(--color-surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { padding: 0.9rem 1.1rem; border: none; border-bottom: 1px solid var(--color-border); }
th { background: rgba(124, 58, 237, 0.06); font-weight: 600; color: var(--color-text); text-align: left; }
td { color: var(--color-text-muted); }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) { background: rgba(219, 39, 119, 0.02); }

/* FAQ */
.faq-item { background: var(--color-surface); backdrop-filter: blur(8px); border: 1px solid var(--color-border); border-radius: var(--radius-base); margin-bottom: 1rem; overflow: hidden; }
summary { padding: 1rem 1.4rem; cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; align-items: center; user-select: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.3rem; font-weight: 400; color: var(--color-secondary); transition: transform 0.2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details[open] summary { border-bottom: 1px solid var(--color-border); }
.faq-answer { padding: 1rem 1.4rem; color: var(--color-text-muted); line-height: 1.7; }

/* 新闻卡片 */
.news-card { display: flex; flex-direction: column; height: 100%; }
.news-card .content { flex: 1; display: flex; flex-direction: column; }
.news-date { font-size: 0.85rem; color: var(--color-secondary); margin-bottom: 0.4em; font-weight: 500; }
.news-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5em; line-height: 1.4; }
.news-excerpt { color: var(--color-text-muted); font-size: 0.95rem; margin-bottom: 1rem; flex: 1; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.3em; font-size: 0.95rem; font-weight: 500; color: var(--color-primary); margin-top: auto; }
.link-arrow:hover { color: var(--color-secondary); }

/* 关联阅读列表 */
.related-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem 2rem; list-style: none; padding: 0; margin: 0; }
.related-list li { padding: 0.8rem 1rem; border-radius: var(--radius-base); background: var(--color-surface); border: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 0.3em; transition: transform 0.2s; }
.related-list li:hover { transform: translateX(4px); border-color: var(--color-primary-light); }
.related-list a { font-weight: 500; color: var(--color-text); display: block; }
.related-list span { font-size: 0.9rem; color: var(--color-text-muted); }

/* SVG 动效基础类 */
.svg-anim path, .svg-anim circle, .svg-anim rect, .svg-anim line, .svg-anim polygon, .svg-anim polyline { transition: stroke 0.2s; }
.anim-draw { stroke-dasharray: 1; stroke-dashoffset: 0; animation: drawPath 4s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate; }
.anim-spin-slow { animation: spin 14s linear infinite; transform-box: fill-box; transform-origin: center; }
.anim-pulse { animation: pulseAlpha 3.5s ease-in-out infinite; }
.anim-float { animation: floatY 6s ease-in-out infinite; }
@keyframes drawPath { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pulseAlpha { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } .anim-draw, .anim-spin-slow, .anim-pulse, .anim-float { animation: none !important; } }

/* 焦点样式 */
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* 响应式微调 */
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}
