/* ============================================
   截流大师 - 浅色主题样式
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #6366F1;
    --primary-dark: #4F46E5;
    --primary-light: #818CF8;
    --purple: #8B5CF6;
    --cyan: #06B6D4;
    --amber: #F59E0B;
    --success: #10B981;
    --danger: #EF4444;

    /* 浅色主题 */
    --bg-white: #FFFFFF;
    --bg-gray: #F8FAFC;
    --bg-gray-2: #F1F5F9;
    --bg-card: #FFFFFF;
    --bg-soft: #F8FAFC;

    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --text-subtle: #CBD5E1;

    --border: #E2E8F0;
    --border-light: #F1F5F9;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.1);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
    background: var(--bg-white);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }
/* 禁用态样式在本文件末尾（必须排在所有 .btn-* 变体之后，见那里的说明） */

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.btn-outline {
    background: white;
    color: var(--text-primary);
    border: 1.5px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99,102,241,0.04);
}

.btn-outline-light {
    background: white;
    color: var(--text-primary);
    border: 1.5px solid var(--border);
}
.btn-outline-light:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99,102,241,0.04);
}

.btn-ghost {
    background: rgba(255,255,255,0.1);
    color: white;
    backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.15); }

.btn-douyin {
    background: linear-gradient(135deg, #FE2C55 0%, #FF0050 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(254, 44, 85, 0.3);
}
.btn-douyin:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(254, 44, 85, 0.4);
}

.btn-xhs {
    background: linear-gradient(135deg, #FF2442 0%, #FE6A5A 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(255, 36, 66, 0.3);
}
.btn-xhs:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 36, 66, 0.4);
}

/* ========== Navbar ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition);
}
.navbar.scrolled {
    background: rgba(255,255,255,0.95);
    box-shadow: var(--shadow-sm);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}
.logo-svg { flex-shrink: 0; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.nav-links a:hover {
    color: var(--primary);
    background: rgba(99,102,241,0.06);
}

.nav-actions { display: flex; gap: 12px; align-items: center; }
.nav-actions .btn { padding: 8px 18px; font-size: 13px; }
.nav-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--bg-gray);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
}

/* ========== Hero (Light) ========== */
.hero-light {
    position: relative;
    padding: 120px 0 100px;
    overflow: hidden;
    background: white;
}
.hero-light-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.hero-blob-light {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    z-index: 0;
}
.hero-blob-1-light {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99,102,241,0.25), transparent 70%);
    top: -200px;
    right: -100px;
    animation: float-light 8s ease-in-out infinite;
}
.hero-blob-2-light {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139,92,246,0.2), transparent 70%);
    bottom: -100px;
    left: -50px;
    animation: float2-light 10s ease-in-out infinite;
}
.hero-grid-light {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(99,102,241,0.08) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
}
@keyframes float-light {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}
@keyframes float2-light {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 20px) scale(1.05); }
}

.hero-light-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}
.hero-light-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: rgba(99,102,241,0.1);
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 28px;
}
.hero-light-badge svg { width: 14px; height: 14px; }

.hero-light-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}
.gradient-text-light {
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #EC4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-light-desc {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.hero-light-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.hero-light-stats-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 24px 40px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    max-width: 580px;
    margin: 0 auto;
}
.hero-stat-item { text-align: center; }
.hero-stat-num {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}
.hero-stat-label {
    font-size: 12px;
    color: var(--text-muted);
}
.hero-stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border-light);
}

.hero-light-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    z-index: 2;
}
.scroll-mouse-light {
    width: 22px;
    height: 34px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 5px;
}
.scroll-wheel-light {
    width: 3px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 2px;
    animation: scrollWheel-light 2s ease-in-out infinite;
}
@keyframes scrollWheel-light {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(10px); opacity: 0; }
}

/* ========== Section Headers ========== */
.section-header-light {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}
.section-eyebrow-light {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
}
.section-title-light {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}
.section-desc-light {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
}
.mb-0 { margin-bottom: 0 !important; }

/* ========== Services ========== */
.services-section-light {
    padding: 100px 0;
    background: var(--bg-gray);
    position: relative;
}
.services-grid-light {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    max-width: 1280px;
    margin: 0 auto;
}
.service-card-light {
    background: white;
    border-radius: 20px;
    padding: 36px 32px;
    border: 1px solid var(--border-light);
    position: relative;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}
