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

:root {
    /* 颜色系统 */
    --q1-color: #ff3b30;
    --q1-bg: rgba(255, 59, 48, 0.1);
    --q1-border: rgba(255, 59, 48, 0.3);
    
    --q2-color: #34c759;
    --q2-bg: rgba(52, 199, 89, 0.1);
    --q2-border: rgba(52, 199, 89, 0.3);
    
    --q3-color: #ffcc00;
    --q3-bg: rgba(255, 204, 0, 0.1);
    --q3-border: rgba(255, 204, 0, 0.3);
    
    --q4-color: #8e8e93;
    --q4-bg: rgba(142, 142, 147, 0.1);
    --q4-border: rgba(142, 142, 147, 0.3);
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --text-tertiary: #a1a1a6;
    
    --primary-btn: #0071e3;
    --primary-btn-hover: #0077ed;
    --secondary-btn: rgba(0, 0, 0, 0.05);
    --secondary-btn-hover: rgba(0, 0, 0, 0.1);

    /* 字体系统 */
    --font-serif: 'Cormorant Garamond', 'Times New Roman', serif;
    --font-mono: 'SF Mono', 'Roboto Mono', 'Monaco', monospace;
    --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}
/* ==================== 时钟组件 ==================== */
.clock-container {
    display: none;
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 50;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    box-shadow: var(--glass-shadow);
    animation: fadeInRight 0.6s ease-out;
    min-width: 200px;
}

.clock-content {
    text-align: right;
}

.clock-date {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 400;
    margin-bottom: 0.15rem;
    letter-spacing: 0.5px;
}

.clock-weekday {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    font-weight: 400;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

.clock-time {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #1d1d1f 0%, #4a4a4a 50%, #1d1d1f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-mono);
}

/* 电脑端显示时钟 */
@media (min-width: 1025px) {
    .clock-container {
        display: block;
    }
}

/* 电脑端小岛日记按钮 */
.time-review-btn {
    display: none;
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 50;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1rem 1.5rem;
    box-shadow: var(--glass-shadow);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    animation: fadeInLeft 0.6s ease-out;
}

@media (min-width: 1025px) {
    .time-review-btn {
        display: flex;
    }
}

.time-review-btn:hover {
    background: var(--glass-border);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.review-icon {
    font-size: 1.5rem;
}

.review-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 
                 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #f5f5f7 0%, #e8e8ed 50%, #f5f5f7 100%);
    background-size: 400% 400%;
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
    /* 适配刘海屏 Safe Area */
    padding-top: env(safe-area-inset-top);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
}

/* 流体背景动画 */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 182, 193, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(173, 216, 230, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 70%, rgba(255, 240, 245, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(255, 218, 185, 0.08) 0%, transparent 50%);
    animation: fluidBackground 20s ease-in-out infinite;
}

@keyframes fluidBackground {
    0%, 100% {
        transform: translateX(0) translateY(0);
        opacity: 0.8;
    }
    25% {
        transform: translateX(-5%) translateY(-3%);
        opacity: 0.9;
    }
    50% {
        transform: translateX(3%) translateY(5%);
        opacity: 0.7;
    }
    75% {
        transform: translateX(-3%) translateY(-5%);
        opacity: 0.85;
    }
}

/* 噪点纹理 */
.background-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    animation: noisePulse 8s ease-in-out infinite;
}

@keyframes noisePulse {
    0%, 100% {
        opacity: 0.03;
    }
    50% {
        opacity: 0.05;
    }
}
/* 动态背景动画 */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 255, 136, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 59, 48, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 60% 40%, rgba(0, 113, 227, 0.03) 0%, transparent 50%);
    animation: fluidGradient 20s ease-in-out infinite;
}

/* 噪点纹理 */
.background-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

@keyframes fluidGradient {
    0% {
        background-position: 0% 50%, 100% 50%, 0% 100%, 100% 0%;
        opacity: 1;
    }
    25% {
        background-position: 50% 0%, 50% 100%, 100% 0%, 0% 100%;
        opacity: 0.85;
    }
    50% {
        background-position: 100% 50%, 0% 50%, 100% 100%, 0% 0%;
        opacity: 1;
    }
    75% {
        background-position: 50% 100%, 50% 0%, 0% 100%, 100% 0%;
        opacity: 0.85;
    }
    100% {
        background-position: 0% 50%, 100% 50%, 0% 100%, 100% 0%;
        opacity: 1;
    }
}

