/* ========== 帮助页 ========== */

@import url("topheader.css"); 

:root {
    --primary: #2563eb;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --accent: #60a5fa;
    --bg: #eff6ff;
    --white: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #dbeafe;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: #f8fafc;
}

/* ========== 页面标题 ========== */
.page-header {
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 48px 0;
    text-align: center;
    border: 1px solid var(--border);
    max-width: 1400px;
    margin: 20px auto;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.page-header p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ========== 主内容区 ========== */
/* ========== 主内容区 ========== */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 200px);  /* 加回最小高度 */
    display: flex;
    padding: 20px 20px 60px;
    gap: 24px;
}

/* ========== 左侧导航 ========== */
.sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.sidebar-header {
    padding: 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.sidebar-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0;
}

.sidebar-nav {
    padding: 12px 0;
}

.nav-item-l {
    display: block;
    padding: 14px 24px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

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

.nav-item-l.active {
    background-color: var(--bg);
    color: var(--primary);
    font-weight: 600;
    border-left: 3px solid var(--primary);
}

.nav-item-l::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: var(--primary);
    transition: all 0.2s;
}

.nav-item-l.active::before {
    width: 3px;
}

/* ========== 右侧内容 ========== */
.content-area {
    flex: 1;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.content-panel {
    padding: 32px 40px;
    display: none;
}

.content-panel.active {
    display: block;
}

.content-title {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border);
    font-weight: 700;
}

.content-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text);
}

.content-text p {
    margin-bottom: 16px;
}

.content-text strong {
    color: var(--primary-dark);
    font-weight: 600;
}

/* 强调框 */
.highlight-box {
    background: var(--bg);
    border-left: 4px solid var(--primary);
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.highlight-box p {
    margin: 0;
    color: var(--text);
}

/* 服务列表 */
.service-list {
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.service-list li {
    padding: 12px 0;
    padding-left: 24px;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
}

/* 联系信息 */
.contact-info {
    background: var(--bg);
    border-radius: 10px;
    padding: 24px;
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.contact-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-label {
    font-weight: 600;
    color: var(--primary-dark);
    width: 100px;
    flex-shrink: 0;
}

.contact-value {
    color: var(--text);
    flex: 1;
}

/* ========== 底部 ========== */
.footer {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 0 3rem;
    border-top: 2px solid var(--primary);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-col p {
    color: var(--text-light);
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: var(--primary);
}

/* ========== 响应式 ========== */
@media (max-width: 900px) {
    .main-container {
        flex-direction: column;
        padding: 0 16px 40px;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .sidebar-nav {
        display: flex;
        flex-wrap: wrap;
        padding: 8px;
        gap: 8px;
    }
    
    .nav-item-l {
        flex: 1;
        min-width: calc(50% - 8px);
        text-align: center;
        padding: 12px;
        border-left: none;
        border-bottom: 2px solid transparent;
        border-radius: 6px;
    }
    
    .nav-item-l.active {
        border-left: none;
        border-bottom-color: var(--primary);
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 36px 0;
        margin: 16px;
        border-radius: 10px;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .page-header p {
        font-size: 0.8rem;
    }
    
    .content-panel {
        padding: 24px 20px;
    }
    
    .content-title {
        font-size: 1.25rem;
    }
    
    .content-text {
        font-size: 0.9rem;
    }
    
    .contact-item {
        flex-direction: column;
        gap: 6px;
    }
    
    .contact-label {
        width: auto;
    }
    
    .footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
        padding: 24px 16px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 12px 20px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 28px 0;
        margin: 12px;
    }
    
    .page-header h1 {
        font-size: 1.25rem;
    }
    
    .nav-item-l {
        min-width: calc(50% - 6px);
        padding: 10px;
        font-size: 0.85rem;
    }
    
    .content-panel {
        padding: 20px 16px;
    }
    
    .content-title {
        font-size: 1.1rem;
    }
}