:root {
    --primary-color: #6b7cff;
    --secondary-color: #50e3c2;
    --bg-color: #e0e5ec;
    --card-bg: #e0e5ec;
    --text-color: #4a5568;
    --text-light: #718096;
    --border-color: #cbd5e0;
    --shadow-light: #ffffff;
    --shadow-dark: #a3b1c6;
    --radius: 16px;

    --success-color: #48bb78;
    --warning-color: #ecc94b;
    --danger-color: #f56565;
    --disabled-color: #cbd5e0;

    /* Neumorphism shadows */
    --neu-shadow-out: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
    --neu-shadow-in: inset 5px 5px 10px var(--shadow-dark), inset -5px -5px 10px var(--shadow-light);
    --neu-shadow-sm: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
    --neu-shadow-in-sm: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
}

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

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

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

/* Hide scrollbar globally but keep functionality */
::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 8px;
}

.header h1 {
    font-size: 32px;
    color: var(--primary-color);
    font-weight: 700;
}

.date-info {
    font-size: 16px;
    color: var(--text-light);
}

/* Daily Quote Banner */
.daily-quote-banner {
    position: relative;
    background: var(--bg-color);
    padding: 12px 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: auto;
    box-shadow: none;
    border: none;
}

.quote-banner-content {
    flex: 1;
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.quote-banner-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
    transition: opacity 0.3s ease-in-out;
}

.quote-banner-author {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
    font-style: italic;
    transition: opacity 0.3s ease-in-out;
}

.quote-refresh-btn {
    background: var(--bg-color);
    border: none;
    color: var(--primary-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    margin-left: 12px;
    box-shadow: var(--neu-shadow-sm);
}

.daily-quote-banner:hover .quote-refresh-btn {
    opacity: 1;
}

.quote-refresh-btn:hover {
    box-shadow: var(--neu-shadow-out);
    transform: rotate(90deg);
}

/* Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 320px 400px auto;
    gap: 24px;
}

/* 记账和热点新闻卡片容器 - 占满整行，在第3行 */
.accounting-news-wrapper {
    grid-column: 1 / 4;
    grid-row: 3;
    display: flex;
    gap: 24px;
}

.accounting-card,
.news-card {
    flex: 1;
    min-width: 0;
}

/* Responsive Grid */
@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .accounting-news-wrapper {
        grid-column: 1 / 3;
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Card Common Styles */
.card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--neu-shadow-out);
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.card:hover {
    box-shadow: var(--neu-shadow-out);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(163, 177, 198, 0.3);
}

.card-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-body {
    flex: 1;
}

.todo-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: visible;
}

.mood-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: visible;
}

.mood-input-area {
    flex-shrink: 0;
}

/* Specific Modules Styles */

/* 1. Health Stats */
.health-card {
    grid-column: 2 / 3;
    grid-row: 1;
}

.health-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.health-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.2s;
}

.health-item:active {
    transform: scale(0.95);
}

.icon-circle {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: rgba(163, 177, 198, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    box-shadow: 2px 2px 4px rgba(163, 177, 198, 0.1), -2px -2px 4px rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.icon-circle:hover,
.health-item.active .icon-circle {
    background: var(--bg-color);
    color: rgba(255, 255, 255, 1);
    box-shadow: var(--neu-shadow-out);
    transform: translateY(-2px);
}

.icon-circle:active {
    box-shadow: var(--neu-shadow-in);
    transform: translateY(0);
}

/* Water - 喝水 */
.icon-circle.water:hover,
.health-item.water.active .icon-circle {
    color: #5eb0ff;
}

/* Toilet - 如厕 */
.icon-circle.toilet:hover,
.health-item.toilet.active .icon-circle {
    color: #b8f0ed;
}

/* Exercise - 运动 */
.icon-circle.exercise:hover,
.health-item.exercise.active .icon-circle {
    color: #ffa8aa;
}

.count {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
}

.label {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

.status-text {
    display: none;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.status-text.done {
    color: var(--success-color);
    font-weight: bold;
}

/* 2. Todo List */
.todo-card {
    grid-column: 1 / 2;
    grid-row: 1 / span 2; /* 独占左侧，跨两行 */
}

.todo-stats {
    font-size: 12px;
    color: var(--text-light);
}

.stat-item {
    margin-left: 8px;
}
.stat-item b {
    color: var(--primary-color);
}

.todo-input-group {
    display: flex;
    gap: 12px;
    margin: 8px 0 16px 0;
    flex-shrink: 0;
}

.todo-input-group input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    background: var(--bg-color);
    box-shadow: var(--neu-shadow-in);
    outline: none;
    color: var(--text-color);
    font-size: 14px;
    transition: all 0.3s ease;
}

.todo-input-group input:focus {
    box-shadow: var(--neu-shadow-in), 0 0 0 2px rgba(107, 124, 255, 0.1);
}

.todo-input-group input::placeholder {
    color: var(--text-light);
}

.btn-add {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--bg-color);
    color: var(--primary-color);
    border-radius: 12px;
    cursor: pointer;
    box-shadow: var(--neu-shadow-out);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-add:hover {
    box-shadow: var(--neu-shadow-sm);
    transform: translateY(-1px);
}

.btn-add:active {
    box-shadow: var(--neu-shadow-in-sm);
    transform: translateY(0);
}

.todo-list-container {
    flex: 1;
    overflow-y: auto;
    min-height: 200px;
}

.todo-list {
    list-style: none;
}

/* Todo Empty Placeholder */
.todo-empty-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--text-light);
    font-size: 14px;
    text-align: center;
}

.todo-empty-placeholder span {
    opacity: 0.7;
    font-style: italic;
}

.todo-item {
    display: flex;
    align-items: center;
    padding: 12px 8px 12px 0;
    border-bottom: 1px solid rgba(163, 177, 198, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.todo-content-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
}

.todo-view,
.todo-edit {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;
}

.todo-view.hidden,
.todo-edit.hidden {
    display: none;
}

.todo-actions {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.todo-item:hover .todo-actions {
    opacity: 1;
}

.todo-edit .todo-actions {
    opacity: 1;
}

.btn-edit {
    background: var(--bg-color);
    border: none;
    color: #718096;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--neu-shadow-sm);
    transition: all 0.2s ease;
    font-size: 12px;
}

.btn-edit:hover {
    color: var(--primary-color);
    box-shadow: var(--neu-shadow-out);
    transform: translateY(-1px);
}

.btn-save {
    background: var(--bg-color);
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--neu-shadow-sm);
    transition: all 0.2s ease;
    font-size: 12px;
}

.btn-save:hover {
    box-shadow: var(--neu-shadow-out);
    transform: translateY(-1px);
}

.btn-cancel {
    background: var(--bg-color);
    border: none;
    color: #718096;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--neu-shadow-sm);
    transition: all 0.2s ease;
    font-size: 12px;
}

.btn-cancel:hover {
    color: var(--danger-color);
    box-shadow: var(--neu-shadow-out);
    transform: translateY(-1px);
}

.todo-checkbox {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.todo-text {
    flex: 1;
    font-size: 14px;
    color: var(--text-color);
}

.todo-item.completed .todo-text {
    color: var(--text-light);
    text-decoration: line-through;
}

.btn-delete {
    background: var(--bg-color);
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--neu-shadow-sm);
    position: relative;
    z-index: 5;
    margin-right: 4px;
}

.todo-item:hover .btn-delete {
    opacity: 1;
}

.btn-delete:hover {
    box-shadow: var(--neu-shadow-out);
    transform: translateY(-1px);
}

/* Todo Date Grouping */
.todo-date-group {
    margin-bottom: 20px;
}

.todo-date-header {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(163, 177, 198, 0.2);
    padding-bottom: 6px;
    font-weight: 500;
}

.date-picker-sm {
    padding: 10px 14px;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    color: var(--text-color);
    background: var(--bg-color);
    box-shadow: var(--neu-shadow-in);
    cursor: pointer;
    transition: all 0.3s ease;
}

.date-picker-sm:focus {
    box-shadow: var(--neu-shadow-in), 0 0 0 2px rgba(107, 124, 255, 0.1);
    outline: none;
}

/* 3. Holiday Countdown */
.holiday-card {
    grid-column: 3 / 4;
    grid-row: 1;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.holiday-card .card-header {
    border-bottom-color: rgba(255,255,255,0.2);
}
.holiday-card .card-header h2 {
    color: white;
}

.holiday-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.countdown-text {
    font-size: 14px;
    opacity: 0.9;
}

.highlight {
    font-weight: bold;
    color: #ffd700;
}

.countdown-number {
    font-size: 64px;
    font-weight: bold;
    line-height: 1;
    margin: 16px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.countdown-unit {
    font-size: 18px;
    opacity: 0.8;
}

.holiday-date {
    margin-top: 12px;
    font-size: 12px;
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 12px;
}

/* 4. Daily Word */
.word-card {
    grid-column: 2 / 3;
    grid-row: 2;
}

.word-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.word-spelling {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 4px;
    transition: opacity 0.2s ease-in-out;
}

.word-phonetic {
    font-family: 'Times New Roman', serif;
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 12px;
    transition: opacity 0.2s ease-in-out;
}

.word-meaning {
    font-size: 16px;
    margin-bottom: 20px;
    color: #555;
    transition: opacity 0.2s ease-in-out;
}

.word-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg-color);
    box-shadow: var(--neu-shadow-out);
    cursor: pointer;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    box-shadow: var(--neu-shadow-sm);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.btn-icon:active {
    box-shadow: var(--neu-shadow-in-sm);
    transform: translateY(0);
}

.btn-icon.active {
    color: var(--primary-color);
    box-shadow: var(--neu-shadow-out);
}

.btn-primary {
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 6px 6px 12px rgba(107, 124, 255, 0.3), -6px -6px 12px var(--shadow-light);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 8px 8px 16px rgba(107, 124, 255, 0.4), -8px -8px 16px var(--shadow-light);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.2), inset -4px -4px 8px rgba(255, 255, 255, 0.1);
}

/* Neumorphism 图标按钮 */
.btn-icon-neu {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg-color);
    color: #718096;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: var(--neu-shadow-sm);
}

.btn-icon-neu:hover {
    color: var(--primary-color);
    box-shadow: var(--neu-shadow-out);
    transform: translateY(-1px);
}

.btn-icon-neu:active {
    box-shadow: var(--neu-shadow-in);
    transform: translateY(0);
}

.btn-secondary {
    padding: 10px 20px;
    background: var(--bg-color);
    color: var(--text-color);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    box-shadow: var(--neu-shadow-out);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    box-shadow: var(--neu-shadow-sm);
    transform: translateY(-1px);
}

.btn-secondary:active {
    box-shadow: var(--neu-shadow-in-sm);
    transform: translateY(0);
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-text:hover {
    background: rgba(107, 124, 255, 0.1);
}

.btn-back {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Vocab Book */
.hidden {
    display: none;
}

.vocab-list {
    list-style: none;
    flex: 1;
}

.vocab-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.vocab-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.vocab-word {
    font-weight: bold;
    font-size: 16px;
    color: var(--primary-color);
}

.vocab-phonetic {
    font-family: 'Times New Roman', serif;
    color: var(--text-light);
    font-size: 13px;
}

.vocab-meaning {
    color: #666;
    margin-left: 8px;
}

.vocab-actions {
    display: flex;
    gap: 8px;
    padding-right: 10px;
}

.btn-icon-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--bg-color);
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s ease;
    box-shadow: var(--neu-shadow-sm);
}

.btn-icon-sm:hover {
    box-shadow: var(--neu-shadow-out);
    transform: translateY(-1px);
}

.btn-icon-sm:active {
    box-shadow: var(--neu-shadow-in);
    transform: translateY(0);
}

.btn-delete-vocab {
    color: var(--danger-color);
}

.btn-delete-vocab:hover {
    color: var(--danger-color);
}

/* 5. Mood Diary */
.mood-card {
    grid-column: 3 / 4;
    grid-row: 2;
}

.mood-selector {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 8px 10px 0 10px;
}

.mood-selector label {
    cursor: pointer;
}

.mood-selector input {
    display: none;
}

.mood-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transition: all 0.3s ease;
}

