:root {
  color-scheme: light dark;
  --bg: #eef4fb;
  --bg-grad-1: #dbe9fb;
  --bg-grad-2: #eaf3ff;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --surface-glass-strong: rgba(255, 255, 255, 0.9);
  --border: rgba(26, 95, 180, 0.14);
  --text: #16202b;
  --text-soft: #46586b;
  --text-mute: #6b7c8f;
  --primary: #1a5fb4;
  --primary-strong: #14488a;
  --primary-soft: #e3eefc;
  --accent: #2ec27e;
  --accent-2: #e5a50a;
  --accent-3: #813d9c;
  --danger: #c01c28;
  --shadow-sm: 0 2px 8px rgba(20, 60, 110, 0.08);
  --shadow-md: 0 10px 28px rgba(20, 60, 110, 0.12);
  --shadow-lg: 0 22px 60px rgba(20, 60, 110, 0.18);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --maxw: 1160px;
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --bg-grad-1: #101c33;
    --bg-grad-2: #0a1020;
    --surface: #131c2c;
    --surface-glass: rgba(19, 28, 44, 0.66);
    --surface-glass-strong: rgba(19, 28, 44, 0.86);
    --border: rgba(130, 180, 255, 0.16);
    --text: #e7eef8;
    --text-soft: #b4c2d4;
    --text-mute: #8b9cb0;
    --primary: #5b9bf0;
    --primary-strong: #7fb4ff;
    --primary-soft: rgba(91, 155, 240, 0.14);
    --accent: #45d18e;
    --accent-2: #f0b93a;
    --accent-3: #b07ad0;
    --danger: #f06a72;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 22px 60px 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%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  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:
    radial-gradient(1200px 600px at 12% -8%, var(--bg-grad-1), transparent 60%),
    radial-gradient(1000px 520px at 92% 4%, var(--bg-grad-2), transparent 62%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  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,
a:focus-visible {
  color: var(--primary-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(91, 155, 240, 0.55);
  outline-offset: 2px;
  border-radius: 6px;
}

h1, h2, h3, h4 {
  line-height: 1.35;
  margin: 0 0 0.6em;
  color: var(--text);
  letter-spacing: 0.01em;
  font-weight: 700;
}

h1 {
  font-size: clamp(1.55rem, 1.1rem + 2vw, 2.35rem);
}

h2 {
  font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.75rem);
  position: relative;
  padding-left: 16px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 5px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--primary), var(--accent-3));
}

h3 {
  font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.22rem);
}

p {
  margin: 0 0 1em;
  color: var(--text-soft);
}

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.3em;
  color: var(--text-soft);
}

li {
  margin-bottom: 0.45em;
}

strong {
  color: var(--text);
}

main {
  display: block;
  width: min(100% - 32px, var(--maxw));
  margin: 0 auto;
  padding-bottom: 40px;
}

/* ============ Header ============ */
header[role="banner"] {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(135deg, rgba(26, 95, 180, 0.94), rgba(129, 61, 156, 0.88) 55%, rgba(46, 194, 126, 0.82));
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-md);
  color: #fff;
}

.brand-bar {
  width: min(100% - 32px, var(--maxw));
  margin: 0 auto;
  padding: 12px 0 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
}

.brand-bar > a {
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.45rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.brand-bar > a:hover {
  color: #fff;
  text-decoration: none;
  opacity: 0.92;
}

.brand-slogan {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.86);
  letter-spacing: 0.03em;
}

header nav {
  width: min(100% - 32px, var(--maxw));
  margin: 0 auto;
  padding-bottom: 8px;
}

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

header nav a {
  display: inline-block;
  padding: 5px 12px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

header nav a:hover,
header nav a:focus-visible {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

/* ============ Breadcrumb ============ */
main > nav[aria-label="面包屑导航"] ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 6px;
  padding: 8px 14px;
  font-size: 0.84rem;
  color: var(--text-mute);
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

main > nav[aria-label="面包屑导航"] li + li::before {
  content: "›";
  margin-right: 6px;
  color: var(--text-mute);
}

/* ============ Sections / Cards ============ */
section {
  margin: 22px 0;
  padding: clamp(18px, 2.4vw, 34px);
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  animation: rise 0.7s var(--ease) both;
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  section {
    background: var(--surface);
  }
}

section:nth-of-type(odd) {
  animation-delay: 0.04s;
}

section:nth-of-type(even) {
  animation-delay: 0.08s;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  section,
  header nav a,
  a,
  button {
    animation: none !important;
    transition: none !important;
  }
}

/* Hero (intro) */
#intro {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(26, 95, 180, 0.14), rgba(129, 61, 156, 0.1) 50%, rgba(46, 194, 126, 0.12)),
    var(--surface-glass-strong);
  border-color: rgba(26, 95, 180, 0.24);
}

#intro::after {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(46, 194, 126, 0.22), transparent 68%);
  pointer-events: none;
}

#intro h1 {
  background: linear-gradient(120deg, var(--primary), var(--accent-3) 60%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#intro p {
  max-width: 78ch;
}

