/* ============================================================
   整体布局
   ============================================================ */
.pinfo-page__inner {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    margin-bottom: 30px;
}
.pinfo-page__main {
    flex: 1;
}
.pinfo-page__wrap {
    background: #fff;
    padding: 40px;
}

.pinfo-head {
    display: grid;
    grid-template-columns: 0.8fr 1fr;
    gap: 30px;
    align-items: start;
}

/* ============================================================
   图片画廊
   ============================================================ */
.pinfo-gallery {
    background: #fff;
    border: 1px solid #e8e8e8;
    overflow: hidden;
}
.swiper-main {
    width: 100%;
    height: 400px;
    background: #fff;
    cursor: crosshair;
    overflow: hidden;
    position: relative;
}
.swiper-main .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}
.swiper-main .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.inner-zoom-lens {
    position: absolute;
    width: 160px;
    height: 160px;
    border: 2px solid var(--primary-color);
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 8;
    opacity: 0;
    border-radius: 6px;
    transition: opacity 0.15s;
    background-color: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.inner-zoom-lens.show {
    opacity: 1;
}

.swiper-button-custom {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.3);
    color: #fff;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: none;
    cursor: pointer;
    opacity: 0;
    transition: all 0.25s ease;
}
.pinfo-gallery:hover .swiper-button-custom {
    opacity: 1;
}
.swiper-button-custom:hover {
    background: var(--primary-color);
}
.swiper-button-prev-custom {
    left: 0;
}
.swiper-button-next-custom {
    right: 0;
}

.thumb-strip {
    padding: 10px 12px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    background: #fafafa;
    border-top: 1px solid #eee;
    scrollbar-width: none;
}
.thumb-strip::-webkit-scrollbar {
    display: none;
}
.thumb-item {
    flex: 1;
    min-width: 0;
    height: 48px;
    overflow: hidden;
    border: 2px solid #ddd;
    cursor: pointer;
    opacity: 0.5;
    background: #eee;
    transition: 0.2s;
}
.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.thumb-item.active {
    border-color: var(--primary-color);
    opacity: 1;
}
.thumb-item:hover {
    opacity: 1;
}

/* ============================================================
   右侧信息
   ============================================================ */
.pinfo-info {
    display: flex;
    flex-direction: column;
}
.pinfo-info h1 {
    font-size: 26px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 20px;
    padding-bottom: 20px;
    position: relative;
}
.pinfo-info h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}
.pinfo-short-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    background: #f7f7f7;
    padding: 10px 14px;
    margin-bottom: 22px;
}

/* ============================================================
   选项卡
   ============================================================ */
.tabs-header {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.tabs-header .tab-btn {
    padding: 7px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #8899aa;
    background: transparent;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.tabs-header .tab-btn:hover {
    color: #445566;
    background: #f0f2f5;
}
.tabs-header .tab-btn.active {
    color: #fff;
    background: var(--primary-color, #003070);
    box-shadow: 0 4px 12px rgba(0, 48, 112, 0.25);
}
.tabs-header .tab-btn.active i {
    transform: scale(1.1);
}
.tabs-header .tab-btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.tabs-panels {
    min-height: 150px;
    background: #f8fafc;
    border: 1px solid #f0f2f5;
    border-radius: 12px;
    padding: 10px 15px;
    position: relative;
    display: flex;
    flex-direction: column;
}
.tabs-panels .panel {
    display: none;
    flex: 1;
}
.tabs-panels .panel.active {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ============================================================
   提示条
   ============================================================ */
.tabs-panels .toast-bar {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    width: 65%;
    padding: 6px 10px;
    border-radius: 0 0 3px 3px;
    font-size: 13px;
    font-weight: 500;
    opacity: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    pointer-events: none;
    transition: all 0.3s ease;
}
.tabs-panels .toast-bar.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.tabs-panels .toast-bar.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}
.tabs-panels .toast-bar.success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}
.tabs-panels .toast-bar .toast-icon {
    font-size: 16px;
    flex-shrink: 0;
}

/* ===== 联系列表 ===== */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    justify-content: center;
}
.contact-list .contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.2s;
}
.contact-list .contact-item:hover {
    background: #f0f4f8;
}
.contact-list .contact-item i {
    color: var(--primary-color);
    font-size: 17px;
    width: 24px;
    text-align: center;
}
.contact-list .contact-item .info {
    flex: 1;
    font-size: 14px;
    color: #334455;
}
.contact-list .contact-item .action {
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 500;
    padding: 3px 16px;
    border: 1px solid var(--primary-color);
    border-radius: 30px;
    text-decoration: none;
    transition: 0.2s;
}
.contact-list .contact-item .action:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ===== 咨询表单 ===== */
.inquiry-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.inquiry-form .form-group {
    margin-bottom: 10px;
}
.inquiry-form .form-group:last-of-type {
    margin-bottom: 12px;
}
.inquiry-form .form-group input,
.inquiry-form .form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.5;
    color: #1a1a1a;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.inquiry-form .form-group input:focus,
