/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #e74c3c;
    --secondary: #2ecc71;
    --dark: #2c3e50;
    --light: #ecf0f1;
    --accent: #3498db;
    --gray: #7f8c8d;
    --gold: #f39c12;
}

body {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: var(--light);
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

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

header {
    text-align: center;
    padding: 30px 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><polygon points="0,0 100,0 100,100" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 100% 100%;
}

.logo {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    display: inline-block;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: default;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
}

.tagline {
    font-size: 1.2rem;
    color: var(--light);
    margin: 15px 0;
    font-style: italic;
    letter-spacing: 1px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: default;
}

.divider {
    height: 3px;
    width: 80%;
    margin: 20px auto;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
}

.contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    position: relative;
}

.contact-item:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.contact-item i {
    color: var(--secondary);
}

.contact-item .copy-notification {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.contact-item .copy-notification.show {
    opacity: 1;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    outline: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background: #27ae60;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}

.btn-gold {
    background: var(--gold);
    color: white;
}

.btn-gold:hover {
    background: #e67e22;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.4);
}

.notice {
    background: rgba(46, 204, 113, 0.2);
    padding: 12px 20px;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 600px;
    text-align: center;
    border-left: 4px solid var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.games-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.game-card {
    background: linear-gradient(145deg, #2c3e50, #1a2530);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.game-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

/* 轮播样式 */
.carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
    z-index: 1;
}

.carousel-item.active {
    opacity: 1;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    z-index: 2;
}

.carousel-control {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    z-index: 3;
}

.carousel:hover .carousel-control {
    opacity: 1;
}

.carousel-control:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 3;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 3;
}

.carousel-indicator.active {
    background-color: var(--primary);
    transform: scale(1.2);
    border-color: white;
}

.carousel-indicator:hover {
    background-color: var(--secondary);
}

.game-card:hover .carousel-item img {
    transform: none; /* 移除原来的悬停缩放效果 */
}

.game-header {
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    position: relative;
}

.game-status {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary); /* 默认绿色 */
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* 关闭状态 - 红色 */
.game-status.closed {
    background: var(--primary);
}

/* 开放状态 - 绿色 */
.game-status.open {
    background: var(--secondary);
}
.game-status.unavailable {
    background: var(--gray);
}

.game-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.game-title i {
    color: var(--gold);
}

.game-platform {
    display: inline-block;
    background: rgba(52, 152, 219, 0.2);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.game-content {
    padding: 20px;
}

.game-description {
    color: #bdc3c7;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.game-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.game-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.game-link i {
    font-size: 1.2rem;
}

.main-site {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.main-site h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--light);
}

.main-site-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.main-site-link:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.6);
}

footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    color: var(--gray);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.donation-section {
    background: rgba(0, 0, 0, 0.4);
    padding: 25px;
    border-radius: 15px;
    margin: 30px 0;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.donation-section h3 {
    color: var(--gold);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.donation-section p {
    margin-bottom: 20px;
    color: #bdc3c7;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.feature {
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.feature h3 {
    color: var(--light);
    margin-bottom: 10px;
}

.feature p {
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* 图片放大模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    top: 50%;
    transform: translateY(-50%);
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from { transform: translateY(-50%) scale(0.8); opacity: 0; }
    to { transform: translateY(-50%) scale(1); opacity: 1; }
}

.modal-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 1001;
}

.modal-close:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.modal-controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.modal-control {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 24px;
}

.modal-control:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.modal-counter {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 18px;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    width: auto;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .logo {
        font-size: 2.5rem;
    }
    
    .games-container {
        grid-template-columns: 1fr;
    }
    
    .game-links {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .carousel-control {
        opacity: 1; /* 在移动设备上始终显示控制按钮 */
    }
    
    .modal-content {
        width: 95%;
    }
    
    .modal-control {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}
/* 音乐播放器样式 - 添加到原有样式末尾 */
.music-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.player-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.player-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 7px 20px rgba(231, 76, 60, 0.5);
}

.player-container {
    background: rgba(44, 62, 80, 0.95);
    border-radius: 15px;
    padding: 20px;
    width: 300px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    display: none;
    position: absolute;
    bottom: 70px;
    right: 0;
}

.player-container.active {
    display: block;
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.player-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--light);
}

.player-close {
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.player-close:hover {
    color: var(--primary);
}

.track-info {
    text-align: center;
    margin-bottom: 15px;
}

.track-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--light);
}

.track-artist {
    font-size: 0.9rem;
    color: var(--gray);
}

.audio-player {
    width: 100%;
    margin: 15px 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 10px;
}

.audio-player audio {
    width: 100%;
    outline: none;
}

.playlist {
    margin-top: 15px;
    max-height: 150px;
    overflow-y: auto;
}

.playlist-item {
    padding: 8px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: block;
    color: var(--light);
    text-decoration: none;
    margin-bottom: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.playlist-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.playlist-item i {
    margin-right: 8px;
}
/* 紧凑按钮模块样式 */
.compact-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.compact-button {
    display: block;
    text-decoration: none;
    color: inherit;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}

.compact-button:hover {
    transform: translateY(-3px);
    background: rgba(0, 0, 0, 0.6);
    border-color: #3498db;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.compact-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.compact-button:hover::after {
    left: 100%;
}

.compact-icon {
    font-size: 1.8rem;
    margin-right: 12px;
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.game-icon {
    color: #e74c3c;
}

.learn-icon {
    color: #f39c12;
}

.compact-content {
    flex-grow: 1;
}

.compact-content h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: #ecf0f1;
}

.compact-content .hint {
    font-size: 0.85rem;
    color: #95a5a6;
    opacity: 0.8;
}

.compact-arrow {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.compact-button:hover .compact-arrow {
    transform: translateX(5px);
    color: #ecf0f1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .compact-features {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .compact-button {
        height: 70px;
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .compact-icon {
        font-size: 1.5rem;
        margin-right: 10px;
        width: 35px;
    }
    
    .compact-content h3 {
        font-size: 1rem;
    }
}

/* 涟漪动画效果 - 可选 */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}
/* 移动设备适配 */
@media (max-width: 768px) {
    .music-player {
        bottom: 10px;
        right: 10px;
    }
    
    .player-container {
        width: 280px;
        right: -20px;
    }
}