:root {
  --brand-primary: #f56c6c;
  --brand-primary-dark: #e04c4c;
  --brand-secondary: #ffd166;
  --brand-accent: #06d6a0;
  --brand-purple: #7c5cff;
  --bg-body: #fdf8f6;
  --bg-elevated: #ffffff;
  --bg-soft: #fff1ef;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --bg-glass-border: rgba(255, 255, 255, 0.6);
  --text-main: #2b2430;
  --text-sub: #6b6270;
  --text-muted: #9a929f;
  --border-soft: rgba(43, 36, 48, 0.08);
  --shadow-sm: 0 2px 8px rgba(43, 36, 48, 0.06);
  --shadow-md: 0 8px 24px rgba(43, 36, 48, 0.08);
  --shadow-lg: 0 16px 48px rgba(43, 36, 48, 0.12);
  --shadow-brand: 0 12px 32px rgba(245, 108, 108, 0.28);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --gradient-brand: linear-gradient(135deg, #f56c6c 0%, #ff8f70 45%, #ffd166 100%);
  --gradient-hero: linear-gradient(135deg, #f56c6c 0%, #ff8f70 40%, #ffd166 75%, #06d6a0 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.5));
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --transition-base: 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
  --content-width: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-body: #14111a;
    --bg-elevated: #1e1a26;
    --bg-soft: #241f2e;
    --bg-glass: rgba(30, 26, 38, 0.72);
    --bg-glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #f1ecf5;
    --text-sub: #b9b0c4;
    --text-muted: #8a8196;
    --border-soft: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);
    --shadow-brand: 0 12px 32px rgba(245, 108, 108, 0.25);
    --gradient-glass: linear-gradient(135deg, rgba(40, 34, 50, 0.85), rgba(30, 26, 38, 0.55));
    color-scheme: dark;
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-main);
  background:
    radial-gradient(circle at 12% 0%, rgba(245, 108, 108, 0.12), transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(6, 214, 160, 0.1), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(124, 92, 255, 0.08), transparent 50%),
    var(--bg-body);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-base), color var(--transition-base);
}

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

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

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

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

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

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

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: var(--radius-pill);
  background: var(--gradient-brand);
  box-shadow: 0 0 12px rgba(245, 108, 108, 0.5);
}

h3 {
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  color: var(--text-main);
}

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

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

li {
  margin-bottom: 0.5em;
}

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

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

blockquote {
  margin: 0 0 1em;
  padding: 14px 20px;
  border-left: 4px solid var(--brand-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--bg-soft);
  color: var(--text-sub);
  font-style: italic;
}

blockquote p {
  margin: 0;
}

time {
  font-size: 0.85rem;
  color: var(--text-muted);
}

figure {
  margin: 0 0 1.4em;
}

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

/* ---------- Header / Navigation ---------- */

header[role="banner"] {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 10px clamp(16px, 4vw, 40px);
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--bg-glass-border);
  box-shadow: var(--shadow-sm);
}

header[role="banner"] nav {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

header[role="banner"] nav > a {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-decoration: none;
  white-space: nowrap;
}

header[role="banner"] nav > a:hover {
  text-decoration: none;
  filter: brightness(1.08);
}

header[role="banner"] nav > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
}

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

header[role="banner"] nav > ul a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  color: var(--text-sub);
  text-decoration: none;
  transition: background var(--transition-base), color var(--transition-base), transform var(--transition-base);
}

header[role="banner"] nav > ul a:hover,
header[role="banner"] nav > ul a:focus-visible {
  background: var(--bg-soft);
  color: var(--brand-primary-dark);
  transform: translateY(-1px);
  text-decoration: none;
}

header[role="banner"] form[role="search"] {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 1 300px;
  min-width: 0;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  box-shadow: var(--shadow-sm);
}

header[role="banner"] form[role="search"] label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

header[role="banner"] form[role="search"] input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
}

header[role="banner"] form[role="search"] input[type="search"]::placeholder {
  color: var(--text-muted);
}

header[role="banner"] form[role="search"] button {
  flex: 0 0 auto;
  border: none;
  cursor: pointer;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-brand);
  box-shadow: var(--shadow-brand);
  transition: transform var(--transition-base), box-shadow var(--transition-base), filter var(--transition-base);
}

header[role="banner"] form[role="search"] button:hover {
  transform: translateY(-1px) scale(1.02);
  filter: brightness(1.05);
}

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

/* ---------- Main Layout ---------- */

main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: clamp(20px, 4vw, 40px) clamp(16px, 4vw, 32px) 60px;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 34px);
}

main > section {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3.4vw, 38px);
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition-base), transform var(--transition-base), border-color var(--transition-base);
  animation: riseIn 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

main > section:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(245, 108, 108, 0.2);
}

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

/* ---------- Hero ---------- */

section[aria-labelledby="hero-title"] {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--gradient-hero);
  background-size: 200% 200%;
  border: none;
  box-shadow: var(--shadow-brand);
  animation: riseIn 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) both, heroShift 14s ease-in-out infinite;
}

@keyframes heroShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

section[aria-labelledby="hero-title"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.28), transparent 38%),
    radial-gradient(circle at 6% 92%, rgba(255, 255, 255, 0.16), transparent 34%);
  pointer-events: none;
}

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

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

