/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background: #024053;
    color: #ccc;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color 0.2s; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button, input { font-family: inherit; }

/* ===== Layout ===== */
.gb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* ===== FAQ Section ===== */
.gb-faq-section {
    padding: 50px 0 60px;
    background: #024053;
    min-height: 80vh;
}

/* Breadcrumb */
.gb-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 28px;
}
.gb-breadcrumb li {
    display: flex;
    align-items: center;
    font-size: 13px;
}
.gb-breadcrumb li + li::before {
    content: "/";
    color: #fe7816;
    margin: 0 10px;
}
.gb-breadcrumb a {
    color: #fe7816;
}
.gb-breadcrumb a:hover {
    color: #ff9a44;
}
.gb-breadcrumb .current {
    color: #fff;
}

/* Page Header */
.gb-page-header {
    text-align: center;
    margin-bottom: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.gb-page-header h1 {
    color: #E8F2FF;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
}
.gb-page-header p {
    color: #8a93a6;
    font-size: 15px;
    max-width: 600px;
    line-height: 1.7;
}

/* Search & Filter */
.gb-search-area {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 36px;
}
.gb-search-group {
    position: relative;
    margin-bottom: 16px;
}
.gb-search-input {
    width: 100%;
    padding: 13px 52px 13px 18px;
    border: 2px solid #024053;
    border-radius: 8px;
    background: #024053;
    color: #fff;
    font-size: 14px;
    transition: border-color 0.25s;
}
.gb-search-input:focus {
    border-color: #fe7816;
    outline: none;
}
.gb-search-input::placeholder {
    color: #556;
}
.gb-search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: #fe7816;
    border: none;
    padding: 8px 13px;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.2s;
}
.gb-search-btn:hover {
    background: #e86a10;
}
.gb-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.gb-filter-tag a {
    display: inline-block;
    padding: 7px 18px;
    background: #024053;
    border: 1px solid #024053;
    border-radius: 20px;
    color: #aab;
    font-size: 13px;
    transition: all 0.25s;
}
.gb-filter-tag a:hover,
.gb-filter-tag.active a {
    background: #fe7816;
    border-color: #fe7816;
    color: #fff;
}

/* Content Layout */
.gb-content-layout {
    display: flex;
    gap: 24px;
}

/* Sidebar */
.gb-sidebar {
    flex: 0 0 210px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 20px 16px;
    height: fit-content;
    position: sticky;
    top: 84px;
}
.gb-sidebar-title {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #fe7816;
}
.gb-sidebar-dl {
    display: block;
    background: #fe7816;
    color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    transition: background 0.2s;
}
.gb-sidebar-dl:hover {
    background: #e86a10;
    color: #fff;
}
.gb-sidebar-divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 10px 0;
}
.gb-sidebar-list li {
    margin-bottom: 4px;
}
.gb-sidebar-list a {
    display: block;
    color: #8a93a6;
    font-size: 14px;
    padding: 7px 10px;
    border-radius: 6px;
    text-align: center;
    transition: all 0.2s;
}
.gb-sidebar-list a:hover,
.gb-sidebar-list a.active {
    color: #fe7816;
    background: rgba(254,120,22,0.08);
}

/* Main Content */
.gb-main {
    flex: 1;
    min-width: 0;
}

/* Knowledge Grid */
.gb-knowledge-grid {
    display: grid;
    gap: 16px;
}
.gb-knowledge-card {
    background: rgba(255,255,255,0.035);
    border: 1px solid #1e2d44;
    border-radius: 12px;
    padding: 22px 24px;
    transition: all 0.3s;
}
.gb-knowledge-card:hover {
    border-color: #fe7816;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(254,120,22,0.08);
}
.gb-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 10px;
}
.gb-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    line-height: 1.45;
    flex: 1;
}
.gb-card-title a {
    color: #fff;
}
.gb-card-title a:hover {
    color: #fe7816;
}
.gb-card-tag {
    flex-shrink: 0;
    background: #fe7816;
    color: #fff;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}
.gb-card-summary {
    color: #8a93a6;
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-wrap;
}
.gb-card-date {
    color: #556;
    font-size: 12px;
    margin-top: 8px;
}

/* Placeholder card style */
.gb-card-placeholder .gb-card-summary {
    color: #556;
    font-style: italic;
}

/* Pagination */
.gb-pagination {
    margin-top: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}
.gb-pagination .total {
    color: #8a93a6;
    font-size: 13px;
}
.gb-pagination .total strong {
    color: #fe7816;
}
.gb-pagination ul {
    display: flex;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    overflow: hidden;
}
.gb-pagination li a,
.gb-pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 9px 14px;
    color: #8a93a6;
    font-size: 13px;
    border-right: 1px solid #1e2d44;
    transition: all 0.2s;
}
.gb-pagination li:last-child a,
.gb-pagination li:last-child span {
    border-right: none;
}
.gb-pagination li a:hover,
.gb-pagination li.active a {
    background: #fe7816;
    color: #fff;
}
.gb-pagination li.disabled span {
    opacity: 0.4;
    cursor: default;
}
.gb-pagination svg {
    width: 14px;
    height: 14px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .gb-content-layout {
        flex-direction: column;
    }
    .gb-sidebar {
        flex: none;
        position: static;
    }
    .gb-sidebar-list {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
    }
    .gb-sidebar-list li { margin-bottom: 0; }
    .gb-nav { display: none; }
}
@media (max-width: 768px) {
    .gb-faq-section { padding: 36px 0 48px; }
    .gb-page-header h1 { font-size: 24px; }
    .gb-search-area { padding: 16px; }
    .gb-knowledge-card { padding: 18px; }
    .gb-card-header { flex-direction: column; gap: 8px; }
    .gb-header-dl span { display: none; }
}
@media (max-width: 480px) {
    .gb-page-header h1 { font-size: 20px; }
    .gb-page-header p { font-size: 13px; }
    .gb-filter-tags { flex-direction: column; }
    .gb-filter-tag a { text-align: center; }
    .gb-knowledge-card { padding: 16px; }
    .gb-card-title { font-size: 15px; }
}
