
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    padding-top: 70px;
}


.top-nav {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    color: white;
    font-size: 20px;
    font-weight: bold;
    white-space: nowrap;
    margin-right: 30px;
    margin-left: -200px;
}

.nav-menu {
    display: flex;
    gap: 80px;
    list-style: none;
    flex: 1;
    justify-content: center;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.nav-menu a:hover {
    opacity: 0.8;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    font-size: 13px;
    white-space: nowrap;
}

.user-center-btn {
    background: white;
    color: #667eea;
    padding: 6px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: transform 0.3s;
}

.user-center-btn:hover {
    transform: translateY(-2px);
}


.container {
    max-width: 1600px;
    margin: 30px auto;
    padding: 0 20px;
}


.slider-section {
    margin-bottom: 30px;
    width: 100%;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 500px;
    background: #000;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slider-slide.active {
    opacity: 1;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.slider-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 30px 20px 20px;
    font-size: 18px;
    font-weight: 600;
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(0,0,0,0.8);
}

.slider-prev {
    left: 20px;
    border-radius: 0 8px 8px 0;
}

.slider-next {
    right: 20px;
    border-radius: 8px 0 0 8px;
}

.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-indicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.slider-indicators .indicator:hover {
    background: rgba(255,255,255,0.8);
}

.slider-indicators .indicator.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}


.announcement-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.announcement-modal.show {
    display: flex;
}

.announcement-modal-content {
    background: white;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.announcement-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.announcement-modal-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.announcement-close-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.announcement-close-btn:hover {
    background: #f5f5f5;
    color: #333;
}

.announcement-modal-body {
    padding: 25px;
}

.announcement-modal-item {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    background: #f8f9ff;
}

.announcement-modal-item:last-child {
    margin-bottom: 0;
}

.announcement-modal-item.type-warning {
    border-left-color: #FF9800;
    background: #fff8f0;
}

.announcement-modal-item.type-success {
    border-left-color: #4CAF50;
    background: #f0fff0;
}

.announcement-modal-item.type-error {
    border-left-color: #f44336;
    background: #fff0f0;
}

.announcement-modal-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.announcement-modal-item-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.announcement-badge-top {
    background: #ff4444;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
}

.announcement-modal-item-time {
    font-size: 12px;
    color: #999;
}

.announcement-modal-item-content {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}


.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.game-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.game-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.game-card-body {
    padding: 15px;
}

.game-card-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.game-card-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.card-btn {
    padding: 8px 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    color: white;
    transition: opacity 0.3s;
}

.card-btn:hover {
    opacity: 0.8;
}

.card-btn-primary {
    background: #2196F3;
}

.card-btn-success {
    background: #4CAF50;
}

.card-btn-warning {
    background: #FF9800;
}

.card-btn-info {
    background: #00BCD4;
}

.card-btn-purple {
    background: #ff0000;
}

.game-card-info {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
}

.game-card-info p {
    margin-bottom: 5px;
}


.footer {
    background: #333;
    color: white;
    padding: 30px 20px;
    margin-top: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    max-height: 80px;
    max-width: 200px;
    display: block;
    margin: 0 auto;
}

.footer-content {
    text-align: center;
}

.footer a {
    color: #667eea;
    text-decoration: none;
    margin: 0 10px;
}

.footer a:hover {
    text-decoration: underline;
}


.couplet-ad {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    cursor: pointer;
    transition: all 0.3s;
}

.couplet-ad:hover {
    transform: translateY(-50%) scale(1.05);
}

.couplet-ad-left {
    left: 0;
}

.couplet-ad-right {
    right: 0;
}

.couplet-ad img {
    display: block;
    width: 220px;
    height: auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.couplet-ad-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    z-index: 1000;
}

.couplet-ad-close:hover {
    background: #cc0000;
}


@media (max-width: 1400px) {
    .couplet-ad {
        display: none;
    }
}


.feature-banners-section {
    margin-bottom: 30px;
}

.feature-banners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}


.banner-card {
    background: white;
    border-radius: 15px;
    padding: 0px;
    position: relative;
    overflow: hidden;
    cursor: default;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 180px;
}

.banner-card.pink .banner-content,
.banner-card.orange .banner-content,
.banner-card.red .banner-content {
    border-radius: 8px;
    overflow: hidden;
}

