/* product-details.css - 产品详情页公共样式 */

/* 产品详情页容器样式 */
.product-details-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.product-header {
    background: linear-gradient(135deg, #2c6fd0 0%, #15428a 100%);
    color: white;
    padding: 25px 30px;
    text-align: center;
}

.product-header h1 {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.product-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.product-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px;
}

.product-info {
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* 产品亮点样式 */
.product-highlights {
    margin-bottom: 30px;
}

.highlights-header {
    font-size: 1.5rem;
    color: #2c6fd0;
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e9f8;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.highlight-card {
    text-align: center;
    padding: 25px 20px;
    background: #f1f7ff;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e9f8;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.highlight-card i {
    font-size: 2.5rem;
    color: #2c6fd0;
    margin-bottom: 15px;
}

.highlight-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #15428a;
}

.highlight-card p {
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
}

/* 规格参数区域样式 */
.specs-container {
    margin: 30px 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.specs-header {
    padding: 15px 20px;
    background: #2c6fd0;
    color: white;
    font-size: 1.2rem;
    border-bottom: 2px solid #15428a;
}

.specs-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.specs-column {
    padding: 20px;
}

.specs-column:first-child {
    border-right: 1px solid #eee;
    background: #f9fbfe;
}

.specs-category {
    font-weight: 600;
    color: #2c6fd0;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e9f8;
    font-size: 1.1rem;
}

.specs-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f4f9;
}

.specs-item:last-child {
    border-bottom: none;
}

.specs-label {
    font-weight: 600;
    color: #555;
    flex: 1;
}

.specs-value {
    flex: 1;
    text-align: right;
    color: #333;
}

/* 屏幕类型选择区域样式 */
.screen-types-container {
    margin: 30px 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.screen-types-header {
    padding: 15px 20px;
    background: #2c6fd0;
    color: white;
    font-size: 1.2rem;
    border-bottom: 2px solid #15428a;
    text-align: center;
}

.screen-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 30px;
}

.screen-type-card {
    background: #f1f7ff;
    border-radius: 8px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e0e9f8;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.screen-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background: #e3efff;
}

.screen-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #2c6fd0 0%, #15428a 100%);
}

.screen-type-image {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 5px;
    background: #f8f9fa;
    padding: 10px;
}

.screen-type-name {
    font-size: 1.3rem;
    color: #15428a;
    margin-bottom: 10px;
    font-weight: 600;
}

.screen-type-desc {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.screen-type-link {
    display: inline-block;
    padding: 8px 20px;
    background: #2c6fd0;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.screen-type-link:hover {
    background: #15428a;
    transform: scale(1.05);
}

/* 轮播图弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 15px 20px;
    background: #2c6fd0;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-btn:hover {
    transform: scale(1.1);
}

.modal-body {
    padding: 20px;
}

/* 弹窗内轮播图样式 */
.modal-carousel {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.modal-main-image-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e9f8;
}

.modal-main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.modal-image-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
}

.modal-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.modal-nav-btn:hover {
    background: white;
    transform: scale(1.1);
}

.modal-thumbnail-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 10px;
    flex-wrap: wrap;
}

.modal-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    cursor: pointer;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.modal-thumbnail.active {
    border-color: #2c6fd0;
}

.modal-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .product-showcase {
        padding: 15px;
    }
    
    .product-info {
        padding: 20px;
    }
    
    .highlights-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .highlight-card {
        padding: 20px 15px;
    }
    
    .highlight-card i {
        font-size: 2rem;
    }
    
    .highlight-card h3 {
        font-size: 1.1rem;
    }
    
    .highlight-card p {
        font-size: 0.9rem;
    }
    
    .screen-types-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
        padding: 20px;
    }
    
    .screen-type-card {
        padding: 20px 15px;
    }
    
    .screen-type-image {
        height: 120px;
    }
    
    .screen-type-name {
        font-size: 1.2rem;
    }
    
    .specs-content {
        grid-template-columns: 1fr;
    }
    
    .specs-column:first-child {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    
    .specs-item {
        flex-direction: column;
    }
    
    .specs-value {
        text-align: left;
        margin-top: 5px;
        padding-left: 15px;
    }
    
    .product-header h1 {
        font-size: 2rem;
    }
    
    .product-subtitle {
        font-size: 1rem;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .modal-thumbnail {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .specs-header {
        font-size: 1rem;
        padding: 12px 15px;
    }
    
    .specs-column {
        padding: 15px;
    }
    
    .specs-category {
        font-size: 1rem;
    }
    
    .highlight-card i {
        font-size: 1.8rem;
    }
    
    .highlight-card h3 {
        font-size: 1rem;
    }
    
    .highlight-card p {
        font-size: 0.85rem;
    }
    
    .screen-types-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-thumbnail {
        width: 45px;
        height: 45px;
    }
}