﻿/* ===== CSS Variables ===== */
:root {
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --accent: #10B981;
  --accent-hover: #059669;
  --bg: #F9FAFB;
  --bg-white: #FFFFFF;
  --text: #111827;
  --text-secondary: #6B7280;
  --text-light: #9CA3AF;
  --border: #E5E7EB;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after { 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;
  display: flex;
  flex-direction: column;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
img { max-width: 100%; }

/* ===== Navbar ===== */
.navbar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}
.nav-logo:hover { text-decoration: none; }
.logo-img { width: 28px; height: 28px; object-fit: contain; }
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 0;
  transition: color 0.2s;
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  text-decoration: none;
}

.nav-auth .btn-login {
  display: inline-block;
  padding: 8px 20px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
  text-decoration: none;
}
.nav-auth .btn-login:hover {
  background: var(--primary-hover);
  text-decoration: none;
}
.nav-auth .nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.nav-auth .nav-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}
.nav-auth .btn-logout {
  margin-left: 12px;
  padding: 6px 14px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.nav-auth .btn-logout:hover {
  border-color: #EF4444;
  color: #EF4444;
}

/* 鐢ㄦ埛涓嬫媺鑿滃崟 */
.nav-user-dropdown {
  position: relative;
}
.nav-user-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-white);
  cursor: pointer;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s;
}
.nav-user-trigger:hover {
  border-color: var(--primary);
}
.nav-user-trigger .nav-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}
.nav-user-name {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-user-arrow {
  font-size: 12px;
  color: var(--text-secondary);
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 140px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  overflow: hidden;
}
.nav-dropdown-menu.show {
  display: block;
}
.nav-dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  transition: background 0.15s;
}
.nav-dropdown-item:hover {
  background: var(--bg);
  text-decoration: none;
}
.nav-dropdown-logout {
  color: #EF4444;
}
.nav-dropdown-logout:hover {
  background: #FEF2F2;
}
.nav-dropdown-divider {
  height: 1px;
  background: var(--border);
}

/* ===== Main Content ===== */
#app {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ===== Buttons ===== */
.btn-primary {
  display: inline-block;
  padding: 12px 32px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--primary-hover);
  text-decoration: none;
}
.btn-secondary {
  display: inline-block;
  padding: 12px 32px;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}
.btn-accent {
  display: inline-block;
  padding: 12px 32px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}
