/* ==================== CSS Reset & Design Tokens ==================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f0f2f8;
  --panel: rgba(255,255,255,0.85);
  --panel-strong: #f8f9fc;
  --ink: #1e2030;
  --muted: #636a82;
  --line: rgba(60, 70, 100, 0.12);
  --accent: #6366f1;
  --accent-soft: #e8eaff;
  --success: #2f8f63;
  --success-soft: #e5f5ed;
  --shadow: 0 18px 50px rgba(30, 35, 60, 0.08);
  --brand: #0f1024;
  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

html {
  scroll-behavior: auto;
  font-size: 16px;
  overflow-y: scroll;
  overflow-x: hidden;
  background-color: var(--bg);
}

html, body { min-height: 100%; }

body {
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at 18% 0%, rgba(224, 228, 255, 0.92) 0%, rgba(224, 228, 255, 0) 30%),
    radial-gradient(circle at 88% 12%, rgba(165, 180, 252, 0.34) 0%, rgba(165, 180, 252, 0) 26%),
    radial-gradient(circle at top, #f4f5fa 0%, var(--bg) 58%, #e5e7f0 100%);
  background-color: var(--bg);
  color: var(--ink);
  margin: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ==================== Page Atmosphere Effects ==================== */
.page-atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.page-atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 240, 222, 0.72) 0%, rgba(255, 240, 222, 0) 26%),
    radial-gradient(circle at 84% 18%, rgba(244, 198, 173, 0.22) 0%, rgba(244, 198, 173, 0) 24%),
    radial-gradient(circle at 50% 82%, rgba(255, 248, 240, 0.34) 0%, rgba(255, 248, 240, 0) 28%);
  opacity: 0.95;
}

.page-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(111,103,95,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111,103,95,0.028) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 20%, rgba(0,0,0,0.34) 0%, rgba(0,0,0,0.12) 38%, transparent 76%);
  opacity: 0.85;
}

.page-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.08;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.08' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.95'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ==================== Shell (Container) ==================== */
.shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  max-width: 1180px;
  min-height: 100vh;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 28px 22px 18px;
}

/* ==================== Site Header / Navbar ==================== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0 26px;
}

.brandmark {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--brand);
  text-decoration: none;
}

.brandmark:hover {
  color: var(--brand);
}

.brandmark-beta {
  margin-top: 3px;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(47, 42, 36, 0.54);
  background: rgba(19, 17, 14, 0.05);
  border: 1px solid rgba(19, 17, 14, 0.08);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  font-size: 14px;
}

.site-nav a.active {
  color: var(--ink);
  font-weight: 700;
}

/* ==================== Button System ==================== */
button, .button-link {
  box-sizing: border-box;
  max-width: 100%;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  padding: 11px 18px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-family: var(--font-sans);
  font-size: 15px;
  transition: opacity .2s ease, transform .2s ease;
}

button:hover, .button-link:hover {
  opacity: 0.94;
  transform: translateY(-1px);
  color: #fff;
}

button:disabled, .button-link:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.ghost {
  background: #ebedf5;
  color: var(--ink);
}

.ghost:hover {
  color: var(--ink);
}

.mobile-hide {
  display: inline-flex;
}

/* ==================== Campaign Banner ==================== */
.campaign-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(99,102,241,0.08) 0%, rgba(227,224,255,0.16) 100%);
  border: 1px solid rgba(99,102,241,0.14);
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 28px;
  transition: transform .18s ease, border-color .18s ease;
}

.campaign-banner:hover {
  transform: translateY(-2px);
  border-color: rgba(99,102,241,0.28);
  color: var(--ink);
}

.campaign-banner-kicker {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 4px;
  display: block;
}

.campaign-banner-copy strong {
  font-size: 16px;
  display: block;
  margin-bottom: 2px;
}

.campaign-banner-copy p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.campaign-banner-action {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* ==================== Hero Section ==================== */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: 40px;
  align-items: stretch;
  margin-bottom: 28px;
  padding: 28px 26px 22px;
  border-radius: 40px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.36) 0%, rgba(224,228,255,0.22) 42%, rgba(235,237,248,0.12) 100%);
  border: 1px solid rgba(90, 78, 64, 0.08);
  box-shadow: 0 24px 70px rgba(30, 35, 60, 0.07), inset 0 1px 0 rgba(255,255,255,0.55);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -12% auto auto -8%;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(199,210,254,0.72) 0%, rgba(199,210,254,0.18) 44%, rgba(199,210,254,0) 72%);
  filter: blur(16px);
  pointer-events: none;
  animation: heroFloat 11s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(111,103,95,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111,103,95,0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.34) 0%, rgba(0,0,0,0.14) 48%, transparent 100%);
  opacity: 0.4;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 20px 4px 10px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-copy h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.02;
  margin: 0 0 18px;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 440px;
}

