/* 智能成像配件专用样式 - 完整整合版 */

/* ========== 主要区域样式 ========== */
.imaging-accessories-section {
    background: linear-gradient(135deg, var(--bg-section) 0%, var(--bg-light) 100%);
    padding: 80px 0;
    position: relative;
}

.imaging-accessories-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
}

/* ========== 标题区域样式 ========== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    border-radius: var(--radius-sm);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ========== 产品展示网格 ========== */
.product-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* ========== 产品卡片样式 ========== */
.product-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-alpha-20);
}

.product-card:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 动画延迟效果 */
.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }
.product-card:nth-child(7) { animation-delay: 0.7s; }

/* ========== 产品头部样式 ========== */
.product-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.product-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 24px;
    color: var(--text-white);
    box-shadow: var(--shadow-sm);
}

.product-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* ========== 产品内容样式 ========== */
.product-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.features-section,
.applications-section {
    margin-bottom: 20px;
}

.features-title,
.applications-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.features-title::before {
    content: '⚡';
    margin-right: 8px;
    font-size: 16px;
    color: var(--primary-color);
}

.applications-title::before {
    content: '🎯';
    margin-right: 8px;
    font-size: 16px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: relative;
    padding-left: 20px;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.applications-section {
    background: var(--bg-section);
    padding: 15px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary-color);
}

.applications-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ========== 表格样式 ========== */
.zoom-lens-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.85rem;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.zoom-lens-table th,
.zoom-lens-table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid var(--border-light);
}

.zoom-lens-table th {
    background: var(--primary-color);
    color: var(--text-white);
    font-weight: 600;
    text-align: center;
}

.zoom-lens-table tr:nth-child(even) {
    background: var(--bg-section);
}

.zoom-lens-table tr:hover {
    background: var(--primary-alpha-10);
}

.zoom-lens-table td {
    color: var(--text-primary);
    text-align: center;
}

/* ========== 规格参数表格 ========== */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.spec-table th {
    background: var(--bg-section);
    color: var(--text-primary);
    padding: 12px 15px;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
}

.spec-table td {
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.spec-table tr:hover {
    background: var(--bg-hover);
}

/* ========== 整合价值区域 ========== */
.integration-value {
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: 50px;
    box-shadow: var(--shadow-md);
}

.integration-value h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.integration-value p {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.95;
}

/* ========== 核心优势网格 ========== */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.advantage-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.advantage-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.advantage-card:hover::before {
    transform: scaleX(1);
}

.advantage-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: var(--primary-alpha-10);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.advantage-icon i {
    font-size: 1.75rem;
    color: var(--primary-color);
    transition: var(--transition-normal);
}

.advantage-card:hover .advantage-icon {
    background: var(--primary-color);
    transform: scale(1.1);
}

.advantage-card:hover .advantage-icon i {
    color: var(--text-white);
}

.advantage-title {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.advantage-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* ========== 辅助组件样式 ========== */
.product-tag {
    background: var(--primary-alpha-10);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
    border: 1px solid var(--primary-alpha-20);
}

.btn-primary-custom {
    background: var(--gradient-primary);
    border: none;
    color: var(--text-white);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: var(--primary-hover);
}

/* ========== 状态指示器 ========== */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
}

.status-indicator.available {
    background: rgba(40, 167, 69, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.status-indicator.limited {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.status-indicator.unavailable {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(220, 53, 69, 0.2);
}

/* ========== 加载状态 ========== */
.loading-skeleton {
    background: linear-gradient(90deg, var(--bg-section) 25%, var(--bg-hover) 50%, var(--bg-section) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

/* ========== 动画定义 ========== */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
    .product-showcase {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    .product-card {
        padding: 20px;
    }

    .integration-value {
        padding: 30px 20px;
    }

    .zoom-lens-table th,
    .zoom-lens-table td {
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .product-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .product-icon {
        margin-right: 0;
    }

    .zoom-lens-table {
        font-size: 0.7rem;
    }

    .zoom-lens-table th,
    .zoom-lens-table td {
        padding: 6px 8px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }
}

/* ========== 无障碍支持 ========== */
@media (prefers-contrast: high) {
    .product-card {
        border: 2px solid var(--text-primary);
    }

    .features-list li::before {
        color: var(--text-primary);
    }

    .product-icon {
        border: 2px solid var(--text-white);
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-card {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .advantage-card:hover {
        transform: none;
    }

    .btn-primary-custom:hover {
        transform: none;
    }
}