.service-card-light:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px -12px rgba(0,0,0,0.12);
    border-color: transparent;
}
.service-card-accent-light {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FE2C55, #25F4EE);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.service-card-light:hover .service-card-accent-light { opacity: 1; }
.xhs-accent-light {
    background: linear-gradient(90deg, #FF2442, #FE6A5A);
}
.service-card-header-light {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
}
.service-card-icon-light {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FE2C55;
    background: linear-gradient(135deg, rgba(254,44,85,0.1), rgba(37,244,238,0.1));
}
.platform-brand-icon {
    width: 54px;
    height: 54px;
    display: block;
}
.douyin-icon-light svg {
    filter: drop-shadow(0 2px 8px rgba(254,44,85,0.3));
}
.xhs-icon-light {
    color: #FF2442;
    background: linear-gradient(135deg, rgba(255,36,66,0.1), rgba(254,106,90,0.1));
}
.xhs-icon-light svg {
    filter: drop-shadow(0 2px 8px rgba(255,36,66,0.3));
}
.service-card-tag-light {
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(254,44,85,0.12);
    color: #FE2C55;
    border-radius: 20px;
}
.xhs-tag-light {
    background: rgba(255,36,66,0.12);
    color: #FF2442;
}
.tiktok-accent-light {
    background: linear-gradient(90deg, #20D5EC, #111827 52%, #FE2C55);
}
.tiktok-icon-light {
    color: white;
    background: #111827;
}
.tiktok-icon-light svg {
    filter: drop-shadow(0 3px 10px rgba(32,213,236,0.24));
}
.tiktok-tag-light {
    background: rgba(32,213,236,0.14);
    color: #087E91;
}
.service-card-title-light {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}
.service-card-desc-light {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}
.service-card-features-light {
    list-style: none;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.service-card-features-light li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: var(--text-secondary);
}
.service-card-features-light svg {
    width: 16px;
    height: 16px;
    color: var(--success);
    flex-shrink: 0;
}
.service-card-footer-light {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}
.service-card-price-light {
    display: flex;
    align-items: baseline;
    gap: 2px;
}
.price-num-light {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}
.price-unit-light {
    font-size: 14px;
    color: var(--text-muted);
}

/* ========== Features ========== */
.features-light {
    padding: 100px 0;
    background: white;
}
.features-grid-light {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card-light {
    padding: 32px 28px;
    background: var(--bg-gray);
    border-radius: 16px;
    border: 1px solid transparent;
    transition: all 0.25s ease;
}
.feature-card-light:hover {
    background: white;
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px -12px rgba(0,0,0,0.1);
}
.feature-icon-light {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 20px;
    box-shadow: 0 10px 22px -12px rgba(79, 70, 229, 0.7);
}
.feature-icon-1 { background: linear-gradient(135deg, #6366F1, #8B5CF6); }
.feature-icon-2 { background: linear-gradient(135deg, #F59E0B, #EF4444); }
.feature-icon-3 { background: linear-gradient(135deg, #10B981, #06B6D4); }
.feature-icon-4 { background: linear-gradient(135deg, #8B5CF6, #EC4899); }
.feature-icon-5 { background: linear-gradient(135deg, #3B82F6, #06B6D4); }
.feature-icon-6 { background: linear-gradient(135deg, #EC4899, #F59E0B); }

.feature-card-light h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}
.feature-card-light p {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========== How It Works ========== */
.how-it-works-light {
    padding: 100px 0;
    background: var(--bg-gray);
}
.steps-timeline-light {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}
.step-item-light {
    flex: 1;
    text-align: center;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}
.step-number-light {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(99,102,241,0.15);
}
.step-content-light h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}
.step-content-light p {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.7;
}
.step-connector-light {
    flex-shrink: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--purple));
    margin-top: 32px;
    opacity: 0.3;
}

/* ========== Invite ========== */
.invite-section-light {
    padding: 100px 0;
    background: white;
}
.invite-grid-light {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.invite-left-col-light .section-title-light {
    margin-top: 14px;
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 20px;
}
.invite-desc-light {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
}
.invite-tiers-light {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.invite-tier-light {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: var(--bg-gray);
    border-radius: 14px;
    border: 1px solid var(--border-light);
    transition: all 0.25s ease;
}
.invite-tier-light:hover {
    border-color: var(--primary-light);
    background: rgba(99,102,241,0.04);
    transform: translateX(4px);
}
.tier-badge-light {
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    background: var(--bg-gray-2);
    color: var(--text-muted);
    border-radius: 8px;
    flex-shrink: 0;
    min-width: 48px;
    text-align: center;
}
.gold-badge-light {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
}
.diamond-badge-light {
    background: linear-gradient(135deg, #06B6D4, #8B5CF6);
    color: white;
}
.tier-info-light { flex: 1; }
.tier-name-light {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.tier-condition-light {
    font-size: 12.5px;
    color: var(--text-muted);
}
.tier-rate-light {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.invite-right-col-light { display: flex; justify-content: center; }
.earnings-card-light {
    width: 100%;
    max-width: 420px;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #EC4899 100%);
    border-radius: 24px;
    padding: 36px 32px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 48px -12px rgba(99,102,241,0.4);
}
.earnings-card-glow-light {
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255,255,255,0.2), transparent 60%);
    top: -80px;
    right: -60px;
    border-radius: 50%;
}
.earnings-card-header-light {
    position: relative;
    margin-bottom: 20px;
}
.earnings-badge-light {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.2);
}
.earnings-badge-light svg { width: 14px; height: 14px; }
.earnings-amount-light {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 8px;
    position: relative;
}
.earnings-label-light {
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: 28px;
    position: relative;
}
.earnings-metrics-light {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 28px;
    position: relative;
}
.earning-metric-light {
    text-align: center;
    padding: 12px 8px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
}
.metric-num-light {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 3px;
    font-variant-numeric: tabular-nums;
}
.metric-label-light {
    font-size: 11px;
    opacity: 0.8;
}
.earnings-btn-light {
    width: 100%;
    padding: 14px;
    background: white;
    color: var(--primary);
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
}
.earnings-btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.earnings-btn-light svg { width: 16px; height: 16px; }

/* ========== FAQ ========== */
.faq-section-light {
    padding: 100px 0;
    background: var(--bg-gray);
}
.faq-list-light {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item-light {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.25s ease;
}
.faq-item-light.active {
    border-color: var(--primary-light);
    box-shadow: 0 4px 16px rgba(99,102,241,0.08);
}
.faq-question-light {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.2s ease;
    user-select: none;
}
.faq-question-light:hover {
    color: var(--primary);
}
.faq-question-light svg {
    color: var(--text-muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.faq-item-light.active .faq-question-light svg {
    transform: rotate(180deg);
    color: var(--primary);
}
.faq-answer-light {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
}
.faq-item-light.active .faq-answer-light {
    max-height: 200px;
    padding: 0 24px 20px;
}
.faq-answer-light p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ========== CTA ========== */
.cta-section-light {
    padding: 80px 0;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #EC4899 100%);
    position: relative;
    overflow: hidden;
}
.cta-section-light::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 60%);
    top: -200px;
    right: -100px;
    border-radius: 50%;
}
.cta-content-light {
    text-align: center;
    color: white;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}
.cta-content-light h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.cta-content-light > p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 32px;
}
.cta-actions-light {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
.btn-white {
    background: white;
    color: var(--primary);
    border: 2px solid white;
}
.btn-white:hover {
    background: transparent;
    color: white;
}
.btn-link-light {
    color: white;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}
.btn-link-light:hover { opacity: 1; }

/* ========== Footer ========== */
.footer-light {
    background: #0F172A;
    color: #94A3B8;
    padding: 60px 0 0;
}
.footer-grid-light {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand-light { max-width: 320px; }
.footer-logo-light {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}
.footer-desc-light {
    font-size: 13.5px;
    line-height: 1.7;
    margin-bottom: 20px;
}
.footer-contact-light {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.contact-item-light {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}
.contact-item-light svg { color: #6366F1; width: 14px; height: 14px; flex-shrink: 0; }
.footer-col-light h4 {
    color: white;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
}
.footer-col-light ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col-light a {
    color: #94A3B8;
    font-size: 13.5px;
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-col-light a:hover { color: white; }
.footer-bottom-light {
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
    color: #64748B;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .hero-light-title { font-size: 2.6rem; }
    .services-grid-light { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .features-grid-light { grid-template-columns: repeat(2, 1fr); }
    .steps-timeline-light { flex-direction: column; gap: 0; }
    .step-connector-light {
        width: 2px;
        height: 40px;
        margin: 0 auto;
        background: linear-gradient(180deg, var(--primary), var(--purple));
    }
    .step-item-light { padding: 0; }
    .invite-grid-light { grid-template-columns: 1fr; gap: 40px; }
    .earnings-card-light { max-width: 100%; }
    .footer-grid-light { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .hero-light { padding: 80px 0 80px; }
    .hero-light-title { font-size: 2rem; }
    .hero-light-desc { font-size: 15px; }
    .hero-light-stats-inline {
        flex-direction: column;
        gap: 16px;
        padding: 24px;
    }
    .hero-stat-divider {
        width: 60px;
        height: 1px;
    }
    .services-grid-light { grid-template-columns: 1fr; }
    .section-title-light { font-size: 1.8rem; }
    .features-grid-light { grid-template-columns: 1fr; }
    .services-section-light,
    .features-light,
    .how-it-works-light,
    .invite-section-light,
    .faq-section-light { padding: 60px 0; }
    .cta-section-light { padding: 60px 0; }
    .cta-content-light h2 { font-size: 1.8rem; }
    .earnings-amount-light { font-size: 42px; }
    .earnings-metrics-light { grid-template-columns: 1fr 1fr 1fr; }
    .footer-grid-light { grid-template-columns: 1fr 1fr; gap: 24px; }
    .hero-light-scroll { display: none; }
    .invite-left-col-light .section-title-light { font-size: 1.8rem; }
}
@media (max-width: 480px) {
    .footer-grid-light { grid-template-columns: 1fr; }
    .earnings-metrics-light { grid-template-columns: repeat(3, 1fr); }
}

.auth-modal-light {
    padding: 0;
    width: 480px;
    max-width: 92vw;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

/* 顶部装饰渐变条 */
.auth-modal-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8B5CF6 0%, #6366F1 50%, #06B6D4 100%);
    z-index: 2;
}

.auth-modal-light .modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.04);
    color: var(--text-muted);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.auth-modal-light .modal-close:hover {
    background: rgba(15, 23, 42, 0.08);
    color: var(--text-primary);
    transform: rotate(90deg);
}

/* 弹窗头部 */
.auth-header {
    padding: 36px 40px 22px;
    text-align: center;
    position: relative;
}
.auth-logo {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px -8px rgba(99, 102, 241, 0.5);
}
.auth-logo svg { color: white; }
.auth-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}
.auth-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* Tab 切换 */
.auth-tabs-light {
    display: flex;
    gap: 0;
    margin: 0 40px 28px;
    background: var(--bg-gray);
    padding: 5px;
    border-radius: 12px;
    position: relative;
}
.auth-tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.25s ease;
    position: relative;
    z-index: 1;
}
.auth-tab.active {
    background: white;
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    font-weight: 600;
}

/* ========== Forms ========== */
.auth-form { 
    animation: fadeInUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 40px 36px;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    padding-left: 2px;
}

.form-group input {
    width: 100%;
    height: 46px;
    padding: 0 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-primary);
    background: white;
    transition: all 0.2s ease;
    outline: none;
    box-sizing: border-box;
}
.form-group input:hover {
    border-color: #CBD5E1;
}
.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    background: white;
}
.form-group input::placeholder { 
    color: var(--text-subtle); 
    font-size: 14px;
}

/* 输入框带图标 */
.input-with-icon {
    position: relative;
}
.input-with-icon input {
    padding-left: 44px;
}
.input-with-icon input.has-password-toggle,
.input-with-icon:has(.password-toggle) input {
    padding-right: 46px;
}
.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: color 0.2s ease;
}
.form-group input:focus + .input-icon,
.input-with-icon:focus-within .input-icon {
    color: var(--primary);
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background 0.2s ease;
}

.password-toggle:hover {
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary);
}

.password-toggle svg {
    pointer-events: none;
}

.password-field {
    position: relative;
}

.password-field input {
    width: 100%;
    padding-right: 46px !important;
}

.input-with-btn {
    display: flex;
    gap: 10px;
}
.input-with-btn input { flex: 1; }
.btn-code {
    height: 46px;
    padding: 0 18px;
    background: var(--bg-gray);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.btn-code:hover:not(:disabled) {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.btn-code:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 注册类型切换 */
.form-type-switch-light {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    background: var(--bg-gray);
    padding: 4px;
    border-radius: 10px;
}
.type-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 7px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.type-btn.active {
    background: white;
    color: var(--text-primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    font-weight: 600;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 13px;
}
.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    user-select: none;
}
.checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    margin: 0;
}
.forgot-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.forgot-link:hover { text-decoration: underline; }

/* 登录按钮 */
.btn-primary.btn-block {
    width: 100%;
    height: 48px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    margin-top: 8px;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}
.btn-primary.btn-block:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}
.btn-primary.btn-block:active {
    transform: translateY(0);
}

.auth-tip {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-muted);
}
.auth-tip a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    margin-left: 4px;
}
.auth-tip a:hover { text-decoration: underline; }

/* ========== Platform Select ========== */
.platform-select-light {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.platform-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 12px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    background: white;
}
.platform-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.platform-option:hover {
    border-color: #CBD5E1;
    transform: translateY(-1px);
}
.platform-option.active {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.04);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}
.platform-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--bg-gray);
    transition: all 0.25s ease;
}
.platform-option.active .platform-icon {
    transform: scale(1.1);
}
.platform-icon-douyin svg { color: #FE2C55; }
.platform-icon-xhs svg { color: #FF2442; }
.platform-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

/* ========== Toast ========== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.modal.active {
    display: flex;
}
.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(8px);
}
.modal-content {
    position: relative;
    z-index: 1;
    background: white;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}

.toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 12px 24px;
    background: white;
    color: var(--text-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--border);
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--danger); }

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .hero-title-light { font-size: 2.8rem; }
    .section-title-light { font-size: 2rem; }
    .features-grid-light { grid-template-columns: repeat(2, 1fr); }
    .pricing-cards-light { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .pricing-card-featured-light { transform: none; }
    .invite-banner-light { grid-template-columns: 1fr; padding: 40px; }
    .footer-grid-light { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .navbar { padding: 14px 20px; }
    .nav-links { display: none; }
    .nav-actions .btn { display: inline-flex; padding: 7px 12px; }
    .mobile-menu-btn { display: none; }

    .hero { padding: 100px 20px 60px; min-height: auto; }
    .hero-title-light { font-size: 2rem; }
    .hero-desc-light { font-size: 16px; }
    .hero-stats-light {
        flex-direction: column;
        gap: 20px;
        padding: 24px;
    }
    .hero-stat-divider-light {
        width: 48px;
        height: 1px;
    }

    .service-cards-light { grid-template-columns: 1fr; }
    .features-grid-light { grid-template-columns: 1fr; }
    .section-title-light { font-size: 1.7rem; }

    .invite-stats-light {
        flex-direction: column;
        gap: 20px;
    }
    .invite-banner-light { padding: 32px 24px; }
    .invite-title-light { font-size: 1.5rem; }

    .footer-grid-light {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-bottom-light {
        flex-direction: column;
        text-align: center;
    }

    .auth-modal-light { padding: 28px 20px; }

    .partners-grid-light { gap: 24px; }
    .partners-grid-light span { font-size: 15px; }
}

/* ============================================
   首页改版 - 更清晰的 SaaS 首屏与信息层级
   ============================================ */

.navbar {
    padding: 14px 40px;
    background: rgba(255,255,255,0.92);
}
.navbar .btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.navbar .btn-ghost:hover {
    color: var(--primary);
    background: rgba(99,102,241,0.06);
}
.navbar .btn-primary {
    box-shadow: 0 8px 18px rgba(79,70,229,0.22);
}
.nav-links {
    display: flex;
    align-items: center;
}

.hero-light {
    min-height: 760px;
    padding: 118px 0 76px;
    background:
        linear-gradient(180deg, rgba(248,250,252,0.94) 0%, rgba(255,255,255,1) 58%),
        linear-gradient(135deg, rgba(99,102,241,0.10), rgba(6,182,212,0.08));
}
.hero-blob-light {
    display: none;
}
.hero-grid-light {
    background-image:
        linear-gradient(rgba(99,102,241,0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99,102,241,0.07) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, black 0%, transparent 78%);
    -webkit-mask-image: linear-gradient(180deg, black 0%, transparent 78%);
}
.hero-light-content {
    max-width: 1180px;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
    gap: 54px;
    align-items: center;
    text-align: left;
}
.hero-copy-light {
    max-width: 560px;
}
.hero-light-badge {
    border-radius: 8px;
    background: #EEF2FF;
    border-color: #C7D2FE;
    margin-bottom: 22px;
}
.hero-light-title {
    font-size: 3.45rem;
    line-height: 1.12;
    letter-spacing: 0;
    margin-bottom: 22px;
}
.hero-light-title .gradient-text-light {
    display: block;
    margin-top: 8px;
    background: linear-gradient(135deg, #4F46E5 0%, #06B6D4 54%, #F59E0B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-light-desc {
    margin: 0 0 32px;
    max-width: 530px;
    font-size: 16px;
    line-height: 1.85;
}
.hero-light-actions {
    justify-content: flex-start;
    margin-bottom: 34px;
}
.hero-light-stats-inline {
    justify-content: flex-start;
    max-width: none;
    margin: 0;
    padding: 18px 22px;
    border-radius: 8px;
    box-shadow: none;
    border-color: #DBEAFE;
    background: rgba(255,255,255,0.74);
}
.hero-stat-num {
    color: #3730A3;
}
.hero-light-scroll {
    display: none;
}

.hero-console-light {
    position: relative;
    padding: 18px;
    border-radius: 8px;
    background: #FFFFFF;
    border: 1px solid #DDE7F3;
    box-shadow: 0 28px 70px rgba(15,23,42,0.12);
}
.hero-console-light::before {
    content: '';
    position: absolute;
    inset: -10px;
    z-index: -1;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(79,70,229,0.22), rgba(6,182,212,0.18), rgba(245,158,11,0.16));
}
.console-top-light,
.console-search-light,
.lead-row-light,
.console-footer-light {
    border-radius: 8px;
}
.console-top-light {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 18px;
    background: #F8FAFC;
    border: 1px solid var(--border);
    margin-bottom: 12px;
}
.console-kicker-light,
.console-search-light span,
.console-footer-light span {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 4px;
}
.console-top-light strong {
    display: block;
    font-size: 22px;
    line-height: 1.25;
    color: var(--text-primary);
}
.console-status-light {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(16,185,129,0.12);
    color: #047857;
    font-size: 12px;
    font-weight: 700;
}
.console-search-light {
    padding: 16px 18px;
    background: #EEF2FF;
    color: #312E81;
    margin-bottom: 12px;
}
.console-search-light strong {
    font-size: 15px;
}
.console-list-light {
    display: grid;
    gap: 10px;
}
.lead-row-light {
    display: grid;
    grid-template-columns: 12px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 15px 16px;
    background: #FFFFFF;
    border: 1px solid var(--border-light);
}
.lead-row-light.is-hot {
    border-color: rgba(245,158,11,0.42);
    background: #FFFBEB;
}
.lead-platform-light {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.douyin-dot-light { background: #FE2C55; }
.xhs-dot-light { background: #FF2442; }
.cyan-dot-light { background: #06B6D4; }
.lead-row-light strong {
    display: block;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.35;
}
.lead-row-light p {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 12px;
}
.lead-row-light em {
    font-style: normal;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.console-footer-light {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}
.console-footer-light > div {
    padding: 14px;
    border-radius: 8px;
    background: #F8FAFC;
    border: 1px solid var(--border-light);
}
.console-footer-light strong {
    color: var(--text-primary);
    font-size: 13px;
}

.services-section-light,
.features-light,
.how-it-works-light,
.invite-section-light,
.faq-section-light {
    padding: 82px 0;
}
.section-header-light {
    margin-bottom: 42px;
}
.section-eyebrow-light {
    letter-spacing: 0;
    text-transform: none;
}
.section-title-light,
.invite-left-col-light .section-title-light,
.cta-content-light h2 {
    letter-spacing: 0;
}
.service-card-light,
.feature-card-light,
.invite-tier-light,
.earnings-card-light,
.faq-item-light {
    border-radius: 8px;
}
.service-card-light {
    padding: 30px;
}
.service-card-icon-light,
.feature-icon-light {
    border-radius: 8px;
}

@media (max-width: 1024px) {
    .hero-light {
        min-height: auto;
    }
    .hero-light-content {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .hero-copy-light {
        max-width: 720px;
    }
    .hero-console-light {
        max-width: 720px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 12px 18px;
    }
    .nav-links {
        display: none;
    }
    .navbar .nav-actions .btn {
        display: inline-flex;
        padding: 7px 12px;
        font-size: 12px;
    }
    .navbar .mobile-menu-btn {
        display: none;
    }
    .nav-links.mobile-open {
        position: absolute;
        top: 100%;
        left: 12px;
        right: 12px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 10px;
        background: rgba(255,255,255,0.98);
        border: 1px solid var(--border);
        border-radius: 8px;
        box-shadow: var(--shadow-lg);
    }
    .nav-links.mobile-open a {
        display: block;
        padding: 10px 12px;
    }
    .hero-light {
        padding: 92px 0 56px;
    }
    .hero-light-title {
        font-size: 2.25rem;
    }
    .hero-light-actions {
        align-items: stretch;
    }
    .hero-light-actions .btn {
        width: 100%;
    }
    .hero-light-stats-inline {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 10px;
        padding: 14px;
    }
    .hero-stat-divider {
        display: none;
    }
    .console-top-light,
    .lead-row-light,
    .console-footer-light {
        grid-template-columns: 1fr;
    }
    .lead-row-light {
        display: grid;
    }
    .lead-platform-light {
        display: none;
    }
    .services-section-light,
    .features-light,
    .how-it-works-light,
    .invite-section-light,
    .faq-section-light {
        padding: 58px 0;
    }
}

@media (max-width: 480px) {
    .hero-light-title {
        font-size: 1.95rem;
    }
    .hero-console-light {
        padding: 12px;
    }
}

/* ============================================
   用户中心 - Dashboard
   ============================================ */

body.dashboard-body {
    background: var(--bg-gray);
    min-height: 100vh;
}

/* 顶部导航 */
.navbar-dashboard {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: white;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 24px;
    z-index: 100;
    gap: 24px;
}
.navbar-dashboard .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 17px;
}
.navbar-dashboard .logo-svg {
    color: var(--primary);
}
.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--bg-gray);
    border-radius: 10px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
}
.mobile-menu-btn:hover {
    background: var(--bg-gray-2);
    color: var(--text-primary);
}
.nav-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: transparent;
    color: var(--text-secondary);
}
.btn-ghost:hover {
    background: var(--bg-gray);
    color: var(--text-primary);
}
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* 布局 */
.dashboard-layout {
    display: flex;
    padding-top: 64px;
    min-height: 100vh;
}

/* 侧边栏 */
.dashboard-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: white;
    border-right: 1px solid var(--border);
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    bottom: 0;
    left: 0;
    z-index: 50;
    overflow-y: auto;
}
.dashboard-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 10px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(99,102,241,0.08) 0%, rgba(139,92,246,0.05) 100%);
    border-radius: 12px;
    border: 1px solid rgba(99,102,241,0.1);
}
.dashboard-user .user-info {
    flex: 1;
    min-width: 0;
}
.dashboard-user .name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}
.plan-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 20px;
    background: rgba(99,102,241,0.12);
    color: var(--primary);
}
.plan-badge.paid {
    background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(239,68,68,0.1));
    color: #F59E0B;
}

/* 侧栏菜单 */
.sidebar-menu {
    list-style: none;
    flex: 1;
}
.sidebar-menu li { margin-bottom: 2px; }
.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}
.sidebar-menu a:hover {
    background: var(--bg-gray);
    color: var(--text-primary);
}
.sidebar-menu a.active {
    background: linear-gradient(135deg, rgba(99,102,241,0.12) 0%, rgba(139,92,246,0.08) 100%);
    color: var(--primary);
    font-weight: 600;
}
.sidebar-menu a.active::before {
    content: '';
    position: absolute;
    left: -14px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 22px;
    background: var(--primary);
    border-radius: 0 4px 4px 0;
}
.sidebar-menu svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.sidebar-footer {
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.logout-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: transparent;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}
.logout-btn:hover {
    background: rgba(239,68,68,0.06);
    color: var(--danger);
}
.logout-btn svg { width: 16px; height: 16px; }

/* 主内容区 */
.dashboard-main {
    flex: 1;
    margin-left: 240px;
    padding: 28px 32px;
    min-height: calc(100vh - 64px);
}

.page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

/* 数据卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}
.stat-card {
    background: white;
    border-radius: 14px;
    padding: 20px;
    border: 1px solid var(--border);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -12px rgba(0,0,0,0.1);
    border-color: transparent;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--purple));
    opacity: 0;
    transition: opacity 0.25s ease;
}
.stat-card:hover::before { opacity: 1; }
.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.stat-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stat-card-trend {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    font-weight: 600;
    color: var(--success);
    padding: 3px 8px;
    background: rgba(16,185,129,0.1);
    border-radius: 20px;
}
.stat-card-trend.down { color: var(--danger); background: rgba(239,68,68,0.1); }
.stat-card-trend svg { width: 12px; height: 12px; }
.stat-card-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 6px;
}
.stat-card-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

/* 通用卡片 */
.card {
    background: white;
    border-radius: 14px;
    border: 1px solid var(--border);
    margin-bottom: 20px;
    overflow: hidden;
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
}
.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}
.card-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
}
.card-body {
    padding: 22px;
}
.chart-container {
    padding: 20px 22px;
    height: 300px;
    position: relative;
}

/* 服务状态卡片 */
.service-status {
    padding: 18px 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.service-status-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg-gray);
    border-radius: 12px;
    border: 1px solid var(--border);
}
.service-status-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.service-status-info {
    flex: 1;
    min-width: 0;
}
.service-status-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.service-status-text {
    font-size: 12px;
    color: var(--text-muted);
}
.status-tag {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
}
.status-tag.active {
    background: rgba(16,185,129,0.12);
    color: var(--success);
}
.status-tag.inactive {
    background: var(--bg-gray-2);
    color: var(--text-muted);
}

/* 服务计划卡片 */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.plan-card {
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 28px 24px;
    transition: all 0.25s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}
.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -12px rgba(0,0,0,0.12);
    border-color: var(--primary-light);
}
.plan-card.featured {
    border-color: var(--primary);
    box-shadow: 0 8px 24px -8px rgba(99,102,241,0.3);
}
.plan-card.featured::before {
    content: '推荐';
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    background: linear-gradient(135deg, #F59E0B, #EF4444);
    color: white;
    border-radius: 20px;
}
.plan-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.plan-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}
.plan-price {
    margin-bottom: 24px;
}
.plan-price .amount {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}
.plan-price .unit {
    font-size: 14px;
    color: var(--text-muted);
    margin-left: 4px;
}
.plan-features {
    list-style: none;
    margin-bottom: 24px;
    flex: 1;
}
.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    font-size: 13px;
    color: var(--text-secondary);
}
.plan-features li svg {
    width: 16px;
    height: 16px;
    color: var(--success);
    flex-shrink: 0;
}
.plan-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-gray);
    color: var(--text-secondary);
}
.plan-btn:hover {
    background: var(--primary);
    color: white;
}
.plan-card.featured .plan-btn {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    color: white;
}
.plan-card.featured .plan-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99,102,241,0.4);
}