.banner-card.pink .banner-content {
    background: url('/static/04.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.banner-card.orange .banner-content {
    background: url('/static/04.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.banner-card.red .banner-content {
    background: url('/static/04.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.banner-content {
    position: relative;
    z-index: 1;
    color: white;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.banner-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: none;
}

.banner-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.banner-subtitle {
    font-size: 13px;
    color: rgba(255,255,255,0.95);
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.banner-btn {
    background: rgba(255,255,255,0.3);
    color: white;
    border: 2px solid rgba(255,255,255,0.8);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    align-self: flex-start;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.banner-btn:hover {
    background: #f59e0b;
    border-color: #f59e0b;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.5);
}


.user-info-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 180px;
    color: white;
}

.user-info-header {
    text-align: center;
    margin-bottom: 15px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.user-id-display {
    font-size: 28px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.user-level-display {
    font-size: 13px;
    color: white;
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 12px;
    display: inline-block;
}

.user-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 0;
    width: 100%;
}

.user-stat-item {
    background: rgba(255,255,255,0.15);
    padding: 10px 8px;
    border-radius: 8px;
    text-align: center;
}

.user-stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 5px;
}

.user-stat-value {
    font-size: 18px;
    font-weight: bold;
    color: white;
}

.login-prompt-card {
    text-align: center;
    padding: 0;
    width: 100%;
}

.login-prompt-icon {
    font-size: 50px;
    margin-bottom: 10px;
}

.login-prompt-text {
    font-size: 14px;
    color: white;
    margin-bottom: 15px;
}

.login-btn {
    background: rgba(255,255,255,0.3);
    color: white;
    border: 2px solid rgba(255,255,255,0.8);
    padding: 10px 30px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.login-btn:hover {
    background: rgba(255,255,255,0.5);
    border-color: white;
    transform: scale(1.05);
}


@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    
    .top-nav {
        padding: 10px 0;
    }

    .nav-container {
        flex-wrap: wrap;
        padding: 0 15px;
    }

    .site-title {
        font-size: 16px;
        margin-left: 0;
        margin-right: 15px;
    }

    .nav-menu {
        display: none;
    }

    .user-info {
        font-size: 12px;
        gap: 10px;
    }

    .user-center-btn {
        padding: 5px 12px;
        font-size: 12px;
    }

    
    .slider-container {
        height: 250px;
    }

    .slider-caption {
        font-size: 14px;
        padding: 20px 15px 15px;
    }

    .slider-prev,
    .slider-next {
        padding: 10px 15px;
        font-size: 18px;
    }

    .slider-prev {
        left: 10px;
    }

    .slider-next {
        right: 10px;
    }

   
    .container {
        margin: 20px auto;
        padding: 0 15px;
    }

   
    .feature-banners-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
        display: grid !important;
    }

    .banner-card {
        height: auto !important;
        min-height: 120px;
        width: 100% !important;
    }

    .banner-content {
        padding: 15px;
    }

    
    .user-info-card {
        width: 100% !important;
        height: auto !important;
        min-height: 150px;
    }

    .banner-title {
        font-size: 20px;
    }

    .banner-subtitle {
        font-size: 12px;
    }

    .banner-btn {
        padding: 6px 16px;
        font-size: 12px;
    }

    
    .user-info-card {
        height: 150px;
        padding: 15px;
    }

    .user-id-display {
        font-size: 24px;
    }

    .user-level-display {
        font-size: 12px;
    }

    .user-stat-item {
        padding: 8px 6px;
    }

    .user-stat-label {
        font-size: 11px;
    }

    .user-stat-value {
        font-size: 16px;
    }

    .login-prompt-icon {
        font-size: 40px;
    }

    .login-prompt-text {
        font-size: 13px;
    }

    .login-btn {
        padding: 8px 24px;
        font-size: 13px;
    }

   
    .games-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .game-cover {
        height: 180px;
    }

    .game-card-title {
        font-size: 15px;
    }

    .game-card-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .card-btn {
        padding: 6px 4px;
        font-size: 11px;
    }

    .game-card-info {
        font-size: 12px;
    }

    
    .footer {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
        margin-top: 30px;
    }

    .footer-logo {
        margin: 0 auto 15px;
    }

    .footer-content p {
        font-size: 13px;
    }

    .footer a {
        margin: 0 5px;
        font-size: 13px;
    }
}


.game-tags {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: row-reverse;
    gap: 5px;
    z-index: 10;
}

.game-tag {
    background: red;
    color: yellow;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}
