:root {
  --primary: #E23E57;
  --primary-dark: #B92E45;
  --primary-light: #FF6B7F;
  --accent: #FF9A3C;
  --gradient-start: #E23E57;
  --gradient-mid: #FF6B7F;
  --gradient-end: #FF9A3C;
  --bg: #FFF7F8;
  --bg-alt: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.65);
  --bg-glass-strong: rgba(255, 255, 255, 0.82);
  --text: #2A1B1F;
  --text-soft: #5C4A50;
  --text-muted: #8A767C;
  --border: rgba(226, 62, 87, 0.14);
  --border-strong: rgba(226, 62, 87, 0.28);
  --shadow-sm: 0 2px 10px rgba(226, 62, 87, 0.08);
  --shadow-md: 0 8px 28px rgba(226, 62, 87, 0.12);
  --shadow-lg: 0 18px 50px rgba(226, 62, 87, 0.18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --header-h: 72px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14090D;
    --bg-alt: #1D1015;
    --bg-glass: rgba(35, 20, 26, 0.62);
    --bg-glass-strong: rgba(35, 20, 26, 0.85);
    --text: #FBEDF0;
    --text-soft: #D9C2C8;
    --text-muted: #A88F96;
    --border: rgba(255, 107, 127, 0.16);
    --border-strong: rgba(255, 107, 127, 0.34);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.55);
  }
}

*,
*::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: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(255, 154, 60, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(226, 62, 87, 0.10), transparent 55%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

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

h1 {
  font-size: clamp(1.6rem, 4.2vw, 2.6rem);
  margin: 0 0 0.6em;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  margin: 0 0 0.7em;
  position: relative;
  padding-left: 18px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--gradient-start), var(--gradient-end));
}

h3 {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  margin: 1.6em 0 0.5em;
  color: var(--primary-dark);
}

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

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

li {
  margin-bottom: 0.4em;
}

::selection {
  background: rgba(226, 62, 87, 0.22);
  color: var(--text);
}

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

/* ============ Header ============ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--bg-glass-strong);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--maxw);
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--text);
  font-weight: 800;
}

.logo svg {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: transform 0.5s var(--ease), box-shadow 0.4s var(--ease);
  box-shadow: 0 4px 14px rgba(226, 62, 87, 0.35);
}

.logo:hover svg {
  transform: rotate(360deg) scale(1.06);
  box-shadow: 0 6px 20px rgba(226, 62, 87, 0.5);
}

.logo-text {
  font-size: 1.25rem;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

nav[aria-label="主导航"] {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-list li {
  margin: 0;
}

.nav-list a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-soft);
  border-radius: 999px;
  position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--primary);
  background: rgba(226, 62, 87, 0.08);
  transform: translateY(-2px);
}

.nav-list a:hover::after {
  width: 60%;
}

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

section {
  margin: 0 0 36px;
  padding: 36px clamp(20px, 4vw, 44px);
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease),
    border-color 0.4s var(--ease);
  animation: fadeUp 0.7s var(--ease) both;
}

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

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

@supports (animation-timeline: view()) {
  section {
    animation: fadeUp 0.01s linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 22%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  section,
  section:hover,
  .logo svg,
  .nav-list a {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* ============ Hero ============ */
#hero {
  position: relative;
  margin-top: 28px;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 56px);
  background:
    linear-gradient(135deg, rgba(226, 62, 87, 0.92) 0%, rgba(255, 107, 127, 0.9) 48%, rgba(255, 154, 60, 0.9) 100%);
  border: none;
  border-radius: var(--radius-xl);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(255, 255, 255, 0.28), transparent 60%),
    radial-gradient(500px 280px at 0% 100%, rgba(255, 255, 255, 0.18), transparent 60%);
  pointer-events: none;
}

#hero::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  right: -110px;
  bottom: -140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(6px);
  pointer-events: none;
  animation: floatBlob 9s ease-in-out infinite;
}

@keyframes floatBlob {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-24px) scale(1.06); }
}

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

#hero h1 {
  color: #fff;
  text-shadow: 0 2px 18px rgba(120, 20, 40, 0.35);
  max-width: 20em;
}

#hero p {
  color: rgba(255, 255, 255, 0.94);
  max-width: 62em;
  text-shadow: 0 1px 10px rgba(120, 20, 40, 0.22);
}

#hero .hero-lead {
  font-size: clamp(1rem, 1.6vw, 1.08rem);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 999px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease), color 0.3s var(--ease);
  will-change: transform;
}

.btn-primary {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 10px 26px rgba(120, 20, 40, 0.28);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 34px rgba(120, 20, 40, 0.36);
  color: var(--primary-dark);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 30px rgba(120, 20, 40, 0.28);
}