figure {
  margin: 22px 0 6px;
  padding: 14px;
  background: var(--surface-glass-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

figure:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

figure svg {
  border-radius: var(--radius-sm);
  height: auto;
}

figcaption {
  margin-top: 10px;
  font-size: 0.84rem;
  color: var(--text-mute);
  text-align: center;
}

/* ============ Tables ============ */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 16px 0 20px;
  font-size: 0.9rem;
  background: var(--surface-glass-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

caption {
  caption-side: top;
  padding: 12px 14px;
  font-weight: 700;
  color: var(--text);
  text-align: left;
  background: var(--primary-soft);
  border-bottom: 1px solid var(--border);
}

thead th {
  background: linear-gradient(135deg, rgba(26, 95, 180, 0.12), rgba(129, 61, 156, 0.1));
  color: var(--text);
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

th, td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  min-width: 110px;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr {
  transition: background 0.25s var(--ease);
}

tbody tr:hover {
  background: var(--primary-soft);
}

/* ============ Articles / Blockquotes ============ */
article {
  margin: 16px 0;
  padding: 18px 20px;
  background: var(--surface-glass-strong);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-left-color 0.3s var(--ease);
}

article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--accent);
}

article h3 {
  margin-bottom: 0.35em;
}

article time {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--text-mute);
  background: var(--primary-soft);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}

article p:last-child {
  margin-bottom: 0;
}

blockquote {
  margin: 14px 0;
  padding: 16px 20px 16px 22px;
  background: var(--surface-glass-strong);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

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

/* ============ FAQ details ============ */
details {
  margin: 10px 0;
  background: var(--surface-glass-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

details:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(26, 95, 180, 0.32);
}

details[open] {
  border-color: rgba(46, 194, 126, 0.5);
}

summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 46px 14px 18px;
  font-weight: 600;
  color: var(--text);
  position: relative;
  transition: background 0.25s var(--ease);
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  line-height: 22px;
  text-align: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
  background: var(--accent);
  color: #fff;
}

summary:hover {
  background: var(--primary-soft);
}

details > p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--text-soft);
  animation: fadeIn 0.35s var(--ease) both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ Form ============ */
form[role="search"] {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 14px 0 6px;
  padding: 14px;
  background: var(--surface-glass-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

form[role="search"] label {
  font-size: 0.86rem;
  color: var(--text-mute);
  font-weight: 600;
}

form[role="search"] input[type="search"] {
  flex: 1 1 220px;
  min-width: 0;
  padding: 10px 16px;
  font-size: 0.92rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

form[role="search"] input[type="search"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(91, 155, 240, 0.2);
  outline: none;
}

form[role="search"] button {
  padding: 10px 24px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent-3));
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

form[role="search"] button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  filter: brightness(1.08);
}

form[role="search"] button:active {
  transform: translateY(0);
}

/* ============ Address / contact ============ */
address {
  font-style: normal;
}

address ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
}

address li {
  padding: 10px 14px;
  background: var(--surface-glass-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

address li:hover {
  transform: translateX(4px);
  border-color: rgba(46, 194, 126, 0.45);
}

/* ============ Sitemap / link lists ============ */
#sitemap > ul,
#links > ul {
  columns: 2;
  column-gap: 22px;
  list-style: none;
  padding: 0;
}

#sitemap > ul li,
#links > ul li {
  break-inside: avoid;
  margin-bottom: 8px;
  padding: 8px 14px;
  background: var(--surface-glass-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

#sitemap > ul li:hover,
#links > ul li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ============ Footer ============ */
footer[role="contentinfo"] {
  margin-top: 30px;
  padding: 34px 16px 28px;
  background: linear-gradient(160deg, rgba(26, 95, 180, 0.92), rgba(129, 61, 156, 0.88));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

footer[role="contentinfo"] p {
  margin: 6px auto;
  max-width: 900px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.84);
}

footer[role="contentinfo"] a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.5);
  transition: opacity 0.25s var(--ease), border-color 0.25s var(--ease);
}

footer[role="contentinfo"] a:hover {
  opacity: 0.85;
  border-bottom-color: #fff;
  text-decoration: none;
}

footer[role="contentinfo"] p:last-child a {
  display: inline-block;
  padding: 6px 18px;
  margin-top: 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

footer[role="contentinfo"] p:last-child a:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  :root {
    --radius-lg: 18px;
  }
  main {
    width: calc(100% - 24px);
  }
  .brand-bar,
  header nav {
    width: calc(100% - 24px);
  }
  #sitemap > ul,
  #links > ul {
    columns: 1;
  }
  header nav ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  header nav ul::-webkit-scrollbar {
    height: 4px;
  }
  header nav ul::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 4px;
  }
  header nav a {
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
    line-height: 1.72;
  }
  section {
    padding: 16px 14px;
    margin: 16px 0;
  }
  h2 {
    padding-left: 13px;
  }
  h2::before {
    width: 4px;
  }
  .brand-bar {
    padding-top: 10px;
  }
  .brand-slogan {
    font-size: 0.76rem;
  }
  article,
  blockquote {
    padding: 14px 14px;
  }
  th, td {
    padding: 9px 11px;
    font-size: 0.84rem;
  }
  summary {
    padding: 12px 42px 12px 14px;
    font-size: 0.94rem;
  }
  details > p {
    padding: 0 14px 14px;
  }
  form[role="search"] {
    padding: 12px;
  }
  form[role="search"] button {
    flex: 1 1 100%;
  }
}

@media (min-width: 1024px) {
  header nav ul {
    gap: 8px;
  }
  #intro p {
    font-size: 1.02rem;
  }
}

@media print {
  header[role="banner"],
  footer[role="contentinfo"],
  form[role="search"] {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
  section {
    box-shadow: none;
    border: 1px solid #ccc;
    background: #fff;
  }
}