* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'SimHei', sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 滚动字幕样式 */
.marquee-container {
    width: 100%;
    height: 40px;
    overflow: hidden;
    background: linear-gradient(90deg, #1a0000 0%, #0a0a0a 50%, #1a0000 100%);
    border: 1px solid #330000;
    position: relative;
}

.marquee-container.top {
    border-bottom: 2px solid #660000;
}

.marquee-container.bottom {
    border-top: 2px solid #660000;
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: scroll-left 30s linear infinite;
    font-size: 14px;
    color: #ff3333;
    line-height: 40px;
    text-shadow: 0 0 10px rgba(255, 51, 51, 0.5);
}

.marquee-content.reverse {
    animation: scroll-right 30s linear infinite;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

.marquee-content span {
    padding: 0 50px;
}

/* 游戏容器 */
.game-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

/* 主菜单 */
.main-menu {
    text-align: center;
    animation: fadeIn 1s ease-in;
}

.title {
    font-size: 72px;
    font-weight: bold;
    color: #ff0000;
    text-shadow: 
        0 0 20px rgba(255, 0, 0, 0.8),
        0 0 40px rgba(255, 0, 0, 0.5),
        0 0 60px rgba(255, 0, 0, 0.3);
    margin-bottom: 60px;
    letter-spacing: 8px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        text-shadow: 
            0 0 20px rgba(255, 0, 0, 0.8),
            0 0 40px rgba(255, 0, 0, 0.5),
            0 0 60px rgba(255, 0, 0, 0.3);
    }
    50% {
        text-shadow: 
            0 0 30px rgba(255, 0, 0, 1),
            0 0 60px rgba(255, 0, 0, 0.7),
            0 0 90px rgba(255, 0, 0, 0.5);
    }
}

.start-button {
    font-size: 20px;
    padding: 15px 50px;
    background: linear-gradient(135deg, #1a0000 0%, #330000 100%);
    color: #ff3333;
    border: 2px solid #660000;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

.start-button:hover {
    background: linear-gradient(135deg, #330000 0%, #660000 100%);
    color: #ff6666;
    border-color: #ff0000;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.6);
    transform: scale(1.05);
}

/* 游戏内容 */
.game-content {
    width: 100%;
    animation: fadeIn 0.5s ease-in;
}

.story-text {
    background: linear-gradient(135deg, #1a0000 0%, #0d0d0d 100%);
    border: 2px solid #660000;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    font-size: 18px;
    line-height: 1.8;
    color: #e0e0e0;
    box-shadow: 
        0 0 20px rgba(255, 0, 0, 0.2),
        inset 0 0 30px rgba(0, 0, 0, 0.5);
    min-height: 200px;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.choices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.choice-button {
    background: linear-gradient(135deg, #1a0000 0%, #0d0d0d 100%);
    border: 2px solid #660000;
    border-radius: 12px;
    padding: 20px;
    color: #ff3333;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

.choice-button:nth-child(1) { animation-delay: 0.1s; }
.choice-button:nth-child(2) { animation-delay: 0.2s; }
.choice-button:nth-child(3) { animation-delay: 0.3s; }
.choice-button:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.choice-button:hover {
    background: linear-gradient(135deg, #330000 0%, #1a1a1a 100%);
    border-color: #ff0000;
    color: #ff6666;
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.4);
    transform: translateY(-3px);
}

.choice-button:active {
    transform: translateY(-1px);
}

.hidden {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .title {
        font-size: 48px;
        letter-spacing: 4px;
    }
    
    .story-text {
        font-size: 16px;
        padding: 20px;
    }
    
    .choices {
        grid-template-columns: 1fr;
    }
    
    .marquee-content {
        font-size: 12px;
    }
}
