:root {
  --brand: #c8102e;
  --brand-dark: #9e0b23;
  --brand-light: #ff4d6a;
  --brand-soft: rgba(200, 16, 46, 0.08);
  --accent: #ffb020;
  --accent-soft: rgba(255, 176, 32, 0.14);
  --bg: #f7f5f6;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --surface-glass-strong: rgba(255, 255, 255, 0.88);
  --text: #1f1a1c;
  --text-soft: #4a4247;
  --text-muted: #7a7076;
  --border: rgba(31, 26, 28, 0.1);
  --border-strong: rgba(31, 26, 28, 0.18);
  --shadow-sm: 0 2px 8px rgba(31, 26, 28, 0.06);
  --shadow-md: 0 10px 30px rgba(31, 26, 28, 0.1);
  --shadow-lg: 0 20px 50px rgba(31, 26, 28, 0.14);
  --shadow-brand: 0 14px 36px rgba(200, 16, 46, 0.24);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --maxw: 1180px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #ff4d6a;
    --brand-dark: #c8102e;
    --brand-light: #ff8fa3;
    --brand-soft: rgba(255, 77, 106, 0.14);
    --accent: #ffc453;
    --accent-soft: rgba(255, 196, 83, 0.16);
    --bg: #121014;
    --bg-alt: #1a171c;
    --surface: #1e1a20;
    --surface-glass: rgba(30, 26, 32, 0.66);
    --surface-glass-strong: rgba(30, 26, 32, 0.86);
    --text: #f4eff2;
    --text-soft: #d6ccd2;
    --text-muted: #a498a0;
    --border: rgba(244, 239, 242, 0.1);
    --border-strong: rgba(244, 239, 242, 0.2);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
    --shadow-brand: 0 14px 36px rgba(255, 77, 106, 0.28);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 8% -10%, var(--brand-soft), transparent 60%),
    radial-gradient(1000px 500px at 100% 0%, var(--accent-soft), transparent 55%),
    radial-gradient(900px 700px at 50% 120%, var(--brand-soft), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

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

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

h1 {
  font-size: clamp(1.75rem, 4vw, 2.9rem);
  letter-spacing: -0.02em;
}

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

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 5px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--brand), var(--accent));
}

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

h4 {
  font-size: 1.02rem;
}

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

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

li {
  margin-bottom: 0.5em;
}

li::marker {
  color: var(--brand);
  font-weight: 700;
}

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

blockquote {
  margin: 0 0 1.2em;
  padding: 18px 22px;
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-md);
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

blockquote:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

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

figure {
  margin: 0;
}

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

header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: var(--surface-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);
}

.site-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.site-brand a {
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
  background: linear-gradient(120deg, var(--brand), var(--brand-light) 55%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: filter 0.3s var(--ease);
}

.site-brand a:hover {
  filter: brightness(1.15);
}

.site-brand p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

header nav {
  min-width: 0;
}

header nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

header nav li {
  margin: 0;
}

header nav li::marker {
  content: none;
}

header nav a {
  display: inline-block;
  padding: 7px 13px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

header nav a:hover,
header nav a:focus-visible {
  color: var(--brand);
  background: var(--brand-soft);
  border-color: var(--border);
  transform: translateY(-1px);
}

main {
  display: block;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(20px, 4vw, 40px) clamp(16px, 4vw, 32px) clamp(40px, 6vw, 72px);
}

main > section {
  position: relative;
  margin-bottom: clamp(20px, 3.5vw, 36px);
  padding: clamp(22px, 3.5vw, 40px);
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease),
    border-color 0.45s var(--ease);
}

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

main > section::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), transparent 40%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}

@media (prefers-color-scheme: dark) {
  main > section::after {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 40%);
  }
}

main > section:hover::after {
  opacity: 1;
}

