/* 
 * 游戏辅助商城首页样式
 * 响应式设计，适配PC和移动端
 * 主色调: 
 * - 主要蓝色: #00d8ff
 * - 深色背景: #0d0f1f, #151829, #1a1a2e
 * - 强调色: #ff6b6b (红色), #4a00e0 (紫色), #ffd76b (金色)
 */

/* ============ 首屏电竞风区域 ============ */
.banner-wrap {
    position: relative;
    padding: 22px 15px 0;
    background:
        radial-gradient(1200px 300px at 50% -80px, rgba(0, 216, 255, 0.12), transparent 70%),
        linear-gradient(to bottom, #0d0f1f, #151829);
    overflow: hidden;
}

.banner-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 216, 255, 0.5), rgba(74, 0, 224, 0.5), transparent);
}

.banner-container {
    display: flex;
    width: 1171px;
    height: 498px;
    margin: 0 auto;
    gap: 12px;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

/* 左侧分类导航 */
.left-nav-container {
    width: 232px;
    height: 100%;
    flex-shrink: 0;
    background: linear-gradient(180deg, #12142a 0%, #0d0f1f 100%);
    border: 1px solid rgba(0, 216, 255, 0.18);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 24px rgba(0, 216, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    position: relative;
}

.left-nav-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, #00d8ff, #4a00e0);
    opacity: 0.7;
}

.game-categories {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.nav-title {
    height: 46px;
    padding: 0 14px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    background: linear-gradient(to right, rgba(0, 216, 255, 0.12), rgba(74, 0, 224, 0.08));
    border-bottom: 1px solid rgba(0, 216, 255, 0.15);
    position: relative;
}

.nav-title-icon {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4a00e0, #00d8ff);
    border-radius: 6px;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    flex-shrink: 0;
}

.nav-title-icon i {
    font-size: 13px;
    color: #fff;
}

.nav-title-text {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    text-shadow: 0 0 12px rgba(0, 216, 255, 0.6);
}

.nav-title-more {
    margin-left: auto;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    transition: color 0.25s ease, transform 0.25s ease;
}

.nav-title:hover .nav-title-more {
    color: #00d8ff;
    transform: rotate(90deg);
}

.slide-nav {
    list-style: none;
    padding: 6px 0;
    margin: 0;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 216, 255, 0.25) transparent;
}

.slide-nav::-webkit-scrollbar {
    width: 4px;
}

.slide-nav::-webkit-scrollbar-thumb {
    background: rgba(0, 216, 255, 0.25);
    border-radius: 4px;
}

.slide-nav-item {
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.slide-nav-item:last-child {
    border-bottom: none;
}

.slide-nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 0;
    transform: translateY(-50%);
    background: linear-gradient(to bottom, #00d8ff, #4a00e0);
    border-radius: 0 3px 3px 0;
    transition: height 0.25s ease;
    z-index: 1;
}

.slide-nav-item:hover::before {
    height: 70%;
}

.slide-nav-item > a {
    display: flex;
    align-items: center;
    padding: 11px 12px;
    color: #c8cde0;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.25s ease;
}

.slide-nav-item > a:hover {
    color: #00d8ff;
    padding-left: 16px;
    background: linear-gradient(to right, rgba(0, 216, 255, 0.1), transparent);
}

.slide-nav-item > a:hover .icon-menu-arrow {
    transform: translateX(3px);
}

.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    margin-right: 9px;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(74, 0, 224, 0.4), rgba(0, 216, 255, 0.22));
    border: 1px solid rgba(0, 216, 255, 0.15);
    flex-shrink: 0;
}

.nav-icon i {
    font-size: 13px;
    color: #00d8ff;
}

.nav-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.icon-menu-arrow {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    transition: transform 0.25s ease;
}

/* 二级分类下拉 */
.sub-nav {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    width: 200px;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: linear-gradient(180deg, #151829 0%, #0d0f1f 100%);
    border: 1px solid rgba(0, 216, 255, 0.2);
    border-radius: 0 10px 10px 0;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 18px rgba(0, 216, 255, 0.08);
    z-index: 30;
}

.slide-nav-item:hover .sub-nav {
    display: block;
}

.sub-nav li {
    margin: 0;
}

.sub-nav li a {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 10px;
    color: #a8b0c8;
    text-decoration: none;
    font-size: 13px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.sub-nav li a i {
    font-size: 11px;
    color: #00d8ff;
}

.sub-nav li a:hover {
    color: #00d8ff;
    background: rgba(0, 216, 255, 0.08);
    padding-left: 14px;
}

/* 新手指南 */
.guide-section {
    padding: 10px 12px 12px;
    border-top: 1px solid rgba(0, 216, 255, 0.1);
}

.guide-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #ffd76b;
    letter-spacing: 1px;
    margin-bottom: 9px;
}

.guide-title i {
    font-size: 13px;
}

.guide-content {
    display: flex;
    gap: 6px;
}

.guide-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 8px 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    color: #a8b0c8;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.25s ease;
}

.guide-item i {
    font-size: 16px;
    color: #00d8ff;
}

.guide-item:hover {
    background: rgba(0, 216, 255, 0.1);
    border-color: rgba(0, 216, 255, 0.3);
    color: #00d8ff;
    transform: translateY(-2px);
}

/* 中间超大轮播 */
.swiper-container,
.banner-swiper {
    flex: 1;
    height: 100%;
    min-width: 0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 216, 255, 0.2);
    box-shadow: 0 0 28px rgba(0, 216, 255, 0.1);
}