.mood-icon {
    font-size: 24px;
    color: #cbd5e0;
    transition: color 0.3s ease;
}

/* Happy - 开心 */
.mood-icon-wrapper.happy:hover .mood-icon {
    color: #f1c40f;
}
input:checked + .mood-icon-wrapper.happy .mood-icon {
    color: #f1c40f;
}

/* Normal - 正常 */
.mood-icon-wrapper.normal:hover .mood-icon {
    color: #3498db;
}
input:checked + .mood-icon-wrapper.normal .mood-icon {
    color: #3498db;
}

/* Sad - 伤心 */
.mood-icon-wrapper.sad:hover .mood-icon {
    color: #95a5a6;
}
input:checked + .mood-icon-wrapper.sad .mood-icon {
    color: #95a5a6;
}

/* Angry - 生气 */
.mood-icon-wrapper.angry:hover .mood-icon {
    color: #e74c3c;
}
input:checked + .mood-icon-wrapper.angry .mood-icon {
    color: #e74c3c;
}

/* Tired - 疲惫 */
.mood-icon-wrapper.tired:hover .mood-icon {
    color: #9b59b6;
}
input:checked + .mood-icon-wrapper.tired .mood-icon {
    color: #9b59b6;
}

/* Hover 状态 - 凸起效果 */
.mood-icon-wrapper:hover {
    box-shadow: var(--neu-shadow-out);
    transform: translateY(-2px);
}

/* Checked 状态 - 凸起效果 */
input:checked + .mood-icon-wrapper {
    box-shadow: var(--neu-shadow-out);
    transform: translateY(-2px);
}

.mood-text-group {
    display: flex;
    gap: 12px;
    margin: 8px 0 20px 0;
}

.mood-text-group input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    background: var(--bg-color);
    box-shadow: var(--neu-shadow-in);
    outline: none;
    color: var(--text-color);
    font-size: 14px;
    transition: all 0.3s ease;
}

.mood-text-group input:focus {
    box-shadow: var(--neu-shadow-in), 0 0 0 2px rgba(107, 124, 255, 0.1);
}

.btn-save {
    padding: 10px 20px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    box-shadow: 6px 6px 12px rgba(80, 227, 194, 0.3), -6px -6px 12px var(--shadow-light);
    transition: all 0.3s ease;
}

.btn-save:hover {
    transform: translateY(-1px);
    box-shadow: 8px 8px 16px rgba(80, 227, 194, 0.4), -8px -8px 16px var(--shadow-light);
}

.btn-save:active {
    transform: translateY(0);
    box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.2), inset -4px -4px 8px rgba(255, 255, 255, 0.1);
}

.mood-list-container {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

/* Mood Empty Placeholder */
.mood-empty-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--text-light);
    font-size: 14px;
    text-align: center;
    min-height: 60px;
}

.mood-empty-placeholder span {
    opacity: 0.7;
    font-style: italic;
}

.full-height {
    height: 100%;
}

.mood-entry {
    display: flex;
    align-items: flex-start;
    padding: 14px 8px;
    border-bottom: 1px solid rgba(163, 177, 198, 0.2);
    position: relative;
    transition: all 0.3s ease;
    margin: 0;
}

.mood-entry:hover {
    background: rgba(107, 124, 255, 0.03);
    border-radius: 8px;
}

.entry-icon {
    font-size: 20px;
    margin-right: 12px;
    margin-top: 2px;
}

.entry-content {
    flex: 1;
    min-width: 0; /* Prevent text overflow */
}

.entry-view {
    display: block;
}

.entry-edit {
    display: none;
}

.entry-edit.hidden {
    display: none;
}

.entry-view.hidden {
    display: none;
}

.entry-edit:not(.hidden) {
    display: block;
}

.entry-view:not(.hidden) {
    display: block;
}

.entry-text {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.entry-text.editing {
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--bg-color);
    box-shadow: var(--neu-shadow-in);
    outline: none;
    min-height: 40px;
}

/* Neumorphism 小尺寸输入框 */
.neu-input-sm {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: none;
    border-radius: 10px;
    background: var(--bg-color);
    color: var(--text-color);
    box-shadow: var(--neu-shadow-in);
    outline: none;
    transition: all 0.3s ease;
}

.neu-input-sm:focus {
    box-shadow: var(--neu-shadow-in);
}

.neu-input-sm::placeholder {
    color: var(--text-light);
}

/* 编辑容器 - 包含输入框和按钮 */
.edit-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
}

.edit-textarea {
    width: 100%;
    min-height: 60px;
    max-height: 200px;
    padding: 10px 14px;
    font-size: 14px;
    border: none;
    border-radius: 10px;
    background: var(--bg-color);
    color: var(--text-color);
    box-shadow: var(--neu-shadow-in);
    outline: none;
    transition: all 0.3s ease;
    resize: none;
    overflow-y: auto;
    line-height: 1.5;
    font-family: inherit;
}

.edit-textarea:focus {
    box-shadow: var(--neu-shadow-in);
}

.edit-textarea::placeholder {
    color: var(--text-light);
}

.edit-actions-inline {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

.edit-actions-inline .btn-save,
.edit-actions-inline .btn-cancel {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s ease;
    background: var(--bg-color);
    color: #718096;
    box-shadow: var(--neu-shadow-sm);
}

.edit-actions-inline .btn-cancel:hover {
    box-shadow: var(--neu-shadow-out);
    color: var(--text-color);
}

.edit-actions-inline .btn-save {
    background: var(--bg-color);
    color: #48bb78;
    box-shadow: var(--neu-shadow-sm);
}

.edit-actions-inline .btn-save:hover {
    box-shadow: var(--neu-shadow-out);
    color: #38a169;
}

/* Action 按钮组显示/隐藏 */
.action-view {
    display: flex;
    gap: 4px;
}

.action-edit {
    display: none;
}

.action-view.hidden {
    display: none;
}

.action-edit.hidden {
    display: none;
}

.action-edit:not(.hidden) {
    display: flex;
    gap: 4px;
}

.entry-date {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

/* Mood Actions */
.mood-actions {
    position: absolute;
    right: 8px;
    top: 12px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: transparent;
    padding: 4px;
    border-radius: 8px;
}

.mood-entry:hover .mood-actions,
.mood-entry:has(.action-edit:not(.hidden)) .mood-actions {
    opacity: 1;
}

.btn-action-mood {
    background: var(--bg-color);
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 6px;
    transition: all 0.3s ease;
    border-radius: 6px;
    box-shadow: var(--neu-shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-action-mood:hover {
    box-shadow: var(--neu-shadow-out);
    transform: translateY(-1px);
}

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

.btn-delete-mood {
    color: var(--danger-color);
}

.btn-submit-mood {
    color: #10b981;
}

.btn-cancel-mood {
    color: #6b7280;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(163, 177, 198, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--bg-color);
    width: 90%;
    max-width: 600px;
    height: 80%;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    padding: 24px;
    box-shadow: 12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light);
    border: 1px solid rgba(163, 177, 198, 0.3);
    position: relative;
}


/* Modal overlay for quick accounting modal */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}/* Quiz mode - wider modal */
.modal-content.quiz-mode {
    width: 1000px !important;
    max-width: 1000px !important;
    height: auto !important;
    max-height: 60vh !important;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.btn-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-light);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 0 16px 30px 16px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

/* 确认弹窗样式 */
.modal-confirm {
    max-width: 400px !important;
    height: auto !important;
    max-height: none !important;
}

.modal-confirm .modal-body {
    padding: 0 24px 20px 24px !important;
    text-align: center;
    min-height: auto !important;
    display: block !important;
    flex: none !important;
    overflow: visible !important;
}

.modal-confirm .modal-body p {
    color: #a3b1c6 !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 30px;
    word-break: break-word;
}

#confirm-message:empty:before {
    content: "确认操作";
    color: #999;
}

#confirm-message {
    color: #a3b1c6 !important;
    font-size: 15px !important;
    min-height: 40px;
    display: block !important;
}

.modal-confirm .modal-footer {
    padding: 16px 24px;
}

.modal-confirm .modal-footer button {
    min-width: 80px;
}

/* View Switch in Modal */
.view-switch {
    display: flex;
    gap: 8px;
    margin-right: auto;
    margin-left: 16px;
}

.view-switch .btn-icon {
    width: auto;
    height: 32px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: #a3b1c6;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none;
}

.view-switch .btn-icon:hover {
    color: var(--primary-color);
    box-shadow: var(--neu-shadow-out);
    background: var(--bg-color);
}

.view-switch .btn-icon.active {
    color: var(--primary-color);
    background: var(--bg-color);
}

/* Calendar in Modal (Common) */
.calendar-header-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 20px 0;
    padding: 8px 0 4px 0;
    font-weight: 600;
    gap: 16px;
    position: relative;
    z-index: 10;
}

.calendar-header-controls button {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-color);
    color: var(--text-color);
    border-radius: 8px;
    cursor: pointer;
    box-shadow: var(--neu-shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.calendar-header-controls button:hover {
    box-shadow: var(--neu-shadow-out);
    transform: translateY(-1px);
}

.calendar-header-controls button:active {
    box-shadow: var(--neu-shadow-in-sm);
    transform: translateY(0);
}

/* Health Calendar */
.health-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin: 0 0 20px 0;
    padding: 0 4px;
}

.health-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px;
    font-size: 10px;
    cursor: pointer;
    position: relative;
    background: var(--bg-color);
    padding: 4px;
    box-shadow: var(--neu-shadow-sm);
    transition: all 0.3s ease;
}

.health-day:hover {
    transform: translateY(-2px);
    box-shadow: var(--neu-shadow-out);
}

.health-day.completed {
    background: var(--bg-color);
    box-shadow: var(--neu-shadow-in-sm);
}

.health-day.completed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(72, 187, 120, 0.05);
    border-radius: 10px;
    pointer-events: none;
}

.health-day.partial {
    background: var(--bg-color);
    box-shadow: var(--neu-shadow-in-sm);
}

.health-day.partial::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(236, 201, 75, 0.08);
    border-radius: 10px;
    pointer-events: none;
}

