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

:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --text: #1a2233;
  --text-muted: #5c6578;
  --border: #e2e8f0;
  --border-light: #eef2f7;

  --brand: #2563eb;
  --brand-hover: #1d4ed8;
  --brand-dark: #1e3a8a;
  --brand-light: #eff6ff;
  --brand-muted: #bfdbfe;
  --accent: #f59e0b;
  --accent-hover: #d97706;

  --hero-from: #0f172a;
  --hero-mid: #1e3a5f;
  --hero-to: #312e81;

  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --header-h: 64px;
  --max-w: 1180px;
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;

  --shadow-sm: 0 1px 2px rgb(15 23 42 / 0.06);
  --shadow-md: 0 8px 24px rgb(15 23 42 / 0.08);
  --shadow-lg: 0 20px 48px rgb(15 23 42 / 0.12);
  --shadow-card: 0 4px 20px rgb(37 99 235 / 0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container { padding: 0 24px; }
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgb(226 232 240 / 0.8);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 20px;
}

.header-inner-auth {
  gap: 12px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 0;
}

.logo-mark {
  display: block;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  line-height: 0;
}

.logo-img {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.logo-text {
  display: none;
  flex-direction: column;
  min-width: 0;
}

.logo-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo-tagline {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 480px) {
  .logo-text { display: flex; }
}

.header-back {
  font-size: 14px;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.header-back:hover {
  color: var(--brand);
  background: var(--brand-light);
}

/* Desktop Nav */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--brand);
  background: var(--brand-light);
}

.nav-dropdown { position: relative; }

.nav-dropdown-trigger {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

.nav-chevron {
  opacity: 0.6;
  transition: transform 0.2s;
}

.nav-dropdown.open .nav-chevron { transform: rotate(180deg); }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 148px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  z-index: 110;
}

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

.nav-dropdown-link {
  display: block;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.nav-dropdown-link:hover,
.nav-dropdown-link.is-active {
  color: var(--brand);
  background: var(--brand-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-ghost {
  padding: 6px 12px;
  font-size: 14px;
  color: var(--text-muted);
  border-radius: var(--radius);
}

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

.btn-ghost-sm {
  padding: 6px 10px;
  font-size: 13px;
  color: var(--text-muted);
  border-radius: var(--radius);
}

.btn-ghost-sm:hover { color: var(--text); }

.btn-login-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.btn-login-outline:hover {
  border-color: var(--brand-muted);
  color: var(--brand);
  background: var(--brand-light);
}

.btn-login-outline svg { opacity: 0.7; }

.btn-primary-sm {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, #4f46e5 100%);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgb(37 99 235 / 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary-sm:hover {
  background: linear-gradient(135deg, var(--brand-hover) 0%, #4338ca 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgb(37 99 235 / 0.4);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 12px 16px 28px;
  flex-direction: column;
  z-index: 99;
  overflow-y: auto;
  box-shadow: var(--shadow-md);
}

.nav-mobile.open { display: flex; }

body.nav-open { overflow: hidden; }

.nav-mobile-section { margin-bottom: 16px; }

.nav-mobile-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  padding: 0 4px;
}

.nav-mobile-link {
  display: block;
  padding: 12px 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
}

.nav-mobile-link:hover,
.nav-mobile-link.is-active {
  background: var(--brand-light);
  color: var(--brand);
}

.nav-mobile-sub {
  font-size: 14px;
  padding-left: 20px;
  color: var(--text-muted);
}

.nav-mobile-auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.nav-mobile-btn {
  display: block;
  padding: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
}

.nav-mobile-btn-outline {
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--surface);
}

.nav-mobile-btn-primary {
  color: #fff;
  background: var(--brand);
}

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .menu-toggle { display: none; }
}

@media (min-width: 1024px) {
  .nav-desktop { gap: 8px; }
  .nav-link { padding: 8px 16px; }
}

/* ===== Hero (Marketing) ===== */
.hero-modern {
  position: relative;
  overflow: hidden;
  padding: 48px 0 56px;
  color: #fff;
}

.hero-modern-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--hero-from) 0%, var(--hero-mid) 45%, var(--hero-to) 100%);
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  pointer-events: none;
}

