/* ========== 全局变量与重置 ========== */
:root {
    --primary-red: #ef443b;
    --primary-dark: #d93833;
    --text-main: #1f2937;
    --text-secondary: #4b5563;
    --bg-light: #f9fafb;
    --border-light: #f0f0f0;
    --shadow-sm: 0 10px 25px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 15px 35px rgba(239, 68, 68, 0.08);
    --shadow-lg: 0 25px 50px rgba(0, 0, 0, 0.05);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--text-main);
    background: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ========== 导航栏 (与首页统一) ========== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8%;
    height: 80px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #f3f4f6;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo img {
    height: 30px;
    width: 158px;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links li {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s;
    border-bottom: 3px solid transparent;
}

.nav-links li:hover {
    background: rgba(239, 68, 68, 0.04);
    border-bottom-color: #FFD5D6;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.nav-links-svg {
    width: 12px;
    height: 12px;
    opacity: 0.7;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-link {
    text-decoration: none;
    color: var(--primary-red);
    padding: 10px 24px;
    border: 2px solid var(--primary-red);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-link:hover {
    background: var(--primary-red);
    color: #fff;
}

.btn-outline {
    text-decoration: none;
    color: #fff;
    background: var(--primary-red);
    padding: 11px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-outline:hover {
    background: var(--primary-dark);
}

/* ========== 教程页主体布局 ========== */
.guide-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 4% 80px;
    display: flex;
    gap: 50px;
}

.guide-content {
    flex: 1;
    max-width: 800px;
}

/* 教程头部 */
.guide-header {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f3f4f6;
}

.guide-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    line-height: 1.2;
}

.guide-header h1 span {
    background: linear-gradient(135deg, #ef443b, #EE8D3B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.guide-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 700px;
}

.guide-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

/* 路径选择卡片 */
.path-selector {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 50px;
    box-shadow: var(--shadow-sm);
}

.path-selector h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
}

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

.path-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    border-radius: var(--radius-md);
    text-decoration: none;
    background: #fafafa;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.path-card:hover {
    background: #fff;
    border-color: #fecaca;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.path-icon {
    font-size: 1.8rem;
}

.path-card strong {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.path-card span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* 教程章节 */
.guide-section {
    margin-bottom: 60px;
}

.guide-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.guide-section h2::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 28px;
    background: var(--primary-red);
    border-radius: 3px;
}

.guide-section p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* 步骤水平卡片 */
.steps-horizontal {
    display: flex;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.step-item {
    flex: 1 1 200px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: var(--radius-xl);
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.step-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: #fecaca;
}

.step-visual {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-red);
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step-item h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-item code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    color: var(--primary-red);
    font-weight: 500;
}

/* 图片占位 */
.guide-media-box {
    margin: 30px 0;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    padding: 20px;
}

.guide-media-box img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.image-caption {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-top: 12px;
}

/* 方法卡片 */
.method-grid {
    display: flex;
    gap: 20px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.method-card {
    flex: 1 1 250px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: var(--radius-xl);
    padding: 25px 20px;
    transition: all 0.3s ease;
}

.method-card:hover {
    border-color: #fecaca;
    box-shadow: var(--shadow-sm);
}

.method-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.method-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 15px;
}

