/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366F1;
    --secondary-color: #8B5CF6;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;
    --bg-color: #F8FAFC;
    --card-bg: #FFFFFF;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --border-color: #E2E8F0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --earnings-gradient: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #E0E7FF 0%, #F3E8FF 50%, #FEF3C7 100%);
    min-height: 100vh;
    color: var(--text-primary);
    padding: 20px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    padding: 20px 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.title {
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.header-controls {
    display: flex;
    gap: 12px;
}

.select-btn {
    padding: 8px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.select-btn:hover {
    border-color: var(--primary-color);
}

/* 主容器 - 3栏布局 */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.three-column-layout {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 24px;
    align-items: start;
}

/* 左栏：工资输入 */
.left-column {
    position: sticky;
    top: 20px;
}

.salary-input-section {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
    padding: 28px;
    border-radius: 24px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 20px;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.salary-input-section h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    letter-spacing: -0.3px;
}

/* 中间栏：吞金兽和收入展示（C位核心区域） */
.center-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 核心模块：今日收入 + 吞金兽（合并成一个整体） */
.main-earnings-pet-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
    padding: 48px 40px;
    border-radius: 32px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.12), 0 8px 16px -4px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
}

.main-earnings-pet-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #F59E0B, #EF4444, #EC4899, #8B5CF6);
    background-size: 200% 100%;
    animation: gradientMove 3s ease infinite;
}

/* 今日收入大数字展示（第一优先级） */
.earnings-display-main {
    text-align: center;
    position: relative;
    z-index: 1;
}

/* 吞金兽展示区（第二优先级，放大尺寸） */
.pet-container-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 1;
}

/* 右栏：支出输入 */
.right-column {
    position: sticky;
    top: 20px;
}

.expense-section {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
    padding: 28px;
    border-radius: 24px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.expense-section h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    letter-spacing: -0.3px;
}

/* 快捷按钮 */
.expense-quick-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.expense-quick-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: #FFF8E7;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 70px;
}

.expense-quick-btn:hover {
    border-color: var(--primary-color);
    background: #FFF8E7;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.expense-quick-btn.active {
    border-color: var(--primary-color);
    background: rgba(79, 70, 229, 0.1);
}

.expense-icon {
    font-size: 24px;
}

.expense-quick-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* 支出输入区 */
.expense-input-area {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.expense-name-input-wrapper,
.expense-amount-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.expense-name-input-wrapper label,
.expense-amount-input-wrapper label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.expense-name-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.expense-name-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.expense-amount-input-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 0;
}

.expense-currency-symbol {
    position: absolute;
    left: 16px;
    color: var(--text-secondary);
    font-weight: 600;
    pointer-events: none;
    z-index: 1;
}

.expense-amount-input {
    flex: 1;
    padding: 12px 16px 12px 40px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    min-width: 0;
}

.expense-amount-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.btn-add-expense-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #EF4444 0%, #EC4899 100%);
    color: white;
    font-size: 24px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.btn-add-expense-circle:hover {
    background: linear-gradient(135deg, #DC2626 0%, #DB2777 100%);
    transform: scale(1.08) rotate(90deg);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.45);
}

.btn-add-expense-circle:active {
    transform: scale(1.02) rotate(90deg);
}

.plus-icon {
    display: block;
    line-height: 1;
}

.expense-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.expense-list-item {
    background: #FFF8E7;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.expense-list-item:hover {
    box-shadow: var(--shadow);
}

.expense-item-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.expense-item-amount-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.expense-item-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--danger-color);
}

.btn-delete-expense {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    opacity: 0.6;
}

.btn-delete-expense:hover {
    opacity: 1;
    background: rgba(239, 68, 68, 0.1);
    transform: scale(1.1);
}

.delete-icon {
    font-size: 18px;
}

