/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    font-size: 16px;
}

/* 通用样式 */
.hidden {
    display: none !important;
}

.btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn.primary {
    background-color: #4361ee;
    color: white;
}

.btn.primary:hover {
    background-color: #3a56d4;
}

.btn.secondary {
    background-color: #e9ecef;
    color: #495057;
}

.btn.secondary:hover {
    background-color: #dee2e6;
}

/* 顶部图标按钮样式 */
.icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;  /* 改为圆形 */
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    box-shadow: 
        2px 2px 5px rgba(0, 0, 0, 0.2),
        inset 1px 1px 1px rgba(255, 255, 255, 0.2);
}

.icon-btn i {
    font-size: 14px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
}

.icon-btn:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
    transform: translateY(-1px);
    box-shadow: 
        3px 3px 6px rgba(0, 0, 0, 0.25),
        inset 1px 1px 1px rgba(255, 255, 255, 0.25);
}

.icon-btn:active {
    transform: translateY(0);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1));
    box-shadow: 
        1px 1px 3px rgba(0, 0, 0, 0.2),
        inset 1px 1px 1px rgba(255, 255, 255, 0.15);
}

/* 面板样式 */
.panel {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    max-width: 500px;
    margin: auto;
    position: relative;
}

/* 设置面板 */
#settings-panel {
    background: white;
    max-width: 450px;
}

#settings-panel h2 {
    margin-bottom: 20px;
    color: #2d3748;
    text-align: center;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4a5568;
    font-size: 16px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.2s ease;
}

.form-group input[type="number"] {
    font-size: 16px;
}

.form-group input[type="time"] {
    font-size: 16px;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #4361ee;
    outline: none;
}

.input-with-icon {
    position: relative;
}

.input-with-icon input {
    padding-right: 40px;
}

.input-with-icon .currency-symbol {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #718096;
}

.time-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.time-inputs input {
    flex: 1;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.form-actions button {
    flex: 1;
}

/* 主显示界面 */
#main-display {
    background: linear-gradient(135deg, #b8860b, #8b6914);
    color: white;
    text-align: center;
    width: 100%;
    max-width: 500px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 15px;
}

.header h1 {
    font-size: 22px;
    font-weight: 600;
}

.header .controls {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.salary-display {
    margin: 30px 0;
}

.current-amount {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.current-amount #currency {
    font-size: 40px;
    margin-right: 5px;
}

.label {
    font-size: 18px;
    opacity: 0.8;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.7;
}

.progress-section {
    margin: 25px 0;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.progress-bar {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #fff;
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

.milestone {
    margin: 20px 0;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.milestone i {
    color: #ffd700;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

/* 按钮容器固定宽度 */
.controls button {
    min-width: 120px;
    height: 40px;
}

.controls button i {
    font-size: 16px;
    width: 16px; /* 固定图标宽度 */
    text-align: center;
}

.controls button span {
    margin-left: 8px;
    font-size: 16px;
}

/* 老板键样式 */
#boss-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .panel {
        margin: 10px;
        padding: 20px;
    }

    .current-amount {
        font-size: 48px;
    }

    .current-amount #currency {
        font-size: 32px;
    }

    .stats {
        gap: 20px;
    }

    .controls button {
        min-width: 100px;
    }
}

@media (max-width: 576px) {
    .panel {
        margin: 5px;
        padding: 15px;
    }

    .current-amount {
        font-size: 36px;
    }

    .current-amount #currency {
        font-size: 24px;
    }

    .stats {
        flex-direction: column;
        gap: 15px;
    }

    .controls button {
        min-width: 90px;
        font-size: 14px;
    }
    
    .controls button i {
        font-size: 14px;
        width: 14px;
    }
    
    .controls button span {
        font-size: 14px;
    }
}