/* guide.css - 使用说明页面专用样式 */

body {
    background: #f9fafb;
    min-height: 100vh;
}

.guide-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 顶部导航 */
.guide-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px 32px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
}

.back-home {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
}

.back-home:hover {
    background: #f3f4f6;
    color: #111;
}

.guide-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
    margin: 0;
}

/* 主体布局 */
.guide-main {
    display: flex;
    flex: 1;
}

/* 侧边导航 */
.guide-sidebar {
    width: 240px;
    background: #fff;
    border-right: 1px solid #e5e7eb;
    padding: 24px 16px;
    position: sticky;
    top: 65px;
    height: calc(100vh - 65px);
    overflow-y: auto;
    flex-shrink: 0;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    padding-left: 12px;
}

.nav-link {
    display: block;
    padding: 10px 12px;
    color: #4b5563;
    text-decoration: none;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.15s;
    margin-bottom: 4px;
}

.nav-link:hover {
    background: #f3f4f6;
    color: #111;
}

.nav-link.active {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 600;
}

/* 内容区 */
.guide-content {
    flex: 1;
    max-width: 800px;
    padding: 40px 48px 80px;
    margin: 0 auto;
}

.content-section {
    margin-bottom: 48px;
    scroll-margin-top: 100px;
}

.content-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.content-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin: 24px 0 12px 0;
}

.content-section p {
    color: #4b5563;
    line-height: 1.7;
    margin: 0 0 16px 0;
}

/* 高亮章节 */
.highlight-section {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: 16px;
    padding: 24px;
    position: relative;
}

.feature-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

/* 步骤列表 */
.step-list {
    padding-left: 24px;
    margin: 16px 0;
}

.step-list li {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 8px;
}

/* 功能列表 */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.feature-list li {
    color: #4b5563;
    line-height: 1.8;
    padding-left: 24px;
    position: relative;
    margin-bottom: 8px;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
}

/* 内联按钮 */
.inline-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f3f4f6;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

/* 提示框 */
.tip-box {
    display: flex;
    gap: 12px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    padding: 16px;
    margin-top: 20px;
}

.tip-icon {
    font-size: 20px;
}

.tip-content strong {
    display: block;
    color: #1e40af;
    margin-bottom: 4px;
}

.tip-content p {
    margin: 0;
    font-size: 13px;
    color: #3b82f6;
}

/* 信息表格 */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.info-table th,
.info-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.info-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
    font-size: 13px;
}

.info-table td {
    color: #4b5563;
    font-size: 14px;
}

/* 模板网格 */
.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.template-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

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

.template-info h4 {
    margin: 0 0 2px 0;
    font-size: 14px;
    font-weight: 600;
    color: #111;
}

.template-info p {
    margin: 0;
    font-size: 12px;
    color: #9ca3af;
}

/* 比例展示 */
.ratio-grid {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin: 16px 0;
}

.ratio-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.ratio-demo {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    border-radius: 8px;
}

.ratio-demo.ratio-1-1 {
    width: 48px;
    height: 48px;
}

.ratio-demo.ratio-3-4 {
    width: 36px;
    height: 48px;
}

.ratio-demo.ratio-9-16 {
    width: 27px;
    height: 48px;
}

.ratio-demo.ratio-16-9 {
    width: 64px;
    height: 36px;
}

.ratio-item span {
    font-size: 12px;
    color: #6b7280;
}

/* CTA 按钮 */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #111 0%, #333 100%);
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    margin-top: 16px;
    transition: all 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .guide-sidebar {
        display: none;
    }

    .guide-content {
        padding: 24px 20px 60px;
    }

    .guide-header {
        padding: 12px 16px;
    }

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

    .info-table {
        font-size: 13px;
    }

    .info-table th,
    .info-table td {
        padding: 10px 12px;
    }
}