/* ==================== 毛玻璃效果 ==================== */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    position: relative;
}

.glass-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5),
                inset 0 -1px 1px rgba(0, 0, 0, 0.05);
    z-index: 1;
}

/* ==================== 容器布局 ==================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* ==================== CSS 几何 Logo ==================== */
.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.geometric-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4ff 0%, #00ff88 50%, #00d4ff 100%);
    position: relative;
    animation: logoRotate 8s linear infinite;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.geometric-logo::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
}

.geometric-logo::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* ==================== 页面标题 ==================== */
.header {
    text-align: center;
    margin-bottom: 4.5rem;
    animation: fadeInDown 0.8s ease-out;
    padding-top: 1rem;
}

.welcome-text {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    opacity: 0.6;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1d1d1f 0%, #86868b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.welcome-text {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.brand-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.brand-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #1d1d1f 0%, #4a4a4a 50%, #1d1d1f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.brand-english {
    font-size: 1.8rem;
    font-weight: 400;
    font-family: var(--font-serif);
    letter-spacing: 0.5px;
    font-style: italic;
}

.brand-tagline {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.slogan {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}

.wave-icon {
    display: inline-block;
    background: linear-gradient(135deg, #00d4ff 0%, #00ff88 50%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0, 212, 255, 0.3));
    animation: waveGlow 3s ease-in-out infinite;
}

@keyframes waveGlow {
    0%, 100% {
        filter: drop-shadow(0 2px 4px rgba(0, 212, 255, 0.3));
    }
    50% {
        filter: drop-shadow(0 2px 8px rgba(0, 212, 255, 0.5));
    }
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* ==================== 添加任务表单 ==================== */
.add-task-section {
    margin-bottom: 3rem;
    animation: fadeInDown 0.8s ease-out 0.2s backwards;
}

/* ==================== 今日治愈碎碎念 ==================== */
.zen-murmur {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.6s ease-out 0.15s backwards;
    cursor: pointer;
    transition: all 0.3s ease;
}

.zen-murmur:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.zen-murmur-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.zen-murmur-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 400;
    font-style: italic;
    line-height: 1.5;
}

.zen-murmur-hint {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    font-style: normal;
    opacity: 0.6;
    margin-left: auto;
}

@media (max-width: 768px) {
    .zen-murmur {
        display: flex;
        padding: 0.9rem 1.1rem;
        margin-bottom: 1.2rem;
    }
    
    .zen-murmur-text {
        font-size: 0.9rem;
    }
    
    .zen-murmur-hint {
        display: none;
    }
}

@media (max-width: 480px) {
    .zen-murmur {
        display: flex;
        padding: 0.8rem 1rem;
        margin-bottom: 1rem;
    }
    
    .zen-murmur-text {
        font-size: 0.85rem;
    }
}

/* ==================== 手机端状态栏 ==================== */
.status-bar-mobile {
    display: none;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.5rem !important;
    width: auto;
    min-width: fit-content;
    padding: 0.8rem 1.2rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    animation: fadeInDown 0.6s ease-out 0.25s backwards;
}

.status-bar-time-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.8rem 1.5rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.status-bar-time-current {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.status-bar-date-short {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
    letter-spacing: 0.2px;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.status-bar-diary-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 16px;
    background: rgba(0, 113, 227, 0.1);
    color: var(--primary-btn);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.12);
}

.status-bar-diary-btn:hover {
    background: rgba(0, 113, 227, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.18);
}

/* 手机端显示状态栏 */
@media (max-width: 768px) {
    .status-bar-mobile {
        display: flex;
    }
    
    .status-bar-time-current {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .status-bar-mobile {
        display: flex;
        gap: 1.5rem !important;
        margin-bottom: 1.2rem;
    }
    
    .status-bar-time-left {
        padding: 0.7rem 1.2rem;
    }
    
    .status-bar-time-current {
        font-size: 1.4rem;
    }
    
    .status-bar-date-short {
        font-size: 0.6rem;
    }
    
    .status-bar-diary-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

.input-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
                inset 0 1px 1px rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15),
                inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.task-input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 16px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    font-family: inherit;
}

.task-input:focus {
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.2);
    background: rgba(255, 255, 255, 1);
}

.task-input::placeholder {
    color: var(--text-tertiary);
}

.quadrant-select {
    padding: 0.8rem 2.5rem 0.8rem 1.5rem;
    border: none;
    border-radius: 16px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2386868b' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    min-width: 180px;
    overflow: visible;
}

.quadrant-select:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.quadrant-select:focus {
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.2);
}

