:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --font-size: 36px;
    --font-color: #007bff;
    --move-range: 50px;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

/* 深色模式 */
body.dark-mode {
    --bg-color: #121212;
    --text-color: #ffffff;
}

/* 呼吸动画 */
body.breathing-effect {
    animation: breathing 10s infinite;
}

@keyframes breathing {
    0%, 100% {
        background-color: var(--bg-color);
        opacity: 1;
    }
    50% {
        background-color: #000000;
        opacity: 0;
    }
}

.countdown-container {
    text-align: center;
    background-color: var(--bg-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 1s ease-in-out;
}

h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

#countdown {
    font-size: var(--font-size);
    font-weight: bold;
}

#countdown span {
    color: var(--font-color);
}

#current-time {
    margin-top: 20px;
    font-size: 20px;
}

/* 镜像模式 */
.mirror-mode {
    transform: scaleX(-1);
}

/* 设置按钮 */
.settings-btn {
    position: fixed;
    top: 10px;
    left: 10px;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
}

/* 设置面板 */
.settings-panel {
    position: fixed;
    top: 50px;
    left: 10px;
    background-color: var(--bg-color);
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.settings-panel h2 {
    margin-top: 0;
}

.settings-panel label {
    display: block;
    margin: 10px 0 5px;
}

.settings-panel input[type="range"] {
    width: 100%;
}

.settings-panel button {
    margin-top: 10px;
    padding: 10px;
    width: 100%;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.settings-panel button:hover {
    background-color: #0056b3;
}

/* 横屏适配 */
@media (orientation: landscape) {
    .countdown-container {
        padding: 40px;
    }
    h1 {
        font-size: 32px;
    }
    #countdown {
        font-size: 48px;
    }
}