/* ============ Breadcrumb ============ */
#breadcrumb {
  margin: 0 0 28px;
  padding: 12px 22px;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

#breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

#breadcrumb li {
  margin: 0;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
}

#breadcrumb li + li::before {
  content: "›";
  margin-right: 8px;
  color: var(--text-muted);
  opacity: 0.7;
}

#breadcrumb a {
  color: var(--primary);
  font-weight: 600;
}

#breadcrumb a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

#breadcrumb [aria-current="page"] {
  color: var(--text-soft);
  font-weight: 600;
}

/* ============ Articles ============ */
#articles article {
  position: relative;
  margin: 0 0 18px;
  padding: 22px 24px;
  background: var(--bg-alt);
  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;
}

#articles article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gradient-start), var(--gradient-end));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}

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

#articles article:hover::before {
  transform: scaleY(1);
}

#articles article h3 {
  margin-top: 0;
  color: var(--text);
  transition: color 0.3s var(--ease);
}

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

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(226, 62, 87, 0.08);
  color: var(--primary);
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

#articles article a:hover {
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
  color: #fff;
  transform: translateX(3px);
  box-shadow: 0 6px 18px rgba(226, 62, 87, 0.3);
}

#articles article a:hover::after {
  transform: translateX(3px);
}

/* ============ FAQ ============ */
#faq h3 {
  padding: 14px 18px;
  margin: 0 0 6px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--text);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#faq h3:hover {
  background: rgba(226, 62, 87, 0.06);
  border-left-color: var(--accent);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

#faq p {
  margin: 0 0 18px;
  padding: 0 18px;
  font-size: 0.96rem;
}

/* ============ Sitemap / Links ============ */
#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

#sitemap li,
#links li {
  margin: 0;
}

#sitemap a,
#links a {
  display: block;
  padding: 11px 16px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: color 0.3s var(--ease), background 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

#sitemap a:hover,
#links a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(226, 62, 87, 0.28);
}

/* ============ Contact ============ */
#contact p {
  font-size: 0.98rem;
}

#contact h3 {
  margin-top: 1.4em;
}

/* ============ Footer ============ */
#site-footer {
  background: linear-gradient(160deg, #2A1B1F 0%, #3D1F29 55%, #4A2130 100%);
  color: rgba(255, 255, 255, 0.82);
  padding: 48px 20px 56px;
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--gradient-start), var(--gradient-end)) 1;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
}

#site-footer p {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  line-height: 1.8;
}

#site-footer p:first-child {
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

#site-footer p:last-child {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

#site-footer a {
  color: var(--primary-light);
  font-weight: 600;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

#site-footer a:hover {
  color: #fff;
  background: rgba(255, 107, 127, 0.2);
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  :root {
    --header-h: 64px;
  }

  .header-inner {
    padding: 0 16px;
  }

  .logo-text {
    font-size: 1.1rem;
  }

  .nav-list {
    gap: 2px;
  }

  .nav-list a {
    padding: 6px 10px;
    font-size: 0.85rem;
  }
}

@media (max-width: 720px) {
  #site-header {
    height: auto;
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 10px 16px;
    gap: 8px;
  }

  nav[aria-label="主导航"] {
    flex-basis: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  nav[aria-label="主导航"]::-webkit-scrollbar {
    display: none;
  }

  .nav-list {
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-right: 8px;
  }

  .nav-list a {
    white-space: nowrap;
    padding: 7px 12px;
  }

  main {
    padding: 0 14px 56px;
  }

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

  #hero {
    margin-top: 16px;
    padding: 34px 22px;
    border-radius: var(--radius-lg);
  }

  #hero h1 {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
  }

  .hero-actions {
    gap: 10px;
  }

  .btn-primary,
  .btn-secondary {
    flex: 1 1 auto;
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  h2 {
    padding-left: 14px;
  }

  h2::before {
    width: 5px;
  }

  #breadcrumb {
    padding: 10px 16px;
    margin-bottom: 20px;
  }

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

  #faq h3 {
    padding: 12px 14px;
    font-size: 0.95rem;
  }

  #faq p {
    padding: 0 14px;
    font-size: 0.92rem;
  }

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

  #site-footer {
    padding: 36px 16px 44px;
  }
}

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

  .logo-text {
    font-size: 1rem;
  }

  .btn-primary,
  .btn-secondary {
    flex-basis: 100%;
  }
}

@media (hover: none) {
  section:hover,
  #articles article:hover,
  #faq h3:hover,
  #sitemap a:hover,
  #links a:hover {
    transform: none;
  }
}
</style>