.option-icon-btn {
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 16px;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-icon-btn:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

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

.note-input-area {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
    opacity: 0;
    margin-top: 0;
}

.note-input-area.expanded {
    max-height: 200px;
    opacity: 1;
    margin-top: 1rem;
}

.note-textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 16px;
    font-size: 0.9rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    resize: none;
    transition: all 0.3s ease;
    line-height: 1.6;
    min-height: 100px;
}

.note-textarea:focus {
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.2);
    background: rgba(255, 255, 255, 1);
}

.note-textarea::placeholder {
    color: var(--text-tertiary);
}

.task-options-container {
    margin-top: 1rem;
    border-radius: 20px;
    padding: 1rem 1.5rem;
    animation: fadeInUp 0.4s ease-out 0.3s backwards;
}

.task-options {
    display: flex;
    gap: 2rem;
}

.option-btn-light {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border: none;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 400;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.option-btn-light:hover {
    color: var(--primary-btn);
}

.option-btn-light:active {
    transform: scale(0.98);
}

.option-icon {
    font-size: 1rem;
}

.option-text {
    font-size: 0.9rem;
}

.note-input-area {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
    opacity: 0;
    margin-top: 0;
}

.note-input-area.expanded {
    max-height: 200px;
    opacity: 1;
    margin-top: 1rem;
}

.note-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    max-height: 200px;
    transition: all 0.3s ease;
    line-height: 1.6;
}

.note-textarea:focus {
    outline: none;
    box-shadow: 0 4px 16px rgba(0, 113, 227, 0.2);
}

.note-textarea::placeholder {
    color: var(--text-tertiary);
}

/* ==================== 按钮样式 ==================== */
.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-btn);
    color: white;
    box-shadow: 0 4px 16px rgba(0, 113, 227, 0.3);
}

.btn-primary:hover {
    background: var(--primary-btn-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 113, 227, 0.5);
}

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

.btn-secondary {
    background: var(--secondary-btn);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--secondary-btn-hover);
}

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

/* ==================== 四象限面板 ==================== */
.quadrants-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.quadrant-card {
    border-radius: 24px;
    padding: 2rem;
    min-height: 350px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.quadrant-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 24px 24px 0 0;
}

.quadrant-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    pointer-events: none;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.6),
                inset 0 -2px 4px rgba(0, 0, 0, 0.05);
    z-index: 0;
}

.quadrant-card::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    bottom: 1px;
    border-radius: 23px;
    pointer-events: none;
    box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.4);
}

.quadrant-card:hover {
    transform: translateY(-8px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8),
                inset 0 -1px 0 rgba(0, 0, 0, 0.05),
                0 16px 48px rgba(0, 0, 0, 0.15);
}

/* Q1 样式 */
.quadrant-q1 {
    background: linear-gradient(135deg, var(--q1-bg) 0%, rgba(255, 255, 255, 0.6) 100%);
    border: 1px solid var(--q1-border);
}

