* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(to bottom, #0a1a2a, #1a2a40, #0a1a2a);
    color: #e0f0ff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    transition: background 1.5s ease;
}

body.night {
    background: linear-gradient(to bottom, #050e1a, #0d1a2d, #050e1a);
}

body::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" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="%234a90e2" stroke-width="0.5" opacity="0.2"/></svg>');
    z-index: -1;
}

.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.snowflake {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
    animation: fall linear infinite;
}

@keyframes fall {
    to {
        transform: translateY(100vh);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 10px 0 20px;
    border-bottom: 1px solid rgba(74, 144, 226, 0.3);
    margin-bottom: 20px;
    position: relative;
}

h1 {
    font-size: 2.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(74, 144, 226, 0.7), 0 0 20px rgba(74, 144, 226, 0.5);
    background: linear-gradient(to right, #a8d8ff, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 15px;
}

.day-counter {
    background: rgba(0, 20, 40, 0.7);
    padding: 8px 20px;
    border-radius: 30px;
    display: inline-block;
    font-size: 1.1rem;
    border: 1px solid #4a90e2;
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.3);
    margin-bottom: 20px;
    transition: all 0.5s ease;
}

/* 顶部状态栏 */
.status-bar {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    background: rgba(5, 25, 45, 0.85);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid #2a5a8c;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 10, 30, 0.5);
    backdrop-filter: blur(5px);
}

.status-item {
    flex: 1;
    min-width: 200px;
    background: rgba(10, 30, 50, 0.6);
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #1a3a5f;
}

.status-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 1.05rem;
    color: #a8d8ff;
}

.status-bar-container {
    height: 18px;
    background: #0a1e35;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.status-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.temp .status-fill { background: linear-gradient(to right, #0044cc, #00aaff); }
.energy .status-fill { background: linear-gradient(to right, #cc9900, #ffcc00); }
.sanity .status-fill { background: linear-gradient(to right, #9900cc, #cc66ff); }
.food .status-fill { background: linear-gradient(to right, #00cc44, #66ff99); }

.status-value {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
}

.game-area {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 30px;
}

.story-section {
    flex: 2;
    min-width: 300px;
    background: rgba(10, 30, 50, 0.7);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid #2a5a8c;
    box-shadow: 0 8px 32px rgba(0, 20, 40, 0.5);
    backdrop-filter: blur(5px);
}

.story-title {
    font-size: 1.4rem;
    color: #a8d8ff;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #2a5a8c;
    display: flex;
    align-items: center;
}

.story-title i {
    margin-right: 10px;
}

.story-content {
    line-height: 1.7;
    font-size: 1.1rem;
    min-height: 200px;
    background: rgba(5, 20, 35, 0.4);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #1a3a5f;
    margin-bottom: 20px;
}

.choices-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.choice-btn {
    background: linear-gradient(to bottom, #1a4a7a, #0d2a4a);
    border: 1px solid #2a5a8c;
    color: #c0e0ff;
    padding: 15px;
    border-radius: 10px;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.choice-btn:hover {
    background: linear-gradient(to bottom, #2a5a9a, #1d3a6a);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 30, 60, 0.4);
    border-color: #3a6aac;
}

.choice-btn:active {
    transform: translateY(1px);
}

.choice-btn::before {
    content: "→";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}

.resources-section {
    flex: 1;
    min-width: 280px;
    background: rgba(10, 30, 50, 0.7);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid #2a5a8c;
    box-shadow: 0 8px 32px rgba(0, 20, 40, 0.5);
    backdrop-filter: blur(5px);
}

.inventory {
    margin-bottom: 25px;
}

.inventory-title {
    font-size: 1.4rem;
    color: #a8d8ff;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #2a5a8c;
    display: flex;
    align-items: center;
}

.inventory-title i {
    margin-right: 10px;
}

.inventory-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.item {
    background: rgba(5, 20, 35, 0.6);
    border: 1px solid #2a5a8c;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    min-width: 120px;
    transition: all 0.3s ease;
}

.item i {
    margin-right: 8px;
    color: #a8d8ff;
}

.item.increase {
    animation: increaseItem 1s ease;
}

.item.decrease {
    animation: decreaseItem 1s ease;
}

@keyframes increaseItem {
    0% { transform: scale(1); background: rgba(5, 20, 35, 0.6); }
    50% { transform: scale(1.1); background: rgba(20, 80, 40, 0.8); }
    100% { transform: scale(1); background: rgba(5, 20, 35, 0.6); }
}

@keyframes decreaseItem {
    0% { transform: scale(1); background: rgba(5, 20, 35, 0.6); }
    50% { transform: scale(0.9); background: rgba(80, 20, 20, 0.8); }
    100% { transform: scale(1); background: rgba(5, 20, 35, 0.6); }
}

.game-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.control-btn {
    background: rgba(10, 40, 70, 0.8);
    border: 1px solid #3a6aac;
    color: #c0e0ff;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-btn:hover {
    background: rgba(20, 60, 100, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 30, 60, 0.3);
}

footer {
    text-align: center;
    padding: 30px 0 20px;
    color: #7aa7d9;
    font-size: 0.9rem;
    border-top: 1px solid rgba(74, 144, 226, 0.2);
    margin-top: 20px;
}

@media (max-width: 768px) {
    .game-area {
        flex-direction: column;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    .choices-container {
        grid-template-columns: 1fr;
    }
    
    .status-bar {
        flex-direction: column;
    }
}

.time-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 20, 40, 0.8);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 1rem;
    border: 1px solid #4a90e2;
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.5s ease;
}

.mountain-silhouette {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V120H1200V0C981.2,198.5 793.8,132.7 600,120C406.2,107.3 218.8,198.5 0,0Z" fill="%230d2a4a"/></svg>');
    background-size: cover;
    z-index: -1;
}

.cabin-icon {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    color: #8b5a2b;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 2;
    transition: all 0.5s ease;
}

.night .cabin-icon {
    color: #6b4521;
    text-shadow: 0 0 10px rgba(200, 200, 255, 0.2);
}

.blinking {
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.status-change {
    position: absolute;
    font-weight: bold;
    font-size: 1.2rem;
    z-index: 10;
    animation: fadeUp 1.5s ease-out forwards;
}

@keyframes fadeUp {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-30px); }
}

.positive { color: #66ff99; }
.negative { color: #ff6666; }

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    transition: opacity 2s ease;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 4s infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

.night .stars {
    opacity: 1;
}

.progress-container {
    width: 100%;
    height: 8px;
    background: rgba(10, 30, 50, 0.5);
    border-radius: 4px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, #4a90e2, #00aaff);
    border-radius: 4px;
    width: 0%;
    transition: width 0.5s ease;
}

.day-phase {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 0.9rem;
    color: #a8d8ff;
}

.day-phase span.active {
    color: #66ff99;
    font-weight: bold;
} 