/* ================================
   科技风格首页样式 - 全新设计
   ================================ */

/* === 全局背景 === */
body {
    background: linear-gradient(135deg, #0a0a16 0%, #141625 50%, #0f0c29 100%) !important;
    color: #e0e6ff;
    min-height: 100vh;
}

/* === 公告栏 === */
.notice {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(187, 134, 252, 0.1));
    border-bottom: 1px solid rgba(79, 195, 247, 0.2);
    padding: 20px 0;
    margin-bottom: 0;
}

.tech-announcement {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: rgba(25, 30, 55, 0.6);
    border: 1px solid rgba(70, 90, 150, 0.3);
    border-radius: 12px;
    padding: 24px;
    backdrop-filter: blur(10px);
}

.announcement-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}

.announcement-content {
    flex: 1;
}

.announcement-content h3 {
    color: #4fc3f7;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.announcement-text {
    color: #b8c5e0;
    font-size: 14px;
    line-height: 1.6;
}

.announcement-text p {
    margin: 0;
}

/* === Hero区域 === */
.hero-section {
    padding: 40px 0;
    background: linear-gradient(180deg, rgba(33, 150, 243, 0.05) 0%, transparent 100%);
}

.hero-content {
    text-align: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #4fc3f7 0%, #bb86fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 20px;
    color: #8a9ab0;
    margin-bottom: 0;
}

/* === 分类按钮区 === */
.category-buttons-section {
    padding: 30px 0 40px 0;
}

.category-buttons-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.category-btn {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(25, 30, 55, 0.6);
    border: 1px solid rgba(70, 90, 150, 0.4);
    border-radius: 25px;
    color: #e0e6ff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-btn:hover {
    background: rgba(79, 195, 247, 0.15);
    border-color: #4fc3f7;
    color: #4fc3f7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 195, 247, 0.2);
}

.category-btn.active {
    background: linear-gradient(135deg, #2196f3, #6a1b9a);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(33, 150, 243, 0.3);
}

/* === 商品展示区 === */
.products-section {
    padding: 0 0 60px 0;
}

.product-group {
    margin-bottom: 60px;
}

.group-title {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
}

.title-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(79, 195, 247, 0.3), transparent);
}

.title-text {
    font-size: 28px;
    font-weight: 700;
    color: #bb86fc;
    white-space: nowrap;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

/* === 商品卡片 === */
.product-card {
    background: rgba(25, 30, 55, 0.5);
    border: 1px solid rgba(70, 90, 150, 0.3);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 14px;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(79, 195, 247, 0.5);
    box-shadow: 0 8px 24px rgba(0, 30, 80, 0.4),
                0 0 0 1px rgba(79, 195, 247, 0.2);
}

/* === 统计信息 === */
.product-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(70, 90, 150, 0.2);
}

.badge-auto {
    background: rgba(33, 150, 243, 0.9);
    color: white;
    border: 1px solid rgba(79, 195, 247, 0.5);
}

.badge-manual {
    background: rgba(255, 152, 0, 0.9);
    color: white;
    border: 1px solid rgba(255, 193, 7, 0.5);
}

/* === 商品信息 === */
.product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    color: #e0e6ff;
    margin: 0 0 10px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === 价格区域 === */
.product-pricing {
    margin-bottom: 10px;
}

.price-main {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.price-label {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.price-value {
    font-size: 18px;
    font-weight: 700;
    color: #4fc3f7;
}

.price-original {
    font-size: 11px;
    color: #6a7a90;
    text-decoration: line-through;
}

/* === 商品标签 === */
.product-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    margin-left: auto;
}

/* === 统计项目 === */
.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #8a9ab0;
}

.stat-item i {
    font-size: 12px;
}

.stock-high {
    color: #4caf50;
    font-weight: 600;
}

.stock-low {
    color: #ff9800;
    font-weight: 600;
}

.stock-out {
    color: #f44336;
    font-weight: 600;
}

/* === 购买按钮 === */
.btn-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px;
    background: linear-gradient(135deg, #2196f3, #6a1b9a);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
    margin-top: auto;
    cursor: pointer;
}

.btn-buy:hover:not(.disabled) {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(33, 150, 243, 0.4);
    color: white;
}

.btn-buy.disabled {
    background: linear-gradient(135deg, #444, #666);
    cursor: not-allowed;
    opacity: 0.6;
}

/* === 空状态 === */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 18px;
    color: #6a7a90;
}

/* === 响应式设计 === */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .category-buttons-wrapper {
        gap: 8px;
    }
    
    .category-btn {
        padding: 8px 18px;
        font-size: 13px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 12px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .title-text {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .category-buttons-wrapper {
        gap: 6px;
    }
    
    .category-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-announcement {
        flex-direction: column;
        gap: 12px;
    }
    
    .announcement-icon {
        font-size: 24px;
    }
}
