:root {
  --primary: #FFB6C1;
  --primary-dark: #FF8FA3;
  --primary-light: #FFD6E0;
  --secondary: #A8D8EA;
  --secondary-light: #D4EEF7;
  --accent: #FFE5B4;
  --accent-warm: #FFCF8B;
  --bg: #FFF9FB;
  --bg-alt: #FFF0F5;
  --card-bg: rgba(255, 255, 255, 0.75);
  --card-bg-solid: #FFFFFF;
  --text: #3D2C35;
  --text-secondary: #7A5C68;
  --text-muted: #A88B98;
  --border: rgba(255, 182, 193, 0.3);
  --shadow: 0 4px 20px rgba(255, 143, 163, 0.12);
  --shadow-hover: 0 8px 32px rgba(255, 143, 163, 0.22);
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-shadow: 0 8px 32px rgba(255, 143, 163, 0.1);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #FF9BB0;
    --primary-dark: #FF7A96;
    --primary-light: #5C3A45;
    --secondary: #7EC8E3;
    --secondary-light: #2A4A5A;
    --accent: #FFCF8B;
    --accent-warm: #E6B060;
    --bg: #1A1218;
    --bg-alt: #221820;
    --card-bg: rgba(45, 30, 40, 0.75);
    --card-bg-solid: #2D1E28;
    --text: #F0E6EA;
    --text-secondary: #C9A8B5;
    --text-muted: #8A6B78;
    --border: rgba(255, 155, 176, 0.2);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 32px rgba(255, 155, 176, 0.15);
    --glass-bg: rgba(45, 30, 40, 0.6);
    --glass-border: rgba(255, 155, 176, 0.15);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  }
}

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

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

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255, 182, 193, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(168, 216, 234, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

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

a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

ul,
ol {
  list-style: none;
}

/* ========== HEADER ========== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: background var(--transition), box-shadow var(--transition);
}

header nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

header nav > div a {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary), var(--primary));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s ease infinite;
  white-space: nowrap;
}

header nav > div a:hover {
  opacity: 1;
  filter: brightness(1.1);
}

header nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

header nav ul li a {
  display: block;
  padding: 6px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 20px;
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
}

header nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
  transition: transform var(--transition);
}

header nav ul li a:hover {
  color: var(--primary-dark);
  background: rgba(255, 182, 193, 0.12);
}

header nav ul li a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

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

/* ========== SECTIONS ========== */
section {
  background: var(--card-bg);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition), background var(--transition);
  position: relative;
  overflow: hidden;
}

section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent), var(--primary));
  background-size: 300% 100%;
  animation: gradientShift 8s linear infinite;
  opacity: 0.7;
}

section:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

/* Hero Section - 渐变Banner */
section[aria-labelledby="hero-title"] {
  margin-top: 32px;
  padding: 64px 48px;
  background: linear-gradient(135deg,
    rgba(255, 182, 193, 0.25) 0%,
    rgba(168, 216, 234, 0.2) 30%,
    rgba(255, 229, 180, 0.2) 60%,
    rgba(255, 182, 193, 0.25) 100%);
  background-size: 300% 300%;
  animation: gradientShift 12s ease infinite;
  border: 1px solid rgba(255, 255, 255, 0.5);
  position: relative;
}

section[aria-labelledby="hero-title"]::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 182, 193, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

section[aria-labelledby="hero-title"] h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary), var(--accent-warm));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s ease infinite;
  position: relative;
  z-index: 1;
}

section[aria-labelledby="hero-title"] p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 800px;
  line-height: 1.9;
  position: relative;
  z-index: 1;
}

section[aria-labelledby="hero-title"] p + p {
  margin-top: 14px;
}

/* ========== HEADINGS ========== */
h2 {
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 24px;
  padding-bottom: 12px;
  position: relative;
  letter-spacing: 0.3px;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 4px;
  transition: width var(--transition);
}

section:hover h2::after {
  width: 100px;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 28px 0 12px;
  line-height: 1.5;
  position: relative;
  padding-left: 16px;
}

h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 182, 193, 0.25);
}

h4 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  margin: 20px 0 10px;
  padding: 8px 14px;
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.12), rgba(168, 216, 234, 0.1));
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
  transition: all var(--transition);
}

h4:hover {
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.2), rgba(168, 216, 234, 0.15));
  transform: translateX(4px);
}

