@import url("calendar.css");
@import url("modal.css");
@import url("responsive.css");

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

body,
html {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    /* 禁用滚动条 */
    background-color: #f4f6f9;
    font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
    color: #333333;
    display: flex;
    flex-direction: column;
}

/* 上半部分设计 */
.top-section {
    height: 25vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.title {
    font-size: clamp(16px, 2.5vh, 24px);
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.big-countdown {
    font-size: clamp(64px, 11vh, 120px);
    font-weight: bold;
    line-height: 1.1;
    margin-bottom: 12px;
    color: #0078d4;
}

.big-countdown .unit {
    font-size: clamp(20px, 3vh, 32px);
    margin-left: 8px;
}

.progress-wrapper {
    width: 80%;
    max-width: 800px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.progress-bar-container {
    flex: 1;
    height: 14px;
    background: #e0e4e8;
    border-radius: 7px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #81c784, #4caf50);
    /* 绿色渐变 */
    width: 0%;
    border-radius: 7px;
    transition: width 0.5s ease-out;
}

.progress-text {
    font-size: clamp(14px, 2vh, 18px);
    font-weight: 600;
    width: 60px;
    text-align: right;
}

.current-time {
    font-size: clamp(12px, 1.8vh, 16px);
    color: #666;
    padding: 4px 18px;
    border-radius: 999px;
    background: #e0e4e8;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

.settings-button {
    position: fixed;
    top: 18px;
    left: 18px;
    border: 0;
    border-radius: 999px;
    background: #0078d4;
    color: #ffffff;
    padding: 8px 16px;
    font-size: 14px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 120, 212, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 20;
}

.settings-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 120, 212, 0.32);
}

/* 抖音链接按钮：固定显示在右上角，纯白胶囊按钮 */
.douyin-link {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 20;
    text-decoration: none;
    line-height: 0;
    transition: transform 0.2s ease;
}

.douyin-link:hover {
    transform: translateY(-1px);
}

.douyin-link button {
    border: 0;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 14px;
    line-height: 1.2;
    height: 34px;
    color: #000000;
    cursor: pointer;
    font-family: inherit;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: box-shadow 0.2s ease;
}

.douyin-link:hover button {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.32);
}