.health-day.none {
    background: var(--bg-color);
    box-shadow: var(--neu-shadow-sm);
}

.health-day-num {
    font-weight: bold;
    color: #666;
}

.health-day-icons {
    display: flex;
    gap: 2px;
    width: 100%;
    justify-content: center;
}

.mini-icon {
    font-size: 8px;
    width: 12px;
    height: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.mini-icon.done {
    color: var(--success-color);
}

.mini-icon.not-done {
    color: #ccc;
    opacity: 0.5;
}

.health-month-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-color);
    border-radius: 12px;
    font-size: 12px;
    box-shadow: var(--neu-shadow-in);
}

.stat-box {
    text-align: center;
}

.stat-box strong {
    display: block;
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.legend {
    display: flex;
    gap: 16px;
    font-size: 12px;
    justify-content: center;
    padding: 0 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
}

.dot.done { background-color: var(--success-color); }
.dot.partial { background-color: var(--warning-color); }
.dot.none { background-color: #eee; }

/* Health Day Edit Icon */
.health-day-edit-icon {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 10;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.health-day:hover .health-day-edit-icon {
    opacity: 1;
}

.health-day-edit-icon:hover {
    transform: scale(1.2);
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
}

/* Health Edit Modal */
.modal-sm {
    max-width: 400px;
    height: auto !important;
    max-height: 80vh;
}

.modal-sm .modal-body {
    overflow: visible;
}

.health-edit-content {
    padding: 8px 0;
}

.health-edit-date {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

.health-edit-toggles {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.health-edit-item {
    display: flex;
    align-items: center;
}

.health-toggle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    width: 100%;
}

.health-toggle-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.health-toggle-custom {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-color);
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 14px;
    box-shadow: var(--neu-shadow-out);
    cursor: pointer;
}

.health-toggle-custom i {
    font-size: 18px;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.health-toggle-checkbox:checked + .health-toggle-custom {
    background: var(--bg-color);
    box-shadow: var(--neu-shadow-in);
    border: none;
}

.health-toggle-checkbox:checked + .health-toggle-custom i {
    color: var(--success-color);
}

.health-toggle-custom:hover {
    transform: translateY(-1px);
}

.health-toggle-custom:active {
    transform: translateY(0);
}

.health-edit-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 16px;
}

/* Mood Calendar */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin: 0;
    padding: 0 4px;
    text-align: center;
}

.calendar-day {
    padding: 10px 6px;
    border-radius: 10px;
    background: var(--bg-color);
    font-size: 12px;
    height: 65px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    border: none;
    box-shadow: var(--neu-shadow-sm);
    transition: all 0.3s ease;
}

.calendar-day:hover {
    transform: translateY(-2px);
    box-shadow: var(--neu-shadow-out);
}

.calendar-day.selected {
    box-shadow: var(--neu-shadow-in);
}

.cal-date {
    color: var(--text-light);
    font-weight: 500;
}

/* Mood Calendar Detail */
.mood-day-detail {
    margin-top: 20px;
    border-top: 1px solid rgba(163, 177, 198, 0.2);
    padding-top: 20px;
    flex: 1;
    overflow-y: auto;
}

.detail-placeholder {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 20px;
}

.footer {
    text-align: center;
    padding: 24px 0;
    color: var(--text-light);
    font-size: 12px;
    margin-top: 20px;
}

/* 带数据管理按钮的页尾 */
.footer-with-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    margin-top: 12px;
}

.footer-text {
    color: var(--text-light);
    font-size: 12px;
    text-align: center;
}

.footer-text p {
    margin: 0;
}

.footer-text {
    color: var(--text-light);
    font-size: 12px;
}

.footer-text p {
    margin: 0;
}

/* Toast 提示组件 */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    animation: slideDown 0.3s ease;
}

.toast.hidden {
    display: none;
}

.toast-content {
    background: var(--bg-color);
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: var(--neu-shadow-out);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 400px;
}

.toast-icon {
    font-size: 20px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.toast-message {
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Loading遮罩 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(163, 177, 198, 0.3);
    backdrop-filter: blur(4px);
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.2s ease;
}

.loading-overlay.hidden {
    display: none;
}

.loading-spinner {
    background: var(--bg-color);
    padding: 32px 48px;
    border-radius: 20px;
    box-shadow: var(--neu-shadow-out);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.loading-spinner i {
    font-size: 36px;
    color: var(--primary-color);
}

.loading-text {
    font-size: 15px;
    color: var(--text-color);
    font-weight: 500;
    white-space: pre-line;  /* 支持\n换行 */
    text-align: center;
    line-height: 1.6;
}

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

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
}

/* 确认对话框样式 */
.confirm-message {
    font-size: 15px;
    color: var(--text-color);
    text-align: center;
    padding: 20px 0;
    line-height: 1.6;
}

.confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
}

.confirm-actions .btn-secondary,
.confirm-actions .btn-primary {
    min-width: 100px;
}

/* 默写复习模式 */
.quiz-float-btn {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.btn-quiz {
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
    transition: all 0.3s ease;
}

.btn-quiz:hover {
    transform: translateY(-2px);
    box-shadow: 10px 10px 20px var(--shadow-dark), -10px -10px 20px var(--shadow-light);
}

.btn-quiz:active {
    transform: translateY(0);
    box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.2), inset -4px -4px 8px rgba(255, 255, 255, 0.1);
}

/* 默写界面 */
.quiz-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px 20px 20px;
    height: 100%;
}

.quiz-word-card {
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.quiz-meaning {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 16px;
}

.quiz-audio-btn {
    background: var(--bg-color);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    box-shadow: var(--neu-shadow-out);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.quiz-audio-btn:hover {
    box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
}

.quiz-audio-btn i {
    font-size: 20px;
    color: var(--primary-color);
}

.quiz-input-area {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: nowrap;
}

.quiz-letter-input {
    width: 60px;
    height: 70px;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    border: none;
    border-radius: 12px;
    background: var(--bg-color);
    box-shadow: var(--neu-shadow-in);
    outline: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.quiz-letter-input:focus {
    box-shadow: var(--neu-shadow-in), 0 0 0 2px rgba(107, 124, 255, 0.1);
}

.quiz-letter-input.correct {
    color: var(--primary-color);
    box-shadow: inset 4px 4px 8px rgba(107, 124, 255, 0.2), inset -4px -4px 8px rgba(255, 255, 255, 0.1);
}

.quiz-letter-input.incorrect {
    color: #e74c3c;
    box-shadow: inset 4px 4px 8px rgba(231, 76, 60, 0.2), inset -4px -4px 8px rgba(255, 255, 255, 0.1);
}

.quiz-complete-icon {
    font-size: 48px;
    color: #27ae60;
    margin-bottom: 20px;
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.quiz-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
    padding-top: 20px;
    padding-bottom: 20px;
    border-top: 1px solid rgba(163, 177, 198, 0.2);
}

.quiz-actions button {
    width: 140px;
    height: 55px;
    font-size: 16px;
}

/* Exit button at bottom of quiz */
.quiz-exit-container {
    display: flex;
    justify-content: center;
    padding: 20px 0 30px 0;
}

.btn-text-quiz {
    background: transparent;
    border: none;
    color: #a3b1c6;
    font-size: 14px;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: none;
}

.btn-text-quiz:hover {
    color: var(--primary-color);
    box-shadow: var(--neu-shadow-out);
    background: var(--bg-color);
}

.btn-text-quiz:active {
    box-shadow: var(--neu-shadow-in);
}

/* Modal body in quiz mode - flex layout for fixed bottom buttons */
.modal-content.quiz-mode .modal-body {
    display: flex;
    flex-direction: column;
    overflow: visible;
}

/* 数据管理区域 */
.data-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 0;
}

.btn-data {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    border: none;
    background: var(--bg-color);
    color: #cbd5e0;
    font-size: 14px;
    cursor: pointer;
    box-shadow: none;
    transition: all 0.3s ease;
}

.btn-data:hover {
    color: var(--primary-color);
    box-shadow: var(--neu-shadow-out);
    transform: translateY(-2px);
}

.btn-data:active {
    box-shadow: var(--neu-shadow-in);
    transform: translateY(0);
}

.btn-data i {
    font-size: 16px;
    color: #cbd5e0;
    transition: color 0.3s ease;
}

.btn-data:hover i {
    color: var(--primary-color);
}

/* 词库导入样式 */
.vocab-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Vocab import modal - ensure shadows are visible */
#vocab-import-modal .modal-content {
    overflow: visible;
    padding: 24px 24px 8px 24px;
}

#vocab-import-modal .modal-body {
    overflow: visible;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
}

.vocab-import-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 22px;
    padding: 24px 20px;
    max-height: 320px;
    overflow-y: auto;
    /* Ensure shadows don't get clipped */
    margin: 0;
}

.vocab-import-card {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 12px;
    padding-top: 12px;
    text-align: center;
    cursor: pointer;
    box-shadow: 2px 2px 4px rgba(163, 177, 198, 0.1), -2px -2px 4px rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    position: relative;
}

.vocab-import-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--neu-shadow-out);
}

.vocab-import-card:active {
    box-shadow: var(--neu-shadow-in);
}

.vocab-import-card.selected {
    box-shadow: var(--neu-shadow-out);
}

.vocab-import-card.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 2px 2px 4px rgba(80, 227, 194, 0.3);
}

.vocab-import-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.vocab-import-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.vocab-import-count {
    font-size: 12px;
    color: #a3b1c6;
}

.vocab-import-tip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background: rgba(163, 177, 198, 0.1);
    border-radius: 8px;
    font-size: 13px;
    color: #a3b1c6;
    margin-top: 8px;
}

.vocab-import-tip i {
    color: var(--primary-color);
}

.vocab-import-actions {
    display: flex;
    justify-content: center;
    padding: 50px 0 0 0;
}

.vocab-import-actions button {
    padding: 12px 24px;
    font-size: 15px;
}

/* 今日单词底部导入按钮 */
.word-footer {
    display: flex;
    justify-content: center;
    padding: 12px 16px;
    border-top: 1px solid rgba(163, 177, 198, 0.1);
    margin-top: 10px;
}

.btn-text-word {
    background: transparent;
    border: none;
    color: #a3b1c6;
    font-size: 13px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-text-word:hover {
    color: var(--primary-color);
    box-shadow: var(--neu-shadow-out);
    background: var(--bg-color);
}


/* ==================== 记账模块样式 ==================== */
.accounting-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 输入区域 */
.accounting-input-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* +/- 切换按钮 */
.accounting-type-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    padding: 12px;
    background: var(--bg-color);
    border-radius: 12px;
    box-shadow: var(--neu-shadow-in);
}

.type-toggle-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--neu-shadow-out);
    display: flex;
    align-items: center;
    justify-content: center;
}

.type-toggle-btn:hover {
    box-shadow: var(--neu-shadow-in);
    transform: scale(1.05);
}

.type-toggle-btn.active {
    box-shadow: var(--neu-shadow-in);
    color: #e74c3c;
}

.type-toggle-btn.income {
    color: #27ae60;
}

.current-type-label {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
}

