/* 产品展示页面样式 */

/* 页面标题 */
.products-header {
    background-image: linear-gradient(135deg, #3498db, #8e44ad);
}

/* 产品详情部分 */
.product-detail {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.product-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.product-content.reverse {
    flex-direction: row-reverse;
}

.product-image,
.product-info {
    flex: 1;
}

.product-gallery {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-main-image {
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 20px;
}

.product-main-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.product-main-image:hover img {
    transform: scale(1.05);
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.product-thumbnail {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.product-thumbnail.active {
    border-color: #3498db;
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.product-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 30px;
}

.product-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature i {
    font-size: 1.5rem;
    color: #3498db;
}

.product-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 30px;
}

.product-highlight-section {
    margin-bottom: 30px;
}

.product-highlight-section h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.product-highlight-list {
    list-style: none;
    padding: 0;
}

.product-highlight-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.product-highlight-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

.product-brand-philosophy {
    margin-bottom: 30px;
}

.product-brand-philosophy h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.product-brand-philosophy blockquote {
    font-style: italic;
    font-size: 1.1rem;
    color: #7f8c8d;
    border-left: 4px solid #3498db;
    padding-left: 20px;
    margin: 0;
}

.product-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.center-btn {
    justify-content: center;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.product-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.product-item i {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 15px;
}

.product-item h4 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.feature-tabs {
    margin-bottom: 30px;
}

.tab-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tab-item {
    padding: 20px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.tab-item h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.tab-item i {
    color: #3498db;
}

/* 功能介绍样式 */
.features-content {
    margin-top: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.features-content h3 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.8rem;
    text-align: center;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.feature-section {
    margin-bottom: 25px;
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.feature-section h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.feature-section h4 i {
    color: #3498db;
}

.feature-list {
    list-style-type: none;
    padding-left: 10px;
}

.feature-list li {
    margin-bottom: 12px;
    line-height: 1.5;
    color: #34495e;
}

.feature-list li strong {
    color: #3498db;
}

.feature-list li ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 8px;
}

.feature-list li ul li {
    margin-bottom: 5px;
}

.feature-screenshots {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
}

.screenshot {
    flex: 1;
    max-width: 200px;
}

.screenshot img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 资源库样式 */
.resource-library {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.resource-library h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 50px;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.resource-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.resource-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.resource-icon i {
    font-size: 2rem;
    color: white;
}

.resource-card h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.resource-card p {
    color: #7f8c8d;
    margin-bottom: 20px;
}

.btn-text {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.btn-text:hover {
    color: #2980b9;
}

.resource-cta {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.resource-cta h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.resource-cta p {
    color: #7f8c8d;
    margin-bottom: 25px;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    position: relative;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* 资源详情弹窗样式 */
.resource-modal-content {
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    text-align: left;
}

.resource-modal-content h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-align: center;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.resource-modal-content p {
    color: #34495e;
    line-height: 1.8;
    font-size: 1rem;
    text-align: justify;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #000;
}

.qrcode-container {
    margin: 20px 0;
}

.qrcode-container img {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .product-content.reverse {
        flex-direction: column;
    }
    
    .product-info h2 {
        font-size: 2rem;
    }
    
    .product-features {
        grid-template-columns: 1fr;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .tab-content {
        gap: 15px;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-screenshots {
        flex-direction: column;
        align-items: center;
    }
    
    .screenshot {
        max-width: 150px;
    }
    
    .resource-modal-content {
        max-width: 95%;
        padding: 20px;
    }
    
    .resource-modal-content h3 {
        font-size: 1.3rem;
    }
}