/* 表格 */
.table-wrapper {
    overflow-x: auto;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th {
    text-align: left;
    padding: 12px 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--bg-gray);
    border-bottom: 1px solid var(--border);
}
.data-table td {
    padding: 14px 20px;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td {
    background: rgba(99,102,241,0.02);
}
.data-table .text-primary { color: var(--text-primary); font-weight: 500; }

.order-status {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
}
.order-status.pending { background: rgba(245,158,11,0.1); color: #F59E0B; }
.order-status.paid { background: rgba(16,185,129,0.1); color: var(--success); }
.order-status.failed { background: rgba(239,68,68,0.1); color: var(--danger); }
.order-status.refunded { background: var(--bg-gray-2); color: var(--text-muted); }

/* 邀请卡片 */
.invite-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.invite-link-card {
    background: linear-gradient(135deg, rgba(99,102,241,0.08) 0%, rgba(139,92,246,0.05) 100%);
    border: 1px solid rgba(99,102,241,0.15);
    border-radius: 14px;
    padding: 24px;
}
.invite-link-card h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}
.invite-link-input {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}
.invite-link-input input {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    background: white;
    color: var(--text-primary);
    outline: none;
}
.copy-btn {
    padding: 10px 18px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.copy-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}
.copy-btn svg { width: 14px; height: 14px; }

.invite-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.invite-stat-item {
    background: white;
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    border: 1px solid var(--border);
}
.invite-stat-item .num {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2px;
}
.invite-stat-item .label {
    font-size: 11px;
    color: var(--text-muted);
}

/* 支付弹窗 */
.payment-modal {
    width: 400px;
    max-width: 92vw;
    padding: 32px;
    text-align: center;
}
.payment-modal h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}
.payment-modal .amount {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.payment-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.payment-countdown span {
    color: var(--danger);
    font-weight: 600;
}
.qr-code-box {
    width: 200px;
    height: 200px;
    margin: 0 auto 16px;
    padding: 12px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border);
}
.qr-code-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.payment-tip {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.payment-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.payment-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    animation: payment-pulse 1.2s ease-in-out infinite;
}
.payment-status.success { color: var(--success); }
.payment-status.success .payment-status-dot { background: var(--success); animation: none; }
.payment-status.error { color: var(--danger, #EF4444); }
.payment-status.error .payment-status-dot { background: var(--danger, #EF4444); animation: none; }
@keyframes payment-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

.order-detail-modal {
    width: 520px;
    max-width: 92vw;
    padding: 28px;
}

.order-detail-modal h3 {
    margin: 0 0 18px;
    font-size: 20px;
    color: var(--text-primary);
}

.order-detail-list {
    display: grid;
    gap: 10px;
}

.order-detail-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #F8FAFC;
    border: 1px solid #E3EAF4;
}

.order-detail-list span {
    color: var(--text-muted);
    font-size: 13px;
    white-space: nowrap;
}

.order-detail-list strong {
    color: var(--text-primary);
    font-size: 13px;
    text-align: right;
    word-break: break-all;
}

/* 响应式 - 用户中心 */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .plans-grid { grid-template-columns: 1fr; }
    .invite-section { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    .dashboard-sidebar.open { transform: translateX(0); }
    .dashboard-main {
        margin-left: 0;
        padding: 20px 16px;
    }
    .mobile-menu-btn { display: flex; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat-card { padding: 16px; }
    .stat-card-value { font-size: 22px; }
    .service-status { grid-template-columns: 1fr; }
    .invite-stats { grid-template-columns: 1fr; }
    .navbar-dashboard { padding: 0 16px; }
    .page-title { font-size: 18px; }
}

/* ============================================
   用户中心优化 - 控制台视图
   ============================================ */

body.dashboard-page,
body.dashboard-body {
    background: #F6F8FC;
    color: var(--text-primary);
}

.navbar-dashboard {
    height: 68px;
    padding: 0 28px;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(18px);
    box-shadow: 0 1px 0 rgba(15,23,42,0.06);
    border-bottom: none;
}

.navbar-dashboard .logo {
    font-size: 18px;
}

.dashboard-layout {
    padding-top: 68px;
}

.dashboard-sidebar {
    top: 68px;
    width: 264px;
    padding: 18px 14px;
    background: #FFFFFF;
    border-right: 1px solid #E6ECF5;
}

.dashboard-user {
    border-radius: 8px;
    padding: 14px;
    background: linear-gradient(135deg, #EEF2FF 0%, #F0FDFA 100%);
    border-color: #DDE7F3;
}

.plan-badge,
.plan-badge-active {
    border-radius: 999px;
}

.plan-badge-active {
    background: rgba(245,158,11,0.14);
    color: #B45309;
}

.sidebar-menu a,
.logout-btn {
    border-radius: 8px;
}

.sidebar-menu a.active {
    background: #EEF2FF;
    color: #3730A3;
}

.sidebar-menu a.active::before {
    left: -14px;
    height: 28px;
    background: #4F46E5;
}

.dashboard-main {
    margin-left: 264px;
    padding: 26px 32px 40px;
    max-width: 1440px;
}

.page-title {
    margin-bottom: 10px;
    letter-spacing: 0;
}

.page-desc {
    margin: -2px 0 22px;
    color: var(--text-secondary);
    font-size: 14px;
}

.stats-grid {
    gap: 14px;
    margin-bottom: 18px;
}

.stat-card,
.card,
.plan-card,
.invite-card-big,
.payment-modal {
    border-radius: 8px;
    border-color: #E3EAF4;
    box-shadow: 0 1px 2px rgba(15,23,42,0.03);
}

.stat-card {
    padding: 18px;
}

.stat-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(15,23,42,0.08);
}

.stat-card::before {
    opacity: 1;
    height: 2px;
    background: linear-gradient(90deg, #4F46E5, #06B6D4);
}

.stat-card-icon {
    border-radius: 8px;
}

.stat-card-trend.neutral {
    color: #475569;
    background: #F1F5F9;
}

.stat-card-label {
    color: #64748B;
}

.stat-card-value {
    font-size: 30px;
    letter-spacing: 0;
}

.overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
    gap: 18px;
    align-items: stretch;
    margin-bottom: 20px;
}

.chart-card,
.health-card {
    margin-bottom: 0;
}

.card-header {
    padding: 18px 20px;
}

.card-title {
    font-size: 16px;
}

.card-subtitle {
    display: block;
    margin-top: 4px;
}

.card-total {
    color: #047857;
    font-size: 18px;
    font-variant-numeric: tabular-nums;
}

.chart-container {
    height: 320px;
}

.account-ledger {
    display: grid;
    gap: 10px;
    padding: 18px 20px 12px;
}

.account-ledger div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #F8FAFC;
    border: 1px solid #EEF2F7;
}

.account-ledger span {
    color: var(--text-secondary);
    font-size: 13px;
}

.account-ledger strong {
    color: var(--text-primary);
    font-size: 16px;
    font-variant-numeric: tabular-nums;
}

.quick-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 20px 20px;
}

.quick-panel button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    border: 1px solid #DDE7F3;
    border-radius: 8px;
    background: white;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 600;
}

.quick-panel button:hover {
    color: #4F46E5;
    border-color: #C7D2FE;
}

.service-status {
    gap: 14px;
}

.service-status-item {
    border-radius: 8px;
    background: #F8FAFC;
    border-color: #E3EAF4;
}

.service-status-item.is-active {
    background: #FFFFFF;
}

.service-status-icon {
    border-radius: 8px;
}

.douyin-service-icon {
    background: rgba(254,44,85,0.12);
    color: #FE2C55;
}

.xhs-service-icon {
    background: rgba(255,36,66,0.12);
    color: #FF2442;
}

.tiktok-service-icon {
    background: linear-gradient(135deg, rgba(37,244,238,0.16), rgba(254,44,85,0.12));
    color: #111827;
}

.home-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding: 24px;
    border: 1px solid #E3EAF4;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(79,70,229,0.08), rgba(6,182,212,0.07)),
        #FFFFFF;
}

