/* ===== 配置教程页专属样式 ===== */
/* 基础重置与全局参数 */
* {
    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 标题区 ===== */
.guide-hero {
    background: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%);
    padding: 60px 0 40px;
    text-align: center;
}

.guide-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.guide-hero h1 span {
    background: linear-gradient(to right, #2563eb, #7c3aed);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.guide-hero p {
    color: #475569;
    font-size: 1.15rem;
    margin-bottom: 28px;
}

.hero-quick-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.hero-quick-links a {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    color: #1e293b;
    transition: all 0.2s;
}

.hero-quick-links a:hover {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #2563eb;
}

/* ===== 通用标题 ===== */
.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. 新手快速配置 ===== */
.newbie-section {
    padding: 64px 0;
    background: white;
}

.steps-horizontal {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}

.step-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px 16px;
    flex: 1 1 200px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.step-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -10px rgba(0,0,0,0.1);
}

.step-marker {
    display: inline-block;
    background: #2563eb;
    color: white;
    width: 36px;
    height: 36px;
    line-height: 36px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 14px;
}

.step-box h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.step-box p {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 12px;
}

.step-note {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 12px;
    margin-top: 8px;
}

.step-inline-link {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.step-inline-link:hover {
    text-decoration: underline;
}

.step-arrow {
    font-size: 1.8rem;
    color: #cbd5e1;
    align-self: center;
    display: none;
}

@media (min-width: 640px) {
    .step-arrow {
        display: block;
    }
}

.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: 700px;
    margin: 0 auto;
}

/* ===== 2. 标准使用流程 ===== */
.standard-section {
    padding: 64px 0;
    background: #f8fafc;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.info-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -8px rgba(0,0,0,0.1);
}

.info-card h3 {
    font-size: 1.15rem;
    margin-bottom: 14px;
}

.info-card ul {
    list-style: none;
}

.info-card ul li {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #334155;
    padding-left: 18px;
    position: relative;
}

.info-card ul li::before {
    content: "•";
    color: #3b82f6;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.info-card a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.info-card a:hover {
    text-decoration: underline;
}

/* ===== 3. 代理模式 ===== */
.mode-section {
    padding: 64px 0;
    background: white;
}

.mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.mode-card {
    border-radius: 24px;
    padding: 26px 20px;
    text-align: center;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    transition: all 0.2s;
}

.mode-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px -10px rgba(0,0,0,0.1);
}

.mode-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 14px;
}

.mode-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.mode-card p {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 14px;
}

.mode-tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.mode-rule { border-top: 3px solid #16a34a; }
.mode-global { border-top: 3px solid #ea580c; }
.mode-direct { border-top: 3px solid #94a3b8; }

.mode-rule .mode-tag {
    background: #dcfce7;
    color: #166534;
}

.mode-global .mode-tag {
    background: #fff7ed;
    color: #9a3412;
}

.mode-direct .mode-tag {
    background: #f1f5f9;
    color: #475569;
}

/* ===== 4. 高级配置 ===== */
.advanced-section {
    padding: 64px 0;
    background: #f1f5f9;
}

.advanced-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.advanced-item {
    background: white;
    border-radius: 20px;
    padding: 28px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.advanced-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(0,0,0,0.1);
}

.advanced-item h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.advanced-item p {
    color: #475569;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.text-link {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.text-link:hover {
    text-decoration: underline;
}

/* ===== 5. 故障排查流程 ===== */
.troubleshoot-section {
    padding: 64px 0;
    background: white;
}

.flow-list {
    max-width: 700px;
    margin: 0 auto 28px;
}

.flow-step {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 0;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.flow-num {
    font-size: 2rem;
    flex-shrink: 0;
}

.flow-step strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 6px;
}

.flow-step p {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 8px;
}

.flow-link {
    color: #2563eb;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
}

.flow-link:hover {
    text-decoration: underline;
}

.flow-arrow-down {
    text-align: center;
    display: block;
    font-size: 1.5rem;
    color: #94a3b8;
    margin: 6px 0;
}

.faq-cta {
    text-align: center;
    color: #64748b;
}

.faq-cta a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.faq-cta a:hover {
    text-decoration: underline;
}

/* ===== 底部 CTA 下载 ===== */
.cta-download-guide {
    background: #0f172a;
    padding: 48px 0;
    color: white;
    text-align: center;
}

.cta-inner p:first-child {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.cta-sub {
    color: #cbd5e1;
    margin-bottom: 24px;
}

.btn-cta-download {
    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-download: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;
    }
    .guide-hero h1 {
        font-size: 2rem;
    }
    .steps-horizontal {
        flex-direction: column;
        align-items: stretch;
    }
    .step-arrow {
        display: none;
    }
    .flow-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}