/* FAQ通用样式 */
.faq-header-banner {
    position: relative;
    width: 100%;
    height: calc(100vw * 550 / 1920);
    background: url('/uploads/2026/05/03.png') no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.faq-header-title {
    width: 1040px;
    max-width: 90%;
    text-align: center;
    font-size: 54px;
    color: #333;
    margin-bottom: 30px;
    font-weight: bold;
    letter-spacing: 1px;
}
.faq-header-title span {
    color: #FF5B1A;
}


.faq-search-box {
    position: relative;
    width: 1040px;
    max-width: 90%;
    height: 56px;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    padding-left: 0;
    overflow: hidden;
    border: 2px solid #FF5B1A;
    box-sizing: border-box;
}

.faq-search-icon {
    width: 20px;
    height: 20px;
    margin: 0 18px 0 28px;
}

.faq-search-input {
    flex: 1;
    height: 100%;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    font-weight: 400;
    color: #333;
}
.faq-search-input::placeholder {
    color: #D0D1D2;
}

.faq-search-btn {
    width: 138px;
    height: calc(100% + 4px);
    margin: -2px -2px -2px 0;
    background: #FF5B1A;
    color: #fff;
    border: none;
    font-size: 20px;
    font-weight: 400;
    cursor: pointer;
    outline: none;
    border-radius: 28px;
}

/* Faq.cshtml 常见问题网格部分 */
.faq-content-section {
    background: #fff;
    padding: 60px 0 80px;
}

.faq-section-title {
    text-align: center;
    font-size: 30px;
    color: #333;
    font-weight: 600;
    margin-bottom: 50px;
    letter-spacing: 1px;
}

.faq-grid {
    width: 1260px;
    max-width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 400px);
    justify-content: center;
    gap: 30px;
}

.faq-card {
    width: 400px;
    min-height: 245px;
    box-sizing: border-box;
    background: #F6F7FB;
    border-radius: 8px;
    padding: 22px 30px 30px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.faq-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transform: translateY(-5px);
}

.faq-card-title {
    font-size: 20px;
    color: #FF5B1A;
    font-weight: 600;
    margin-bottom: 20px;
    padding: 0 0 22px;
    border-bottom: 1px solid #EBEBEB;
}

.faq-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    min-height: 82px;
}

.faq-card-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.faq-card-list li:last-child {
    margin-bottom: 0;
}

.faq-card-list li img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    margin-top: 2px;
}

.faq-card-list li span,
.faq-card-list li a {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    flex: 1;
    display: block;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
}

.faq-card-list li a:hover,
.faq-card-list li a:focus,
.faq-card-list li a:hover span,
.faq-card-list li a:focus span {
    color: #FF5B1A;
}

.faq-card-more {
    display: inline-block;
    margin-top: 28px;
    margin-bottom: 0;
    padding: 3px 17px;
    border: 1px solid #ddd;
    border-radius: 20px;
    color: #999;
    font-size: 16px;
    text-decoration: none;
    align-self: flex-start;
    background: #fff;
    transition: all 0.3s;
}
.faq-card-more:hover,
.faq-card-more:focus,
.faq-card-more:active {
    border-color: #FF5B1A;
    color: #FF5B1A;
}

.faq-empty-state {
    display: none;
    min-height: 330px;
    text-align: center;
    padding: 55px 0 30px;
}
.faq-empty-state img {
    width: 170px;
    max-width: 40%;
    opacity: 0.95;
    display: block;
    margin: 0 auto 28px;
}
.faq-empty-state p {
    color: #999;
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
}
.faq-empty-state em {
    color: #FF5B1A;
    font-style: normal;
}
.faq-content-section.is-empty .faq-section-title {
    text-align: left;
    font-size: 18px;
    color: #777;
    font-weight: normal;
    margin-bottom: 0;
}
.faq-content-section.is-empty .faq-grid {
    display: none;
}
.faq-content-section.is-empty .faq-empty-state {
    display: block;
}