.hero-stats .metric {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.64);
  border: 1px solid rgba(60,70,100,0.08);
}

.hero-stats .metric strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.hero-stats .metric span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.hero-media-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 10px;
}

.hero-media {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(30, 35, 60, 0.12);
}

/* ==================== Marketing Section (Generic) ==================== */
.marketing-section {
  padding: 48px 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 36px;
}

.section-heading .eyebrow {
  display: block;
  margin-bottom: 10px;
}

.section-heading h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 10px;
}

.section-heading .hint {
  font-size: 15px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.hint {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ==================== Card System ==================== */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  color: var(--ink);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(68,53,35,0.08);
  border-color: rgba(99,102,241,0.18);
}

/* ==================== Feature Grid ==================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  padding: 28px 22px;
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--ink);
}

.feature-card .hint {
  line-height: 1.7;
}

/* ==================== Pricing Section ==================== */
.pricing-intro {
  margin-top: -8px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.story-card {
  padding: 24px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.story-card h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* 价格显示区 */
.pricing-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.story-card .price {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 4px 0 0;
  line-height: 1.1;
}

.story-card .price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
}

/* 年付横条（月付视图下显示） */
.yearly-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(243, 228, 219, 0.5);
  border: 1px solid rgba(217, 119, 87, 0.12);
}

.yearly-bar-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

/* 立省标签 */
.save-tag {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  white-space: nowrap;
}

.story-card .hint {
  text-align: left;
  line-height: 1.7;
}

/* ==================== FAQ Section ==================== */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  cursor: pointer;
  padding: 18px 20px;
}

.faq-item strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

.faq-item .hint {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .3s ease, opacity .3s ease, margin .3s ease;
}

.faq-item.open .hint {
  max-height: 200px;
  opacity: 1;
  margin-top: 8px;
}

/* ==================== CTA Section ==================== */
.cta-section {
  padding-top: 24px;
}

.cta-card {
  text-align: center;
  padding: 48px 32px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.6) 0%, rgba(252,244,238,0.5) 100%);
}

.cta-card .eyebrow {
  display: block;
  margin-bottom: 10px;
}

.cta-card h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  color: var(--ink);
}

.cta-card .hint {
  max-width: 420px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.cta-actions {
  justify-content: center;
}

.cta-button {
  padding: 14px 32px;
  font-size: 16px;
}

/* ==================== Footer ==================== */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-top: 40px;
  margin-top: auto;
  border-top: 1px solid var(--line);
}

.site-footer strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand);
  display: block;
  margin-bottom: 6px;
}

.site-footer .hint {
  margin-bottom: 4px;
  font-size: 13px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-contact-button {
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s ease;
  font-family: var(--font-sans);
}

.footer-contact-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ==================== Contact QR Modal ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,16,36,0.42);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
  opacity: 1;
  transition: opacity .25s ease;
}

.modal-backdrop.hidden {
  display: none;
}

.modal-card {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 28px;
  width: min(520px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 70px rgba(30, 35, 60, 0.14);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.modal-head h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.modal-head .hint {
  margin-top: 6px;
}

.modal-close {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(60,70,100,0.06);
  border: none;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .2s ease;
}

.modal-close:hover {
  background: rgba(60,70,100,0.12);
  color: var(--ink);
}

.contact-qr-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-qr-item {
  text-align: center;
}

.contact-qr-item strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--ink);
}

.contact-qr-image {
  width: min(220px, 100%);
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(30, 35, 60, 0.08);
}

/* ==================== Login Page ==================== */
.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.login-page .site-header {
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  padding-left: 22px;
  padding-right: 22px;
}

.login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 22px 60px;
}

.login-card {
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 44px 36px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow);
}

.login-card h1 {
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 8px;
}

.login-subtitle {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 32px;
}

.form-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.form-hint {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--muted);
}

input, textarea, select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  font: inherit;
  font-size: 15px;
  background: rgba(255,255,255,0.84);
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: rgba(99,102,241,0.5);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.12);
}

input::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

.form-row {
  display: flex;
  gap: 10px;
}

.form-row input {
  flex: 1;
}

.btn-code {
  flex-shrink: 0;
  padding: 13px 18px;
  background: rgba(60,70,100,0.06);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s ease;
  font-family: var(--font-sans);
}