.inquiry-form .form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 48, 112, 0.12);
}
.inquiry-form .form-group textarea {
    height: 64px;
    resize: vertical;
}
.inquiry-form .submit-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 8px 20px;
    min-width: 140px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    align-self: flex-end;
    transition: 0.2s;
    text-align: center;
    display: inline-block;
    white-space: nowrap;
    line-height: 1.5;
}
.inquiry-form .submit-btn:hover {
    background: #002255;
    box-shadow: 0 4px 14px rgba(0, 48, 112, 0.20);
    transform: translateY(-1px);
}
.inquiry-form .submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================================
   下方模块
   ============================================================ */
.pinfo-spec-title,
.pinfo-block-title,
.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 36px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}
.pinfo-spec-title i,
.pinfo-block-title i,
.section-title i {
    color: var(--primary-color);
    font-size: 20px;
}

.spec-table-wrap {
    overflow: hidden;
}
.spec-table {
    width: 100%;
    border-collapse: collapse;
}
.spec-table tr:nth-child(odd) {
    background: #f9fafb;
}
.spec-table tr:nth-child(even) {
    background: #fff;
}

.spec-table thead th {
    background: #f2f4f6;
    color: #333;
    padding: 5px;
    text-align: left;
    border: 1px solid #ddd;
    font-size: 13px;
}

.spec-table td {
    padding: 6px 10px;
    border: 1px solid #ddd;
    font-size: 14px;
    color: #445566;
}
.spec-table td:first-child {
    width: 24%;
    background: #f2f4f6 !important;
    color: #223344;
    font-weight: 500;
}

.pinfo-block-content {
    font-size: 15px;
    color: #445566;
    line-height: 1.9;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 16px 0 32px;
}
.service-card {
    background: #f9fafb;
    padding: 22px 14px 18px;
    text-align: center;
    border: 1px solid #e8eaed;
    transition: all 0.25s ease;
}
.service-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 48, 112, 0.08);
}
.service-card .icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 10px;
    background: var(--primary-color, #003070);
    display: flex;
    align-items: center;
    justify-content: center;
}
.service-card .icon i {
    font-size: 20px;
    color: #fff;
}
.service-card h4 {
    font-size: 15px;
    color: #1a1a1a;
    margin: 0 0 4px;
    font-weight: 600;
}
.service-card p {
    font-size: 13px;
    color: #667788;
    margin: 0;
    line-height: 1.5;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}
.faq-item {
    background: #f9fafb;
    padding: 14px 18px;
    border-left: 2px solid var(--primary-color);
}
.faq-item h4 {
    font-size: 15px;
    color: #1a1a1a;
    margin: 0 0 4px;
    font-weight: 600;
}
.faq-item p {
    font-size: 14px;
    color: #556677;
    margin: 0;
    line-height: 1.6;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 992px) {
    .inner-zoom-lens {
        display: none !important;
    }
    .swiper-main {
        height: 320px;
    }
    .pinfo-page__inner {
        flex-direction: column;
    }
    .pinfo-head {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .pinfo-page__wrap {
        padding: 16px;
    }
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .swiper-main {
        height: 260px;
        cursor: auto;
    }
    .pinfo-info h1 {
        font-size: 22px;
    }
    .thumb-item {
        height: 40px;
    }
    .service-grid {
        grid-template-columns: 1fr 1fr;
    }
    .tabs-header .tab-btn {
        padding: 5px 16px;
        font-size: 13px;
    }
    .tabs-panels {
        min-height: 170px;
        padding: 14px 16px 12px;
    }
}
@media (max-width: 480px) {
    .swiper-main {
        height: 200px;
    }
    .pinfo-page__wrap {
        padding: 12px;
    }
    .thumb-item {
        height: 34px;
    }
    .service-grid {
        grid-template-columns: 1fr;
    }
    .spec-table td {
        padding: 6px 10px;
        font-size: 13px;
    }
    .inquiry-form .submit-btn {
        width: 100%;
        min-width: unset;
        text-align: center;
        align-self: stretch;
    }
    .contact-list .contact-item .action {
        padding: 2px 12px;
        font-size: 12px;
    }
    .tabs-header .tab-btn {
        padding: 4px 12px;
        font-size: 12px;
    }
    .tabs-header .tab-btn i {
        font-size: 12px;
    }
    .tabs-header {
        gap: 5px;
    }
    .tabs-panels {
        min-height: 190px;
        padding: 12px 14px 10px;
    }
    .tabs-panels .toast-bar {
        width: 90%;
        padding: 6px 12px;
        font-size: 12px;
    }
}