/* 分类快速选择 */
.accounting-category-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.category-chip {
    padding: 8px 14px;
    border: none;
    border-radius: 20px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--neu-shadow-sm);
}

.category-chip:hover {
    box-shadow: var(--neu-shadow-out);
    transform: translateY(-1px);
}

.category-chip.active {
    box-shadow: var(--neu-shadow-in);
    background: var(--primary-color);
    color: white;
}

/* 输入框 */
.accounting-input-wrapper {
    display: flex;
    gap: 10px;
}

.accounting-input-wrapper input {
    flex: 1;
    padding: 14px 18px;
    border: none;
    border-radius: 12px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 14px;
    box-shadow: var(--neu-shadow-in);
    transition: all 0.3s ease;
}

.accounting-input-wrapper input:focus {
    outline: none;
    box-shadow: var(--neu-shadow-out);
}

.accounting-input-wrapper .btn-add {
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    background: var(--primary-color);
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--neu-shadow-out);
}

.accounting-input-wrapper .btn-add:hover {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

/* 当日支出统计 */
.accounting-day-summary {
    padding: 16px;
    background: var(--bg-color);
    border-radius: 12px;
    box-shadow: var(--neu-shadow-in);
}

.summary-item {
    text-align: center;
    padding: 16px;
    background: var(--bg-color);
    border-radius: 10px;
    box-shadow: var(--neu-shadow-sm);
    border-left: 4px solid #e74c3c;
}

.summary-label {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 6px;
}

.summary-value {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
}

/* 明细列表 */
.accounting-records {
    flex: 1;
    display: flex;
    overflow-y: auto;
    overflow-x: visible;
}

.records-header {
    padding: 12px 0;
    border-bottom: 1px solid rgba(163, 177, 198, 0.2);
    color: var(--text-color);
    font-weight: 500;
}

.records-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

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

.records-list::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-radius: 3px;
}

.records-list::-webkit-scrollbar-thumb {
    background: rgba(163, 177, 198, 0.3);
    border-radius: 3px;
}

.records-list::-webkit-scrollbar-thumb:hover {
    background: rgba(163, 177, 198, 0.5);
}

.empty-hint {
    text-align: center;
    color: var(--text-light);
    padding: 40px 20px;
    font-size: 14px;
}

/* 记录项 */
.record-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: var(--bg-color);
    border-radius: 10px;
    box-shadow: var(--neu-shadow-sm);
    transition: all 0.3s ease;
}

.record-item:hover {
    box-shadow: var(--neu-shadow-out);
    transform: translateY(-1px);
}

.record-left {
    flex: 1;
    min-width: 0;
}

.record-category {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 4px;
}

.record-note {
    font-size: 12px;
    color: var(--text-light);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.record-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.record-amount {
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
}

.record-amount.income {
    color: #27ae60;
}

.record-amount.expense {
    color: #e74c3c;
}

.record-meta {
    font-size: 11px;
    color: var(--text-light);
    flex-shrink: 0;
}

.record-delete {
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.record-delete:hover {
    color: #e74c3c;
    transform: scale(1.1);
}

/* ==================== 记账弹窗样式 ==================== */
/* 确认弹窗 */
.confirm-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-color);
    border-radius: 8px;
    box-shadow: var(--neu-shadow-in);
}

.info-label {
    font-size: 14px;
    color: var(--text-light);
}

.info-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

.info-value.highlight {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

.confirm-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.confirm-actions button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.confirm-actions .btn-secondary {
    background: var(--bg-color);
    color: var(--text-color);
    box-shadow: var(--neu-shadow-sm);
}

.confirm-actions .btn-secondary:hover {
    box-shadow: var(--neu-shadow-out);
}

.confirm-actions .btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--neu-shadow-out);
}

.confirm-actions .btn-primary:hover {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* 统计弹窗 */
.stats-tabs {
    display: flex;
    gap: 8px;
}

.stats-period-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 8px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--neu-shadow-sm);
}

.stats-period-btn:hover {
    box-shadow: var(--neu-shadow-out);
}

.stats-period-btn.active {
    box-shadow: var(--neu-shadow-out);
    background: var(--primary-color);
    color: white;
}

.stats-overview {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    flex: 1;
    padding: 20px;
    background: var(--bg-color);
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--neu-shadow-in);
}

.stat-card.balance {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(99, 102, 241, 0.05));
}

.stat-card.income {
    border-top: 3px solid #27ae60;
}

.stat-card.expense {
    border-top: 3px solid #e74c3c;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
}

.stats-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stats-section h4 {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(163, 177, 198, 0.2);
}

.stats-category-list {
    max-height: 300px;
    overflow-y: auto;
}

.stats-category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: var(--bg-color);
    border-radius: 8px;
    box-shadow: var(--neu-shadow-sm);
}

.category-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

.category-count {
    font-size: 11px;
    color: var(--text-light);
}

.category-amount {
    font-size: 16px;
    font-weight: 600;
}

.category-amount.income {
    color: #27ae60;
}

.category-amount.expense {
    color: #e74c3c;
}

.stats-records-list {
    max-height: 300px;
    overflow-y: auto;
}

.stats-record-item {
    display: grid;
    grid-template-columns: 120px 80px 1fr 100px;
    gap: 12px;
    align-items: center;
    padding: 10px;
    margin-bottom: 6px;
    background: var(--bg-color);
    border-radius: 6px;
    font-size: 12px;
}

.stats-record-item .record-date {
    color: var(--text-light);
}

.stats-record-item .record-category {
    color: var(--primary-color);
    font-weight: 500;
}

.stats-record-item .record-note {
    color: var(--text-color);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.stats-record-item .record-amount {
    text-align: right;
    font-weight: 600;
}

.stats-record-item .record-amount.income {
    color: #27ae60;
}

.stats-record-item .record-amount.expense {
    color: #e74c3c;
}

/* Modal sizes */
.modal-sm {
    max-width: 400px;
}

.modal-lg {
    max-width: 800px;
}

@media (max-width: 600px) {
    .stats-content {
        grid-template-columns: 1fr;
    }
    
    .stats-record-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}



/* ==================== 记账模块样式 ==================== */
.accounting-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 输入区域 */
.accounting-input-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* +/- 切换按钮 */
.accounting-type-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    padding: 12px;
    background: var(--bg-color);
    border-radius: 12px;
    box-shadow: var(--neu-shadow-in);
}

.type-toggle-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--neu-shadow-out);
    display: flex;
    align-items: center;
    justify-content: center;
}

.type-toggle-btn:hover {
    box-shadow: var(--neu-shadow-in);
    transform: scale(1.05);
}

.type-toggle-btn.active {
    box-shadow: var(--neu-shadow-in);
    color: #e74c3c;
}

.type-toggle-btn.income {
    color: #27ae60;
}

.current-type-label {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
}

/* 分类快速选择 */
.accounting-category-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.category-chip {
    padding: 8px 14px;
    border: none;
    border-radius: 20px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--neu-shadow-sm);
}

.category-chip:hover {
    box-shadow: var(--neu-shadow-out);
    transform: translateY(-1px);
}

.category-chip.active {
    box-shadow: var(--neu-shadow-in);
    background: var(--primary-color);
    color: white;
}

/* 输入框 */
.accounting-input-wrapper {
    display: flex;
    gap: 10px;
}

.accounting-input-wrapper input {
    flex: 1;
    padding: 14px 18px;
    border: none;
    border-radius: 12px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 14px;
    box-shadow: var(--neu-shadow-in);
    transition: all 0.3s ease;
}

.accounting-input-wrapper input:focus {
    outline: none;
    box-shadow: var(--neu-shadow-out);
}

.accounting-input-wrapper .btn-add {
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    background: var(--primary-color);
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--neu-shadow-out);
}

.accounting-input-wrapper .btn-add:hover {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

/* 当日支出统计 */
.accounting-day-summary {
    padding: 16px;
    background: var(--bg-color);
    border-radius: 12px;
    box-shadow: var(--neu-shadow-in);
}

.summary-item {
    text-align: center;
    padding: 16px;
    background: var(--bg-color);
    border-radius: 10px;
    box-shadow: var(--neu-shadow-sm);
    border-left: 4px solid #e74c3c;
}

.summary-label {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 6px;
}

.summary-value {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
}

/* 明细列表 */
.accounting-records {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.records-header {
    padding: 12px 0;
    border-bottom: 1px solid rgba(163, 177, 198, 0.2);
    color: var(--text-color);
    font-weight: 500;
}

.records-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.empty-hint {
    text-align: center;
    color: var(--text-light);
    padding: 40px 20px;
    font-size: 14px;
}

/* 记录项 */
.record-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: var(--bg-color);
    border-radius: 10px;
    box-shadow: var(--neu-shadow-sm);
    transition: all 0.3s ease;
}

.record-item:hover {
    box-shadow: var(--neu-shadow-out);
    transform: translateY(-1px);
}

.record-left {
    flex: 1;
    min-width: 0;
}

.record-category {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 4px;
}

.record-note {
    font-size: 12px;
    color: var(--text-light);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.record-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.record-amount {
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
}

.record-amount.income {
    color: #27ae60;
}

.record-amount.expense {
    color: #e74c3c;
}

.record-meta {
    font-size: 11px;
    color: var(--text-light);
    flex-shrink: 0;
}

.record-delete {
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.record-delete:hover {
    color: #e74c3c;
    transform: scale(1.1);
}

/* ==================== 记账弹窗样式 ==================== */
.confirm-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-color);
    border-radius: 8px;
    box-shadow: var(--neu-shadow-in);
}

.info-label {
    font-size: 14px;
    color: var(--text-light);
}

.info-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

.info-value.highlight {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

.confirm-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.confirm-actions button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.confirm-actions .btn-secondary {
    background: var(--bg-color);
    color: var(--text-color);
    box-shadow: var(--neu-shadow-sm);
}

.confirm-actions .btn-secondary:hover {
    box-shadow: var(--neu-shadow-out);
}

.confirm-actions .btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--neu-shadow-out);
}

.confirm-actions .btn-primary:hover {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* 统计弹窗 */
.stats-tabs {
    display: flex;
    gap: 8px;
}

.stats-period-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 8px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--neu-shadow-sm);
}

.stats-period-btn:hover {
    box-shadow: var(--neu-shadow-out);
}

.stats-period-btn.active {
    box-shadow: var(--neu-shadow-out);
    background: var(--primary-color);
    color: white;
}

.stats-overview {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    flex: 1;
    padding: 20px;
    background: var(--bg-color);
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--neu-shadow-in);
}

.stat-card.balance {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(99, 102, 241, 0.05));
}

.stat-card.income {
    border-top: 3px solid #27ae60;
}

.stat-card.expense {
    border-top: 3px solid #e74c3c;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
}

.stats-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stats-section h4 {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(163, 177, 198, 0.2);
}

.stats-category-list,
.stats-records-list {
    max-height: 300px;
    overflow-y: auto;
}

.stats-category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: var(--bg-color);
    border-radius: 8px;
    box-shadow: var(--neu-shadow-sm);
}

.category-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

.category-count {
    font-size: 11px;
    color: var(--text-light);
}

