/* ============================================================
   FAQ 模块样式（首页 index.html 与详情页 faq.html 共用）
   ============================================================ */

/* ---------- 手风琴列表（首页 & 详情页通用） ---------- */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-q {
    position: relative;
    padding: 15px 50px 15px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    line-height: 1.5;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.faq-q:hover {
    color: #DE322F;
}

.faq-item.open .faq-q {
    color: #DE322F;
    border-bottom: 1px solid #f0f0f0;
}

/* + / − 图标，纯 CSS，无图片请求 */
.faq-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    width: 18px;
    height: 18px;
    margin-top: -9px;
}

.faq-icon:before,
.faq-icon:after {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 18px;
    height: 2px;
    background: #999;
    transition: transform .2s ease;
}

.faq-icon:after {
    transform: rotate(90deg);
}

.faq-item.open .faq-icon:after {
    transform: rotate(0deg);
}

.faq-item.open .faq-icon:before,
.faq-item.open .faq-icon:after {
    background: #DE322F;
}

.faq-a {
    padding: 15px 20px;
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

.faq-empty {
    text-align: center;
    color: #999;
    padding: 40px 0;
}

/* ---------- FAQ 详情页专用 ---------- */
body.faq-page {
    margin: 0;
    padding: 0;
    background: #f8f8f8;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    color: #333;
}

.faq-page-top {
    background: #1a1a1a;
    padding: 15px 0;
}

.faq-page-top-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
    overflow: hidden;
}

.faq-logo {
    float: left;
    font-size: 20px;
    font-weight: bold;
    font-style: italic;
    color: #fff;
    text-decoration: none;
}

.faq-logo span {
    color: #DE322F;
}

.faq-back {
    float: right;
    margin-top: 4px;
    font-size: 14px;
    color: #ccc;
    text-decoration: none;
}

.faq-back:hover {
    color: #fff;
}

.faq-page-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 15px 60px;
}

.faq-page-main h1 {
    margin: 0 0 30px;
    font-size: 28px;
    color: #DE322F;
    text-align: center;
}

.faq-page-footer {
    background: #1a1a1a;
    color: #777;
    font-size: 13px;
    text-align: center;
    padding: 20px 15px;
}

@media (max-width: 768px) {
    .faq-q {
        font-size: 15px;
        padding-right: 45px;
    }

    .faq-page-main {
        padding: 30px 12px 40px;
    }

    .faq-page-main h1 {
        font-size: 22px;
    }
}