.btn-accent:hover {
  background: var(--accent-hover);
  text-decoration: none;
}
.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ===== Hero Section ===== */
.hero {
  text-align: center;
  padding: 80px 0 60px;
}
.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text);
}
.hero-title .highlight {
  color: var(--primary);
}
.hero-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* ===== Feature Cards ===== */
.features {
  padding: 40px 0 80px;
}
.features-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 40px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all 0.2s;
}
.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.feature-icon {
  font-size: 32px;
  margin-bottom: 12px;
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ===== Pricing Section ===== */
.pricing-section {
  padding: 60px 0 80px;
}
.pricing-title {
  text-align: center;
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
}
.pricing-subtitle {
  text-align: center;
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 48px;
}
/* Pricing Cycle Toggle */
.pricing-cycle-toggle {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.cycle-btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.cycle-btn:hover {
  color: var(--text);
}
.cycle-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}
.cycle-btn.active .cycle-discount {
  background: rgba(255,255,255,0.25);
  color: #fff;
}
.cycle-discount {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #ECFDF5;
  color: var(--accent);
  font-weight: 600;
}
.feature-highlight {
  color: var(--primary) !important;
  font-weight: 500;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}
/* 4 鍒楀畾浠风綉鏍?*/
.pricing-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.pricing-card.featured {
  border-color: var(--primary);
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}
.pricing-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.pricing-price {
  font-size: 40px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.pricing-price .unit {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-secondary);
}
.pricing-alt {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.pricing-features {
  margin-bottom: 32px;
}
.pricing-features li {
  padding: 8px 0;
  font-size: 15px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
/* 绱у噾鍔熻兘鍒楄〃 - 闂磋窛缂╁皬鍒?1/3 */
.pricing-features-compact li {
  padding: 3px 0;
  font-size: 13px;
}
/* 浠樿垂鐗堜紭鍔胯摑鑹查珮浜?*/
.pricing-features li.feature-paid {
  color: var(--primary);
  font-weight: 500;
}
.pricing-features li.feature-paid::before {
  color: var(--primary);
}
/* 瀛ｄ粯/骞翠粯鐙崰鍔熻兘 - 姗欒壊楂樹寒 */
.pricing-features li.feature-exclusive {
  color: #D97706;
  font-weight: 600;
  background: #FFFBEB;
  margin: 2px -8px;
  padding: 4px 8px;
  border-radius: 4px;
}
.pricing-features li.feature-exclusive::before {
  content: '鈽?;
  color: #D97706;
}
/* 涓嶅悓棰滆壊鐨?badge */
.pricing-badge-green {
  background: var(--accent) !important;
}
.pricing-badge-orange {
  background: #D97706 !important;
}
.pricing-features li::before {
  content: '鉁?;
  color: var(--accent);
  font-weight: 700;
}
.pricing-card .btn-primary,
.pricing-card .btn-secondary,
.pricing-card .btn-accent {
  width: 100%;
  text-align: center;
  margin-top: auto;
}

/* ===== Download Section ===== */
.download-section {
  padding: 80px 0;
  text-align: center;
}
.download-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
}
.download-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 48px;
}
.download-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.download-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.download-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.download-version {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.download-filesize {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 24px;
}
.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.download-btn-primary,
.download-btn-backup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}
.download-btn-primary:hover,
.download-btn-backup:hover {
  text-decoration: none;
  transform: translateY(-2px);
}
.download-btn-primary .btn-icon,
.download-btn-backup .btn-icon {
  font-size: 18px;
}
.download-hint {
  font-size: 12px;
  color: var(--text-light);
  margin: 0;
}
.download-hint-secondary {
  margin-bottom: 16px;
}
.download-divider {
  display: flex;
  align-items: center;
  margin: 8px 0;
}
.download-divider::before,
.download-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.download-divider span {
  padding: 0 16px;
  color: var(--text-light);
  font-size: 13px;
}
.download-requirements {
  text-align: left;
  padding: 20px;
  background: var(--bg);
  border-radius: 8px;
}
.download-requirements h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
.download-requirements li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 3px 0;
}
.download-notice {
  max-width: 500px;
  margin: 32px auto 0;
  padding: 20px 24px;
  background: #FFFBEB;
  border: 1px solid #FCD34D;
  border-radius: 8px;
  text-align: left;
}
.download-notice h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #92400E;
}
.download-notice li {
  font-size: 13px;
  color: #78350F;
  padding: 4px 0;
  line-height: 1.5;
}
.download-notice li strong {
  color: #92400E;
}

/* ===== Account Section ===== */
.account-section {
  padding: 60px 0 80px;
  max-width: 480px;
  margin: 0 auto;
}
.account-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
}

/* Auth Form */
.auth-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
}
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--border);
}
.auth-tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}
.auth-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}
.form-group input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--font);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
.form-error {
  color: #EF4444;
  font-size: 13px;
  margin-top: 6px;
}
.form-message {
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
}
.form-message.success {
  background: #ECFDF5;
  color: #065F46;
}
.form-message.error {
  background: #FEF2F2;
  color: #991B1B;
}
.auth-card .btn-primary {
  width: 100%;
  text-align: center;
  margin-top: 8px;
}

