:root {
    --primary-color: #e74c3c;
    --secondary-color: #f39c12;
    --accent-color: #e67e22;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --bg-light: #f9f9f9;
    --card-shadow: 0 10px 20px rgba(0,0,0,0.1);
    --hand-drawn-border: 2px dashed #e74c3c;
}

html, body {
    background-color: #ffffff;
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    flex: 1;
}
        
        /* 导航栏样式 */
.nav-bar {
    background-color: #ffffff;
    border-bottom: 2px solid #e74c3c;
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-right {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-item {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 22px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 8px 16px;
}

.nav-item:hover {
    color: #ba1a1a;
}

.nav-item.active {
    background-color: #ba1a1a;
    border-radius: 50px;
    display: block;
    color: white;
    line-height: 18px;
}

.nav-logo {
    height: 85px;
    border: none;
}
        
        /* 响应式导航栏 */
@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        gap: 10px;
    }

    .nav-right {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-item {
        font-size: 16px;
    }
}

.header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.header h1 {
    font-size: 3rem;
    color: var(--primary-color);
    text-shadow: 3px 3px 0 rgba(0,0,0,0.1);
    display: inline-block;
    position: relative;
}

.header h1:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 15px;
    background-repeat: no-repeat;
    background-size: contain;
}

.game-container {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
 /* 强制4列布局 */
    gap: 20px;
    margin: 0 auto;
    max-width: 1400px;
 /* 适当增加最大宽度 */
    padding: 0 20px;
 /* 添加左右内边距 */;
}
        
        /* 响应式调整 */
@media (max-width: 1200px) {
    .game-container {
        grid-template-columns: repeat(3, 1fr);
 /* 中屏幕3列 */;
    }
}

@media (max-width: 900px) {
    .game-container {
        grid-template-columns: repeat(2, 1fr);
 /* 小屏幕2列 */;
    }
}

@media (max-width: 600px) {
    .game-container {
        grid-template-columns: 1fr;
 /* 超小屏幕1列 */;
    }
}

.game-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
    position: relative;
    border: var(--hand-drawn-border);
}

.game-card:hover {
    transform: translateY(-10px);
}

.game-image {
    height: 180px;
    width: 100%;
    object-fit: cover;
    border-bottom: var(--hand-drawn-border);
}

.game-content {
    padding: 20px;
}

.title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.game-title {
    font-size: 1.5rem;
    margin: 0;
    color: var(--primary-color);
    font-weight: bold;
    flex: 1;
}

