/* ==================== 工艺能力页 & FAQ页 样式 ==================== */

/* --- 顶部横幅 --- */
.cap-banner {
    padding: 4rem 0 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cap-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 50% 80%, rgba(59,130,246,0.18) 0%, transparent 70%);
    pointer-events: none;
}
.cap-banner-title {
    font-size: 2.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: .8rem;
    letter-spacing: .02em;
    position: relative;
}
.cap-banner-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,.7);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.7;
    position: relative;
}
.faq-banner {
    padding: 3rem 0 2rem;
}

/* --- 工艺标签栏 --- */
.cap-tabs-section {
    padding: 0 0 1rem;
}
.cap-tabs-bar {
    display: flex;
    gap: .6rem;
    overflow-x: auto;
    padding: .5rem 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.2) transparent;
    -webkit-overflow-scrolling: touch;
}
.cap-tabs-bar::-webkit-scrollbar {
    height: 4px;
}
.cap-tabs-bar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.2);
    border-radius: 4px;
}
.cap-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem 1.3rem;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50px;
    background: rgba(255,255,255,.05);
    color: rgba(255,255,255,.75);
    font-size: .92rem;
    white-space: nowrap;
    cursor: pointer;
    transition: all .25s ease;
}
.cap-tab-btn i {
    font-size: .85rem;
}
.cap-tab-btn:hover {
    background: rgba(59,130,246,.15);
    border-color: rgba(59,130,246,.4);
    color: #fff;
}
.cap-tab-btn.active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 15px rgba(59,130,246,.35);
}

/* --- 工艺能力卡片 --- */
.cap-process-section {
    padding: 1rem 0 2rem;
}
.cap-process-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}
.cap-process-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa, #3b82f6);
}
.cap-process-img-wrap {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}
.cap-process-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}
.cap-process-img-placeholder {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, rgba(59,130,246,.2), rgba(37,99,235,.3));
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}
.cap-process-img-placeholder i {
    font-size: 4rem;
    color: rgba(255,255,255,.3);
}
.cap-process-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: .8rem;
}
.cap-process-desc {
    color: rgba(255,255,255,.7);
    line-height: 1.7;
    margin-bottom: 1.2rem;
    font-size: .95rem;
}
.cap-specs-title {
    color: #60a5fa;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: .8rem;
}
.cap-specs-table {
    width: 100%;
    border-collapse: collapse;
}
.cap-specs-table tr {
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.cap-specs-table td {
    padding: .5rem .6rem;
    font-size: .88rem;
    color: rgba(255,255,255,.8);
}
.cap-specs-table td:first-child {
    color: rgba(255,255,255,.5);
    width: 120px;
    white-space: nowrap;
}

/* --- 产品网格 --- */
.cap-products-section {
    padding: 1rem 0 4rem;
}
.cap-product-card {
    height: 100%;
    overflow: hidden;
    padding: 0 !important;
    background: rgba(255,255,255,.05) !important;
    border: 1px solid rgba(255,255,255,.1) !important;
    border-radius: 14px;
    transition: all .3s ease;
    border-top: 3px solid transparent !important;
}
.cap-product-card:hover {
    border-top-color: #3b82f6 !important;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
.cap-product-img-wrap {
    position: relative;
    overflow: hidden;
}
.cap-product-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.cap-product-card:hover .cap-product-img {
    transform: scale(1.06);
}
.cap-product-img-wrap::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(10,22,40,.8), transparent);
    pointer-events: none;
}
.cap-product-img-placeholder {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
}
.cap-product-img-placeholder i {
    font-size: 3.5rem;
    color: rgba(255,255,255,.3);
}
.cap-product-body {
    padding: 1.1rem 1.4rem 1.4rem;
}
.cap-product-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 .4rem;
}
.cap-product-meta {
    display: flex;
    align-items: center;
    gap: .4rem;
    color: #60a5fa;
    font-size: .85rem;
    margin-bottom: .5rem;
}
.cap-product-meta i {
    font-size: .8rem;
}
.cap-product-desc {
    color: rgba(255,255,255,.6);
    font-size: .88rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}
.cap-detail-btn {
    width: 100%;
    justify-content: center;
}

/* --- 空状态 --- */
.cap-empty-state {
    padding: 4rem 2rem;
    text-align: center;
}
.cap-empty-state i {
    font-size: 3rem;
    color: rgba(255,255,255,.15);
    margin-bottom: 1rem;
    display: block;
}
.cap-empty-state p {
    color: rgba(255,255,255,.4);
    font-size: 1.1rem;
}

