/** FAQ 页面专属样式 **/

/* 顶部统计 */
.faq-stats {
    background: #f5f7fa;
    padding: 30px 0;
}
.faq-stats .box {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    text-align: center;
}
.faq-stats .box > div {
    flex: 1;
    min-width: 120px;
}
.faq-stats .box p:nth-child(1) {
    font-size: 32px;
    color: #1a73e8;
    font-weight: bold;
}
.faq-stats .box p:nth-child(2) {
    font-size: 14px;
    color: #666;
    margin-top: 6px;
}

/* 分类锚点导航 */
.faq-nav {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.faq-nav .box {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    padding: 12px 0;
}
.faq-nav .box a {
    flex: 1;
    text-align: center;
    padding: 8px 6px;
    font-size: 14px;
    color: #333;
    border-right: 1px solid #eee;
    white-space: nowrap;
}
.faq-nav .box a:last-child {
    border-right: 0;
}
.faq-nav .box a:hover {
    color: #1a73e8;
}

/* 分类区块 */
.faq-section {
    padding: 40px 0;
    border-bottom: 1px dashed #eee;
}
.faq-section .box {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
.faq-section h2 {
    font-size: 22px;
    font-weight: bold;
    color: #1a73e8;
    margin-bottom: 8px;
    padding-left: 14px;
    border-left: 4px solid #1a73e8;
}
.faq-section .sub {
    color: #999;
    font-size: 13px;
    margin-bottom: 24px;
    padding-left: 18px;
}

/* 单条问答 */
.faq-item {
    margin-bottom: 12px;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow .2s;
}
.faq-item:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.faq-item > summary {
    padding: 14px 20px 14px 48px;
    font-size: 15px;
    font-weight: bold;
    color: #222;
    cursor: pointer;
    position: relative;
    list-style: none;
    background: #fafbfc;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::before {
    content: "Q";
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #1a73e8;
    font-weight: bold;
    font-size: 14px;
    background: #e8f0fe;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: 50%;
}
.faq-item > summary::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 20px;
    transition: transform .2s;
}
.faq-item[open] > summary::after {
    content: "−";
    color: #1a73e8;
}
.faq-item > summary:hover {
    background: #f0f4ff;
}
.faq-item .faq-a {
    padding: 16px 20px 16px 48px;
    font-size: 14px;
    line-height: 1.85;
    color: #444;
    border-top: 1px solid #f0f0f0;
}
.faq-item .faq-a p {
    margin: 6px 0;
}
.faq-item .faq-a ul,
.faq-item .faq-a ol {
    margin: 6px 0 6px 22px;
    padding: 0;
}
.faq-item .faq-a li {
    margin: 4px 0;
    list-style: disc;
}
.faq-item .faq-a ol li {
    list-style: decimal;
}
.faq-item .faq-a strong,
.faq-item .faq-a b {
    color: #1a73e8;
    font-weight: bold;
}

/* 答案中的表格 */
.faq-item .faq-a table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 13px;
}
.faq-item .faq-a th,
.faq-item .faq-a td {
    border: 1px solid #e8e8e8;
    padding: 8px 10px;
    text-align: left;
}
.faq-item .faq-a th {
    background: #f5f7fa;
    color: #333;
    font-weight: bold;
}
.faq-item .faq-a tr:nth-child(even) td {
    background: #fafbfc;
}

/* 联系 CTA */
.faq-cta {
    background: linear-gradient(135deg, #1a73e8, #4285f4);
    color: #fff;
    text-align: center;
    padding: 40px 0;
}
.faq-cta .box {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}
.faq-cta p:nth-child(1) {
    font-size: 22px;
    font-weight: bold;
}
.faq-cta p:nth-child(2) {
    font-size: 14px;
    margin-top: 8px;
    opacity: .9;
}
.faq-cta .btn {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 28px;
    background: #fff;
    color: #1a73e8;
    border-radius: 24px;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
}

/* 移动端适配 */
@media screen and (max-width: 640px) {
    .faq-stats .box p:nth-child(1) { font-size: 22px; }
    .faq-nav .box a { font-size: 12px; padding: 6px 2px; }
    .faq-section h2 { font-size: 18px; }
    .faq-item > summary { font-size: 14px; padding-left: 42px; }
    .faq-item .faq-a { padding-left: 20px; font-size: 13px; }
    .faq-item .faq-a table { font-size: 12px; }
    .faq-item .faq-a th, .faq-item .faq-a td { padding: 6px 4px; }
}