.hero-blob-1 {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -80px;
  background: #3b82f6;
}

.hero-blob-2 {
  width: 360px;
  height: 360px;
  bottom: -100px;
  left: -60px;
  background: #8b5cf6;
}

.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-modern-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-modern-inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 32px;
    padding-top: 16px;
  }
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgb(255 255 255 / 0.92);
  background: rgb(255 255 255 / 0.12);
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero-br { display: none; }

@media (min-width: 640px) {
  .hero-br { display: inline; }
}

.hero-lead {
  max-width: 36em;
  font-size: 15px;
  line-height: 1.75;
  color: rgb(226 232 240 / 0.92);
  margin-bottom: 24px;
}

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

.btn-hero-primary {
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgb(245 158 11 / 0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgb(245 158 11 / 0.5);
}

.btn-hero-ghost {
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  transition: background 0.15s, border-color 0.15s;
}

.btn-hero-ghost-light {
  color: #fff;
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.28);
}

.btn-hero-ghost-light:hover {
  background: rgb(255 255 255 / 0.16);
  border-color: rgb(255 255 255 / 0.45);
}

.hero-metrics {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
}

.hero-metrics li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-metrics strong {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-metrics span {
  font-size: 12px;
  color: rgb(203 213 225 / 0.85);
}

/* Hero floating showcase */
.hero-showcase {
  position: relative;
  min-height: 280px;
  display: none;
}

@media (min-width: 960px) {
  .hero-showcase { display: block; min-height: 340px; }
}

.hero-float-card {
  position: absolute;
  width: min(100%, 280px);
  padding: 14px;
  background: rgb(255 255 255 / 0.96);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  color: var(--text);
  display: flex;
  gap: 12px;
  align-items: center;
  backdrop-filter: blur(12px);
}

.hero-float-card--1 { top: 8%; left: 4%; transform: rotate(-4deg); z-index: 3; }
.hero-float-card--2 { top: 38%; right: 0; transform: rotate(3deg); z-index: 2; }
.hero-float-card--3 { bottom: 4%; left: 18%; transform: rotate(-2deg); z-index: 1; }

.hero-float-cover {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, var(--card-primary, #3b82f6), var(--card-secondary, #6366f1));
  box-shadow: 0 6px 16px rgb(0 0 0 / 0.12);
}

.hero-float-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-float-body strong {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-float-body span:last-child {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.hero-float-badge {
  align-self: flex-start;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #f97316);
  border-radius: 999px;
}

/* Legacy hero (detail pages) */
.hero { padding: 16px 0 0; }

.hero-poster {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .hero-poster { padding: 0 24px; }
}

.hero-poster picture,
.hero-poster > img {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #e8e8e8;
  border: 1px solid var(--border);
}

.hero-poster img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 7;
  object-fit: cover;
}

@media (max-width: 767px) {
  .hero-poster img { aspect-ratio: 4 / 5; }
}

.hero-fallback {
  display: none;
  aspect-ratio: 21 / 7;
  background: linear-gradient(135deg, var(--hero-from), var(--hero-mid));
  border-radius: var(--radius-lg);
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #fff;
}

.hero-fallback-text { text-align: center; }

.hero-fallback-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}

.hero-fallback-sub {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 8px;
}

.hero-fallback-highlight {
  font-size: 14px;
  color: #fcd34d;
}

@media (max-width: 767px) {
  .hero-fallback { aspect-ratio: 4 / 5; }
  .hero-fallback-title { font-size: 18px; }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.btn-hero-glow { /* alias */ }

/* ===== Trust Cards ===== */
.trust-cards {
  margin-top: -28px;
  position: relative;
  z-index: 2;
  padding-bottom: 8px;
}

.trust-cards-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .trust-cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .trust-cards-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}

.trust-card {
  padding: 20px 18px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s, box-shadow 0.2s;
}

.trust-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.trust-card-icon {
  display: block;
  font-size: 28px;
  margin-bottom: 10px;
  line-height: 1;
}

.trust-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.trust-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Legacy trust strip */
.trust-strip {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.trust-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.trust-list li {
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}

.trust-list li:not(:last-child)::after {
  content: '|';
  margin: 0 12px;
  color: var(--border);
}

.trust-list li strong {
  display: inline;
  font-size: inherit;
  font-weight: 600;
  color: var(--text);
  margin-right: 4px;
}

@media (max-width: 767px) {
  .trust-list { flex-direction: column; gap: 6px; }
  .trust-list li:not(:last-child)::after { display: none; }
}

/* ===== Sections ===== */
.section { padding: 40px 0 48px; }

.section-featured {
  padding-top: 32px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}

.section-head-lg h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 6px;
}

.section-head h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.section-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-light);
  padding: 6px 12px;
  border-radius: 999px;
}