/* 蹇樿瀵嗙爜閾炬帴 */
.form-forgot-row {
  text-align: right;
  margin: -4px 0 4px;
}
.forgot-password-link {
  font-size: 13px;
  color: var(--primary);
  text-decoration: none;
}
.forgot-password-link:hover {
  text-decoration: underline;
}
.fp-desc {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Profile Card */
.profile-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  text-align: center;
}
.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  margin: 0 auto 16px;
}
.profile-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}
.profile-email {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.profile-info {
  text-align: left;
  padding: 20px;
  background: var(--bg);
  border-radius: 8px;
  margin-bottom: 24px;
}
.profile-info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
}
.profile-info-row .label {
  color: var(--text-secondary);
}
.profile-info-row .value {
  font-weight: 500;
}
.profile-card .btn-logout-full {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1px solid #EF4444;
  border-radius: 8px;
  color: #EF4444;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.profile-card .btn-logout-full:hover {
  background: #EF4444;
  color: #fff;
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  padding: 24px 0;
  margin-top: auto;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
}
.footer-links {
  margin-top: 8px;
}
.footer-links a {
  color: var(--text-secondary);
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--primary);
  text-decoration: none;
}
.footer-links .sep {
  margin: 0 8px;
  color: var(--text-light);
}

/* ===== Loading Spinner ===== */
.loading {
  text-align: center;
  padding: 60px 0;
  color: var(--text-secondary);
}
.loading::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-left: 8px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero-title { font-size: 32px; }
  .hero-subtitle { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 14px; }
  .download-card { padding: 32px 24px; }
}
@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid-4 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero { padding: 48px 0 40px; }
  .hero-title { font-size: 28px; }
}

/* ===== Referral System ===== */
.account-section-wide {
  max-width: 600px;
}

/* 绱у噾鐢ㄦ埛淇℃伅鏍?*/
.profile-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.profile-summary-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}
.profile-summary-info {
  flex: 1;
  min-width: 0;
}
.profile-summary-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-summary-meta {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border);
}
.profile-tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  font-family: var(--font);
}
.profile-tab:hover { color: var(--text); }
.profile-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.referral-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.referral-header {
  text-align: center;
  margin-bottom: 28px;
}
.referral-icon {
  font-size: 40px;
  margin-bottom: 8px;
}
.referral-header h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.referral-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.referral-desc strong {
  color: var(--primary);
}

.referral-code-box,
.referral-link-box {
  margin-bottom: 16px;
}
.referral-code-box label,
.referral-link-box label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.referral-code-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.referral-code {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--primary);
  text-align: center;
  font-family: 'Courier New', monospace;
}
.referral-link-input {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  outline: none;
  font-family: var(--font);
}
.btn-copy {
  padding: 10px 18px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: var(--font);
}
.btn-copy:hover { background: var(--primary-hover); }
.btn-copy.copied { background: var(--accent); }

.referral-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}
.referral-stat {
  text-align: center;
  padding: 16px 8px;
  background: var(--bg);
  border-radius: 8px;
}
.referral-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
}
.referral-stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.referral-records-section {
  margin-top: 24px;
}
.referral-records-section h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}
.referral-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.referral-table th {
  text-align: left;
  padding: 10px 12px;
  background: var(--bg);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.referral-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.referral-empty {
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
  padding: 24px 0;
}
.referral-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}
.referral-pagination button {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-white);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font);
  transition: all 0.2s;
}
.referral-pagination button:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
}
.referral-pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.referral-hint {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 12px;
  padding: 8px 12px;
  background: #ECFDF5;
  border-radius: 6px;
}

/* ===== 瀹氫环椤甸潰锛氳摑鑹?badge ===== */
.pricing-badge-blue {
  background: #3B82F6 !important;
}

/* ===== 瀹氫环椤甸潰锛氫粯璐圭増浼樺娍楂樹寒锛堟嫭鍙峰唴钃濊壊鏂囧瓧锛?===== */
.feature-paid-part {
  color: var(--primary);
  font-weight: 600;
}

