* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c5aa0;
    --secondary-color: #f39c12;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #3498db;
    --light-bg: #f8f9fa;
    --dark-bg: #2c3e50;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --border-color: #bdc3c7;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
}

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;
    padding: 20px;
    color: var(--text-primary);
}

.calendar-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    overflow: hidden;
    position: relative;
}

/* 状态栏 */
.status-bar {
    background: linear-gradient(90deg, var(--primary-color), #3742fa);
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.work-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.time-display {
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

/* 主日期显示 */
.date-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.date-main {
    display: flex;
    align-items: center;
    gap: 20px;
}

.date-number {
    font-size: 80px;
    font-weight: 900;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.date-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.month-year {
    font-size: 24px;
    font-weight: bold;
}

.weekday {
    font-size: 18px;
    opacity: 0.9;
}

.lunar-date {
    font-size: 14px;
    opacity: 0.8;
}

.weather-widget {
    text-align: center;
    background: rgba(255,255,255,0.2);
    padding: 15px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.weather-icon {
    font-size: 30px;
    margin-bottom: 5px;
}

.weather-temp {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

.weather-desc {
    font-size: 12px;
    opacity: 0.8;
}

/* 摸鱼进度条 */
.moyu-progress {
    background: var(--light-bg);
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: bold;
}

.progress-percent {
    color: var(--primary-color);
    font-size: 18px;
}

.progress-bar {
    position: relative;
    height: 20px;
    background: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success-color), var(--info-color));
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-fish {
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    transition: right 0.5s ease;
}

.progress-tips {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 20px;
}

/* 木鱼敲击区域 */
.muyu-section {
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    margin-top: 15px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.1);
}

.muyu-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
    margin-bottom: 15px;
    transition: transform 0.1s ease;
}

.muyu-container:hover {
    transform: scale(1.05);
}

.muyu-body {
    position: relative;
    width: 120px;
    height: 80px;
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 50%, #cd853f 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.3),
        inset 0 2px 4px rgba(255,255,255,0.3),
        inset 0 -2px 4px rgba(0,0,0,0.2);
    border: 2px solid #654321;
    transition: all 0.1s ease;
}

.muyu-body.knock-animation {
    transform: scale(0.95);
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.3),
        inset 0 2px 4px rgba(255,255,255,0.3),
        inset 0 -2px 4px rgba(0,0,0,0.2);
}

.muyu-text {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.9);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    color: #d63384;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.muyu-text.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}

.muyu-emoji {
    font-size: 24px;
    margin-bottom: 5px;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

.muyu-stick {
    position: absolute;
    top: -20px;
    right: -30px;
    font-size: 20px;
    transform: rotate(45deg);
    transition: all 0.1s ease;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.3));
}

.muyu-stick.knock-animation {
    transform: rotate(45deg) translateX(-5px) translateY(5px);
}

.muyu-sound-waves {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    pointer-events: none;
}

.sound-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #f39c12;
    border-radius: 50%;
    opacity: 0;
    animation: soundWave 0.6s ease-out;
}

@keyframes soundWave {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 150px;
        height: 150px;
        opacity: 0;
    }
}

.muyu-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 10px;
    font-size: 14px;
}

.muyu-counter, .muyu-merit {
    background: rgba(255,255,255,0.7);
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: bold;
    backdrop-filter: blur(5px);
}

.muyu-counter span:nth-child(2),
.muyu-merit span:nth-child(2) {
    color: var(--primary-color);
    font-size: 16px;
}

.muyu-blessing {
    font-size: 13px;
    color: #8b4513;
    font-style: italic;
    opacity: 0.8;
    min-height: 20px;
    transition: all 0.3s ease;
}

.muyu-blessing.blessing-animation {
    color: #d63384;
    font-weight: bold;
    opacity: 1;
    transform: scale(1.05);
}

/* 主内容区 */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
}

.left-panel, .right-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 摸鱼指南 */
.moyu-guide {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.moyu-guide h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 18px;
}