#hero {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 6vw, 72px) clamp(22px, 4vw, 56px);
  border: none;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(255, 255, 255, 0.28), transparent 55%),
    radial-gradient(700px 380px at 92% 8%, rgba(255, 176, 32, 0.4), transparent 60%),
    linear-gradient(135deg, #c8102e 0%, #e01f45 38%, #ff5c78 68%, #ffb020 100%);
  box-shadow: var(--shadow-brand);
  color: #ffffff;
}

#hero::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -10%;
  width: 60%;
  height: 180%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.28), transparent);
  transform: rotate(18deg);
  pointer-events: none;
  animation: heroGlow 14s ease-in-out infinite alternate;
}

#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(circle at 30% 20%, #000 0%, transparent 70%);
  mask-image: radial-gradient(circle at 30% 20%, #000 0%, transparent 70%);
  opacity: 0.55;
}

@keyframes heroGlow {
  from {
    transform: translateX(0) rotate(18deg) scale(1);
    opacity: 0.7;
  }
  to {
    transform: translateX(12%) rotate(18deg) scale(1.08);
    opacity: 1;
  }
}

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

#hero h1 {
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(80, 0, 12, 0.35);
  max-width: 20ch;
}

#hero p {
  color: rgba(255, 255, 255, 0.94);
  max-width: 72ch;
  text-shadow: 0 1px 12px rgba(80, 0, 12, 0.25);
}

#hero figure {
  margin-top: clamp(20px, 3vw, 32px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.32);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 60px rgba(80, 0, 12, 0.35);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

#hero figure:hover {
  transform: translateY(-6px) scale(1.005);
  box-shadow: 0 32px 80px rgba(80, 0, 12, 0.45);
}

#hero figure svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

#hero figcaption {
  margin: 0;
  padding: 12px 18px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.16);
  text-align: left;
}

main > nav[aria-label="页面锚点导航"] {
  padding: clamp(18px, 3vw, 28px);
  margin-bottom: clamp(20px, 3.5vw, 36px);
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

main > nav[aria-label="页面锚点导航"] h2 {
  font-size: 1.05rem;
  margin-bottom: 14px;
  padding-left: 14px;
}

main > nav[aria-label="页面锚点导航"] h2::before {
  width: 4px;
}

main > nav[aria-label="页面锚点导航"] ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

main > nav[aria-label="页面锚点导航"] li {
  margin: 0;
}

main > nav[aria-label="页面锚点导航"] a {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

main > nav[aria-label="页面锚点导航"] a:hover,
main > nav[aria-label="页面锚点导航"] a:focus-visible {
  color: #ffffff;
  background: linear-gradient(120deg, var(--brand), var(--brand-light));
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(200, 16, 46, 0.28);
}

main > section > ul,
main > section > ol {
  padding: 20px 24px 20px 40px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

main > section article {
  position: relative;
  padding: 20px 22px;
  margin-bottom: 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

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

main > section article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--brand), var(--accent));
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

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

main > section article:hover::before {
  opacity: 1;
}

main > section article h3 {
  margin-bottom: 8px;
}

main > section article h3 + p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

main > section article p:last-child a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  border: 1px solid var(--border);
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

main > section article p:last-child a::after {
  content: "→";
  transition: transform 0.25s var(--ease);
}

main > section article p:last-child a:hover {
  color: #ffffff;
  background: linear-gradient(120deg, var(--brand), var(--brand-light));
  transform: translateX(2px);
}

main > section article p:last-child a:hover::after {
  transform: translateX(3px);
}

#faq article {
  padding: 18px 22px;
}

#faq article h3 {
  position: relative;
  padding-left: 28px;
  color: var(--brand);
}

#faq article h3::before {
  content: "Q";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  border-radius: 6px;
  line-height: 1;
}

#howto ol {
  counter-reset: step;
  list-style: none;
  padding-left: 24px;
}

#howto ol li {
  position: relative;
  padding-left: 38px;
  margin-bottom: 12px;
}

#howto ol li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.28);
}

#notice ul {
  list-style: none;
  padding-left: 24px;
}

