:root {
  --primary: #F5A623;
  --primary-dark: #D98A0B;
  --primary-light: #FFC85C;
  --accent: #FF7A45;
  --gradient: linear-gradient(135deg, #F5A623 0%, #FF7A45 55%, #FF5C8A 100%);
  --gradient-soft: linear-gradient(135deg, rgba(245, 166, 35, 0.18), rgba(255, 92, 138, 0.12));
  --bg: #FFFBF3;
  --bg-alt: #FFF7E6;
  --surface: #FFFFFF;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --border: rgba(245, 166, 35, 0.22);
  --text: #2B2118;
  --text-soft: #5C4E3F;
  --text-muted: #8A7862;
  --shadow-sm: 0 2px 10px rgba(140, 95, 20, 0.08);
  --shadow-md: 0 10px 30px rgba(140, 95, 20, 0.12);
  --shadow-lg: 0 20px 50px rgba(140, 95, 20, 0.16);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --max-width: 1180px;
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14100B;
    --bg-alt: #1C1610;
    --surface: #221A12;
    --surface-glass: rgba(34, 26, 18, 0.66);
    --border: rgba(245, 166, 35, 0.24);
    --text: #F6EEE2;
    --text-soft: #D8C9B6;
    --text-muted: #A8967F;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
  }
}

*,
*::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: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 500px at 8% -10%, rgba(245, 166, 35, 0.16), transparent 60%),
    radial-gradient(800px 500px at 100% 0%, rgba(255, 92, 138, 0.12), transparent 55%),
    radial-gradient(700px 600px at 50% 120%, rgba(255, 200, 92, 0.12), transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover,
a:focus-visible {
  color: var(--accent);
}

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

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

h1 {
  font-size: clamp(1.6rem, 4.2vw, 2.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  position: relative;
  padding-left: 18px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22em;
  bottom: 0.22em;
  width: 6px;
  border-radius: 6px;
  background: var(--gradient);
}

h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
}

h4 {
  font-size: 1.05rem;
  color: var(--primary-dark);
}

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

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);
}

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

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

.top-bar {
  background: var(--gradient);
  color: #fff;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.top-bar p {
  margin: 0;
  padding: 6px 16px;
  color: #fff;
  font-size: 0.8rem;
}

.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 20px;
  flex-wrap: wrap;
}

.brand-bar > a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
}

.brand-bar > a svg {
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(245, 166, 35, 0.35);
  transition: transform 0.4s var(--ease);
}

.brand-bar > a:hover svg {
  transform: rotate(-8deg) scale(1.06);
}

.brand-name {
  font-size: 1.15rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
}

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

.brand-bar nav a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-soft);
  font-weight: 500;
  transition: all 0.28s var(--ease);
}

.brand-bar nav a:hover,
.brand-bar nav a:focus-visible {
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 6px 16px rgba(245, 166, 35, 0.32);
  transform: translateY(-2px);
}

/* ============ Breadcrumb ============ */
body > nav[aria-label="面包屑导航"] {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 20px 0;
}

body > nav[aria-label="面包屑导航"] ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

body > nav[aria-label="面包屑导航"] li {
  margin: 0;
}

body > nav[aria-label="面包屑导航"] li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--text-muted);
  opacity: 0.6;
}

body > nav[aria-label="面包屑导航"] a {
  color: var(--text-muted);
}

body > nav[aria-label="面包屑导航"] a:hover {
  color: var(--primary-dark);
}

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

/* ============ Main layout ============ */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

main > section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 40px);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.4s var(--ease);
  animation: rise-in 0.7s var(--ease) both;
}

main > section:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(245, 166, 35, 0.4);
}

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; }

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

/* ============ Hero ============ */
#hero {
  position: relative;
  background:
    radial-gradient(700px 340px at 85% -10%, rgba(255, 255, 255, 0.35), transparent 60%),
    var(--gradient);
  color: #fff;
  border: none;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.16) 0, transparent 26%),
    radial-gradient(circle at 88% 78%, rgba(255, 255, 255, 0.12) 0, transparent 30%);
  pointer-events: none;
}

#hero > * {
  position: relative;
  z-index: 1;
}

#hero h1 {
  color: #fff;
  text-shadow: 0 3px 18px rgba(120, 60, 0, 0.28);
}

#hero p {
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.02rem;
  max-width: 78ch;
}

#hero figure {
  margin: 22px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

#hero figure:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 22px 44px rgba(90, 40, 0, 0.28);
}

#hero figcaption {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.85rem;
  text-align: center;
  padding: 8px 4px 2px;
}

/* ============ Page anchor nav ============ */
main > nav[aria-label="页内锚点导航"] {
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 26px);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: rise-in 0.7s var(--ease) both;
}

main > nav[aria-label="页内锚点导航"] h2 {
  font-size: 1.15rem;
  margin-bottom: 14px;
}

main > nav[aria-label="页内锚点导航"] ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

main > nav[aria-label="页内锚点导航"] li {
  margin: 0;
}

main > nav[aria-label="页内锚点导航"] a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-soft);
  box-shadow: var(--shadow-sm);
  transition: all 0.28s var(--ease);
}