.section-note {
  font-size: 14px;
  color: var(--text-muted);
  margin: -4px 0 20px;
  max-width: 42em;
}

/* ===== Featured ===== */
.featured-carousel {
  position: relative;
}

.featured-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: clamp(32px, 8vw, 72px);
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(-90deg, var(--bg) 0%, rgb(244 246 251 / 0.96) 35%, transparent 100%);
}

.featured-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: clip;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 28px 0 36px;
}

.featured-track::-webkit-scrollbar { display: none; }

.featured-card {
  flex: 0 0 calc(100% - 56px);
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgb(15 23 42 / 0.05);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, opacity 0.28s ease;
  opacity: 0.88;
}

.featured-card.is-active {
  opacity: 1;
  border-color: rgb(37 99 235 / 0.18);
  box-shadow:
    0 16px 40px rgb(37 99 235 / 0.12),
    0 6px 16px rgb(15 23 42 / 0.06);
  transform: translateY(-2px);
}

.featured-card.is-active:hover {
  transform: translateY(-4px);
  box-shadow:
    0 22px 48px rgb(37 99 235 / 0.16),
    0 8px 20px rgb(15 23 42 / 0.08);
}

.featured-card:not(.is-active):hover {
  opacity: 0.96;
  box-shadow: 0 6px 20px rgb(15 23 42 / 0.08);
}

.featured-card-inner {
  display: grid;
  grid-template-columns: 1fr;
}

.featured-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--card-secondary, #eee);
  overflow: hidden;
}

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

.featured-cover .cover-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 4rem;
  font-weight: 700;
  color: rgb(255 255 255 / 0.95);
  background: linear-gradient(145deg, var(--card-primary, #3b82f6), var(--card-secondary, #6366f1));
}

.featured-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.featured-badge {
  display: inline-flex;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #f97316);
  border: none;
  border-radius: 999px;
}

.featured-body h3 {
  font-size: 17px;
  font-weight: 600;
}

.featured-body p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.featured-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.btn-theme {
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: var(--card-primary, var(--brand));
  border-radius: var(--radius);
}

.btn-theme:hover { opacity: 0.9; }

.btn-outline {
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.btn-outline:hover { border-color: #ccc; }

.featured-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.featured-dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--border);
  transition: width 0.2s, background 0.2s;
}

.featured-dots button.active {
  width: 24px;
  background: var(--brand);
}

@media (min-width: 768px) {
  .featured-card {
    flex: 0 0 calc(62% - 8px);
    max-width: 640px;
  }
  .featured-card-inner { grid-template-columns: 1.1fr 1fr; }
  .featured-cover { aspect-ratio: auto; min-height: 220px; }
}

@media (min-width: 1024px) {
  .featured-card { flex: 0 0 calc(58% - 8px); }
}

/* ===== Search ===== */
.search-bar { margin-bottom: 16px; }

.search-bar-modern {
  position: relative;
  margin-bottom: 20px;
}

.search-bar-modern .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-bar-modern input {
  padding-left: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 15px;
  height: 48px;
}

.search-bar input {
  width: 100%;
  max-width: 360px;
  padding: 10px 14px 10px 40px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242 1.006a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E") 14px center no-repeat;
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-bar input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* ===== Software Grid ===== */
.software-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.software-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.software-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-muted);
  box-shadow: var(--shadow-card);
}

