  /* ===== 全局重置 & 基础 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}

body {
    background-color: #ffffff;
    color: #333;
    font-family: "Microsoft Yahei", sans-serif;
}

/* 轮播整体容器 */
.banner-carousel {
    width: 1200px;
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
    margin: 20px auto;
}

/* 轮播图片铺满容器 */
.carousel-item img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

/* ===== 滚动条美化 ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6c5ce7, #00b4d8);
    border-radius: 10px;
}

/* ===== 导航栏 ===== */
.game-nav {
    background: #181e29;
    border-bottom: 1px solid #333a47;
    position: sticky;
    top: 0;
    z-index: 999;
}

.game-nav .navbar-brand {
    font-weight: 800;
    font-size: 1.6rem;
    color: #fff !important;
    text-shadow: 0 0 20px rgba(108, 92, 231, 0.6), 0 0 40px rgba(0, 180, 216, 0.3);
    letter-spacing: 1px;
}

.game-nav .navbar-brand i {
    color: #f9ca24;
    margin-right: 8px;
    filter: drop-shadow(0 0 8px #f9ca24);
}

.game-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 8px !important;
    border-radius: 30px;
    transition: all 0.3s ease;
    position: relative;
}

.game-nav .nav-link:hover,
.game-nav .nav-link.active {
    color: #fff !important;
    background: rgba(108, 92, 231, 0.35);
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.2);
    transform: translateY(-1px);
}

.game-nav .nav-link i {
    margin-right: 6px;
}

.game-nav .btn-outline-light {
    border-radius: 30px;
    padding: 8px 22px;
    font-weight: 600;
    border-color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.game-nav .btn-outline-light:hover {
    background: #f9ca24;
    border-color: #f9ca24;
    color: #1a1a2e;
    box-shadow: 0 0 30px rgba(249, 202, 36, 0.3);
}

.game-nav .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
    padding: 6px 12px;
}

.game-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== Hero 区域 ===== */
.hero-section {
    position: relative;
    padding: 30px 0 20px;
    background: #ffffff;
    overflow: hidden;
    border-bottom: 4px solid rgba(108, 92, 231, 0.2);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(249, 202, 36, 0.2);
    backdrop-filter: blur(10px);
    padding: 6px 20px;
    border-radius: 50px;
    color: #f9ca24;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid rgba(249, 202, 36, 0.25);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero-badge i {
    margin-right: 6px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.15;
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.3);
}

.hero-title .highlight {
    background: linear-gradient(135deg, #f9ca24, #f0932b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.hero-sub {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    max-width: 500px;
    margin-top: 16px;
    line-height: 1.7;
}

.hero-actions {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-actions .btn-primary {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    border: none;
    border-radius: 50px;
    padding: 14px 40px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.4);
    transition: all 0.3s ease;
}

.hero-actions .btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(108, 92, 231, 0.6);
}

.hero-actions .btn-outline-light {
    border-radius: 50px;
    padding: 14px 36px;
    font-weight: 600;
    border-color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.hero-actions .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stats .stat-item {
    color: #fff;
}

.hero-stats .stat-number {
    font-size: 1.8rem;
    font-weight: 900;
    display: block;
    background: linear-gradient(135deg, #f9ca24, #f0932b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stats .stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    letter-spacing: 1px;
}

/* ===== Hero 右侧卡片 - 滚动容器 ===== */
.hero-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    border-radius: 28px;
    padding: 0;
    /* 内边距由滚动容器控制 */
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    height: 320px;
    /* 固定高度，显示约4个item，但我们会滚动展示更多 */
    overflow: hidden;
    transition: transform 0.4s ease;
}

.hero-card:hover {
    transform: translateY(-6px);
}

/* 滚动外层 - 包裹所有 item-row */
.scroll-wrapper {
    display: flex;
    flex-direction: column;
    will-change: transform;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 每个道具行 */
.item-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    background: transparent;
    transition: background 0.2s;
}

.item-row:last-child {
    border-bottom: none;
}

.item-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

.item-row .item-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    background: rgba(108, 92, 231, 0.2);
    color: #a29bfe;
}

.item-row .item-icon.gold {
    background: rgba(249, 202, 36, 0.2);
    color: #f9ca24;
}

.item-row .item-icon.cyan {
    background: rgba(0, 180, 216, 0.2);
    color: #00b4d8;
}

