/* ========== 全局重置 & 基础 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* ========== 面包屑 ========== */
.breadcrumb {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 24px;
    font-size: 13px;
    color: #95a5a6;
}
.breadcrumb a {
    color: #3498db;
    text-decoration: none;
}
.breadcrumb span {
    margin: 0 8px;
    color: #000000;
}

/* ========== 容器 ========== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 40px;
    display: flex;
    gap: 24px;
}

/* ========== 左侧目录导航 ========== */
.nav-sidebar {
    width: 220px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    align-self: flex-start;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}
.nav-sidebar::-webkit-scrollbar {
    width: 3px;
}
.nav-sidebar::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.nav-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}
.nav-header {
    padding: 20px 20px 16px;
    border-bottom: 1px solid #eef1f5;
}
.nav-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2d3d;
}
.nav-header p {
    font-size: 12px;
    color: #95a5a6;
    margin-top: 4px;
}
.nav-list {
    padding: 12px 0;
}
.nav-group {
    margin-bottom: 4px;
}
.nav-group-title {
    padding: 8px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #95a5a6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border-left: 3px solid transparent;
}
.nav-item:hover {
    background: #f0f7fd;
    color: #3498db;
}
.nav-item.active {
    background: #eaf5fd;
    color: #3498db;
    border-left-color: #3498db;
    font-weight: 500;
}
.nav-item-icon {
    font-size: 15px;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}
.nav-item-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========== 主内容区 ========== */
.main-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

/* ========== 分类区块 ========== */
.category-section {
    margin-bottom: 24px;
}
.category-section:last-child {
    margin-bottom: 0;
}
.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 28px;
    border-bottom: 1px solid #eef1f5;
    background: #fafbfd;
}
.category-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.category-icon.account {
    background: #eaf5fd;
}
.category-icon.settle {
    background: #eefbf4;
}
.category-icon.recycle {
    background: #fff7ed;
}
.category-icon.safe {
    background: #f3eef8;
}
.category-header-text h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2d3d;
}
.category-header-text p {
    font-size: 12px;
    color: #95a5a6;
    margin-top: 2px;
}

/* ========== FAQ 列表 ========== */
.faq-list {
    padding: 0 28px;
}
.faq-item {
    border-bottom: 1px solid #f0f2f5;
}
.faq-item:last-child {
    border-bottom: none;
}
.faq-question {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 0;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
}
.faq-question:hover h4 {
    color: #3498db;
}
.faq-q-badge {
    width: 24px;
    height: 24px;
    background: #eaf5fd;
    color: #3498db;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.3s;
}
.faq-item.active .faq-q-badge {
    background: #3498db;
    color: #fff;
}
.faq-question h4 {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    line-height: 1.5;
    transition: color 0.2s;
}
.faq-arrow {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s;
    color: #ccc;
}
.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    color: #3498db;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.faq-item.active .faq-answer {
    max-height: 500px;
}
.faq-answer-inner {
    padding: 0 0 20px 38px;
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}
.faq-answer-inner p {
    margin-bottom: 10px;
}
.faq-answer-inner p:last-child {
    margin-bottom: 0;
}

/* ========== 右侧边栏 ========== */
.right-sidebar {
    width: 260px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    align-self: flex-start;
}
.sidebar-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    margin-bottom: 16px;
}
.sidebar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eef1f5;
}
.sidebar-title-bar {
    width: 3px;
    height: 14px;
    background: linear-gradient(180deg, #3498db 0%, #2980b9 100%);
    border-radius: 2px;
}
.sidebar-title h3 {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

.hot-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.hot-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}
.hot-item:hover {
    background: #f0f7fd;
}
.hot-rank {
    width: 18px;
    height: 18px;
    background: #e0e0e0;
    color: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
}
.hot-item:nth-child(1) .hot-rank {
    background: #ff6b6b;
}
.hot-item:nth-child(2) .hot-rank {
    background: #ffa502;
}
.hot-item:nth-child(3) .hot-rank {
    background: #3498db;
}
.hot-item-title {
    flex: 1;
    font-size: 13px;
    color: #555;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hot-item:hover .hot-item-title {
    color: #3498db;
}

/* ========== 联系客服 ========== */
.contact-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s;
    border: 1px solid transparent;
}
.contact-item:hover {
    background: #fff;
    border-color: #bcd4ea;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.08);
}
.contact-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.contact-item-icon.online {
    background: #e8f5e9;
}
.contact-item-icon.phone {
    background: #e3f2fd;
}
.contact-item-icon.email {
    background: #fff3e0;
}
.contact-item-info {
    flex: 1;
    min-width: 0;
}
.contact-item-info h5 {
    font-size: 12px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1px;
}
.contact-item-info p {
    font-size: 11px;
    color: #95a5a6;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.contact-item-arrow {
    color: #ccc;
    font-size: 14px;
    flex-shrink: 0;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .nav-sidebar {
        display: none;
    }
    .right-sidebar {
        width: 240px;
    }
}

@media (max-width: 768px) {
    .breadcrumb {
        padding: 12px 16px;
        font-size: 12px;
    }
    .container {
        padding: 0 16px 16px;
        gap: 16px;
        flex-direction: column;
    }
    .right-sidebar {
        width: 100%;
        position: static;
    }
    .section {
        border-radius: 10px;
    }
    .category-header {
        padding: 16px 20px;
    }
    .faq-list {
        padding: 0 20px;
    }
    .faq-question {
        padding: 14px 0;
        gap: 10px;
    }
    .faq-answer-inner {
        padding: 0 0 16px 34px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px 12px;
    }
    .category-header {
        padding: 14px 16px;
    }
    .faq-list {
        padding: 0 16px;
    }
    .faq-question h4 {
        font-size: 13px;
    }
    .faq-answer-inner {
        padding: 0 0 14px 14px;
        font-size: 13px;
    }
}