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

/* CSS 变量定义 */
:root {
    --primary: #3498db;
    --secondary: #2ecc71;
    --accent: #e74c3c;
    --focus: #e73c7e;
    --break: #23a6d5;
    --text: #2c3e50;
    --light: #ecf0f1;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-deep: rgba(0, 0, 0, 0.15);
    --border-radius: 20px;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    color: #333;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-attachment: fixed;
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    overflow-x: hidden;
    position: relative;
}

/* 背景粒子效果 */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: containerEntrance 0.8s ease-out;
}

@keyframes containerEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.container:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 3px 8px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.98);
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #3498db, #2ecc71, #e74c3c, #f39c12);
    background-size: 300% 100%;
    z-index: 2;
    animation: gradientBorder 8s ease infinite;
}

@keyframes gradientBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

h1 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 2.4rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: titleEntrance 1s ease-out;
    background: linear-gradient(90deg, #3498db, #2ecc71, #e74c3c);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    background-size: 300% 100%;
    animation: titleGradient 8s ease infinite, titleEntrance 1s ease-out;
}

@keyframes titleEntrance {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes titleGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 波浪容器样式 */
.wave-container {
    margin: 30px 0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 250px;
    width: 100%;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 15px;
    overflow: hidden;
}

.wave-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.3), transparent 70%);
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.wave-container:hover::before {
    opacity: 0.5;
}

#waveCanvas {
    border-radius: 15px;
    background: rgba(102, 126, 234, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.1);
    width: 100%;
    height: 100%;
    transition: background-color 0.5s ease, border-color 0.5s ease, box-shadow 0.3s ease;
    box-shadow: inset 0 2px 15px rgba(0, 0, 0, 0.03), 0 4px 20px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
}

/* 波浪覆盖层 */
.wave-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: 2;
}

.focus-mode #waveCanvas {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.05), rgba(231, 76, 60, 0.1));
    border-color: rgba(231, 76, 60, 0.2);
    box-shadow: inset 0 2px 15px rgba(231, 76, 60, 0.05), 0 4px 20px rgba(231, 76, 60, 0.08);
}

.break-mode #waveCanvas {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.05), rgba(39, 174, 96, 0.1));
    border-color: rgba(39, 174, 96, 0.2);
    box-shadow: inset 0 2px 15px rgba(39, 174, 96, 0.05), 0 4px 20px rgba(39, 174, 96, 0.08);
}

/* 计时器显示样式 */
.timer-display {
    margin: 25px 0;
    transition: all 0.5s ease;
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05), inset 0 1px 3px rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    animation: timerEntrance 0.8s ease-out;
}

@keyframes timerEntrance {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

#timeLeft {
    font-size: 4.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 12px;
    transition: color 0.5s ease, text-shadow 0.5s ease, transform 0.3s ease;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.1);
    font-family: 'Courier New', monospace;
    letter-spacing: -2px;
    background: linear-gradient(45deg, #2c3e50, #7f8c8d);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    display: inline-block;
    position: relative;
}

#timeLeft::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #3498db, transparent);
    transition: width 0.3s ease;
    border-radius: 3px;
}

#timeLeft:hover::after {
    width: 80%;
}

#sessionType {
    font-size: 1.3rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    transition: color 0.5s ease, transform 0.3s ease;
    position: relative;
    display: inline-block;
}

#sessionType::before,
#sessionType::after {
    content: '•';
    display: inline-block;
    margin: 0 15px;
    color: #bdc3c7;
    transition: color 0.3s ease;
}

#sessionType:hover {
    transform: scale(1.05);
}

/* 进度条样式 */
.progress-container {
    width: 80%;
    height: 8px;
    background: rgba(127, 140, 141, 0.2);
    border-radius: 4px;
    margin: 20px auto 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #9b59b6);
    border-radius: 4px;
    width: 0%;
    transition: width 1s ease;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 专注状态颜色变化 */
.focus-mode #timeLeft {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 4px 12px rgba(231, 76, 60, 0.2), 0 1px 4px rgba(231, 76, 60, 0.1);
}

.focus-mode #timeLeft::after {
    background: linear-gradient(90deg, transparent, #e74c3c, transparent);
}

.break-mode #timeLeft {
    background: linear-gradient(45deg, #27ae60, #229954);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 4px 12px rgba(39, 174, 96, 0.2), 0 1px 4px rgba(39, 174, 96, 0.1);
}

.break-mode #timeLeft::after {
    background: linear-gradient(90deg, transparent, #27ae60, transparent);
}

.focus-mode #sessionType {
    color: #c0392b;
}

