/* AFDM系列产品列表页面样式 */

/* ========= 产品列表区域 ========= */


/* 系列标题 */
.afdm-products .section-title .title {
    font-size: 28px;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

.afdm-products .product-description {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0 auto;
}

/* ========= 产品表格样式 ========= */
.product-table-wrapper {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 3rem;
}

.afdm-product-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.afdm-product-table thead {
    background: var(--gradient-primary);
    color: var(--text-white);
}

.afdm-product-table thead th {
    padding: 1rem 0.75rem;
    font-size: var(--font-size-sm);
    color: var(--text-white);
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
}

.afdm-product-table thead th:first-child {
    border-radius: var(--radius-sm) 0 0 0;
}

.afdm-product-table thead th:last-child {
    border-radius: 0 var(--radius-sm) 0 0;
}

.afdm-product-table tbody tr {
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-normal);
}

.afdm-product-table tbody tr:hover {
    background-color: var(--bg-hover);
}

.afdm-product-table tbody td {
    padding: 1rem 0.75rem;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    vertical-align: middle;
}

/* 型号列 */
.afdm-product-table .model-name {
    font-weight: 600;
    color: var(--primary-color);
    font-size: var(--font-size-base);
}

/* 接口标签 */
.interface-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    margin: 0.125rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    background-color: var(--bg-section);
    color: var(--text-secondary);
}

.interface-badge.usb3 {
    background-color: var(--primary-alpha-20);
    color: var(--primary-color);
}

.interface-badge.hdmi {
    background-color: rgba(var(--bs-success-rgb), 0.2);
    color: var(--accent-color);
}

.interface-badge.lan {
    background-color: rgba(var(--bs-info-rgb), 0.2);
    color: #0dcaf0;
}

.interface-badge.Wi-Fi {
    background-color: rgba(var(--bs-warning-rgb), 0.2);
    color: #ffc107;
}

.interface-badge.touch {
    background-color: rgba(139, 69, 255, 0.2);
    color: #8b45ff;
}

/* 分辨率信息 */
.resolution-info .resolution {
    font-weight: 600;
    color: var(--text-primary);
}

.resolution-info .framerate {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* 光学变倍 */
.optical-zoom {
    font-weight: 500;
    color: var(--text-primary);
}

/* 工作距离 */
.working-distance {
    color: var(--text-primary);
}

/* 传感器信息 */
.sensor-info .sensor-model {
    font-weight: 500;
    color: var(--text-primary);
}

.sensor-info .sensor-size {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* 特色标签 */
.feature-tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    margin: 0.125rem;
    background-color: var(--bg-section);
    color: var(--text-secondary);
    border-radius: 1rem;
    font-size: 0.75rem;
    white-space: nowrap;
}

/* 操作按钮 */
.btn-view-detail {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: var(--text-white);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-normal);
}

.btn-view-detail:hover {
    background-color: var(--primary-hover);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-view-detail i {
    font-size: 1rem;
}

/* ========= 产品特性部分 ========= */
.features-section {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 3rem;
    box-shadow: var(--shadow-sm);
}

.features-section .section-subtitle {
    font-size: 24px;
    color: var(--text-primary);
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.features-section .section-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
}

.feature-item:hover {
    background-color: var(--primary-alpha-10);
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.feature-item p {
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========= 无数据提示 ========= */
.no-data-message {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.no-data-message i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: block;
}

.no-data-message p {
    font-size: var(--font-size-lg);
    color: var(--text-muted);
    margin: 0;
}

/* ========= 响应式设计 ========= */
@media (max-width: 1200px) {
    .product-table-wrapper {
        padding: 1.5rem;
    }

    .afdm-product-table {
        font-size: 0.875rem;
    }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .afdm-product-table {
        min-width: 1100px;
    }
}

@media (max-width: 768px) {
    .afdm-products .section-title .title {
        font-size: 24px;
    }

    .product-table-wrapper {
        padding: 1rem;
        border-radius: var(--radius-sm);
    }

    .afdm-product-table thead th {
        padding: 0.75rem 0.5rem;
        font-size: 0.75rem;
    }

    .afdm-product-table tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.75rem;
    }

    .features-section {
        padding: 2rem 1.5rem;
    }

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

    .btn-view-detail {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }

    .btn-view-detail span {
        display: none;
    }

    .interface-badge,
    .feature-tag {
        font-size: 0.625rem;
        padding: 0.125rem 0.375rem;
    }
}

/* ========= 打印样式 ========= */
@media print {
    .product-table-wrapper {
        box-shadow: none;
        border: 1px solid var(--border-medium);
    }

    .btn-view-detail {
        display: none;
    }

    .afdm-product-table thead {
        background: none;
        color: var(--text-primary);
        border-bottom: 2px solid var(--border-dark);
    }
}