.category-amount {
    font-size: 16px;
    font-weight: 600;
}

.category-amount.income {
    color: #27ae60;
}

.category-amount.expense {
    color: #e74c3c;
}

.stats-record-item {
    display: grid;
    grid-template-columns: 120px 80px 1fr 100px;
    gap: 12px;
    align-items: center;
    padding: 10px;
    margin-bottom: 6px;
    background: var(--bg-color);
    border-radius: 6px;
    font-size: 12px;
}

.stats-record-item .record-date {
    color: var(--text-light);
}

.stats-record-item .record-category {
    color: var(--primary-color);
    font-weight: 500;
}

.stats-record-item .record-amount {
    text-align: right;
    font-weight: 600;
}

.stats-record-item .record-amount.income {
    color: #27ae60;
}

.stats-record-item .record-amount.expense {
    color: #e74c3c;
}

/* Modal sizes */
.modal-sm {
    max-width: 400px;
}

.modal-lg {
    max-width: 800px;
}

@media (max-width: 600px) {
    .stats-content {
        grid-template-columns: 1fr;
    }
    
    .stats-record-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* ==================== 热点新闻模块优化样式 ==================== */
.news-body {
    display: flex;
    flex-direction: column;
/* ==================== 严格按Pencil设计图调整 ==================== */
/* 记账和热点新闻容器 - 固定尺寸匹配设计图 */
.accounting-news-wrapper {
    grid-column: 1 / 4;
    grid-row: 3;
    display: flex;
    gap: 24px;
    justify-content: center;
}

.accounting-card,
.news-card {
    flex: 0 0 590px;
    min-width: 590px;
    max-width: 590px;
    /* height: 836px; removed to allow auto height for news-card */
    height: 950px;
}

/* 卡片标题区域 - 41px高度匹配设计 */
.accounting-card .card-header,
.news-card .card-header {
    min-height: 41px;
    padding: 12px 28px;
    margin-bottom: 0;
}

.accounting-card .card-header h2,
.news-card .card-header h2 {
    font-size: 18px;
    font-weight: 600;
}

/* ==================== 记账模块 - 按设计图重构 ==================== */
.accounting-body {
    display: flex;
    flex-direction: column;
    height: calc(100% - 41px);
    padding: 0 28px 28px 28px;
    gap: 20px;
}

/* 收支切换区域 - 90px高度 */
.accounting-type-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    height: 90px;
    background: linear-gradient(135deg, rgba(107, 124, 255, 0.05), rgba(80, 227, 194, 0.05));
    border-radius: 16px;
    box-shadow: var(--neu-shadow-in);
}

.type-toggle-btn {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--neu-shadow-out);
    display: flex;
    align-items: center;
    justify-content: center;
}

.type-toggle-btn:hover {
    box-shadow: var(--neu-shadow-in);
    transform: scale(1.08);
}

.type-toggle-btn.active {
    box-shadow: var(--neu-shadow-in);
    background: #6b7bff;
    color: white;
}

.type-toggle-btn.active.income {
    background: #27ae60 !important;
}

.type-toggle-btn.active.expense {
    background: #6b7bff !important;
}
.current-type-label {
    font-size: 20px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 分类选择区域 */
.accounting-category-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    min-height: 22px;
}

.category-chip {
    padding: 10px 18px;
    border: none;
    border-radius: 20px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--neu-shadow-sm);
}

.category-chip:hover {
    box-shadow: var(--neu-shadow-out);
    transform: translateY(-2px);
}

.category-chip.active {
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    color: white;
    box-shadow: 0 4px 12px rgba(107, 124, 255, 0.4);
}

/* 输入区域 */
.accounting-input-wrapper {
    display: flex;
    gap: 12px;
}

.accounting-input-wrapper input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: 12px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 15px;
    box-shadow: var(--neu-shadow-in);
    transition: all 0.3s ease;
}

.accounting-input-wrapper input:focus {
    outline: none;
    box-shadow: var(--neu-shadow-out);
}

.accounting-input-wrapper .btn-add {
    padding: 16px 28px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(107, 124, 255, 0.3);
}

.accounting-input-wrapper .btn-add:hover {
    box-shadow: 0 6px 16px rgba(107, 124, 255, 0.5);
    transform: translateY(-2px);
}

/* 统计区域 */
.accounting-day-summary {
    padding: 20px;
    background: linear-gradient(135deg, rgba(107, 124, 255, 0.08), rgba(80, 227, 194, 0.05));
    border-radius: 16px;
    box-shadow: var(--neu-shadow-in);
}

.summary-item {
    text-align: center;
    padding: 18px;
    background: var(--bg-color);
    border-radius: 12px;
    box-shadow: var(--neu-shadow-sm);
}

.summary-item.expense {
    border-left: 4px solid #e74c3c;
}

.summary-item.income {
    border-left: 4px solid #27ae60;
}

.summary-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.summary-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 记录列表 - 339px高度 */
.accounting-records {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.records-header {
    padding: 12px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 1px solid rgba(163, 177, 198, 0.2);
}

.records-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

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

.records-list::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-radius: 3px;
}

.records-list::-webkit-scrollbar-thumb {
    background: rgba(163, 177, 198, 0.3);
    border-radius: 3px;
}

.records-list::-webkit-scrollbar-thumb:hover {
    background: rgba(163, 177, 198, 0.5);
}

.record-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    margin-bottom: 10px;
    background: var(--bg-color);
    border-radius: 12px;
    box-shadow: var(--neu-shadow-sm);
    transition: all 0.3s ease;
}

.record-item:hover {
    box-shadow: var(--neu-shadow-out);
    transform: translateY(-2px) translateX(2px);
}

.record-left {
    flex: 1;
    min-width: 0;
}

.record-category {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.record-note {
    font-size: 13px;
    color: var(--text-light);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.record-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.record-amount {
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.record-amount.income {
    color: #27ae60;
}

.record-amount.expense {
    color: #e74c3c;
}

.record-meta {
    font-size: 11px;
    color: var(--text-light);
    flex-shrink: 0;
}

.record-delete {
    width: 26px;
    height: 26px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.record-delete:hover {
    color: #e74c3c;
    transform: scale(1.15);
}

/* ==================== 热点新闻模块 - 按设计图重构 ==================== */
.news-body {
    display: flex;
    flex-direction: column;
    height: calc(100% - 41px);
    padding: 0 0 0 0;
    gap: 20px;
}
.news-tabs {
    display: flex;
    gap: 10px;
    height: 40px;
    padding: 4px;
    background: var(--bg-color);
    border-radius: 12px;
    /*凹陷效果已移除*/
}

.news-tab {
    flex: 1;
    padding: 0 16px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
 align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 2px 2px 4px var(--shadow-dark), -2px -2px 4px var(--shadow-light);
}

.news-tab:hover {
    background: var(--bg-color);
    box-shadow: inset 2px 2px 4px var(--shadow-dark), inset -2px -2px 4px var(--shadow-light);
}

.news-tab.active {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--neu-shadow-out);
}
.news-tab i {
    font-size: 14px;
}

/* 新闻加载状态 */
.news-loading {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 14px;
    gap: 8px;
    min-height: 200px;
}

.news-loading i {
    font-size: 18px;
    animation: spin 1s linear infinite;
}

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

/* 新闻列表 - 659px高度 */
.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-list {
    list-style: none;
    overflow-y: auto;
    overflow-x: visible;
    padding: 16px 4px 4px 4px;
    transform: translateY(-15px);
}
.news-list::-webkit-scrollbar {
    width: 4px;
}

.news-list::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-radius: 2px;
}

.news-list::-webkit-scrollbar-thumb {
    background: rgba(163, 177, 198, 0.3);
    border-radius: 2px;
}

.news-item {
    padding: 16px;
    margin-bottom: 12px;
    background: var(--bg-color);
    border-radius: 12px;
    box-shadow: var(--neu-shadow-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}
.news-item:hover {
    box-shadow: var(--neu-shadow-out);
    transform: translateX(4px);
    border-left-color: var(--primary-color);
}

.news-item-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.news-item-source {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 500;
}

.news-item-time {
    font-size: 12px;
    color: var(--text-light);
}

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

.news-item,
.record-item {
    animation: fadeInUp 0.3s ease;
}

/* ==================== 响应式优化 ==================== */
@media (max-width: 1400px) {
    .accounting-news-wrapper {
        flex-direction: column;
        align-items: center;
    }
    
    .accounting-card,
    .news-card {
        width: 100%;
        max-width: 590px;
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .accounting-card,
    .news-card {
        height: auto;
        min-height: 600px;
    }
    
    .accounting-type-toggle {
        height: auto;
        padding: 12px;
    }
    
    .type-toggle-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .current-type-label {
        font-size: 18px;
    }
    
    .category-chip {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .news-tab {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* ==================== 记账统计图表样式 ==================== */
.stats-charts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chart-container {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--neu-shadow-sm);
    position: relative;
    min-height: 250px;
}

.chart-container canvas {
    max-width: 100%;
    max-height: 250px;
}

.chart-legend {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    font-size: 12px;
}

.chart-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.chart-legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

/* 分类统计列表样式 */
.stats-category-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

.stats-category-count {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}

.stats-category-amount {
    font-size: 16px;
    font-weight: 600;
}

.stats-category-amount.income {
    color: #27ae60;
}

.stats-category-amount.expense {
    color: #e74c3c;
}

/* ==================== 记账功能 - 新样式 ==================== */

/* 快速记账区域 */
.accounting-quick-area {
    padding: 12px;
    background: linear-gradient(135deg, rgba(107, 124, 255, 0.1) 0%, rgba(80, 227, 194, 0.1) 100%);
    border-radius: 12px;
    box-shadow: var(--neu-shadow-in);
}

.quick-input-wrapper {
    display: flex;
    gap: 10px;
}

.quick-input-wrapper input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 14px;
    box-shadow: var(--neu-shadow-in);
    transition: all 0.3s ease;
}

.quick-input-wrapper input:focus {
    outline: none;
    box-shadow: var(--neu-shadow-out);
}

.quick-input-wrapper .btn-add {
    padding: 12px 18px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--neu-shadow-out);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-input-wrapper .btn-add:hover {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

/* 通用记账区域 */
.accounting-manual-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 收支切换按钮 */
.accounting-type-switch {
    display: flex;
    gap: 8px;
    padding: 4px;
    background: var(--bg-color);
    border-radius: 10px;
    box-shadow: var(--neu-shadow-in);
}

.type-switch-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.type-switch-btn:hover {
    background: var(--bg-color);
    box-shadow: var(--neu-shadow-sm);
}

.type-switch-btn.active {
    background: var(--bg-color);
    box-shadow: var(--neu-shadow-out);
    color: var(--primary-color);
}

/* 分类选择区域 */
.accounting-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.accounting-categories .category-item {
    padding: 8px 14px;
    border: none;
    border-radius: 20px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--neu-shadow-sm);
}

.accounting-categories .category-item:hover {
    box-shadow: var(--neu-shadow-out);
    transform: translateY(-1px);
}

.accounting-categories .category-item.active {
    box-shadow: var(--neu-shadow-in);
    background: var(--primary-color);
    color: white;
}

/* 明细输入区域 */
.accounting-detail-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.accounting-detail-inputs .input-group {
    display: flex;
    align-items: center;
    background: var(--bg-color);
    border-radius: 10px;
    box-shadow: var(--neu-shadow-in);
    padding: 4px;
}

.accounting-detail-inputs .input-prefix {
    padding: 0 12px;
    color: var(--text-light);
    font-weight: 600;
}

.accounting-detail-inputs input[type="number"] {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 600;
}

.accounting-detail-inputs input[type="number"]:focus {
    outline: none;
}

.accounting-detail-inputs input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 14px;
    box-shadow: var(--neu-shadow-in);
    transition: all 0.3s ease;
}

.accounting-detail-inputs input[type="text"]:focus {
    outline: none;
    box-shadow: var(--neu-shadow-out);
}

.accounting-detail-inputs .btn-add {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    background: var(--primary-color);
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--neu-shadow-out);
    align-self: flex-end;
}

.accounting-detail-inputs .btn-add:hover {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

/* 更新当日收支统计样式 */
.accounting-day-summary {
    display: flex;
    gap: 12px;
}

.accounting-day-summary .summary-item {
    flex: 1;
    padding: 12px;
}

/* 记录列表样式 */
.records-group {
    margin-bottom: 12px;
}

.records-date {
    font-size: 12px;
    color: var(--text-light);
    padding: 8px 0;
    font-weight: 500;
}

.accounting-records .record-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: var(--bg-color);
    border-radius: 10px;
    box-shadow: var(--neu-shadow-sm);
    transition: all 0.3s ease;
}

.accounting-records .record-item:hover {
    box-shadow: var(--neu-shadow-out);
    transform: translateY(-1px);
}

.accounting-records .record-left {
    flex: 1;
    min-width: 0;
}

.accounting-records .record-category {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.accounting-records .record-note {
    font-size: 12px;
    color: var(--text-light);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.accounting-records .record-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.accounting-records .record-amount {
    font-size: 16px;
    font-weight: 600;
}

.accounting-records .record-amount.income {
    color: #27ae60;
}

.accounting-records .record-amount.expense {
    color: #e74c3c;
}

.accounting-records .record-delete {
    padding: 6px;
    border: none;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.accounting-records .record-delete:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.btn-text-sm {
    padding: 4px 8px;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.btn-text-sm:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

/* 确认弹窗样式 */
#accounting-confirm-modal .confirm-info {
    padding: 16px 0; margin-top: -20px;
}

#accounting-confirm-modal .info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(163, 177, 198, 0.1);
}

#accounting-confirm-modal .info-row:last-child {
    border-bottom: none;
}

#accounting-confirm-modal .info-label {
    font-size: 14px;
    color: var(--text-light);
}

#accounting-confirm-modal .info-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
}

#accounting-confirm-modal .info-value.highlight {
    color: var(--primary-color);
    font-size: 18px;
}

#accounting-confirm-modal .confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 16px;
}