.item-row .item-icon.pink {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.item-row .item-info {
    flex: 1;
    min-width: 0;
}

.item-row .item-info .name {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-row .item-info .price {
    color: #f9ca24;
    font-weight: 700;
    font-size: 0.95rem;
}

.item-row .item-info .price .original {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 400;
    text-decoration: line-through;
    font-size: 0.8rem;
    margin-left: 8px;
}

.item-row .item-tag {
    background: rgba(249, 202, 36, 0.15);
    color: #f9ca24;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid rgba(249, 202, 36, 0.15);
    flex-shrink: 0;
}

/* ===== 通用标题 ===== */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header .subtitle {
    font-size: 0.85rem;
    font-weight: 700;
    color: #6c5ce7;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.section-header h2 {
    font-size: 2.4rem;
    font-weight: 900;
    color: #1a1a2e;
}

.section-header h2 .highlight {
    background: linear-gradient(135deg, #6c5ce7, #00b4d8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    color: #6c6c8a;
    max-width: 540px;
    margin: 10px auto 0;
    font-size: 1.05rem;
}

/* ===== 游戏分类 ===== */
.category-section {
    padding: 70px 0 50px;
    background: #fff;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
}

.category-item {
    text-align: center;
    padding: 24px 12px 18px;
    border-radius: 20px;
    background: #f8f9fe;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
    color: #1a1a2e;
}

.category-item:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #6c5ce7;
    box-shadow: 0 16px 40px rgba(108, 92, 231, 0.15);
    background: #fff;
}

.category-item .icon-wrap {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.12), rgba(0, 180, 216, 0.08));
    color: #6c5ce7;
    transition: all 0.3s ease;
}

.category-item:hover .icon-wrap {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: #fff;
    box-shadow: 0 8px 24px rgba(108, 92, 231, 0.3);
}

.category-item .cat-name {
    font-weight: 700;
    font-size: 0.95rem;
    display: block;
}

.category-item .cat-count {
    font-size: 0.7rem;
    color: #a0a0bc;
    font-weight: 500;
}

/* ===== 热门道具 ===== */
.products-section {
    padding: 70px 0 60px;
    background: #fff;
}

.product-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
    height: 100%;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(108, 92, 231, 0.12);
}

.product-card .card-img-top {
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #e8e5f5, #f0edff);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    position: relative;
    overflow: hidden;
}

.product-card .card-img-top img {
    width: 115%
}

.product-card .badge-discount {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: #fff;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 4px 14px;
    border-radius: 30px;
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.3);
    z-index: 2;
}

.product-card .badge-hot {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, #f9ca24, #f0932b);
    color: #1a1a2e;
    font-weight: 800;
    font-size: 0.7rem;
    padding: 4px 14px;
    border-radius: 30px;
    box-shadow: 0 4px 16px rgba(249, 202, 36, 0.3);
    z-index: 2;
}

.product-card .card-body {
    padding: 20px 22px 22px;
}

.product-card .card-title {
    font-weight: 800;
    font-size: 1.1rem;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.product-card .card-text {
    color: #6c6c8a;
    font-size: 0.9rem;
    margin-bottom: 14px;
}

.product-card .price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-card .price-current {
    font-size: 1.3rem;
    font-weight: 900;
    color: #bd2a38;
}

.product-card .price-current small {
    font-size: 0.7rem;
    font-weight: 600;
    color: #a0a0bc;
    text-decoration: line-through;
    margin-left: 8px;
}

.product-card .btn-buy {
    background: linear-gradient(135deg, #c9754b, #a29bfe);
    border: none;
    border-radius: 30px;
    padding: 8px 20px;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.25);
}

.product-card .btn-buy:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 28px rgba(108, 92, 231, 0.4);
}

.product-card .rating {
    color: #f9ca24;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.product-card .rating span {
    color: #a0a0bc;
    font-weight: 500;
    margin-left: 4px;
}

