*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-bg: #0b0914;
  --color-surface: rgba(255, 255, 255, 0.04);
  --color-surface-hover: rgba(255, 255, 255, 0.08);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-primary: #8b5cf6;
  --color-secondary: #d946ef;
  --color-accent: #c084fc;
  --color-text: #f1f5f9;
  --color-text-muted: #a1a8b8;
  --color-link: #a78bfa;
  --gradient-brand: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  --glass-blur: 14px;
  --glass-radius: 18px;
  --container-max: 1160px;
  --space-section: clamp(3.5rem, 7vw, 6rem);
  --space-block: clamp(1.5rem, 3vw, 2.5rem);
  --font-stack: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-stack);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--color-link); text-decoration: none; transition: color var(--transition-fast); }
a:hover, a:focus-visible { color: var(--color-secondary); }
ul, ol { list-style: none; }
button, input[type="submit"], a[role="button"] { cursor: pointer; border: none; background: none; font: inherit; }

/* Typography */
h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); line-height: 1.25; margin-bottom: var(--space-block); font-weight: 600; }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.3; margin-bottom: 0.8rem; font-weight: 600; }
p { margin-bottom: 1rem; color: var(--color-text-muted); }
small { font-size: 0.875rem; color: var(--color-text-muted); }

.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 1.25rem; }
section { padding: var(--space-section) 0; position: relative; }
.section-grid { display: grid; gap: var(--space-block); }
.text-center { text-align: center; }
.text-gradient { background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Header & Footer */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 9, 20, 0.85);
  backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--color-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--color-text); font-size: 1.1rem; }
.brand img { height: 32px; width: auto; }
.nav-list { display: flex; gap: 1.5rem; }
.nav-list a { color: var(--color-text-muted); font-size: 0.95rem; font-weight: 500; padding: 0.4rem 0; border-bottom: 2px solid transparent; transition: all var(--transition-fast); }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--color-text); border-bottom-color: var(--color-accent); }

.footer {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--color-border);
  padding: var(--space-section) 0 2rem;
  margin-top: var(--space-section);
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer h4 { font-size: 1rem; margin-bottom: 0.8rem; color: var(--color-text); }
.footer ul li { margin-bottom: 0.5rem; }
.footer ul li a { color: var(--color-text-muted); font-size: 0.9rem; }
.footer-bottom { text-align: center; padding-top: 1.5rem; border-top: 1px solid var(--color-border); color: var(--color-text-muted); font-size: 0.85rem; }

/* Components */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 1.8rem; border-radius: var(--radius-md);
  font-weight: 600; font-size: 1rem; transition: all var(--transition-normal);
  background: var(--gradient-brand); color: #fff; box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(217, 70, 239, 0.35); filter: brightness(1.1); }
.btn-outline { background: transparent; border: 1.5px solid var(--color-accent); color: var(--color-text); box-shadow: none; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--glass-radius);
  padding: var(--space-block);
  backdrop-filter: blur(8px);
  transition: all var(--transition-normal);
}
.card:hover { background: var(--color-surface-hover); transform: translateY(-4px); }

table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
th, td { padding: 0.9rem 1rem; text-align: left; border-bottom: 1px solid var(--color-border); }
th { color: var(--color-accent); font-weight: 600; }
td { color: var(--color-text-muted); }
tr:hover td { background: rgba(255, 255, 255, 0.03); }

/* FAQ */
details { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: 0.8rem; overflow: hidden; transition: all var(--transition-fast); }
details[open] { background: var(--color-surface-hover); }
summary { padding: 1rem 1.2rem; font-weight: 600; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.2rem; color: var(--color-accent); transition: transform var(--transition-fast); }
details[open] summary::after { transform: rotate(45deg); }
.details-content { padding: 0 1.2rem 1rem; color: var(--color-text-muted); line-height: 1.7; }

/* News Cards */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.news-card { display: flex; flex-direction: column; gap: 0.8rem; }
.news-date { font-size: 0.8rem; color: var(--color-secondary); font-weight: 500; }
.news-meta { margin-top: auto; padding-top: 0.8rem; border-top: 1px dashed var(--color-border); }

/* Related Links */
.related-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.related-item { display: flex; flex-direction: column; padding: 0.9rem; background: var(--color-surface); border-radius: var(--radius-sm); border: 1px solid transparent; transition: all var(--transition-fast); }
.related-item:hover { border-color: var(--color-border); background: var(--color-surface-hover); }
.related-title { font-weight: 600; color: var(--color-text); margin-bottom: 0.3rem; }
.related-desc { font-size: 0.9rem; color: var(--color-text-muted); }

/* Focus Visible */
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* SVG Animations */
@keyframes draw-line {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}
.animate-draw path {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: draw-line 4.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes breathe {
  0%, 100% { opacity: 0.82; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.025); }
}
.animate-breathe {
  animation: breathe 6s ease-in-out infinite;
  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; scroll-behavior: auto !important; }
  .animate-draw path { animation: none; stroke-dashoffset: 0; }
  .animate-breathe { animation: none; transform: none; }
}