.quadrant-q1::before {
    background: linear-gradient(90deg, var(--q1-color) 0%, #ff6b5b 100%);
}

/* Q2 样式 */
.quadrant-q2 {
    background: linear-gradient(135deg, var(--q2-bg) 0%, rgba(255, 255, 255, 0.6) 100%);
    border: 1px solid var(--q2-border);
}

.quadrant-q2::before {
    background: linear-gradient(90deg, var(--q2-color) 0%, #5dd882 100%);
}

/* Q3 样式 */
.quadrant-q3 {
    background: linear-gradient(135deg, var(--q3-bg) 0%, rgba(255, 255, 255, 0.6) 100%);
    border: 1px solid var(--q3-border);
}

.quadrant-q3::before {
    background: linear-gradient(90deg, var(--q3-color) 0%, #ffdb4d 100%);
}

/* Q4 样式 */
.quadrant-q4 {
    background: linear-gradient(135deg, var(--q4-bg) 0%, rgba(255, 255, 255, 0.6) 100%);
    border: 1px solid var(--q4-border);
}

.quadrant-q4::before {
    background: linear-gradient(90deg, var(--q4-color) 0%, #a8a8ad 100%);
}

/* ==================== 象限头部 ==================== */
.quadrant-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.quadrant-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.quadrant-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    flex: 1;
    letter-spacing: -0.3px;
}

.task-count {
    background: rgba(0, 0, 0, 0.05);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.quadrant-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* ==================== 任务列表 ==================== */
.task-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.task-list::-webkit-scrollbar {
    width: 6px;
}

.task-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.task-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.task-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.task-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    animation: slideIn 0.4s ease-out;
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

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

.task-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.task-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid var(--text-tertiary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    appearance: none;
    background: white;
    position: relative;
}

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

.task-checkbox:checked {
    background: var(--primary-btn);
    border-color: var(--primary-btn);
}

.task-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.task-content {
    flex: 1;
    font-size: 0.95rem;
    word-break: break-word;
}

.task-item.completed .task-content {
    text-decoration: line-through;
    color: var(--text-tertiary);
}

.task-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.task-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.task-meta-time {
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.4);
    font-weight: 300;
    letter-spacing: 0.3px;
}

.task-meta-note {
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.4);
    font-weight: 300;
    letter-spacing: 0.3px;
}

/* 任务元信息为空时的样式 */
.task-meta-empty {
    color: rgba(0, 0, 0, 0.6);
    font-style: italic;
}

.task-meta-icon {
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.6);
    align-self: flex-start;
}

.task-actions {
    display: flex;
    gap: 0.5rem;
}

.task-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
}

.task-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.task-btn.complete {
    color: var(--q2-color);
}

.task-btn.cancel {
    color: var(--q1-color);
}

.task-btn.edit {
    color: var(--primary-btn);
}

/* 任务更新闪烁动画 */
@keyframes taskUpdateFlash {
    0% {
        background: rgba(0, 113, 227, 0.1);
    }
    50% {
        background: rgba(0, 113, 227, 0.2);
    }
    100% {
        background: rgba(255, 255, 255, 0.9);
    }
}

/* ==================== Toast 提示 ==================== */
.toast-container {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

.toast {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: toastIn 0.4s ease-out;
    pointer-events: auto;
    border: 1px solid rgba(0, 0, 0, 0.08);
    max-width: 500px;
}

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

.toast.success {
    border-left: 4px solid var(--q2-color);
}

.toast.warning {
    border-left: 4px solid var(--q3-color);
}

.toast.alert {
    border-left: 4px solid var(--q1-color);
}

.toast-icon {
    font-size: 1.5rem;
}

.toast-message {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* ==================== 模态框 ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

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

.modal-container {
    width: 90%;
    max-width: 600px;
    border-radius: 24px;
    padding: 2.5rem;
    animation: modalSlideIn 0.4s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.modal-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

.modal-body {
    margin-bottom: 2rem;
}

.modal-task-info {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

#journalTextarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    resize: none;
    transition: all 0.3s ease;
    line-height: 1.6;
}

#journalTextarea:focus {
    outline: none;
    box-shadow: 0 4px 16px rgba(0, 113, 227, 0.2);
}

#journalTextarea::placeholder {
    color: var(--text-tertiary);
}

.ai-response {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.1) 0%, rgba(0, 113, 227, 0.1) 100%);
    border-radius: 16px;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.6;
    display: none;
    animation: fadeIn 0.5s ease;
}

.ai-response.active {
    display: block;
}

