* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "微软雅黑", sans-serif;
}

body {
    background: url("bg1.jpg") no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
}

.game-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
    padding: 0 5%;
}

.game-container {
    background: rgba(0, 0, 0, 0.6);
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    color: white;
    max-width: 600px;
    flex: 1;
    margin-right: 2rem;
}

.game-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.game-header p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.choices {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.choice-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.choice-btn[data-result="fail"] {
    background: #ff4444;
    color: white;
}

.choice-btn[data-result="next"] {
    background: #4CAF50;
    color: white;
}

.choice-btn:hover {
    transform: scale(1.05);
}

.result {
    font-size: 1.3rem;
    font-weight: bold;
    min-height: 2rem;
}

/* 右侧健康值面板 */
.health-panel {
    background: rgba(0, 0, 0, 0.6);
    padding: 2rem;
    border-radius: 15px;
    color: white;
    width: 250px;
    text-align: center;
}

.health-panel h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.health-bar-container {
    position: relative;
    width: 100%;
    height: 30px;
    background: #333;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.health-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff4444, #4CAF50);
    width: 35%; /* 初始70/200=35% */
    transition: width 0.5s ease;
}

.health-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    text-shadow: 0 0 5px black;
}

/* 健康值变化动画 */
.health-change {
    font-size: 1.2rem;
    font-weight: bold;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
}

.health-change.plus {
    color: #4CAF50;
    opacity: 1;
    transform: translateY(0);
}

.health-change.minus {
    color: #ff4444;
    opacity: 1;
    transform: translateY(0);
}

/* 结算页面样式 */
.end-page {
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 0 0 10px black;
    flex-direction: column;
    gap: 1rem;
}

.end-page p {
    font-size: 1.5rem;
}
.success-page {
    position: relative;
    overflow: hidden;
}
.success-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}
.end-content {
    position: relative;
    z-index: 1;
}