:root {
  --bg: #f6f7fb;
  --bg-soft: #eef0f7;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --surface-border: rgba(26, 26, 46, 0.08);
  --text: #1a1a2e;
  --text-soft: #4a4e69;
  --text-muted: #7b7f9e;
  --primary: #6c5ce7;
  --primary-2: #a29bfe;
  --accent: #f7b731;
  --accent-2: #fd9644;
  --gradient: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 45%, #f7b731 100%);
  --gradient-soft: linear-gradient(135deg, rgba(108, 92, 231, 0.12), rgba(247, 183, 49, 0.12));
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 26, 46, 0.1);
  --shadow-lg: 0 16px 48px rgba(26, 26, 46, 0.16);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --blur: blur(16px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 64px;
  --maxw: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12121f;
    --bg-soft: #1a1a2e;
    --surface: rgba(30, 30, 52, 0.66);
    --surface-solid: #1e1e34;
    --surface-border: rgba(255, 255, 255, 0.1);
    --text: #eef0f7;
    --text-soft: #c3c6e0;
    --text-muted: #8b8fb0;
    --primary: #a29bfe;
    --primary-2: #6c5ce7;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(108, 92, 231, 0.16), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(247, 183, 49, 0.12), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

a:hover {
  color: var(--accent-2);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(108, 92, 231, 0.5);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Header ---------- */
header[role="banner"] {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--surface-border);
  box-shadow: var(--shadow-sm);
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: space-between;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 6px 20px;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-bottom: 1px dashed var(--surface-border);
}

.topbar span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 8px rgba(108, 92, 231, 0.6);
}

.topbar time {
  font-variant-numeric: tabular-nums;
}

nav[aria-label="主导航"] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 20px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  position: relative;
  padding-left: 34px;
  transition: transform 0.3s var(--ease);
}

.logo::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 26px;
  height: 26px;
  transform: translateY(-50%);
  border-radius: 9px;
  background: var(--gradient);
  box-shadow: 0 4px 14px rgba(108, 92, 231, 0.45);
}

.logo:hover {
  transform: translateY(-1px) scale(1.02);
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  border-radius: 999px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

nav ul a:hover {
  color: var(--primary);
  background: var(--gradient-soft);
  transform: translateY(-2px);
}

/* ---------- Main / Banner ---------- */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px 40px;
}

main > h1 {
  position: relative;
  margin: 28px 0 20px;
  padding: 56px 40px 52px;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #fff;
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--gradient);
  background-size: 200% 200%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: gradientShift 12s ease infinite;
}

main > h1::before,
main > h1::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

main > h1::before {
  width: 340px;
  height: 340px;
  right: -90px;
  top: -140px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 70%);
  animation: floatOrb 9s ease-in-out infinite;
}

main > h1::after {
  width: 240px;
  height: 240px;
  left: -70px;
  bottom: -110px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 70%);
  animation: floatOrb 11s ease-in-out infinite reverse;
}

main > h1 + p {
  max-width: 880px;
  margin: 0 auto 8px;
  padding: 26px 30px;
  font-size: 1.02rem;
  color: var(--text-soft);
  text-align: center;
  background: var(--surface);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ---------- Sections ---------- */
section {
  position: relative;
  margin: 34px 0;
  padding: 34px 32px;
  background: var(--surface);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

section:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(108, 92, 231, 0.25);
}

section > h2 {
  position: relative;
  margin: 0 0 22px;
  padding-bottom: 14px;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 800;
  line-height: 1.4;
  color: var(--text);
  letter-spacing: 0.01em;
}

section > h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: 999px;
  background: var(--gradient);
}

section h3 {
  position: relative;
  margin: 26px 0 10px;
  padding-left: 16px;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
}

section h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.14);
}

section p {
  margin: 0 0 14px;
  color: var(--text-soft);
}

section ul,
section ol {
  margin: 0 0 16px;
  padding-left: 1.4em;
  color: var(--text-soft);
}

section li {
  margin: 6px 0;
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}

section li::marker {
  color: var(--primary);
  font-weight: 700;
}

section li:hover {
  transform: translateX(4px);
  color: var(--text);
}

/* ---------- Articles ---------- */
article {
  position: relative;
  margin: 16px 0;
  padding: 22px 24px;
  background: var(--surface-solid);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  overflow: hidden;
}

article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(108, 92, 231, 0.3);
}

article:hover::before {
  opacity: 1;
}

article h3 {
  margin-top: 0;
}

article time {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--primary);
  background: var(--gradient-soft);
  border-radius: 999px;
}

article p {
  margin-bottom: 12px;
  font-size: 0.95rem;
}

