/**
 * Guide Page Styles
 * 引导说明页面样式
 */

/* ========== 容器布局 ========== */
.guide-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* ========== 左侧边栏 ========== */
.guide-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.guide-section {
    margin-bottom: 30px;
}

.guide-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #2C2C2C;
    padding: 15px 20px;
    background: linear-gradient(135deg, #F4E4C1, #FFF8E7);
    border-left: 4px solid #D4AF37;
    margin-bottom: 10px;
    border-radius: 4px;
}

.guide-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: white;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    overflow: hidden;
}

.guide-menu-item {
    border-bottom: 1px solid #F0F0F0;
}

.guide-menu-item:last-child {
    border-bottom: none;
}

.guide-menu-item a {
    display: block;
    padding: 12px 20px;
    color: #4A4A4A;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.guide-menu-item a:hover {
    background: #F8F8F8;
    color: #D4AF37;
    padding-left: 25px;
}

.guide-menu-item.active {
    background: linear-gradient(135deg, #E8D4B8, #F4E4C1);
}

.guide-menu-item.active a {
    color: #B8860B;
    font-weight: 600;
    padding-left: 25px;
}

.guide-menu-item.active a::before {
    content: '▶';
    position: absolute;
    left: 10px;
    font-size: 10px;
    color: #D4AF37;
}

/* ========== 右侧内容区 ========== */
.guide-content {
    background: white;
    border: 1px solid #E0E0E0;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    min-height: 600px;
}

.content-wrapper {
    padding: 40px;
}

.content-wrapper h2 {
    font-size: 28px;
    color: #2C2C2C;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #D4AF37;
    font-weight: 700;
}

.content-wrapper h3 {
    font-size: 20px;
    color: #4A4A4A;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.content-wrapper h4 {
    font-size: 16px;
    color: #666;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.content-wrapper p {
    line-height: 1.8;
    color: #666;
    margin-bottom: 15px;
    font-size: 15px;
}

.content-wrapper ul,
.content-wrapper ol {
    margin: 15px 0;
    padding-left: 30px;
    line-height: 1.8;
    color: #666;
}

.content-wrapper li {
    margin-bottom: 10px;
}

.content-wrapper a {
    color: #D4AF37;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.content-wrapper a:hover {
    color: #B8860B;
    text-decoration: underline;
}

/* ========== 信息框样式 ========== */
.info-box,
.warning-box,
.success-box,
.security-box {
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid;
}

.info-box {
    background: #E3F2FD;
    border-left-color: #2196F3;
}

.info-box h4 {
    color: #1976D2;
    margin-top: 0;
}

.warning-box {
    background: #FFF3E0;
    border-left-color: #FF9800;
}

.warning-box h4 {
    color: #F57C00;
    margin-top: 0;
}

.success-box {
    background: #E8F5E9;
    border-left-color: #4CAF50;
}

.success-box h4 {
    color: #388E3C;
    margin-top: 0;
}

.security-box {
    background: #F3E5F5;
    border-left-color: #9C27B0;
}

.security-box h4 {
    color: #7B1FA2;
    margin-top: 0;
}

/* ========== 表格样式 ========== */
.shipping-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.shipping-table th {
    background: linear-gradient(135deg, #D4AF37, #B8860B);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.shipping-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #E0E0E0;
    color: #666;
}

.shipping-table tr:last-child td {
    border-bottom: none;
}

.shipping-table tr:hover {
    background: #F8F8F8;
}

/* ========== 响应式设计 ========== */
@media (max-width: 1024px) {
    .guide-container {
        grid-template-columns: 240px 1fr;
        gap: 30px;
    }
    
    .content-wrapper {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .guide-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .guide-sidebar {
        position: static;
        order: 2;
    }
    
    .guide-content {
        order: 1;
    }
    
    .content-wrapper {
        padding: 20px;
    }
    
    .content-wrapper h2 {
        font-size: 24px;
    }
    
    .content-wrapper h3 {
        font-size: 18px;
    }
    
    .guide-menu-item a {
        font-size: 13px;
        padding: 10px 15px;
    }
    
    .guide-section-title {
        font-size: 16px;
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .guide-container {
        padding: 0 10px;
    }
    
    .content-wrapper {
        padding: 15px;
    }
    
    .content-wrapper h2 {
        font-size: 20px;
    }
    
    .shipping-table {
        font-size: 12px;
    }
    
    .shipping-table th,
    .shipping-table td {
        padding: 8px;
    }
}

/* ========== 打印样式 ========== */
@media print {
    .guide-sidebar {
        display: none;
    }
    
    .guide-container {
        grid-template-columns: 1fr;
    }
    
    .content-wrapper {
        padding: 0;
    }
}
