:root {
  --primary: #ff6b35;
  --primary-dark: #d94f1e;
  --primary-light: #ff8a5c;
  --primary-soft: #fff3ec;
  --accent: #7c3aed;
  --accent-dark: #5b21b6;
  --accent-soft: #f3ecff;
  --bg: #fdf9f6;
  --bg-alt: #ffffff;
  --bg-elev: rgba(255, 255, 255, 0.72);
  --glass: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.65);
  --text: #241812;
  --text-soft: #5c4a40;
  --text-muted: #8a7568;
  --border: rgba(36, 24, 18, 0.1);
  --shadow-sm: 0 2px 8px rgba(36, 24, 18, 0.06);
  --shadow-md: 0 8px 24px rgba(36, 24, 18, 0.09);
  --shadow-lg: 0 18px 48px rgba(36, 24, 18, 0.14);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --maxw: 1180px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --transition: 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #ff7d4d;
    --primary-dark: #ff6b35;
    --primary-light: #ffa07a;
    --primary-soft: #2a1b14;
    --accent: #a78bfa;
    --accent-dark: #8b5cf6;
    --accent-soft: #1e1830;
    --bg: #14100e;
    --bg-alt: #1c1714;
    --bg-elev: rgba(28, 23, 20, 0.78);
    --glass: rgba(40, 32, 28, 0.55);
    --glass-border: rgba(255, 255, 255, 0.12);
    --text: #f5ece6;
    --text-soft: #cdbcb2;
    --text-muted: #9c8a7f;
    --border: rgba(255, 255, 255, 0.12);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.6);
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(255, 107, 53, 0.1), transparent 42%),
    radial-gradient(circle at 88% 0%, rgba(124, 58, 237, 0.09), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(255, 138, 92, 0.07), transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

a:hover,
a:focus-visible {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

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

h1 {
  font-size: clamp(1.7rem, 4.2vw, 2.9rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  position: relative;
  padding-bottom: 0.45em;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  margin-top: 1.6em;
  color: var(--text);
}

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

strong {
  color: var(--text);
  font-weight: 800;
}

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

li {
  margin-bottom: 0.45em;
}

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

blockquote {
  margin: 0 0 1em;
  padding: 1em 1.2em;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

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

time {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

address {
  font-style: normal;
}

/* ---------- Skip link ---------- */
body > a[href="#main-content"] {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 999;
  padding: 0.7em 1.3em;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  box-shadow: var(--shadow-md);
  transition: top var(--transition);
}

body > a[href="#main-content"]:focus {
  top: 16px;
  text-decoration: none;
  color: #fff;
}

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

header[role="banner"] > div {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.85rem clamp(1rem, 4vw, 2rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
}

header[role="banner"] p {
  margin: 0;
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

header[role="banner"] p strong {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
}

header[role="banner"] nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

header[role="banner"] nav li {
  margin: 0;
}

header[role="banner"] nav a {
  display: inline-block;
  padding: 0.4em 0.75em;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

header[role="banner"] nav a:hover,
header[role="banner"] nav a:focus-visible {
  background: linear-gradient(120deg, var(--primary), var(--primary-light));
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.32);
}

/* ---------- Main layout ---------- */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 4vw, 2rem) 3rem;
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3.5vw, 2.75rem);
}

main > section {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  animation: rise 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

main > section:hover {
  box-shadow: var(--shadow-md);
}

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

main > section:nth-of-type(1) { animation-delay: 0.02s; }
main > section:nth-of-type(2) { animation-delay: 0.05s; }
main > section:nth-of-type(3) { animation-delay: 0.08s; }
main > section:nth-of-type(4) { animation-delay: 0.11s; }
main > section:nth-of-type(5) { animation-delay: 0.14s; }
main > section:nth-of-type(6) { animation-delay: 0.17s; }
main > section:nth-of-type(7) { animation-delay: 0.2s; }
main > section:nth-of-type(8) { animation-delay: 0.23s; }
main > section:nth-of-type(9) { animation-delay: 0.26s; }
main > section:nth-of-type(10) { animation-delay: 0.29s; }
main > section:nth-of-type(11) { animation-delay: 0.32s; }
main > section:nth-of-type(12) { animation-delay: 0.35s; }

/* ---------- Hero ---------- */
main > section[aria-labelledby="hero-title"] {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(125deg, #ff6b35 0%, #ff8a5c 38%, #a855f7 100%);
  border: none;
  box-shadow: var(--shadow-lg);
  padding: clamp(1.75rem, 5vw, 3.5rem);
}

main > section[aria-labelledby="hero-title"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.32), transparent 45%),
    radial-gradient(circle at 8% 92%, rgba(255, 255, 255, 0.18), transparent 40%);
  pointer-events: none;
}

main > section[aria-labelledby="hero-title"] > * {
  position: relative;
  z-index: 1;
}

main > section[aria-labelledby="hero-title"] h1 {
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
  max-width: 22ch;
}

main > section[aria-labelledby="hero-title"] h1::after {
  display: none;
}

main > section[aria-labelledby="hero-title"] p {
  color: rgba(255, 255, 255, 0.94);
  max-width: 70ch;
  font-size: clamp(0.95rem, 1.7vw, 1.08rem);
}

main > section[aria-labelledby="hero-title"] p a {
  display: inline-block;
  margin: 0.25rem 0.35rem 0.25rem 0;
  padding: 0.55em 1.15em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

main > section[aria-labelledby="hero-title"] p a:hover,
main > section[aria-labelledby="hero-title"] p a:focus-visible {
  background: #fff;
  color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  text-decoration: none;
}

main > section[aria-labelledby="hero-title"] figure {
  margin: 1.75rem 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition);
}

main > section[aria-labelledby="hero-title"] figure:hover {
  transform: translateY(-4px) scale(1.005);
}

main > section[aria-labelledby="hero-title"] figure svg {
  border-radius: var(--radius);
  width: 100%;
}

main > section[aria-labelledby="hero-title"] figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.88);
  padding: 0.6rem 0 0.2rem;
}

/* ---------- Breadcrumb ---------- */
main > nav[aria-label="面包屑导航"] {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 0 0.25rem;
}

main > nav[aria-label="面包屑导航"] ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

main > nav[aria-label="面包屑导航"] li {
  margin: 0;
  display: inline-flex;
  align-items: center;
}

main > nav[aria-label="面包屑导航"] li + li::before {
  content: "›";
  margin-right: 0.4rem;
  color: var(--text-muted);
  font-weight: 700;
}

main > nav[aria-label="面包屑导航"] a {
  color: var(--text-soft);
  font-weight: 600;
}

main > nav[aria-label="面包屑导航"] [aria-current="page"] {
  color: var(--primary-dark);
  font-weight: 700;
}

/* ---------- Cards inside sections ---------- */
main article {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1rem, 2.5vw, 1.5rem);
  margin-bottom: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

main article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 107, 53, 0.35);
}

