/* ========== 使用教程页面 - 飞书文档风格 ========== */

.tutorial-layout {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 70px;
    min-height: 100vh;
}

/* 左侧导航 */
.tutorial-sidebar {
    width: 260px;
    flex-shrink: 0;
    border-right: 1px solid var(--gray-100);
    background: #fafbfc;
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
    padding: 24px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-200) transparent;
}
.tutorial-sidebar::-webkit-scrollbar { width: 4px; }
.tutorial-sidebar::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 2px; }

.sidebar-nav-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-400);
    padding: 0 20px;
    margin-bottom: 8px;
}

.sidebar-nav-group {
    margin-bottom: 4px;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 20px;
    font-size: 14px;
    color: var(--gray-600);
    text-decoration: none;
    transition: all 0.15s;
    border-left: 3px solid transparent;
    line-height: 1.4;
}
.sidebar-nav-item:hover {
    color: var(--gray-900);
    background: rgba(0,0,0,0.03);
    text-decoration: none;
}
.sidebar-nav-item.active {
    color: #0891b2;
    background: rgba(8,145,178,0.06);
    border-left-color: #0891b2;
    font-weight: 600;
}
.sidebar-nav-item .nav-icon {
    font-size: 16px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-nav-divider {
    height: 1px;
    background: var(--gray-100);
    margin: 12px 20px;
}

/* 右侧内容区 */
.tutorial-content {
    flex: 1;
    min-width: 0;
    padding: 40px 56px 80px;
    max-width: 860px;
}

/* 文章标题 */
.tutorial-hero {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--gray-100);
}
.tutorial-hero h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--gray-900);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}
.tutorial-hero p {
    font-size: 16px;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.6;
}
.tutorial-hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--gray-400);
}
.tutorial-hero-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 章节 */
.tutorial-section {
    margin-bottom: 56px;
    scroll-margin-top: 80px;
}
.tutorial-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #0891b2;
    display: inline-block;
    letter-spacing: -0.01em;
}
.tutorial-section h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--gray-800);
    margin: 28px 0 12px;
}
.tutorial-section p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--gray-600);
    margin: 0 0 16px;
}

/* 步骤列表 */
.step-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 24px;
    counter-reset: step;
}
.step-list li {
    counter-increment: step;
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-50);
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray-600);
}
.step-list li:last-child { border-bottom: none; }
.step-list li::before {
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0891b2, #06b6d4);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

/* 提示框 */
.tip-box {
    display: flex;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 10px;
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.7;
}
.tip-box.info {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0c4a6e;
}
.tip-box.warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #78350f;
}
.tip-box.success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #14532d;
}
.tip-box .tip-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* 功能卡片 */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 20px 0 24px;
}
.feature-card {
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--gray-100);
    background: #fff;
    transition: all 0.2s;
}
.feature-card:hover {
    border-color: #0891b2;
    box-shadow: 0 4px 16px rgba(8,145,178,0.08);
}
.feature-card .card-icon {
    font-size: 24px;
    margin-bottom: 10px;
}
.feature-card .card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 6px;
}
.feature-card .card-desc {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.6;
}

/* 快捷键表格 */
.shortcut-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: 14px;
}
.shortcut-table th {
    text-align: left;
    padding: 10px 16px;
    background: #f8fafc;
    color: var(--gray-600);
    font-weight: 600;
    border-bottom: 2px solid var(--gray-100);
    font-size: 13px;
}
.shortcut-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--gray-50);
    color: var(--gray-600);
}
.shortcut-table tr:hover td {
    background: #fafbfc;
}
.shortcut-table code {
    display: inline-block;
    padding: 2px 8px;
    background: #f1f5f9;
    border-radius: 4px;
    font-size: 13px;
    color: #0891b2;
    font-family: 'SF Mono', Monaco, monospace;
}

/* 移动端适配 */
.tutorial-mobile-toggle {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #0891b2;
    color: #fff;
    border: none;
    box-shadow: 0 4px 16px rgba(8,145,178,0.4);
    cursor: pointer;
    z-index: 100;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

@media (max-width: 900px) {
    .tutorial-sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: none;
        padding-top: 80px;
    }
    .tutorial-sidebar.open {
        left: 0;
        box-shadow: 4px 0 24px rgba(0,0,0,0.15);
    }
    .tutorial-content {
        padding: 24px 20px 80px;
    }
    .tutorial-mobile-toggle {
        display: flex;
    }
    .tutorial-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.3);
        z-index: 999;
    }
    .tutorial-overlay.show {
        display: block;
    }
    .feature-cards {
        grid-template-columns: 1fr;
    }
    .tutorial-hero h1 {
        font-size: 24px;
    }
}

/* VIP对比表格 */
.vip-compare-table {
    border: 1px solid var(--gray-100);
    border-radius: 10px;
    overflow: hidden;
}
.vip-compare-table th {
    background: #f1f5f9;
}
.vip-compare-table th.vip-col {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #065f46;
}
.vip-compare-table td.vip-col {
    background: #f0fdf4;
    font-weight: 500;
    color: #166534;
}
.vip-yes {
    color: #059669;
    font-weight: 600;
}
.vip-no {
    color: #9ca3af;
    font-weight: 500;
}

/* 特别说明 */
.notice-block {
    padding: 20px 24px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid #fde68a;
    margin-bottom: 24px;
}
.notice-block p {
    color: #78350f;
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.8;
}
.notice-block p:last-child {
    margin-bottom: 0;
}
.notice-block strong {
    color: #92400e;
}

/* 免责声明 */
.disclaimer-block {
    padding: 20px 24px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid var(--gray-200);
}
.disclaimer-block h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 12px;
}
.disclaimer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.disclaimer-list li {
    position: relative;
    padding: 6px 0 6px 20px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--gray-500);
}
.disclaimer-list li::before {
    content: '•';
    position: absolute;
    left: 4px;
    color: var(--gray-400);
    font-weight: 700;
}