.focus-mode #sessionType::before,
.focus-mode #sessionType::after {
    color: #e74c3c;
}

.break-mode #sessionType {
    color: #229954;
}

.break-mode #sessionType::before,
.break-mode #sessionType::after {
    color: #27ae60;
}

.focus-mode .timer-display {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.05), rgba(231, 76, 60, 0.1));
    border: 1px solid rgba(231, 76, 60, 0.1);
    box-shadow: 0 6px 25px rgba(231, 76, 60, 0.08), inset 0 1px 3px rgba(255, 255, 255, 0.5);
}

.break-mode .timer-display {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.05), rgba(39, 174, 96, 0.1));
    border: 1px solid rgba(39, 174, 96, 0.1);
    box-shadow: 0 6px 25px rgba(39, 174, 96, 0.08), inset 0 1px 3px rgba(255, 255, 255, 0.5);
}

/* 控制按钮样式 */
.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
    position: relative;
}

button {
    padding: 15px 28px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 100px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, currentColor, currentColor 70%);
    color: white;
    z-index: 1;
    animation: buttonEntrance 0.6s ease-out;
    transform-origin: center;
    letter-spacing: 0.5px;
}

@keyframes buttonEntrance {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    z-index: -1;
    transition: all 0.4s ease;
}

button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.7);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
    transition: opacity 0.1s ease;
}

button:focus:not(:active)::after {
    animation: ripple 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.7;
    }
    100% {
        transform: scale(150, 150);
        opacity: 0;
    }
}

button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25), 0 3px 8px rgba(0, 0, 0, 0.15);
    letter-spacing: 1px;
}

button:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

button:hover::before {
    transform: translateX(-100%);
}

#startBtn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

#startBtn:hover {
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.4), 0 3px 8px rgba(52, 152, 219, 0.3);
}

#pauseBtn {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

#pauseBtn:hover {
    box-shadow: 0 10px 25px rgba(243, 156, 18, 0.4), 0 3px 8px rgba(243, 156, 18, 0.3);
}

#resetBtn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

#resetBtn:hover {
    box-shadow: 0 10px 25px rgba(231, 76, 60, 0.4), 0 3px 8px rgba(231, 76, 60, 0.3);
}

/* 设置区域样式 */
.settings {
    margin: 30px 0;
    padding: 25px;
    background: rgba(250, 250, 250, 0.8);
    border-radius: 15px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05), inset 0 1px 3px rgba(255, 255, 255, 0.7);
    animation: settingsEntrance 0.7s ease-out;
}

@keyframes settingsEntrance {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.settings:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05), 0 8px 25px rgba(0, 0, 0, 0.08);
}

.settings::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, transparent, #3498db, transparent);
    background-size: 300% 100%;
    animation: gradientBorder 8s ease infinite;
}

.setting-group {
    margin: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.setting-group::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3498db, transparent);
    transition: width 0.3s ease;
}

.setting-group:hover {
    transform: translateX(8px);
    background: rgba(255, 255, 255, 0.6);
}

.setting-group:hover::after {
    width: 100%;
}

.setting-group label {
    font-weight: bold;
    color: #2c3e50;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.setting-group:hover label {
    color: #3498db;
}

.setting-group input {
    padding: 10px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    width: 90px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: white;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
}

.setting-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
    transform: scale(1.1);
    background: linear-gradient(135deg, #f0f9ff, white);
}

/* 通知样式 */
.notifications {
    position: relative;
    height: 60px;
    margin: 25px 0;
    overflow: hidden;
}

#notification {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3);
    font-weight: 600;
    letter-spacing: 0.5px;
    animation: notificationPop 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes notificationPop {
    0% {
        transform: translate(-50%, -50%) scale(0.7);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

#notification.hidden {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    pointer-events: none;
}

#notification:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
}

/* 完成动画样式 */
.completion-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
    transition: opacity 0.5s ease;
}

.completion-animation.hidden {
    opacity: 0;
    pointer-events: none;
}

.completion-message {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: completionEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    max-width: 350px;
    width: 90%;
}

@keyframes completionEntrance {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.completion-icon {
    font-size: 5rem;
    color: var(--secondary);
    margin-bottom: 20px;
    animation: iconPulse 1.5s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

#completionText {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text);
    animation: textReveal 0.8s ease-out;
}

@keyframes textReveal {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.completion-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* 信息区域样式 */
.info {
    margin-top: 35px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(240, 248, 255, 0.8), rgba(240, 255, 255, 0.8));
    border-radius: 15px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05), inset 0 1px 3px rgba(255, 255, 255, 0.7);
    transition: all 0.4s ease;
    animation: infoEntrance 0.9s ease-out;
    position: relative;
    overflow: hidden;
}