/* FaqAnswer.cshtml 问题详情部分 */
.faq-answer-banner {
    position: relative;
    width: 100%;
    height: calc(100vw * 550 / 1920);
    background: url('/uploads/2026/05/03.png') no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.faq-answer-title {
    width: 1040px;
    max-width: 90%;
    text-align: center;
    color: #333;
    font-size: 54px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 30px;
}
.faq-answer-title span { color: #FF5B1A; }
.faq-answer-search {
    position: relative;
    width: 1040px;
    max-width: 90%;
    height: 56px;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    padding-left: 0;
    overflow: hidden;
    border: 2px solid #FF5B1A;
    box-sizing: border-box;
}
.faq-answer-search img {
    width: 20px;
    height: 20px;
    margin: 0 18px 0 28px;
}
.faq-answer-search input {
    flex: 1;
    height: 100%;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    font-weight: 400;
    color: #333;
}
.faq-answer-search input::placeholder {
    color: #D0D1D2;
}
.faq-answer-search button {
    width: 138px;
    height: calc(100% + 4px);
    margin: -2px -2px -2px 0;
    background: #FF5B1A;
    color: #fff;
    border: none;
    font-size: 20px;
    font-weight: 400;
    cursor: pointer;
    outline: none;
    border-radius: 28px;
}
.faq-answer-section {
    background: #fff;
    padding: 42px 0 300px;
}

.faq-answer-crumb {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
}
.faq-answer-crumb a {
    color: #666;
    text-decoration: none;
}
.faq-answer-crumb a:hover {
    color: #FF5B1A;
}
.faq-answer-crumb span {
    color: #FF5B1A;
}
.faq-answer-card {
    background: #F6F7FB;
    border-radius: 8px;
    padding: 26px 42px 30px;
}
.faq-answer-question,
.faq-answer-answer {
    display: flex;
    align-items: flex-start;
}
.faq-answer-question {
    padding-bottom: 20px;
    border-bottom: 1px solid #E2E4EA;
    margin-bottom: 20px;
}
.faq-answer-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
    margin: 1px 12px 0 0;
}
.faq-answer-question p {
    flex: 1;
    min-width: 0;
    color: #333;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.7;
    margin: 0;
}
.faq-answer-answer p {
    color: #777;
    font-size: 16px;
    line-height: 2.15;
    margin: 0;
}
.faq-answer-answer-text {
    flex: 1;
    min-width: 0;
}
.faq-answer-answer p + p { margin-top: 10px; }

/* FaqDetail.cshtml 详情列表部分 */
.faq-detail-section {
    background: #fff;
    padding: 40px 0 80px;
}

.faq-breadcrumb {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
}
.faq-breadcrumb a {
    color: #666;
    text-decoration: none;
}
.faq-breadcrumb a:hover {
    color: #FF5B1A;
}
.faq-breadcrumb span {
    color: #FF5B1A;
}

.faq-detail-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.faq-category-panel {
    display: none;
}
.faq-category-panel.is-active {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.faq-pagination {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 36px;
}
.faq-pagination.is-visible {
    display: flex;
}
.faq-page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #E1E1E1;
    border-radius: 18px;
    background: #fff;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    outline: none;
}
.faq-page-btn:hover,
.faq-page-btn.is-active {
    border-color: #FF5B1A;
    background: #FF5B1A;
    color: #fff;
}
.faq-page-btn:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}
.faq-page-btn:disabled:hover {
    border-color: #E1E1E1;
    background: #fff;
    color: #666;
}

.faq-detail-item {
    background: #F6F7FB;
    border-radius: 8px;
    padding: 30px 40px;
}

.faq-detail-category {
    font-size: 20px;
    color: #FF5B1A;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #EBEBEB;
}

.faq-qa-row {
    padding-top: 5px;
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}
.faq-qa-row:last-child {
    margin-bottom: 0;
}

.qa-icon {
    width: 24px;
    height: 24px;
    display: block;
    object-fit: contain;
    margin-right: 15px;
    flex-shrink: 0;
    margin-top: 2px;
}
.qa-text {
    flex: 1;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    min-width: 0;
}
.qa-text.q-text {
    font-weight: bold;
}
.qa-text.a-text {
    color: #666;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.faq-detail-more-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}
.faq-detail-more {
    display: inline-block;
    padding: 6px 24px;
    background: #FF5B1A;
    color: #fff;
    font-size: 16px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s;
}
.faq-detail-more:hover,
.faq-detail-more:focus,
.faq-detail-more:active {
    background: #FF5B1A;
    color: #fff;
}

/* 响应式布局 */
@media (max-width: 1680px) {
    .faq-header-title,
    .faq-answer-title {
        font-size: 40px;
    }
}
@media (max-width: 1279px) {
    .faq-grid {
        width: 90%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .faq-card {
        width: 100%;
        min-width: 0;
    }
    .faq-card-list li span, .faq-card-list li a {
        white-space: normal;
    }
    .mainbox {
        width: 90%;
        margin: 0 auto;
    }
}
@media (max-width: 991px) {
    .faq-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (max-width: 767px) {
    .faq-header-banner,
    .faq-answer-banner {
        height: 260px;
    }
    .faq-header-title,
    .faq-answer-title {
        font-size: 22px;
        text-align: center;
        padding: 0 15px;
        margin-bottom: 20px;
    }
    .faq-search-box,
    .faq-answer-search {
        width: 90%;
        height: 48px;
    }
    .faq-search-btn,
    .faq-answer-search button {
        width: 100px;
        font-size: 16px;
    }
    .faq-search-icon {
        margin: 0 10px 0 15px;
    }
    .faq-content-section {
        padding: 40px 0;
    }
    .faq-detail-section {
        padding: 30px 0 60px;
    }
    .faq-answer-section {
        padding: 30px 0 60px;
    }
    .faq-section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    .faq-card {
        padding: 20px;
    }
    .faq-card-title {
        font-size: 18px;
        margin-bottom: 15px;
        padding-bottom: 15px;
    }
    .faq-card-list li span, .faq-card-list li a {
        font-size: 14px;
        white-space: normal;
    }
    .faq-breadcrumb {
        margin-bottom: 20px;
    }
    .faq-detail-item {
        padding: 20px 15px;
    }
    .faq-detail-category {
        font-size: 18px;
        margin-bottom: 15px;
        padding-bottom: 15px;
    }
    .faq-answer-crumb {
        margin-bottom: 20px;
    }
    .faq-answer-card {
        padding: 20px 15px;
    }
    .faq-answer-question p,
    .faq-answer-answer p {
        font-size: 15px;
    }
    .faq-answer-icon {
        width: 20px;
        height: 20px;
        margin-right: 10px;
    }
    .qa-text {
        font-size: 15px;
    }
    .qa-icon {
        width: 20px;
        height: 20px;
        margin-right: 10px;
    }
}
