:root {
    --pri: #7c3aed;
    --pri-hover: #6d28d9;
    --pri-light: #ede9fe;
    --accent: #10b981;
    --accent-light: #d1fae5;
    --warm: #f59e0b;
    --warm-light: #fef3c7;
    --bg: #faf9f7;
    --surface: #ffffff;
    --text-dark: #1e1b2e;
    --text-mid: #4a4560;
    --text-light: #6b6680;
    --border: #e8e5f0;
    --border-light: #f3f1f7;
    --shadow-sm: 0 1px 3px rgba(30, 27, 46, 0.04);
    --shadow-md: 0 8px 24px rgba(30, 27, 46, 0.06);
    --shadow-lg: 0 20px 48px rgba(30, 27, 46, 0.08);
    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-stack);
    background-color: var(--bg);
    color: var(--text-dark);
    line-height: 1.7;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
}

/* ==================== 导航栏 ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.nav-logo-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.03em;
}

.nav-badge {
    background: var(--pri-light);
    color: var(--pri);
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-mid);
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s ease;
    position: relative;
    padding: 6px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--pri);
    border-radius: 2px;
    transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--pri);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    height: 20px;
    padding: 0;
}

.nav-mobile-toggle span {
    display: block;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ==================== 主视觉区 ==================== */
.hero-section {
    padding: 160px 24px 100px;
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
    position: relative;
}

.hero-bg-glow {
    position: absolute;
    top: -60px;
    right: -80px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hero-left {
    position: relative;
    z-index: 1;
}

.hero-tag {
    display: inline-block;
    background: var(--surface);
    color: var(--pri);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 30px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.hero-title {
    font-size: 46px;
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1.18;
    margin: 0 0 24px;
    letter-spacing: -0.04em;
}

.hero-desc {
    font-size: 15.5px;
    color: var(--text-mid);
    margin-bottom: 40px;
    max-width: 600px;
    text-align: justify;
    line-height: 1.75;
}

.hero-buttons {
    display: flex;
    gap: 18px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--pri);
    color: #fff;
    text-decoration: none;
    padding: 15px 34px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 8px 22px rgba(124, 58, 237, 0.22);
    transition: all 0.25s ease;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--pri-hover);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(124, 58, 237, 0.32);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-dark);
    text-decoration: none;
    padding: 15px 34px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 15px;
    border: 1px solid var(--border);
    transition: all 0.25s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background: #f5f3fa;
    transform: translateY(-2px);
    border-color: var(--pri);
}

.hero-mini-stats {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-light);
    font-weight: 600;
}

.hero-right-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 44px 38px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-right-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--pri) 0%, #a78bfa 100%);
    border-radius: 5px 0 0 5px;
}

.stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-number {
    font-size: 38px;
    font-weight: 900;
    color: var(--text-dark);
    letter-spacing: -0.03em;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    text-align: right;
    line-height: 1.5;
}

.divider {
    height: 1px;
    background: var(--border-light);
    margin: 28px 0;
}

/* ==================== 通用区块容器 ==================== */
.section-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    max-width: 780px;
    margin: 0 auto 56px;
    text-align: center;
}

.section-header h2 {
    font-size: 34px;
    font-weight: 900;
    color: var(--text-dark);
    letter-spacing: -0.03em;
    margin: 0 0 14px;
}

.section-header p {
    font-size: 15.5px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.7;
}

/* ==================== 规则配置核心区 ==================== */
.rules-core-section {
    padding: 100px 24px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

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

.rule-card {
    background: #faf9fb;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    transition: all 0.3s ease;
}

.rule-card:hover {
    transform: translateY(-5px);
    background: #fff;
    border-color: var(--pri);
    box-shadow: var(--shadow-md);
}

.rule-icon-wrap {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.rule-card h4 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.rule-card p {
    font-size: 14.5px;
    color: var(--text-mid);
    margin: 0 0 18px;
    line-height: 1.7;
}

.rule-card code {
    background: var(--pri-light);
    color: var(--pri);
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
}

.rule-tag {
    display: inline-block;
    font-size: 12px;
    color: var(--pri);
    background: var(--pri-light);
    padding: 4px 12px;
    border-radius: 16px;
    font-weight: 600;
}

/* ==================== 订阅管理区 ==================== */
.subscribe-section {
    padding: 100px 24px;
    background: var(--bg);
}

.sub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.sub-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    position: relative;
    transition: all 0.3s ease;
}

.sub-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.sub-step-num {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 44px;
    font-weight: 900;
    color: var(--border);
    line-height: 1;
    pointer-events: none;
}

.sub-card h5 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.sub-card p {
    font-size: 14.5px;
    color: var(--text-mid);
    margin: 0;
    line-height: 1.7;
}

/* ==================== 网络优化实战区 ==================== */
.optimize-section {
    padding: 100px 24px;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.opt-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 36px;
    align-items: start;
}

.opt-main-card {
    background: #faf9fb;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 34px;
}

.opt-icon-large {
    font-size: 40px;
    margin-bottom: 18px;
}

.opt-main-card h4 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 14px;
    letter-spacing: -0.02em;
}

.opt-main-card p {
    font-size: 14.5px;
    color: var(--text-mid);
    margin: 0 0 14px;
    line-height: 1.75;
}

.opt-main-card p:last-child {
    margin-bottom: 0;
}

.opt-side-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.opt-side-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px 22px;
    transition: all 0.25s ease;
}

