/* ===== CSS 变量定义 · 暖橙官方基调（与首页统一） ===== */
:root {
    --primary-color: #f59e0b;
    --primary-hover: #d97706;
    --primary-light: #fef3c7;
    --accent-color: #f97316;
    --accent-soft: #ffedd5;
    --trust-blue: #2563eb;
    --trust-blue-light: #eff6ff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --bg-white: #ffffff;
    --bg-warm: #fffbf5;
    --bg-card: #fffdf7;
    --bg-footer: #1e293b;
    --border-color: #fde68a;
    --border-dark: #e2d4b0;
    --border-subtle: #fef9c3;
    --shadow-sm: 0 4px 14px rgba(245, 158, 11, 0.10);
    --shadow-md: 0 12px 24px -10px rgba(245, 158, 11, 0.14);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.20);
    --radius-md: 12px;
    --radius-lg: 20px;
    --max-width: 1200px;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s ease;
}

/* ===== 全局重置 ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* ===== 导航栏（与首页完全相同） ===== */
header {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
    transition: background-color var(--transition-smooth);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-box {
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 19px;
    gap: 10px;
    letter-spacing: -0.2px;
}

.logo-img {
    width: 32px;
    height: 32px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-item {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 15px;
    transition: color var(--transition-fast);
    position: relative;
    padding: 6px 0;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-fast);
    border-radius: 2px;
}

.nav-item:hover,
.nav-item.active {
    color: var(--primary-hover);
}

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

/* ===== Hero 区域（与首页结构相似） ===== */
.hero-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 80px 24px 50px;
    display: flex;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1 1 55%;
    min-width: 300px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary-light);
    color: var(--primary-hover);
    padding: 7px 18px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    gap: 6px;
    letter-spacing: 0.2px;
}

.hero-text h1 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 18px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #1e293b;
}

.hero-text h1 span {
    color: var(--primary-color);
    display: block;
    font-weight: 900;
}

.hero-desc {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 560px;
    line-height: 1.75;
}

.hero-desc strong {
    color: #1e293b;
    font-weight: 600;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    transition: all var(--transition-fast);
    text-align: center;
    cursor: pointer;
    gap: 6px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.30);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.40);
}

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--text-main);
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background-color: #fefce8;
    border-color: var(--primary-color);
}

.hero-image-cell {
    flex: 1 1 45%;
    min-width: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: center;
}

.hero-placeholder-img {
    width: 100%;
    max-width: 460px;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 40%, #f59e0b 100%);
    box-shadow: var(--shadow-md);
}

/* ===== 通用区块标题样式 ===== */
.section-title {
    font-size: 30px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 20px;
    color: #1e293b;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #f97316);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 50px;
    font-size: 16px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== 报错代码速查表 ===== */
.error-code-section {
    max-width: var(--max-width);
    margin: 80px auto;
    padding: 0 24px;
}

.error-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.error-card {
    background: #fff;
    border: 1px solid #fee2e2;
    border-left: 4px solid #f97316;
    border-radius: 14px;
    padding: 24px 22px;
    transition: all var(--transition-smooth);
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.error-card:hover {
    box-shadow: var(--shadow-sm);
    border-left-color: #f59e0b;
}

.error-code {
    font-family: 'SF Mono', 'Menlo', monospace;
    font-size: 16px;
    font-weight: 700;
    color: #dc2626;
    background: #fef2f2;
    padding: 4px 12px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 12px;
}

.error-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.error-card p {
    font-size: 14px;
    color: #475569;
    line-height: 1.65;
    margin-bottom: 14px;
}

.error-link {
    font-size: 13px;
    font-weight: 600;
    color: #f59e0b;
    text-decoration: none;
}

.error-link:hover {
    color: #d97706;
}

/* ===== 分类故障卡片 ===== */
.category-fix-section {
    max-width: var(--max-width);
    margin: 80px auto;
    padding: 0 24px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.category-card {
    background: #fffdf7;
    border: 1px solid #fef3c7;
    border-radius: 16px;
    padding: 28px 24px;
    transition: all var(--transition-smooth);
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.category-icon {
    font-size: 32px;
    margin-bottom: 14px;
}

.category-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.category-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 14px;
}

.category-list {
    list-style: none;
    margin-bottom: 16px;
    padding-left: 0;
}

.category-list li {
    font-size: 13px;
    color: #475569;
    padding-left: 16px;
    position: relative;
    margin-bottom: 6px;
}

.category-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #f59e0b;
    font-weight: bold;
}

.category-link {
    font-size: 13px;
    font-weight: 600;
    color: #f59e0b;
    text-decoration: none;
}

.category-link:hover {
    color: #d97706;
}

/* ===== 自助排查向导 ===== */
.self-diagnose-section {
    max-width: var(--max-width);
    margin: 80px auto;
    padding: 0 24px;
}

.diagnose-flow {
    max-width: 700px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.diagnose-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: #fffdf7;
    border: 1px solid #fef3c7;
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    transition: all var(--transition-smooth);
}

.diagnose-step:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.step-bubble {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.step-info p {
    font-size: 14px;
    color: #475569;
    line-height: 1.65;
}

.diagnose-arrow {
    font-size: 24px;
    color: #f59e0b;
    margin: 8px 0;
    font-weight: bold;
}

/* ===== 日志分析与配置校验 ===== */
.log-config-section {
    max-width: var(--max-width);
    margin: 80px auto;
    padding: 0 24px;
}

.dual-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.panel-card {
    background: #fff;
    border: 1px solid #fef3c7;
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    transition: all var(--transition-smooth);
}

.panel-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-color);
}

.panel-icon {
    font-size: 28px;
    margin-bottom: 14px;
}

.panel-card h3 {
    font-size: 19px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.panel-card p {
    font-size: 14px;
    color: #475569;
    line-height: 1.65;
    margin-bottom: 12px;
}

.log-sample {
    background: #1e293b;
    color: #fef3c7;
    padding: 14px;
    border-radius: 8px;
    font-family: 'SF Mono', monospace;
    font-size: 13px;
    margin-bottom: 14px;
    overflow-x: auto;
}

.checklist {
    list-style: none;
    padding-left: 0;
    margin-bottom: 12px;
}

.checklist li {
    font-size: 14px;
    color: #475569;
    padding-left: 22px;
    position: relative;
    margin-bottom: 6px;
}

.checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #16a34a;
    font-weight: bold;
}

/* ===== 版本回滚 ===== */
.rollback-section {
    max-width: var(--max-width);
    margin: 80px auto;
    padding: 0 24px;
}

.rollback-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.rollback-card {
    background: #fff;
    border: 1px solid #fef3c7;
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    transition: all var(--transition-smooth);
}

.rollback-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-color);
}

