:root {
  --brand: #8B1A4A;
  --brand-2: #C2417A;
  --brand-3: #E85A8F;
  --gold: #C9A227;
  --gold-light: #E8CB6B;
  --ink: #222;
  --ink-soft: #444;
  --bg: #fff;
  --bg-soft: #fdf7fa;
  --muted: #f6eef2;
  --line: #e8d5de;
  --card-bg: #fff;
  --header-bg: rgba(255, 255, 255, .72);
  --footer-bg: #2a0d18;
  --shadow-sm: 0 2px 8px rgba(139, 26, 74, .08);
  --shadow-md: 0 8px 28px rgba(139, 26, 74, .14);
  --shadow-lg: 0 16px 48px rgba(139, 26, 74, .2);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --glass: rgba(255, 255, 255, .55);
  --glass-border: rgba(255, 255, 255, .65);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2e6ec;
    --ink-soft: #d9c4ce;
    --bg: #140a10;
    --bg-soft: #1d0f18;
    --muted: #2a1622;
    --line: #3a2030;
    --card-bg: #1f1119;
    --header-bg: rgba(20, 10, 16, .72);
    --footer-bg: #0c0509;
    --glass: rgba(40, 22, 32, .55);
    --glass-border: rgba(255, 255, 255, .12);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .4);
    --shadow-md: 0 8px 28px rgba(0, 0, 0, .5);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, .6);
  }
}

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

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

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
  overflow-x: hidden;
  transition: background .4s var(--ease), color .4s var(--ease);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 8%, rgba(194, 65, 122, .1), transparent 42%),
    radial-gradient(circle at 88% 22%, rgba(201, 162, 39, .08), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(139, 26, 74, .08), transparent 55%);
  pointer-events: none;
}

a {
  color: var(--brand-2);
  text-decoration: none;
  transition: color .25s var(--ease);
}

a:hover {
  color: var(--brand-3);
}

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

::selection {
  background: var(--brand-2);
  color: #fff;
}

/* ===== Header ===== */
header {
  position: sticky;
  top: 0;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
  z-index: 99;
  transition: background .4s var(--ease), border-color .4s var(--ease);
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 20px;
}

.logo {
  font-weight: 800;
  color: var(--brand);
  font-size: 21px;
  letter-spacing: .5px;
  position: relative;
  white-space: nowrap;
  background: linear-gradient(120deg, var(--brand), var(--brand-2) 55%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform .3s var(--ease);
}

.logo::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}

.logo:hover {
  transform: translateY(-1px);
}

.logo:hover::after {
  transform: scaleX(1);
}

.nav ul {
  display: flex;
  gap: 6px;
  list-style: none;
  flex-wrap: wrap;
  margin-left: auto;
}

.nav ul li {
  list-style: none;
}

.nav ul a {
  display: inline-block;
  color: var(--ink-soft);
  font-size: 14.5px;
  padding: 6px 12px;
  border-radius: 999px;
  position: relative;
  transition: color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}

.nav ul a:hover {
  color: var(--brand);
  background: var(--muted);
  transform: translateY(-2px);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  color: #fff;
  padding: 72px 20px 64px;
  background:
    linear-gradient(135deg, #6d1239 0%, #8B1A4A 35%, #C2417A 70%, #E85A8F 100%);
  overflow: hidden;
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
  z-index: -1;
  animation: floatBlob 14s ease-in-out infinite;
}

.hero::before {
  width: 420px;
  height: 420px;
  top: -160px;
  right: -80px;
  background: radial-gradient(circle, rgba(232, 203, 107, .55), transparent 70%);
}

.hero::after {
  width: 360px;
  height: 360px;
  bottom: -180px;
  left: -60px;
  background: radial-gradient(circle, rgba(255, 255, 255, .35), transparent 70%);
  animation-delay: -7s;
}

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

.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  animation: heroRise .8s var(--ease) both;
}

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

.hero h1 {
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.35;
  margin-bottom: 16px;
  letter-spacing: .5px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .18);
}

.hero p {
  max-width: 820px;
  color: rgba(255, 255, 255, .92);
  font-size: 16px;
  line-height: 1.85;
}

.stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.stat {
  padding: 14px 22px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 13.5px;
  color: rgba(255, 255, 255, .85);
  transition: transform .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
  min-width: 120px;
}

.stat:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, .2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
}

.stat b {
  display: block;
  font-size: 28px;
  line-height: 1.2;
  color: var(--gold-light);
  font-weight: 800;
  letter-spacing: .5px;
}

/* ===== Main layout ===== */
main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 80px;
  animation: sectionFade .7s var(--ease) both;
}

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

h2 {
  font-size: clamp(21px, 3vw, 26px);
  color: var(--brand);
  margin-bottom: 20px;
  position: relative;
  padding-left: 16px;
  line-height: 1.4;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 72%;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--brand-2), var(--gold));
}

h3 {
  font-size: 19px;
  margin: 24px 0 10px;
  color: var(--ink);
  line-height: 1.5;
}

h4 {
  font-size: 16.5px;
  margin: 16px 0 8px;
  color: var(--ink-soft);
}

p {
  margin-bottom: 12px;
  color: var(--ink-soft);
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  font-size: 13.5px;
  color: var(--ink-soft);
  padding: 16px 0 0;
  opacity: .85;
}

.breadcrumb a {
  color: var(--ink-soft);
  transition: color .25s var(--ease);
}

.breadcrumb a:hover {
  color: var(--brand-2);
}