.expense-total {
    padding-top: 16px;
    border-top: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.expense-total-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.expense-total-value {
    font-size: 28px;
    font-weight: 900;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, var(--danger-color) 0%, #DC2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.controls-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    margin-bottom: 24px;
}

.controls-column .btn {
    width: 100%;
    min-width: auto;
}

/* 工作时长和工资展示区 */
.work-stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.work-stat-item {
    background: var(--card-bg);
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: center;
}

/* 工资累计展示区 */
.earnings-display {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
    padding: 48px 40px;
    border-radius: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.earnings-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #F59E0B, #EF4444, #EC4899, #8B5CF6);
    background-size: 200% 100%;
    animation: gradientMove 3s ease infinite;
}

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

.earnings-label {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}

.earnings-amount {
    font-size: 96px;
    font-weight: 900;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #9CA3AF 0%, #8B5CF6 40%, #A78BFA 70%, #C4B5FD 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    letter-spacing: -3px;
    line-height: 1.1;
}

/* 工作中：紫色/冷色调（刚开始工作，还没赚到钱） */
.earnings-amount.working {
    background: linear-gradient(135deg, #9CA3AF 0%, #8B5CF6 40%, #A78BFA 70%, #C4B5FD 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 暂停/完成中：金色/黄色渐变（代表已经赚到钱了） */
.earnings-amount.paused {
    background: linear-gradient(135deg, #FCD34D 0%, #FBBF24 25%, #F59E0B 50%, #D97706 75%, #B45309 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 1;
}

.earnings-amount.animate {
    animation: earningsPulseBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

.earnings-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 吞金兽展示区 */
.pet-container {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
    padding: 40px 32px;
    border-radius: 24px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.pet-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FBBF24, #F59E0B, #EF4444);
    opacity: 0.6;
}

.pet-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
    cursor: default;
}

.pet-wrapper:hover .pet {
    transform: scale(1.02);
}

.pet {
    position: relative;
    width: 180px;
    height: 200px;
    margin-bottom: 16px;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pet:hover {
    transform: scale(1.05);
}

.pet-body {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.pet.small {
    width: 120px;
    height: 140px;
}

.pet.medium {
    width: 150px;
    height: 170px;
}

.pet.large {
    width: 180px;
    height: 200px;
}

/* 可爱的小猫头部 - 更圆润 */
.pet-head {
    width: 140px;
    height: 130px;
    background: linear-gradient(135deg, #FFF8E7 0%, #FFF5DC 100%);
    border-radius: 50%;
    position: relative;
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.1),
        inset 0 -5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.pet.small .pet-head {
    width: 100px;
    height: 90px;
}

.pet.medium .pet-head {
    width: 120px;
    height: 110px;
}

.pet.large .pet-head {
    width: 140px;
    height: 130px;
}

/* 可爱的圆耳朵 - 更圆润 */
.pet-ear {
    position: absolute;
    width: 45px;
    height: 50px;
    background: linear-gradient(135deg, #FCD34D 0%, #FBBF24 50%, #F59E0B 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    top: -10px;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.15),
        inset -2px -2px 5px rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease;
    border: 3px solid #F59E0B;
}

/* 耳朵内部粉色 */
.pet-ear::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: linear-gradient(135deg, #FFB6C1 0%, #FFA0B4 100%);
    border-radius: 50%;
    opacity: 0.8;
}

.pet-ear.left {
    left: 20%;
    transform: rotate(-20deg);
}

.pet-ear.right {
    right: 20%;
    transform: rotate(20deg) scaleX(-1);
}

.pet.small .pet-ear {
    width: 32px;
    height: 35px;
    top: -8px;
}

.pet.medium .pet-ear {
    width: 38px;
    height: 42px;
    top: -9px;
}

/* 脸部区域 */
.pet-face {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -35%);
    width: 80%;
    height: 70%;
}

/* 大眼睛 - 更圆更大更可爱 */
.pet-eye {
    position: absolute;
    width: 28px;
    height: 32px;
    background: white;
    border-radius: 50%;
    top: 15%;
    border: 3px solid #2C3E50;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: inset 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.pet-eye.left {
    left: 18%;
}

.pet-eye.right {
    right: 18%;
}

.pet.small .pet-eye {
    width: 18px;
    height: 20px;
    border-width: 2px;
    top: 12%;
}

.pet.medium .pet-eye {
    width: 22px;
    height: 26px;
    top: 14%;
}

/* 瞳孔 - 更大更圆 */
.pupil {
    position: absolute;
    width: 18px;
    height: 18px;
    background: #2C3E50;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.2s ease;
}

/* 瞳孔高光 */
.pupil::before {
    content: '';
    position: absolute;
    top: 25%;
    left: 30%;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

.pet.small .pupil {
    width: 12px;
    height: 12px;
}

.pet.small .pupil::before {
    width: 4px;
    height: 4px;
}

.pet.medium .pupil {
    width: 15px;
    height: 15px;
}

.pet.medium .pupil::before {
    width: 5px;
    height: 5px;
}

/* 可爱的粉色鼻子 - 倒三角形 */
.pet-nose {
    position: absolute;
    width: 14px;
    height: 12px;
    background: linear-gradient(135deg, #FFB6C1 0%, #FF69B4 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    top: 42%;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pet-nose::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 8px;
    background: #2C3E50;
}

.pet.small .pet-nose {
    width: 10px;
    height: 9px;
}

.pet.small .pet-nose::after {
    height: 6px;
}

.pet.medium .pet-nose {
    width: 12px;
    height: 10px;
}

.pet.medium .pet-nose::after {
    height: 7px;
}

/* 嘴巴 - 更可爱 */
.pet-mouth {
    position: absolute;
    top: 52%;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 12px;
    border: 2px solid #2C3E50;
    border-top: none;
    border-radius: 0 0 50% 50%;
}

.pet.small .pet-mouth {
    width: 14px;
    height: 8px;
    border-width: 1.5px;
}

.pet.medium .pet-mouth {
    width: 17px;
    height: 10px;
}

.pet-whiskers {
    position: absolute;
    top: 42%;
    width: 35px;
}

.pet-whiskers.left {
    left: -20%;
}

.pet-whiskers.right {
    right: -20%;
}

.pet.small .pet-whiskers {
    width: 25px;
}

.pet.medium .pet-whiskers {
    width: 30px;
}

.whisker {
    width: 100%;
    height: 2px;
    background: #333;
    margin: 4px 0;
    border-radius: 2px;
}

.pet.small .whisker {
    height: 1.5px;
    margin: 3px 0;
}

.pet.medium .whisker {
    height: 1.8px;
    margin: 3.5px 0;
}

/* 脸颊（金色黄色） - 更明显更可爱 */
.pet-cheek {
    position: absolute;
    width: 24px;
    height: 24px;
    background: radial-gradient(circle at 30% 30%, #FCD34D 0%, #FBBF24 60%, rgba(251, 191, 36, 0.3) 100%);
    border-radius: 50%;
    top: 50%;
    opacity: 0.7;
    box-shadow: 0 2px 4px rgba(251, 191, 36, 0.3);
}

.pet-cheek.left {
    left: 8%;
}

.pet-cheek.right {
    right: 8%;
}

.pet.small .pet-cheek {
    width: 16px;
    height: 16px;
}

.pet.medium .pet-cheek {
    width: 20px;
    height: 20px;
}

/* 尾巴（金色尾巴尖） - 更可爱 */
.pet-tail {
    position: absolute;
    width: 25px;
    height: 70px;
    background: linear-gradient(135deg, #FFF8E7 0%, #FFF5DC 100%);
    border: 3px solid #FDE68A;
    border-radius: 50% 0 0 50%;
    bottom: -5px;
    right: -8px;
    transform: rotate(20deg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.pet-tail::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #FCD34D 0%, #FBBF24 100%);
    border-radius: 50%;
    border: 3px solid #F59E0B;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.pet.small .pet-tail {
    width: 18px;
    height: 50px;
}

.pet.small .pet-tail::after {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

.pet.medium .pet-tail {
    width: 22px;
    height: 60px;
}

.pet.medium .pet-tail::after {
    width: 20px;
    height: 20px;
}

.pet-shadow {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    filter: blur(4px);
}

/* 状态容器 */
.pet-state {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* 工作状态 */
.pet.show-working .pet-state.pet-working {
    opacity: 1;
}

/* 工作状态 - 眼镜 */
.pet-glasses {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 30px;
    border: 3px solid #333;
    border-radius: 50%;
}

.pet-glasses::before,
.pet-glasses::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    border: 3px solid #333;
    border-radius: 50%;
    top: 2px;
}

.pet-glasses::before {
    left: 2px;
}

.pet-glasses::after {
    right: 2px;
}

/* 工作状态 - 笔记本电脑 */
.pet-laptop {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 30px;
    background: #C0C0C0;
    border-radius: 4px;
    border: 2px solid #808080;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pet-laptop::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #808080;
}

/* 工作状态 - 咖啡杯 */
.pet-coffee {
    position: absolute;
    bottom: 15%;
    right: 15%;
    width: 12px;
    height: 16px;
    background: #8B4513;
    border-radius: 2px;
    border: 2px solid #654321;
}

.pet-coffee::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -2px;
    width: 16px;
    height: 4px;
    background: #D2691E;
    border-radius: 50% 50% 0 0;
}

/* 工作状态 - 思考线条 */
.pet-thought-lines {
    position: absolute;
    top: -10px;
    right: 20%;
}

.pet-thought-lines::before,
.pet-thought-lines::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: #333;
    border-radius: 50%;
}

.pet-thought-lines::before {
    top: 0;
    right: 0;
    animation: thoughtLine1 1s ease-in-out infinite;
}

.pet-thought-lines::after {
    top: 8px;
    right: 8px;
    width: 3px;
    height: 3px;
    animation: thoughtLine2 1s ease-in-out infinite 0.2s;
}

@keyframes thoughtLine1 {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(-3px); opacity: 0.5; }
}

@keyframes thoughtLine2 {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(-3px); opacity: 0.5; }
}

/* 学习状态 */
.pet.show-studying .pet-state.pet-studying {
    opacity: 1;
}

.pet.show-studying .pet-head {
    transform: translateY(-5px);
}

/* 学习状态 - 书桌 */
.pet-desk {
    position: absolute;
    bottom: -5%;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 8px;
    background: #8B4513;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 学习状态 - 书本 */
.pet-book {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 25px;
    background: #FFF;
    border: 2px solid #333;
    border-radius: 2px;
}

.pet-book::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    width: 2px;
    height: 100%;
    background: #333;
}

/* 学习状态 - 笔 */
.pet-pen {
    position: absolute;
    bottom: 15%;
    right: 25%;
    width: 3px;
    height: 20px;
    background: #333;
    transform: rotate(15deg);
}

.pet-pen::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -1px;
    width: 5px;
    height: 3px;
    background: #000;
    border-radius: 50%;
}

/* 学习状态 - 墨水溅出 */
.pet-ink-splatters {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 30px;
}

.pet-ink-splatters::before,
.pet-ink-splatters::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #000;
    border-radius: 50% 40% 50% 40%;
}

.pet-ink-splatters::before {
    top: 5px;
    left: 10px;
}

.pet-ink-splatters::after {
    top: 15px;
    right: 10px;
    width: 4px;
    height: 4px;
}

/* 学习状态 - 汗水 */
.pet-sweat-drops {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
}

.pet-sweat-drops::before,
.pet-sweat-drops::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 8px;
    background: #4A90E2;
    border-radius: 0 50% 50% 50%;
    transform: rotate(45deg);
    animation: sweatDrop 1.5s ease-in-out infinite;
}

.pet-sweat-drops::before {
    left: -10px;
    animation-delay: 0s;
}

.pet-sweat-drops::after {
    right: -10px;
    animation-delay: 0.5s;
}

@keyframes sweatDrop {
    0%, 100% { transform: rotate(45deg) translateY(0); opacity: 1; }
    50% { transform: rotate(45deg) translateY(5px); opacity: 0.5; }
}

/* 睡觉状态 */
.pet.show-sleeping .pet-state.pet-sleeping {
    opacity: 1;
}

.pet.show-sleeping .pet-head {
    transform: rotate(-15deg);
}

.pet.show-sleeping .pet-eye {
    transform: scaleY(0.1);
}

/* 睡觉状态 - 枕头 */
.pet-pillow {
    position: absolute;
    bottom: -5%;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 30px;
    background: #D2B48C;
    border-radius: 50% 50% 20% 20%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 睡觉状态 - 头上的金币 */
.pet-coin-on-head {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #FCD34D 0%, #FBBF24 100%);
    border: 2px solid #F59E0B;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pet-coin-on-head::before {
    content: '¥';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    font-weight: bold;
    color: #B45309;
}

/* 睡觉状态 - Zz */
.pet-sleep-zzz {
    position: absolute;
    top: -30px;
    right: 10%;
    font-size: 20px;
    font-weight: bold;
    color: #666;
    font-family: 'Comic Sans MS', cursive;
    animation: zzzFloat 2s ease-in-out infinite;
}

@keyframes zzzFloat {
    0%, 100% { transform: translateY(0) rotate(-5deg); opacity: 0.8; }
    50% { transform: translateY(-5px) rotate(5deg); opacity: 1; }
}

/* 睡觉状态 - 口水 */
.pet-drool {
    position: absolute;
    bottom: 35%;
    right: 20%;
    width: 4px;
    height: 8px;
    background: #87CEEB;
    border-radius: 0 0 50% 50%;
    animation: drool 1.5s ease-in-out infinite;
}

@keyframes drool {
    0%, 100% { transform: translateY(0) scaleY(1); opacity: 0.7; }
    50% { transform: translateY(3px) scaleY(1.2); opacity: 1; }
}

/* 玩耍状态 */
.pet.show-playing .pet-state.pet-playing {
    opacity: 1;
}

.pet.show-playing .pet-body {
    animation: playBounce 0.8s ease-in-out infinite;
}

@keyframes playBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

/* 玩耍状态 - 毛线球 */
.pet-yarn-ball {
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #FCD34D 0%, #FBBF24 100%);
    border: 2px solid #F59E0B;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: yarnRoll 2s ease-in-out infinite;
}

.pet-yarn-ball::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: repeating-linear-gradient(
        45deg,
        #FCD34D,
        #FCD34D 3px,
        #FBBF24 3px,
        #FBBF24 6px
    );
    border-radius: 50%;
    opacity: 0.5;
}

@keyframes yarnRoll {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    50% { transform: translateX(5px) rotate(180deg); }
}

/* 玩耍状态 - 金币 */
.pet-coins {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.pet-coin {
    position: absolute;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #FCD34D 0%, #FBBF24 100%);
    border: 2px solid #F59E0B;
    border-radius: 50%;
}

.pet-coin::before {
    content: '¥';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8px;
    font-weight: bold;
    color: #B45309;
}

.pet-coin.coin1 {
    top: 20%;
    left: 20%;
    animation: coinFloat1 2s ease-in-out infinite;
}

.pet-coin.coin2 {
    top: 30%;
    right: 15%;
    animation: coinFloat2 2s ease-in-out infinite 0.3s;
}

.pet-coin.coin3 {
    bottom: 30%;
    left: 15%;
    animation: coinFloat3 2s ease-in-out infinite 0.6s;
}

.pet-coin.coin4 {
    bottom: 20%;
    right: 20%;
    animation: coinFloat4 2s ease-in-out infinite 0.9s;
}

@keyframes coinFloat1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(5px, -8px) rotate(180deg); }
}

@keyframes coinFloat2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-5px, -6px) rotate(-180deg); }
}

@keyframes coinFloat3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(6px, 8px) rotate(180deg); }
}

