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

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
}

.header-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.main-title i {
    color: #e74c3c;
    font-size: 2.2rem;
}

.subtitle {
    font-size: 1.3rem;
    color: #7f8c8d;
    font-weight: 400;
    margin-bottom: 20px;
}

.decoration-line {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #e74c3c, #f39c12);
    margin: 0 auto;
    border-radius: 2px;
}

/* 活动时间信息样式 */
.activity-schedule {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    min-width: 280px;
    position: relative;
    overflow: hidden;
}

.schedule-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 15px 15px 0 0;
}

.schedule-item.offline::before {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.schedule-item.online::before {
    background: linear-gradient(90deg, #3498db, #2980b9);
}

.schedule-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.schedule-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.schedule-item.offline .schedule-icon {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.schedule-item.online .schedule-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.schedule-content {
    flex: 1;
}

.schedule-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.schedule-time {
    font-size: 1rem;
    font-weight: 500;
    color: #e74c3c;
    margin-bottom: 4px;
    line-height: 1.4;
}

.schedule-location {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 400;
    line-height: 1.3;
}

.schedule-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 10px;
}

.divider-line {
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #e74c3c, #f39c12);
    border-radius: 1px;
}

.divider-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: #e74c3c;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
}

/* 游戏区域样式 */
.games-section {
    flex: 1;
    margin-bottom: 40px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

/* 游戏卡片样式 */
.game-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e74c3c, #f39c12, #2ecc71, #3498db);
    border-radius: 20px 20px 0 0;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.game-card[data-game="huarongdao"]::before {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.game-card[data-game="duiduipeng"]::before {
    background: linear-gradient(90deg, #f39c12, #e67e22);
}

.game-card[data-game="colortrap"]::before {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.game-card[data-game="digitalbomb"]::before {
    background: linear-gradient(90deg, #3498db, #2980b9);
}

.game-card[data-game="leaderboard"]::before {
    background: linear-gradient(90deg, #f39c12, #e67e22, #d35400);
}

/* 游戏图标 */
.game-icon {
    text-align: center;
    margin-bottom: 20px;
}

.game-icon i {
    font-size: 3rem;
    color: #34495e;
    transition: all 0.3s ease;
}

.game-card:hover .game-icon i {
    transform: scale(1.1) rotate(5deg);
}

/* 游戏标题 */
.game-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 游戏描述 */
.game-description {
    font-size: 1rem;
    color: #7f8c8d;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* 排行榜卡片特殊样式 */
.leaderboard-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.95));
    border: 2px solid rgba(243, 156, 18, 0.2);
}

.leaderboard-card::after {
    content: '🏆';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    opacity: 0.3;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

.leaderboard-card .game-icon i {
    color: #f39c12;
    text-shadow: 0 2px 4px rgba(243, 156, 18, 0.3);
}

.leaderboard-card .game-title {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.leaderboard-card .game-description {
    color: #5a6c7d;
    font-weight: 500;
    font-size: 1.05rem;
}

.leaderboard-card .rule-item {
    color: #4a5568;
    font-weight: 500;
}

.leaderboard-card .rule-item i {
    color: #f39c12;
    font-size: 1.1rem;
}

/* 游戏规则 */
.game-rules {
    margin-bottom: 25px;
}

.rule-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #5a6c7d;
    font-weight: 500;
    line-height: 1.4;
}

.rule-item i {
    color: #e74c3c;
    width: 16px;
    text-align: center;
}

/* 按钮样式 */
.game-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 120px;
    justify-content: center;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    background: linear-gradient(135deg, #c0392b, #a93226);
}

.btn-secondary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    background: linear-gradient(135deg, #2980b9, #1f618d);
}

.btn-special {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-special:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
    background: linear-gradient(135deg, #e67e22, #d35400);
}

.btn-special::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-special:hover::before {
    left: 100%;
}

/* 底部样式 */
.footer {
    margin-top: auto;
    text-align: center;
}

.footer-content {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-text {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-text i {
    color: #f39c12;
}

.footer-decoration {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.decoration-dot {
    width: 8px;
    height: 8px;
    background: linear-gradient(45deg, #e74c3c, #f39c12);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.decoration-dot:nth-child(2) {
    animation-delay: 0.5s;
}

.decoration-dot:nth-child(3) {
    animation-delay: 1s;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .main-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .main-title i {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .header-content {
        padding: 30px 20px;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .game-card {
        padding: 25px 20px;
    }
    
    .game-title {
        font-size: 1.6rem;
    }
    
    .game-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 200px;
    }
    
    /* 排行榜卡片移动端优化 */
    .leaderboard-card::after {
        font-size: 1.2rem;
        top: 12px;
        right: 12px;
    }
    
    .leaderboard-card .game-title {
        font-size: 1.5rem;
    }
    
    .leaderboard-card .game-description {
        font-size: 1rem;
    }
    
    /* 活动时间信息移动端优化 */
    .activity-schedule {
        flex-direction: column;
        gap: 15px;
        margin-top: 25px;
    }
    
    .schedule-item {
        min-width: auto;
        width: 100%;
        max-width: 400px;
        padding: 15px;
    }
    
    .schedule-divider {
        margin: 5px 0;
    }
    
    .schedule-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .schedule-title {
        font-size: 1.1rem;
    }
    
    .schedule-time {
        font-size: 0.95rem;
    }
    
    .schedule-location {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.6rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .game-card {
        padding: 20px 15px;
    }
    
    .game-title {
        font-size: 1.4rem;
    }
    
    .game-icon i {
        font-size: 2.5rem;
    }
    
    /* 排行榜卡片小屏幕优化 */
    .leaderboard-card::after {
        font-size: 1rem;
        top: 10px;
        right: 10px;
    }
    
    .leaderboard-card .game-title {
        font-size: 1.3rem;
    }
    
    .leaderboard-card .game-description {
        font-size: 0.95rem;
    }
    
    .leaderboard-card .rule-item {
        font-size: 0.85rem;
    }
    
    /* 活动时间信息小屏幕优化 */
    .activity-schedule {
        margin-top: 20px;
        gap: 12px;
    }
    
    .schedule-item {
        padding: 12px;
        gap: 12px;
    }
    
    .schedule-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .schedule-title {
        font-size: 1rem;
    }
    
    .schedule-time {
        font-size: 0.9rem;
    }
    
    .schedule-location {
        font-size: 0.8rem;
    }
    
    .divider-text {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-card {
    animation: fadeInUp 0.6s ease-out;
}

.game-card:nth-child(1) { animation-delay: 0.1s; }
.game-card:nth-child(2) { animation-delay: 0.2s; }
.game-card:nth-child(3) { animation-delay: 0.3s; }
.game-card:nth-child(4) { animation-delay: 0.4s; }

/* 特殊效果 */
.game-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.game-card:hover::after {
    left: 100%;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px 20px 0 0;
}

.modal-header h2 {
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header h2 i {
    font-size: 1.6rem;
}

.close-button {
    color: white;
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.close-button:hover {
    transform: rotate(90deg);
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.modal-title-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e74c3c;
    text-align: center;
    margin-bottom: 15px;
}

.modal-subtitle {
    font-size: 1.1rem;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 500;
}

.test-accounts-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
    border: 2px solid #e9ecef;
}

.test-accounts-container::-webkit-scrollbar {
    width: 8px;
}

.test-accounts-container::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 4px;
}

.test-accounts-container::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.test-accounts-container::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

.account-item {
    display: inline-block;
    padding: 8px 12px;
    margin: 5px;
    background: white;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #495057;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.account-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.modal-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    display: flex;
    justify-content: center;
    border-radius: 0 0 20px 20px;
}

.modal-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.modal-btn:active {
    transform: translateY(0);
}

/* 响应式设计 - 弹窗 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h2 {
        font-size: 1.4rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-title-text {
        font-size: 1.3rem;
    }
    
    .modal-subtitle {
        font-size: 1rem;
    }
    
    .test-accounts-container {
        padding: 15px;
        max-height: 300px;
    }
    
    .account-item {
        font-size: 0.85rem;
        padding: 6px 10px;
        margin: 3px;
    }
}

@media (max-width: 480px) {
    .modal-header h2 {
        font-size: 1.2rem;
        gap: 8px;
    }
    
    .close-button {
        font-size: 2rem;
        width: 35px;
        height: 35px;
    }
    
    .modal-title-text {
        font-size: 1.2rem;
    }
    
    .modal-subtitle {
        font-size: 0.95rem;
    }
    
    .test-accounts-container {
        padding: 12px;
        max-height: 250px;
    }
    
    .account-item {
        font-size: 0.8rem;
        padding: 5px 8px;
        margin: 2px;
    }
    
    .modal-btn {
        padding: 10px 30px;
        font-size: 1rem;
    }
}