/* ========== PARAGRAPHS ========== */
p {
  margin-bottom: 12px;
  color: var(--text-secondary);
  line-height: 1.85;
  font-size: 0.95rem;
}

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

/* ========== ARTICLES ========== */
article {
  background: var(--card-bg-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 16px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

article::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 4px 0 0 4px;
  opacity: 0;
  transition: opacity var(--transition);
}

article:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  border-color: rgba(255, 182, 193, 0.5);
}

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

article h3 {
  margin-top: 0;
  font-size: 1.08rem;
}

article time {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding: 2px 10px;
  background: rgba(255, 182, 193, 0.1);
  border-radius: 12px;
}

article p {
  font-size: 0.92rem;
}

article a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 8px;
  padding: 4px 0;
  color: var(--primary-dark);
}

article a::after {
  content: '→';
  transition: transform var(--transition);
}

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

/* ========== DETAILS / FAQ ========== */
details {
  background: var(--card-bg-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all var(--transition);
}

details:hover {
  border-color: rgba(255, 182, 193, 0.5);
  box-shadow: var(--shadow);
}

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

details summary {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all var(--transition);
  position: relative;
  user-select: none;
}

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

details summary::before {
  content: '+';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  min-width: 26px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  transition: all var(--transition);
  line-height: 1;
}

details[open] summary::before {
  content: '−';
  transform: rotate(180deg);
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
}

details summary:hover {
  background: rgba(255, 182, 193, 0.08);
}

details > p {
  padding: 0 24px 20px 62px;
  font-size: 0.9rem;
  animation: fadeInUp 0.3s ease;
}

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

/* ========== SITEMAP / LINKS LISTS ========== */
#sitemap ul,
#links ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

#sitemap ul li a,
#links ul li a {
  display: block;
  padding: 12px 18px;
  background: var(--card-bg-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

#sitemap ul li a::before,
#links ul li a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  transform: scaleY(0);
  transition: transform var(--transition);
}

#sitemap ul li a:hover,
#links ul li a:hover {
  color: var(--primary-dark);
  border-color: rgba(255, 182, 193, 0.5);
  box-shadow: var(--shadow);
  transform: translateX(4px);
  background: var(--card-bg);
}

#sitemap ul li a:hover::before,
#links ul li a:hover::before {
  transform: scaleY(1);
}

/* ========== CONTACT INFO ========== */
#contact p {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.92rem;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

#contact p:last-of-type {
  border-bottom: none;
}

#contact a {
  font-weight: 600;
}

/* ========== FOOTER ========== */
footer {
  background: linear-gradient(135deg,
    rgba(255, 182, 193, 0.15) 0%,
    rgba(168, 216, 234, 0.12) 50%,
    rgba(255, 229, 180, 0.12) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--glass-border);
  padding: 36px 24px;
  text-align: center;
  margin-top: 20px;
}

footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.7;
}

footer a {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 6px;
  transition: all var(--transition);
}

footer a:hover {
  color: var(--primary-dark);
  background: rgba(255, 182, 193, 0.12);
}

/* ========== SCROLL ANIMATIONS ========== */
section,
article,
details {
  opacity: 0;
  transform: translateY(24px);
  animation: scrollReveal 0.6s ease forwards;
}

section:nth-child(1) { animation-delay: 0.05s; }
section:nth-child(2) { animation-delay: 0.1s; }
section:nth-child(3) { animation-delay: 0.15s; }
section:nth-child(4) { animation-delay: 0.2s; }
section:nth-child(5) { animation-delay: 0.25s; }
section:nth-child(6) { animation-delay: 0.3s; }
section:nth-child(7) { animation-delay: 0.35s; }
section:nth-child(8) { animation-delay: 0.4s; }
section:nth-child(9) { animation-delay: 0.45s; }
section:nth-child(10) { animation-delay: 0.5s; }
section:nth-child(11) { animation-delay: 0.55s; }
section:nth-child(12) { animation-delay: 0.6s; }
section:nth-child(13) { animation-delay: 0.65s; }
section:nth-child(14) { animation-delay: 0.7s; }
section:nth-child(15) { animation-delay: 0.75s; }
section:nth-child(16) { animation-delay: 0.8s; }
section:nth-child(17) { animation-delay: 0.85s; }
section:nth-child(18) { animation-delay: 0.9s; }

