:root {
  --bg: #0d0d18;
  --bg-soft: #14142a;
  --bg-card: rgba(255, 255, 255, 0.045);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --glass: rgba(20, 20, 42, 0.55);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text: #ececf5;
  --text-soft: #a9a9c2;
  --text-dim: #7a7a96;
  --accent: #ff4d6d;
  --accent-2: #7b5cff;
  --accent-3: #22d3ee;
  --gold: #f2c14e;
  --grad-banner: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 35%, #4a1942 70%, #6e1f3d 100%);
  --grad-accent: linear-gradient(135deg, #ff4d6d 0%, #7b5cff 100%);
  --grad-line: linear-gradient(90deg, transparent, rgba(255, 77, 109, 0.6), rgba(123, 92, 255, 0.6), transparent);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.75);
  --shadow-glow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 24px 60px -22px rgba(123, 92, 255, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f5fb;
    --bg-soft: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.72);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --glass: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(26, 26, 46, 0.1);
    --text: #1a1a2e;
    --text-soft: #4a4a68;
    --text-dim: #6f6f8c;
    --grad-banner: linear-gradient(135deg, #1a1a2e 0%, #3b1f63 40%, #7a2348 75%, #a12d4f 100%);
    --shadow: 0 18px 50px -22px rgba(26, 26, 46, 0.28);
    --shadow-glow: 0 0 0 1px rgba(26, 26, 46, 0.05), 0 24px 60px -26px rgba(123, 92, 255, 0.35);
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(123, 92, 255, 0.16), transparent 60%),
    radial-gradient(900px 500px at 5% 0%, rgba(255, 77, 109, 0.12), transparent 55%),
    radial-gradient(1000px 700px at 50% 110%, rgba(34, 211, 238, 0.08), transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover,
a:focus-visible {
  color: var(--accent);
}

::selection {
  background: rgba(255, 77, 109, 0.35);
  color: #fff;
}

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

/* ============ HEADER ============ */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.6);
}

header::after {
  content: "";
  display: block;
  height: 1px;
  background: var(--grad-line);
  opacity: 0.8;
}

.brand-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 24px 10px;
}

.brand-name {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  position: relative;
  padding-right: 4px;
}

.brand-name::after {
  content: "";
  position: absolute;
  inset: auto 0 -2px 0;
  height: 2px;
  background: var(--grad-accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.brand-bar:hover .brand-name::after {
  transform: scaleX(1);
}

.brand-slogan {
  font-size: 0.86rem;
  color: var(--text-soft);
  letter-spacing: 0.06em;
  padding-left: 14px;
  border-left: 1px solid var(--glass-border);
}

nav[aria-label="主导航"] {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 12px;
}

nav[aria-label="主导航"] ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}

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

nav[aria-label="主导航"] li {
  flex: 0 0 auto;
}

nav[aria-label="主导航"] a {
  display: inline-block;
  padding: 7px 14px;
  font-size: 0.86rem;
  color: var(--text-soft);
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all 0.28s var(--ease);
}

nav[aria-label="主导航"] a:hover,
nav[aria-label="主导航"] a:focus-visible {
  color: var(--text);
  background: var(--bg-card-hover);
  border-color: var(--glass-border);
  transform: translateY(-2px);
}

/* ============ MAIN LAYOUT ============ */

main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 34px;
}

section {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 34px 34px 30px;
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s var(--ease);
}

section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--grad-line);
  opacity: 0.45;
  pointer-events: none;
}

section:hover {
  border-color: rgba(123, 92, 255, 0.35);
  box-shadow: var(--shadow-glow);
}

/* ============ BANNER / INTRO ============ */

#intro {
  background: var(--grad-banner);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 64px 40px;
  text-align: left;
  isolation: isolate;
}

#intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 85% 15%, rgba(255, 77, 109, 0.35), transparent 65%),
    radial-gradient(500px 320px at 10% 90%, rgba(34, 211, 238, 0.22), transparent 65%),
    radial-gradient(700px 400px at 50% 0%, rgba(123, 92, 255, 0.3), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

#intro::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 75%);
  z-index: -1;
  pointer-events: none;
}

#intro h1 {
  font-size: clamp(1.55rem, 3.4vw, 2.5rem);
  line-height: 1.32;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin: 0 0 20px;
  color: #ffffff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
  max-width: 22em;
}

#intro p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  line-height: 1.9;
  max-width: 62em;
  margin: 0;
}

#intro:hover {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 30px 80px -30px rgba(255, 77, 109, 0.5);
}

/* ============ HEADINGS ============ */

h2 {
  position: relative;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 0 0 22px;
  padding-bottom: 14px;
  color: var(--text);
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  border-radius: 3px;
  background: var(--grad-accent);
  transition: width 0.5s var(--ease);
}

section:hover > h2::after {
  width: 96px;
}

h3 {
  position: relative;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 26px 0 10px;
  padding-left: 14px;
  color: var(--text);
}

h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 4px;
  height: 1em;
  border-radius: 4px;
  background: var(--grad-accent);
  opacity: 0.85;
}

h4 {
  font-size: 0.98rem;
  font-weight: 700;
  margin: 20px 0 8px;
  color: var(--accent-3);
  letter-spacing: 0.02em;
}

p {
  margin: 0 0 14px;
  color: var(--text-soft);
}

section > p:last-child,
section > h3 + p:last-child {
  margin-bottom: 0;
}

/* ============ LISTS ============ */

ul {
  margin: 0 0 14px;
  padding-left: 0;
  list-style: none;
}

ul li {
  position: relative;
  padding-left: 22px;
  color: var(--text-soft);
  margin-bottom: 8px;
}

ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad-accent);
  box-shadow: 0 0 10px rgba(255, 77, 109, 0.6);
}

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

#sitemap a,
#links a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  border: 1px solid transparent;
  transition: all 0.28s var(--ease);
}

#sitemap a:hover,
#links a:hover {
  color: var(--text);
  background: var(--bg-card-hover);
  border-color: var(--glass-border);
  transform: translateX(4px);
}

/* ============ BLOCKQUOTES (REVIEWS) ============ */

blockquote {
  position: relative;
  margin: 0 0 16px;
  padding: 20px 22px 20px 54px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-left: 3px solid transparent;
  border-image: var(--grad-accent) 1;
  border-radius: var(--radius-md);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

blockquote::before {
  content: "\201C";
  position: absolute;
  left: 16px;
  top: 6px;
  font-size: 2.6rem;
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  opacity: 0.85;
}

blockquote p {
  margin: 0;
  color: var(--text-soft);
  font-style: normal;
}

blockquote:hover {
  transform: translateY(-3px);
  background: var(--bg-card-hover);
  box-shadow: 0 18px 40px -24px rgba(123, 92, 255, 0.6);
}

/* ============ ARTICLES ============ */

article {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-bottom: 16px;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

article::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(400px 120px at 100% 0%, rgba(123, 92, 255, 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

article:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: rgba(123, 92, 255, 0.4);
  box-shadow: 0 22px 50px -26px rgba(123, 92, 255, 0.7);
}

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

article h3 {
  margin-top: 0;
}

article p:first-of-type {
  font-size: 0.82rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

article a {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-3);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: all 0.28s var(--ease);
}

article a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
  letter-spacing: 0.04em;
}

/* ============ FAQ ============ */

#faq h3 {
  cursor: default;
  padding: 14px 16px 14px 30px;
  margin: 0 0 10px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  transition: all 0.32s var(--ease);
}

#faq h3::before {
  left: 14px;
  top: 1.15em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad-accent);
}

#faq h3:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 77, 109, 0.35);
  transform: translateX(4px);
}

#faq p {
  padding: 0 16px 0 30px;
  margin-bottom: 18px;
  font-size: 0.94rem;
}