main article h3 {
  margin-top: 0;
}

main article h3 a,
main article > p > a {
  font-weight: 700;
}

main article > p > a {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.3em 0.9em;
  border-radius: 999px;
  font-size: 0.85rem;
  background: var(--primary-soft);
  color: var(--primary-dark);
  border: 1px solid rgba(255, 107, 53, 0.25);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

main article > p > a:hover,
main article > p > a:focus-visible {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  transform: translateX(3px);
}

/* ---------- FAQ ---------- */
main details {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  padding: 0.2rem 1.1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

main details:hover {
  border-color: rgba(255, 107, 53, 0.3);
  box-shadow: var(--shadow-md);
}

main details[open] {
  background: var(--bg-alt);
  border-color: rgba(255, 107, 53, 0.4);
}

main summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  padding: 0.9rem 2rem 0.9rem 0;
  list-style: none;
  position: relative;
  transition: color var(--transition);
}

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

main summary::after {
  content: "+";
  position: absolute;
  right: 0.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--primary);
  transition: transform var(--transition), color var(--transition);
}

main details[open] summary::after {
  content: "–";
  transform: translateY(-50%) rotate(180deg);
}

main summary:hover {
  color: var(--primary-dark);
}

main details p {
  margin: 0 0 1rem;
  padding-top: 0.2rem;
  border-top: 1px dashed var(--border);
  padding-top: 0.85rem;
  font-size: 0.95rem;
}

