/* 官网首页样式 */
:root {
    --site-primary: #667eea;
    --site-primary-dark: #5b21b6;
    --site-accent: #764ba2;
    --site-bg: #0b1020;
    --site-text: #e2e8f0;
    --site-muted: #94a3b8;
    --site-card: rgba(255, 255, 255, 0.06);
    --site-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.site-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--site-bg);
    color: var(--site-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(16px);
    background: rgba(11, 16, 32, 0.82);
    border-bottom: 1px solid var(--site-border);
    padding-top: env(safe-area-inset-top, 0);
}

.site-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
}

.site-logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--site-primary), var(--site-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
}

.site-nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-nav-links a {
    color: var(--site-muted);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    transition: 0.2s;
}

.site-nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.site-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-theme-toggle {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid var(--site-border);
    background: var(--site-card);
    color: var(--site-text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    flex-shrink: 0;
}

.site-theme-toggle:hover {
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(102, 126, 234, 0.15);
    transform: scale(1.04);
}

.site-theme-icon {
    display: none;
}

html[data-theme="dark"] .site-theme-icon-sun,
html:not([data-theme]) .site-theme-icon-sun {
    display: inline;
}

html[data-theme="light"] .site-theme-icon-moon {
    display: inline;
}

.site-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: 0.2s;
    white-space: nowrap;
}

.site-btn-ghost {
    color: #fff;
    border-color: var(--site-border);
    background: transparent;
}

.site-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
}

.site-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--site-primary), var(--site-accent));
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35);
}

.site-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.45);
}

.site-nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--site-border);
    border-radius: 10px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 20px;
}

.site-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding: calc(90px + env(safe-area-inset-top, 0)) 20px 60px;
    overflow: hidden;
}

.site-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(102, 126, 234, 0.35), transparent 45%),
        radial-gradient(circle at 80% 10%, rgba(118, 75, 162, 0.28), transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(91, 33, 182, 0.2), transparent 50%),
        linear-gradient(180deg, #0b1020 0%, #121a33 100%);
}

.site-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at center, black, transparent 75%);
}

.site-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.site-hero-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(102, 126, 234, 0.18);
    border: 1px solid rgba(102, 126, 234, 0.35);
    color: #c7d2fe;
    font-size: 13px;
    margin-bottom: 20px;
}

.site-hero h1 {
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.site-hero h1 span {
    background: linear-gradient(135deg, #fff 0%, #c7d2fe 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.site-hero-desc {
    font-size: 17px;
    color: var(--site-muted);
    max-width: 560px;
    margin-bottom: 28px;
}

.site-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
}

.site-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.site-stat-item strong {
    display: block;
    font-size: 28px;
    color: #fff;
    line-height: 1.2;
}

.site-stat-item span {
    font-size: 13px;
    color: var(--site-muted);
}

.site-hero-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--site-border);
    border-radius: 24px;
    padding: 28px;
    backdrop-filter: blur(12px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.site-hero-card h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

.site-feature-list {
    display: grid;
    gap: 14px;
}

.site-feature-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 14px;
    color: #cbd5e1;
}

.site-feature-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(102, 126, 234, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.site-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 72px 20px;
}

.site-section-head {
    text-align: center;
    margin-bottom: 36px;
}

.site-section-head h2 {
    font-size: clamp(26px, 4vw, 36px);
    margin-bottom: 10px;
}

.site-section-head p {
    color: var(--site-muted);
    font-size: 15px;
}

.site-level-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.site-level-tag {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--site-border);
    background: var(--site-card);
    font-size: 13px;
    color: #cbd5e1;
}

.site-level-tag em {
    font-style: normal;
    color: #a5b4fc;
    margin-left: 6px;
}

.site-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.site-cat-tab {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--site-border);
    background: transparent;
    color: var(--site-muted);
    cursor: pointer;
    font-size: 13px;
    transition: 0.2s;
}

.site-cat-tab.active,
.site-cat-tab:hover {
    color: #fff;
    border-color: rgba(102, 126, 234, 0.6);
    background: rgba(102, 126, 234, 0.18);
}

.site-price-panel {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--site-border);
    border-radius: 20px;
    overflow: hidden;
}

.site-price-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.site-price-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 13px;
}

.site-price-table th,
.site-price-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--site-border);
    text-align: left;
    vertical-align: top;
}

.site-price-table th {
    background: rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
    font-weight: 600;
    white-space: nowrap;
}

.site-price-table td {
    color: #e2e8f0;
}

.site-price-table .svc-name {
    font-weight: 600;
    color: #fff;
    min-width: 180px;
}

.site-price-table .svc-meta {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--site-muted);
    line-height: 1.5;
}

.site-price-table .price-cell {
    font-weight: 700;
    color: #fcd34d;
    white-space: nowrap;
}

.site-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--site-muted);
}

.site-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ── 功能板块：外框 + 白底卡片 ── */
.site-fc-section {
    padding-top: 24px;
    padding-bottom: 24px;
}

.site-fc-section:first-of-type {
    padding-top: 56px;
}