.btn-code:hover {
  background: var(--accent-soft);
}

.btn-code:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.form-agreement {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.form-agreement input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  padding: 0;
  border-radius: 6px;
  flex: 0 0 auto;
  accent-color: var(--accent);
}

.form-agreement a {
  color: var(--accent);
}

.login-card .button-link {
  width: 100%;
  padding: 14px;
  font-size: 16px;
}

/* ==================== About Page ==================== */
.about-page {
  min-height: 100vh;
}

.about-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 22px 60px;
}

.about-content h1 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 12px;
  color: var(--ink);
}

.about-intro {
  font-size: 15px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 44px;
  line-height: 1.8;
}

.about-section {
  margin-bottom: 36px;
}

.about-section h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  letter-spacing: -0.02em;
}

.about-section p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

.about-section ul {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}

.about-section li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

.about-section li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ==================== FAQ Page (Full) ==================== */
.faq-page {
  min-height: 100vh;
}

.faq-page .faq-list {
  padding: 0 22px;
  max-width: 800px;
  margin: 0 auto;
}

/* ==================== Gifts Page ==================== */
.gifts-page {
  min-height: 100vh;
}

.gifts-content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 22px 60px;
  text-align: center;
}

.gifts-hero {
  margin-bottom: 48px;
}

.gifts-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  color: var(--ink);
}

.gifts-hero p {
  font-size: 16px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.gifts-price {
  font-size: clamp(36px, 8vw, 52px);
  font-weight: 800;
  color: var(--accent);
  margin: 24px 0 36px;
  letter-spacing: -0.04em;
}

.gifts-price span {
  font-size: 22px;
  font-weight: 500;
}

.gifts-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 860px;
  margin: 0 auto 48px;
}

.gifts-step {
  padding: 24px 20px;
  text-align: center;
}

.gifts-step .step-icon {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99,102,241,0.18) 0%, rgba(30,35,60,0.08) 100%);
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 14px;
}

.gifts-step h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}

.gifts-step p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ==================== Animations ==================== */
@keyframes heroFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.78; }
  50% { transform: translate3d(8px, 14px, 0) scale(1.05); opacity: 1; }
}

@keyframes pulse {
  0%, 100% { transform: translateY(0); opacity: 0.45; }
  50% { transform: translateY(-6px); opacity: 1; }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== Modal body scroll lock ==================== */
body.modal-open {
  overflow: hidden;
}

/* ==================== Responsive ==================== */
@media (max-width: 980px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    grid-template-columns: 1fr 1fr;
    max-width: none;
  }
  .gifts-steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .site-header {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .site-footer {
    gap: 16px;
    padding-top: 22px;
  }
  .mobile-hide {
    display: none;
  }
  .campaign-banner {
    align-items: flex-start;
    flex-direction: column;
  }
  .campaign-banner-action {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .shell {
    padding: 18px 14px 14px;
  }
  .brandmark {
    font-size: 20px;
  }
  .campaign-banner {
    padding: 14px;
    border-radius: 18px;
  }
  .feature-grid,
  .pricing-grid,
  .gifts-steps {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 20px 16px 16px;
    border-radius: 30px;
  }
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .button-link,
  .hero-actions button {
    width: 100%;
  }
  .form-row {
    flex-direction: column;
  }
  .form-row .btn-code {
    width: 100%;
  }
  .contact-qr-shell {
    grid-template-columns: 1fr;
  }
  .contact-qr-image {
    width: min(220px, 100%);
  }
  .modal-backdrop {
    padding: 10px;
    align-items: flex-start;
    overflow-y: auto;
  }
  .modal-card {
    padding: 22px 18px;
    border-radius: 22px;
  }
  .site-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .footer-links {
    justify-content: flex-start;
    gap: 12px 16px;
  }
  .footer-contact-button {
    width: auto;
    align-self: flex-start;
  }
  .login-card {
    padding: 32px 20px;
    border-radius: 22px;
  }
  .card { padding: 16px; }
  .story-card {
    padding: 20px 18px;
  }
  .story-card .price {
    font-size: 36px;
  }
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }
  .site-nav {
    display: none;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    padding: 16px 0 0;
  }
  .site-nav.open {
    display: flex;
  }
  .site-nav a {
    font-size: 16px;
    padding: 8px 0;
  }
}

/* ==================== Dashboard / Bots Page ==================== */
.app-header {
  padding-bottom: 18px;
}

.account-menu {
  position: relative;
  margin-left: auto;
  flex: 0 0 auto;
}

.account-trigger {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  cursor: pointer;
  gap: 8px;
}

.account-trigger .account-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.account-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(99,102,241,0.3) 0%, rgba(30,35,60,0.12) 100%);
  border: 2px solid rgba(60,70,100,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
}