.swiper-wrapper {
    height: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    transition: transform 0.5s ease;
}

.swiper-slide {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
}

.swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.swiper-slide:hover img {
    transform: scale(1.04);
}

/* 轮播标题：电竞风 */
.slide-caption {
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    padding: 40px 28px 28px;
    background: linear-gradient(to top, rgba(5, 6, 14, 0.92), rgba(5, 6, 14, 0.35), transparent);
    color: #fff;
    z-index: 2;
    clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 100%);
}

.slide-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #0d0f1f;
    background: linear-gradient(to right, #00d8ff, #4a00e0);
    clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
    margin-bottom: 10px;
}

.slide-caption h2 {
    font-size: 30px;
    font-weight: 900;
    margin: 0 0 8px;
    color: #fff;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(0, 216, 255, 0.75), 0 2px 6px rgba(0, 0, 0, 0.6);
}

.slide-caption p {
    font-size: 14px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* 轮播角标装饰 */
.slide-corner {
    position: absolute;
    width: 34px;
    height: 34px;
    z-index: 3;
    pointer-events: none;
}

.slide-corner-tl {
    top: 12px;
    left: 12px;
    border-top: 2px solid rgba(0, 216, 255, 0.8);
    border-left: 2px solid rgba(0, 216, 255, 0.8);
}

.slide-corner-br {
    bottom: 12px;
    right: 12px;
    border-bottom: 2px solid rgba(0, 216, 255, 0.8);
    border-right: 2px solid rgba(0, 216, 255, 0.8);
}

.swiper-pagination {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 7px;
    z-index: 10;
}

.swiper-pagination-bullet {
    width: 26px;
    height: 4px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    width: 42px;
    background: linear-gradient(to right, #00d8ff, #4a00e0);
    box-shadow: 0 0 12px rgba(0, 216, 255, 0.7);
}

.swiper-button-next,
.swiper-button-prev {
    width: 40px;
    height: 40px;
    background: rgba(13, 15, 31, 0.65);
    border: 1px solid rgba(0, 216, 255, 0.3);
    border-radius: 6px;
    color: #00d8ff;
    transition: all 0.25s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(0, 216, 255, 0.25);
    box-shadow: 0 0 16px rgba(0, 216, 255, 0.4);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 16px;
    font-weight: bold;
}

/* 右侧快捷服务面板 */
.banner-aside {
    width: 200px;
    height: 100%;
    flex-shrink: 0;
}

.service-panel {
    height: 100%;
    background: linear-gradient(180deg, #12142a 0%, #0d0f1f 100%);
    border: 1px solid rgba(0, 216, 255, 0.18);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 24px rgba(0, 216, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    position: relative;
}

.service-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, #ff6b6b, #4a00e0);
    opacity: 0.7;
}

.service-title {
    height: 46px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 14px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    background: linear-gradient(to right, rgba(255, 107, 107, 0.12), rgba(74, 0, 224, 0.08));
    border-bottom: 1px solid rgba(255, 107, 107, 0.18);
}

.service-title i {
    color: #ff6b6b;
}

.service-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    padding: 12px;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    color: #c8cde0;
    text-decoration: none;
    transition: all 0.25s ease;
}

.service-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(74, 0, 224, 0.35), rgba(0, 216, 255, 0.2));
    border: 1px solid rgba(0, 216, 255, 0.2);
    border-radius: 50%;
}