.home-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    margin-bottom: 10px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #EEF2FF;
    color: #4338CA;
    font-size: 12px;
    font-weight: 800;
}

.home-hero .page-title {
    margin-bottom: 8px;
}

.home-hero .page-desc {
    margin-bottom: 0;
}

.home-buy-btn,
.empty-product-card .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.empty-product-card {
    display: flex;
    min-height: 320px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 44px 28px;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(248,250,252,0), rgba(248,250,252,0.72)),
        #FFFFFF;
}

.empty-product-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    margin-bottom: 20px;
    border: 1px solid #DDE7F3;
    border-radius: 8px;
    background: #F8FAFC;
}

.empty-product-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 8px;
    background: #EEF2FF;
    color: #4F46E5;
}

.empty-product-card h3 {
    margin: 0 0 8px;
    color: var(--text-primary);
    font-size: 22px;
}

.empty-product-card p {
    max-width: 420px;
    margin: 0 0 22px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.active-product-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.active-product-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 22px;
    border: 1px solid #E3EAF4;
    border-radius: 8px;
    background: #FFFFFF;
    box-shadow: 0 1px 2px rgba(15,23,42,0.03);
}

.active-product-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 8px;
}

.active-product-main {
    min-width: 0;
}

.active-product-label {
    margin-bottom: 6px;
    color: #64748B;
    font-size: 12px;
    font-weight: 800;
}

