:root {
  --primary: #ff6b35;
  --primary-dark: #e85520;
  --primary-light: #ffa94d;
  --primary-soft: #ffd8a8;
  --primary-tint: #fff4ee;
  --accent: #7a3b1a;
  --bg: #fffaf7;
  --bg-alt: #fff4ee;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --text: #2b1d16;
  --text-soft: #5c4a40;
  --text-muted: #8a766b;
  --border: rgba(255, 107, 53, 0.16);
  --border-strong: rgba(255, 107, 53, 0.32);
  --shadow-sm: 0 2px 10px rgba(122, 59, 26, 0.06);
  --shadow-md: 0 8px 28px rgba(122, 59, 26, 0.10);
  --shadow-lg: 0 18px 48px rgba(122, 59, 26, 0.14);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --max-width: 1180px;
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font-sans: "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 {
    --primary: #ff8a5c;
    --primary-dark: #ff6b35;
    --primary-light: #ffb37a;
    --primary-soft: #6b3a22;
    --primary-tint: #2a1a12;
    --accent: #ffd8a8;
    --bg: #17110e;
    --bg-alt: #1f1611;
    --surface: #241a14;
    --surface-glass: rgba(36, 26, 20, 0.68);
    --text: #f7ece5;
    --text-soft: #d6c3b8;
    --text-muted: #a08d82;
    --border: rgba(255, 138, 92, 0.18);
    --border-strong: rgba(255, 138, 92, 0.36);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.32);
    --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.42);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.52);
  }
}

*,
*::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-sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 90% -10%, rgba(255, 169, 77, 0.16), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(255, 107, 53, 0.12), transparent 55%),
    var(--bg);
  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 0.25s var(--ease), opacity 0.25s var(--ease);
}

a:hover {
  color: var(--primary);
}

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

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

h1 { font-size: clamp(1.65rem, 4vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 2.8vw, 1.95rem); font-weight: 750; }
h3 { font-size: clamp(1.08rem, 2vw, 1.3rem); font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }

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

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

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

li {
  margin-bottom: 0.45em;
}

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

blockquote {
  margin: 0 0 1.2em;
  padding: 1.1em 1.3em;
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

blockquote:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

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

blockquote footer {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: normal;
}

hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 2em 0;
}

/* ============ Header ============ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-glass);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), var(--shadow-sm);
}

header > div {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

header > div > a {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease), filter 0.3s var(--ease);
}

header > div > a:hover {
  transform: translateY(-2px) scale(1.02);
  filter: drop-shadow(0 6px 14px rgba(255, 107, 53, 0.35));
}

header > div > a svg {
  border-radius: 8px;
}

header nav {
  flex: 1;
  min-width: 0;
}

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

header nav li {
  margin: 0;
}

header nav a {
  display: inline-block;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

header nav a:hover {
  color: var(--primary-dark);
  background: var(--primary-tint);
  transform: translateY(-1px);
}

/* ============ Main layout ============ */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px 80px;
}

main > section {
  margin-bottom: 40px;
  padding: 32px;
  background: var(--surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  animation: fadeUp 0.6s var(--ease) both;
}

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

main > section:nth-child(2n) {
  background: linear-gradient(160deg, var(--surface-glass), var(--primary-tint));
}

/* Hero */
main > section[aria-labelledby="hero-title"] {
  position: relative;
  overflow: hidden;
  margin-top: 24px;
  padding: clamp(28px, 5vw, 56px);
  background:
    radial-gradient(700px 320px at 85% 0%, rgba(255, 216, 168, 0.55), transparent 65%),
    linear-gradient(135deg, #ff6b35 0%, #ff8a5c 42%, #ffa94d 72%, #ffd8a8 100%);
  border: none;
  color: #fff;
  box-shadow: var(--shadow-lg);
}

main > section[aria-labelledby="hero-title"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.18) 0, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.14) 0, transparent 45%);
  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(122, 59, 26, 0.28);
}

main > section[aria-labelledby="hero-title"] p {
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.02rem;
  max-width: 900px;
}

main > section[aria-labelledby="hero-title"] strong {
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  padding: 0 6px;
  border-radius: 6px;
}

main > section[aria-labelledby="hero-title"] figure {
  margin: 28px 0 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 8px;
}

main > section[aria-labelledby="hero-title"] figcaption {
  margin-top: 10px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}

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

/* Breadcrumb */
main > nav[aria-label="面包屑导航"] {
  margin: 20px 0 4px;
}

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

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

main > nav[aria-label="面包屑导航"] li:not(:last-child)::after {
  content: "/";
  color: var(--text-muted);
  opacity: 0.6;
}

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

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

/* Page anchor nav */
main > nav[aria-label="页内锚点导航"] {
  margin-bottom: 32px;
  padding: 16px 20px;
  background: var(--surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

main > nav[aria-label="页内锚点导航"] ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

main > nav[aria-label="页内锚点导航"] a {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: all 0.25s var(--ease);
}

main > nav[aria-label="页内锚点导航"] a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.32);
}

/* Section headings accent */
main > section > h2 {
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 20px;
}

main > section > h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light), transparent);
}

main > section > h3 {
  margin-top: 1.6em;
  color: var(--text);
}

main > section > h3:first-of-type {
  margin-top: 0.4em;
}

/* ============ Articles / News cards ============ */
article {
  position: relative;
  margin: 0 0 18px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  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;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--primary-light));
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

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