/* ===== 瀹氫环椤甸潰锛氫粯璐圭増棰濆鍔熻兘锛堝厤璐圭増娌℃湁鐨勶級 ===== */
.pricing-features li.feature-extra {
  color: #0EA5E9;
  font-weight: 500;
}
.pricing-features li.feature-extra::before {
  content: '鉁?;
  color: #0EA5E9;
}

/* ===== Feature Card Link ===== */
.feature-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.feature-card-link:hover {
  text-decoration: none;
}
.feature-card-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s;
}
.feature-card:hover .feature-card-more {
  opacity: 1;
  transform: translateX(0);
}

/* ===== Feature Detail Page ===== */
.feature-detail {
  padding: 40px 0 80px;
}
.feature-detail-back {
  display: inline-block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  transition: color 0.2s;
}
.feature-detail-back:hover {
  color: var(--primary);
  text-decoration: none;
}
.feature-detail-hero {
  text-align: center;
  margin-bottom: 48px;
}
.feature-detail-icon {
  font-size: 56px;
  margin-bottom: 16px;
}
.feature-detail-hero h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text);
}
.feature-detail-tagline {
  font-size: 20px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}
.feature-detail-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}
.feature-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.feature-highlight-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.2s;
}
.feature-highlight-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--primary);
}
.feature-highlight-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.feature-highlight-icon {
  font-size: 24px;
  flex-shrink: 0;
}
.feature-highlight-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.feature-highlight-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.feature-detail-cta {
  text-align: center;
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* Feature Detail Responsive */
@media (max-width: 768px) {
  .feature-detail-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .feature-detail-hero h1 {
    font-size: 28px;
  }
  .feature-detail-tagline {
    font-size: 17px;
  }
}
@media (max-width: 480px) {
  .feature-detail-grid {
    grid-template-columns: 1fr;
  }
  .feature-detail-cta {
    flex-direction: column;
    align-items: center;
  }
}

/* ===== Wechat Login ===== */
.wechat-login-section {
  margin-top: 24px;
}

.wechat-login-section .divider {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.wechat-login-section .divider::before,
.wechat-login-section .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.wechat-login-section .divider span {
  padding: 0 16px;
  color: var(--text-light);
  font-size: 13px;
}

.btn-wechat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 24px;
  background: #07C160;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  font-family: var(--font);
}

.btn-wechat:hover {
  background: #06AD56;
}

.btn-wechat:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.wechat-icon {
  flex-shrink: 0;
}

/* 寰俊鍥炶皟椤甸潰 */
.wechat-callback-section {
  padding: 80px 24px;
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
}

.wechat-callback-icon {
  font-size: 64px;
  margin-bottom: 24px;
}

.wechat-callback-icon.loading {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.wechat-callback-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.wechat-callback-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.wechat-callback-success {
  color: var(--accent);
}

.wechat-callback-error {
  color: #EF4444;
}

/* Wechat Auth View Styles */
.wechat-auth-view {
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.3s ease-in-out;
}
.wechat-qr-box {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-light);
  margin: 16px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}
.auth-divider span {
  padding: 0 16px;
  font-size: 14px;
}
.other-auth-methods button {
  transition: all 0.2s;
}
.other-auth-methods button:hover {
  background-color: var(--bg-hover);
  border-color: var(--primary-color);
  color: var(--primary-color);
}





/* ===== Payment Modal ===== */
.payment-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.payment-modal {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.payment-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-light);
}

.payment-modal-close:hover {
  color: var(--text);
}

.payment-modal h2 {
  margin-bottom: 16px;
  color: var(--text);
}

.payment-amount {
  font-size: 18px;
  margin-bottom: 8px;
}

.payment-amount strong {
  color: var(--primary);
  font-size: 24px;
}

.payment-plan {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.payment-qrcode {
  margin-bottom: 16px;
}

.payment-order-id {
  font-size: 12px;
  color: var(--text-light);
  word-break: break-all;
}