@keyframes coinFloat4 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-6px, 6px) rotate(-180deg); }
}

.pet-message {
    background: var(--bg-color);
    padding: 12px 20px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 300px;
    text-align: center;
    transition: all 0.3s ease;
}

.pet-message.show {
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 进度条 */
.progress-bar-container {
    width: 100%;
}

.progress-bar-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: var(--bg-color);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 6px;
    transition: width 0.5s ease;
    width: 0%;
}

.progress-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    text-align: right;
}

/* 输入组样式调整 */
.input-group {
    margin-bottom: 20px;
}

.input-group:last-child {
    margin-bottom: 0;
}

.input-group.readonly input {
    background: var(--bg-color);
    cursor: not-allowed;
    color: var(--text-secondary);
}

.input-group input:disabled {
    background: var(--bg-color);
    cursor: not-allowed;
    opacity: 0.7;
}

.input-group input:disabled::placeholder {
    color: var(--text-secondary);
}

.work-stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 600;
}

.work-stat-value {
    font-size: 36px;
    font-weight: 900;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.5px;
}

.work-stat-value.earnings {
    color: var(--success-color);
}

.work-stat-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 控制区（保留兼容性） */
.controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    flex: 1;
    min-width: 150px;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-color);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--border-color);
}

.btn-tertiary {
    background: var(--warning-color);
    color: white;
}