/* ---------- Contact / address ---------- */
main address {
  background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1rem, 2.5vw, 1.5rem);
  margin-bottom: 1.25rem;
}

main address p {
  margin: 0 0 0.45rem;
  color: var(--text-soft);
}

main address p:last-child {
  margin-bottom: 0;
}

/* ---------- Sitemap / links lists ---------- */
main section[aria-labelledby="sitemap-title"] ul,
main section[aria-labelledby="links-title"] ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

main section[aria-labelledby="sitemap-title"] li,
main section[aria-labelledby="links-title"] li {
  margin: 0;
}

main section[aria-labelledby="sitemap-title"] a,
main section[aria-labelledby="links-title"] a {
  display: inline-block;
  padding: 0.45em 1em;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

main section[aria-labelledby="sitemap-title"] a:hover,
main section[aria-labelledby="links-title"] a:hover,
main section[aria-labelledby="sitemap-title"] a:focus-visible,
main section[aria-labelledby="links-title"] a:focus-visible {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(255, 107, 53, 0.3);
}

/* ---------- Footer ---------- */
footer[role="contentinfo"] {
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  border-top: 1px solid var(--border);
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 4vw, 2rem);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

footer[role="contentinfo"] p {
  margin: 0 0 0.5rem;
  color: var(--text-muted);
}

footer[role="contentinfo"] a {
  color: var(--text-soft);
  font-weight: 600;
  padding: 0.1em 0.2em;
  transition: color var(--transition);
}

footer[role="contentinfo"] a:hover,
footer[role="contentinfo"] a:focus-visible {
  color: var(--primary);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  header[role="banner"] > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  header[role="banner"] nav {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  header[role="banner"] nav::-webkit-scrollbar {
    display: none;
  }

  header[role="banner"] nav ul {
    flex-wrap: nowrap;
    width: max-content;
    padding-bottom: 0.2rem;
  }

  html {
    scroll-padding-top: 130px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
    line-height: 1.7;
  }

  main {
    gap: 1.1rem;
    padding-bottom: 2rem;
  }

  main > section {
    border-radius: var(--radius);
    padding: 1.15rem;
  }

  main > section[aria-labelledby="hero-title"] {
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.15rem;
  }

  main > section[aria-labelledby="hero-title"] figure {
    padding: 0.3rem;
  }

  h2::after {
    width: 44px;
    height: 4px;
  }

  main article {
    padding: 1rem;
  }

  main summary {
    padding: 0.8rem 1.7rem 0.8rem 0;
    font-size: 0.95rem;
  }

  main details {
    padding: 0.15rem 0.85rem;
  }

  blockquote {
    padding: 0.85rem 1rem;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Print ---------- */
@media print {
  header[role="banner"],
  footer[role="contentinfo"],
  main > nav[aria-label="面包屑导航"],
  body > a[href="#main-content"] {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  main {
    max-width: 100%;
    padding: 0;
    gap: 1rem;
  }

  main > section {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
    animation: none;
  }

  main > section[aria-labelledby="hero-title"] {
    background: #eee;
    color: #000;
  }

  main > section[aria-labelledby="hero-title"] h1,
  main > section[aria-labelledby="hero-title"] p,
  main > section[aria-labelledby="hero-title"] figcaption {
    color: #000;
  }

  main details {
    break-inside: avoid;
  }

  main details:not([open]) > *:not(summary) {
    display: block;
  }
}