article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

article a::after {
  content: "→";
  transition: transform 0.25s var(--ease);
}

article a:hover::after {
  transform: translateX(4px);
}

/* ---------- Blockquote / Cases ---------- */
blockquote {
  position: relative;
  margin: 14px 0;
  padding: 20px 24px 20px 56px;
  background: var(--gradient-soft);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

blockquote::before {
  content: "\201C";
  position: absolute;
  left: 16px;
  top: 6px;
  font-size: 3rem;
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--primary);
  opacity: 0.55;
}

blockquote p {
  margin: 0;
  font-style: italic;
  color: var(--text);
}

blockquote:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

/* ---------- Contact / Address ---------- */
address {
  font-style: normal;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

address p {
  margin: 0;
  padding: 14px 16px;
  font-size: 0.92rem;
  background: var(--surface-solid);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

address p:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(108, 92, 231, 0.3);
}

/* ---------- Sitemap / Links ---------- */
#sitemap ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

#sitemap li,
#links li {
  margin: 0;
}

#sitemap li:hover {
  transform: none;
}

#sitemap a,
#links a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  background: var(--surface-solid);
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

#sitemap a:hover,
#links a:hover {
  color: #fff;
  background: var(--gradient);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(108, 92, 231, 0.35);
}

/* ---------- Footer ---------- */
footer[role="contentinfo"] {
  position: relative;
  margin-top: 20px;
  padding: 40px 20px 48px;
  text-align: center;
  color: var(--text-muted);
  background: var(--surface);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border-top: 1px solid var(--surface-border);
}

footer[role="contentinfo"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, 80%);
  height: 3px;
  border-radius: 999px;
  background: var(--gradient);
}

footer p {
  margin: 0 auto 10px;
  max-width: var(--maxw);
  font-size: 0.88rem;
  line-height: 1.8;
}

footer p:first-child {
  font-weight: 700;
  color: var(--text-soft);
}

footer a {
  color: var(--text-soft);
  padding: 2px 6px;
  border-radius: 6px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

footer a:hover {
  color: var(--primary);
  background: var(--gradient-soft);
}

/* ---------- Animations ---------- */
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-18px, 16px) scale(1.08); }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main > h1 {
  animation: fadeUp 0.8s var(--ease) both, gradientShift 12s ease infinite;
}

main > h1 + p {
  animation: fadeUp 0.8s var(--ease) 0.1s both;
}

section {
  animation: fadeUp 0.7s var(--ease) both;
}

section:nth-of-type(1) { animation-delay: 0.05s; }
section:nth-of-type(2) { animation-delay: 0.1s; }
section:nth-of-type(3) { animation-delay: 0.15s; }
section:nth-of-type(4) { animation-delay: 0.2s; }
section:nth-of-type(5) { animation-delay: 0.25s; }
section:nth-of-type(6) { animation-delay: 0.3s; }
section:nth-of-type(7) { animation-delay: 0.35s; }
section:nth-of-type(8) { animation-delay: 0.4s; }

@supports (animation-timeline: view()) {
  section,
  article,
  blockquote,
  address p {
    animation: fadeUp linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  nav[aria-label="主导航"] {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  nav ul::-webkit-scrollbar {
    display: none;
  }

  nav ul a {
    white-space: nowrap;
  }

  main > h1 {
    padding: 44px 24px 40px;
  }
}

@media (max-width: 640px) {
  :root {
    --radius: 14px;
    --radius-lg: 20px;
  }

  body {
    font-size: 15px;
  }

  .topbar {
    justify-content: center;
    text-align: center;
    font-size: 0.72rem;
  }

  main {
    padding: 0 14px 32px;
  }

  main > h1 {
    margin-top: 18px;
    padding: 36px 18px 34px;
  }

  main > h1 + p {
    padding: 20px 18px;
    font-size: 0.95rem;
  }

  section {
    margin: 22px 0;
    padding: 24px 18px;
  }

  article {
    padding: 18px 16px;
  }

  blockquote {
    padding: 18px 16px 18px 48px;
  }

  address {
    grid-template-columns: 1fr;
  }

  #sitemap ul,
  #links ul {
    gap: 8px;
  }

  #sitemap a,
  #links a {
    padding: 7px 13px;
    font-size: 0.84rem;
  }

  footer[role="contentinfo"] {
    padding: 32px 16px 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  header[role="banner"],
  footer[role="contentinfo"] {
    position: static;
  }

  body {
    background: #fff;
    color: #000;
  }

  section,
  article,
  blockquote {
    box-shadow: none;
    border-color: #ccc;
  }
}