main > nav[aria-label="页内锚点导航"] a:hover,
main > nav[aria-label="页内锚点导航"] a:focus-visible {
  color: #fff;
  background: var(--gradient);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(245, 166, 35, 0.32);
}

/* ============ Definition lists ============ */
dl {
  display: grid;
  grid-template-columns: minmax(110px, 160px) 1fr;
  gap: 0;
  margin: 0 0 1.4em;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

dt {
  padding: 12px 16px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

dd {
  margin: 0;
  padding: 12px 16px;
  color: var(--text-soft);
  border-bottom: 1px solid var(--border);
  word-break: break-word;
}

dl > dt:last-of-type,
dl > dd:last-of-type {
  border-bottom: none;
}

/* ============ Figures ============ */
figure {
  margin: 0 0 1.4em;
}

figure svg {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
}

/* ============ Blockquotes ============ */
blockquote {
  margin: 0 0 14px;
  padding: 14px 18px;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--gradient-soft);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

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

/* ============ Articles ============ */
#articles article {
  position: relative;
  padding: 18px 20px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

#articles article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 4px;
  border-radius: 4px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

#articles article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(245, 166, 35, 0.4);
}

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

#articles article h3 {
  margin-bottom: 6px;
}

#articles article p {
  margin-bottom: 6px;
  font-size: 0.95rem;
}

#articles article p:nth-of-type(1) {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

#articles article a {
  display: inline-block;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  transition: all 0.28s var(--ease);
}

#articles article a:hover {
  color: #fff;
  background: var(--gradient);
  border-color: transparent;
  transform: translateX(3px);
}

/* ============ FAQ ============ */
#faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  background: var(--surface);
  overflow: hidden;
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

#faq details[open] {
  box-shadow: var(--shadow-md);
  border-color: rgba(245, 166, 35, 0.45);
}

#faq details:hover {
  border-color: rgba(245, 166, 35, 0.4);
}

#faq summary {
  cursor: pointer;
  list-style: none;
  padding: 15px 52px 15px 18px;
  font-weight: 600;
  color: var(--text);
  position: relative;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
  user-select: none;
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
  background: var(--gradient-soft);
  color: var(--primary-dark);
  font-size: 1.1rem;
  font-weight: 700;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}

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

#faq summary:hover {
  background: var(--gradient-soft);
}

#faq details p {
  margin: 0;
  padding: 0 18px 18px;
  font-size: 0.95rem;
  animation: fade-in 0.4s var(--ease) both;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

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

#contact address ul,
#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2em;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}

#contact address li,
#sitemap li,
#links li {
  margin: 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-soft);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

#contact address li:hover,
#sitemap li:hover,
#links li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  background: var(--surface);
}

#contact address a,
#sitemap a,
#links a {
  font-weight: 600;
  word-break: break-all;
}

/* ============ Footer ============ */
footer[role="contentinfo"] {
  background:
    radial-gradient(700px 300px at 12% 0%, rgba(245, 166, 35, 0.14), transparent 60%),
    var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 44px 20px 24px;
}

footer[role="contentinfo"] > section {
  max-width: var(--max-width);
  margin: 0 auto 28px;
}

footer[role="contentinfo"] h2 {
  font-size: 1.15rem;
}

footer[role="contentinfo"] h3 {
  font-size: 1rem;
  margin-top: 1.2em;
}

footer[role="contentinfo"] p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

footer[role="contentinfo"] ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

footer[role="contentinfo"] li {
  margin: 0;
}

footer[role="contentinfo"] ul a {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.88rem;
  transition: all 0.28s var(--ease);
}

footer[role="contentinfo"] ul a:hover {
  color: #fff;
  background: var(--gradient);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(245, 166, 35, 0.3);
}

footer[role="contentinfo"] > p {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .brand-bar {
    justify-content: center;
    flex-direction: column;
    gap: 10px;
  }

  .brand-bar nav ul {
    justify-content: center;
  }

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

  dt {
    border-bottom: none;
    padding-bottom: 4px;
  }

  dd {
    padding-top: 4px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .top-bar p {
    font-size: 0.72rem;
    padding: 5px 12px;
  }

  .brand-bar {
    padding: 10px 14px;
  }

  .brand-name {
    font-size: 1.02rem;
  }

  .brand-bar nav a {
    padding: 5px 10px;
    font-size: 0.82rem;
  }

  body > nav[aria-label="面包屑导航"] {
    padding: 10px 14px 0;
  }

  main {
    padding: 16px 14px 44px;
    gap: 18px;
  }

  main > section {
    border-radius: var(--radius);
    padding: 18px 16px;
  }

  main > nav[aria-label="页内锚点导航"] ul {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  #contact address ul,
  #sitemap ul,
  #links ul {
    grid-template-columns: 1fr;
  }

  #faq summary {
    padding: 13px 46px 13px 14px;
    font-size: 0.95rem;
  }

  #articles article {
    padding: 14px 16px;
  }

  footer[role="contentinfo"] {
    padding: 32px 14px 20px;
  }
}

@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"],
  main > nav[aria-label="页内锚点导航"],
  #sitemap,
  #links,
  footer[role="contentinfo"] ul {
    display: none;
  }

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

  main > section {
    box-shadow: none;
    border-color: #ccc;
    page-break-inside: avoid;
  }
}