article h3 {
  margin-top: 0;
  font-size: 1.12rem;
  transition: color 0.25s var(--ease);
}

article:hover h3 {
  color: var(--primary-dark);
}

article p {
  font-size: 0.95rem;
  margin-bottom: 0.7em;
}

article p:first-of-type {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.6em;
}

article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-dark);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--primary-tint);
  transition: all 0.25s var(--ease);
}

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

article a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.3);
}

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

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

details:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

details[open] {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 52px 16px 20px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
  position: relative;
  user-select: none;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

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

summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  color: var(--primary-dark);
  background: var(--primary-tint);
  border-radius: 50%;
  transition: transform 0.35s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

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

details[open] summary {
  color: var(--primary-dark);
  border-bottom: 1px solid var(--border);
}

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

details > p {
  margin: 0;
  padding: 16px 20px 20px;
  font-size: 0.95rem;
  animation: fadeIn 0.35s var(--ease);
}

/* ============ Contact list ============ */
#contact ul,
section[aria-labelledby="sitemap-title"] ul,
section[aria-labelledby="links-title"] ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}

#contact ul {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

#contact li {
  margin: 0;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--text-soft);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#contact li:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

section[aria-labelledby="sitemap-title"] ul {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

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

section[aria-labelledby="sitemap-title"] a,
section[aria-labelledby="links-title"] a {
  display: block;
  padding: 8px 14px;
  font-size: 0.9rem;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.25s var(--ease);
}

section[aria-labelledby="sitemap-title"] a:hover,
section[aria-labelledby="links-title"] a:hover {
  color: var(--primary-dark);
  background: var(--primary-tint);
  border-color: var(--border-strong);
  transform: translateX(4px);
}

section[aria-labelledby="links-title"] ul {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ============ Footer ============ */
footer {
  position: relative;
  margin-top: 20px;
  padding: 48px 20px 40px;
  background:
    radial-gradient(800px 300px at 50% 0%, rgba(255, 107, 53, 0.14), transparent 70%),
    var(--bg-alt);
  border-top: 1px solid var(--border);
  text-align: center;
}

footer p {
  margin: 0 0 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

footer nav ul {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

footer nav li {
  margin: 0;
}

footer nav a {
  display: inline-block;
  padding: 7px 16px;
  font-size: 0.86rem;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: all 0.25s var(--ease);
}

footer nav a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.3);
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

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

main > section:nth-of-type(2) { animation-delay: 0.05s; }
main > section:nth-of-type(3) { animation-delay: 0.1s; }
main > section:nth-of-type(4) { animation-delay: 0.15s; }
main > section:nth-of-type(5) { animation-delay: 0.2s; }

/* Scroll-driven reveal where supported */
@supports (animation-timeline: view()) {
  main > section,
  article,
  details,
  blockquote {
    animation-name: fadeUp;
    animation-duration: 0.9s;
    animation-timing-function: var(--ease);
    animation-fill-mode: both;
    animation-timeline: view();
    animation-range: entry 0% cover 22%;
  }
}

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

/* ============ Responsive ============ */
@media (max-width: 960px) {
  header > div {
    gap: 12px;
  }
  header nav ul {
    justify-content: flex-start;
  }
  main > section {
    padding: 26px 22px;
    border-radius: var(--radius-md);
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: auto;
  }

  body {
    font-size: 15px;
    line-height: 1.75;
  }

  header > div {
    padding: 12px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  header nav {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

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

  header nav ul {
    flex-wrap: nowrap;
    gap: 2px;
    padding-bottom: 4px;
  }

  header nav a {
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 6px 11px;
  }

  main {
    padding: 0 14px 56px;
  }

  main > section {
    padding: 22px 18px;
    margin-bottom: 24px;
    border-radius: var(--radius-md);
  }

  main > section[aria-labelledby="hero-title"] {
    padding: 26px 20px;
    margin-top: 16px;
  }

  main > nav[aria-label="页内锚点导航"] {
    padding: 12px 14px;
    margin-bottom: 22px;
  }

  main > nav[aria-label="页内锚点导航"] ul {
    gap: 6px;
  }

  main > nav[aria-label="页内锚点导航"] a {
    font-size: 0.8rem;
    padding: 5px 11px;
  }

  main > section > h2::after {
    width: 44px;
    height: 3px;
  }

  article {
    padding: 18px 16px;
  }

  summary {
    padding: 14px 46px 14px 16px;
    font-size: 0.94rem;
  }

  details > p {
    padding: 14px 16px 18px;
  }

  #contact ul,
  section[aria-labelledby="sitemap-title"] ul,
  section[aria-labelledby="links-title"] ul {
    grid-template-columns: 1fr;
  }

  blockquote {
    padding: 16px;
  }

  footer {
    padding: 36px 16px 32px;
  }
}

@media (max-width: 420px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.24rem; }
  main > section { padding: 18px 14px; }
  article h3 { font-size: 1.02rem; }
}

/* ============ Print ============ */
@media print {
  header, footer, main > nav, details summary::after {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  main > section {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }
  a { color: #000; text-decoration: underline; }
}

/* ============ Forced colors ============ */
@media (forced-colors: active) {
  main > section,
  article,
  details,
  blockquote {
    border: 1px solid CanvasText;
  }
  summary::after {
    border: 1px solid CanvasText;
  }
}