.ai-response::before {
    content: '🤖 AI 伴侣：';
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* ==================== 动画效果 ==================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1024px) {
    .container {
        padding: 1.5rem;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .quadrants-grid {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .brand-title {
        font-size: 2rem;
    }
    
    .brand-english {
        font-size: 1.4rem;
    }
    
    .brand-tagline {
        font-size: 0.9rem;
    }
    
    .slogan {
        font-size: 0.85rem;
    }
    
    .clock-container {
        top: 1rem;
        right: 1rem;
        padding: 1rem 1.25rem;
        min-width: 140px;
    }
    
    .clock-time {
        font-size: 1.8rem;
    }
    
    .clock-date {
        font-size: 0.65rem;
    }
    
    .clock-weekday {
        font-size: 0.7rem;
    }
    
    .input-row {
        flex-wrap: wrap;
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .task-input {
        width: 100%;
        min-width: unset;
        flex: 1 1 100%;
    }
    
    .quadrant-select {
        width: 100%;
        min-width: unset;
        flex: 1 1 100%;
    }
    
    /* 按钮容器，让按钮并排显示 */
    .input-row > .option-icon-btn,
    .input-row > #addTaskBtn {
        flex: 1 1 auto;
        min-width: calc(33.333% - 0.35rem);
        max-width: calc(33.333% - 0.35rem);
    }
    
    .option-icon-btn {
        padding: 0.75rem;
        font-size: 1.3rem;
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 12px;
    }

    /* 在768px以下显示按钮文字 */
    .option-icon-btn::after {
        content: attr(data-text);
        font-size: 0.8rem;
        font-weight: 500;
        color: var(--text-secondary);
        margin-left: 0.4rem;
    }
    
    /* 添加任务按钮在手机端不显示额外文字 */
    #addTaskBtn::after {
        content: '';
        margin-left: 0;
    }

    .quadrants-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .quadrant-card {
        padding: 1.5rem;
        min-height: 320px;
    }
    
    .quadrant-header h2 {
        font-size: 1.2rem;
    }
    
    .modal-container,
    .edit-task-container {
        padding: 2rem;
        width: 95%;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .modal-footer,
    .edit-task-footer {
        flex-direction: column;
    }
    
    .modal-footer button,
    .edit-task-footer button {
        width: 100%;
    }
    
    /* 加大手机端按钮点击区域 */
    .task-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
        min-width: 44px;
        min-height: 44px;
    }
    
    /* 手机端操作按钮纵向排列 */
    .task-actions {
        flex-direction: column;
        gap: 0.4rem;
        flex-shrink: 0;
        min-width: 44px;
    }
    
    .task-btn {
        padding: 0.5rem;
        font-size: 1rem;
        min-width: 40px;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* 调整任务内容区域宽度，留出空间给按钮 */
    .task-content-wrapper {
        flex: 1;
        min-width: 0;
        padding-right: 0.5rem;
    }
    
    /* 隐藏横向滚动条 */
    .task-list {
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE 10+ */
    }
    
    .task-list::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    
    /* 性能优化：降低毛玻璃模糊度 */
    .glass-effect,
    .clock-container,
    .trash-icon,
    .modal-container,
    .edit-task-container,
    .journal-container,
    .date-picker-content {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    /* 垃圾箱适配 */
    .trash-container {
        bottom: 5rem;
    }
    
    /* 署名适配 */
    .designer-signature {
        bottom: 0.3rem;
        right: 0.5rem;
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }
    
    .header h1 {
        font-size: 1.75rem;
    }
    
    .brand-title {
        font-size: 1.75rem;
    }
    
    .brand-english {
        font-size: 1.2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .quadrant-card {
        padding: 1.25rem;
        min-height: 280px;
    }
    
    .quadrant-header h2 {
        font-size: 1.1rem;
    }
    
    .modal-container,
    .edit-task-container {
        padding: 1.5rem;
        width: 93%;
    }
    
    /* 时钟进一步缩小 */
    .clock-container {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.75rem 1rem;
        min-width: 120px;
    }
    
    .clock-time {
        font-size: 1.5rem;
    }
    
    .clock-date {
        font-size: 0.6rem;
    }
    
    .clock-weekday {
        font-size: 0.65rem;
    }
    
    /* 垃圾箱进一步下沉，为署名留出空间 */
    .trash-container {
        bottom: 6rem;
        transform: translateX(-50%) scale(0.9);
    }
    
    .trash-container.active {
        transform: translateX(-50%) scale(1.05);
    }
    
    /* 署名调整，确保不被垃圾桶遮挡 */
    .designer-signature {
        bottom: 0.2rem;
        right: 0.3rem;
        font-size: 8px;
        letter-spacing: 0.3px;
    }
}

/* ==================== 辅助类 ==================== */
.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.empty-state-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

/* ==================== 垃圾箱组件 ==================== */
.trash-container {
    position: fixed;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.6;
    transition: all 0.3s ease;
    pointer-events: none;
}

.trash-container.active {
    opacity: 1;
    transform: translateX(-50%) scale(1.15);
}

.trash-container.drag-over {
    opacity: 1;
    transform: translateX(-50%) scale(1.4);
}

.trash-icon {
    font-size: 3rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08),
                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transition: all 0.3s ease;
    animation: trashPulseGlow 3s ease-in-out infinite;
}

@keyframes trashPulseGlow {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15),
                    0 0 0 0 rgba(0, 113, 227, 0);
    }
    50% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15),
                    0 0 20px 5px rgba(0, 113, 227, 0.1);
    }
}