.record-link {
    color: var(--secondary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    padding: 5px 10px;
    border: 1px solid var(--secondary-color);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.record-link:hover {
    background-color: var(--secondary-color);
    color: white;
}

.game-info {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

        /* 红包信息样式 */
.gift-info {
    margin-bottom: 8px;
}

.status-info {
    display: flex;
    justify-content: flex-start;
}

.red-packets {
    color: var(--primary-color);
    font-weight: bold;
}


        /* 状态显示样式 */
.status {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    overflow: hidden;
}

.status i {
    margin-right: 5px;
    transition: transform 0.3s ease;
}

        /* 简单的红色动态效果 */
.red-dynamic {
    animation: redPulse 2s infinite alternate;
}

.status.status-active {
    color: #ff3838;
}

.status.status-active i.fa-info-circle {
    color: #ff3838;
}

        /* 非活跃状态样式 */
.status.status-inactive {
    color: #999;
    background-color: #f5f5f5;
}

.status.status-inactive i.fa-info-circle {
    color: #999;
}

        /* 简单的脉冲动画 */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 3px 6px rgba(255, 56, 56, 0.3);
    }

    100% {
        transform: scale(1.05);
        box-shadow: 0 5px 15px rgba(255, 56, 56, 0.5);
    }
}

@keyframes redPulse {
    0% {
        color: #ff6b6b;
    }

    100% {
        color: #ff3838;
    }
}

.countdown {
    color: var(--accent-color);
    font-weight: bold;
}

.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.btn {
    padding: 10px 15px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-download {
    background-color: #3498db;
    color: white;
    flex: 1;
    margin-right: 10px;
}

.btn-grab {
    background-color: #ff3838;
 /* 修改为更鲜艳的红色 */
    color: white;
    flex: 1;
    position: relative;
    overflow: hidden;
    border: 2px solid #ff6b6b;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.1);
}

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

.btn-grab:after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255,255,255,0.1);
    transform: rotate(30deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

.hand-drawn {
    position: absolute;
    pointer-events: none;
}

.hand-drawn-1 {
    top: -10px;
    right: -10px;
    width: 80px;
    height: 80px;
    background-repeat: no-repeat;
}
        
        /* 新增游戏类型标签样式 */
.game-type-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff5722;
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn-grab-disabled {
    background-color: #cccccc;
    color: #666666;
    flex: 1;
    opacity: 0.7;
    position: relative;
    overflow: hidden;
}
        
        /* 美化剩余红包数量样式 */
.remaining-count {
        background-color: black;
    color: white;
    border-radius: 15px;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: inline-block;
    min-width: 100%;
    text-align: center;
}
        
        /* 状态样式 */
.status {
    color: var(--accent-color);
    font-weight: bold;
}

.amount-yellow {
    color: yellow;
    font-weight: bold;
}

.tc {
    background-color: #f7f7f7;
    text-align: center;
    height: 100%;
    border-radius: 0 0 10px 10px;
}

.tc h1 {
    text-align: center;
    padding: 20px 0 0px;
    color: #1e2023;
    font-size: 26px;
}

.tc span {
    color: #9a9b9c;
    padding: 0 0 10px;
    font-size: 12px;
}

.tc .xy {
    color: #FD4029;
    text-decoration: underline;
}

.tcqrcode {
    width: 230px;
    height: 250px;
    background-color: #fff;
    border-radius: 20px;
    border: 1px solid #efe6e6;
    margin: auto;
    margin-top: 10px;
}

.tcqrcode img {
    border-style: none;
    display: inline;
}

.qrcode {
    margin-top: 10px;
}

.tchr {
    border-bottom: 1px solid #eae8e8;
    margin: 30px 60px 20px 60px;
}

.shadows {
    background-color: transparent !important;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0) !important;
}

.layui-layer-title {
    border-bottom: 1px solid #f7f7f7;
    background-color: #f7f7f7;
    border-radius: 10px 10px 0 0;
}

.layui-layer {
    border-radius: 10px 10px 10px 10px;
}

.video-container {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

.footer-wrapper {
    width: 100%;
    margin-top: auto;
}

.footer {
    width: 100%;
    background: #282928;
    padding: 30px 0px;
    text-align: center;
    color: #FFFFFF;
}

.footer a {
    color: #FFFFFF;
}

.footer-colors {
    width: 100%;
    height: 5px;
    background-color: #333;
    background-position: 0 0;
    background-repeat: repeat;
    background-image: -webkit-repeating-linear-gradient(to right,#ed2184,#ed2184 50px,#e18050 50px,#e18050 100px,#a16b13 100px,#a16b13 150px,#a5a02c 150px,#a5a02c 200px,#5e812d 200px,#5e812d 250px,#1c6075 250px,#1c6075 300px,#403161 300px,#403161 350px);
    background-image: -o-repeating-linear-gradient(to right,#ed2184,#ed2184 50px,#e18050 50px,#e18050 100px,#a16b13 100px,#a16b13 150px,#a5a02c 150px,#a5a02c 200px,#5e812d 200px,#5e812d 250px,#1c6075 250px,#1c6075 300px,#403161 300px,#403161 350px);
    background-image: -moz-repeating-linear-gradient(to right,#ed2184,#ed2184 50px,#e18050 50px,#e18050 100px,#a16b13 100px,#a16b13 150px,#a5a02c 150px,#a5a02c 200px,#5e812d 200px,#5e812d 250px,#1c6075 250px,#1c6075 300px,#403161 300px,#403161 350px);
    background-image: repeating-linear-gradient(to right,#ed2184,#ed2184 50px,#e18050 50px,#e18050 100px,#a16b13 100px,#a16b13 150px,#a5a02c 150px,#a5a02c 200px,#5e812d 200px,#5e812d 250px,#1c6075 250px,#1c6075 300px,#403161 300px,#403161 350px);
    animation: animate-colors 200s infinite linear;
    animation-play-state: paused;
    margin: 0;
    padding: 0;
    display: block;
}

@media all {
    .footer-colors {
        animation-play-state: running;
    }
}

@keyframes animate-colors {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 7000px 0;
    }
}
.bangz_box {
    position: fixed;
    left: 240px;
    top: 180px;transform:
    translateY(-50%);
    z-index: 9999;
    transform:scale(0.6,0.6);
}

@keyframes softBlink {
    0%, 100% {
        color: #f71605;
        opacity: 1;
    }

    50% {
        color: #ff5722;
        opacity: 0.8;
    }
}

.jumping-text {
    color: #f71605;
    animation: softBlink 2s ease-in-out infinite;
}