section[aria-labelledby="hero-title"] p {
  color: rgba(255, 255, 255, 0.94);
  max-width: 60em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.12);
}

section[aria-labelledby="hero-title"] figure {
  margin: 1.6em 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

section[aria-labelledby="hero-title"] figure:hover {
  transform: translateY(-4px) scale(1.005);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

section[aria-labelledby="hero-title"] figcaption {
  color: rgba(255, 255, 255, 0.85);
}

section[aria-labelledby="hero-title"] a {
  display: inline-block;
  margin: 4px 8px 0 0;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--brand-primary-dark);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
  text-decoration: none;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

section[aria-labelledby="hero-title"] a:hover,
section[aria-labelledby="hero-title"] a:focus-visible {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

/* ---------- Breadcrumb ---------- */

nav[aria-label="面包屑"] {
  padding: 0 4px;
  animation: riseIn 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

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

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

nav[aria-label="面包屑"] li + li::before {
  content: "/";
  color: var(--text-muted);
  opacity: 0.6;
}

nav[aria-label="面包屑"] a {
  color: var(--text-sub);
}

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

/* ---------- Cards inside sections (articles, news, faq) ---------- */

main > section article {
  padding: clamp(16px, 2.4vw, 24px);
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base), background var(--transition-base);
}

main > section article:last-child {
  margin-bottom: 0;
}

main > section article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(245, 108, 108, 0.24);
}

main > section article h3 {
  margin-bottom: 0.3em;
}

main > section article h3 + p time {
  display: inline-block;
  margin-bottom: 0.6em;
}

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

main > section article a {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  background: rgba(245, 108, 108, 0.1);
  text-decoration: none;
  transition: background var(--transition-base), color var(--transition-base), transform var(--transition-base);
}

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

/* ---------- FAQ details ---------- */

main details {
  margin-bottom: 12px;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  overflow: hidden;
  transition: box-shadow var(--transition-base), border-color var(--transition-base), background var(--transition-base);
}

main details:last-child {
  margin-bottom: 0;
}

main details[open] {
  box-shadow: var(--shadow-md);
  border-color: rgba(245, 108, 108, 0.28);
}

main details summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 16px 48px 16px 20px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
  transition: color var(--transition-base), background var(--transition-base);
  -webkit-tap-highlight-color: transparent;
}

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

main details summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: var(--gradient-brand);
  box-shadow: var(--shadow-brand);
  transition: transform var(--transition-base), background var(--transition-base);
}

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

main details summary:hover {
  color: var(--brand-primary-dark);
  background: rgba(245, 108, 108, 0.06);
}

main details > p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--text-sub);
  animation: fadeSlide 0.35s ease both;
}

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

/* ---------- Contact / lists ---------- */

main > section ul {
  padding-left: 1.2em;
}

main > section ul li {
  padding-left: 2px;
}

/* ---------- Footer ---------- */

footer[role="contentinfo"] {
  margin-top: 20px;
  padding: clamp(28px, 4vw, 48px) clamp(16px, 4vw, 40px);
  text-align: center;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-top: 1px solid var(--bg-glass-border);
  box-shadow: 0 -8px 32px rgba(43, 36, 48, 0.06);
}

footer[role="contentinfo"] p {
  margin: 0 0 8px;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.7;
}

footer[role="contentinfo"] p:nth-child(2) {
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

footer[role="contentinfo"] a {
  color: var(--text-sub);
  font-size: 0.86rem;
}

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

/* ---------- Focus visibility ---------- */

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

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  header[role="banner"] nav {
    gap: 10px 14px;
  }

  header[role="banner"] nav > ul {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  header[role="banner"] nav > ul a {
    white-space: nowrap;
  }

  header[role="banner"] form[role="search"] {
    flex: 1 1 auto;
    max-width: none;
  }
}

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

  header[role="banner"] {
    padding: 8px 14px;
  }

  header[role="banner"] nav {
    gap: 8px 12px;
  }

  header[role="banner"] nav > a {
    font-size: 1.05rem;
  }

  header[role="banner"] nav > ul a {
    padding: 5px 10px;
    font-size: 0.84rem;
  }

  main {
    padding: 16px 12px 44px;
    gap: 16px;
  }

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

  h2 {
    padding-left: 14px;
  }

  h2::before {
    width: 4px;
  }

  section[aria-labelledby="hero-title"] {
    border-radius: var(--radius-md);
  }

  section[aria-labelledby="hero-title"] a {
    display: block;
    width: 100%;
    text-align: center;
    margin: 8px 0 0;
  }

  main details summary {
    padding: 14px 44px 14px 16px;
    font-size: 0.95rem;
  }

  main details > p {
    padding: 0 16px 16px;
  }

  blockquote {
    padding: 12px 16px;
  }

  footer[role="contentinfo"] {
    padding: 26px 16px 34px;
  }
}

@media (max-width: 380px) {
  header[role="banner"] nav > ul {
    gap: 2px;
  }

  header[role="banner"] form[role="search"] button {
    padding: 8px 12px;
    font-size: 0.82rem;
  }
}

/* ---------- Reduced motion ---------- */

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

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

/* ---------- Print ---------- */

@media print {
  header[role="banner"],
  footer[role="contentinfo"],
  nav[aria-label="面包屑"] {
    display: none;
  }

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

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