/* Product Detail Page Styles */

/* Breadcrumb */
.detail-breadcrumb {
    padding: 15px 0;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    margin-top: var(--header-height);
}

.detail-breadcrumb a {
    color: var(--text-gray);
    font-size: 14px;
    transition: color 0.3s ease;
}

.detail-breadcrumb a:hover {
    color: var(--primary-color);
}

.detail-breadcrumb span {
    color: var(--text-light);
    font-size: 14px;
    margin: 0 8px;
}

.detail-breadcrumb .current {
    color: var(--text-dark);
}

.detail-breadcrumb i {
    margin-right: 5px;
}

/* Product Detail Main Section */
.product-detail-section {
    padding: 40px 0;
    background-color: var(--bg-white);
}

.product-detail-main {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 50px;
    align-items: start;
}

/* Product Gallery */
.product-gallery {
    position: sticky;
    top: 100px;
}

.gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gallery-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.zoom-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.zoom-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.gallery-thumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.thumb-nav {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    transition: all 0.3s ease;
}

.thumb-nav:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.thumb-list {
    display: flex;
    gap: 10px;
    flex: 1;
    overflow-x: auto;
}

.thumb-item {
    width: 50px;
    height: 50px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    padding: 5px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumb-item.active {
    border-color: var(--secondary-color);
}

.thumb-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Product Info */
.product-info {
    padding-top: 10px;
}

.product-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.product-description {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    /* 确保描述完整显示，不截断 */
    overflow: visible;
    max-height: none;
}

.product-description p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-gray);
    /* 确保文本完整显示，自动换行 */
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    /* 移除任何可能的截断样式 */
    text-overflow: clip;
    display: block;
}

.product-specs-quick {
    margin-bottom: 30px;
}

.spec-item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    width: 80px;
    flex-shrink: 0;
    font-size: 14px;
    color: var(--text-gray);
}

.spec-value {
    font-size: 14px;
    color: var(--text-dark);
}

.product-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-download,
.btn-inquiry {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-download {
    background: var(--secondary-color);
    color: white;
}

.btn-download:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-inquiry {
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
}

.btn-inquiry:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Product Tabs Section */
.product-tabs-section {
    padding: 50px 0;
    background-color: var(--bg-light);
}

.tabs-header {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.tab-btn {
    padding: 15px 40px;
    background: transparent;
    border: none;
    font-size: 16px;
    color: var(--text-gray);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: var(--text-dark);
}

.tab-btn.active {
    color: var(--secondary-color);
    font-weight: 500;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary-color);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Detail Table */
.detail-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin-bottom: 40px;
}

.detail-table td {
    padding: 18px 20px;
    border: 1px solid var(--border-color);
    font-size: 14px;
}

.detail-table .label-cell {
    width: 200px;
    text-align: center;
    color: var(--text-gray);
    background: #fafafa;
}

.detail-table .value-cell {
    color: var(--text-dark);
}

.detail-table .value-cell.highlight {
    color: #d4922a;
}

/* Product Features */
.product-features {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.product-features h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list p{
    font-size: 13px;
}

.features-list > li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #d4922a;
}

.features-list > li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: #d4922a;
    border-radius: 50%;
}

.features-list ul {
    list-style: none;
    margin-top: 8px;
    padding-left: 20px;
}

.features-list ul li {
    color: var(--text-gray);
    margin-bottom: 6px;
    position: relative;
    padding-left: 15px;
}

.features-list ul li::before {
    content: '-';
    position: absolute;
    left: 0;
    color: var(--text-gray);
}

/* Product Keywords */
.product-keywords {
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
}

.keywords-label {
    font-size: 14px;
    color: var(--text-gray);
    margin-right: 10px;
}

.keyword-tag {
    display: inline-block;
    padding: 5px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-dark);
}

/* Docs List */
.docs-list {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.doc-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.doc-item:last-child {
    border-bottom: none;
}

.doc-item i {
    font-size: 24px;
    color: #e74c3c;
    margin-right: 15px;
}

.doc-name {
    flex: 1;
    font-size: 14px;
    color: var(--text-dark);
}

.doc-download {
    padding: 8px 20px;
    background: var(--bg-light);
    border-radius: 4px;
    font-size: 13px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.doc-download:hover {
    background: var(--primary-color);
    color: white;
}

/* Dev Content */
.dev-content {
    background: white;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
}

.dev-content h4 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.dev-content p {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 25px;
}

.btn-contact {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    opacity: 0.9;
}

/* More Products Section */
.more-products-section {
    padding: 60px 0;
    background: white;
}

.more-products-section .section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    color: #d4922a;
    margin-bottom: 40px;
}

.products-swiper {
    padding-bottom: 50px;
}

.product-card-mini {
    display: block;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.product-card-mini:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.product-card-mini .card-image {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: white;
}

.product-card-mini .card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-card-mini .card-title {
    padding: 15px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    border-top: 1px solid var(--border-color);
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--border-color);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
}

/* Inquiry Section */
.inquiry-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.inquiry-section .section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 40px;
}

.inquiry-form {
    max-width: 900px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    position: relative;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group input[name="phone"]::placeholder {
    color: #999;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

.btn-submit {
    padding: 15px 80px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Responsive */
@media screen and (max-width: 992px) {
    .product-detail-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-gallery {
        position: static;
        max-width: 400px;
        margin: 0 auto;
    }

    .product-title {
        font-size: 26px;
    }

    .tabs-header {
        overflow-x: auto;
    }

    .tab-btn {
        padding: 12px 25px;
        white-space: nowrap;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 576px) {
    .product-detail-section {
        padding: 20px 0;
    }

    .product-title {
        font-size: 22px;
    }

    .product-actions {
        flex-direction: column;
    }

    .btn-download,
    .btn-inquiry {
        justify-content: center;
    }

    .detail-table .label-cell {
        width: 100px;
        padding: 12px 10px;
    }

    .detail-table .value-cell {
        padding: 12px 10px;
    }
}