.active-product-main h3 {
    margin: 0 0 6px;
    color: var(--text-primary);
    font-size: 20px;
}

.active-product-main p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
}

.status-tag.active,
.status-tag.pending,
.status-tag.expired {
    border-radius: 999px;
}

.status-tag.pending {
    background: rgba(245,158,11,0.12);
    color: #B45309;
}

.status-tag.expired {
    background: #E2E8F0;
    color: #64748B;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.plan-card {
    padding: 24px;
    position: relative;
    background: white;
}

.plan-card.active {
    border-color: #4F46E5;
    box-shadow: 0 16px 34px rgba(79,70,229,0.12);
}

.plan-badge-top {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #FEF3C7;
    color: #B45309;
    font-size: 12px;
    font-weight: 700;
}

.plan-card-header h3 {
    margin: 0 0 14px;
    font-size: 18px;
}

.price-currency {
    color: var(--text-muted);
    font-size: 18px;
}

.price-amount {
    color: var(--text-primary);
    font-size: 38px;
    font-weight: 800;
}

.price-unit {
    color: var(--text-muted);
    font-size: 13px;
}

.product-plan-list {
    display: grid;
    gap: 20px;
}

.product-plan-section {
    padding: 22px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #FFFFFF;
    box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}

.product-plan-section.active {
    border-color: #A5B4FC;
    box-shadow: 0 14px 30px rgba(79,70,229,0.1);
}

.product-plan-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.product-title-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.product-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #EEF2FF;
    color: #4F46E5;
    flex-shrink: 0;
}

.product-title-row h3 {
    margin: 0 0 4px;
    font-size: 18px;
    color: var(--text-primary);
}

.product-title-row p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #FEF3C7;
    color: #B45309;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.cycle-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.cycle-card {
    display: flex;
    flex-direction: column;
    min-height: 292px;
    padding: 18px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #F8FAFC;
}

.cycle-card.active {
    border-color: #4F46E5;
    background: #FFFFFF;
    box-shadow: 0 12px 28px rgba(79,70,229,0.12);
}

.cycle-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
}

.cycle-heading {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cycle-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    flex: 0 0 40px;
    box-shadow: 0 9px 20px -12px rgba(79, 70, 229, 0.75);
}