.service-icon i {
    font-size: 16px;
    color: #00d8ff;
}

.service-name {
    font-size: 12px;
}

.service-item:hover {
    background: rgba(0, 216, 255, 0.1);
    border-color: rgba(0, 216, 255, 0.35);
    color: #00d8ff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.service-item:hover .service-icon {
    border-color: #00d8ff;
    box-shadow: 0 0 12px rgba(0, 216, 255, 0.35);
}

/* 底部滚动公告条 */
.notice-ticker {
    width: 1171px;
    height: 36px;
    margin: 12px auto 0;
    display: flex;
    align-items: center;
    background: linear-gradient(to right, rgba(18, 20, 42, 0.95), rgba(13, 15, 31, 0.95));
    border: 1px solid rgba(0, 216, 255, 0.15);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.notice-ticker-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 700;
    color: #ffd76b;
    letter-spacing: 1px;
    background: linear-gradient(to right, rgba(74, 0, 224, 0.35), rgba(0, 216, 255, 0.15));
    clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
    white-space: nowrap;
}

.notice-ticker-label i {
    font-size: 13px;
}

.notice-ticker-viewport {
    flex: 1;
    height: 100%;
    overflow: hidden;
    position: relative;
    margin: 0 10px;
}

.notice-ticker-track {
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
    animation: notice-scroll 18s linear infinite;
}

.notice-ticker-track a {
    display: inline-flex;
    align-items: center;
    color: #a8b0c8;
    text-decoration: none;
    font-size: 13px;
    padding: 0 28px;
    transition: color 0.2s ease;
}

.notice-ticker-track a:hover {
    color: #00d8ff;
}

.notice-ticker-track a::before {
    content: '';
    width: 5px;
    height: 5px;
    margin-right: 8px;
    background: #00d8ff;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(0, 216, 255, 0.7);
}

@keyframes notice-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ============ 首屏响应式 ============ */
@media (max-width: 1200px) {
    .banner-wrap {
        padding: 18px 15px 0;
    }
    
    .banner-container,
    .notice-ticker {
        width: 100%;
    }
    
    .banner-container {
        height: auto;
        flex-wrap: wrap;
    }
    
    .left-nav-container {
        width: 100%;
        height: auto;
        order: 2;
    }
    
    .game-categories {
        height: 260px;
    }

    .sub-nav {
        position: static;
        display: none;
        width: 100%;
        border-radius: 0;
        border: none;
        border-left: 2px solid rgba(0, 216, 255, 0.3);
        box-shadow: none;
        background: rgba(0, 0, 0, 0.2);
    }

    .slide-nav-item:hover .sub-nav {
        display: block;
    }
    
    .banner-swiper {
        order: 1;
        height: 400px;
        flex-basis: 100%;
    }
    
    .banner-aside {
        width: 100%;
        height: auto;
        order: 3;
    }
    
    .service-panel {
        height: auto;
    }
    
    .service-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: auto;
    }
}

@media (max-width: 768px) {
    .banner-swiper {
        height: 300px;
    }
    
    .slide-caption {
        padding: 30px 18px 20px;
    }
    
    .slide-caption h2 {
        font-size: 24px;
    }
    
    .slide-caption p {
        font-size: 13px;
    }
    
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    
    .guide-content {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .banner-swiper {
        height: 210px;
    }
    
    .slide-caption {
        padding: 22px 14px 16px;
        clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%);
    }
    
    .slide-tag {
        font-size: 10px;
        letter-spacing: 1px;
        margin-bottom: 6px;
    }
    
    .slide-caption h2 {
        font-size: 20px;
    }
    
    .slide-caption p {
        font-size: 12px;
    }
    
    .slide-corner {
        width: 22px;
        height: 22px;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
    
    .notice-ticker {
        height: 34px;
    }
    
    .notice-ticker-label {
        padding: 0 10px;
        font-size: 12px;
    }
}
/* 商品推荐模块 */
.products-section {
    padding: 50px 0;
    background: linear-gradient(to bottom, #16213e, #1a1a2e);
    position: relative;
    overflow: hidden;
}

.products-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #4a00e0, #00d8ff);
    opacity: 0.5;
}

.products-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.products-section .container {
    position: relative;
    z-index: 1;
}

.products-title {
    text-align: center;
    margin-bottom: 30px;
}

.products-title h2 {
    font-size: 28px;
    color: #fff;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    padding: 0 20px;
}

.products-title h2::before,
.products-title h2::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 2px;
    background: linear-gradient(to right, #4a00e0, #00d8ff);
}

.products-title h2::before {
    left: -20px;
}

.products-title h2::after {
    right: -20px;
}

.products-title p {
    color: #a0aec0;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.product-card {
    background: rgba(26, 26, 46, 0.8);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    width: 100%;
    height: 360px; /* 固定高度 */
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 216, 255, 0.3);
}