.guide-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guide-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: var(--light-bg);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.guide-item:hover {
    background: #e3f2fd;
    transform: translateX(5px);
}

.guide-item .time {
    font-weight: bold;
    color: var(--primary-color);
    min-width: 50px;
    font-family: 'Courier New', monospace;
}

.guide-item .activity {
    flex: 1;
    color: var(--text-primary);
}

/* 摸鱼金句 */
.moyu-quotes {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}

.moyu-quotes h4 {
    color: var(--text-primary);
    margin-bottom: 15px;
}

.quote-text {
    font-style: italic;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: var(--text-primary);
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.refresh-quote {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.refresh-quote:hover {
    background: #1e3a8a;
    transform: translateY(-2px);
}

/* 倒计时区域 */
.countdown-section {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--warning-color);
}

.countdown-section h3 {
    color: var(--warning-color);
    margin-bottom: 15px;
    font-size: 18px;
}

.countdown-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.countdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--light-bg);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.countdown-item:hover {
    background: #fff3cd;
    transform: scale(1.02);
}

.countdown-label {
    font-weight: 500;
    color: var(--text-primary);
}

.countdown-days {
    font-weight: bold;
    color: var(--danger-color);
    font-size: 18px;
}

.countdown-days.soon {
    color: var(--success-color);
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

/* 摸鱼统计 */
.moyu-stats {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-radius: 15px;
    padding: 20px;
}

.moyu-stats h4 {
    color: var(--text-primary);
    margin-bottom: 15px;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.stat-item {
    text-align: center;
    background: rgba(255,255,255,0.7);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 工具栏 */
.toolbar {
    background: var(--dark-bg);
    padding: 15px 20px;
    display: flex;
    justify-content: space-around;
    gap: 10px;
}

.tool-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 100px;
}

.tool-btn:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 20px;
}

.btn-text {
    font-size: 12px;
}

/* 节气显示 */
.solar-term {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.9);
    padding: 10px 15px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    text-align: center;
    box-shadow: var(--shadow);
}

.term-name {
    font-weight: bold;
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

.term-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 老板模式 */
.boss-mode-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
    display: none;
    padding: 20px;
}

.fake-work-screen {
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Times New Roman', serif;
    line-height: 1.8;
}

.fake-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #333;
    padding-bottom: 20px;
}

.fake-header h2 {
    color: #333;
    margin-bottom: 10px;
}

.fake-date {
    color: #666;
    font-size: 14px;
}

.fake-content {
    margin-bottom: 30px;
}

.fake-content h3 {
    color: #333;
    margin: 20px 0 10px 0;
}

.fake-content p, .fake-content li {
    color: #444;
    margin-bottom: 10px;
}

.fake-content ul {
    margin-left: 20px;
}

.fake-footer {
    text-align: center;
}

.fake-footer button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 15px;
    width: 80%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #aaa;
}

.close:hover {
    color: #333;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .calendar-container {
        border-radius: 15px;
    }
    
    .date-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .date-number {
        font-size: 60px;
    }
    
    .main-content {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .toolbar {
        flex-wrap: wrap;
    }
    
    .tool-btn {
        min-width: 80px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .solar-term {
        position: static;
        margin: 15px;
        display: inline-block;
    }
    
    .muyu-body {
        width: 100px;
        height: 70px;
    }
    
    .muyu-stats {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .date-main {
        flex-direction: column;
        gap: 10px;
    }
    
    .date-number {
        font-size: 48px;
    }
    
    .month-year {
        font-size: 20px;
    }
    
    .guide-item {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    .countdown-item {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --light-bg: #34495e;
        --text-primary: #ecf0f1;
        --text-secondary: #bdc3c7;
        --border-color: #7f8c8d;
    }
    
    body {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    }
    
    .calendar-container {
        background: #2c3e50;
        color: var(--text-primary);
    }
    
    .moyu-guide, .countdown-section {
        background: #34495e;
    }
    
    .guide-item, .countdown-item {
        background: #2c3e50;
    }
}