﻿/* jishi.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

body {
    background-color: #f5f5f5;
    min-height: 100vh;
}

/* 计时器样式 - 悬浮右下角 */
.timer-container {
    position: fixed;
    bottom: 20px; /* 距离底部20px */
    right: 20px; /* 距离右侧20px */
    background-color: #fff;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 998;
    white-space: nowrap;
}

.timer {
    font-size: 20px;
    color: #333;
    font-weight: bold;
}

/* 情话文字弹出样式 - 计时器左侧（桌面端）/上方（移动端） */
.love-text {
    position: fixed;
    bottom: 20px; /* 与计时器底部对齐 */
    right: calc(20px + 220px); /* 计时器右侧距离 + 计时器宽度 */
    transform: translateY(0) scale(0);
    background-color: #fff;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(255, 105, 180, 0.3);
    z-index: 999;
    font-size: 20px;
    color: #e63946;
    line-height: 1.5;
    max-width: 300px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.love-text.active {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .timer-container {
        bottom: 20px;
        right: 20px;
    }

    .love-text {
        bottom: calc(20px + 80px); /* 计时器上方 */
        right: 20px;
        transform: scale(0);
        max-width: 80%;
        font-size: 18px;
    }

    .love-text.active {
        transform: scale(1);
    }
}