/* 使用指南样式 */

.guide-main {
    background: var(--bg-color);
    min-height: calc(100vh - 60px);
    padding: 40px 24px;
}

.guide-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
}

/* 侧边导航 */
.guide-sidebar {
    position: sticky;
    top: 80px;
    height: fit-content;
    background: var(--panel-bg);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
}

.guide-sidebar h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.guide-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.guide-nav-item {
    padding: 10px 12px;
    border-radius: var(--radius);
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.guide-nav-item:hover {
    background: var(--bg-color);
    color: var(--primary-color);
}

.guide-nav-item.active {
    background: var(--primary-color);
    color: white;
}

/* 内容区 */
.guide-content {
    background: var(--panel-bg);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
}

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

.guide-content h1 i {
    color: var(--primary-color);
}

.guide-intro {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

/* 章节 */
.guide-section {
    margin-bottom: 48px;
}

.guide-section:last-child {
    margin-bottom: 0;
}

.guide-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-color);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.guide-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 28px 0 16px;
    color: var(--primary-color);
}

.guide-section h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 20px 0 12px;
    color: var(--text-color);
}

.guide-section p {
    margin-bottom: 16px;
    line-height: 1.8;
    color: var(--text-color);
}

.guide-section a {
    color: var(--primary-color);
    text-decoration: none;
}

.guide-section a:hover {
    text-decoration: underline;
}

.guide-section ul {
    margin-bottom: 16px;
    padding-left: 24px;
}

.guide-section li {
    margin-bottom: 8px;
    line-height: 1.7;
}

/* 步骤列表 */
.step-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.step-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--bg-color);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-color);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content h4 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.step-content p {
    margin-bottom: 0;
    color: var(--text-light);
}

/* 纸张类型列表 */
.paper-type-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.paper-type-item {
    padding: 20px;
    background: var(--bg-color);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.paper-type-item h4 {
    margin-top: 0;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.paper-type-item h4 i {
    color: var(--primary-color);
}

.paper-type-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--text-light);
}

/* 特性列表 */
.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    padding-left: 24px;
    position: relative;
}

.feature-list li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: var(--primary-color);
    font-weight: bold;
}

/* 导出格式 */
.export-format-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.export-format-item {
    padding: 20px;
    background: var(--bg-color);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.export-format-item h4 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.export-format-item h4 i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.export-format-item p {
    margin: 0;
    color: var(--text-light);
}

/* 提示框 */
.tip-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 20px;
}

.tip-box h4 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #166534;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tip-box h4 i {
    color: #22c55e;
}

.tip-box ul {
    margin-bottom: 0;
}

.tip-box li {
    color: #166534;
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.faq-item {
    padding: 20px;
    background: var(--bg-color);
    border-radius: var(--radius);
    border-left: 4px solid var(--accent-color);
}

.faq-item h4 {
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.faq-item p {
    margin-bottom: 0;
    color: var(--text-light);
}

/* 帮助区域 */
.help-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.help-section h2 {
    color: white;
    border-bottom: none;
    margin-bottom: 16px;
}

.help-section p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 16px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: var(--primary-color) !important;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s;
}

.contact-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* 代码 */
code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
    color: #334155;
}

/* 响应式设计 */
@media (max-width: 968px) {
    .guide-container {
        grid-template-columns: 1fr;
    }
    
    .guide-sidebar {
        position: relative;
        top: 0;
    }
    
    .guide-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .guide-nav-item {
        white-space: nowrap;
    }
    
    .paper-type-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .guide-content {
        padding: 24px;
    }
    
    .step-item {
        flex-direction: column;
        gap: 12px;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}
