:root {
    --primary-color: #e53e3e;
    --primary-hover: #c53030;
    --text-dark: #2a2a2d;
    --text-muted: #4b5563;
    --bg-light: #f8fafc;
    --bg-gradient: radial-gradient(circle at 80% 50%, #e0f2fe 0%, #ffffff 70%);
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --accent-blue: #2563eb;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Noto Sans SC', sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    line-height: 1.7;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    margin: 0 auto;
    width: 100%;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: #eff8ff;
    border-bottom: 1px solid rgba(62, 95, 255, 0.1);
}
.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 32px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 22px;
    color: #0640b7;
    text-decoration: none;
}
.logo img {
    height: 32px;
    width: auto;
    display: block;
}
.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}
.nav-item a {
    color: var(--text-dark);
    text-decoration: none;
}
.nav-secondary {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
    font-size: 14px;
}
.nav-secondary a {
    color: var(--text-dark);
    text-decoration: none;
}
.nav-secondary li {
    display: flex;
    align-items: center;
    gap: 4px;
}
.lang-selector {
    display: flex;
    align-items: center;
    cursor: pointer;
}
.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 9999px;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
}
.guide-hero {
    background: var(--bg-gradient);
    padding: 180px 40px 60px 40px;
    border-bottom: 1px solid var(--border-color);
}
.guide-hero-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.meta-category {
    color: var(--accent-blue);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    display: inline-block;
}
.guide-title {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.25;
    color: #0f172a;
    margin-bottom: 24px;
}
.guide-meta-info {
    display: flex;
    justify-content: center;
    gap: 32px;
    font-size: 14px;
    color: var(--text-muted);
    border-bottom: none;
    padding-bottom: 0;
}
.guide-main-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
}
.sidebar-toc {
    position: sticky;
    top: 120px;
    height: max-content;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border-color);
}
.toc-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}
.toc-item a {
    display: block;
    padding: 8px 12px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.2s;
}
.toc-item a:hover, .toc-item.active a {
    background-color: #eff6ff;
    color: var(--accent-blue);
    font-weight: 500;
}
.toc-search {
    margin-top: 16px;
}
.search-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}
.search-input:focus {
    border-color: var(--accent-blue);
}

/* 创意版块：快速入门 */
.quickstart-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 20px;
    padding: 32px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 48px;
    gap: 40px;
}
.quickstart-content {
    flex: 1;
}
.quickstart-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
}
.quickstart-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.qs-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.qs-number {
    width: 28px;
    height: 28px;
    background: #ffffff;
    color: #1e3a8a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}
.qs-text strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}
.qs-text p {
    font-size: 14px;
    opacity: 0.85;
    margin: 0;
}
.quickstart-image svg {
    opacity: 0.8;
}

.article-body h2 {
    font-size: 28px;
    color: #0f172a;
    margin: 40px 0 20px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}
.article-body h3 {
    font-size: 20px;
    color: #1e293b;
    margin: 28px 0 16px 0;
}
.article-body p {
    margin-bottom: 20px;
    color: #334155;
}

/* 教程卡片网格 */
.tutorial-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 32px 0;
}
.tutorial-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.tutorial-card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.04);
    transform: translateY(-2px);
}
.tutorial-icon {
    font-size: 32px;
    margin-bottom: 12px;
}
.tutorial-card h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #0f172a;
}
.tutorial-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.card-link {
    color: var(--accent-blue);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}
.card-link:hover {
    text-decoration: underline;
}

.site-footer {
    background-color: #0b0e17;
    color: #9ca3af;
    padding: 80px 40px 40px 40px;
    margin-top: 100px;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    border-bottom: 1px solid #22293a;
    padding-bottom: 48px;
}
.footer-col h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 24px;
}
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: #ffffff;
}

@media (max-width: 1024px) {
    .guide-main-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .sidebar-toc {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 16px;
        position: static;
    }
    .toc-list {
        flex-direction: row;
        flex-wrap: wrap;
        margin-bottom: 0;
    }
    .toc-search {
        margin-left: auto;
    }
    .tutorial-cards-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 768px) {
    .nav-links, .nav-secondary {
        display: none;
    }
    .guide-hero {
        padding: 140px 20px 40px 20px;
    }
    .guide-main-layout {
        padding: 40px 20px;
    }
    .guide-title {
        font-size: 32px;
    }
    .quickstart-banner {
        flex-direction: column;
        text-align: center;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}