/* ===== 节点订阅页专属样式 ===== */
/* 基础重置与全局参数 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    background: #f8fafc;
    color: #0f172a;
    line-height: 1.5;
    scroll-behavior: smooth;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== 头部导航（与全站统一） ===== */
.header {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid #e2e8f0;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 16px 0;
    gap: 16px;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b, #3b82f6);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: #334155;
    transition: color 0.2s;
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: #3b82f6;
}

/* ===== Hero 区域 ===== */
.sub-hero {
    background: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%);
    padding: 60px 0 40px;
    text-align: center;
}

.sub-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.sub-hero h1 span {
    background: linear-gradient(to right, #2563eb, #7c3aed);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.sub-hero p {
    color: #475569;
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== 通用标题 ===== */
.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #0f172a;
}

.section-desc {
    text-align: center;
    color: #64748b;
    margin-bottom: 40px;
    font-size: 1rem;
}

/* ===== 1. 订阅机制解释 ===== */
.explain-section {
    padding: 64px 0;
    background: white;
}

.explain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.explain-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 28px 20px;
    text-align: center;
    transition: transform 0.2s;
}

.explain-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -10px rgba(0,0,0,0.1);
}

.explain-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 14px;
}

.explain-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.explain-card p {
    color: #475569;
    font-size: 0.95rem;
}

.tip-banner {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    padding: 16px 20px;
    font-size: 0.95rem;
    color: #1e40af;
    text-align: center;
    max-width: 750px;
    margin: 0 auto;
}

.inline-link {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    margin-left: 6px;
}

.inline-link:hover {
    text-decoration: underline;
}

/* ===== 2. 节点分类矩阵 ===== */
.node-type-section {
    padding: 64px 0;
    background: #f8fafc;
}

.type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.type-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.2s;
}

.type-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -10px rgba(0,0,0,0.08);
    border-color: #93c5fd;
}

.type-emoji {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
}

.type-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.type-card p {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 14px;
}

.type-tag {
    display: inline-block;
    background: #f1f5f9;
    color: #334155;
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 0.8rem;
    font-weight: 500;
}

.type-more {
    text-align: center;
    color: #64748b;
    font-size: 0.95rem;
}

.type-more a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.type-more a:hover {
    text-decoration: underline;
}

/* ===== 3. 如何选择节点 ===== */
.choose-section {
    padding: 64px 0;
    background: white;
}

.choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.choose-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 22px 18px;
    transition: all 0.2s;
}

.choose-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px -8px rgba(0,0,0,0.1);
}

.choose-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.choose-num {
    width: 36px;
    height: 36px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
}

.choose-head h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.choose-item p {
    font-size: 0.9rem;
    color: #475569;
    padding-left: 48px;
}

/* ===== 4. 免费 vs 付费 ===== */
.trust-section {
    padding: 64px 0;
    background: #f1f5f9;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.trust-card {
    border-radius: 24px;
    padding: 28px 22px;
    border: 1px solid #e2e8f0;
}

.trust-card h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.trust-card ul {
    list-style: none;
    margin-bottom: 16px;
}

.trust-card ul li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #334155;
}

.free-card {
    background: #fef2f2;
    border-color: #fecaca;
}

.paid-card {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.trust-warn {
    color: #991b1b;
    font-size: 0.85rem;
    font-weight: 500;
}

.trust-note {
    color: #166534;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ===== 底部 CTA 下载 ===== */
.cta-download-subscribe {
    background: #0f172a;
    padding: 48px 0;
    color: white;
    text-align: center;
}

.cta-dl-box {
    max-width: 500px;
    margin: 0 auto;
}

.cta-dl-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.cta-dl-sub {
    color: #cbd5e1;
    margin-bottom: 24px;
}

.btn-cta-dl {
    display: inline-block;
    background: #2563eb;
    color: white;
    font-weight: 700;
    padding: 14px 38px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.2s;
    box-shadow: 0 10px 18px -8px rgba(37,99,235,0.5);
}

.btn-cta-dl:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* ===== 页脚 ===== */
.footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 56px 0 32px;
    font-size: 0.9rem;
    border-top: 1px solid #1e293b;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 0.95rem;
}

.footer-col a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid #1e293b;
    color: #64748b;
    font-size: 0.8rem;
}

/* ===== 响应式调整 ===== */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-links {
        justify-content: flex-start;
        gap: 18px;
        width: 100%;
        flex-wrap: wrap;
    }
    .sub-hero h1 {
        font-size: 2rem;
    }
    .choose-item p {
        padding-left: 0;
    }
}