.site-fc-wrap {
    position: relative;
    border-radius: 28px;
    padding: 0 0 28px;
    overflow: hidden;
    background: #111827;
    border: 2px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.5),
        0 32px 64px rgba(0, 0, 0, 0.45);
}

.site-fc-accent-bar {
    height: 6px;
    width: 100%;
}

.site-fc-wrap-wechat {
    border-color: rgba(7, 193, 96, 0.55);
    box-shadow:
        0 0 0 1px rgba(7, 193, 96, 0.2),
        0 0 40px rgba(7, 193, 96, 0.12),
        0 32px 64px rgba(0, 0, 0, 0.45);
}

.site-fc-wrap-wechat .site-fc-accent-bar {
    background: linear-gradient(90deg, #06ad56, #07c160, #34d399);
}

.site-fc-wrap-platform {
    border-color: rgba(102, 126, 234, 0.55);
    box-shadow:
        0 0 0 1px rgba(102, 126, 234, 0.2),
        0 0 40px rgba(102, 126, 234, 0.1),
        0 32px 64px rgba(0, 0, 0, 0.45);
}

.site-fc-wrap-platform .site-fc-accent-bar {
    background: linear-gradient(90deg, #5b21b6, #667eea, #a78bfa);
}

.site-fc-wrap-trust {
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow:
        0 0 0 1px rgba(245, 158, 11, 0.18),
        0 0 40px rgba(245, 158, 11, 0.08),
        0 32px 64px rgba(0, 0, 0, 0.45);
}

.site-fc-wrap-trust .site-fc-accent-bar {
    background: linear-gradient(90deg, #d97706, #f59e0b, #fbbf24);
}

.site-fc-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 32px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 100%);
}

.site-fc-header-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(145deg, #07c160, #059669);
    box-shadow: 0 8px 24px rgba(7, 193, 96, 0.35);
}

.site-fc-header-icon-platform {
    background: linear-gradient(145deg, #667eea, #5b21b6);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35);
}

.site-fc-header-icon-trust {
    background: linear-gradient(145deg, #f59e0b, #d97706);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
}

.site-fc-title {
    font-size: clamp(24px, 3.5vw, 32px);
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.site-fc-sub {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: #94a3b8;
}

.site-fc-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    padding: 28px 28px 0;
    align-items: stretch;
}

.site-fc-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 100%;
    padding: 32px 24px 28px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.06),
        0 8px 24px rgba(0, 0, 0, 0.12),
        0 20px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.site-fc-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.06),
        0 16px 32px rgba(0, 0, 0, 0.15),
        0 28px 56px rgba(0, 0, 0, 0.12);
}

.site-fc-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 18px;
    flex-shrink: 0;
}

.site-fc-card-wechat .site-fc-card-icon {
    background: linear-gradient(145deg, #ecfdf5, #d1fae5);
    border: 2px solid rgba(7, 193, 96, 0.25);
    box-shadow: 0 4px 16px rgba(7, 193, 96, 0.15);
}

.site-fc-card-platform .site-fc-card-icon {
    background: linear-gradient(145deg, #eef2ff, #e0e7ff);
    border: 2px solid rgba(102, 126, 234, 0.25);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
}

.site-fc-card-trust .site-fc-card-icon {
    background: linear-gradient(145deg, #fffbeb, #fef3c7);
    border: 2px solid rgba(245, 158, 11, 0.25);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15);
}

.site-fc-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px;
    line-height: 1.35;
}

.site-fc-card-wechat h3 {
    color: #065f46;
}

.site-fc-card-platform h3 {
    color: #3730a3;
}

.site-fc-card-trust h3 {
    color: #92400e;
}

.site-fc-card p {
    flex: 1;
    margin: 0;
    font-size: 14px;
    line-height: 1.85;
    color: #4b5563;
    text-align: left;
}

.site-feature-card {
    background: var(--site-card);
    border: 1px solid var(--site-border);
    border-radius: 18px;
    padding: 24px;
}

.site-feature-card h3 {
    font-size: 17px;
    margin-bottom: 10px;
}

.site-feature-card p {
    font-size: 14px;
    color: var(--site-muted);
}

.site-cta {
    margin: 0 20px 60px;
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
    padding: 40px 28px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.25), rgba(118, 75, 162, 0.25));
    border: 1px solid rgba(102, 126, 234, 0.35);
    text-align: center;
}

.site-cta h2 {
    font-size: 28px;
    margin-bottom: 12px;
}

.site-cta p {
    color: #cbd5e1;
    margin-bottom: 22px;
}

.site-footer {
    border-top: 1px solid var(--site-border);
    padding: 28px 20px calc(28px + env(safe-area-inset-bottom, 0));
    text-align: center;
    color: var(--site-muted);
    font-size: 13px;
}

.site-footer p + p {
    margin-top: 8px;
}

@media (max-width: 1024px) {
    .site-fc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .site-hero-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .site-hero-card {
        order: -1;
    }

    .site-features-grid,
    .site-fc-grid {
        grid-template-columns: 1fr;
    }

    .site-fc-header {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px 20px;
    }

    .site-fc-grid {
        padding: 20px 16px 0;
    }
}