.card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-cover {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--card-secondary, #eee);
  overflow: hidden;
}

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

.card-cover .cover-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 3rem;
  font-weight: 700;
  color: rgb(255 255 255 / 0.92);
  background: linear-gradient(145deg, var(--card-primary, #3b82f6), var(--card-secondary, #6366f1));
}

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(4px);
  border-radius: 999px;
}

.card-body {
  padding: 14px 16px 16px;
}

.card-run {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.card-icon-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--card-primary, #3b82f6), var(--card-secondary, #6366f1));
  display: grid;
  place-items: center;
  font-size: 1rem;
  flex-shrink: 0;
  overflow: hidden;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 10px rgb(0 0 0 / 0.08);
}

.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body h3 {
  font-size: 15px;
  font-weight: 600;
}

.card-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 4px;
}

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

.card-link {
  font-size: 13px;
  color: var(--brand);
}

.card-link:hover { text-decoration: underline; }

@media (min-width: 640px) {
  .software-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (min-width: 1024px) {
  .software-grid { grid-template-columns: repeat(3, 1fr); }
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 16px;
  color: var(--text-muted);
}

/* ===== Quick Links ===== */
.quick-links {
  padding: 32px 0 56px;
  background: linear-gradient(180deg, var(--bg) 0%, #fff 42%, #fff 100%);
}

.quick-grid.quick-grid-modern {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  background: none;
  border: none;
  border-radius: 0;
  overflow: visible;
}

@media (min-width: 640px) {
  .quick-grid.quick-grid-modern { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

@media (min-width: 1024px) {
  .quick-grid.quick-grid-modern { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}

.quick-item-modern {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 16px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgb(226 232 240 / 0.9);
  box-shadow: 0 2px 8px rgb(15 23 42 / 0.04);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.quick-item-modern:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgb(15 23 42 / 0.08);
}

.quick-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 22px;
  border-radius: 12px;
  background: var(--brand-light);
}

.quick-item-shop .quick-icon {
  background: linear-gradient(145deg, #fff7ed, #fed7aa);
}

.quick-item-help .quick-icon {
  background: linear-gradient(145deg, #eff6ff, #bfdbfe);
}

.quick-item-agent .quick-icon {
  background: linear-gradient(145deg, #f5f3ff, #ddd6fe);
}

.quick-item-member .quick-icon {
  background: linear-gradient(145deg, #ecfdf5, #a7f3d0);
}

.quick-item-shop:hover { border-color: #fdba74; }
.quick-item-help:hover { border-color: #93c5fd; }
.quick-item-agent:hover { border-color: #c4b5fd; }
.quick-item-member:hover { border-color: #6ee7b7; }

.quick-item-modern h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}

.quick-item-modern p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

.quick-item.quick-item-modern::before {
  display: none;
}

.quick-item.quick-item-modern:hover {
  background: #fff;
}

.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.quick-item {
  padding: 18px 16px;
  background: var(--surface);
}

.quick-item:hover { background: #fafafa; }

.quick-item::before { display: none; }

.quick-item h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.quick-item p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

@media (min-width: 768px) {
  .quick-grid { grid-template-columns: repeat(4, 1fr); }
  .quick-item { padding: 20px 18px; }
}

/* ===== Footer ===== */
.site-footer {
  padding: 48px 0 0;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  color: #cbd5e1;
  margin-top: 48px;
  border-top: 1px solid rgb(255 255 255 / 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px 24px;
  padding-bottom: 32px;
}

.footer-col-brand .footer-brand {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.footer-slogan {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 8px;
  max-width: 22em;
}

.footer-company {
  font-size: 13px;
  color: #64748b;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-heading {
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.footer-nav a {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.4;
  transition: color 0.15s;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-contact {
  list-style: none;
  font-size: 14px;
  line-height: 1.85;
  color: #94a3b8;
}

.footer-contact li {
  margin-bottom: 2px;
}

.footer-contact a {
  color: #e2e8f0;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgb(226 232 240 / 0.35);
}

.footer-contact a:hover {
  color: #fff;
  text-decoration-color: rgb(255 255 255 / 0.6);
}

.footer-bottom {
  border-top: 1px solid rgb(255 255 255 / 0.1);
  padding: 20px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.footer-copy,
.footer-beian {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
}

.footer-beian a {
  color: #cbd5e1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-beian a:hover {
  color: #fff;
}

.footer-meta-sep {
  margin: 0 8px;
  color: #475569;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1.4fr repeat(4, 1fr);
    gap: 28px 20px;
  }
}

@media (min-width: 1024px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

/* ===== 内容页 · Google 简洁风 ===== */
.doc-page {
  padding: 28px 0 56px;
  background: #f8f9fa;
}

.doc-header {
  margin-bottom: 28px;
}

.doc-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #5f6368;
  margin-bottom: 12px;
}

.doc-crumb a {
  color: #1a73e8;
}

.doc-crumb a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.doc-header h1 {
  font-size: clamp(1.75rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #202124;
  line-height: 1.25;
  margin-bottom: 10px;
}

.doc-lead {
  font-size: 16px;
  line-height: 1.6;
  color: #5f6368;
  max-width: 42em;
}

.doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.doc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  transition: background 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.doc-btn-primary {
  color: #fff;
  background: #1a73e8;
  box-shadow: 0 1px 2px rgb(26 115 232 / 0.24);
}

.doc-btn-primary:hover {
  background: #1765cc;
  box-shadow: 0 1px 3px rgb(26 115 232 / 0.32);
}

.doc-btn-outline {
  color: #1a73e8;
  background: #fff;
  border: 1px solid #dadce0;
}

.doc-btn-outline:hover {
  background: #f8f9fa;
  border-color: #1a73e8;
}

.doc-layout {
  display: grid;
  gap: 20px;
}

.doc-layout--aside {
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .doc-layout--aside {
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
  }
}

.doc-main {
  min-width: 0;
}

.doc-main--single {
  max-width: 760px;
}

.doc-card {
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 16px;
}

.doc-card:last-child {
  margin-bottom: 0;
}

.doc-card h2 {
  font-size: 18px;
  font-weight: 500;
  color: #202124;
  margin-bottom: 16px;
}

.doc-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.doc-step {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #e8eaed;
}

.doc-step:first-child {
  padding-top: 0;
}

.doc-step:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.doc-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 500;
  color: #1a73e8;
  background: #e8f0fe;
  border-radius: 50%;
}

.doc-step-body strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: #202124;
  margin-bottom: 4px;
}

.doc-step-body p {
  font-size: 14px;
  line-height: 1.6;
  color: #5f6368;
  margin: 0;
}

.doc-pill-grid {
  display: grid;
  gap: 12px;
}

@media (min-width: 640px) {
  .doc-pill-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.doc-pill-card {
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e8eaed;
}

.doc-pill-tag {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 999px;
}

.doc-pill-tag--offline {
  color: #137333;
  background: #e6f4ea;
}

.doc-pill-tag--cloud {
  color: #1a73e8;
  background: #e8f0fe;
}

.doc-pill-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #5f6368;
  margin: 0;
}

.doc-callout {
  margin-top: 12px;
  padding: 14px 16px;
  background: #e8f0fe;
  border-left: 3px solid #1a73e8;
  border-radius: 0 8px 8px 0;
}

.doc-callout p {
  font-size: 14px;
  line-height: 1.6;
  color: #3c4043;
  margin: 0;
}

.doc-faq-list {
  list-style: none;
}

.doc-faq-list li {
  padding: 14px 0;
  border-bottom: 1px solid #e8eaed;
}

.doc-faq-list li:first-child {
  padding-top: 0;
}

.doc-faq-list li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.doc-faq-list strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #202124;
  margin-bottom: 6px;
}

.doc-faq-list p {
  font-size: 14px;
  line-height: 1.6;
  color: #5f6368;
  margin: 0;
}

.doc-aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doc-side-card {
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 8px;
  padding: 18px;
}

.doc-side-card--muted {
  background: #f8f9fa;
}

.doc-side-card h3 {
  font-size: 14px;
  font-weight: 500;
  color: #202124;
  margin-bottom: 12px;
}

.doc-side-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.doc-side-nav a {
  display: block;
  padding: 8px 10px;
  font-size: 14px;
  color: #1a73e8;
  border-radius: 4px;
  transition: background 0.15s;
}

.doc-side-nav a:hover {
  background: #f1f3f4;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.doc-side-text {
  font-size: 14px;
  line-height: 1.6;
  color: #5f6368;
  margin-bottom: 6px;
}

.doc-side-text:last-child {
  margin-bottom: 0;
}

.doc-side-meta {
  font-size: 13px;
  color: #80868b;
}

.doc-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.doc-link-list li {
  border-bottom: 1px solid #e8eaed;
}

.doc-link-list li:last-child {
  border-bottom: none;
}

.doc-link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  font-size: 15px;
  color: #1a73e8;
}

.doc-link-list a:hover {
  background: #f8f9fa;
  margin-inline: -4px;
  padding-inline: 8px;
  border-radius: 4px;
}

.doc-link-list a::after {
  content: "›";
  font-size: 18px;
  color: #80868b;
}

.doc-inline-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #80868b;
}

.doc-inline-links a {
  color: #1a73e8;
}

.doc-main > .doc-actions {
  margin-top: 8px;
}

.prose {
  font-size: 15px;
  line-height: 1.7;
  color: #3c4043;
}

.prose h2 {
  font-size: 18px;
  font-weight: 500;
  color: #202124;
  margin: 28px 0 12px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 16px;
  font-weight: 500;
  color: #202124;
  margin: 20px 0 8px;
}

.prose p {
  margin-bottom: 14px;
}

.prose ul,
.prose ol {
  margin: 0 0 14px 1.25em;
}

.prose li {
  margin-bottom: 6px;
}

.prose a {
  color: #1a73e8;
  text-decoration: none;
}

.prose a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose .doc-card + .doc-card {
  margin-top: 0;
}

/* 兼容旧内容页类名 */
.page-main {
  padding: 24px 0 40px;
}

.page-head {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.page-head h1 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 6px;
}

.page-head p {
  font-size: 13px;
  color: var(--text-muted);
}

.page-content {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
}

.page-content h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 10px;
}

.page-content h2:first-child { margin-top: 0; }

.page-content p { margin-bottom: 12px; }

.page-content ul {
  margin: 0 0 12px 1.2em;
}

.page-content li { margin-bottom: 6px; }

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
}

.info-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.contact-list {
  list-style: none;
}

.contact-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.contact-list li:last-child { border-bottom: none; }

.contact-list strong {
  display: inline-block;
  min-width: 5em;
  color: var(--text);
  font-weight: 500;
}

/* ===== 会员 / 支付 ===== */
.join-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}

.join-hero-poster {
  aspect-ratio: 21 / 8;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.join-hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.join-hero-text h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.join-hero-text p {
  font-size: 13px;
  color: var(--text-muted);
}

.join-hero-body {
  padding: 20px;
}

.benefit-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 20px 0;
}

.benefit-item {
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
}

.benefit-item strong {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 4px;
}

.plan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 20px 0;
}

.plan-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--surface);
  cursor: pointer;
}

.plan-card:hover,
.plan-card.selected {
  border-color: var(--brand);
}

.plan-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}

.plan-price {
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  margin: 8px 0;
}

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

.plan-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.pay-methods {
  display: flex;
  gap: 10px;
  margin: 16px 0;
}

.pay-method {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  font-size: 13px;
  cursor: pointer;
}

.pay-method.selected {
  border-color: var(--brand);
  color: var(--brand);
}

.pay-notice {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius);
  margin-top: 16px;
}

.btn-block {
  display: block;
  width: 100%;
  padding: 12px;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  color: #fff;
  background: var(--brand);
  border-radius: var(--radius);
  margin-top: 16px;
}

.btn-block:hover { background: var(--brand-hover); }

.form-page {
  max-width: 400px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
}

.form-group input:focus {
  border-color: var(--brand);
}

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

.form-row input { flex: 1; }

.btn-code {
  flex-shrink: 0;
  padding: 10px 12px;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  white-space: nowrap;
}

.member-dashboard {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.dashboard-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}

.dashboard-card h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.dashboard-stat {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
}

.dashboard-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.quick-actions a {
  padding: 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.quick-actions a:hover {
  border-color: var(--brand-muted);
  background: var(--brand-light);
  color: var(--brand);
}

.result-box {
  text-align: center;
  padding: 40px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.result-box h1 {
  font-size: 20px;
  margin-bottom: 8px;
}

.result-box p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

@media (min-width: 640px) {
  .benefit-list { grid-template-columns: repeat(2, 1fr); }
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .member-dashboard { grid-template-columns: repeat(2, 1fr); }
}

.faq-list details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  background: var(--surface);
}

.faq-list summary {
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list details[open] summary {
  border-bottom: 1px solid var(--border);
}

.faq-list details p {
  padding: 12px 16px 14px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

.help-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.help-links a {
  display: block;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
}

.help-links a:hover { border-color: var(--brand-muted); background: var(--brand-light); }

.help-links a span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

@media (min-width: 640px) {
  .help-links { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Login Page ===== */
.login-main {
  padding: 32px 0 48px;
}

.login-wrap {
  max-width: 420px;
  margin: 0 auto;
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
}

.login-card-head {
  text-align: center;
  margin-bottom: 24px;
}

.login-card-head h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.login-card-head p {
  font-size: 13px;
  color: var(--text-muted);
}

.login-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.login-tab {
  flex: 1;
  padding: 9px 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 6px;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.login-tab:hover { color: var(--text); }

.login-tab.active {
  color: var(--brand);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

.login-panel { display: none; }
.login-panel.active { display: block; }

.login-form-extra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 12px;
}

.login-remember {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  cursor: pointer;
}

.login-forgot {
  color: var(--brand);
}

.login-forgot:hover { text-decoration: underline; }

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 16px;
  font-size: 12px;
  color: var(--text-muted);
}

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

.oauth-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.oauth-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.oauth-icon {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.oauth-btn:hover {
  transform: translateY(-1px);
  border-color: var(--border);
}

.oauth-wechat:hover { border-color: #07c160; background: #f0fdf4; color: #07c160; }
.oauth-alipay:hover { border-color: #1677ff; background: #eff6ff; color: #1677ff; }
.oauth-qq:hover { border-color: #12b7f5; background: #f0f9ff; color: #12b7f5; }
.oauth-apple:hover { border-color: #1f1f1f; background: #f5f5f5; color: #1f1f1f; }

.qrcode-box {
  text-align: center;
  padding: 8px 0 4px;
}

.qrcode-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 200px;
  height: 200px;
  margin: 0 auto 12px;
  padding: 24px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  background: var(--bg);
}

.qrcode-placeholder p {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.qrcode-hint {
  font-size: 11px;
  color: var(--text-muted);
}

.qrcode-tip {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.login-footer {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 20px;
}

.login-footer a { color: var(--brand); font-weight: 500; }

.login-agreement {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.5;
}

.login-agreement a { color: var(--text-muted); text-decoration: underline; }

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

.form-group input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

@media (min-width: 768px) and (max-width: 959px) {
  .nav-link { padding: 8px 10px; font-size: 13px; }
  .logo-tagline { display: none; }
  .btn-primary-sm { padding: 7px 12px; font-size: 13px; }
}

@media (max-width: 767px) {
  .btn-login-outline span,
  .btn-login-outline svg { display: none; }
  .btn-login-outline { padding: 7px 12px; font-size: 13px; }
}

@media (max-width: 380px) {
  .oauth-grid { grid-template-columns: repeat(2, 1fr); }
  .login-tab { font-size: 12px; padding: 8px 4px; }
}

