/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #4a4a4a;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* 飘浮爱心背景 */
#hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.heart {
    position: absolute;
    color: rgba(255, 182, 193, 0.6);
    animation: floatUp 6s linear infinite;
}

@keyframes floatUp {
    0% { transform: translateY(100vh) scale(0.5); opacity: 1; }
    100% { transform: translateY(-10vh) scale(1.2); opacity: 0; }
}

.container {
    width: 100%;
    max-width: 500px;
    text-align: center;
    z-index: 1;
}

.hidden {
    display: none !important;
}

/* 头部样式 */
header {
    margin-bottom: 25px;
}

.names {
    font-size: 2.2rem;
    color: #d85c5c;
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

.subtitle {
    font-size: 0.95rem;
    color: #666;
}

/* 玻璃拟态卡片 */
.card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.6);
    animation: fadeIn 0.8s ease-in-out;
}

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

.card h2 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #e65c00;
    letter-spacing: 1px;
}

/* 倒计时样式 */
#timer {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-box span {
    font-size: 1.8rem;
    font-weight: bold;
    color: #d85c5c;
}

.time-box label {
    font-size: 0.8rem;
    color: #888;
    margin-top: 4px;
}

/* 双排图片相册 */
.gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.img-wrapper {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.gallery img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery img:hover {
    transform: scale(1.08);
}

/* 答题组件样式 */
.quiz-tip { font-size: 0.85rem; color: #888; margin-bottom: 20px; }
.question { font-size: 1.1rem; font-weight: bold; color: #333; margin-bottom: 20px; line-height: 1.4; }
.options { display: flex; flex-direction: column; gap: 10px; }
.option-btn { background: #fff; border: 1px solid #ffecd2; padding: 12px 15px; border-radius: 10px; font-size: 0.95rem; color: #555; cursor: pointer; transition: all 0.2s; }
.option-btn:hover { background: #fcb69f; color: white; border-color: #fcb69f; }
#quiz-progress { margin-top: 20px; font-size: 0.8rem; color: #aaa; }

footer {
    margin-top: 20px;
    font-size: 0.85rem;
    color: #888;
}

/* 让登录表单里的输入框和按钮按垂直方向（上下）排列 */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;           /* 控制上下框之间的间距 */
    align-items: center; /* 居中对齐 */
    width: 100%;
}

.login-form input {
    width: 80%;          /* 输入框宽度，可根据喜好调节如 80% 或 100% */
    max-width: 300px;
    padding: 10px 14px;
    border: 1px solid #ffccd5;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.login-form input:focus {
    border-color: #ff4d6d;
}

.login-form button {
    width: 80%;
    max-width: 300px;
    margin-top: 6px;
}