/* --- 分页 --- */
.cap-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding-top: 1rem;
}
.cap-page-btn {
    padding: .6rem 1.4rem;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 8px;
    background: rgba(255,255,255,.05);
    color: rgba(255,255,255,.8);
    font-size: .9rem;
    cursor: pointer;
    transition: all .25s ease;
}
.cap-page-btn:hover:not(:disabled) {
    background: rgba(59,130,246,.2);
    border-color: rgba(59,130,246,.4);
    color: #fff;
}
.cap-page-btn:disabled {
    opacity: .35;
    cursor: not-allowed;
}
.cap-page-info {
    color: rgba(255,255,255,.6);
    font-size: .9rem;
}

/* --- 产品详情弹窗 --- */
.cap-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.75);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
}
.cap-modal-overlay.show {
    display: flex;
}
.cap-modal {
    background: #111827;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: capModalIn .3s ease;
}
@keyframes capModalIn {
    from { opacity: 0; transform: scale(.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.cap-modal-close {
    position: absolute;
    top: 1rem; right: 1rem;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.7);
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
}
.cap-modal-close:hover {
    background: rgba(239,68,68,.3);
    border-color: rgba(239,68,68,.5);
    color: #fff;
}
.cap-modal-body {
    padding: 2rem;
}
.cap-modal-img-wrap {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: .8rem;
}
.cap-modal-main-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}
.cap-modal-gallery {
    margin-top: .6rem;
}
.cap-gallery-thumbs {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    padding: .3rem 0;
}
.cap-gallery-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
    transition: border-color .2s ease;
}
.cap-gallery-thumb.active,
.cap-gallery-thumb:hover {
    border-color: #3b82f6;
}
.cap-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cap-modal-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: .8rem;
}
.cap-modal-meta {
    margin-bottom: 1rem;
}
.cap-modal-meta-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: rgba(255,255,255,.7);
    font-size: .9rem;
    margin-bottom: .3rem;
}
.cap-modal-meta-item i {
    color: #60a5fa;
    width: 18px;
    text-align: center;
}
.cap-modal-specs {
    margin-bottom: 1rem;
}
.cap-modal-specs h5 {
    color: #60a5fa;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: .6rem;
}
.cap-modal-desc {
    color: rgba(255,255,255,.7);
    line-height: 1.7;
    font-size: .92rem;
}
.cap-modal-desc img {
    max-width: 100%;
    border-radius: 8px;
}

/* --- FAQ 手风琴 --- */
.faq-section {
    padding: 1rem 0 5rem;
}
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    margin-bottom: .75rem;
    overflow: hidden;
    transition: all .25s ease;
}
.faq-item:hover {
    border-color: rgba(59,130,246,.25);
}
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.4rem;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all .2s ease;
    line-height: 1.5;
}
.faq-question:hover {
    color: #60a5fa;
}
.faq-q-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
    background: rgba(59,130,246,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
    font-size: .85rem;
    transition: all .25s ease;
}
.faq-question[aria-expanded="true"] .faq-q-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
}
.faq-q-text {
    flex: 1;
}
.faq-answer-inner {
    padding: 0 1.4rem 1.3rem 3.5rem;
    color: rgba(255,255,255,.7);
    line-height: 1.7;
    font-size: .92rem;
}
.faq-answer-inner img {
    max-width: 100%;
    border-radius: 8px;
}
.faq-answer-inner a {
    color: #60a5fa;
    text-decoration: underline;
}
.faq-answer-inner ul, .faq-answer-inner ol {
    padding-left: 1.2rem;
    margin: .5rem 0;
}

/* --- 手机端适配 --- */
@media (max-width: 991px) {
    .cap-banner-title {
        font-size: 2rem;
    }
    .cap-banner-subtitle {
        font-size: .95rem;
    }
    .cap-process-img {
        height: 220px;
    }
    .cap-process-name {
        font-size: 1.4rem;
    }
    .cap-modal {
        max-height: 95vh;
        width: 95%;
    }
    .cap-modal-body {
        padding: 1.5rem;
    }
    .cap-modal-main-img {
        height: 240px;
    }
}

@media (max-width: 767px) {
    .cap-banner-title {
        font-size: 1.6rem;
    }
    .cap-banner {
        padding: 3rem 0 2rem;
    }
    .cap-tab-btn {
        padding: .5rem 1rem;
        font-size: .82rem;
    }
    .cap-process-card {
        padding: 1.2rem;
    }
    .cap-process-img {
        height: 200px;
    }
    .cap-product-img, .cap-product-img-placeholder {
        height: 200px;
    }
    .cap-modal {
        width: 98%;
        max-height: 97vh;
        border-radius: 12px;
    }
    .cap-modal-body {
        padding: 1rem;
    }
    .cap-modal-main-img {
        height: 200px;
    }
    .cap-modal-title {
        font-size: 1.3rem;
    }
    .cap-specs-table td:first-child {
        width: 90px;
    }
    .faq-question {
        padding: .9rem 1.1rem;
        font-size: .92rem;
    }
    .faq-answer-inner {
        padding: 0 1.1rem 1rem 2.8rem;
    }
    .faq-q-icon {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: .75rem;
    }
}
