/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f5f5f7;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.timer {
    text-align: center;
}

.time-display {
    font-size: 4rem;
    font-weight: 300;
    color: #1d1d1f;
    margin-bottom: 1.5rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 2px;
    font-feature-settings: "tnum";
    position: relative;
}

/* 添加毫秒的特殊样式 */
.time-display::after {
    content: attr(data-ms);
    font-size: 0.5em;
    position: relative;
    top: -0.5em;
    margin-left: 2px;
    opacity: 0.8;
}

.controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: #0071e3;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #0077ed;
    transform: scale(1.05);
}

.btn:active {
    transform: scale(0.95);
}

.icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* 暂停状态的按钮样式 */
.btn.paused svg {
    width: 20px;
    height: 20px;
}