/* GEO百科 - 分类索引布局 */
#service.faq-page { padding: 50px 0 70px; }

.faq-layout { display: flex; gap: 32px; align-items: flex-start; }

/* ---------- 左侧索引 ---------- */
.faq-side {
    flex: 0 0 280px;
    width: 280px;
    position: sticky;
    top: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    padding: 20px 0 14px;
    overflow: hidden;
    box-sizing: border-box;
}

.faq-search { position: relative; padding: 0 18px 16px; border-bottom: 1px solid #eef2f7; }
.faq-search .ico {
    position: absolute;
    left: 31px;
    top: 14px;
    width: 11px;
    height: 11px;
    border: 2px solid #9aa7b4;
    border-radius: 50%;
}
.faq-search .ico::after {
    content: '';
    position: absolute;
    right: -5px;
    bottom: -4px;
    width: 7px;
    height: 2px;
    background: #9aa7b4;
    transform: rotate(45deg);
}
.faq-search input {
    width: 100%;
    height: 40px;
    border: 1px solid #dfe6ee;
    border-radius: 6px;
    padding: 0 12px 0 34px;
    font-size: 13px;
    color: #333;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-search input::placeholder { color: #a7b1bd; }
.faq-search input:focus {
    border-color: #0f6ab4;
    box-shadow: 0 0 0 3px rgba(15, 106, 180, 0.1);
}

.faq-nav { max-height: 58vh; overflow-y: auto; padding: 10px 0; }
.faq-nav::-webkit-scrollbar { width: 4px; }
.faq-nav::-webkit-scrollbar-thumb { background: #dfe6ee; border-radius: 2px; }

.faq-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    font-size: 14px;
    color: #4a5568;
    border-left: 3px solid transparent;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.faq-nav-item:hover { background: #f5f9ff; color: #0f6ab4; }
.faq-nav-item.is-active {
    background: #eef6ff;
    color: #0f6ab4;
    border-left-color: #0f6ab4;
    font-weight: 600;
}
.faq-nav-item .n {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #a0aec0;
}
.faq-nav-item.is-active .n { color: #0f6ab4; }
.faq-nav-item .t { flex: 1; line-height: 1.35; }
.faq-nav-item .c {
    font-size: 11px;
    color: #0f6ab4;
    background: #e8f2fc;
    border-radius: 10px;
    padding: 1px 7px;
    min-width: 18px;
    text-align: center;
    box-sizing: border-box;
}
.faq-nav-item.is-hidden { display: none; }

.faq-nav-foot { border-top: 1px solid #eef2f7; padding: 12px 18px 2px; }
.faq-nav-foot a { font-size: 13px; color: #8a95a3; text-decoration: none; }
.faq-nav-foot a:hover { color: #0f6ab4; }

/* ---------- 右侧内容 ---------- */
.faq-main { flex: 1; min-width: 0; }

.faq-head {
    background: linear-gradient(135deg, #0f6ab4 0%, #2b8fd6 100%);
    color: #fff;
    border-radius: 10px;
    padding: 34px 36px;
    margin-bottom: 24px;
    box-shadow: 0 6px 24px rgba(15, 106, 180, 0.2);
}
.faq-head .kicker {
    font-size: 12px;
    letter-spacing: 2px;
    opacity: 0.8;
    margin-bottom: 10px;
    font-family: Arial, Helvetica, sans-serif;
}
.faq-head h2 {
    font-size: 28px;
    line-height: 1.3;
    font-weight: bold;
    color: #fff;
    margin: 0 0 10px;
}
.faq-head p { font-size: 14px; line-height: 1.7; opacity: 0.9; margin: 0; }
.faq-head .stats { display: flex; gap: 32px; margin-top: 20px; }
.faq-head .stats div { display: flex; align-items: baseline; gap: 6px; }
.faq-head .stats b { font-size: 24px; font-family: Arial, Helvetica, sans-serif; }
.faq-head .stats span { font-size: 13px; opacity: 0.85; }

.faq-cat {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05);
    margin-bottom: 22px;
    overflow: hidden;
    scroll-margin-top: 20px;
}
.faq-cat-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    background: #fafcfe;
    border-bottom: 1px solid #eef2f7;
}
.faq-cat-head .num {
    flex: 0 0 auto;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #0f6ab4;
    opacity: 0.35;
}
.faq-cat-head .hd { flex: 1; min-width: 0; }
.faq-cat-head h2 { font-size: 17px; font-weight: bold; color: #1a2b3c; margin: 0 0 3px; }
.faq-cat-head .sub { font-size: 12.5px; color: #8a95a3; margin: 0; line-height: 1.5; }
.faq-cat-head .cnt {
    flex: 0 0 auto;
    font-size: 12px;
    color: #0f6ab4;
    background: #eef6ff;
    padding: 3px 10px;
    border-radius: 12px;
    white-space: nowrap;
}

.faq-item { border-bottom: 1px solid #f0f4f8; }
.faq-item:last-child { border-bottom: none; }

.faq-q {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 24px;
    cursor: pointer;
    list-style: none;
    transition: background 0.2s;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { background: #f7fbff; }
.faq-item[open] .faq-q { background: #f0f7ff; }

.faq-q .q-no {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    line-height: 26px;
    text-align: center;
    background: #0f6ab4;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    font-family: Arial, Helvetica, sans-serif;
    margin-top: 1px;
}
.faq-q .q-text {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #2d3748;
    font-weight: 600;
    transition: color 0.2s;
}
.faq-item[open] .q-text { color: #0f6ab4; }

.faq-q .q-arrow {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-right: 2px solid #a0aec0;
    border-bottom: 2px solid #a0aec0;
    transform: rotate(45deg);
    margin: 7px 3px 0 8px;
    transition: transform 0.25s;
}
.faq-item[open] .q-arrow { transform: rotate(-135deg); margin-top: 11px; }

.faq-a {
    padding: 0 24px 20px 62px;
    font-size: 14.5px;
    line-height: 1.9;
    color: #4a5568;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.faq-a p { margin: 0 0 10px; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a strong { color: #1a2b3c; }
.faq-a a { color: #0f6ab4; }
.faq-a img { max-width: 100% !important; height: auto !important; }

.faq-source { font-size: 15px; line-height: 1.9; color: #4a5568; }

.faq-empty {
    display: none;
    padding: 50px 20px;
    text-align: center;
    color: #8a95a3;
    font-size: 15px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05);
}

/* ---------- 平板 / 移动端 ---------- */
@media screen and (max-width: 1024px) {
    #service.faq-page { padding-bottom: 40px; }
    .faq-layout { flex-direction: column; gap: 16px; }

    .faq-side {
        position: static;
        width: 100%;
        flex: none;
        padding: 14px 0 0;
    }
    .faq-search { padding: 0 14px 12px; }
    .faq-search .ico { left: 27px; top: 13px; }
    .faq-nav {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        max-height: none;
        padding: 4px 14px 14px;
        -webkit-overflow-scrolling: touch;
    }
    .faq-nav::-webkit-scrollbar { display: none; }
    .faq-nav-item {
        flex: 0 0 auto;
        border: 1px solid #e3ebf3;
        border-left-width: 1px;
        border-radius: 20px;
        padding: 7px 12px;
        white-space: nowrap;
        font-size: 13px;
    }
    .faq-nav-item.is-active { border-color: #0f6ab4; }
    .faq-nav-item .t { flex: none; }
    .faq-nav-item .c { padding: 1px 6px; }
    .faq-nav-foot { display: none; }

    .faq-head { padding: 24px 20px; }
    .faq-head h2 { font-size: 22px; }
    .faq-head .stats { gap: 20px; margin-top: 16px; }
    .faq-head .stats b { font-size: 20px; }

    .faq-cat-head { padding: 16px; gap: 10px; }
    .faq-q { padding: 14px 16px; }
    .faq-a { padding: 0 16px 16px 54px; }
}

@media screen and (max-width: 480px) {
    .faq-head { padding: 20px 16px; }
    .faq-head h2 { font-size: 20px; }
    .faq-head .stats { gap: 16px; }
    .faq-cat-head .num { font-size: 18px; }
    .faq-cat-head h2 { font-size: 15px; }
    .faq-cat-head .sub { font-size: 12px; }
    .faq-q .q-text { font-size: 14px; }
    .faq-q .q-no { flex-basis: 24px; width: 24px; height: 24px; line-height: 24px; font-size: 11px; }
    .faq-a { padding: 0 16px 16px; font-size: 14px; }
}