@keyframes scrollReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ========== SELECTION ========== */
::selection {
  background: rgba(255, 182, 193, 0.35);
  color: var(--text);
}

::-moz-selection {
  background: rgba(255, 182, 193, 0.35);
  color: var(--text);
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-alt);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 8px;
  border: 2px solid var(--bg-alt);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--primary-dark), var(--secondary));
}

/* ========== RESPONSIVE - TABLET ========== */
@media (max-width: 900px) {
  header nav {
    height: auto;
    padding: 12px 20px;
    flex-wrap: wrap;
    gap: 8px;
  }

  header nav ul {
    gap: 2px;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

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

  header nav ul li a {
    font-size: 0.8rem;
    padding: 5px 10px;
  }

  main {
    padding: 0 16px 40px;
    gap: 28px;
  }

  section {
    padding: 28px 22px;
    border-radius: var(--radius);
  }

  section[aria-labelledby="hero-title"] {
    padding: 40px 28px;
  }

  section[aria-labelledby="hero-title"] h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1.05rem;
  }

  article {
    padding: 20px 22px;
  }

  details summary {
    padding: 14px 18px;
    font-size: 0.9rem;
  }

  details > p {
    padding: 0 18px 16px 52px;
  }

  #sitemap ul,
  #links ul {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

/* ========== RESPONSIVE - MOBILE ========== */
@media (max-width: 600px) {
  html {
    scroll-padding-top: 60px;
  }

  header nav {
    padding: 10px 14px;
  }

  header nav > div a {
    font-size: 1.15rem;
  }

  header nav ul li a {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 14px;
  }

  main {
    padding: 0 12px 32px;
    gap: 20px;
  }

  section {
    padding: 22px 16px;
    border-radius: var(--radius-sm);
  }

  section::before {
    height: 2px;
  }

  section[aria-labelledby="hero-title"] {
    padding: 32px 18px;
    margin-top: 20px;
  }

  section[aria-labelledby="hero-title"] h1 {
    font-size: 1.3rem;
    margin-bottom: 14px;
  }

  section[aria-labelledby="hero-title"] p {
    font-size: 0.92rem;
    line-height: 1.8;
  }

  h2 {
    font-size: 1.12rem;
    margin-bottom: 18px;
    padding-bottom: 10px;
  }

  h2::after {
    width: 40px;
    height: 3px;
  }

  h3 {
    font-size: 0.98rem;
    padding-left: 12px;
    margin: 22px 0 10px;
  }

  h4 {
    font-size: 0.92rem;
    padding: 6px 10px;
  }

  p {
    font-size: 0.88rem;
    line-height: 1.8;
  }

  article {
    padding: 16px 14px;
    border-radius: var(--radius-sm);
  }

  article h3 {
    font-size: 0.95rem;
  }

  article p {
    font-size: 0.85rem;
  }

  details summary {
    padding: 12px 14px;
    font-size: 0.85rem;
    gap: 8px;
  }

  details summary::before {
    width: 22px;
    height: 22px;
    min-width: 22px;
    font-size: 0.85rem;
  }

  details > p {
    padding: 0 14px 14px 44px;
    font-size: 0.84rem;
  }

  #sitemap ul,
  #links ul {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  #sitemap ul li a,
  #links ul li a {
    padding: 10px 12px;
    font-size: 0.82rem;
  }

  #contact p {
    font-size: 0.85rem;
    flex-direction: column;
    gap: 2px;
  }

  footer {
    padding: 24px 14px;
  }

  footer p {
    font-size: 0.78rem;
  }
}

/* ========== RESPONSIVE - SMALL MOBILE ========== */
@media (max-width: 380px) {
  header nav ul li a {
    font-size: 0.7rem;
    padding: 3px 6px;
  }

  section[aria-labelledby="hero-title"] h1 {
    font-size: 1.15rem;
  }

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

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  section,
  article,
  details {
    opacity: 1;
    transform: none;
  }
}

/* ========== PRINT ========== */
@media print {
  header {
    position: static;
    box-shadow: none;
  }

  section {
    box-shadow: none;
    break-inside: avoid;
  }

  details[open] > p,
  details > p {
    display: block;
  }

  footer {
    border-top: 1px solid #ccc;
  }
}