.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  padding: 8px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(30, 35, 60, 0.12);
  z-index: 100;
}

.account-menu.open .account-dropdown {
  display: block;
}

.account-dropdown .account-info {
  display: block;
  padding: 10px 14px 6px;
  text-decoration: none;
  color: inherit;
}

.account-dropdown .account-phone {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.account-dropdown .account-brand {
  font-size: 12px;
  color: #9a9590;
  margin-top: 2px;
}

.account-dropdown .account-divider {
  height: 1px;
  background: var(--line);
  margin: 4px 10px;
}

.account-dropdown .account-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  transition: background .15s ease;
}

.account-dropdown .account-item:hover {
  background: rgba(60,70,100,0.05);
}

.account-dropdown .account-icon {
  font-size: 18px;
  line-height: 1;
  margin-top: 1px;
  flex-shrink: 0;
}

.account-dropdown .account-item-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.account-dropdown .account-item-sub {
  font-size: 12px;
  color: #9a9590;
  margin-top: 1px;
}

.account-dropdown .account-logout {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #9a9590;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s ease;
}

.account-dropdown .account-logout:hover {
  background: rgba(60,70,100,0.05);
}

/* Topbar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.topbar-leading {
  flex: 1;
  min-width: 0;
}

.topbar h1 {
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.03em;
  margin: 8px 0 0;
}

.topbar .hint {
  margin: 6px 0 0;
  max-width: 560px;
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

/* Bot Card */
.bot-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  cursor: pointer;
}

.bot-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(68,53,35,0.1);
  border-color: rgba(99,102,241,0.18);
}

.bot-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bot-avatar {
  width: 52px;
  height: 52px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(199,210,254,0.6) 0%, rgba(99,102,241,0.2) 100%);
  border: 1px solid rgba(99,102,241,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--ink);
  flex-shrink: 0;
  overflow: hidden;
}

.bot-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bot-card-info {
  flex: 1;
  min-width: 0;
}

.bot-card-info h3 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  color: var(--ink);
}

.bot-card-info .bot-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.bot-card-info .bot-status .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  flex-shrink: 0;
}

.bot-card-info .bot-status .status-dot.active {
  background: var(--success);
  box-shadow: 0 0 6px rgba(47,143,99,0.4);
}

.bot-card-info .bot-status .status-dot.frozen {
  background: var(--muted);
}

.bot-card-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.bot-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.bot-card-date {
  font-size: 12px;
  color: var(--muted);
}

.bot-card-action {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(60,70,100,0.06);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-sans);
  transition: all .15s ease;
}

.bot-card-action:hover {
  background: var(--accent-soft);
  border-color: rgba(99,102,241,0.2);
  color: var(--accent);
}

/* Create Bot Card */
.create-bot-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  gap: 14px;
  border: 2px dashed rgba(60,70,100,0.18);
  border-radius: 26px;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all .18s ease;
}

.create-bot-card:hover {
  border-color: rgba(99,102,241,0.35);
  background: rgba(255,255,255,0.7);
  transform: translateY(-2px);
}

.create-bot-icon {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(99,102,241,0.14) 0%, rgba(30,35,60,0.06) 100%);
  border: 1px solid rgba(99,102,241,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--accent);
}

.create-bot-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.create-bot-card .hint {
  text-align: center;
  font-size: 13px;
  max-width: 240px;
}

/* Dashboard Campaign Banner */
.dashboard-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(248,249,252,0.96) 0%, rgba(235,237,248,0.92) 100%);
  border: 1px solid rgba(99,102,241,0.16);
  color: var(--ink);
  box-shadow: 0 12px 26px rgba(68,53,35,0.06);
  position: relative;
}

.dashboard-banner::before {
  content: "";
  position: absolute;
  inset: auto -26px -42px auto;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(99,102,241,0.16) 0%, rgba(99,102,241,0) 72%);
  pointer-events: none;
}

.dashboard-banner-copy,
.dashboard-banner-action {
  position: relative;
  z-index: 1;
}

.dashboard-banner-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.dashboard-banner-kicker {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(99,102,241,0.12);
  color: #a06044;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-banner-copy strong {
  font-size: 16px;
  letter-spacing: -0.02em;
}