.opt-side-card:hover {
    border-color: var(--warm);
    box-shadow: var(--shadow-sm);
}

.opt-side-card h5 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 8px;
}

.opt-side-card p {
    font-size: 13.5px;
    color: var(--text-mid);
    margin: 0;
    line-height: 1.65;
}

/* ==================== 协议生态区 ==================== */
.protocol-section {
    padding: 100px 24px;
    background: var(--bg);
}

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

.protocol-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 30px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.protocol-card:hover {
    transform: translateY(-4px);
    border-color: var(--pri);
    box-shadow: var(--shadow-md);
}

.proto-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 18px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: 0.03em;
}

.proto-badge.classic {
    background: #f1f5f9;
    color: #475569;
}

.proto-badge.recommend {
    background: var(--accent-light);
    color: #059669;
}

.proto-badge.advanced {
    background: var(--warm-light);
    color: #b45309;
}

.protocol-card h5 {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 10px;
}

.protocol-card p {
    font-size: 13.5px;
    color: var(--text-mid);
    margin: 0;
    line-height: 1.6;
}

/* ==================== 场景解决方案矩阵 ==================== */
.scenario-section {
    padding: 100px 24px;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.scene-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.scene-card {
    background: #faf9fb;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    transition: all 0.3s ease;
}

.scene-card:hover {
    background: #fff;
    box-shadow: var(--shadow-md);
    border-color: var(--pri);
}

.scene-icon {
    font-size: 36px;
    margin-bottom: 14px;
}

.scene-card h5 {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 10px;
}

.scene-card p {
    font-size: 14.5px;
    color: var(--text-mid);
    margin: 0 0 16px;
    line-height: 1.7;
}

.scene-recommend {
    display: inline-block;
    font-size: 12px;
    color: var(--accent);
    background: var(--accent-light);
    padding: 4px 12px;
    border-radius: 16px;
    font-weight: 600;
}

/* ==================== 快速入门步骤区 ==================== */
.quickstart-section {
    padding: 100px 24px;
    background: var(--bg);
}

.qs-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

.qs-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 38px 28px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.qs-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.qs-number {
    position: absolute;
    top: 16px;
    right: 22px;
    font-size: 46px;
    font-weight: 900;
    color: var(--border);
    line-height: 1;
}

.qs-icon {
    font-size: 38px;
    margin-bottom: 16px;
}

.qs-card h5 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 12px;
}

.qs-card p {
    font-size: 14px;
    color: var(--text-mid);
    margin: 0 0 16px;
    line-height: 1.7;
}

.qs-time {
    display: inline-block;
    font-size: 12px;
    color: var(--pri);
    background: var(--pri-light);
    padding: 4px 14px;
    border-radius: 16px;
    font-weight: 600;
}

.qs-cta {
    text-align: center;
}

/* ==================== 信任与安全区 ==================== */
.trust-section {
    padding: 100px 24px;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 860px;
    margin: 0 auto;
}

.trust-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.trust-icon {
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 2px;
}

.trust-item strong {
    display: block;
    font-size: 15.5px;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.trust-item p {
    font-size: 13.5px;
    color: var(--text-mid);
    margin: 0;
    line-height: 1.65;
}

/* ==================== 页脚 ==================== */
.footer {
    background: #120f1a;
    color: #9b97a8;
    padding: 70px 24px 36px;
    font-size: 13.5px;
    border-top: 1px solid #1e1a2a;
}

.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand h4 {
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.footer-brand p {
    line-height: 1.7;
    margin: 0;
    font-size: 13.5px;
    color: #7a7488;
}

.footer-col h5 {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 16px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #9b97a8;
    text-decoration: none;
    transition: color 0.18s ease;
    font-weight: 500;
}

.footer-col ul li a:hover {
    color: #fff;
}

.footer-bottom {
    max-width: 1240px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid #1e1a2a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: #6b647a;
    font-weight: 500;
    font-size: 12.5px;
}

/* ==================== 响应式 ==================== */
@media (max-width: 1100px) {
    .hero-section {
        grid-template-columns: 1fr;
        padding-top: 130px;
        gap: 44px;
    }
    .hero-title {
        font-size: 36px;
    }
    .rules-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .sub-grid {
        grid-template-columns: 1fr;
    }
    .opt-layout {
        grid-template-columns: 1fr;
    }
    .protocol-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .scene-grid {
        grid-template-columns: 1fr;
    }
    .qs-steps {
        grid-template-columns: 1fr;
    }
    .trust-grid {
        grid-template-columns: 1fr;
    }
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 64px;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(18px);
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.nav-open {
        display: flex;
    }
    .nav-links a {
        padding: 15px 24px;
        border-bottom: 1px solid var(--border-light);
    }
    .nav-mobile-toggle {
        display: flex;
    }
    .hero-section {
        padding: 120px 16px 60px;
        gap: 32px;
    }
    .hero-title {
        font-size: 30px;
    }
    .hero-desc {
        font-size: 14px;
    }
    .hero-right-card {
        padding: 28px 22px;
    }
    .stat-number {
        font-size: 30px;
    }
    .section-header h2 {
        font-size: 26px;
    }
    .rules-core-section,
    .subscribe-section,
    .optimize-section,
    .protocol-section,
    .scenario-section,
    .quickstart-section,
    .trust-section {
        padding: 60px 16px;
    }
    .protocol-grid {
        grid-template-columns: 1fr;
    }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .hero-buttons {
        flex-direction: column;
    }
}