/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 420px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 标题区域 */
.header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.subtitle {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 300;
}

/* 名人名言 */
.quote-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.quote-text {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 10px;
    font-style: italic;
}

.quote-source {
    font-size: 14px;
    text-align: right;
    opacity: 0.8;
}

/* 卡片样式 */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2c3e50;
    text-align: center;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #34495e;
}

.form-label.required::after {
    content: ' *';
    color: #e74c3c;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
}

.form-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-tip {
    display: block;
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 4px;
}

/* 按钮样式 */
.btn-primary, .btn-secondary {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(149, 165, 166, 0.4);
}

/* 主面板样式 */
.main-panel {
    text-align: center;
    position: relative;
}

.income-label {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 500;
}

/* 进度环样式 */
.progress-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.progress-ring {
    position: relative;
}

.progress-svg {
    transform: rotate(-90deg);
}

.progress-circle-bg {
    fill: none;
    stroke: #ecf0f1;
    stroke-width: 12;
}

.progress-circle {
    fill: none;
    stroke: #3498db;
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 741.33; /* 2 * π * 118 */
    stroke-dashoffset: 741.33;
    transition: stroke-dashoffset 1s ease-in-out;
}

.income-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.income-amount-ring {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.currency {
    font-size: 24px;
    color: #3498db;
    font-weight: 600;
}

.amount {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
}

/* 工作时间信息 */
.work-time-info {
    margin-bottom: 20px;
}

.income-minutes {
    font-size: 16px;
    color: #7f8c8d;
    margin-bottom: 8px;
}

.update-info {
    color: #95a5a6;
    font-size: 14px;
}

/* 薪资详情 */
.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #ecf0f1;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 16px;
    color: #2c3e50;
    font-weight: 500;
}

.detail-value {
    font-size: 16px;
    color: #3498db;
    font-weight: 600;
}

/* 操作按钮 */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.action-buttons .btn-secondary {
    margin-bottom: 0;
}

/* 页脚 */
.footer {
    margin-top: auto;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    padding: 20px 0;
}

.footer-note {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 8px;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .container {
        padding: 16px;
    }
    
    .title {
        font-size: 28px;
    }
    
    .amount {
        font-size: 32px;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.6s ease-out;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(52, 152, 219, 0.3);
    border-radius: 50%;
    border-top-color: #3498db;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 成功提示 */
.success-message {
    background: #2ecc71;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

/* 错误提示 */
.error-message {
    background: #e74c3c;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}