/* ===== 限时特惠 ===== */
.flash-section {
    padding: 70px 0 60px;
    background: linear-gradient(135deg, #0f0c29, #1a1a3e);
    position: relative;
    overflow: hidden;
}

.flash-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.flash-section .section-header h2 {
    color: #fff;
}

.flash-section .section-header p {
    color: rgba(255, 255, 255, 0.5);
}

.flash-section .section-header .subtitle {
    color: #f9ca24;
}

.flash-timer {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.flash-timer .time-block {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 10px 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
    min-width: 70px;
}

.flash-timer .time-block .num {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    display: block;
    line-height: 1.2;
}

.flash-timer .time-block .label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.flash-timer .time-sep {
    color: rgba(255, 255, 255, 0.1);
    font-size: 2rem;
    font-weight: 100;
    display: flex;
    align-items: center;
}

.flash-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.4s ease;
    height: 100%;
    text-align: center;
}

.flash-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(249, 202, 36, 0.15);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.flash-card .flash-icon {
    font-size: 3.5rem;
    margin-bottom: 12px;
    display: block;
}

.flash-card .flash-name {
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
}

.flash-card .flash-price {
    color: #f9ca24;
    font-weight: 900;
    font-size: 1.3rem;
    margin: 6px 0 2px;
}

.flash-card .flash-price .original {
    color: rgba(255, 255, 255, 0.25);
    font-weight: 400;
    text-decoration: line-through;
    font-size: 0.85rem;
    margin-left: 8px;
}

.flash-card .flash-progress {
    margin-top: 12px;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
}

.flash-card .flash-progress .bar {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, #f9ca24, #f0932b);
    width: 72%;
}

.flash-card .flash-stock {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 6px;
    margin-bottom: 20px;
}

.flash-card .btn-flash {
    margin-top: 16px;
    background: linear-gradient(135deg, #f9ca24, #f0932b);
    border: none;
    border-radius: 30px;
    padding: 10px 32px;
    font-weight: 800;
    color: #1a1a2e;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 12px;
}

.flash-card .btn-flash:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 30px rgba(249, 202, 36, 0.3);
}

/* ===== 特色优势 ===== */
.features-section {
    padding: 30px 0 20px;
    background: #fff;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 24px;
    transition: all 0.3s ease;
    background: #f8f9fe;
    height: 100%;
    border: 2px solid transparent;
}

.feature-item:hover {
    border-color: #6c5ce7;
    background: #fff;
    box-shadow: 0 12px 40px rgba(108, 92, 231, 0.08);
    transform: translateY(-6px);
}

.feature-item .feat-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(0, 180, 216, 0.06));
    color: #6c5ce7;
}

.feature-item h5 {
    font-weight: 800;
    color: #1a1a2e;
}

.feature-item p {
    color: #6c6c8a;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ===== 页脚 ===== */
.footer-section {
    margin-top: 60px;
    padding: 30px 0;
    background: #121822;
    text-align: center;
    color: #777;
    font-size: 13px;
}


/* ===== 响应式 ===== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.6rem;
    }

    .hero-stats {
        gap: 24px;
        flex-wrap: wrap;
    }

    .hero-card {
        height: 280px;
        /* 移动端适当降低高度 */
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0 50px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-sub {
        font-size: 0.95rem;
    }

    .hero-stats .stat-number {
        font-size: 1.4rem;
    }

    .hero-card {
        margin-top: 30px;
        height: 260px;
    }

    .item-row {
        padding: 12px 16px;
        gap: 12px;
    }

    .item-row .item-icon {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }

    .item-row .item-info .name {
        font-size: 0.9rem;
    }

    .item-row .item-info .price {
        font-size: 0.85rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .category-item {
        padding: 16px 8px 12px;
    }

    .category-item .icon-wrap {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }

    .category-item .cat-name {
        font-size: 0.8rem;
    }

    .flash-timer .time-block {
        padding: 6px 16px;
        min-width: 56px;
    }

    .flash-timer .time-block .num {
        font-size: 1.4rem;
    }

    .flash-timer .time-sep {
        font-size: 1.4rem;
    }

    .product-card .card-img-top {
        height: 150px;
        font-size: 3.5rem;
        padding: 14px;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-outline-light {
        padding: 12px 28px;
        font-size: 0.9rem;
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .category-item .icon-wrap {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        border-radius: 12px;
    }

    .category-item .cat-name {
        font-size: 0.7rem;
    }

    .category-item .cat-count {
        font-size: 0.6rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .product-card .card-title {
        font-size: 0.95rem;
    }

    .product-card .price-current {
        font-size: 1.1rem;
    }

    .hero-card {
        height: 240px;
    }

    .item-row {
        padding: 10px 12px;
        gap: 10px;
    }

    .item-row .item-icon {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
        border-radius: 12px;
    }

    .item-row .item-info .name {
        font-size: 0.8rem;
    }

    .item-row .item-info .price {
        font-size: 0.8rem;
    }

    .item-row .item-tag {
        font-size: 0.6rem;
        padding: 2px 8px;
    }
}