/* ==================== 记账功能 - 新拟物风格 ==================== */

/* 快速记账区域 */
.accounting-quick-area {
    padding: 16px;
    background: var(--bg-color);
    border-radius: var(--radius);
    box-shadow: var(--neu-shadow-in);
}

.quick-input-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
}

.quick-input-wrapper input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: var(--radius);
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 15px;
    box-shadow: var(--neu-shadow-in);
    transition: all 0.3s ease;
}

.quick-input-wrapper input:focus {
    outline: none;
    box-shadow: var(--neu-shadow-out), 0 0 0 3px rgba(107, 124, 255, 0.1);
}

.quick-input-wrapper input::placeholder {
    color: var(--text-light);
}

.quick-input-wrapper .btn-add {
    padding: 16px 24px;
    border: none;
    border-radius: var(--radius);
    background: linear-gradient(145deg, #6b7cff, #5a6be0);
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 6px 6px 12px rgba(107, 124, 255, 0.3),
                -6px -6px 12px rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-input-wrapper .btn-add:hover {
    box-shadow: 8px 8px 16px rgba(107, 124, 255, 0.4),
                -8px -8px 16px rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.quick-input-wrapper .btn-add:active {
    box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.2),
                inset -3px -3px 6px rgba(255, 255, 255, 0.1);
    transform: translateY(0);
}

/* 通用记账区域 */
.accounting-manual-area {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    background: var(--bg-color);
    border-radius: var(--radius);
    box-shadow: var(--neu-shadow-in);
}

/* 收支切换按钮 */
.accounting-type-switch {
    display: flex;
    gap: 12px;
    padding: 6px;
    background: var(--bg-color);
    border-radius: var(--radius);
    box-shadow: var(--neu-shadow-in);
}

.type-switch-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: calc(var(--radius) - 4px);
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 6px 6px 12px var(--shadow-dark),
                -6px -6px 12px var(--shadow-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.type-switch-btn:hover {
    box-shadow: 8px 8px 16px var(--shadow-dark),
                -8px -8px 16px var(--shadow-light);
    transform: translateY(-1px);
}

.type-switch-btn.active {
    box-shadow: inset 4px 4px 8px var(--shadow-dark),
                inset -4px -4px 8px var(--shadow-light);
    color: var(--primary-color);
    transform: translateY(0);
}

.type-switch-btn.active[data-type="expense"] {
    color: #e74c3c;
}

.type-switch-btn.active[data-type="income"] {
    color: #27ae60;
}

/* 分类选择区域 */
.accounting-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.accounting-categories .category-item {
    padding: 10px 18px;
    border: none;
    border-radius: 12px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 5px 5px 10px var(--shadow-dark),
                -5px -5px 10px var(--shadow-light);
}

.accounting-categories .category-item:hover {
    box-shadow: 7px 7px 14px var(--shadow-dark),
                -7px -7px 14px var(--shadow-light);
    transform: translateY(-2px);
}

.accounting-categories .category-item.active {
    box-shadow: inset 3px 3px 6px var(--shadow-dark),
                inset -3px -3px 6px var(--shadow-light);
    background: linear-gradient(145deg, var(--primary-color), #5a6be0);
    color: white;
    transform: translateY(0);
}

/* 明细输入区域 */
.accounting-detail-inputs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accounting-detail-inputs .input-group {
    display: flex;
    align-items: center;
    background: var(--bg-color);
    border-radius: var(--radius);
    box-shadow: var(--neu-shadow-in);
    padding: 6px;
    transition: all 0.3s ease;
}

.accounting-detail-inputs .input-group:focus-within {
    box-shadow: var(--neu-shadow-out), 0 0 0 3px rgba(107, 124, 255, 0.1);
}

.accounting-detail-inputs .input-prefix {
    padding: 0 16px;
    color: var(--text-color);
    font-weight: 700;
    font-size: 18px;
}

.accounting-detail-inputs input[type="number"] {
    flex: 1;
    padding: 14px 16px;
    border: none;
    background: transparent;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 400;
}

.accounting-detail-inputs input[type="number"]:focus {
    outline: none;
}

.accounting-detail-inputs input[type="number"]::placeholder {
    color: var(--text-light);
    font-weight: 400;
}

.accounting-detail-inputs input[type="text"] {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius);
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 15px;
    box-shadow: var(--neu-shadow-in);
    transition: all 0.3s ease;
}

.accounting-detail-inputs input[type="text"]:focus {
    outline: none;
    box-shadow: var(--neu-shadow-out), 0 0 0 3px rgba(107, 124, 255, 0.1);
}

.accounting-detail-inputs input[type="text"]::placeholder {
    color: var(--text-light);
}

.accounting-detail-inputs .btn-add {
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius);
    background: linear-gradient(145deg, #27ae60, #229954);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 6px 6px 12px rgba(39, 174, 96, 0.3),
                -6px -6px 12px rgba(255, 255, 255, 0.8);
    align-self: flex-end;
}

.accounting-detail-inputs .btn-add:hover {
    box-shadow: 8px 8px 16px rgba(39, 174, 96, 0.4),
                -8px -8px 16px rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.accounting-detail-inputs .btn-add:active {
    box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.2),
                inset -3px -3px 6px rgba(255, 255, 255, 0.1);
    transform: translateY(0);
}

/* 当日收支统计 - 更新样式 */
.accounting-day-summary {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--bg-color);
    border-radius: var(--radius);
    box-shadow: var(--neu-shadow-in);
}

.accounting-day-summary .summary-item {
    flex: 1;
    padding: 16px;
    background: var(--bg-color);
    border-radius: calc(var(--radius) - 4px);
    box-shadow: 5px 5px 10px var(--shadow-dark),
                -5px -5px 10px var(--shadow-light);
    text-align: center;
    transition: all 0.3s ease;
}

.accounting-day-summary .summary-item:hover {
    box-shadow: 7px 7px 14px var(--shadow-dark),
                -7px -7px 14px var(--shadow-light);
    transform: translateY(-2px);
}

.accounting-day-summary .summary-item.expense {
    border-left: 4px solid #e74c3c;
}

.accounting-day-summary .summary-item.income {
    border-left: 4px solid #27ae60;
}

.accounting-day-summary .summary-label {
    display: block;
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.accounting-day-summary .summary-value {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-color);
}

/* 记录列表样式 */
.accounting-records {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 250px;
    padding: 16px;
    background: var(--bg-color);
    border-radius: var(--radius);
    box-shadow: var(--neu-shadow-in);
}

.records-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 2px solid rgba(163, 177, 198, 0.2);
    color: var(--text-color);
    font-weight: 600;
    font-size: 15px;
}

.records-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
    max-height: 320px;
}

.records-list .empty-hint {
    text-align: center;
    color: var(--text-light);
    padding: 60px 20px;
    font-size: 14px;
}

.records-group {
    margin-bottom: 16px;
}

.records-date {
    font-size: 12px;
    color: var(--text-light);
    padding: 8px 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.accounting-records .record-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    margin-bottom: 10px;
    background: var(--bg-color);
    border-radius: calc(var(--radius) - 4px);
    box-shadow: 5px 5px 10px var(--shadow-dark),
                -5px -5px 10px var(--shadow-light);
    transition: all 0.3s ease;
}

.accounting-records .record-item:hover {
    box-shadow: 7px 7px 14px var(--shadow-dark),
                -7px -7px 14px var(--shadow-light);
    transform: translateY(-2px);
}

.accounting-records .record-left {
    flex: 1;
    min-width: 0;
    padding-right: 12px;
}

