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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* 屏幕切换 */
.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.screen.active {
    display: flex;
    opacity: 1;
}

.container {
    text-align: center;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
}

/* 标题样式 */
.title {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.title.glow {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8),
                 0 0 40px rgba(255, 105, 180, 0.6);
}

.subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.hint {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

/* 按钮样式 */
.btn {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

/* 关卡头部 */
.level-header {
    margin-bottom: 2rem;
}

.level-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
    transition: width 0.5s ease;
}

/* 问题样式 */
.question {
    font-size: 2rem;
    color: white;
    margin-bottom: 2rem;
}

/* 选项按钮 */
.options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.option-btn {
    padding: 1.5rem;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-btn:hover {
    background: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.hint-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* 爱心容器 */
.hearts-container {
    min-height: 400px;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.heart {
    position: absolute;
    font-size: 2.5rem;
    cursor: pointer;
    transition: transform 0.2s ease;
    animation: heartFloat 3s ease-in-out infinite;
}

.heart:hover {
    transform: scale(1.3);
}

.heart.collected {
    animation: heartCollect 0.5s ease forwards;
}

@keyframes heartCollect {
    to {
        transform: scale(0);
        opacity: 0;
    }
}

@keyframes heartFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.score {
    font-size: 1.5rem;
    color: white;
    font-weight: bold;
}

/* 密码输入 */
.password-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.password-input {
    padding: 1rem 1.5rem;
    font-size: 1.2rem;
    border: 3px solid white;
    border-radius: 10px;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    width: 200px;
}

/* 表白界面 */
.confession-container {
    position: relative;
    z-index: 2;
}

.confession-title {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 2rem;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

.confession-text {
    font-size: 1.5rem;
    line-height: 2;
    color: white;
    margin-bottom: 3rem;
}

.highlight {
    font-size: 2rem;
    color: #ffe066;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 224, 102, 0.8);
}

.buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-accept {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-reject {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transition: all 0.3s ease;
}

.btn-reject:hover {
    transform: translateY(-3px) scale(1.05);
}

/* 烟花画布 */
#fireworks {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* 成功界面 */
.success-title {
    font-size: 3rem;
    color: white;
    margin-bottom: 2rem;
    animation: bounce 1s ease infinite;
}

.success-text {
    font-size: 1.5rem;
    line-height: 2;
    color: white;
}

/* 动画 */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* 响应式 */
@media (max-width: 768px) {
    .title { font-size: 2rem; }
    .question { font-size: 1.5rem; }
    .options { grid-template-columns: 1fr; }
    .confession-title { font-size: 2.5rem; }
    .confession-text { font-size: 1.2rem; }
}