.cycle-icon-1 { background: linear-gradient(135deg, #6366F1, #8B5CF6); }
.cycle-icon-2 { background: linear-gradient(135deg, #3B82F6, #06B6D4); }
.cycle-icon-3 { background: linear-gradient(135deg, #10B981, #06B6D4); }
.cycle-icon-4 { background: linear-gradient(135deg, #8B5CF6, #EC4899); }

.cycle-name {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 800;
}

.cycle-days {
    color: var(--text-muted);
    font-size: 12px;
    white-space: nowrap;
}

.cycle-card .plan-price {
    margin-bottom: 10px;
}

.cycle-card .price-amount {
    font-size: 32px;
}

.saving-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: 26px;
    margin-bottom: 10px;
    padding: 0 9px;
    border-radius: 8px;
    background: #ECFDF5;
    color: #047857;
    font-size: 12px;
    font-weight: 900;
}

.cycle-desc {
    min-height: 38px;
    margin: 0 0 10px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.45;
}

.cycle-card .plan-features {
    flex: 1;
    margin-bottom: 16px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.data-table th {
    letter-spacing: 0;
    text-transform: none;
}

.user-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 18px 0 4px;
    flex-wrap: wrap;
}

.user-pagination .page-btn {
    min-width: 34px;
    height: 34px;
    padding: 0 11px;
    border: 1px solid #DDE7F3;
    border-radius: 8px;
    background: #FFFFFF;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
}

.user-pagination .page-btn:hover:not(:disabled) {
    border-color: #4F46E5;
    color: #4F46E5;
    background: #EEF2FF;
}

.user-pagination .page-btn.active {
    border-color: #4F46E5;
    background: #4F46E5;
    color: #FFFFFF;
}

.user-pagination .page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.user-pagination .page-ellipsis {
    color: var(--text-muted);
    padding: 0 4px;
    font-size: 13px;
}

.invite-card-big {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: stretch;
    padding: 22px;
    margin-bottom: 20px;
    background: #FFFFFF;
    border: 1px solid #DDE7F3;
    border-radius: 8px;
}

.invite-card-big h3 {
    margin: 0 0 14px;
    font-size: 20px;
    line-height: 1.25;
}

.invite-card-big-left {
    min-width: 0;
    padding: 2px;
}

.invite-code-display,
.url-box {
    display: flex;
    gap: 12px;
    align-items: center;
}

.invite-code-display {
    width: fit-content;
    max-width: 100%;
    margin-bottom: 16px;
    padding: 8px;
    border: 1px solid #DDE7F3;
    border-radius: 8px;
    background: #F8FAFC;
}

.invite-code-display span {
    min-width: 190px;
    padding: 8px 12px;
    border-radius: 6px;
    background: #FFFFFF;
    border: 1px solid #E3EAF4;
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.25;
    text-align: center;
}

.invite-code-display .btn {
    height: 42px;
    padding: 0 16px;
    white-space: nowrap;
}

.invite-url-display label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 13px;
}

.url-box input {
    flex: 1;
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #DDE7F3;
    border-radius: 8px;
    background: #F8FAFC;
    color: var(--text-secondary);
}

.url-box .btn {
    height: 42px;
    padding: 0 16px;
    white-space: nowrap;
}

.invite-card-big-right {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    align-content: stretch;
}

.invite-card-stats-only {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.invite-stat-mini {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #F8FAFC;
    border: 1px solid #E3EAF4;
}

.invite-stat-mini .num {
    order: 2;
    font-size: 20px;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

.invite-stat-mini .label {
    order: 1;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
}

.settings-form {
    padding: 22px;
}

.settings-form .form-group input {
    height: 44px;
}

.settings-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.settings-status {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #ECFDF5;
    color: #047857;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.settings-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.settings-layout-single {
    display: block;
    max-width: 920px;
}

.account-profile-card {
    position: sticky;
    top: 92px;
    padding: 24px;
    border: 1px solid #DDE7F3;
    border-radius: 8px;
    background:
        linear-gradient(180deg, #EEF2FF 0%, #FFFFFF 46%),
        #FFFFFF;
    box-shadow: 0 1px 2px rgba(15,23,42,0.03);
}

.account-profile-card h3 {
    margin: 0 0 6px;
    font-size: 20px;
    color: var(--text-primary);
}

.account-profile-card p {
    margin: 0 0 14px;
    color: var(--text-secondary);
    font-size: 13px;
    word-break: break-all;
}

.account-plan-pill {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(79,70,229,0.1);
    color: #3730A3;
    font-size: 12px;
    font-weight: 800;
}

.account-meta-list {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.account-meta-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid #E6ECF5;
}

.account-meta-list span {
    color: var(--text-muted);
    font-size: 12px;
}

.account-meta-list strong {
    color: var(--text-primary);
    font-size: 13px;
    text-align: right;
}

.settings-stack {
    display: grid;
    gap: 18px;
}

.settings-card {
    margin-bottom: 0;
}

.settings-form-grid,
.settings-password-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.settings-form-grid .form-group,
.settings-password-grid .form-group {
    margin-bottom: 0;
}

.settings-form-grid .form-group:first-child,
.settings-password-grid .form-group:first-child,
.security-note,
.settings-actions {
    grid-column: 1 / -1;
}

.settings-readonly-row {
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #E3EAF4;
    border-radius: 8px;
    background: #F8FAFC;
}

.settings-readonly-row span {
    display: block;
    margin-bottom: 4px;
    color: var(--text-muted);
    font-size: 12px;
}

.settings-readonly-row strong {
    color: var(--text-primary);
    font-size: 14px;
    word-break: break-all;
}

.security-note {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #F8FAFC;
    color: var(--text-secondary);
    font-size: 13px;
}

.security-note svg {
    color: #10B981;
    flex-shrink: 0;
}

.settings-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 4px;
}

.loading,
.error-tip {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: white;
    border: 1px solid #E3EAF4;
    color: var(--text-secondary);
}

.loading-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #E2E8F0;
    border-top-color: #4F46E5;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 1180px) {
    .overview-grid,
    .invite-card-big,
    .settings-layout {
        grid-template-columns: 1fr;
    }
    .account-profile-card {
        position: static;
    }
    .invite-card-big {
        grid-template-columns: 1fr;
    }
    .plan-grid {
        grid-template-columns: 1fr;
    }
    .cycle-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .dashboard-main {
        margin-left: 0;
        padding: 18px 14px 34px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .quick-panel,
    .service-status {
        grid-template-columns: 1fr;
    }
    .home-hero {
        align-items: stretch;
        flex-direction: column;
        padding: 20px;
    }
    .home-buy-btn {
        width: 100%;
    }
    .active-product-list,
    .active-product-card {
        grid-template-columns: 1fr;
    }
    .active-product-card {
        align-items: flex-start;
    }
    .invite-code-display,
    .url-box {
        align-items: stretch;
        flex-direction: column;
    }
    .invite-code-display {
        width: 100%;
    }
    .invite-code-display span {
        min-width: 0;
    }
    .settings-heading {
        flex-direction: column;
    }
    .settings-form-grid,
    .settings-password-grid {
        grid-template-columns: 1fr;
    }
    .settings-actions {
        justify-content: stretch;
    }
    .settings-actions .btn {
        width: 100%;
    }
    .account-profile-card {
        padding: 20px;
    }
    .product-plan-section {
        padding: 18px;
    }
    .product-plan-header {
        flex-direction: column;
    }
    .cycle-grid {
        grid-template-columns: 1fr;
    }
    .cycle-card {
        min-height: auto;
    }
}

/* ========== Unified Interface Polish ========== */
:root {
    --ui-radius: 8px;
    --ui-radius-lg: 8px;
    --ui-border: #E2E8F0;
    --ui-border-strong: #CBD5E1;
    --ui-surface: #FFFFFF;
    --ui-surface-muted: #F8FAFC;
    --ui-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    --ui-shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.18);
    --ui-focus: 0 0 0 3px rgba(79, 70, 229, 0.14);
}

.btn,
.btn-primary,
.btn-outline,
.btn-outline-light,
.btn-white,
.btn-ghost,
.btn-code,
.plan-btn,
.copy-btn,
.logout-btn,
.earnings-btn-light,
.quick-panel button {
    min-height: 40px;
    border-radius: var(--ui-radius);
    font-weight: 700;
    letter-spacing: 0;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.btn:focus-visible,
.btn-primary:focus-visible,
.btn-outline:focus-visible,
.btn-white:focus-visible,
.btn-ghost:focus-visible,
.btn-code:focus-visible,
.copy-btn:focus-visible,
.plan-btn:focus-visible,
.logout-btn:focus-visible,
.quick-panel button:focus-visible,
.modal-close:focus-visible {
    outline: none;
    box-shadow: var(--ui-focus);
}

.btn:hover,
.btn-primary:hover,
.btn-outline:hover,
.btn-white:hover,
.earnings-btn-light:hover,
.plan-btn:hover,
.copy-btn:hover,
.quick-panel button:hover {
    transform: translateY(-1px);
}

.card,
.stat-card,
.quick-panel,
.service-status,
.plan-card,
.invite-card,
.invite-card-big,
.commissions-summary-card,
.commissions-table,
.settings-card,
.account-profile-card,
.empty-state,
.loading,
.error-tip {
    border-radius: var(--ui-radius-lg);
    border-color: var(--ui-border);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.card-header,
.modal-header,
.modal-footer {
    border-color: #EEF2F7;
}

.form-group input,
.form-group select,
.form-group textarea,
.settings-readonly-row,
.url-box,
.invite-code-display,
.filter-select,
.search-input {
    border-radius: var(--ui-radius);
    border-color: var(--ui-border);
    background-color: var(--ui-surface);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.filter-select:focus,
.search-input:focus {
    outline: none;
    border-color: #4F46E5;
    box-shadow: var(--ui-focus);
}

.modal-overlay {
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
}

.modal-content,
.auth-modal-light,
.payment-modal,
.order-detail-modal {
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: var(--ui-radius-lg);
    box-shadow: var(--ui-shadow-lg);
    overflow: hidden;
}

.auth-modal-light .modal-close,
.payment-modal .modal-close,
.order-detail-modal .modal-close,
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius);
    background: var(--ui-surface-muted);
    color: #64748B;
    cursor: pointer;
    box-shadow: none;
    transform: none;
}

.auth-modal-light .modal-close:hover,
.payment-modal .modal-close:hover,
.order-detail-modal .modal-close:hover,
.modal-close:hover {
    background: #FEF2F2;
    border-color: #FCA5A5;
    color: #DC2626;
    transform: none;
}

.modal-close svg {
    width: 18px;
    height: 18px;
}

.payment-modal h3,
.order-detail-modal h3,
.auth-title,
.card-title {
    letter-spacing: 0;
}

.toast {
    border-radius: var(--ui-radius);
    border: 1px solid var(--ui-border);
    box-shadow: var(--ui-shadow);
}

/* ========== 用户中心内的管理员能力 ========== */
.admin-menu-label {
    margin: 18px 8px 8px;
    padding-top: 14px;
    border-top: 1px solid #E6ECF5;
    color: #94A3B8;
    font-size: 12px;
    font-weight: 800;
}

.admin-card-toolbar {
    gap: 14px;
    flex-wrap: wrap;
}

.admin-filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.admin-filter-row input,
.manage-modal .form-group input,
.manage-modal .form-group select,
.manage-modal .form-group textarea {
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #DDE7F3;
    border-radius: 8px;
    background: #FFFFFF;
    color: var(--text-primary);
    font-size: 14px;
}

.manage-modal .form-group textarea {
    min-height: 92px;
    padding: 11px 12px;
    line-height: 1.55;
    resize: vertical;
}

.admin-filter-row input {
    width: 240px;
}

.admin-order-filter-row {
    flex-wrap: wrap;
}

.admin-order-filter-row input {
    width: 260px;
}

.admin-order-filter-row .filter-select {
    width: 128px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #DDE7F3;
    border-radius: 8px;
    background: #FFFFFF;
    color: var(--text-primary);
    font-size: 14px;
}

.manage-modal {
    width: min(760px, calc(100vw - 32px));
    max-width: 760px;
    max-height: min(86vh, 760px);
    padding: 0;
    overflow: hidden;
}

.manage-modal h3 {
    margin: 0;
    padding: 24px 28px 16px;
    color: var(--text-primary);
    font-size: 22px;
    line-height: 1.25;
}

.manage-modal-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-height: calc(86vh - 154px);
    padding: 0 28px 22px;
    overflow-y: auto;
}

.manage-modal .form-group {
    margin: 0;
    min-width: 0;
}

.manage-modal .span-2 {
    grid-column: 1 / -1;
}

.manage-modal .form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
}

.manage-modal .form-group input,
.manage-modal .form-group select {
    width: 100%;
    height: 44px;
}

.partner-rate-wrap small {
    display: block;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.5;
}

.percent-input {
    display: flex;
    align-items: center;
    min-height: 44px;
    border: 1px solid #DDE7F3;
    border-radius: 8px;
    background: #FFFFFF;
    overflow: hidden;
}

.percent-input input {
    min-width: 0;
    flex: 1;
    height: 42px;
    padding: 0 12px;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.percent-input span {
    min-width: 44px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #E6ECF5;
    background: #F8FAFC;
    color: var(--text-secondary);
    font-weight: 800;
}

.manage-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 28px 24px;
    border-top: 1px solid #EEF2F7;
    background: #FAFCFF;
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.role-card {
    padding: 24px;
}

.role-card-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 8px;
    background: #EEF2FF;
    color: #4F46E5;
}

.role-card-icon.user {
    background: #ECFDF5;
    color: #059669;
}

.role-card h3 {
    margin: 0 0 8px;
    color: var(--text-primary);
    font-size: 20px;
}

.role-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.role-card p {
    margin: 0 0 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.role-menu-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}

.role-menu-list span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #EEF2FF;
    color: #3730A3;
    font-size: 12px;
    font-weight: 800;
}

.role-card ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.role-card li {
    padding: 10px 12px;
    border: 1px solid #E6ECF5;
    border-radius: 8px;
    background: #F8FAFC;
    color: var(--text-primary);
    font-weight: 700;
}

.finance-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.45fr);
    gap: 18px;
    align-items: start;
}

.partner-finance-card {
    margin-bottom: 22px;
    overflow: hidden;
}

.manage-modal:has(.partner-detail-modal-body) {
    width: min(1080px, calc(100vw - 32px));
    max-width: 1080px;
}

.manage-modal-body:has(.partner-detail-modal-body) {
    display: block;
}

.partner-detail-modal-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.partner-finance-summary,
.partner-detail-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 0 0 16px;
    border-bottom: 1px solid #E6ECF5;
}

.partner-finance-summary div,
.partner-detail-summary div {
    display: flex;
    min-height: 76px;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    padding: 14px 16px;
    border: 1px solid #E6ECF5;
    border-radius: 8px;
    background: linear-gradient(135deg, #F8FAFC 0%, #FFFFFF 100%);
}

.partner-finance-summary span,
.partner-detail-summary span {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
}

.partner-finance-summary strong,
.partner-detail-summary strong {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 900;
}

.partner-detail-table {
    max-height: 420px;
}

.partner-detail-pagination {
    margin: 16px 0 0;
}

.product-admin-grid {
    display: grid;
    gap: 18px;
}

.product-admin-card {
    overflow: hidden;
}

.product-admin-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 20px 16px;
    border-bottom: 1px solid #E6ECF5;
}

.product-admin-features span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid #DDE7F3;
    border-radius: 8px;
    background: #F8FAFC;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
}

.table-subtext {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.45;
}

.finance-ledger {
    display: grid;
    gap: 10px;
    padding: 20px;
}

.finance-ledger div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 14px;
    border: 1px solid #E6ECF5;
    border-radius: 8px;
    background: #F8FAFC;
}

