/*
 * © 2024 MoneyClock. All rights reserved.
 * 本软件受版权法保护，未经授权不得复制、分发或修改。
 * 作者保留所有权利。
 */

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 10px 20px;
}

/* 头部样式 */
.header {
    margin-bottom: 40px;
    color: #333;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.header-left {
    text-align: left;
}

.header-right {
    text-align: right;
}

.header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.header .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* 时间显示 */
.current-time {
    background: #f8f9fa;
    padding: 12px 20px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #e9ecef;
    font-size: 0.9rem;
}

.current-time i {
    color: #667eea;
    font-size: 1.2rem;
}

.current-time span {
    color: #4a5568;
    font-weight: 500;
    font-size: 1.1rem;
}

/* 主要内容区域 - 左右分栏 */
.main-content {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: auto;
    position: relative;
}

/* 左右面板 */
.left-panel {
    flex: 0 0 400px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-top: 0;
    padding-top: 0;
    height: fit-content;
    position: relative;
    z-index: 1;
}

/* 设置面板 */
.settings-panel {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    position: relative;
    height: fit-content;
    min-height: 104.86px;
    transition: all 0.3s ease;
    text-align: left !important;
    z-index: 1;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}



.toggle-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.toggle-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.settings-content {
    transition: all 0.3s ease;
    overflow: hidden;
}

.settings-content.hidden {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
}

.left-panel.collapsed {
    flex: 0 0 80px;
}

.left-panel.collapsed .settings-panel {
    padding: 15px;
}

.left-panel.collapsed .settings-header h2 {
    font-size: 0.9rem;
    margin: 0;
}

.left-panel.collapsed .toggle-btn {
    padding: 6px 8px;
    font-size: 0.8rem;
}