.accounting-records .record-category {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.accounting-records .record-note {
    font-size: 13px;
    color: var(--text-light);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.accounting-records .record-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.accounting-records .record-amount {
    font-size: 18px;
    font-weight: 700;
    min-width: 80px;
    text-align: right;
}

.accounting-records .record-amount.income {
    color: #27ae60;
}

.accounting-records .record-amount.expense {
    color: #e74c3c;
}

.accounting-records .record-delete {
    padding: 8px;
    border: none;
    background: var(--bg-color);
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    box-shadow: 3px 3px 6px var(--shadow-dark),
                -3px -3px 6px var(--shadow-light);
}

.accounting-records .record-delete:hover {
    color: #e74c3c;
    box-shadow: 4px 4px 8px var(--shadow-dark),
                -4px -4px 8px var(--shadow-light);
    transform: translateY(-1px);
}

.accounting-records .record-delete:active {
    box-shadow: inset 2px 2px 4px var(--shadow-dark),
                inset -2px -2px 4px var(--shadow-light);
    transform: translateY(0);
}

.btn-text-sm {
    padding: 6px 12px;
    border: none;
    background: var(--bg-color);
    color: var(--text-light);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    box-shadow: 3px 3px 6px var(--shadow-dark),
                -3px -3px 6px var(--shadow-light);
}

.btn-text-sm:hover {
    color: #e74c3c;
    box-shadow: 4px 4px 8px var(--shadow-dark),
                -4px -4px 8px var(--shadow-light);
    transform: translateY(-1px);
}

.btn-text-sm:active {
    box-shadow: inset 2px 2px 4px var(--shadow-dark),
                inset -2px -2px 4px var(--shadow-light);
    transform: translateY(0);
}

/* 确认弹窗样式 */
#accounting-confirm-modal .confirm-info {
    padding: 20px 0;
}

#accounting-confirm-modal .info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(163, 177, 198, 0.15);
}

#accounting-confirm-modal .info-row:last-child {
    border-bottom: none;
}

#accounting-confirm-modal .info-label {
    font-size: 15px;
    color: var(--text-light);
    font-weight: 500;
}

#accounting-confirm-modal .info-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

#accounting-confirm-modal .info-value.highlight {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 700;
}

#accounting-confirm-modal .confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 20px;
}

#accounting-confirm-modal .confirm-actions .btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 5px 5px 10px var(--shadow-dark),
                -5px -5px 10px var(--shadow-light);
}

#accounting-confirm-modal .confirm-actions .btn-secondary:hover {
    box-shadow: 7px 7px 14px var(--shadow-dark),
                -7px -7px 14px var(--shadow-light);
    transform: translateY(-2px);
}

#accounting-confirm-modal .confirm-actions .btn-secondary:active {
    box-shadow: inset 3px 3px 6px var(--shadow-dark),
                inset -3px -3px 6px var(--shadow-light);
    transform: translateY(0);
}

#accounting-confirm-modal .confirm-actions .btn-primary {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    background: linear-gradient(145deg, var(--primary-color), #5a6be0);
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 6px 6px 12px rgba(107, 124, 255, 0.3),
                -6px -6px 12px rgba(255, 255, 255, 0.8);
}

#accounting-confirm-modal .confirm-actions .btn-primary:hover {
    box-shadow: 8px 8px 16px rgba(107, 124, 255, 0.4),
                -8px -8px 16px rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

#accounting-confirm-modal .confirm-actions .btn-primary:active {
    box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.2),
                inset -3px -3px 6px rgba(255, 255, 255, 0.1);
    transform: translateY(0);
}

/* ==================== 模块高度和滚动调整 ==================== */

/* 待办清单卡片 - 固定高度 */
.todo-card {
    height: 600px;
    display: flex;
    flex-direction: column;
}

.todo-body {
    height: 100%;
    max-height: 600px;
}

.todo-input-group {
    flex-shrink: 0;
}

.todo-stats {
    flex-shrink: 0;
}

.todo-list-container {
    flex: 1;
    overflow-y: auto;
    max-height: 460px;
    padding: 8px;
}

/* 今日单词卡片 - 固定高度 */
.word-card {
    height: 400px;
    display: flex;
    flex-direction: column;
}

.word-content {
    height: 100%;
    max-height: 340px;
    overflow-y: auto;
    padding: 12px;
}

.word-footer {
    flex-shrink: 0;
    padding: 8px;
    border-top: 1px solid rgba(163, 177, 198, 0.1);
}

/* 心情日记卡片 - 固定高度 */
.mood-card {
    height: 400px;
    display: flex;
    flex-direction: column;
}

.mood-body {
    height: 100%;
    max-height: 400px;
}

.mood-input-area {
    flex-shrink: 0;
    padding: 12px;
}

.mood-list-container {
    flex: 1;
    overflow-y: auto;
    max-height: 280px;
    padding: 8px;
}

/* 卡片body样式调整 */
.todo-card .card-body,
.word-card .card-body,
.mood-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
}

/* ==================== 隐藏滚动条样式 ==================== */

