/* ============================================
   产品详情页
   ============================================ */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ===== 第一部分：产品文案 + 轮播图 ===== */
.product-hero {
    padding: 40px 0 60px;
    background: var(--bg-white, #ffffff);
}

.product-hero-wrapper {
    display: flex;
    gap: 60px;
    align-items: center;
}

.product-hero-content {
    flex: 1;
}

.product-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bg-dark, #1e293b);
    margin-bottom: 16px;
}

.product-excerpt {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-gray, #475569);
    margin-bottom: 24px;
}

.product-contact-btn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--primary-color, #179744);
    color: #ffffff;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.product-contact-btn:hover {
    background: var(--primary-hover, #0f7a38);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(23, 151, 68, 0.25);
}

/* ===== 轮播图 ===== */
.product-hero-gallery {
    flex: 1;
    position: relative;
}

.product-slider-wrapper {
    position: relative;
}

.product-slider {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: var(--bg-light, #f8fafc);
}

.product-slider-track {
    display: flex;
    transition: transform 0.4s ease;
}

.product-slide {
    flex-shrink: 0;
    width: 100%;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff;
}

.product-slider-prev,
.product-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    z-index: 10;
}

.product-slider-prev {
    left: 12px;
}
.product-slider-next {
    right: 12px;
}

.product-slider-prev:hover,
.product-slider-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* ===== 缩略图 ===== */
.product-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-behavior: smooth;
}

.product-thumbnails::-webkit-scrollbar {
    height: 4px;
}
.product-thumbnails::-webkit-scrollbar-track {
    background: var(--bg-light, #f8fafc);
    border-radius: 2px;
}
.product-thumbnails::-webkit-scrollbar-thumb {
    background: var(--border-light, #e2e8f0);
    border-radius: 2px;
}

.thumbnail-item {
    flex: 0 0 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background: var(--bg-light, #f8fafc);
}

.thumbnail-item:hover {
    border-color: var(--border-light, #e2e8f0);
}

.thumbnail-item.active {
    border-color: var(--primary-color, #179744);
    box-shadow: 0 0 0 2px rgba(23, 151, 68, 0.2);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== 第二部分：正文 ===== */
.product-body {
    padding: 40px 0 60px;
    background: var(--bg-light, #f8fafc);
}

.product-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dark, #1f2937);
}

.product-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--bg-dark, #1e293b);
    margin: 40px 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-light, #e2e8f0);
}

.product-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--bg-dark, #1e293b);
    margin: 30px 0 12px;
}

.product-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bg-dark, #1e293b);
    margin: 24px 0 10px;
}

.product-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95rem;
}

.product-content table th,
.product-content table td {
    padding: 12px 16px;
    border: 1px solid var(--border-light, #e2e8f0);
    text-align: left;
}

.product-content table th {
    background: var(--bg-dark, #1e293b);
    color: #ffffff;
    font-weight: 600;
}

.product-content table tr:nth-child(even) {
    background: var(--bg-light, #f8fafc);
}

.product-content table tr:hover {
    background: rgba(23, 151, 68, 0.05);
}

.product-content ul,
.product-content ol {
    margin: 12px 0 16px;
    padding-left: 24px;
}

.product-content ul li,
.product-content ol li {
    margin-bottom: 6px;
    line-height: 1.6;
}

.product-content ul {
    list-style-type: disc;
}
.product-content ul ul {
    list-style-type: circle;
}
/* ===== 应用部分 ===== */
.product-applications {
    padding: 60px 0;
    background: var(--bg-white, #ffffff);
}

.applications-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--bg-dark, #1e293b);
    text-align: center;
    margin-bottom: 8px;
}

.applications-subtitle {
    text-align: center;
    color: var(--text-light, #64748b);
    margin-bottom: 40px;
    font-size: 1rem;
}

.applications-grid {
    display: grid;
    gap: 20px;
    justify-items: center;
}

/* 1张：1列，居中 */
.applications-grid.cols-1 {
    grid-template-columns: 1fr;
    max-width: 700px;
    margin: 0 auto;
}

/* 2张：2列，居中 */
.applications-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 700px;
    margin: 0 auto;
}

/* 3张及以上：3列 */
.applications-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.application-item {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    /* aspect-ratio: 4 / 3; */
    background: var(--bg-light, #f8fafc);
    transition: all 0.3s ease;
}

.application-item img {
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
    max-height: 350px;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .product-applications {
        padding: 40px 0;
    }
    .applications-title {
        font-size: 1.6rem;
    }
    .applications-grid.cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .applications-grid {
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .applications-grid.cols-2,
    .applications-grid.cols-3 {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===== 第三部分：相关产品 ===== */
.product-related {
    padding: 60px 0;
    background: var(--bg-white, #ffffff);
}

.related-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--bg-dark, #1e293b);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 16px;
}

.related-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color, #179744);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-card {
    background: var(--bg-white, #ffffff);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-light, #e2e8f0);
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color, #179744);
}

.related-card a {
    text-decoration: none;
    display: block;
}

.related-thumb {
    height: 200px;
    background: var(--bg-light, #f8fafc);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-card:hover .related-thumb img {
    transform: scale(1.05);
}

.related-thumb .no-image {
    color: var(--text-light, #64748b);
    font-size: 0.9rem;
}

.related-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--bg-dark, #1e293b);
    padding: 16px 16px 20px;
    margin: 0;
    text-align: center;
}

/* ===== 第四部分：联系表单 ===== */
.product-contact-form {
    padding: 60px 0 80px;
    background: var(--bg-light, #f8fafc);
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--bg-dark, #1e293b);
    text-align: center;
    margin-bottom: 8px;
}

.form-subtitle {
    text-align: center;
    color: var(--text-light, #64748b);
    margin-bottom: 32px;
    font-size: 1rem;
}

.form-notice {
    max-width: 700px;
    margin: 0 auto 24px;
    padding: 16px 20px;
    border-radius: 10px;
    font-weight: 500;
    text-align: center;
}

.form-notice.success {
    background: rgba(23, 151, 68, 0.1);
    color: #179744;
    border: 1px solid #179744;
}

.form-notice.error {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border: 1px solid #dc2626;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-dark, #1f2937);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-light, #e2e8f0);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: var(--bg-white, #ffffff);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color, #179744);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit-btn {
    display: inline-block;
    padding: 14px 48px;
    background: var(--primary-color, #179744);
    color: #ffffff;
    border: none;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit-btn:hover {
    background: var(--primary-hover, #0f7a38);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(23, 151, 68, 0.25);
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .product-hero-wrapper {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .product-hero-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .product-hero {
        padding: 30px 0 40px;
    }

    .product-title {
        font-size: 2rem;
    }

    .product-slide {
        aspect-ratio: 1 / 1;
    }

    .thumbnail-item {
        flex: 0 0 60px;
        height: 46px;
    }

    .product-thumbnails {
        gap: 6px;
        margin-top: 10px;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .product-contact-form {
        padding: 40px 0 60px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-title {
        font-size: 1.6rem;
    }

    .form-submit-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .product-title {
        font-size: 1.6rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .product-content table {
        font-size: 0.8rem;
    }

    .product-content table th,
    .product-content table td {
        padding: 8px 10px;
    }
}