.finance-ledger span {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
}

.finance-ledger strong {
    color: var(--text-primary);
    font-size: 16px;
}

.config-layout {
    max-width: 920px;
}

.config-card {
    overflow: hidden;
}

.config-form {
    display: grid;
    gap: 16px;
    padding: 22px;
}

.config-switch-row,
.config-field-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 18px;
    border: 1px solid #E6ECF5;
    border-radius: 8px;
    background: #F8FAFC;
}

.config-switch-row {
    position: relative;
    cursor: pointer;
}

.config-switch-row strong,
.config-field-row strong {
    display: block;
    margin-bottom: 6px;
    color: var(--text-primary);
    font-size: 15px;
}

.config-switch-row span,
.config-field-row span {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

.config-switch-row input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.switch-ui {
    position: relative;
    display: block;
    width: 48px;
    height: 28px;
    border-radius: 999px;
    background: #CBD5E1;
    transition: background 0.2s ease;
}

.switch-ui::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #FFFFFF;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
    transition: transform 0.2s ease;
}

.config-switch-row input:checked + .switch-ui {
    background: #4F46E5;
}

.config-switch-row input:checked + .switch-ui::after {
    transform: translateX(20px);
}

.config-percent {
    width: 180px;
}

.config-url-input {
    width: min(460px, 100%);
    height: 44px;
    padding: 0 12px;
    border: 1px solid #DDE7F3;
    border-radius: 8px;
    background: #FFFFFF;
    color: var(--text-primary);
    font-size: 14px;
}

.config-actions {
    display: flex;
    justify-content: flex-end;
}

.config-section-divider {
    margin: 8px 2px 2px;
    padding-top: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    border-top: 1px dashed #E0E7F1;
}

/* 私钥这类长内容：标题在上、输入框占满在下 */
.config-field-row.config-field-col {
    grid-template-columns: 1fr;
    align-items: stretch;
}
.config-textarea {
    width: 100%;
    height: auto;
    min-height: 96px;
    padding: 10px 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    line-height: 1.5;
    resize: vertical;
}
.config-field-row code {
    padding: 1px 6px;
    background: #EEF2F8;
    border-radius: 4px;
    font-size: 12px;
}

.role-edit-btn {
    margin-top: 16px;
}

.menu-permission-label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 800;
}

.menu-permission-group {
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid #E6ECF5;
    border-radius: 8px;
    background: #F8FAFC;
}

.menu-permission-title {
    margin-bottom: 10px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 800;
}

.menu-permission-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.menu-permission-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #E6ECF5;
    border-radius: 8px;
    background: #FFFFFF;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.menu-permission-item input {
    width: 15px;
    height: 15px;
    accent-color: #4F46E5;
}