/* ============ HOWTO ============ */

#howto h4 {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(123, 92, 255, 0.14);
  border: 1px solid rgba(123, 92, 255, 0.3);
  color: var(--accent-3);
  margin-bottom: 6px;
}

#howto p {
  margin-bottom: 12px;
}

/* ============ CONTACT / LEGAL ============ */

#contact p {
  color: var(--text-soft);
}

#contact h3 + p {
  font-weight: 600;
  color: var(--text);
}

#legal h2 {
  margin-top: 30px;
}

#legal h2:first-child {
  margin-top: 0;
}

#legal p {
  font-size: 0.94rem;
  line-height: 1.9;
}

#meta-info p {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 6px;
}

#meta-info p:last-child {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--glass-border);
  color: var(--gold);
  font-weight: 600;
}

/* ============ FOOTER ============ */

footer {
  position: relative;
  padding: 40px 24px 48px;
  text-align: center;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-top: 1px solid var(--glass-border);
}

footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--grad-line);
}

footer p {
  max-width: 900px;
  margin: 0 auto 8px;
  font-size: 0.86rem;
  color: var(--text-dim);
  line-height: 1.9;
}

footer p:first-child {
  color: var(--text-soft);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ============ SCROLL REVEAL ANIMATION ============ */

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

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

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

main > section {
  animation: revealUp 0.8s var(--ease) both;
  animation-timeline: view();
  animation-range: entry 0% cover 26%;
}

@supports not (animation-timeline: view()) {
  main > section {
    animation: fadeIn 0.7s var(--ease) both;
  }
}

#intro {
  animation: revealUp 0.9s var(--ease) both;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 1024px) {
  main {
    padding: 32px 20px 64px;
    gap: 26px;
  }

  section {
    padding: 28px 24px 24px;
  }

  #intro {
    padding: 48px 28px;
  }
}

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

  .brand-bar {
    padding: 14px 16px 8px;
    gap: 8px;
  }

  .brand-name {
    font-size: 1.35rem;
  }

  .brand-slogan {
    font-size: 0.74rem;
    padding-left: 10px;
    flex: 1 1 100%;
    border-left: none;
    padding-left: 0;
    margin-top: 2px;
  }

  nav[aria-label="主导航"] {
    padding: 0 16px 10px;
  }

  nav[aria-label="主导航"] a {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  main {
    padding: 24px 14px 56px;
    gap: 20px;
  }

  section {
    padding: 22px 18px 20px;
    border-radius: var(--radius-md);
  }

  #intro {
    padding: 38px 20px;
    border-radius: var(--radius-md);
  }

  #intro h1 {
    font-size: 1.42rem;
    margin-bottom: 14px;
  }

  #intro p {
    font-size: 0.92rem;
    line-height: 1.85;
  }

  h2 {
    font-size: 1.22rem;
    padding-bottom: 12px;
    margin-bottom: 18px;
  }

  h3 {
    font-size: 1rem;
    margin-top: 22px;
  }

  article {
    padding: 18px 16px;
  }

  blockquote {
    padding: 16px 16px 16px 46px;
  }

  blockquote::before {
    left: 12px;
    font-size: 2.2rem;
  }

  #faq h3 {
    padding: 12px 14px 12px 26px;
  }

  #faq h3::before {
    left: 12px;
  }

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

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

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

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

@media (max-width: 420px) {
  .brand-name {
    font-size: 1.2rem;
  }

  #intro {
    padding: 32px 16px;
  }

  #intro h1 {
    font-size: 1.28rem;
  }

  section {
    padding: 20px 14px 18px;
  }

  ul li {
    padding-left: 18px;
  }
}

/* ============ MOTION PREFERENCES ============ */

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

  main > section {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ============ PRINT ============ */

@media print {
  header,
  footer,
  nav[aria-label="主导航"] {
    display: none;
  }

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

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