:root {
  --bg: #f7f2f3;
  --bg-deep: #1c1216;
  --brand: #6e2e3a;
  --rose: #c45c6a;
  --rose-deep: #9e3d4d;
  --text: #2a2224;
  --muted: #a8989c;
  --secondary: #7a656a;
  --line: rgba(110, 46, 58, 0.1);
  --card: #ffffff;
  --max: 1120px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --display: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 242, 243, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.logo-mark {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--brand);
}

.logo-sub {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--secondary);
  transition: background 0.2s, color 0.2s;
}

.nav a:hover,
.nav a.is-active {
  color: var(--brand);
  background: rgba(196, 92, 106, 0.1);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(196, 92, 106, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(110, 46, 58, 0.18), transparent 50%),
    linear-gradient(160deg, #2a181c 0%, #1c1216 48%, #3a2228 100%);
  color: #fff;
  min-height: 72vh;
  display: flex;
  align-items: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.35;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 96px 0 88px;
}

.hero-brand {
  font-family: var(--display);
  font-size: clamp(56px, 8vw, 88px);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero-slogan {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 18px;
}

.hero-desc {
  max-width: 520px;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s, background 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #c45c6a, #9e3d4d);
}

.btn-ghost {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-muted {
  color: var(--rose);
  background: #f8eef0;
  cursor: default;
}

.btn-muted:hover {
  transform: none;
}

/* Sections */
.section {
  padding: 88px 0;
}

.section-alt {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 40px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.section-desc {
  max-width: 640px;
  font-size: 16px;
  color: var(--secondary);
  line-height: 1.75;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 26px;
}

.section-alt .feature-card {
  background: var(--bg);
}

.feature-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--rose);
  background: rgba(196, 92, 106, 0.12);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 20px;
  color: var(--brand);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 15px;
  color: var(--secondary);
  line-height: 1.75;
}

.notice-box {
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: 16px;
  border: 1px solid rgba(196, 92, 106, 0.25);
  background: rgba(196, 92, 106, 0.06);
  color: var(--brand);
  font-size: 15px;
  line-height: 1.7;
}

.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.download-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

/* Legal pages */
.page-banner {
  background: linear-gradient(135deg, #2a181c, #6e2e3a);
  color: #fff;
  padding: 56px 0 48px;
}

.page-banner h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.page-banner .meta {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.doc-panel {
  margin: -28px auto 64px;
  position: relative;
  z-index: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px 44px;
  box-shadow: 0 12px 40px rgba(42, 24, 28, 0.06);
}

.doc-panel h2,
.doc-panel h3 {
  font-size: 18px;
  color: var(--brand);
  margin: 28px 0 12px;
}

.doc-panel h2:first-child,
.doc-panel h3:first-child {
  margin-top: 0;
}

.doc-panel p,
.doc-panel li {
  font-size: 15px;
  color: var(--secondary);
  line-height: 1.85;
  margin-bottom: 10px;
}

.doc-panel ul {
  padding-left: 1.2em;
  margin-bottom: 12px;
}

.doc-panel ol {
  padding-left: 1.2em;
  margin-bottom: 12px;
}

/* Footer */
.site-footer {
  background: var(--bg-deep);
  color: rgba(255, 255, 255, 0.78);
  padding: 48px 0 36px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.footer-brand {
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: 0.2em;
  color: #fff;
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: #fff;
}

.footer-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.8;
}

.footer-meta a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-meta a:hover {
  color: #fff;
}

@media (max-width: 800px) {
  .header-inner {
    height: auto;
    padding: 14px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav {
    flex-wrap: wrap;
  }

  .hero-inner {
    padding: 72px 0 64px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .doc-panel {
    padding: 28px 22px;
    margin-left: 0;
    margin-right: 0;
    width: min(var(--max), calc(100% - 48px));
  }
}
