:root {
    --primary-dark: #0a1223;
    --primary-red: #c53030;
    --primary-blue: #1e3a8a;
    --primary-purple: #615dff;  /* 主色 */
    --accent-red: #ef4444;
    --accent-yellow: #f59e0b;
    --accent-green: #20d39b;  /* 主色 */
    --text-light: #ffffff;
    --text-dark: #1e293b;
  }

/* shop.html */
.shop-nav{
    position: relative;
    background-color: #f3f3ff;
}
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-purple);
    position: relative;
}
.categories-btn {
    background-color: var(--accent-green);
    color: white;
    border: none;
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.3s;
    width: 250px;
    justify-content: center;
    font-size: 1.5rem;
}

.categories-btn:hover {
    background-color: var(--primary-purple);
}

.categories-btn i {
    margin-right: 8px;
}
.shop-category{
    position: absolute;
    top: 60px;
    left: 0;
    z-index: 9;
}

.cart-bar {
    display: flex;
    align-items: center;
    background-color: #f8f8f8;
    border-radius: 4px;
    padding: 5px 20px;
    border:1px solid #ccc;
    padding-right: 30px;
}

/* Main Content */
.main-content {
    display: flex;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: white;
    /* box-shadow: 0 2px 10px rgba(0,0,0,0.05); */
    /* padding: 20px; */
    /* border-left: 1px solid #e2e2f9; */
    border: 1px solid #e2e2f9;
    border-bottom-left-radius: 8px;
    height: 400px;
    overflow: auto;
}
.gift-code {
    background-color: #f3f3ff;
    padding: 15px;
    margin-bottom: 2px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: center;
    
}

.gift-code:hover {
    background-color: #d2d2ff;
}

.gift-code-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary-purple);
}

/* Hero Banner */
.hero-banner {
    flex: 1;
    /* background: linear-gradient(135deg, var(--primary-purple), var(--accent-green)); */
    overflow: hidden;
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    /* box-shadow: 0 5px 15px rgba(0,0,0,0.1); */
}

.hero-content {
    z-index: 2;
    position: relative;
}



.main-login{
    display: flex;
    gap: 10px;
    width: 500px;
    align-items: center;
    color: var(--primary-purple);
}
.login-pic{
    border-radius: 50px;
    overflow: hidden;
    border: 2px solid #ccc;
    height: 50px;
    width: 50px;
    text-align: center;
}
.shop-cart{
    position: relative;
}
.shop-cart .fa-cart-shopping{
    color: var(--accent-green);
}
.shop-nums{
    position: absolute;
    top: 0;
    background: var(--primary-purple);
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 50px;
    font-size: 12px;
    color: var(--text-light);
}


.shop-section{
    padding: 100px 0px;
}
#searchForm{
    display: flex;
    justify-content: center;
    gap: 20px;
}
#searchForm input{
    border-radius: 50px;
    border: 2px solid var(--primary-purple);
    width: 400px;
}
#searchForm .btn{
    background-color: var(--primary-purple);
    padding: 10px 30px;
    font-size: 1.4rem;
    font-weight: unset;
}




.floor {
    padding-bottom: 100px;
}

.floor-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.floor-title h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-purple);
}
.more-link {
    color: var(--primary-purple);
    text-decoration: none;
   
}

.goods-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.left-column {
    flex: 1;
    min-width: 300px;
}

.hero-poster {
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 415px;
    overflow: hidden;
}


.price {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}
.floor-top-picks{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-picks {
    background: linear-gradient(180deg, #e2e2f9, #fdf8f8);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e2f9;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-purple);
}

.top-pick-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    margin-bottom: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.top-pick-item:hover {
    transform: translateY(-3px);
    /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); */
}

.item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    text-align: center;
}
.item-image img{
    width: 60px;
}

.item-details {
    flex: 1;
}

.item-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.item-price {
    font-weight: bold;
    color: var(--accent-green);
}

.right-column {
    flex: 2;
    min-width: 300px;
}

.gift-codes {
    display: grid;
    /* grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); */
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.gift-card {
    background: linear-gradient(180deg, #e2e2f9, #fdf8f8);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.gift-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.new-badge {
    background-color: var(--primary-purple);
    color: white;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}

.gift-image {
    height: 180px;
    border-radius: 8px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.gift-image  img{max-height: 100%;}
.gift-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    padding-top: 20px;
    color: var(--primary-purple);
}

.gift-price {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-green);
    margin-bottom: 15px;
    border: 2px solid;
    border-radius: 50px;
    width: 120px;
    margin: auto;
}

.buy-button {
    background-color: var(--accent-green);
    color: white;
    border: none;
    padding: 15px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
    border-bottom-right-radius: 12px;
    border-bottom-left-radius: 12px;
    font-size: 1.3rem;
}

.buy-button:hover {
    background-color: var(--primary-purple);
}



.goodsinfo-section{
    padding: 20px 0;
}
.goodsinfo-fix{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.had-logo{
    width: 86px;
}
.had-logo img{width: 100%;}
.goodsinfo-fix #searchForm{
    flex: 2;
}

.section{
    padding: 50px 0px;
}

.ri-menu{width: auto;}
.u-bg{    background: #f8f9fe;}
.order-tit{
    display: flex;
    padding: 10px 20px;
    margin-top: 20px;
    align-items: center;
    justify-content: space-between; 
}
.order-tit span{
    font-size: 1.3rem;
}


.order-alone-li .time_or td{
    background: none;
}
.order-alone-li .conten_or td,.order-alone-li table{
    border: none;
    padding: 0;
}

.order-alone-li table{
    margin: 0;
}
.w1224{width: 1340px;}
.character-user{
    width: 1340px;
    margin: auto;
}
.wrap{
    width: auto;
}

@media (max-width: 1340px) {
    .character-user,.w1224{width:1224px;}
}
@media (max-width: 1224px) {
    .character-user,.w1224{width:1200px;}
}
@media (max-width: 1200px) {
    .character-user,.w1224{width:991px;}
    .goods-section .gift-codes {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 992px) {
    .character-user,.w1224{width:100%;}

    /* shop.html */
    .shop-section{
        padding: 50px 20px;
    }
    .goods-section{
        padding: 20px;
    }
    
    .goods-content{
        gap: 10px;
        flex-direction: column;
    }
    .goods-content .left-column{
        min-width: auto;
        display: flex;
        gap: 10px;
        justify-content: space-between;
        align-items: center;
    }
   
    .main-content {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
    
    .hero-content {
        max-width: 100%;
    }
}
@media (max-width: 768px) {
     /* shop.html */
     .hero-shop swiper-slide{
        max-height: 300px;
     }
     #searchForm{
        gap: 10px;
     }
     #searchForm .btn{
        padding: 10px 20px;
    }
    .goods-section .hero-poster{
        height:280px;
    }
    .goods-content .left-column{
        gap: 5px;
        flex-direction: column;
        align-items: normal;
    }

    .main-nav {
        flex-direction: column;
        gap: 15px;
    }
    .cart-bar {
        width: 100%;
        margin-top: 10px;
    }
    
}

@media (max-width: 480px) {
    
    .goods-section .gift-codes {
        grid-template-columns: repeat(1, 1fr);
    }
    .gift-image{
        height: 120px;
    }
}