.product-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #4a00e0, #00d8ff);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover::after {
    opacity: 1;
}

.product-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* 添加悬停查看按钮 */
.product-image .view-product {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.product-image .view-button {
    background: linear-gradient(to right, #4a00e0, #00d8ff);
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    box-shadow: 0 0 20px rgba(0, 216, 255, 0.5);
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.product-image .view-button i {
    margin-right: 8px;
}

.product-card:hover .product-image .view-product {
    opacity: 1;
}

.product-card:hover .product-image .view-button {
    transform: translateY(0);
}

.product-category {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 3; /* 确保分类标签在查看按钮上层 */
}

.product-details {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.3;
    height: 48px; /* 固定高度，约2行文字 */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #00d8ff;
}

.product-description {
    color: #a0aec0;
    font-size: 14px;
    margin-bottom: 15px;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    color: #00d8ff;
    font-size: 22px;
    font-weight: 700;
}

.product-price .original-price {
    text-decoration: line-through;
    color: #a0aec0;
    font-size: 14px;
    font-weight: normal;
    margin-left: 5px;
}

.product-button {
    background: linear-gradient(to right, #4a00e0, #00d8ff);
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* 添加维护中按钮样式 */
.product-button.maintenance {
    background: linear-gradient(to right, #3a3a4d, #2a2a3e);
    cursor: not-allowed;
    position: relative;
    color: #b8b8c8;
    border: 1px dashed rgba(255, 255, 255, 0.18);
}

.product-button.maintenance:hover {
    transform: none;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25);
}

.product-button.maintenance::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: linear-gradient(135deg, #2b2b42 0%, #1b1b2e 100%);
    color: #ffd76b;
    padding: 9px 16px;
    border-radius: 10px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    pointer-events: none;
    z-index: 20;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 215, 107, 0.16);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.product-button.maintenance::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    width: 10px;
    height: 10px;
    transform: translateX(-50%) rotate(45deg);
    background: #1b1b2e;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
    pointer-events: none;
    z-index: 20;
}

.product-button.maintenance:hover::before,
.product-button.maintenance:hover::after {
    opacity: 1;
    visibility: visible;
}

.product-button.maintenance:hover::before {
    transform: translateX(-50%) translateY(0);
}

.product-button.maintenance:hover::after {
    transform: translateX(-50%) rotate(45deg);
}

.product-button.maintenance i {
    animation: toolsWiggle 2s infinite;
    margin-right: 5px;
}

@keyframes toolsWiggle {
    0% {
        transform: rotate(0deg);
    }
    20% {
        transform: rotate(-15deg);
    }
    40% {
        transform: rotate(15deg);
    }
    60% {
        transform: rotate(-10deg);
    }
    80% {
        transform: rotate(10deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.product-rating .stars {
    color: #ffc107 !important;
    font-size: 15px;
    letter-spacing: 2px;
    margin-right: 5px;
}

.product-rating .stars i,
.product-rating .stars span,
.product-rating .stars em {
    font-style: normal;
}

.product-rating .stars .fas.fa-star {
    color: #ffc107 !important;
}

.product-rating .count {
    color: #a0aec0;
    font-size: 12px;
}

.view-all-button {
    display: block;
    width: 200px;
    margin: 40px auto 0;
    text-align: center;
    background: transparent;
    color: #00d8ff;
    border: 2px solid #00d8ff;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.view-all-button:hover {
    background: linear-gradient(to right, #4a00e0, #00d8ff);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.3);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card {
        height: auto;
        min-height: 340px;
    }
}

/* 最新上架模块 */
.new-products-section {
    padding: 60px 0;
    background: linear-gradient(to bottom, #1a1a2e, #16213e);
    position: relative;
    overflow: hidden;
}

.new-products-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.new-products-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.new-products-title h2 {
    font-size: 32px;
    color: #fff;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.new-products-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #4a00e0, #00d8ff);
    border-radius: 2px;
}

.new-products-title p {
    color: #a0aec0;
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto;
}

/* 分类导航 */
.category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.category-tab {
    padding: 10px 25px;
    background: rgba(26, 26, 46, 0.6);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.category-tab i {
    margin-right: 8px;
    font-size: 16px;
}

.category-tab:hover {
    background: rgba(0, 216, 255, 0.1);
    border-color: rgba(0, 216, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.category-tab.active {
    background: linear-gradient(to right, #4a00e0, #00d8ff);
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* 分类内容区域 */
.category-content {
    margin-top: 30px;
}

.category-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.category-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.category-header h3 {
    font-size: 24px;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
}

.category-header h3 i {
    margin-right: 10px;
    color: #00d8ff;
}

.category-header .view-more {
    color: #00d8ff;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    background: rgba(0, 216, 255, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(0, 216, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.category-header .view-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 216, 255, 0), rgba(0, 216, 255, 0.1), rgba(0, 216, 255, 0));
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: 1;
}

.category-header .view-more:hover {
    transform: translateX(5px);
    background: rgba(0, 216, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border-color: rgba(0, 216, 255, 0.4);
}

.category-header .view-more:hover::before {
    transform: translateX(100%);
}

.category-header .view-more span {
    position: relative;
    z-index: 2;
}

.category-header .view-more i {
    margin-left: 8px;
    font-size: 12px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.category-header .view-more:hover i {
    transform: translateX(3px);
    animation: arrowPulse 1s infinite;
}

@keyframes arrowPulse {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(3px);
    }
    100% {
        transform: translateX(0);
    }
}

/* 新上架商品卡片 */
.new-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.new-product-card {
    background: rgba(26, 26, 46, 0.8);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    position: relative;
}

.new-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 216, 255, 0.3);
}

.new-product-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.new-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.new-product-image:hover img {
    transform: scale(1.1);
}

.image-hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.new-product-image:hover .image-hover-effect {
    opacity: 1;
}

.view-details-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 20px);
    background: linear-gradient(to right, #4a00e0, #00d8ff);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    pointer-events: none; /* 初始状态下不接收鼠标事件 */
}

.new-product-image:hover .view-details-button {
    transform: translate(-50%, -50%);
    opacity: 1;
    pointer-events: auto; /* 悬浮时接收鼠标事件 */
}

.view-details-button i {
    margin-right: 6px;
}

.view-details-button:hover {
    background: linear-gradient(to right, #5a10f0, #10e8ff);
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.new-product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(to right, #ff6b6b, #ff8e8e);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 4;
}

.new-product-details {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.new-product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.new-product-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.new-product-title a:hover {
    color: #00d8ff;
}

.new-product-description {
    color: #a0aec0;
    font-size: 13px;
    margin-bottom: 15px;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.new-product-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 12px;
    color: #a0aec0;
}

.new-product-stats span {
    display: flex;
    align-items: center;
}

.new-product-stats i {
    margin-right: 5px;
    font-size: 14px;
}

.new-product-stats .stock {
    color: #4cd964;
}

.new-product-stats .stock.low {
    color: #ff9500;
}

.new-product-stats .stock.out {
    color: #ff3b30;
}

.new-product-stats .sales {
    color: #5ac8fa;
}

/* 库存状态动画效果 */
@keyframes stockPulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
    }
}

.new-product-stats .stock.low {
    animation: stockPulse 2s infinite;
}

.new-product-stats .stock.out {
    animation: stockPulse 1s infinite;
}

.new-product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.new-product-price .price {
    font-size: 20px;
    font-weight: 700;
    color: #00d8ff;
}

.new-product-price .price small {
    font-size: 14px;
    font-weight: normal;
    color: #a0aec0;
    text-decoration: line-through;
    margin-left: 5px;
}

.new-product-price .buy-button {
    background: linear-gradient(to right, #4a00e0, #00d8ff);
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.new-product-price .buy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.new-product-price .buy-button i {
    margin-right: 5px;
}

/* 维护中按钮样式 */
.new-product-price .buy-button.maintenance {
    background: linear-gradient(to right, #3a3a4d, #2a2a3e);
    cursor: not-allowed;
    position: relative;
    color: #b8b8c8;
    border: 1px dashed rgba(255, 255, 255, 0.18);
}

.new-product-price .buy-button.maintenance:hover {
    transform: none;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25);
}

.new-product-price .buy-button.maintenance::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: linear-gradient(135deg, #2b2b42 0%, #1b1b2e 100%);
    color: #ffd76b;
    padding: 9px 16px;
    border-radius: 10px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    pointer-events: none;
    z-index: 20;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 215, 107, 0.16);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.new-product-price .buy-button.maintenance::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    width: 10px;
    height: 10px;
    transform: translateX(-50%) rotate(45deg);
    background: #1b1b2e;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
    pointer-events: none;
    z-index: 20;
}

.new-product-price .buy-button.maintenance:hover::before,
.new-product-price .buy-button.maintenance:hover::after {
    opacity: 1;
    visibility: visible;
}

.new-product-price .buy-button.maintenance:hover::before {
    transform: translateX(-50%) translateY(0);
}

.new-product-price .buy-button.maintenance:hover::after {
    transform: translateX(-50%) rotate(45deg);
}

.new-product-price .buy-button.maintenance i {
    animation: toolsWiggle 2s infinite;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .new-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .new-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-tabs {
        gap: 10px;
    }
    
    .category-tab {
        padding: 8px 20px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .new-products-title h2 {
        font-size: 28px;
    }
    
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .new-products-grid {
        grid-template-columns: 1fr;
    }
    
    .category-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }
    
    .category-tab {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

/* 最新新闻模块 */
.latest-news-section {
    padding: 60px 0;
    background: linear-gradient(to bottom, #16213e, #1a1a2e);
    position: relative;
    overflow: hidden;
}

.latest-news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.latest-news-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.latest-news-title h2 {
    font-size: 32px;
    color: #fff;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.latest-news-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #4a00e0, #00d8ff);
    border-radius: 2px;
}

.latest-news-title p {
    color: #a0aec0;
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.news-card {
    background: rgba(26, 26, 46, 0.8);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 380px;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 216, 255, 0.3);
}

.news-image-container {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image {
    transform: scale(1.1);
}

.news-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.news-card:hover .news-image-overlay {
    opacity: 1;
}

.read-more-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 20px);
    background: linear-gradient(to right, #4a00e0, #00d8ff);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    pointer-events: none;
}

.news-card:hover .read-more-btn {
    transform: translate(-50%, -50%);
    opacity: 1;
    pointer-events: auto;
}

.read-more-btn i {
    margin-right: 6px;
}

.read-more-btn:hover {
    background: linear-gradient(to right, #5a10f0, #10e8ff);
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.news-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    height: 50px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #00d8ff;
}

.news-meta {
    display: flex;
    justify-content: flex-start;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: #a0aec0;
    flex-wrap: wrap;
    gap: 15px;
}

.news-author {
    display: flex;
    align-items: center;
}

.news-author i {
    margin-right: 5px;
    font-size: 14px;
    color: #00d8ff;
}

.news-date, .news-views {
    display: flex;
    align-items: center;
}

.news-date i, .news-views i {
    margin-right: 5px;
    font-size: 14px;
}

.news-category {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(to right, #4a00e0, #00d8ff);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 4;
}

.view-all-news {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.view-all-news-btn {
    background: rgba(26, 26, 46, 0.8);
    color: #fff;
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.view-all-news-btn:hover {
    background: linear-gradient(to right, #4a00e0, #00d8ff);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.view-all-news-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.view-all-news-btn:hover i {
    transform: translateX(5px);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-card {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .latest-news-title h2 {
        font-size: 28px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }
    
    .news-card {
        height: auto;
        max-height: 450px;
    }
}

@media (max-width: 576px) {
    .news-meta {
        flex-wrap: wrap;
        gap: 8px 15px;
    }
}

