@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --red: #ff0000;
  --vio: #8b00ff;
  --ink: #261717;
  --txt: #f8f1f1;
  --dim: #efdcdd;
  --glass: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.22);
  --r: 28px;
  --head: 112px;
}

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

html {
  background: var(--ink);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: transparent;
  color: var(--txt);
  font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', 'Noto Sans SC', sans-serif;
  font-size: 17px;
  line-height: 1.72;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(58vw 58vw at 6% -10%, rgba(255, 0, 0, 0.55), transparent 62%),
    radial-gradient(54vw 54vw at 98% 4%, rgba(139, 0, 255, 0.58), transparent 60%),
    radial-gradient(86vw 70vw at 44% 110%, rgba(139, 0, 255, 0.34), transparent 66%),
    linear-gradient(160deg, #2f1c1c, #261717 55%, #1b1111);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, 0.25));
  mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, 0.25));
}

h1,
h2,
h3,
h4 {
  font-family: 'Poppins', 'Open Sans', system-ui, sans-serif;
  font-weight: 600;
}

a {
  color: inherit;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* ---------- 顶栏 ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: 8px;
  background: rgba(30, 18, 18, 0.52);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding-right: 8px;
  color: #fff;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.brand::before {
  content: "";
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--vio));
  box-shadow: 0 0 16px rgba(255, 0, 0, 0.75);
}

.pill-contact {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 14.5px;
  text-decoration: none;
}

.pill-contact:hover {
  background: rgba(255, 255, 255, 0.22);
}

.pill-nav {
  display: flex;
  gap: 8px;
  padding: 0 16px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.pill-nav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #f3e6e6;
  font-size: 14.5px;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.pill-nav a:hover {
  background: rgba(255, 0, 0, 0.5);
  color: #fff;
  transform: translateY(-1px);
}

.pill-nav a:first-child {
  border-color: rgba(255, 255, 255, 0.35);
  background: linear-gradient(120deg, rgba(255, 0, 0, 0.78), rgba(139, 0, 255, 0.7));
  color: #fff;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: 44px 20px 68px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(140deg, rgba(255, 0, 0, 0.4), rgba(139, 0, 255, 0.42));
}

.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-bg img.on {
  opacity: 0.55;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(96deg, rgba(20, 12, 12, 0.94) 6%, rgba(30, 18, 18, 0.72) 48%, rgba(74, 10, 92, 0.44) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero h1 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(2.05rem, 8.6vw, 4.1rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero-desc {
  max-width: 46ch;
  margin: 0 0 26px;
  color: var(--dim);
  font-size: clamp(1rem, 2.7vw, 1.14rem);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn-solid {
  border-color: rgba(255, 255, 255, 0.4);
  background: linear-gradient(120deg, var(--red), var(--vio));
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.24);
}

/* ---------- 正文区 ---------- */
.content {
  display: grid;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 16px 64px;
}

.side {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.side h2 {
  margin: 0 0 12px;
  color: #f3cfd0;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.side h2 span {
  display: inline-block;
}

.side ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.side a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #f2e5e6;
  font-size: 14.5px;
  text-decoration: none;
}

.side a:hover {
  background: rgba(255, 0, 0, 0.42);
  color: #fff;
}

.prose {
  min-width: 0;
}

.prose > div {
  position: relative;
  margin: 0 0 20px;
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  scroll-margin-top: calc(var(--head) + 16px);
}

.prose > div::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r);
  pointer-events: none;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.14), transparent 42%);
}

.prose > div:last-child {
  margin-bottom: 0;
}

.prose h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(1.28rem, 5vw, 1.72rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.prose h2 span {
  display: inline-block;
  padding-bottom: 6px;
  padding-right: 4px;
  background-image: linear-gradient(90deg, var(--red), var(--vio));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 3px;
}

.prose h3 {
  margin: 20px 0 10px;
  color: #fff;
  font-size: clamp(1.08rem, 4vw, 1.25rem);
  line-height: 1.4;
}

.prose h3 span {
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 2px solid rgba(255, 0, 0, 0.7);
}

.prose p {
  margin: 0 0 14px;
  color: #f0e3e4;
}

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

.prose a {
  color: #ff9a9a;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: #fff;
}

.prose strong {
  color: #fff;
}

.prose ul,
.prose ol {
  margin: 0 0 14px;
  padding-left: 1.15em;
}

.prose li {
  margin: 0 0 8px;
}

.prose li::marker {
  color: #ff8f8f;
}

.prose blockquote {
  margin: 0 0 14px;
  padding: 12px 16px;
  border-left: 3px solid var(--vio);
  border-radius: 0 16px 16px 0;
  background: rgba(139, 0, 255, 0.16);
}

.prose img {
  margin: 6px 0 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.prose hr {
  height: 1px;
  margin: 22px 0;
  border: 0;
  background: var(--line);
}

.prose table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 15.5px;
}

.prose th,
.prose td {
  padding: 8px 12px;
  border: 1px solid var(--line);
  text-align: left;
}

.prose th {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* ---------- 页脚 ---------- */
.site-foot {
  display: grid;
  gap: 26px;
  margin-top: 26px;
  padding: 38px 18px 26px;
  border-top: 1px solid var(--line);
  background: rgba(18, 11, 11, 0.6);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.site-foot h2 {
  margin: 0 0 10px;
  color: #e7bfc2;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.site-foot h2 span {
  display: inline-block;
}

.f-brand h2 {
  margin: 0;
  padding: 0;
  background: linear-gradient(120deg, #fff, rgba(255, 140, 140, 0.9) 45%, #b26eff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(1.9rem, 8vw, 3.1rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.f-links dl {
  margin: 0;
}

.f-links dt,
.f-links dd {
  margin: 0;
}

.f-links dt a,
.f-links dd a,
.f-ul a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #efdfe0;
  font-size: 14.5px;
  text-decoration: none;
}

.f-links dt a:hover,
.f-links dd a:hover,
.f-ul a:hover {
  color: #fff;
  text-decoration: underline;
}

.f-ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.f-bottom {
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.18);
  text-align: center;
}

.f-bottom p {
  margin: 0 0 8px;
  color: #cbb7b9;
  font-size: 14px;
}

.to-top {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 14px;
  text-decoration: none;
}

.to-top:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ---------- 动效 ---------- */
.rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.rv.in {
  opacity: 1;
  transform: none;
}

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

  .rv,
  .hero-bg img,
  .pill-nav a {
    transition: none;
  }
}

/* ---------- 断点 ---------- */
@media (min-width: 640px) {
  .hero {
    padding: 56px 34px 84px;
  }

  .content {
    padding: 54px 24px 74px;
  }

  .prose > div {
    padding: 30px 28px;
  }

  .pill-nav,
  .brand-row {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (min-width: 900px) {
  .content {
    grid-template-columns: 252px minmax(0, 1fr);
    align-items: start;
    gap: 34px;
    padding-left: 28px;
    padding-right: 28px;
  }

  .side {
    position: sticky;
    top: calc(var(--head) + 14px);
  }

  .side ul {
    flex-direction: column;
    flex-wrap: nowrap;
  }
}

@media (min-width: 860px) {
  .site-foot {
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 30px;
    padding: 54px 34px 28px;
  }

  .f-bottom {
    grid-column: 1 / -1;
  }
}

button[aria-expanded]{min-width:44px;min-height:44px}
