/* 端午节祝福页面样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a90e2;
    --secondary-color: #7b68ee;
    --accent-color: #ff6b6b;
    --text-color: #333;
    --bg-color: #f5f7fa;
    --card-bg: #ffffff;
}

[data-theme="dark"] {
    --primary-color: #6ab7ff;
    --secondary-color: #9c88ff;
    --accent-color: #ff8a80;
    --text-color: #e0e0e0;
    --bg-color: #1a1a2e;
    --card-bg: #16213e;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--text-color);
    transition: all 0.3s ease;
}

[data-theme="dark"] body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e0e0e0;
}

[data-theme="dark"] .card {
    background: rgba(22, 33, 62, 0.8);
    border: 1px solid rgba(224, 224, 224, 0.1);
}

[data-theme="dark"] .wish-item {
    background: rgba(22, 33, 62, 0.8);
    border: 1px solid rgba(224, 224, 224, 0.1);
}

[data-theme="dark"] .game-card {
    background: rgba(22, 33, 62, 0.8);
    border: 1px solid rgba(224, 224, 224, 0.1);
}

[data-theme="dark"] .knowledge-card {
    background: rgba(22, 33, 62, 0.8);
    border: 1px solid rgba(224, 224, 224, 0.1);
}

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

.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 顶部控制按钮 */
.top-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    cursor: pointer;
    font-size: 18px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* 导航标签 */
.nav-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 5px;
    backdrop-filter: blur(10px);
}

.nav-tab {
    background: transparent;
    border: none;
    padding: 15px 30px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
}

.nav-tab.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

.nav-tab:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* 标签内容 */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 卡片样式 */
.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

/* 许愿表单 */
.wish-form {
    margin-bottom: 30px;
}

.wish-input {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.wish-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.wish-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    color: white;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-danger {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
}

/* 许愿卡片 */
.wish-item {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
    border: 1px solid rgba(255,255,255,0.2);
}

.wish-content {
    color: white;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.wish-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.delete-wish {
    background: #ff6b6b;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    color: white;
    cursor: pointer;
    font-size: 12px;
}

/* 游戏区域 */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.game-card {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
}

.game-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.2);
}

.game-card h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.game-card p {
    margin-bottom: 15px;
    opacity: 0.8;
}

/* 知识区域 */
.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.knowledge-card {
    background: var(--card-bg);
    border: 2px solid var(--accent-color);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.knowledge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
    border-color: var(--primary-color);
}

/* 工具网格样式 */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.tool-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    border: none;
}

.tool-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 25px rgba(102, 126, 234, 0.4);
}

.tool-card i {
    font-size: 2.5em;
    margin-bottom: 15px;
    display: block;
}

.tool-card h3 {
    margin: 10px 0;
    font-size: 1.2em;
}

.tool-card p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9em;
}

/* 创意网格样式 */
.creative-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.creative-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
    border: none;
}

.creative-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 25px rgba(240, 147, 251, 0.4);
}

.creative-card i {
    font-size: 2.5em;
    margin-bottom: 15px;
    display: block;
}

.creative-card h3 {
    margin: 10px 0;
    font-size: 1.2em;
}

.creative-card p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9em;
}

.knowledge-card h3 {
    margin-bottom: 15px;
    color: #ffd700;
    font-size: 1.3rem;
}

.knowledge-card ul {
    list-style: none;
    padding: 0;
}

.knowledge-card li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    line-height: 1.5;
}

.knowledge-card li:last-child {
    border-bottom: none;
}

/* 游戏模态框 */
.game-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.game-modal.active {
    display: flex;
}

.game-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close-game {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.game-board {
    display: grid;
    gap: 10px;
    margin: 20px 0;
    justify-content: center;
}

.memory-board {
    grid-template-columns: repeat(4, 80px);
}

.puzzle-board {
    grid-template-columns: repeat(3, 100px);
}

.memory-card, .puzzle-piece {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 24px;
    color: white;
    transition: transform 0.3s;
    border: 2px solid transparent;
}

.memory-card:hover, .puzzle-piece:hover {
    transform: scale(1.05);
}

.memory-card.flipped {
    background: #4ecdc4;
}

.memory-card.matched {
    background: #95e1d3;
    border-color: #4ecdc4;
}

/* 问答游戏 */
.quiz-question {
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.quiz-options {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.quiz-option {
    padding: 15px;
    background: #f5f5f5;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.quiz-option:hover {
    background: #e0e0e0;
    border-color: #667eea;
}

.quiz-option.selected {
    background: #667eea;
    color: white;
    border-color: #5a6fd8;
}

.quiz-option.correct {
    background: #4caf50;
    color: white;
    border-color: #45a049;
}

.quiz-option.wrong {
    background: #f44336;
    color: white;
    border-color: #da190b;
}

/* 赛龙舟游戏 */
.race-track {
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom, #87ceeb 0%, #4682b4 100%);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    margin: 20px 0;
}

.boat {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    transition: left 0.3s ease;
}

.race-controls {
    text-align: center;
    margin-top: 20px;
}

.paddle-btn {
    background: #ff6b6b;
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    color: white;
    font-size: 24px;
    cursor: pointer;
    margin: 0 10px;
    transition: all 0.3s;
}

.paddle-btn:hover {
    transform: scale(1.1);
    background: #ff5252;
}

.paddle-btn:active {
    transform: scale(0.95);
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(10px);
}

.notification.success {
    background: rgba(76, 175, 80, 0.9);
}

.notification.warning {
    background: rgba(255, 152, 0, 0.9);
}

.notification.error {
    background: rgba(244, 67, 54, 0.9);
}

.notification.info {
    background: rgba(33, 150, 243, 0.9);
}

/* 删除模态框 */
.delete-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.delete-modal.active {
    display: flex;
}

.delete-modal-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.delete-modal h3 {
    margin-bottom: 20px;
    color: #333;
}

.delete-modal input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 16px;
}

.delete-modal .btn {
    margin: 0 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .nav-tabs {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .nav-tab {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .knowledge-grid {
        grid-template-columns: 1fr;
    }
    
    .top-controls {
        top: 10px;
        right: 10px;
        gap: 5px;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .memory-board {
        grid-template-columns: repeat(4, 60px);
    }
    
    .memory-card, .puzzle-piece {
        width: 60px;
        height: 60px;
        font-size: 18px;
    }
}