@media (max-width: 768px) {
    .admin-card-toolbar,
    .admin-filter-row,
    .manage-modal-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-filter-row {
        width: 100%;
        margin-left: 0;
    }

    .admin-filter-row input,
    .admin-filter-row .btn,
    .manage-modal-footer .btn {
        width: 100%;
    }

    .manage-modal {
        width: calc(100vw - 24px);
        max-height: 90vh;
    }

    .manage-modal h3 {
        padding: 22px 20px 14px;
        font-size: 20px;
    }

    .manage-modal-body {
        grid-template-columns: 1fr;
        max-height: calc(90vh - 158px);
        padding: 0 20px 20px;
    }

    .manage-modal-footer {
        padding: 14px 20px 20px;
    }

    .role-grid {
        grid-template-columns: 1fr;
    }

    .finance-grid,
    .partner-finance-summary,
    .partner-detail-summary,
    .invite-card-stats-only,
    .config-switch-row,
    .config-field-row {
        grid-template-columns: 1fr;
    }

    .config-percent {
        width: 100%;
    }

    .menu-permission-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== Unified Console Shell ========== */
body.unified-console {
    background:
        linear-gradient(180deg, rgba(37, 99, 235, 0.045) 0, rgba(245, 247, 251, 0) 260px),
        #F5F7FB;
    color: #0B1220;
}

.unified-console .admin-topbar.navbar-dashboard {
    height: 64px;
    padding: 0 28px;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(221, 229, 240, 0.95);
    box-shadow: none;
    backdrop-filter: blur(16px);
}

.unified-console .topbar-logo.logo {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #0B1220;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
}

.unified-console .topbar-logo.logo svg {
    width: 30px;
    height: 30px;
}

.unified-console .sidebar-toggle.mobile-menu-btn,
.unified-console .topbar-icon-btn {
    display: inline-flex;
    width: 38px;
    height: 38px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #F8FAFC;
    color: #475569;
}

.unified-console .sidebar-toggle.mobile-menu-btn:hover,
.unified-console .topbar-icon-btn:hover {
    border-color: #DDE5F0;
    background: #FFFFFF;
    color: #2563EB;
}

.unified-console .admin-user-info {
    border: 1px solid #DDE5F0;
    border-radius: 8px;
    background: #FFFFFF;
    padding: 7px 12px;
}

.unified-console .admin-user-info .name {
    margin: 0;
    color: #0B1220;
    font-size: 13px;
    font-weight: 700;
}

.unified-console .admin-user-info .role {
    color: #94A3B8;
    font-size: 11px;
}

.unified-console .admin-layout.dashboard-layout {
    display: flex;
    min-height: 100vh;
    padding-top: 64px;
}

.unified-console .admin-sidebar.dashboard-sidebar {
    position: fixed;
    top: 64px;
    left: 0;
    bottom: 0;
    z-index: 90;
    width: 236px;
    padding: 18px 12px;
    background: linear-gradient(180deg, #0B1220 0%, #111827 100%);
    border-right: 1px solid rgba(148, 163, 184, 0.12);
    overflow-y: auto;
    transform: none;
}

.unified-console .admin-sidebar.dashboard-sidebar::before {
    content: "";
    display: block;
    height: 1px;
    margin: 0 8px 14px;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.85), rgba(8, 145, 178, 0.45), transparent);
}

.unified-console .admin-menu.sidebar-menu {
    flex: 0;
    padding: 0;
}

.unified-console .admin-menu.sidebar-menu li {
    margin-bottom: 6px;
}

.unified-console .admin-menu.sidebar-menu a {
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #CBD5E1;
    font-size: 13px;
    font-weight: 700;
}

.unified-console .admin-menu.sidebar-menu a::before {
    display: none;
}

.unified-console .admin-menu.sidebar-menu a svg {
    color: #94A3B8;
}

.unified-console .admin-menu.sidebar-menu a:hover {
    background: rgba(148, 163, 184, 0.12);
    color: #F8FAFC;
}

.unified-console .admin-menu.sidebar-menu a:hover svg {
    color: #E2E8F0;
}

.unified-console .admin-menu.sidebar-menu a.active {
    background: #EFF6FF;
    color: #1D4ED8;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18);
}

.unified-console .admin-menu.sidebar-menu a.active svg {
    color: #2563EB;
}

.unified-console .admin-content {
    flex: 1;
    min-height: calc(100vh - 64px);
    margin-left: 236px;
    padding: 28px;
    background: transparent;
}

.unified-console .admin-content-inner.dashboard-main {
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    padding: 0;
}

.unified-console .breadcrumb {
    max-width: 1480px;
    margin: 0 auto 18px;
    color: #475569;
}

.unified-console .page-title {
    margin: 0 0 10px;
    color: #0B1220;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 850;
}

.unified-console .page-desc {
    margin: -2px 0 22px;
    color: #64748B;
}

.unified-console .card,
.unified-console .stat-card,
.unified-console .product-plan-section,
.unified-console .invite-card-big,
.unified-console .account-profile-card,
.unified-console .loading,
.unified-console .error-tip {
    border-radius: 8px;
    border-color: #DDE5F0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.unified-console .card-header {
    min-height: 56px;
    padding: 14px 18px;
    background: linear-gradient(180deg, #FFFFFF 0%, #FAFCFF 100%);
}

.unified-console .card-title {
    color: #0B1220;
    font-size: 15px;
    font-weight: 800;
}

.unified-console .btn-primary {
    background: #2563EB;
    border-color: #2563EB;
}

.unified-console .btn-primary:hover {
    background: #1D4ED8;
    border-color: #1D4ED8;
    transform: none;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.18);
}

.unified-console .btn-outline,
.unified-console .btn-ghost {
    border: 1px solid #DDE5F0;
    background: #FFFFFF;
    color: #475569;
}

.unified-console .btn-outline:hover,
.unified-console .btn-ghost:hover {
    border-color: #CBD5E1;
    background: #F8FAFC;
    color: #0B1220;
}

.unified-console .data-table {
    width: 100%;
    border-collapse: collapse;
}

.unified-console .data-table th {
    padding: 11px 14px;
    background: #F8FAFC;
    color: #64748B;
    font-size: 12px;
    font-weight: 800;
}

.unified-console .data-table td {
    padding: 13px 14px;
    color: #334155;
    border-bottom: 1px solid #EDF2F7;
}

.unified-console .data-table tr:hover td {
    background: #F8FBFF;
}

.unified-console .status-tag.active {
    background: #ECFDF5;
    color: #047857;
}

.unified-console .status-tag.pending {
    background: #FFFBEB;
    color: #B45309;
}

.unified-console .status-tag.expired {
    background: #F1F5F9;
    color: #475569;
}

.unified-console .stat-card::before {
    background: linear-gradient(90deg, #2563EB, #0891B2);
}

.unified-console .quick-panel button:hover,
.unified-console .product-icon,
.unified-console .user-pagination .page-btn:hover:not(:disabled) {
    color: #2563EB;
}

.unified-console .product-icon,
.unified-console .user-pagination .page-btn:hover:not(:disabled) {
    background: #EFF6FF;
}

.unified-console .product-plan-section.active,
.unified-console .cycle-card.active,
.unified-console .plan-card.active {
    border-color: #93C5FD;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.10);
}

.unified-console .cycle-card.active {
    background: #FFFFFF;
}

.unified-console .user-pagination .page-btn:hover:not(:disabled),
.unified-console .quick-panel button:hover {
    border-color: #BFDBFE;
}

.unified-console .user-pagination .page-btn.active {
    border-color: #2563EB;
    background: #2563EB;
}

.unified-console .loading-spinner {
    border-top-color: #2563EB;
}

@media (max-width: 768px) {
    .unified-console .admin-topbar.navbar-dashboard {
        padding: 0 14px;
    }

    .unified-console .topbar-logo.logo span {
        display: none;
    }

    .unified-console .topbar-right {
        gap: 8px;
    }

    .unified-console .admin-user-info,
    .unified-console .topbar-icon-btn {
        display: none;
    }

    .unified-console .admin-sidebar.dashboard-sidebar {
        width: 236px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .unified-console .admin-sidebar.dashboard-sidebar.open {
        transform: translateX(0);
    }

    .unified-console .admin-sidebar.dashboard-sidebar .admin-menu a {
        justify-content: flex-start;
        padding: 10px 12px;
    }

    .unified-console .admin-sidebar.dashboard-sidebar .admin-menu a span {
        display: inline;
    }

    .unified-console .admin-content {
        margin-left: 0;
        padding: 18px 14px 34px;
    }

    .unified-console .admin-content-inner.dashboard-main,
    .unified-console .breadcrumb {
        max-width: none;
    }
}

/* ============================================
   按钮禁用态 —— 必须留在文件末尾
   ============================================
   本表里存在 .btn-primary.btn-block 这类「两个类」的按钮规则（如 1395 行的登录按钮），
   权重与 .btn:disabled 相同。同权重时后写的赢，所以禁用态一旦放在它们之前就会被盖掉，
   表现为：按钮 disabled 生效（点不动）却依然满色、鼠标还是小手，看起来跟能点的一模一样。
   新增按钮变体请加在本段之前。 */
.btn:disabled,
.btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
    filter: grayscale(1);
    transform: none;
}
.btn:disabled:hover,
.btn[disabled]:hover {
    transform: none;
    box-shadow: none;
    filter: grayscale(1);
}

/* 流程示意图容器（产品页四步流程 SVG） */
.flow-diagram-wrap {
    margin: 8px auto 48px;
    max-width: 1080px;
}
@media (max-width: 768px) {
    /* 窄屏时横向可滚动，避免文字挤成一团 */
    .flow-diagram-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .flow-diagram-wrap svg { min-width: 720px; }
}

/* 产品页 Hero 配图 */
.hero-visual {
    display: block;
    width: 100%;
}
.hero-visual img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

/* 订阅方案卡片：按钮统一贴底，功能点长短不一时也能对齐 */
.cycle-card .plan-features { flex: 1 1 auto; }
.cycle-card .btn-block { margin-top: auto; }
.cycle-card .cycle-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 10px 0 4px;
}