.btn-tertiary:hover:not(:disabled) {
    background: #D97706;
    transform: translateY(-2px);
}

.btn-reset {
    background: var(--danger-color);
    color: white;
}

.btn-reset:hover:not(:disabled) {
    background: #DC2626;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* 输入组位置相对定位 */
.input-group {
    position: relative;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.input-currency {
    position: absolute;
    right: 16px;
    top: 38px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* 支出项样式 */
.expense-item {
    display: flex;
    flex-direction: column;
}

.expense-item label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 600;
}

.expense-item input {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.expense-item input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}


/* 总结区 */
.summary-section {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
    padding: 32px 28px;
    border-radius: 24px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.summary-section h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.summary-item {
    text-align: center;
    padding: 16px;
    border-radius: 12px;
    background: var(--bg-color);
    transition: all 0.3s ease;
}

.summary-item.highlight {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(124, 58, 237, 0.1));
    border: 2px solid var(--primary-color);
}

.summary-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.summary-value {
    font-size: 28px;
    font-weight: 900;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    letter-spacing: -0.5px;
}

.summary-value.income {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.summary-value.expense {
    background: linear-gradient(135deg, var(--danger-color) 0%, #DC2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.summary-value.net {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 情绪指示器 */
.mood-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-color);
    border-radius: 12px;
}

.mood-emoji {
    font-size: 32px;
    transition: transform 0.3s ease;
}

.mood-emoji.animate {
    animation: bounce 0.5s ease;
}

.mood-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

/* 今日总结中的目标进度显示 */
.summary-goal-progress-container {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid var(--border-color);
}

.summary-goal-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.summary-goal-progress-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.summary-goal-progress-name {
    font-weight: 600;
    color: var(--text-primary);
}

.summary-goal-progress-percentage {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.summary-goal-progress-bar-wrapper {
    margin-bottom: 8px;
}

.summary-goal-progress-bar {
    width: 100%;
    height: 12px;
    background: var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.summary-goal-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    border-radius: 6px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
    position: relative;
    overflow: hidden;
}

/* 进度条增长时的轻微动画效果 */
.summary-goal-progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShine 2s ease-in-out infinite;
}

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

.summary-goal-progress-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.5;
}

/* 金币飞入效果 */
.coin-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.coin {
    position: absolute;
    font-size: 32px;
    animation: coinFly 2s ease-out forwards;
}

@keyframes coinFly {
    0% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translate(var(--end-x), var(--end-y)) rotate(720deg);
    }
}

/* 全屏庆祝效果 */
.celebration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.celebration-overlay.show {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.celebration-content {
    text-align: center;
    color: white;
}

.celebration-emoji {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 1s ease infinite;
}

.celebration-text {
    font-size: 32px;
    font-weight: 700;
}

/* 目标设置区域 */
.goal-section {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.goal-section h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

.goal-input-wrapper {
    margin-bottom: 16px;
}

.goal-input-wrapper label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.goal-name-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color 0.3s ease;
}

.goal-name-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.goal-amount-input-container {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    transition: border-color 0.3s ease;
}

.goal-amount-input-container:focus-within {
    border-color: var(--primary-color);
}

.goal-currency-symbol {
    padding: 12px 8px 12px 16px;
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.goal-amount-input {
    flex: 1;
    padding: 12px 16px 12px 8px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    background: transparent;
    color: var(--text-primary);
}

.goal-amount-input:focus {
    outline: none;
}

/* 目标进度显示 */
.goal-progress-container {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.goal-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.goal-progress-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.goal-progress-percentage {
    font-size: 1rem;
    font-weight: 600;
    color: var(--success-color);
}

.goal-progress-amount {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.goal-progress-bar-wrapper {
    margin-bottom: 8px;
}

.goal-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.goal-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.goal-progress-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .three-column-layout {
        grid-template-columns: 280px 1fr 280px;
        gap: 16px;
    }
}

@media (max-width: 968px) {
    .three-column-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .left-column,
    .right-column {
        position: static;
    }

    .salary-input-section,
    .expense-section {
        position: static;
    }

    .work-stats-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        padding: 12px;
    }

    .main-container {
        padding: 0 12px;
    }

    .header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .earnings-amount {
        font-size: 40px;
    }

    .earnings-display {
        padding: 24px;
    }

    .controls-column {
        margin-top: 16px;
        margin-bottom: 16px;
    }


    .summary-grid {
        grid-template-columns: 1fr;
    }

    .work-stat-value {
        font-size: 28px;
    }

    .pet {
        width: 150px;
        height: 170px;
    }

    .pet.small {
        width: 100px;
        height: 120px;
    }

    .pet.medium {
        width: 125px;
        height: 145px;
    }

    .salary-input-section,
    .expense-section {
        padding: 20px;
    }
}

/* 吞金兽情绪状态 */
.pet.happy .pet-head {
    background: linear-gradient(135deg, #FDE68A 0%, #FBBF24 100%);
}

.pet.happy .pet-eye {
    border-radius: 50%;
    height: 24px;
}

.pet.happy .pet-mouth {
    border-top-color: #10B981;
    border-top-width: 8px;
}

.pet.neutral .pet-head {
    background: linear-gradient(135deg, #FFD89B 0%, #FF9A56 100%);
}

.pet.sad .pet-head {
    background: linear-gradient(135deg, #D1D5DB 0%, #9CA3AF 100%);
}

.pet.sad .pet-eye {
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

.pet.sad .pet-mouth {
    border-bottom: 6px solid #333;
    border-top: none;
    top: 48%;
}

.pet.excited .pet-head {
    background: linear-gradient(135deg, #FBCFE8 0%, #F9A8D4 100%);
    animation: pulse 1s ease infinite;
}

.pet.excited .pet-eye {
    border-radius: 50%;
    height: 28px;
    animation: blink 2s ease infinite;
}

.pet.excited .pupil {
    animation: movePupil 1s ease infinite;
}

@keyframes blink {
    0%, 90%, 100% { height: 24px; }
    95% { height: 2px; }
}

@keyframes movePupil {
    0%, 100% { transform: translate(-50%, -50%); }
    50% { transform: translate(-40%, -40%); }
}

/* 吞金兽随机动画 */
.pet-blink .pet-eye {
    animation: petBlink 0.6s ease;
}

.pet-breathe {
    animation: petBreathe 2s ease-in-out;
}

.pet-wiggle {
    animation: petWiggle 1.5s ease-in-out;
}

@keyframes petBlink {
    0%, 90%, 100% { transform: scaleY(1); }
    5%, 85% { transform: scaleY(0.1); }
}

@keyframes petBreathe {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes petWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

/* 吞金兽点击动画 */
.pet-click-blink .pet-eye {
    animation: petClickBlink 0.6s ease 2;
}

.pet-click-nod {
    animation: petClickNod 0.6s ease;
}

@keyframes petClickBlink {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.1); }
}

@keyframes petClickNod {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(5deg); }
}