#notice li {
  position: relative;
  padding-left: 26px;
}

#notice li::before {
  content: "!";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 900;
  color: #1f1a1c;
  background: var(--accent);
  border-radius: 50%;
  line-height: 1;
}

#contact ul,
#company ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px 20px;
  list-style: none;
  padding: 20px 24px;
}

#contact li,
#company li {
  position: relative;
  margin: 0;
  padding: 10px 14px 10px 34px;
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    background-color 0.3s var(--ease);
}

#contact li::before,
#company li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  transform: translateY(-50%);
}

#contact li:hover,
#company li:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--surface-glass-strong);
}

#sitemap ul,
#links ul {
  columns: 2;
  column-gap: 32px;
  list-style: none;
  padding-left: 0;
  background: transparent;
  border: none;
}

#sitemap li,
#links li {
  break-inside: avoid;
  margin-bottom: 6px;
}

#sitemap a,
#links a {
  display: block;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-soft);
  border-left: 2px solid transparent;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

#sitemap a:hover,
#links a:hover {
  color: var(--brand);
  background: var(--brand-soft);
  border-left-color: var(--brand);
  transform: translateX(3px);
}

#team p:last-child {
  margin-top: 1.2em;
  padding-top: 1em;
  border-top: 1px dashed var(--border-strong);
  font-size: 0.86rem;
  color: var(--text-muted);
}

#copyright p,
#privacy p,
#disclaimer p,
#security p {
  max-width: 78ch;
}

footer {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px 40px;
  margin-top: clamp(32px, 5vw, 56px);
  padding: clamp(32px, 5vw, 56px) clamp(20px, 5vw, 56px);
  color: rgba(255, 255, 255, 0.86);
  background:
    radial-gradient(700px 320px at 10% 0%, rgba(255, 77, 106, 0.35), transparent 60%),
    radial-gradient(600px 300px at 95% 100%, rgba(255, 176, 32, 0.22), transparent 60%),
    linear-gradient(135deg, #1a1114 0%, #2a141b 55%, #3a0f1c 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light), var(--accent));
}

footer div {
  min-width: 0;
  flex: 1 1 280px;
}

footer p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  line-height: 1.7;
}

footer div:first-child p:first-child {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.01em;
}

footer div:last-child {
  text-align: right;
}

footer div:last-child p:last-child {
  margin-top: 12px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

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

  header {
    padding: 12px 16px;
  }

  header nav ul {
    gap: 2px;
  }

  header nav a {
    padding: 6px 10px;
    font-size: 0.84rem;
  }

  #sitemap ul,
  #links ul {
    columns: 1;
  }

  footer div:last-child {
    text-align: left;
  }
}

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

  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  header nav {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

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

  header nav ul {
    flex-wrap: nowrap;
    width: max-content;
    padding-bottom: 2px;
  }

  main {
    padding: 16px 12px 40px;
  }

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

  #hero {
    padding: 28px 18px;
    border-radius: var(--radius-lg);
  }

  #hero h1 {
    max-width: none;
  }

  h2 {
    padding-left: 14px;
  }

  h2::before {
    width: 4px;
  }

  main > section > ul,
  main > section > ol {
    padding: 16px 16px 16px 32px;
  }

  main > section article {
    padding: 16px;
  }

  #contact ul,
  #company ul {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  blockquote {
    padding: 14px 16px;
  }

  footer {
    padding: 32px 18px;
    flex-direction: column;
  }

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

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

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

@media (prefers-contrast: more) {
  :root {
    --border: rgba(31, 26, 28, 0.35);
    --border-strong: rgba(31, 26, 28, 0.55);
    --text-soft: #2f282c;
  }
}

@media print {
  header,
  footer,
  main > nav[aria-label="页面锚点导航"] {
    display: none;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

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

  #hero {
    background: #ffffff;
    color: #000000;
    box-shadow: none;
  }

  #hero h1,
  #hero p {
    color: #000000;
    text-shadow: none;
  }
}