/**
 * 帮助中心页面样式
 * 简洁黑白 Bento UI 风格
 */

/* ========================================
   基础变量
   ======================================== */
:root {
    --help-primary: #1a1a1a;
    --help-bg: #ffffff;
    --help-card-bg: #f8f9fa;
    --help-card-bg-alt: #fafafa;
    --help-border: #e5e5e5;
    --help-text: #333333;
    --help-text-light: #666666;
    --help-text-muted: #999999;
    --help-link: #1a1a1a;
    --help-warning: #d97706;
    --help-warning-bg: #fffbeb;
    --help-radius: 14px;
    --help-radius-sm: 10px;
    --help-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    --help-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.08);
    --help-transition: all 0.25s ease;
}

/* ========================================
   页面容器
   ======================================== */
.help-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

/* ========================================
   页面标题区
   ======================================== */
.help-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--help-border);
}

.help-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--help-primary);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.help-title i {
    font-size: 28px;
    opacity: 0.8;
}

.help-subtitle {
    font-size: 16px;
    color: var(--help-text-light);
    margin: 0;
}

/* ========================================
   区块样式
   ======================================== */
.help-section {
    margin-bottom: 50px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--help-primary);
    margin: 0 0 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    font-size: 16px;
    opacity: 0.7;
}

/* ========================================
   Bento 网格布局
   ======================================== */
.bento-grid {
    display: grid;
    gap: 16px;
}

/* 公告区网格：PC 2列 */
.announcement-grid {
    grid-template-columns: repeat(2, 1fr);
}

/* FAQ区网格：PC 3列 */
.faq-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* ========================================
   Bento 卡片样式
   ======================================== */
.bento-card {
    background: var(--help-card-bg);
    border-radius: var(--help-radius);
    padding: 24px;
    border: 1px solid var(--help-border);
    box-shadow: var(--help-shadow);
    transition: var(--help-transition);
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.bento-card:hover {
    box-shadow: var(--help-shadow-hover);
    transform: translateY(-2px);
    border-color: #d5d5d5;
}

/* 卡片图标 */
.card-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--help-bg);
    border-radius: var(--help-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--help-primary);
    border: 1px solid var(--help-border);
}

/* 卡片内容 */
.card-content {
    flex: 1;
    min-width: 0;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--help-primary);
    margin: 0 0 8px;
}

.card-text {
    font-size: 14px;
    color: var(--help-text-light);
    margin: 0;
    line-height: 1.6;
}

.card-text a {
    color: var(--help-link);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity 0.2s ease;
}

.card-text a:hover {
    opacity: 0.7;
}

/* ========================================
   公告卡片特殊样式
   ======================================== */
.announcement-card .card-icon {
    background: var(--help-primary);
    color: #fff;
    border: none;
}

/* 警告类型卡片 */
.announcement-card.warning {
    background: var(--help-warning-bg);
    border-color: #fde68a;
}

.announcement-card.warning .card-icon {
    background: var(--help-warning);
}

.announcement-card.warning .card-title {
    color: var(--help-warning);
}

/* ========================================
   FAQ 卡片样式
   ======================================== */
.faq-card .card-icon {
    background: linear-gradient(135deg, var(--help-primary) 0%, #333 100%);
    color: #fff;
    border: none;
}

/* ========================================
   联系区域
   ======================================== */
.contact-section {
    margin-bottom: 0;
}

.contact-card {
    background: var(--help-primary);
    border-radius: var(--help-radius);
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
}

.contact-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
}

.contact-content {
    color: #fff;
}

.contact-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px;
}

.contact-text {
    font-size: 14px;
    margin: 0;
    opacity: 0.85;
}

.contact-text a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.contact-text a:hover {
    opacity: 0.8;
}

/* ========================================
   响应式布局
   ======================================== */

/* 平板 */
@media (max-width: 768px) {
    .help-page {
        padding: 30px 16px 50px;
    }

    .help-header {
        margin-bottom: 36px;
        padding-bottom: 24px;
    }

    .help-title {
        font-size: 26px;
    }

    .help-title i {
        font-size: 24px;
    }

    .help-subtitle {
        font-size: 14px;
    }

    .help-section {
        margin-bottom: 36px;
    }

    .section-title {
        font-size: 16px;
        margin-bottom: 20px;
    }

    /* 公告区改为单列 */
    .announcement-grid {
        grid-template-columns: 1fr;
    }

    /* FAQ区改为2列 */
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-card {
        padding: 20px;
    }

    .contact-card {
        padding: 28px 20px;
        flex-direction: column;
        gap: 16px;
    }
}

/* 手机 */
@media (max-width: 576px) {
    .help-page {
        padding: 24px 12px 40px;
    }

    .help-header {
        margin-bottom: 28px;
        padding-bottom: 20px;
    }

    .help-title {
        font-size: 22px;
        gap: 8px;
    }

    .help-title i {
        font-size: 20px;
    }

    .help-subtitle {
        font-size: 13px;
    }

    .help-section {
        margin-bottom: 28px;
    }

    .section-title {
        font-size: 15px;
        margin-bottom: 16px;
    }

    /* 所有网格改为单列 */
    .announcement-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .bento-card {
        padding: 18px;
        gap: 14px;
    }

    .card-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .card-title {
        font-size: 14px;
    }

    .card-text {
        font-size: 13px;
    }

    .contact-card {
        padding: 24px 16px;
    }

    .contact-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .contact-title {
        font-size: 16px;
    }

    .contact-text {
        font-size: 13px;
    }
}

/* ========================================
   深色模式适配（可选）
   ======================================== */
@media (prefers-color-scheme: dark) {
    /* 如需支持深色模式，可在此添加覆盖样式 */
}