@keyframes infoEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, #3498db, transparent);
}

.info:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1), inset 0 1px 3px rgba(255, 255, 255, 0.7);
    background: linear-gradient(135deg, rgba(240, 248, 255, 0.9), rgba(240, 255, 255, 0.9));
}

.info h3 {
    color: #3498db;
    margin-bottom: 15px;
    font-size: 1.4rem;
    position: relative;
    display: inline-block;
}

.info h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, #3498db, transparent);
    border-radius: 3px;
}

.info p {
    color: #666;
    line-height: 1.8;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

/* 响应式设计 - 针对红米14pro等大屏手机优化 */
@media (max-width: 768px) {
    .container {
        margin: 15px;
        padding: 28px 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    #timeLeft {
        font-size: 4rem;
        letter-spacing: -1px;
    }
    
    .wave-container {
        height: 220px;
    }
    
    .controls {
        gap: 15px;
    }
    
    /* 确保按钮有足够大的触摸区域 */
    button {
        padding: 16px 24px;
        font-size: 1rem;
        min-height: 48px;
        min-width: 160px;
    }
    
    /* 中屏幕进度条样式 */
    .progress-container {
        width: 90%;
        height: 7px;
    }
    
    /* 中屏幕完成动画 */
    .completion-message {
        padding: 30px 20px;
        max-width: 300px;
    }
    
    .completion-icon {
        font-size: 4rem;
    }
    
    #completionText {
        font-size: 1.5rem;
    }
}

/* 针对红米14pro等现代智能手机优化 */
@media (max-width: 500px) {
    body {
        padding: 10px;
        touch-action: manipulation; /* 防止双击缩放 */
    }
    
    .container {
        margin: 5px;
        padding: 25px 15px;
        border-radius: 15px;
        width: calc(100% - 10px); /* 确保容器不会溢出屏幕 */
    }
    
    .container::before {
        height: 4px;
    }
    
    h1 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .wave-container {
        height: 200px;
        margin: 20px 0;
    }
    
    #waveCanvas {
        border-radius: 12px;
    }
    
    .timer-display {
        padding: 15px;
        margin: 20px 0;
    }
    
    #timeLeft {
        font-size: 3.2rem;
        letter-spacing: -1px;
    }
    
    #sessionType {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }
    
    #sessionType::before,
    #sessionType::after {
        margin: 0 8px;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    /* 优化按钮触摸体验 */
    button {
        width: 180px;
        padding: 16px 20px;
        font-size: 1rem;
        min-height: 48px;
        border-radius: 10px;
        -webkit-tap-highlight-color: transparent; /* 移除点击高亮 */
        transition: all 0.2s ease;
    }
    
    button:active {
        transform: scale(0.98); /* 点击反馈 */
    }
    
    .settings {
        padding: 20px 15px;
        margin: 25px 0;
    }
    
    .setting-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin: 15px 0;
        padding: 8px;
    }
    
    .setting-group label {
        font-size: 0.95rem;
        width: 100%;
    }
    
    .setting-group input {
        width: 100%;
        max-width: 120px;
    }
    
    .info {
        padding: 20px 15px;
        margin-top: 30px;
    }
    
    .info h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .info p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    #notification {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 90%;
        border-radius: 25px;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 20px 12px;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    #timeLeft {
        font-size: 2.8rem;
    }
    
    #sessionType {
        font-size: 1rem;
        letter-spacing: 1px;
    }
    
    /* 优化小屏幕按钮触摸体验 */
    button {
        width: 160px;
        padding: 16px 18px;
        font-size: 0.95rem;
        min-height: 48px;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* 响应式进度条 */
    .progress-container {
        width: 95%;
        height: 6px;
    }
    
    /* 响应式完成动画 */
    .completion-message {
        padding: 25px 15px;
        max-width: 250px;
    }
    
    .completion-icon {
        font-size: 3.5rem;
    }
    
    #completionText {
        font-size: 1.3rem;
    }
}

/* 针对红米14pro等大屏手机的竖屏优化 */
@media (max-width: 450px) and (orientation: portrait) {
    /* 优化触控目标大小 */
    .controls button {
        width: 200px;
        font-size: 1.1rem;
    }
    
    /* 调整定时器显示大小 */
    #timeLeft {
        font-size: 4.5rem;
    }
    
    /* 增加波浪容器高度以更好地利用屏幕空间 */
    .wave-container {
        height: 230px;
    }
    
    /* 增加输入控件的触摸面积 */
    .setting-group input {
        padding: 10px;
        height: 44px;
    }
}