/* ============================================
   CenterPHP 帮助中心样式
   ============================================ */

/* 页面布局 */
.help-page {
    min-height: calc(100vh - 64px);
    background: #f8fafc;
    padding: 48px 0;
}

/* 页面标题 */
.help-header {
    text-align: center;
    margin-bottom: 48px;
}

.help-title {
    font-size: 36px;
    font-weight: 700;
    color: #1e2b3c;
    margin-bottom: 12px;
}

.help-subtitle {
    font-size: 16px;
    color: #6b7280;
}

/* 帮助区块 */
.help-section {
    margin-bottom: 32px;
}

.section-card {
    background: white;
    border-radius: 6px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #1e2b3c;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: #23a894;
}

/* FAQ 列表 */
.faq-list {
    border-top: 1px solid #f3f4f6;
}

.faq-item {
    border-bottom: 1px solid #f3f4f6;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: #1e2b3c;
    cursor: pointer;
    text-align: left;
    transition: color 0.2s;
}

.faq-question:hover {
    color: #23a894;
}

.faq-question i {
    transition: transform 0.3s;
    color: #9ca3af;
    font-size: 14px;
}

.faq-question i.rotate {
    transform: rotate(180deg);
    color: #23a894;
}

.faq-answer {
    padding: 0 0 20px 0;
}

.faq-answer p {
    font-size: 14px;
    color: #5e6f7d;
    line-height: 1.8;
    margin-bottom: 8px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer strong {
    color: #1e2b3c;
    font-weight: 600;
}

.faq-answer ol {
    padding-left: 20px;
}

.faq-answer ol li {
    font-size: 14px;
    color: #5e6f7d;
    line-height: 1.8;
    margin-bottom: 4px;
}

.faq-answer ol li:last-child {
    margin-bottom: 0;
}

/* 使用指南网格 */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.guide-card {
    border: 1px solid #f3f4f6;
    border-radius: 6px;
    padding: 24px;
    transition: all 0.3s;
}

.guide-card:hover {
    border-color: #23a894;
    box-shadow: 0 4px 12px rgba(35, 168, 148, 0.1);
}

.guide-icon {
    width: 48px;
    height: 48px;
    background: #e8f7f5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #23a894;
    font-size: 20px;
    margin-bottom: 16px;
}

.guide-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e2b3c;
    margin-bottom: 8px;
}

.guide-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
}

/* 联系我们 */
.contact-content {
    padding-top: 8px;
}

.contact-intro {
    font-size: 15px;
    color: #5e6f7d;
    margin-bottom: 24px;
    line-height: 1.6;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-item i {
    width: 20px;
    color: #23a894;
    font-size: 16px;
}

.contact-label {
    font-size: 14px;
    color: #6b7280;
}

.contact-value {
    font-size: 14px;
    color: #1e2b3c;
    font-weight: 500;
    display: inline;
    padding: 4px 8px;
}

a.contact-value {
    text-decoration: none;
    transition: color 0.2s;
}

a.contact-value:hover {
    color: #23a894;
}

.feedback-btn {
    padding: 4px 8px;
    background: #e8f7f5;
    border: 1px solid #d1f0eb;
    border-radius: 3px;
    color: #23a894;
    font-size: 14px;
    cursor: pointer;
}


/* details 标签重置 */
.faq-details {
    border: none;
}

.faq-details > summary {
    list-style: none; /* 去掉默认三角 */
    cursor: pointer;
    /* 保持你原来的 .faq-question 样式 */
}

.faq-details > summary::-webkit-details-marker {
    display: none; /* Chrome 隐藏默认三角 */
}

.faq-details > summary::marker {
    display: none; /* Firefox 隐藏默认三角 */
}

/* 展开/收起图标用你原来的 chevron */
.faq-details > summary .fa-chevron-down {
    transition: transform 0.3s ease;
}

.faq-details[open] > summary .fa-chevron-down {
    transform: rotate(180deg);
}

/* FAQ 答案中的列表样式 */
.faq-answer ul,
.faq-answer ol {
    margin: 0.5rem 0 0.5rem 1.2rem;
    padding: 0;
    line-height: 1.8;
}

.faq-answer li {
    margin-bottom: 0.25rem;
    color: #4b5563;
}


/* 响应式 - 平板设备 */
@media (max-width: 1024px) {
    .guide-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 响应式 - 移动设备 */
@media (max-width: 768px) {
    .help-page {
        padding: 32px 0;
    }
    
    .help-title {
        font-size: 28px;
    }
    
    .section-card {
        padding: 24px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .guide-grid {
        grid-template-columns: 1fr;
    }
}

/* 响应式 - 小屏设备 */
@media (max-width: 480px) {
    .help-title {
        font-size: 24px;
    }
    
    .help-subtitle {
        font-size: 14px;
    }
    
    .section-card {
        padding: 20px;
    }
    
    .faq-question {
        font-size: 14px;
        padding: 16px 0;
    }
}