/* ========================================================================
   PRODUCTS MODAL STYLES
   ======================================================================== */

.product-details-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

.product-details-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-details-content {
    background-color: #ffffff;
    position: relative;
    padding: 40px;
    border-radius: 12px;
    max-width: 1200px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

body.dark-mode .product-details-content {
    background-color: #2a2a2a;
    color: #e0e0e0;
}

.product-close-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #355E3B;
    cursor: pointer;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

body.dark-mode .product-close-btn {
    color: #7fbf8f;
}

.product-close-btn:hover {
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.6);
    transform: rotate(90deg);
}

body.dark-mode .product-close-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* 顶部标题区域 */
.product-details-top {
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

body.dark-mode .product-details-top {
    border-bottom-color: #404040;
}

/* 图片行 - 单独一行显示3-4张图片 */
.product-images-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.product-image-item {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(53, 94, 59, 0.2);
    transition: transform 0.3s ease;
}

.product-image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(53, 94, 59, 0.3);
}

.product-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 产品区域布局 */
.product-section-full {
    width: 100%;
    margin-bottom: 30px;
}

.product-details-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.product-section-half {
    width: 100%;
}

.product-details-title {
    font-size: 2.5em;
    color: #355E3B;
    margin: 0 0 15px 0;
    font-weight: 700;
}

body.dark-mode .product-details-title {
    color: #7fbf8f;
}

.product-details-subtitle {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 20px;
}

body.dark-mode .product-details-subtitle {
    color: #aaa;
}

.product-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 15px;
}

.spec-item {
    background: #ffffff;
    padding: 16px 18px;
    border-radius: 8px;
    border: 1px solid #e6e6e6;
    box-shadow: 0 4px 12px rgba(53, 94, 59, 0.08);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    transform-origin: center;
}

.spec-item:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(53, 94, 59, 0.16);
}

body.dark-mode .spec-item {
    background-color: #2f2f2f;
    border-color: #404040;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.spec-label {
    font-size: 0.9em;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

body.dark-mode .spec-label {
    color: #a0a0a0;
}

.spec-value {
    font-size: 1.05em;
    font-weight: 700;
    color: #222;
}

body.dark-mode .spec-value {
    color: #f0f0f0;
}

.product-section {
    margin-bottom: 35px;
}

.product-section-title {
    font-size: 1.5em;
    color: #355E3B;
    margin-bottom: 15px;
    font-weight: 600;
    border-bottom: 2px solid #355E3B;
    padding-bottom: 10px;
}

body.dark-mode .product-section-title {
    color: #7fbf8f;
    border-bottom-color: #7fbf8f;
}

.product-section p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 12px;
}

body.dark-mode .product-section p {
    color: #ccc;
}

/* 产品类型列表 */
.product-items-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px 18px;
}

.product-items-list li {
    padding: 12px 14px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

body.dark-mode .product-items-list li {
    background: #2f2f2f;
    border-color: #404040;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.product-items-list .item-title {
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
}

body.dark-mode .product-items-list .item-title {
    color: #f0f0f0;
}

.product-items-list .item-desc {
    color: #555;
    line-height: 1.6;
    font-size: 0.95em;
}

body.dark-mode .product-items-list .item-desc {
    color: #c8c8c8;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 10px 0 10px 30px;
    position: relative;
    color: #555;
}

body.dark-mode .feature-list li {
    color: #ccc;
}

.feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #355E3B;
    font-weight: bold;
    font-size: 1.2em;
}

body.dark-mode .feature-list li:before {
    color: #7fbf8f;
}

/* 特性列表2列布局 */
.feature-list-2col {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    list-style: none;
    padding: 0;
}

.feature-list-2col li {
    padding: 8px 0 8px 30px;
    position: relative;
}

.product-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
    justify-content: center;
}

.product-tag {
    background: #355E3B;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
}

/* 左右分栏样式优化 */
.product-details-left,
.product-details-right {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Product Table Styles */
.product-table-wrapper {
    overflow-x: auto;
    margin-top: 15px;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

body.dark-mode .product-table {
    background: #2a2a2a;
}

.product-table thead {
    background: #355E3B;
    color: white;
}

.product-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95em;
}

.product-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    color: #333;
}

body.dark-mode .product-table td {
    border-bottom-color: #404040;
    color: #e0e0e0;
}

.product-table tbody tr:hover {
    background: #f8f9fa;
}

body.dark-mode .product-table tbody tr:hover {
    background: #333;
}

.product-table tbody tr:last-child td {
    border-bottom: none;
}

/* Application List Styles */
.application-list {
    list-style: none;
    padding: 0;
}

.application-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.6;
}

body.dark-mode .application-list li {
    border-bottom-color: #404040;
}

.application-list li:last-child {
    border-bottom: none;
}

.application-list li i {
    color: #355E3B;
    font-size: 1.1em;
}

body.dark-mode .application-list li i {
    color: #7fbf8f;
}

/* 应用场景列表2列布局 */
.application-list-2col {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
    list-style: none;
    padding: 0;
}

.application-list-2col li {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.6;
}

body.dark-mode .application-list-2col li {
    border-bottom-color: #404040;
}

/* Usage Guide List Styles */
.usage-guide-list {
    padding-left: 25px;
    color: #555;
}

body.dark-mode .usage-guide-list {
    color: #b0b0b0;
}

.usage-guide-list li {
    padding: 10px 0;
    line-height: 1.7;
}

.usage-guide-list li::marker {
    color: #355E3B;
    font-weight: 600;
}

body.dark-mode .usage-guide-list li::marker {
    color: #7fbf8f;
}

.product-contact-cta {
    background: #355E3B;
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-top: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-contact-cta:hover {
    box-shadow: 0 4px 15px rgba(53, 94, 59, 0.4);
    transform: translateY(-2px);
}

.product-contact-cta-text {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-contact-cta-desc {
    font-size: 0.95em;
    opacity: 0.9;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .product-details-content {
        padding: 25px;
    }

    .product-images-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-details-row {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .product-details-title {
        font-size: 1.8em;
    }

    .product-specs {
        grid-template-columns: 1fr;
    }

    .feature-list-2col,
    .application-list-2col {
        grid-template-columns: 1fr;
    }

    .product-table {
        font-size: 0.85em;
    }

    .product-table th,
    .product-table td {
        padding: 10px 8px;
    }
}

@media (max-width: 480px) {
    .product-images-row {
        grid-template-columns: 1fr;
    }
}
/* 细滚动条样式 */
.product-details-content { scrollbar-width: thin; scrollbar-color: #355E3B #f5f5f5; }
.product-details-content::-webkit-scrollbar { width: 6px; }
.product-details-content::-webkit-scrollbar-track { background: #f5f5f5; border-radius: 3px; }
.product-details-content::-webkit-scrollbar-thumb { background: #355E3B; border-radius: 3px; }
.product-details-content::-webkit-scrollbar-thumb:hover { background: #4a9d62; }
body.dark-mode .product-details-content { scrollbar-color: #7fbf8f #2a2a2a; }
body.dark-mode .product-details-content::-webkit-scrollbar-track { background: #2a2a2a; }
body.dark-mode .product-details-content::-webkit-scrollbar-thumb { background: #7fbf8f; }
body.dark-mode .product-details-content::-webkit-scrollbar-thumb:hover { background: #4a9d62; }
