/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 应用容器 */
.app-container {
    max-width: 375px;
    margin: 0 auto;
    min-height: 667px;
    background-color: white;
    position: relative;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* 页面容器 */
.page {
    display: none;
    padding: 20px;
    height: calc(100vh - 60px);
    overflow-y: auto;
}

.page.active {
    display: block;
}

/* 番茄钟容器 */
.pomodoro-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.timer-display {
    font-size: 4rem;
    font-weight: bold;
    
    color: #2c3e50;
}

/* 控制按钮 */
.controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    margin-top: 20px;
}

.control-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    background-color: #3498db;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.control-btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.control-btn:active {
    transform: scale(0.98);
}

.start-btn {
    background-color: #2ecc71;
}

.pause-btn {
    background-color: #e74c3c;
}

.reset-btn {
    background-color: #95a5a6;
}

.hidden {
    display: none;
}

/* 设置面板 */
.settings-panel {
    width: 100%;
    max-width: 300px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #ecf0f1;
    border-radius: 10px;
}

.setting {
    margin-bottom: 15px;
}

.setting label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.setting input[type="number"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.setting input[type="checkbox"] {
    margin-right: 8px;
}

/* 状态显示 */
.status {
    text-align: center;
    
}

.current-status {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #2c3e50;
}

.rounds-status {
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* 白噪音占位页面 */
.placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: #7f8c8d;
}

.placeholder i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #bdc3c7;
}

.placeholder h2 {
    margin-bottom: 10px;
    color: #2c3e50;
}

/* 底部导航栏 */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background-color: white;
    border-top: 1px solid #ecf0f1;
    height: 60px;
}

.tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    color: #95a5a6;
    cursor: pointer;
    padding: 8px 0;
    min-height: 60px;
}

.tab i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.tab span {
    font-size: 0.8rem;
}

.tab.active {
    color: #3498db;
}

.tab:hover {
    background-color: #f8f9fa;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .app-container {
        max-width: 100%;
        min-height: 100vh;
    }
}