@media (max-width: 768px) {
    .site-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .site-nav-links,
    .site-nav-actions {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 12px;
        right: 12px;
        flex-direction: column;
        align-items: stretch;
        background: rgba(11, 16, 32, 0.96);
        border: 1px solid var(--site-border);
        border-radius: 16px;
        padding: 12px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    }

    .site-nav-links.open,
    .site-nav-actions.open {
        display: flex;
    }

    .site-nav-links a,
    .site-nav-actions .site-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .site-nav-inner {
        position: relative;
        flex-wrap: wrap;
    }

    .site-hero {
        min-height: auto;
        padding-top: calc(80px + env(safe-area-inset-top, 0));
        padding-bottom: 40px;
    }

    .site-hero h1 {
        font-size: 32px;
    }

    .site-hero-desc {
        font-size: 15px;
    }

    .site-hero-actions {
        flex-direction: column;
    }

    .site-hero-actions .site-btn {
        width: 100%;
    }

    .site-hero-stats {
        gap: 16px;
    }

    .site-stat-item strong {
        font-size: 22px;
    }

    .site-section {
        padding: 48px 14px;
    }

    .site-price-table th,
    .site-price-table td {
        padding: 10px 12px;
        font-size: 12px;
    }

    .site-cta {
        margin-left: 14px;
        margin-right: 14px;
        padding: 28px 18px;
    }

    .site-cta h2 {
        font-size: 22px;
    }
}

/* ── 白天主题 ── */
html[data-theme="light"] {
    --site-bg: #f1f5f9;
    --site-text: #1e293b;
    --site-muted: #64748b;
    --site-card: rgba(255, 255, 255, 0.92);
    --site-border: rgba(15, 23, 42, 0.1);
    color-scheme: light;
}

html[data-theme="light"] .site-nav {
    background: rgba(255, 255, 255, 0.88);
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .site-logo {
    color: #0f172a;
}

html[data-theme="light"] .site-nav-links a {
    color: #64748b;
}

html[data-theme="light"] .site-nav-links a:hover {
    color: #0f172a;
    background: rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .site-btn-ghost {
    color: #334155;
    border-color: rgba(15, 23, 42, 0.14);
    background: #fff;
}

html[data-theme="light"] .site-btn-ghost:hover {
    background: #f8fafc;
    color: #0f172a;
}

html[data-theme="light"] .site-theme-toggle {
    background: #fff;
    color: #334155;
}

html[data-theme="light"] .site-hero {
    background:
        radial-gradient(circle at 20% 20%, rgba(102, 126, 234, 0.12), transparent 45%),
        radial-gradient(circle at 80% 10%, rgba(118, 75, 162, 0.1), transparent 40%),
        linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

html[data-theme="light"] .site-hero h1 span {
    background: linear-gradient(135deg, #1e293b 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

html[data-theme="light"] .site-stat-item strong {
    color: #0f172a;
}

html[data-theme="light"] .site-hero-card {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .site-feature-item {
    color: #475569;
}

html[data-theme="light"] .site-tip,
html[data-theme="light"] .site-tip-inline {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

html[data-theme="light"] .site-price-panel {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .site-price-table th {
    background: #f8fafc;
    color: #475569;
}

html[data-theme="light"] .site-price-table td {
    color: #334155;
}

html[data-theme="light"] .site-cat-tab {
    background: #fff;
    color: #64748b;
    border-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .site-cat-tab.active,
html[data-theme="light"] .site-cat-tab:hover {
    color: #4338ca;
    border-color: rgba(79, 70, 229, 0.35);
    background: #eef2ff;
}

html[data-theme="light"] .site-fc-wrap {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .site-fc-wrap-wechat {
    border-color: rgba(7, 193, 96, 0.45);
    box-shadow: 0 0 0 1px rgba(7, 193, 96, 0.12), 0 20px 50px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .site-fc-wrap-platform {
    border-color: rgba(102, 126, 234, 0.4);
}

html[data-theme="light"] .site-fc-wrap-trust {
    border-color: rgba(245, 158, 11, 0.4);
}

html[data-theme="light"] .site-fc-header {
    border-bottom-color: rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, #f8fafc 0%, transparent 100%);
}

html[data-theme="light"] .site-fc-title {
    color: #0f172a;
}

html[data-theme="light"] .site-fc-sub {
    color: #64748b;
}

html[data-theme="light"] .site-fc-card {
    background: #f8fafc;
    border-color: #e2e8f0;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .site-fc-card:hover {
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .site-cta {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.1));
    border-color: rgba(102, 126, 234, 0.2);
}

html[data-theme="light"] .site-cta h2 {
    color: #0f172a;
}

html[data-theme="light"] .site-cta p {
    color: #475569;
}

html[data-theme="light"] .site-footer {
    border-top-color: rgba(15, 23, 42, 0.08);
    color: #64748b;
}

@media (max-width: 768px) {
    html[data-theme="light"] .site-nav-links,
    html[data-theme="light"] .site-nav-actions {
        background: rgba(255, 255, 255, 0.98);
        border-color: rgba(15, 23, 42, 0.08);
    }
}