/* 待办清单滚动容器隐藏滚动条 */
.todo-list-container {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.todo-list-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* 今日单词滚动容器隐藏滚动条 */
.word-content {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.word-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* 心情日记滚动容器隐藏滚动条 */
.mood-list-container {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.mood-list-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* ==================== 第1行模块固定高度 ==================== */

/* 健康打卡卡片 - 固定高度 */
.health-card {
    height: 200px;
    display: flex;
    flex-direction: column;
}

/* 放假倒计时卡片 - 固定高度 */
.holiday-card {
    height: 200px;
    display: flex;
    flex-direction: column;
}

/* ==================== 确保模块高度固定，内容内部滚动 ==================== */

/* 强制待办清单卡片固定高度 */
.todo-card {
    height: 600px !important;
    max-height: 600px !important;
    min-height: 600px !important;
}

.todo-card .card-body {
    height: calc(600px - 80px) !important;
    max-height: calc(600px - 80px) !important;
    overflow: hidden !important;
}

/* 强制今日单词卡片固定高度 */
.word-card {
    height: 400px !important;
    max-height: 400px !important;
    min-height: 400px !important;
}

.word-card .card-body {
    height: calc(400px - 80px) !important;
    max-height: calc(400px - 80px) !important;
    overflow: hidden !important;
}

/* 强制心情日记卡片固定高度 */
.mood-card {
    height: 400px !important;
    max-height: 400px !important;
    min-height: 400px !important;
}

.mood-card .card-body {
    height: calc(400px - 80px) !important;
    max-height: calc(400px - 80px) !important;
    overflow: hidden !important;
}

/* 强制健康打卡卡片固定高度 */
.health-card {
    height: 200px !important;
    max-height: 200px !important;
    min-height: 200px !important;
}

/* 强制放假倒计时卡片固定高度 */
.holiday-card {
    height: 200px !important;
    max-height: 200px !important;
    min-height: 200px !important;
}

/* 确保滚动容器正确工作 */
.todo-list-container {
    overflow-y: auto !important;
    max-height: 480px !important;
    height: 480px !important;
}

.word-content {
    overflow-y: auto !important;
    max-height: 300px !important;
    height: 300px !important;
}

.mood-list-container {
    overflow-y: auto !important;
    max-height: 260px !important;
    height: 260px !important;
}

/* ==================== 最终强制规则 - 确保生效 ==================== */

/* 待办清单 */
section.todo-card {
    height: 600px !important;
    max-height: 600px !important;
    min-height: 600px !important;
}

section.todo-card > .card-body {
    height: calc(600px - 80px) !important;
    max-height: calc(600px - 80px) !important;
    overflow: hidden !important;
    flex: none !important;
}

section.todo-card .todo-list-container {
    height: 480px !important;
    max-height: 480px !important;
    overflow-y: auto !important;
    flex: none !important;
}

/* 今日单词 */
section.word-card {
    height: 400px !important;
    max-height: 400px !important;
    min-height: 400px !important;
}

section.word-card > .card-body {
    height: calc(400px - 80px) !important;
    max-height: calc(400px - 80px) !important;
    overflow: hidden !important;
    flex: none !important;
}

section.word-card .word-content {
    height: 300px !important;
    max-height: 300px !important;
    overflow-y: auto !important;
    flex: none !important;
}

/* 心情日记 */
section.mood-card {
    height: 400px !important;
    max-height: 400px !important;
    min-height: 400px !important;
}

section.mood-card > .card-body {
    height: calc(400px - 80px) !important;
    max-height: calc(400px - 80px) !important;
    overflow: hidden !important;
    flex: none !important;
}

section.mood-card .mood-list-container {
    height: 260px !important;
    max-height: 260px !important;
    overflow-y: auto !important;
    flex: none !important;
}

/* 健康打卡 */
section.health-card {
    height: 200px !important;
    max-height: 200px !important;
    min-height: 200px !important;
}

/* 放假倒计时 */
section.holiday-card {
    height: 200px !important;
    max-height: 200px !important;
    min-height: 200px !important;
}

/* ==================== Grid布局已固定，确保内容不溢出 ==================== */

/* Grid行高已设置为：200px 400px auto */
/* 待办清单跨两行：200px + 400px = 600px */
/* 今日单词在第2行：400px */
/* 心情日记在第2行：400px */

/* 确保卡片不会超出Grid行高 */
section.todo-card {
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
}

section.word-card {
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
}

section.mood-card {
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
}

section.health-card {
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
}

section.holiday-card {
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
}

/* 确保内容区域可以滚动 */
.todo-list-container {
    overflow-y: auto !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.todo-list-container::-webkit-scrollbar {
    display: none !important;
}

.word-content {
    overflow-y: auto !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.word-content::-webkit-scrollbar {
    display: none !important;
}

.mood-list-container {
    overflow-y: auto !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.mood-list-container::-webkit-scrollbar {
    display: none !important;
}

/* ==================== 最近记录样式 ==================== */
.accounting-records .accounting-record {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    padding: 14px;
    margin-bottom: 12px;
    background: #e0e5ec;
    border-radius: 12px;
    box-shadow: 4px 4px 8px #a3b1c6, -4px -4px 8px #ffffff;
    transition: all 0.3s ease;
}

.accounting-records .accounting-record:hover {
    box-shadow: 12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light);
    transform: translateY(-1px);
}

.accounting-records .accounting-record-left {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.accounting-records .accounting-record-icon-wrapper {
    width: 40px;
    height: 40px;
    background: #e0e5ec;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 2px 2px 4px #a3b1c6, -2px -2px 4px #ffffff;
}

.accounting-records .accounting-record-icon-wrapper i {
    width: 18px;
    height: 18px;
}

.accounting-records .accounting-record.expense .accounting-record-icon-wrapper i {
    color: #e74c3c;
}

.accounting-records .accounting-record.income .accounting-record-icon-wrapper i {
    color: #27ae60;
}

.accounting-records .accounting-record-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.accounting-records .accounting-record-category {
    color: #4a5568;
    font-weight: 500;
    font-size: 14px;
}

.accounting-records .accounting-record-note {
    color: #718096;
    font-size: 13px;
}

.accounting-records .accounting-record-right {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.accounting-records .accounting-record-amount-time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    transition: all 0.3s ease;
}

.accounting-records .accounting-record-amount {
    font-size: 16px;
    font-weight: 700;
}

.accounting-record-amount.expense {
    color: #e74c3c;
}

.accounting-record-amount.income {
    color: #27ae60;
}

.accounting-records .accounting-record-time {
    font-size: 11px;
    color: #a0aec0;
    font-weight: 400;
}

.accounting-records .accounting-record:hover .accounting-record-amount-time {
    transform: translateX(-80px);
}

.accounting-records .accounting-record-edit {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: #e0e5ec;
    box-shadow: 2px 2px 4px #a3b1c6, -2px -2px 4px #ffffff;
    color: #6b7fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.accounting-records .accounting-record-delete {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: #e0e5ec;
    box-shadow: 2px 2px 4px #a3b1c6, -2px -2px 4px #ffffff;
    color: #e74c3c;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.accounting-records .accounting-record:hover .accounting-record-edit,
.accounting-records .accounting-record:hover .accounting-record-delete {
    opacity: 1;
    pointer-events: auto;
}

.accounting-record-edit:hover {
    box-shadow: inset 3px 3px 6px #a3b1c6, inset -3px -3px 6px #ffffff;
}

.accounting-record-delete:hover {
    box-shadow: inset 3px 3px 6px #a3b1c6, inset -3px -3px 6px #ffffff;
}

.accounting-records .accounting-record-edit i {
    font-size: 14px;
}

.accounting-records .accounting-record-delete i {
    font-size: 14px;
}
}

/* 修改金额输入框字体大小，使其与备注框一致 */
#accounting-amount-input {
    font-size: 15px !important;
    font-weight: 400 !important;
}

.accounting-detail-inputs input[type="number"]#accounting-amount-input {
    font-size: 15px !important;
    font-weight: 400 !important;
}

/* 确认记账弹窗内容上移20px */
#accounting-confirm-modal .modal-body {
    padding-top: 0 !important;
}

/* 修改news-body的左右padding，让列表阴影不被遮挡 */
.news-body {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 隐藏新闻加载状态 */
.news-loading {
    display: none !important;
}

/* 增加tab和列表之间的间距 */
.news-content {
    margin-top: 20px !important;
}

/* 确保列表左右阴影不被裁剪 */
.news-list {
    overflow-x: visible !important;
}

.accounting-records {
    overflow-x: visible !important;
}

/* 强制移除news-body的左右padding（简写属性覆盖） */
.news-body {
    padding: 0 0 0 0 !important;
}

/* 修复滚动容器裁剪左右阴影的问题 */
.news-list {
    overflow-x: visible !important;
    overflow-y: auto !important;
}

.news-content {
    overflow-x: visible !important;
}

/* 给记账记录列表添加负margin，让阴影能完全显示 */
.accounting-records {
    margin-left: -8px !important;
    margin-right: -8px !important;
}

/* 给每条记录添加margin来补偿，确保边框宽度和通用记账一致 */
.accounting-records .accounting-record {
    margin: 0 8px 12px 8px !important;
}

/* 增大负margin到32px，让阴影完全显示 */

/* 增大负margin到32px，让阴影完全显示 */
.accounting-records {
    margin-left: -32px !important;
    margin-right: -32px !important;
}

/* 确保记账记录每条的宽度保持518px，和通用记账一致 */
.accounting-records .accounting-record {
    width: 518px !important;
    max-width: 518px !important;
    box-sizing: border-box !important;
    margin: 0 32px 12px 32px !important;
}

/* 确保记账记录和通用记账模块左对齐 */
.accounting-records .accounting-record {
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* 确保记账记录和通用记账模块左对齐，保持底部间距 */

/* 记账列表样式：左右负margin让阴影显示，整体向右移动30px */
.accounting-records {
    margin-left: -32px !important;
    margin-right: -32px !important;
    padding: 0 !important;
}

.accounting-records .accounting-record {
    width: 518px !important;
    max-width: 518px !important;
    box-sizing: border-box !important;
    margin-left: 62px !important;
    margin-right: 0 !important;
    margin-bottom: 12px !important;
}

/* 将记账记录列表居中排列 */
.accounting-records {
    justify-content: center !important;
    align-items: center !important;
}

.accounting-records .accounting-record {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 热点新闻列表样式：左右负margin让阴影显示，列表居中展示 */
.news-list {
    margin-left: -32px !important;
    margin-right: -32px !important;
    padding: 16px 4px 4px 4px !important;
    display: flex !important;
    transform: translateY(-15px) !important;
    flex-direction: column !important;


/* 热点新闻列表样式：左右负margin让阴影显示，列表居中展示，宽度518px */
.news-list {
    margin-left: -32px !important;
    margin-right: -32px !important;
    padding: 16px 4px 4px 4px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    transform: translateY(-15px) !important;
}
.news-item {
    width: 518px !important;
    max-width: 518px !important;
    min-width: 518px !important;
    box-sizing: border-box !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 给新闻列表添加上下负margin让阴影显示 */
.news-list {
    margin-top: -32px !important;
    margin-bottom: -32px !important;
}

/* 移除news-content的margin-top，让news-list的负margin生效 */
.news-content {
    margin-top: 0 !important;
}

/* 给news-body添加负margin和padding，让内部列表的上方阴影显示 */
.news-body {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 确保news-body和card-body没有overflow裁剪 */
.news-body, .card-body {
    overflow: visible !important;
}

/* 确保news-card也没有overflow裁剪 */
.news-card {
    overflow: visible !important;
}

/* 减少card-header的底部margin，给新闻列表上方阴影留出空间 */
.news-card .card-header {
    margin-bottom: 0 !important;
}

/* 去掉news-card的固定高度，改为自适应 */
.news-card {
    height: auto !important;
    min-height: auto !important;
}

/* 设置news-list最多显示8条新闻 */
.news-list {
    max-height: none !important;
    overflow: visible !important;
}

/* 快速记账提交按钮右对齐 */

/* 快速记账提交按钮右对齐 */

/* 快速记账和最近记录样式调整 */
.quick-input-row {
    display: flex !important;
    gap: 0 !important;
}

.quick-input-field {
    flex: 1 !important;
}

.quick-add-btn {
    margin-left: auto !important;
}

.records-header {
    border: none !important;
    border-bottom: none !important;
}

/* ==================== 收支按钮样式修复 ==================== */

/* 支出按钮未激活状态：紫色icon和文字 */
.type-toggle-btn.expense:not(.active) {
    color: #6b7fff !important;
}

/* 收入按钮未激活状态：绿色icon和文字 */
.type-toggle-btn.income:not(.active) {
    color: #27ae60 !important;
}

/* 收入按钮激活状态：绿色背景+白色文字/icon */
.type-toggle-btn.income.active {
    background: #27ae60 !important;
    color: #ffffff !important;
    box-shadow: var(--neu-shadow-in) !important;
}

/* 收入分类选中效果：绿色背景+白色文字/icon */
.category-item.selected[data-category="income"] {
    background: #27ae60 !important;
    color: #ffffff !important;
}

.category-item.selected[data-category="income"] .category-icon {
    color: #ffffff !important;
}

/* 放假日历 - 使用健康打卡样式 */
.holiday-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin: 0 0 20px 0;
    padding: 0 4px;
}

.holiday-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    font-size: 12px;
    cursor: pointer;
    position: relative;
    background: var(--bg-color);
    padding: 4px;
    box-shadow: var(--neu-shadow-sm);
    transition: all 0.3s ease;
}

.holiday-day:hover {
    transform: translateY(-2px);
    box-shadow: var(--neu-shadow-out);
}

.holiday-day.empty {
    background: transparent;
    box-shadow: none;
    cursor: default;
}

.holiday-day.holiday {
    background: var(--bg-color);
    position: relative;
}

.holiday-day.holiday::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(72, 187, 120, 0.2);
    border-radius: 10px;
    pointer-events: none;
}

.holiday-day.makeup {
    background: var(--bg-color);
    position: relative;
}

.holiday-day.makeup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(236, 201, 75, 0.2);
    border-radius: 10px;
    pointer-events: none;
}

.holiday-day.weekend {
    color: var(--text-light);
}

.holiday-day-num {
    font-weight: bold;
}

.holiday-day-label {
    font-size: 12px;
    padding: 2px 4px;
    border-radius: 3px;
    background: rgba(72, 187, 120, 0.3);
    margin-top: 2px;
    font-weight: 600;
}

.holiday-day.makeup .holiday-day-label {
    background: rgba(236, 201, 75, 0.3);
}

.legend .dot.holiday {
    background: rgba(72, 187, 120, 0.2);
}

.legend .dot.makeup {
    background: rgba(236, 201, 75, 0.2);
}

#holiday-calendar-modal .modal-content {
    max-width: 1000px;
}

/* 放假日历样式 */
.holiday-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.holiday-weekday {
    text-align: center;
    font-weight: 600;
    color: var(--text-light);
    font-size: 12px;
    padding: 8px 4px;
}

.holiday-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

/* 强制放假日历样式 - 使用更高优先级 */
#holiday-calendar .holiday-weekdays {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 10px !important;
}

#holiday-calendar .holiday-days {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 10px !important;
}

/* 放假日历详细信息区域 */
.holiday-day-info {
    margin-top: 20px;
    padding: 15px;
    background: var(--bg-color);
    border-radius: 10px;
    box-shadow: var(--neu-shadow-sm);
    min-height: 80px;
}

.holiday-day-info .info-placeholder {
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
    padding: 20px;
}

.holiday-day-info .info-date {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.holiday-day-info .info-content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.holiday-day-info .info-holiday {
    color: #48bb78;
    font-weight: 600;
}

.holiday-day-info .info-makeup {
    color: #ecb94b;
    font-weight: 600;
}

.holiday-day-info .info-weekend {
    color: var(--text-light);
}

.holiday-day-info .info-workday {
    color: var(--text-secondary);
}

/* 放假日历详细信息 */
#holiday-calendar-modal .holiday-day-info {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.05) 0%, rgba(236, 201, 75, 0.05) 100%);
    border-radius: 12px;
    border: 2px solid rgba(163, 177, 198, 0.15);
    box-shadow: var(--neu-shadow-in);
    min-height: 80px;
}

#holiday-calendar-modal .holiday-day-info .info-placeholder {
    display: none;
}

#holiday-calendar-modal .holiday-day-info .info-date {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

#holiday-calendar-modal .holiday-day-info .info-date::before {
    content: '📅';
    font-size: 20px;
}

#holiday-calendar-modal .holiday-day-info .info-content {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
}

#holiday-calendar-modal .holiday-day-info .info-holiday {
    color: #48bb78;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#holiday-calendar-modal .holiday-day-info .info-holiday::before {
    content: '🎉';
    font-size: 20px;
}

#holiday-calendar-modal .holiday-day-info .info-makeup {
    color: #ecb94b;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#holiday-calendar-modal .holiday-day-info .info-makeup::before {
    content: '📝';
    font-size: 20px;
}

#holiday-calendar-modal .holiday-day-info .info-weekend {
    color: var(--text-light);
    font-style: italic;
}

#holiday-calendar-modal .holiday-day-info .info-workday {
    color: var(--text-secondary);
}

/* 调整放假日历弹窗高度 */
#holiday-calendar-modal .modal-content {
    height: calc(80% - 200px) !important;
}


/* 确认弹窗消息样式 */
#confirm-modal #confirm-message {
    text-align: center !important;
    padding: 40px 20px 40px 20px !important;
    min-height: 40px !important;
    font-size: 15px !important;
    color: var(--text-secondary) !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* 去掉确认弹窗的分割线 */
#confirm-modal .modal-header {
    border: none !important;
}

#confirm-modal .modal-footer {
    border: none !important;
}