.rollback-num {
    font-size: 20px;
    font-weight: 800;
    color: #f59e0b;
    display: block;
    margin-bottom: 10px;
}

.rollback-card p {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 16px;
    line-height: 1.5;
}

.btn-download-outline {
    background: #fff;
    color: #f59e0b;
    border: 1px solid #f59e0b;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all var(--transition-fast);
}

.btn-download-outline:hover {
    background: #fefce8;
    border-color: #d97706;
    color: #d97706;
}

.rollback-note {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 24px;
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 14px;
    color: #92400e;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== 环境适配建议 ===== */
.env-advice-section {
    max-width: var(--max-width);
    margin: 80px auto 100px;
    padding: 0 24px;
}

.advice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.advice-card {
    background: #fff;
    border: 1px solid #fef3c7;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    transition: all var(--transition-smooth);
}

.advice-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.advice-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.advice-icon {
    font-size: 28px;
}

.advice-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
}

.advice-card p {
    font-size: 14px;
    color: #475569;
    line-height: 1.65;
}

/* ===== 页脚（与首页完全相同） ===== */
footer {
    background-color: #1e293b;
    color: #94a3b8;
    padding: 64px 0 28px;
    font-size: 14px;
    border-top: 1px solid #334155;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-info {
    flex: 1 1 300px;
}

.footer-info h4 {
    color: #fff;
    font-size: 17px;
    margin-bottom: 16px;
    font-weight: 700;
}

.footer-info p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-links {
    flex: 2 1 500px;
}

.footer-links-table {
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
}

.footer-col {
    flex: 1 1 140px;
}

.footer-col h5 {
    color: #fff;
    font-size: 14px;
    margin-bottom: 16px;
    font-weight: 600;
    letter-spacing: 0.4px;
}

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

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

.footer-col a {
    color: #94a3b8;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: #f59e0b;
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 44px auto 0;
    padding: 22px 24px 0;
    border-top: 1px solid #334155;
    text-align: center;
    font-size: 12px;
    color: #64748b;
    line-height: 1.6;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 14px 20px;
        align-items: flex-start;
    }

    .nav-menu {
        flex-wrap: wrap;
        gap: 14px;
        margin-top: 10px;
    }

    .hero-section {
        flex-direction: column;
        padding: 44px 18px 36px;
        gap: 28px;
    }

    .hero-text h1 {
        font-size: 30px;
    }

    .hero-placeholder-img {
        height: 200px;
    }

    .section-title {
        font-size: 24px;
    }

    .error-grid,
    .category-grid,
    .rollback-grid,
    .advice-grid {
        grid-template-columns: 1fr;
    }

    .dual-panel {
        grid-template-columns: 1fr;
    }

    .diagnose-step {
        flex-direction: column;
        gap: 12px;
    }

    .footer-container {
        flex-direction: column;
    }

    .footer-links-table {
        flex-direction: column;
        gap: 26px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 26px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}