.method-tag {
    display: inline-block;
    background: #fff0f0;
    color: var(--primary-red);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

/* 权限表格 */
.permission-table {
    border: 1px solid #f0f0f0;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: 25px 0;
}

.perm-row {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
    gap: 20px;
    flex-wrap: wrap;
    background: #fff;
    transition: background 0.2s;
}

.perm-row:last-child {
    border-bottom: none;
}

.perm-row:hover {
    background: #fcfcfc;
}

.perm-feature {
    font-weight: 700;
    font-size: 1rem;
    min-width: 100px;
    color: var(--text-main);
}

.perm-desc {
    flex: 1;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.perm-recommend {
    font-size: 0.85rem;
    color: var(--primary-red);
    background: #fff0f0;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
    font-weight: 600;
}

/* 提示块 */
.info-note {
    background: rgba(239, 68, 68, 0.04);
    border-left: 4px solid var(--primary-red);
    padding: 20px;
    border-radius: 0 8px 8px 0;
    margin: 30px 0;
}

.info-note p {
    margin-bottom: 0;
    font-weight: 500;
    color: #374151;
    font-size: 0.98rem;
}

/* 技巧清单 */
.tips-checklist {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: var(--radius-md);
    padding: 25px 30px;
    margin: 25px 0;
}

.tips-checklist h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #c2410c;
    margin-bottom: 15px;
}

.tips-checklist ul {
    list-style: none;
}

.tips-checklist li {
    padding: 8px 0;
    border-bottom: 1px dashed #fed7aa;
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.tips-checklist li::before {
    content: "✦";
    color: var(--primary-red);
    font-weight: 700;
}

/* FAQ 手风琴 */
.faq-accordion {
    margin: 25px 0;
}

.faq-item {
    border: 1px solid #f0f0f0;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
}

.faq-item summary {
    padding: 18px 25px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-red);
    font-weight: 700;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item summary:hover {
    background: #fafafa;
}

.faq-a {
    padding: 0 25px 20px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* 视频 CTA */
.video-cta {
    background: linear-gradient(105deg, #f9fafb 0%, #fff 100%);
    border: 1px solid #f0f0f0;
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    margin: 40px 0;
}

.video-placeholder {
    width: 100%;
    height: 200px;
    background: #e5e7eb;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
    transition: background 0.3s;
    cursor: pointer;
}

.video-placeholder:hover {
    background: #d1d5db;
}

.play-icon {
    font-size: 3rem;
    color: var(--primary-red);
    opacity: 0.8;
}

.video-placeholder p {
    font-weight: 700;
    color: var(--text-main);
}

.video-cta a {
    color: var(--primary-red);
    font-weight: 600;
    text-decoration: none;
}

/* 侧边栏 */
.guide-sidebar {
    width: 280px;
    position: sticky;
    top: 120px;
    height: fit-content;
}

.sticky-card {
    background: #f9fafb;
    border-radius: var(--radius-lg);
    padding: 30px;
    border: 1px solid #f3f4f6;
}

.sticky-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
}

.sticky-card ul {
    list-style: none;
    margin-bottom: 25px;
}

.sticky-card li {
    margin-bottom: 14px;
}

.sticky-card a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
    display: block;
    padding: 4px 0;
}

.sticky-card a:hover {
    color: var(--primary-red);
}

.sidebar-download-box {
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
    text-align: center;
}

.sidebar-download-box p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 500;
}

.btn-sidebar-dl {
    display: block;
    background: var(--primary-red);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-sidebar-dl:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.25);
}

/* ========== 页脚 (与首页统一) ========== */
footer {
    background: #111111;
    color: #ffffff;
    padding: 80px 8% 40px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-logo-section img {
    height: 35px;
    margin-bottom: 20px;
}

.footer-logo-section p {
    color: #999;
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-domain {
    color: var(--primary-red) !important;
    font-weight: 600;
}

.footer-column h3 {
    color: var(--primary-red);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-red);
    border-radius: 2px;
}

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

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

.footer-column ul li a {
    color: #cccccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: var(--primary-red);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #888;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.footer-socials a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-socials a:hover {
    color: #fff;
}

/* ========== 响应式设计 ========== */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .footer-logo-section {
        grid-column: span 2;
        text-align: center;
    }
}

@media (max-width: 992px) {
    .guide-wrapper {
        flex-direction: column;
        padding-top: 120px;
    }
    .guide-sidebar {
        display: none;
    }
    .guide-header h1 {
        font-size: 2.2rem;
    }
    .path-grid {
        grid-template-columns: 1fr;
    }
    .steps-horizontal {
        flex-direction: column;
    }
    .perm-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .guide-header h1 {
        font-size: 1.8rem;
    }
    .path-selector {
        padding: 25px 20px;
    }
}