.settings-panel.previewing::before {
    content: "实时预览中...";
    position: absolute;
    top: 10px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

.settings-panel h2 {
    color: #4a5568;
    margin: 0;
    font-size: 1.1rem;
}

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

.setting-item {
    display: flex;
    flex-direction: column;
}

.setting-item label {
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.setting-item input {
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.setting-item input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 时间范围样式 */
.time-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.time-range input[type="time"] {
    flex: 1;
    min-width: 0;
}

.time-separator {
    color: #667eea;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0 4px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* 实时收入显示 */
.earnings-display {
    display: flex;
    flex-direction: column;
    gap: 30px;
    height: 100%;
    justify-content: flex-start;
    margin-top: 0;
    padding-top: 0;
    position: relative;
    z-index: 1;
}

/* 收入钟表样式 */
.clock-card {
    text-align: center;
    padding: 25px;
    margin-top: 0;
}

.clock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.clock-header h3 {
    color: #4a5568;
    margin: 0;
    font-size: 1.1rem;
}

    .clock-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 0;
        transition: all 0.6s ease-in-out;
        overflow: visible;
        transform: scale(1);
        visibility: visible;
        opacity: 1;
        max-height: 1000px;
        position: relative;
        z-index: 1;
    }

.clock-container.hidden {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    visibility: hidden;
    transform: scale(0.8);
}

/* 电脑端：确保时钟卡片在隐藏状态下与其他卡片高度一致 */
.earnings-card .clock-container.hidden {
    height: 0;
    overflow: hidden;
}

/* 电脑端：设置时钟卡片的高度 */
.clock-card {
    height: auto;
    min-height: 107.86px;
    position: relative;
    z-index: 1;
}

/* 电脑端：确保header在隐藏状态下没有额外的margin */
.earnings-card .clock-container.hidden ~ .clock-header,
.earnings-card .clock-container.hidden + .clock-header {
    margin-bottom: 0;
}

/* 电脑端：当时钟内容隐藏时，确保header按钮垂直居中 */
.earnings-card:has(.clock-container.hidden) .clock-header {
    justify-content: space-between;
    align-items: center;
}

/* 电脑端：确保settings-panel在隐藏状态下与其他卡片高度一致 */
.settings-panel .settings-content.hidden {
    height: 0;
    overflow: hidden;
}

/* 电脑端：确保settings-header在隐藏状态下没有额外的margin */
.settings-panel .settings-content.hidden ~ .settings-header,
.settings-panel .settings-content.hidden + .settings-header {
    margin-bottom: 0;
}

/* 电脑端：当settings内容隐藏时，确保header按钮垂直居中 */
.settings-panel:has(.settings-content.hidden) .settings-header {
    justify-content: space-between;
    align-items: center;
}

.clock-face {
    position: relative;
    width: 300px;
    height: 300px;
    border: 8px solid #667eea;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    /* 移除过渡效果，避免位置变动 */
    font-display: swap;
}

.clock-face.active {
    border-color: #38a169;
    box-shadow: 0 12px 35px rgba(72, 187, 120, 0.5);
    transform: scale(1.02);
}

.clock-number {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #4a5568;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /* 修正数字6和9的旋转问题 */
    transform-origin: center;
    /* 确保字体稳定 */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-display: swap;
}

/* 修正数字6和9的显示 */
.clock-number[style*="rotate(180deg)"] {
    transform: rotate(180deg) translateY(-90px) rotate(-180deg) !important;
}

.clock-number[style*="rotate(270deg)"] {
    transform: rotate(270deg) translateY(-90px) rotate(-270deg) !important;
}

.time-label {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 25px;
    height: 25px;
    margin: -12.5px 0 0 -12.5px;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 500;
    color: #718096;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.income-display {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 30px;
    margin: -15px 0 0 -40px;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: #000000;
    background: transparent;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    /* 移除过渡效果，避免位置变动 */
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-display: swap;
    z-index: 10;
}

.income-display.active {
    background: transparent;
    border: none;
    color: #333333;
    transform: scale(1.1);
    box-shadow: none;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* 移除过渡效果，避免位置变动 */
}

.clock-hand {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: bottom center;
    border-radius: 4px;
    transition: transform 0.5s ease;
}

/* 移除停止状态，让时钟始终正常显示 */
.clock-hand.stopped {
    /* 保持正常显示，不添加任何停止效果 */
}

.hour-hand {
    width: 6px;
    height: 80px;
    margin: -80px 0 0 -3px;
    background: linear-gradient(to top, #4a5568, #2d3748);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.minute-hand {
    width: 4px;
    height: 100px;
    margin: -100px 0 0 -2px;
    background: linear-gradient(to top, #667eea, #5a67d8);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.second-hand {
    width: 2px;
    height: 110px;
    margin: -110px 0 0 -1px;
    background: linear-gradient(to top, #e53e3e, #c53030);
    box-shadow: 0 2px 8px rgba(229, 62, 62, 0.3);
}

.clock-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.clock-info {
    margin-top: 25px;
    text-align: center;
    width: 100%;
}

.clock-container.hidden .clock-info {
    margin-top: 0;
}

.clock-container.hidden .work-status {
    margin-bottom: 0;
}

/* 确保所有卡片在隐藏状态下header的margin为0 */
.earnings-card .card-content.hidden + .card-header,
.earnings-card .clock-container.hidden + .clock-header,
.earnings-card .settings-content.hidden + .settings-header {
    margin-bottom: 0;
}

/* 或者更直接地处理所有header在隐藏状态下的margin */
.earnings-card .card-content.hidden ~ .card-header,
.earnings-card .clock-container.hidden ~ .clock-header {
    margin-bottom: 0;
}

.work-status {
    font-size: 1rem;
    font-weight: 600;
    color: #718096;
    padding: 10px 20px;
    background: rgba(113, 128, 150, 0.1);
    border-radius: 8px;
    border: 2px solid rgba(113, 128, 150, 0.2);
    margin-bottom: 15px;
    transition: all 0.3s ease;
    display: inline-block;
}

.work-status.morning {
    color: #38a169;
    background: rgba(72, 187, 120, 0.1);
    border-color: rgba(72, 187, 120, 0.2);
}

.work-status.afternoon {
    color: #dd6b20;
    background: rgba(237, 137, 54, 0.1);
    border-color: rgba(237, 137, 54, 0.2);
}

.current-income {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000000;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    display: inline-block;
}



.earnings-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.earnings-card:hover {
    transform: translateY(-5px);
}

.earnings-card h3 {
    color: #4a5568;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h3 {
    color: #4a5568;
    margin: 0;
    font-size: 1.1rem;
}

.card-content {
    transition: all 0.6s ease-in-out;
    transform: scale(1);
    visibility: visible;
    opacity: 1;
    max-height: 1000px;
    overflow: hidden;
}

.card-content.hidden {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    visibility: hidden;
    transform: scale(0.8);
}

.earnings-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.work-time {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(52, 152, 219, 0.3);
}

.earnings-progress {
    margin-top: 15px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 600;
}

.earnings-detail {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 500;
}

.month-breakdown {
    margin-top: 5px;
    opacity: 0.8;
}



/* 时间=金钱等式样式 */
.time-money-equation {
    margin-top: 10px;
    text-align: center;
}

.equation-text {
    display: block;
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 5px;
}

.equation-animation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.8rem;
}

.time-unit {
    color: #4a5568;
    font-weight: 500;
}

.equals {
    color: #667eea;
    font-weight: bold;
    animation: pulse 2s infinite;
}

.money-unit {
    color: #48bb78;
    font-weight: 600;
    animation: glow 2s infinite;
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 5px rgba(72, 187, 120, 0.5); }
    50% { text-shadow: 0 0 15px rgba(72, 187, 120, 0.8); }
}



/* 底部 */
.footer {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer p {
    margin: 5px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .main-content {
        flex-direction: column;
        gap: 20px;
        position: relative;
    }
    
    .left-panel {
        flex: none;
        gap: 20px;
        position: relative;
        z-index: 1;
    }
    
    .left-panel.collapsed {
        flex: none;
        gap: 20px;
        position: relative;
        z-index: 1;
    }
    
    .right-panel {
        flex: none;
        position: relative;
        z-index: 1;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .earnings-display {
        gap: 20px;
        position: relative;
        z-index: 1;
    }
    
    .earnings-card {
        padding: 20px;
        min-height: 104.86px;
        position: relative;
        z-index: 1;
    }
    
    .settings-panel {
        background: #ffffff;
        border-radius: 20px;
        padding: 20px;
        text-align: center;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        border: 1px solid #e9ecef;
        transition: transform 0.3s ease;
        min-height: 104.86px;
        position: relative;
        z-index: 1;
    }
    
    .settings-panel:hover {
        transform: translateY(-5px);
    }
    
    .clock-card {
        height: auto;
        min-height: 107.86px;
        position: relative;
        z-index: 1;
    }
    
    .todo-card {
        height: auto;
        min-height: auto;
        position: relative;
        z-index: 1;
    }
    
    .earnings-card .card-content.hidden,
    .earnings-card .clock-container.hidden {
        min-height: 0;
    }
    
    /* 确保所有卡片在隐藏状态下高度完全一致 */
    .earnings-card .card-content.hidden,
    .earnings-card .clock-container.hidden {
        height: 0;
        overflow: hidden;
    }
    
    /* 确保header在隐藏状态下没有额外的margin */
    .earnings-card .card-header,
    .earnings-card .clock-header {
        margin-bottom: 0;
    }
    
    /* 手机端：确保settings-panel在隐藏状态下与其他卡片高度一致 */
    .settings-panel .settings-content.hidden {
        height: 0;
        overflow: hidden;
    }
    
    /* 手机端：确保settings-header在隐藏状态下没有额外的margin */
    .settings-panel .settings-header {
        margin-bottom: 0;
    }
    
    /* 手机端：当settings内容隐藏时，确保header按钮垂直居中 */
    .settings-panel:has(.settings-content.hidden) .settings-header {
        justify-content: space-between;
        align-items: center;
        text-align: left !important;
    }
    
    .settings-panel h2 {
        color: #4a5568;
        margin: 0;
        font-size: 1.1rem;
    }
    
    /* 强制覆盖所有可能的居中样式 */
    .settings-panel,
    .settings-panel *,
    .settings-header,
    .settings-header * {
        text-align: left !important;
    }
    
    .earnings-amount {
        font-size: 2rem;
    }
    
    .settings-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }
    
    .toggle-btn {
        align-self: flex-end;
    }
    
    .clock-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .clock-header .toggle-btn {
        align-self: flex-end;
    }
    
    /* 当时钟内容隐藏时，确保header按钮垂直居中 */
    .clock-card .clock-container.hidden ~ .clock-header,
    .clock-card .clock-container.hidden + .clock-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }
    
    .clock-card .clock-container.hidden ~ .clock-header .toggle-btn,
    .clock-card .clock-container.hidden + .clock-header .toggle-btn {
        align-self: auto;
    }
    
    /* 更直接的方法：当容器隐藏时，确保header正确显示 */
    .clock-card:has(.clock-container.hidden) .clock-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }
    
    .clock-card:has(.clock-container.hidden) .clock-header .toggle-btn {
        align-self: auto;
    }
    
    /* 钟表响应式设计 */
    .clock-face {
        width: 250px;
        height: 250px;
    }
    
    .clock-number {
        width: 20px;
        height: 20px;
        margin: -10px 0 0 -10px;
        font-size: 0.9rem;
    }
    
    .time-label {
        width: 18px;
        height: 18px;
        margin: -9px 0 0 -9px;
        font-size: 0.5rem;
    }
    
    .income-display {
        width: 60px;
        height: 25px;
        margin: -12.5px 0 0 -30px;
        font-size: 0.8rem;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* 移动端收入数字位置调整 - 覆盖HTML中的内联样式 */
    .income-display[style*="translateY(-120px)"] {
        transform: rotate(0deg) translateY(-105px) !important;
    }
    
    /* 为每个位置设置具体的旋转角度 */
    #income1[style*="translateY(-120px)"] { transform: rotate(30deg) translateY(-105px) !important; }
    #income2[style*="translateY(-120px)"] { transform: rotate(60deg) translateY(-105px) !important; }
    #income3[style*="translateY(-120px)"] { transform: rotate(90deg) translateY(-105px) !important; }
    #income4[style*="translateY(-120px)"] { transform: rotate(120deg) translateY(-105px) !important; }
    #income5[style*="translateY(-120px)"] { transform: rotate(150deg) translateY(-105px) !important; }
    #income6[style*="translateY(-120px)"] { transform: rotate(180deg) translateY(-105px) !important; }
    #income7[style*="translateY(-120px)"] { transform: rotate(210deg) translateY(-105px) !important; }
    #income8[style*="translateY(-120px)"] { transform: rotate(240deg) translateY(-105px) !important; }
    #income9[style*="translateY(-120px)"] { transform: rotate(270deg) translateY(-105px) !important; }
    #income10[style*="translateY(-120px)"] { transform: rotate(300deg) translateY(-105px) !important; }
    #income11[style*="translateY(-120px)"] { transform: rotate(330deg) translateY(-105px) !important; }
    #income12[style*="translateY(-120px)"] { transform: rotate(0deg) translateY(-105px) !important; }
    
    .hour-hand {
        width: 4px;
        height: 50px;
        margin: -50px 0 0 -2px;
    }
    
    .minute-hand {
        width: 2px;
        height: 70px;
        margin: -70px 0 0 -1px;
    }
    
    .second-hand {
        width: 1px;
        height: 80px;
        margin: -80px 0 0 -0.5px;
    }
}

/* 动画效果 */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.earnings-amount {
    animation: pulse 2s infinite;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a67d8;
}

/* 励志语录样式 */
.motivation-card {
    background: white;
    color: #333;
    border: 1px solid #e9ecef;
}

.motivation-card .card-header h3 {
    color: #333;
}

.motivation-card .card-header .toggle-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.motivation-card .card-header .toggle-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.motivation-quote {
    text-align: center;
    padding: 7px 0;
    min-height: 42px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.quote-text {
    font-size: 1.1rem;
    line-height: 1.4;
    font-style: italic;
    color: #333;
    margin: 0;
}

.quote-author {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    margin: 0;
}

.motivation-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.quote-btn {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #e9ecef;
    padding: 10px 15px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.quote-btn:hover {
    background: #e9ecef;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.quote-btn:active {
    transform: translateY(0);
}

.quote-btn.favorited {
    background: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
}

.quote-btn.favorited:hover {
    background: #ff5252;
    border-color: #ff5252;
}

/* 收藏语录按钮特殊样式 */
.quote-btn[title="查看收藏语录"] {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.quote-btn[title="查看收藏语录"]:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* 编辑自定义语录按钮特殊样式 */
.quote-btn[title="编辑自定义语录"] {
    background: #ffc107;
    color: #212529;
    border-color: #ffc107;
}

.quote-btn[title="编辑自定义语录"]:hover {
    background: #e0a800;
    border-color: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

/* 语录切换动画 */
.motivation-quote {
    transition: opacity 0.3s ease;
}

.motivation-quote.fade-out {
    opacity: 0;
}

.motivation-quote.fade-in {
    opacity: 1;
}

/* 响应式设计 - 励志语录 */
@media (max-width: 768px) {
    .motivation-controls {
        gap: 10px;
    }
    
    .quote-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .quote-text {
        font-size: 1rem;
    }
    
    .motivation-quote {
        flex-direction: column;
        gap: 5px;
        min-height: 56px;
    }
    
    .quote-author {
        font-size: 0.8rem;
    }
    
    /* 手机端时间显示优化 */
    .current-time {
        flex-direction: column;
        gap: 4px;
        padding: 10px 12px;
        text-align: center;
        min-width: 120px;
    }
    
    .current-time span {
        font-size: 0.85rem;
        line-height: 1.2;
        font-weight: 400;
    }
    
    /* 手机端时间显示更紧凑的布局 */
    .current-time {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: rgba(248, 249, 250, 0.8);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(233, 236, 239, 0.6);
    }
    
    /* 手机端时间显示优化 - 更简洁的样式 */
    .current-time span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 120px;
    }
    
    /* 手机端时间显示 - 更优雅的布局 */
    .current-time {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        border-radius: 10px;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }
    
    .current-time span:first-child {
        font-weight: 500;
        color: #2d3748;
        max-width: 150px;
    }
    
    .current-time span:last-child {
        font-weight: 400;
        color: #4a5568;
        max-width: 150px;
    }
}

/* 今日工作安排样式 */
.todo-card {
    background: white;
    color: #333;
    border: 1px solid #e9ecef;
}

/* 左侧面板中的今日工作安排特殊样式 */
.left-panel .todo-card {
    margin-top: 0;
    height: auto;
    min-height: auto;
}

.todo-card .card-header h3 {
    color: #333;
}

.todo-card .card-header .toggle-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.todo-card .card-header .toggle-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.todo-input-container {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    margin-top: 4px;
}

#todoInput {
    flex: 1;
    padding: 8px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    height: 36px;
    box-sizing: border-box;
}

#todoInput:focus {
    outline: none;
    border-color: #28a745;
    background: white;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.todo-add-btn {
    background: none;
    color: #6c757d;
    border: 1px solid #dee2e6;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    min-width: 50px;
    height: 36px;
    box-sizing: border-box;
}

.todo-add-btn:hover {
    background: #f8f9fa;
    color: #495057;
    border-color: #adb5bd;
}

.todo-add-btn:active {
    background: #e9ecef;
    transform: scale(0.98);
}

.todo-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 0;
}

.todo-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease;
}

.todo-item:hover {
    background: #e9ecef;
}

.todo-item.completed {
    background: #d4edda;
    border-color: #c3e6cb;
    opacity: 0.7;
}

.todo-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #28a745;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: white;
}

.todo-checkbox.checked {
    background: #28a745;
    color: white;
}

.todo-checkbox.checked::after {
    content: '✓';
    font-size: 14px;
    font-weight: bold;
}

.todo-text {
    flex: 1;
    font-size: 1rem;
    color: #333;
    word-break: break-word;
    transition: all 0.3s ease;
}

.todo-item.completed .todo-text {
    text-decoration: line-through;
    color: #6c757d;
}

.todo-actions {
    display: flex;
    gap: 8px;
}

.todo-edit-btn,
.todo-delete-btn {
    background: none;
    border: none;
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.todo-edit-btn {
    color: #007bff;
}

.todo-edit-btn:hover {
    color: #0056b3;
}

.todo-delete-btn {
    color: #dc3545;
}

.todo-delete-btn:hover {
    color: #c82333;
}

.todo-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    margin-top: 10px;
}

.todo-count {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.todo-clear-btn {
    background: none;
    border: 1px solid #dc3545;
    color: #dc3545;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.todo-clear-btn:hover {
    background: #dc3545;
    color: white;
}

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



/* 项目管理卡片样式 */
.project-card {
    margin-top: 20px;
}

.project-card .card-header h3 {
    color: #333;
    margin: 0;
    transition: color 0.3s ease;
}

.project-card .card-header h3:hover {
    color: #667eea;
}

.project-description {
    margin-bottom: 20px;
}

.project-description p {
    margin: 8px 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.project-actions {
    display: flex;
    justify-content: center;
}

.project-link-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.project-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.project-link-btn:active {
    transform: translateY(0);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 手机端适配 */
@media (max-width: 768px) {
    .todo-input-container {
        flex-direction: column;
        gap: 8px;
    }
    
    .todo-add-btn {
        width: 100%;
        min-width: auto;
    }
    
    .todo-item {
        padding: 6px 12px;
        gap: 10px;
        margin-bottom: 3px;
        min-height: 36px;
        box-sizing: border-box;
    }
    
    .todo-actions {
        gap: 6px;
    }
    
    .todo-edit-btn,
    .todo-delete-btn {
        padding: 8px;
        font-size: 1rem;
    }
    
    .todo-stats {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .todo-actions-group {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .todo-clear-btn {
        width: 100%;
        padding: 10px;
        font-size: 0.9rem;
        justify-content: center;
    }
    
    .project-card {
        margin-top: 15px;
    }
    
    .project-description p {
        font-size: 0.85rem;
    }
    
    .project-link-btn {
        width: 100%;
        padding: 15px;
        font-size: 1rem;
        justify-content: center;
    }
}

 