/* 全局样式 */
:root {
    --primary-color: #ff7a59;
    --secondary-color: #4CAF50;
    --text-color: #333;
    --light-gray: #f6f6f6;
    --medium-gray: #e0e0e0;
    --dark-gray: #757575;
    --white: #ffffff;
    --accent-color: #5bbfba;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-gray);
    color: var(--text-color);
    line-height: 1.6;
}

/* 头部 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 22px;
    font-weight: bold;
}

.language-selector select {
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid var(--medium-gray);
    background-color: var(--white);
    cursor: pointer;
}

/* 口号横幅 */
.slogan-banner {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px;
    text-align: center;
    font-size: 18px;
}

.slogan-banner i {
    margin-right: 10px;
}

/* 通知横幅 */
.notification-banner {
    background-color: var(--light-gray);
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid var(--medium-gray);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.notification-banner i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* 小按钮样式 */
.small-btn {
    padding: 5px 10px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.small-btn:hover {
    background-color: #e6644d;
}

/* 主内容区 */
.main-content {
    display: flex;
    padding: 20px;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    flex-direction: column;
}

/* 设置容器 */
.settings-container {
    display: flex;
    gap: 20px;
    width: 100%;
    flex-wrap: wrap;
}

.work-settings, .break-settings {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex: 1;
    min-width: 300px;
}

.work-settings h3, .break-settings h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--medium-gray);
    color: var(--text-color);
}

.setting-item {
    margin-bottom: 15px;
}

.setting-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.select-wrapper {
    position: relative;
}

.select-wrapper select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 4px;
    border: 1px solid var(--medium-gray);
    background-color: var(--white);
    cursor: pointer;
    appearance: none;
}

.select-wrapper::after {
    content: '\25BC';
    position: absolute;
    right: 12px;
    top: 10px;
    color: var(--dark-gray);
    pointer-events: none;
}

/* 计时器容器 */
.timer-container {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 20px;
}

.timer-container h3 {
    margin-bottom: 20px;
    color: var(--text-color);
    text-align: center;
}

.timer-circle {
    position: relative;
    width: 100%;
    max-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}

.time-display {
    font-size: 72px;
    font-weight: bold;
    color: var(--secondary-color);
    text-align: center;
}

.timer-label {
    position: absolute;
    bottom: -30px;
    font-size: 14px;
    color: var(--dark-gray);
}

/* 统计区域 */
.stats {
    display: flex;
    width: 100%;
    justify-content: space-around;
    margin: 20px 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 10px;
    min-width: 120px;
}

.stat-icon {
    color: var(--primary-color);
    font-size: 24px;
}

.stat-count {
    font-size: 28px;
    font-weight: bold;
    margin: 5px 0;
}

.stat-label {
    font-size: 14px;
    color: var(--dark-gray);
}

/* 按钮样式 */
.control-buttons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    min-width: 150px;
    font-size: 16px;
}

.btn i {
    margin-right: 8px;
}

.primary-btn {
    background-color: var(--secondary-color);
    color: var(--white);
}

.primary-btn:hover {
    background-color: #3e8e41;
}

.secondary-btn {
    background-color: #e0e0e0;
    color: var(--text-color);
}

.secondary-btn:hover {
    background-color: #d0d0d0;
}

.break-btn {
    background-color: var(--primary-color);
    color: var(--white);
}

.break-btn:hover {
    background-color: #e6644d;
}

.break-stop-btn {
    background-color: #e0e0e0;
    color: var(--text-color);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 成就容器 */
.achievement-container {
    background-color: var(--white);
    padding: 20px;
    text-align: center;
    margin: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.achievement-dots {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 10px;
}

.dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--medium-gray);
}

.dot.active {
    background-color: var(--accent-color);
}

/* 自定义提示框样式 */
.custom-alert {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.custom-alert.hidden {
    display: none !important;
}

.alert-content {
    width: 400px;
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.alert-header {
    padding: 10px 15px;
    background-color: #f2f2f2;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
    color: #666;
}

.alert-message {
    padding: 30px 20px;
    text-align: center;
    font-size: 16px;
    color: #333;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #eee;
}

.alert-footer {
    padding: 10px 15px;
    text-align: right;
    background-color: white;
}

.confirm-btn {
    padding: 10px 25px;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    min-width: 100px;
    transition: all 0.2s ease;
}

.confirm-btn:hover {
    background-color: #1765cc;
    transform: scale(1.05);
}

.confirm-btn:active {
    background-color: #0f54ba;
    transform: scale(0.98);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .settings-container {
        flex-direction: column;
    }
    
    .work-settings, .break-settings {
        width: 100%;
    }
}

/* 隐藏元素 */
.hidden {
    display: none !important;
} 