@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
}

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

.game-header {
    text-align: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.game-header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.language-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans SC', sans-serif;
    backdrop-filter: blur(5px);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.lang-btn.active {
    background: linear-gradient(145deg, #4a90e2, #357abd);
    border-color: #fff;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}

.stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
}

.stat {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid #4a90e2;
    min-width: 120px;
}

.stat-label {
    font-weight: 500;
    color: #a8d8ff;
}

#health, #coins, #items {
    font-weight: 700;
    color: #fff;
}

.game-main {
    flex: 1;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.story-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.story-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #fff;
}

.story-text p {
    margin-bottom: 15px;
}

.choices-container {
    margin-top: 30px;
}

.choices {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.choice-btn {
    background: linear-gradient(145deg, #4a90e2, #357abd);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-family: 'Noto Sans SC', sans-serif;
}

.choice-btn:hover {
    background: linear-gradient(145deg, #357abd, #2a5d94);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
    border-color: #fff;
}

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

.inventory {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: fit-content;
}

.inventory h3 {
    color: #a8d8ff;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.inventory-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.inventory-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 8px;
    border-left: 3px solid #4a90e2;
    font-size: 0.9rem;
}

.game-footer {
    text-align: center;
    margin-top: 20px;
}

.game-footer button {
    background: linear-gradient(145deg, #ff6b6b, #ee5a52);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    margin: 0 10px;
    transition: all 0.3s ease;
    font-family: 'Noto Sans SC', sans-serif;
}

.game-footer button:hover {
    background: linear-gradient(145deg, #ee5a52, #dc4c3f);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.typing-effect {
    border-right: 2px solid #fff;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { border-color: transparent; }
    51%, 100% { border-color: #fff; }
}

.fade-in {
    animation: fadeIn 0.8s ease-in;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .game-main {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stats {
        flex-direction: column;
        align-items: center;
    }
    
    .game-header h1 {
        font-size: 2rem;
    }
    
    .story-container {
        padding: 20px;
    }
    
    .choice-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .game-container {
        padding: 15px;
    }
    
    .game-header h1 {
        font-size: 1.8rem;
    }
    
    .story-text {
        font-size: 1rem;
    }
} 