.trash-icon {
    font-size: 3rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.trash-container.drag-over .trash-icon {
    background: rgba(255, 59, 48, 0.2);
    border-color: var(--q1-color);
    box-shadow: 0 0 40px rgba(255, 59, 48, 0.6), 0 0 20px rgba(255, 59, 48, 0.4);
    animation: trashPulse 0.5s ease-in-out infinite;
}

@keyframes trashPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 40px rgba(255, 59, 48, 0.6), 0 0 20px rgba(255, 59, 48, 0.4);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 0 60px rgba(255, 59, 48, 0.8), 0 0 30px rgba(255, 59, 48, 0.6);
    }
}

.trash-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

/* ==================== 时光日记本模态框 ==================== */
.journal-container {
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    border-radius: 24px;
    padding: 2.5rem;
    animation: modalSlideIn 0.4s ease;
    display: flex;
    flex-direction: column;
}

.journal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.journal-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.journal-content {
    flex: 1;
    overflow-y: auto;
    padding-right: 1rem;
    margin-bottom: 1.5rem;
}

.journal-content::-webkit-scrollbar {
    width: 6px;
}

.journal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.journal-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.journal-entry {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-btn);
    transition: all 0.3s ease;
    animation: fadeInUp 0.4s ease-out;
}

.journal-entry:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.journal-date {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.journal-task {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.journal-quadrant {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.journal-quadrant.q1 {
    background: var(--q1-bg);
    color: var(--q1-color);
    border: 1px solid var(--q1-border);
}

.journal-quadrant.q2 {
    background: var(--q2-bg);
    color: var(--q2-color);
    border: 1px solid var(--q2-border);
}

.journal-quadrant.q3 {
    background: var(--q3-bg);
    color: var(--q3-color);
    border: 1px solid var(--q3-border);
}

.journal-quadrant.q4 {
    background: var(--q4-bg);
    color: var(--q4-color);
    border: 1px solid var(--q4-border);
}

.journal-feeling {
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
}

.journal-feeling-label {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.journal-feeling-content {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.journal-ai-response {
    padding: 1rem;
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.08) 0%, rgba(0, 113, 227, 0.08) 100%);
    border-radius: 12px;
}

.journal-ai-response-label {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.journal-ai-response-content {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.journal-footer {
    display: flex;
    justify-content: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.journal-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-tertiary);
}

.journal-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.journal-empty-text {
    font-size: 1rem;
}

/* ==================== 任务详情弹窗 ==================== */
.task-detail-popover {
    position: fixed;
    z-index: 3000;
    display: none;
    animation: popoverFadeIn 0.3s ease;
}

.task-detail-popover.active {
    display: block;
}

@keyframes popoverFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.popover-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    min-width: 320px;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.popover-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.popover-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.popover-close {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popover-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

.popover-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popover-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.popover-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-tertiary);
}

.popover-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    user-select: text;
    -webkit-user-select: text;
    cursor: text;
}

.popover-note-content {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.6;
    word-break: break-word;
    white-space: pre-wrap;
    user-select: text;
    -webkit-user-select: text;
    cursor: text;
}

.popover-note-content a {
    color: var(--primary-btn);
    text-decoration: none;
    transition: color 0.2s ease;
}

.popover-note-content a:hover {
    color: var(--primary-btn-hover);
    text-decoration: underline;
}

/* ==================== 拖拽效果 ==================== */
.task-item.dragging {
    opacity: 0.7;
    transform: rotate(-3deg) scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2) !important;
    cursor: grabbing;
    z-index: 1000;
    border: 2px dashed var(--primary-btn);
}

.task-list.drag-over {
    background: rgba(0, 113, 227, 0.05);
    border-radius: 12px;
    padding: 0.5rem;
}

/* ==================== 响应式设计更新 ==================== */
@media (max-width: 768px) {
    /* 隐藏电脑端的时钟和日记按钮 */
    .clock-container,
    .time-review-btn {
        display: none !important;
    }
    
    /* 手机端时光回顾按钮（在status-bar-mobile中的按钮） */
    .status-bar-diary-btn {
        display: flex;
    }
    
    /* 隐藏电脑端小岛日记按钮 */
    #desktopDiaryBtn {
        display: none;
    }
}

