/* 产品页面专用样式 */

/* 页面标题区域 */
.page-header {
    padding: 160px 0 60px;
    text-align: center;
    color: white;
    position: relative;
}

.page-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #00a8ff, #ff9f43);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 168, 255, 0.3);
}

.page-subtitle {
    font-size: 1.2rem;
    color: rgb(20 19 19 / 80%);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* 分类筛选 */
.category-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.filter-btn {
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* 产品搜索 */
.product-search {
    padding: 30px 0;
    background: rgba(10, 14, 23, 0.6);
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    display: flex;
    gap: 10px;
}

.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
}

#search-input {
    flex: 1;
    padding: 16px 20px 16px 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: white;
    font-size: 16px;
    transition: var(--transition);
}

#search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

#search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#search-btn {
    padding: 16px 30px;
    white-space: nowrap;
}

/* 产品列表区域 */
.product-list-section {
    padding: 80px 0;
    background: rgba(10, 14, 23, 0.8);
}

.product-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.product-list-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    color: white;
}

.sort-options select {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.sort-options select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.sort-options select option {
    background: var(--dark-color);
    color: white;
}

/* 产品列表 */
.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.product-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.product-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
}

.product-item-image {
    height: 220px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.product-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-item:hover .product-item-image img {
    transform: scale(1.1);
}

.product-item-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.product-item-content {
    padding: 25px;
}

.product-item-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 168, 255, 0.1);
    color: var(--primary-color);
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.product-item-title {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 10px;
    font-weight: 600;
}

.product-item-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    height: 80px;
    overflow: hidden;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.product-item-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.product-item-spec {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.product-item-spec i {
    color: var(--primary-color);
    font-size: 14px;
}

.product-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}



.product-item-actions {
    display: flex;
    gap: 10px;
}

.product-item-actions .btn {
    padding: 10px 20px;
    font-size: 14px;
}

/* 加载状态 */
.loading-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
}

.loading-products .loading {
    margin: 0 auto 20px;
}

.loading-products p {
    color: rgba(255, 255, 255, 0.7);
}

/* 无限滚动加载提示 */
.load-more-trigger {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 0;
}

.loading-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.loading-more .loading {
    width: 40px;
    height: 40px;
}

.loading-more p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.loading-more.error p {
    color: #e74c3c;
    cursor: pointer;
}

.loading-more.error p:hover {
    text-decoration: underline;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination-info {
    width: 100%;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 15px;
}

.pagination-btn {
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-dots {
    color: rgba(255, 255, 255, 0.5);
    padding: 0 5px;
}

/* 产品对比区域 */
.product-comparison {
    padding: 80px 0;
    background: rgba(0, 168, 255, 0.05);
}

.comparison-table {
    overflow-x: auto;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.comparison-table th,
.comparison-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table th {
    background: rgba(0, 168, 255, 0.1);
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.comparison-table td {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.comparison-table tr:hover td {
    background: rgba(0, 168, 255, 0.05);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* 应用场景区域 */
.application-scenarios {
    padding: 80px 0;
    background: rgba(10, 14, 23, 0.8);
}

.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.scenario-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 40px 25px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.scenario-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    background: rgba(0, 168, 255, 0.1);
}

.scenario-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.scenario-icon i {
    font-size: 28px;
    color: white;
}

.scenario-card h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.scenario-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 空状态 */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 60px;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.empty-state h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.empty-state p {
    color: rgba(255, 255, 255, 0.5);
    max-width: 400px;
    margin: 0 auto;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }

    .product-list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .product-list {
        grid-template-columns: 1fr;
    }

    .category-filter {
        gap: 10px;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .search-box {
        flex-direction: column;
    }

    #search-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 2rem;
    }

    .product-item-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .product-item-actions {
        width: 100%;
    }

    .product-item-actions .btn {
        flex: 1;
        text-align: center;
    }

    .scenarios-grid {
        grid-template-columns: 1fr;
    }
}

/* 动画效果 */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease forwards;
}

.slide-in-right {
    animation: slideInRight 0.5s ease forwards;
}

/* 产品详情页样式 */
.product-detail {
    padding: 160px 0 80px;
    background: white;
    color: #333;
    min-height: 100vh;
}

.product-detail-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.product-detail-header {
    margin-bottom: 40px;
}

.product-detail-category {
    display: inline-block;
    padding: 6px 15px;
    background: rgba(0, 168, 255, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.product-detail-header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.3;
}

.product-detail-price {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.product-detail-image {
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-detail-body {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #333;
}

.product-detail-description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.product-detail-description img {
    max-width: 100%;
}

.product-detail-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.product-detail-footer .btn {
    padding: 12px 25px;
    font-size: 16px;
}

/* 相关产品区域 */
.related-products {
    padding: 80px 0;
    background: rgba(0, 168, 255, 0.05);
}

@media (max-width: 768px) {
    .product-detail-content {
        padding: 20px;
    }

    .product-detail-header h1 {
        font-size: 2rem;
    }

    .product-detail-price {
        font-size: 1.5rem;
    }

    .product-detail-image {
        height: 250px;
    }

    .product-detail-footer {
        flex-direction: column;
    }

    .product-detail-footer .btn {
        width: 100%;
        text-align: center;
    }
}

/* 错误提示 */
.error-message {
    text-align: center;
    padding: 100px 20px;
}

.error-message i {
    font-size: 4rem;
    color: #ff4757;
    margin-bottom: 20px;
}

.error-message h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.error-message p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.6);
}