/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    background-attachment: fixed;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 主内容区域自动扩展 */
.section {
    flex: 1 0 auto;
}

/* 导航栏样式 */
.navbar {
    background-color: rgba(26, 26, 46, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar > .container {
    max-width: 1200px;
    margin: 0 auto;
}

.navbar-item img {
    max-height: 3rem;
}

.navbar-item, .navbar-link {
    color: #fff !important;
    transition: color 0.3s;
}

.navbar-item:hover, .navbar-link:hover {
    color: #ffd700 !important;
    background-color: rgba(255, 215, 0, 0.1) !important;
}

/* 轮播图样式 */
.carousel-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    margin-bottom: 3rem;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-content {
    position: absolute;
    bottom: 50px;
    left: 50px;
    z-index: 10;
}

.carousel-content h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 1rem;
}

.carousel-content p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s;
    z-index: 10;
}

.carousel-arrow:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.carousel-arrow.left {
    left: 20px;
}

.carousel-arrow.right {
    right: 20px;
}

/* 游戏卡片样式 */
.game-card {
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 432 / 292;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.game-card .game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Coming Soon 遮罩 */
.coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    backdrop-filter: blur(3px);
}

.coming-soon-text {
    font-size: 3rem;
    font-weight: bold;
    color: #ffd700;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8),
                 0 0 40px rgba(255, 215, 0, 0.6),
                 2px 2px 8px rgba(0, 0, 0, 0.9);
    letter-spacing: 0.2rem;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.8),
                     0 0 40px rgba(255, 215, 0, 0.6),
                     2px 2px 8px rgba(0, 0, 0, 0.9);
    }
    to {
        text-shadow: 0 0 30px rgba(255, 215, 0, 1),
                     0 0 60px rgba(255, 215, 0, 0.8),
                     2px 2px 8px rgba(0, 0, 0, 0.9);
    }
}

/* 下载按钮容器 */
.game-buttons {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 26%; /* 相对高度，自适应卡片大小 */
    min-height: 30px;
    /*background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);*/
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2%;
}

.btn-download {
    cursor: pointer;
    transition: transform 0.3s;
    text-decoration: none;
    flex-shrink: 0;
}

.btn-download:hover {
    transform: scale(1.1);
}

.btn-download img {
    /*width: 50px;*/
    height: 50px;
    display: block;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.8));
}

/* 响应式按钮大小 */
@media screen and (max-width: 1200px) {
    .btn-download img {
        /*width: 45px;*/
        height: 45px;
    }

    .coming-soon-text {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 768px) {
    .btn-download img {
        /*width: 40px;*/
        height: 35px;
    }

    .game-buttons {
        gap: 3%;
    }

    .coming-soon-text {
        font-size: 2rem;
        letter-spacing: 0.1rem;
    }
}

/* 商店商品卡片 - 简化设计 */
.product-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0;
    padding: 0;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 2rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
}

/* 折扣百分比 - 左上角 */
.product-card .discount-percent {
    position: absolute;
    top: -10px;
    left: -10px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.5);
    z-index: 10;
}

.product-card .discount-percent .percent-number {
    font-size: 1.3rem;
    line-height: 1;
}

.product-card .discount-percent .percent-text {
    font-size: 0.7rem;
    line-height: 1;
}

/* 商品标题 - 顶部 */
.product-card .product-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    padding: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.2);
}

/* 商品图片 */
.product-card .product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
}

.product-card .product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* 购买按钮 */
.product-card .buy-button {
    width: 100%;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1a2e;
    border: none;
    padding: 1rem;
    border-radius: 0;
    font-size: 1.4rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    margin-top: auto;
}

.product-card .buy-button:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
    box-shadow: 0 -4px 15px rgba(255, 215, 0, 0.4);
}

.product-card .buy-button:active {
    transform: scale(0.98);
}

/* 按钮样式 */
.btn-primary {
    background-color: #ffd700;
    color: #1a1a2e;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #ffed4e;
    transform: scale(1.05);
}

/* 登录弹窗样式 */
.modal-background {
    background-color: rgba(0, 0, 0, 0.85);
}