@media (max-width: 480px) {
    .time-review-btn {
        top: 0.5rem;
        left: 0.5rem;
        padding: 0.7rem 1rem;
        white-space: nowrap;
        min-width: fit-content;
    }

    /* 手机端时光回顾按钮显示完整文字 */
    .review-text {
        display: inline;
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--text-primary);
    }

    .review-icon {
        font-size: 1.3rem;
    }

    .trash-container {
        bottom: 1.5rem;
    }

    .trash-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    /* 手机端输入区按钮改为图标+文字，并排显示 */
    .option-icon-btn {
        padding: 0.6rem 0.5rem;
        font-size: 1rem;
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 12px;
        min-width: auto;
        flex: 1 1 auto;
        justify-content: center;
        font-size: 0.85rem;
    }

    .option-icon-btn::after {
        content: attr(data-text);
        font-size: 0.65rem;
        font-weight: 500;
        color: var(--text-secondary);
        margin-left: 0.3rem;
    }
    
    /* 添加任务按钮不显示额外文字 */
    #addTaskBtn {
        padding: 0.6rem 0.5rem;
        font-size: 0.85rem;
    }
    
    #addTaskBtn::after {
        content: '';
        margin-left: 0;
    }

    /* 手机端任务卡片按钮调大 */
    .task-btn {
        padding: 0.5rem;
        font-size: 0.95rem;
        min-width: 36px;
        min-height: 36px;
    }
    
    /* 手机端操作按钮纵向排列优化 */
    .task-actions {
        flex-direction: column;
        gap: 0.3rem;
        flex-shrink: 0;
        min-width: 36px;
    }
    
    .task-btn {
        padding: 0.4rem;
        font-size: 0.9rem;
        min-width: 32px;
        min-height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
}

@media (max-width: 768px) {
    .clock-container {
        position: static;
        margin-bottom: 1rem;
        text-align: center;
    }

    .clock-content {
        text-align: center;
    }

    .time-review-btn {
        position: static;
        width: 100%;
        justify-content: center;
        margin-bottom: 1rem;
    }

    .trash-container {
        bottom: 1rem;
    }

    .journal-container {
        padding: 1.5rem;
        max-height: 90vh;
    }

    .task-detail-popover.active {
        position: fixed;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
    }

    .popover-content {
        min-width: 280px;
        max-width: 90vw;
    }
}

/* ==================== 私人署名彩蛋 ==================== */
.designer-signature {
    position: fixed;
    bottom: 0.5rem;
    right: 0.75rem;
    font-size: 10px;
    color: rgba(0, 0, 0, 0.5);
    font-weight: 400;
    letter-spacing: 0.5px;
    pointer-events: none;
    z-index: 45;
    font-family: 'Cormorant Garamond', var(--font-serif);
    font-style: italic;
}

/* ==================== 编辑任务模态框 ==================== */
.edit-task-container {
    width: 90%;
    max-width: 600px;
    border-radius: 24px;
    padding: 2.5rem;
    animation: modalSlideIn 0.4s ease;
}

.edit-task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 1rem;
}

.edit-task-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-serif);
    margin: 0;
}

.edit-task-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.edit-task-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.edit-task-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.edit-task-input,
.edit-task-textarea {
    padding: 0.875rem 1.25rem;
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05),
                inset 0 1px 1px rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.edit-task-input:focus,
.edit-task-textarea:focus {
    outline: none;
    box-shadow: 0 4px 16px rgba(0, 113, 227, 0.2),
                inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.edit-task-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.edit-task-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* ==================== macOS风格日期选择器 ==================== */
.date-picker-popover {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4000;
    display: none;
    animation: popoverFadeIn 0.3s ease;
}

.date-picker-popover.active {
    display: block;
}

@keyframes popoverFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.date-picker-content {
    width: 320px;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.date-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.date-picker-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.date-picker-close {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.date-picker-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

.date-picker-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.date-picker-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.date-picker-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.date-picker-input {
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-family: inherit;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.date-picker-input:focus {
    outline: none;
    box-shadow: 0 4px 16px rgba(0, 113, 227, 0.2);
}

.date-picker-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}