.dashboard-banner-copy p {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 13px;
}

.dashboard-banner-action {
  flex-shrink: 0;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(99,102,241,0.1);
  color: #4338ca;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
}

.dashboard-banner-action:hover {
  background: rgba(99,102,241,0.18);
}

.hashtag-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(99,102,241,0.13);
  color: #4338ca;
  border: 1px solid rgba(99,102,241,0.22);
  font-weight: 800;
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
}

/* Responsive Dashboard */
@media (max-width: 860px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .dashboard-banner-action {
    width: 100%;
    text-align: center;
    justify-content: center;
    display: flex;
  }
  .account-trigger .account-label {
    display: none;
  }
}

/* ===== 创建智能体按钮 ===== */
.create-bot-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .15s ease;
}

.create-bot-btn:hover {
  opacity: .85;
}

/* ===== 用量页面 ===== */
.usage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.usage-card {
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
}

.usage-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 16px;
}

.usage-percent {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}

.usage-percent small {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 6px;
}

.usage-bar-wrap {
  height: 8px;
  background: rgba(60,70,100,0.08);
  border-radius: 999px;
  margin: 16px 0;
  overflow: hidden;
}

.usage-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6366f1, #818cf8);
  transition: width .6s ease;
}

.usage-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.sub-info-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.sub-tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(60,70,100,0.06);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.sub-tag-accent {
  background: rgba(99,102,241,0.10);
  border-color: rgba(99,102,241,0.2);
  color: #4338ca;
}

.sub-info-row {
  margin-bottom: 14px;
}

.sub-info-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.sub-info-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.sub-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.sub-actions button {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all .15s ease;
}

.sub-actions button:hover {
  background: rgba(60,70,100,0.05);
}

/* ===== 套餐弹窗 ===== */
.plan-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(30,35,60,0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.plan-modal-backdrop.open {
  display: flex;
}

.plan-modal {
  background: #fff;
  border-radius: 24px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  position: relative;
  box-shadow: 0 30px 80px rgba(30,35,60,0.18);
}

.plan-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.plan-modal-head h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.plan-modal-head p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.plan-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: rgba(60,70,100,0.06);
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.plan-group {
  margin-bottom: 20px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.5);
}

.plan-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.plan-group-header h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.plan-group-header .plan-tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(99,102,241,0.10);
  border: 1px solid rgba(99,102,241,0.2);
  font-size: 11px;
  font-weight: 700;
  color: #4338ca;
}

.plan-group-desc {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.6;
}

.plan-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.plan-option {
  padding: 16px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all .15s ease;
}

.plan-option:hover {
  border-color: rgba(99,102,241,0.3);
  background: rgba(255,255,255,0.9);
}

.plan-option .plan-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
}

.plan-option .plan-price small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.plan-option .plan-save {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  margin-top: 4px;
}

/* ===== 邀请页面 ===== */
.invite-section {
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 16px;
}

.invite-section h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 10px;
}

.invite-rule-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.invite-code-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.invite-code-box {
  background: var(--ink);
  color: #fff;
  padding: 14px 28px;
  border-radius: 14px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 4px;
  font-family: var(--font-mono);
}

.invite-code-copy {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.6);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all .15s ease;
}

.invite-code-copy:hover {
  background: rgba(60,70,100,0.06);
}

.invite-code-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}

.invite-progress-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.invite-progress-card {
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
}

.invite-progress-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 12px;
}

.invite-progress-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}

.invite-progress-number small {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 4px;
}

.invite-progress-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

.invite-progress-bar-wrap {
  height: 8px;
  background: rgba(60,70,100,0.08);
  border-radius: 999px;
  margin-top: 12px;
  overflow: hidden;
}

.invite-progress-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6366f1, #818cf8);
}

.invite-input-wrap {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.invite-input-wrap input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.6);
  font-size: 14px;
  color: var(--ink);
  outline: none;
}

.invite-input-wrap input:focus {
  border-color: rgba(99,102,241,0.3);
}

.invite-input-wrap button {
  padding: 12px 20px;
  border-radius: 14px;
  border: none;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s ease;
}

.invite-input-wrap button:hover {
  opacity: .85;
}

.invite-record-empty {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  padding: 20px 0;
}

.invite-record-list {
  margin-top: 12px;
}

.invite-record-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.invite-record-item:last-child {
  border-bottom: none;
}

@media (max-width: 860px) {
  .usage-grid,
  .invite-progress-grid,
  .plan-options {
    grid-template-columns: 1fr;
  }
}