.modal-card {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-card-head {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-bottom: 2px solid #ffd700;
    border-radius: 15px 15px 0 0;
}

.modal-card-title {
    color: #fff;
    font-weight: bold;
}

.modal-card-body {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 0 0 15px 15px;
}

.input, .textarea {
    background-color: rgba(15, 52, 96, 0.6);
    border: 1px solid rgba(255, 215, 0, 0.5);
    color: #fff;
    transition: all 0.3s;
}

.input:focus, .textarea:focus {
    border-color: #ffd700;
    background-color: rgba(15, 52, 96, 0.8);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* 通知样式 */
.notification.is-success {
    background-color: #48c774;
}

/* 页面容器 */
.container {
    max-width: 1200px;
}

.section {
    padding: 3rem 1.5rem;
    background-color: transparent;
}

/* 页脚样式 */
.footer {
    flex-shrink: 0;
    margin-top: auto;
}

.footer-nav a {
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #ffd700 !important;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .carousel-container {
        height: 400px;
    }

    .carousel-content h1 {
        font-size: 2rem;
    }

    .carousel-content p {
        font-size: 1rem;
    }

    .carousel-arrow {
        font-size: 1.5rem;
        padding: 0.5rem 1rem;
    }

    .footer .columns {
        flex-direction: column;
    }

    .footer .column.has-text-right {
        text-align: center !important;
        margin-top: 1rem;
    }

    /* 商品卡片响应式 */
    .product-card .discount-percent {
        width: 50px;
        height: 50px;
    }

    .product-card .discount-percent .percent-number {
        font-size: 1.1rem;
    }

    .product-card .product-title {
        font-size: 1rem;
        padding: 0.8rem;
    }

    .product-card .buy-button {
        font-size: 1.2rem;
        padding: 0.8rem;
    }

    /* 游戏卡片响应式 */
    .game-card-buttons .download-btn img {
        width: 40px;
        height: 40px;
    }

    .game-card-buttons {
        gap: 8px;
        padding: 10px;
    }
}

/* 商店商品卡片样式 */
.store-item-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.4;
    max-width: 250px;
    margin: 0 auto;
    cursor: pointer;
    transition: transform 0.3s;
}

.store-item-card:hover {
    transform: translateY(-5px);
}

/* 背景图 */
.store-item-card .card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* 商品名称 */
.store-item-card .item-name {
    position: absolute;
    top: 3.1%;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    z-index: 10;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
}

/* 折扣标签 */
.store-item-card .discount-tag {
    position: absolute;
    top: 12.5%;
    width: 40%;
    z-index: 10;
}

.store-item-card .discount-tag img {
    width: 100%;
    height: auto;
    display: block;
}

.store-item-card .discount-text {
    position: absolute;
    top: 39%;
    left: 44%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 0.8rem;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
}

/* 商品金币图片 */
.store-item-card .item-coin {
    position: absolute;
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 10;
}

.store-item-card .item-coin img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* 购买按钮 */
.store-item-card .buy-btn-wrapper {
    position: absolute;
    bottom: 5.5%;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    z-index: 10;
    cursor: pointer;
    transition: transform 0.2s;
}

.store-item-card .buy-btn-wrapper:hover {
    transform: translateX(-50%) scale(1.05);
}

.store-item-card .buy-btn-wrapper .btn-bg {
    width: 100%;
    height: auto;
    display: block;
}

.store-item-card .buy-btn-wrapper .btn-price {
    position: absolute;
    top: 49%;
    left: 49%;
    transform: translate(-50%, -50%);
    color: black;
    font-size: 1.6rem;
}

.store-item-card .goods-num {
    position: absolute;
    bottom: 35%;
    right: 24%;
    width: 55%;
    z-index: 11;
}

.store-item-card .goods-num .goods-num-text {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 1rem;
    /*font-weight: bold;*/
    text-align: center;
    white-space: nowrap;
}


.store-item-card .bonus-tag {
    position: absolute;
    bottom:19%;
    right: -1%;
    width: 72%;
    z-index: 11;
}

/* 额外奖励标签 */
.store-item-card .bonus-tag {
    position: absolute;
    bottom:20%;
    right: -1%;
    width: 72%;
    z-index: 11;
}

.store-item-card .bonus-tag img {
    width: 100%;
    height: auto;
    display: block;
}

.store-item-card .bonus-tag .bonus-text {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 1rem;
    /*font-weight: bold;*/
    text-align: center;
    white-space: nowrap;
}

.store-item-card .bonus-tag .bonus-text-1 {
    position: absolute;
    top: 54%;
    left: 54%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 0.75rem;
    /*font-weight: bold;*/
    text-align: center;
    white-space: nowrap;
}

/* 商店商品卡片响应式 */
@media screen and (max-width: 1200px) {
    .store-item-card .item-name {
        font-size: 0.7rem;
    }

    .store-item-card .discount-text {
        font-size: 0.5rem;
    }

    .store-item-card .buy-btn-wrapper .btn-price {
        font-size: 1rem;
    }

    .store-item-card .bonus-tag .bonus-text {
        font-size: 0.6rem;
    }

    .store-item-card .bonus-tag .bonus-text-1 {
        font-size: 0.4rem;
    }
}

@media screen and (max-width: 768px) {
    .store-item-card .item-name {
        font-size: 0.9rem;
    }

    .store-item-card .discount-text {
        font-size: 0.6rem;
    }

    .store-item-card .btn-price {
        font-size: 1rem;
    }

    .store-item-card .bonus-text {
        font-size: 0.6rem;
    }
}