/* ===== Grid & Cards ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition:
    transform .4s var(--ease),
    box-shadow .4s var(--ease),
    border-color .4s var(--ease),
    background .4s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(194, 65, 122, .06), transparent 55%, rgba(201, 162, 39, .07));
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-2);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  margin-top: 0;
  font-size: 17.5px;
  color: var(--ink);
  transition: color .3s var(--ease);
}

.card:hover h3 {
  color: var(--brand-2);
}

.card p {
  font-size: 14.5px;
  line-height: 1.75;
  margin-bottom: 6px;
}

/* ===== Tag ===== */
.tag {
  display: inline-block;
  background: linear-gradient(120deg, var(--muted), rgba(194, 65, 122, .12));
  color: var(--brand);
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  transition: transform .3s var(--ease), background .3s var(--ease);
}

.card:hover .tag {
  transform: translateX(3px);
  background: linear-gradient(120deg, rgba(194, 65, 122, .18), rgba(201, 162, 39, .18));
}

.meta {
  font-size: 12.5px;
  color: var(--ink-soft);
  opacity: .7;
  margin-bottom: 8px;
}

/* ===== Lists ===== */
ul.list {
  padding-left: 0;
  margin-bottom: 12px;
  list-style: none;
}

ul.list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  color: var(--ink-soft);
  transition: transform .3s var(--ease), color .3s var(--ease);
}

ul.list li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: .72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-2), var(--gold));
  box-shadow: 0 0 0 3px rgba(194, 65, 122, .12);
  transition: transform .3s var(--ease);
}

ul.list li:hover {
  transform: translateX(4px);
  color: var(--brand);
}

ul.list li:hover::before {
  transform: scale(1.25);
}

/* ===== FAQ ===== */
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  padding: 0 18px;
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
  overflow: hidden;
}

.faq-item:hover {
  border-color: var(--brand-2);
  box-shadow: var(--shadow-md);
}

.faq-item[open] {
  border-color: var(--brand-2);
  box-shadow: var(--shadow-md);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  padding: 16px 0;
  list-style: none;
  position: relative;
  padding-right: 34px;
  transition: color .3s var(--ease);
  user-select: none;
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
  background: var(--muted);
  color: var(--brand);
  font-size: 18px;
  font-weight: 400;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
}

.faq-item[open] summary {
  color: var(--brand-2);
}

.faq-item[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #fff;
}

.faq-item p {
  margin: 0 0 16px;
  padding-top: 4px;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
  font-size: 14.5px;
  animation: faqIn .35s var(--ease);
}

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

/* ===== Table ===== */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 16px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  font-size: 14.5px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  color: var(--ink-soft);
  transition: background .3s var(--ease);
}

th {
  background: linear-gradient(120deg, var(--muted), rgba(194, 65, 122, .08));
  color: var(--brand);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .3px;
}

tr:last-child td {
  border-bottom: none;
}

tbody tr:hover td,
table tr:hover td {
  background: rgba(194, 65, 122, .05);
}

/* ===== Footer ===== */
footer {
  background: var(--footer-bg);
  color: #ddd;
  padding: 52px 20px 24px;
  margin-top: 24px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--gold), var(--brand-2), var(--brand));
  background-size: 200% 100%;
  animation: gradientFlow 6s linear infinite;
}

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

footer .inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
  position: relative;
}

footer h4 {
  color: #fff;
  margin-bottom: 12px;
  font-size: 16px;
  position: relative;
  padding-bottom: 8px;
}

footer h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-2), var(--gold));
}

footer p {
  color: #c9b3bd;
  font-size: 14px;
  line-height: 1.9;
}

footer a {
  color: #e8b8cc;
  transition: color .25s var(--ease), padding-left .25s var(--ease);
  display: inline-block;
}

footer a:hover {
  color: var(--gold-light);
  padding-left: 4px;
}

.copy {
  max-width: 1180px;
  margin: 28px auto 0;
  border-top: 1px solid #4a2531;
  padding-top: 18px;
  font-size: 13px;
  color: #9c8791;
  text-align: center;
  line-height: 1.9;
}

/* ===== Top button ===== */
.top-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .92;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), opacity .3s var(--ease);
}

.top-btn:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: var(--shadow-lg);
  opacity: 1;
}

.top-btn:active {
  transform: translateY(-1px) scale(.98);
}

.top-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ===== Scroll reveal (progressive enhancement) ===== */
@supports (animation-timeline: view()) {
  section {
    animation: sectionFade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;
  }

  .nav ul {
    width: 100%;
    margin-left: 0;
    gap: 4px;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

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

  .nav ul a {
    white-space: nowrap;
    font-size: 14px;
    padding: 5px 10px;
  }

  .hero {
    padding: 52px 16px 48px;
  }

  .stats {
    gap: 14px;
    margin-top: 24px;
  }

  .stat {
    flex: 1 1 calc(50% - 14px);
    min-width: 0;
    padding: 12px 16px;
  }

  .stat b {
    font-size: 24px;
  }

  main {
    padding: 0 16px;
  }

  section {
    padding: 36px 0;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  table {
    font-size: 13.5px;
  }

  th,
  td {
    padding: 10px;
  }

  footer {
    padding: 40px 16px 20px;
  }

  footer .inner {
    gap: 22px;
  }

  .top-btn {
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
  }
}

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

  .logo {
    font-size: 19px;
  }

  .hero h1 {
    font-size: 22px;
  }

  .hero p {
    font-size: 14.5px;
  }

  .stat {
    flex: 1 1 100%;
  }

  .card {
    padding: 16px;
  }

  .faq-item {
    padding: 0 14px;
  }
}

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

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

/* ===== Print ===== */
@media print {
  header,
  .hero::before,
  .hero::after,
  .top-btn,
  footer::before {
    display: none !important;
  }

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

  .card,
  .faq-item {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}