/* ========== 全局基础样式：清新浅色年轻风 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: radial-gradient(circle at top, #e0f2ff 0, #f9fbff 40%, #ffffff 100%);
    color: #1f2933;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 主容器：适用于非首页的普通页面 */
.container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 16px 12px 40px;
}

/* 头部 / 顶部栏（登录页、管理页） */
header {
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    border: 1px solid #e2ecff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    margin-bottom: 18px;
}

/* 导航栏（和首页保持调性） */
.nav-bar {
    display: flex;
    gap: 24px;
    margin-bottom: 12px;
}

.nav-item {
    text-decoration: none;
    color: #64748b;
    padding: 6px 0;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    transition: color 0.2s ease;
}

.nav-item.active {
    color: #1e293b;
    font-weight: 600;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #4ba3ff, #8b5cf6);
}

.nav-item:hover:not(.active) {
    color: #0f172a;
}

/* 用户信息 */
.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 6px;
}

#user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 2px solid #e0edff;
    cursor: pointer;
    transition: all 0.3s ease;
}

#user-avatar:hover {
    border-color: #4ba3ff;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
}

/* 搜索 / 表单区域（通用） */
.search-section,
.form-card {
    margin-top: 10px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #e4edff;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.05);
}

.date-range {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.date-input {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.date-input label {
    font-size: 13px;
    color: #64748b;
}

.search-box {
    display: flex;
    gap: 8px;
}

/* 表单控件：统一浅色风格 */
input[type="text"],
input[type="date"],
input[type="password"],
textarea,
select {
    width: 100%;
    background-color: #f9fbff;
    color: #111827;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 10px;
    padding: 8px 11px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

input[type="text"]:focus,
input[type="date"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    background-color: #ffffff;
    border-color: #4ba3ff;
    box-shadow: 0 0 0 1px rgba(74, 158, 255, 0.18);
}

textarea {
    resize: vertical;
    min-height: 90px;
    font-size: 16px; /* 增大字体 */
}

/* 搜索输入 & 按钮 */
#search-input {
    flex: 1;
}

button,
.btn {
    cursor: pointer;
    border: none;
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.1s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

button:active,
.btn:active {
    transform: translateY(1px);
    box-shadow: none;
}

#search-btn,
.btn-primary {
    background: linear-gradient(135deg, #4ba3ff, #2563eb);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.23);
}

#search-btn:hover,
.btn-primary:hover {
    background: linear-gradient(135deg, #2f8af0, #1d4ed8);
}

#logout-btn,
.btn-danger {
    background: linear-gradient(135deg, #fb7185, #f97316);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(248, 113, 113, 0.24);
}

#logout-btn:hover,
.btn-danger:hover {
    background: linear-gradient(135deg, #f97373, #f97316);
}

#post-btn {
    background: linear-gradient(135deg, #22c55e, #10b981);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.22);
}

#post-btn:hover {
    background: linear-gradient(135deg, #16a34a, #0ea76a);
}

/* 发布操作区域 - 右对齐 */
.post-area .post-actions {
    display: flex;
    justify-content: flex-end !important;
    margin-top: 10px;
    width: 100%;
    text-align: right;
}

/* 确保发布按钮本身也右对齐 */
.post-area #post-btn {
    margin-left: auto;
}

/* 心情列表（非首页版，保持清新） */
.mood-list-container {
    margin-top: 16px;
}

.mood-list {
    padding-top: 4px;
}

.mood-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    padding: 14px 14px 12px;
    margin-bottom: 12px;
    border: 1px solid #e4edff;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.04);
}

.mood-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.mood-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    margin-right: 10px;
}

.mood-info {
    display: flex;
    flex-direction: column;
}

.mood-nickname {
    font-weight: 600;
    color: #0f172a;
    font-size: 14px;
}

.mood-time {
    font-size: 12px;
    color: #9ca3af;
}

.mood-content {
    margin-top: 6px;
    margin-bottom: 10px;
    color: #111827;
    line-height: 1.5;
    font-size: 14px;
}

.mood-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 4px;
}

.mood-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 10px;
    background-color: #f3f6ff;
}

.mood-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.18s ease;
}

.mood-image img:hover {
    transform: scale(1.04);
}

/* 移动端优化：增大心情列表字体 */
@media (max-width: 768px) {
    .mood-nickname {
        font-size: 16px;
    }
    
    .mood-time {
        font-size: 14px;
    }
    
    .mood-content {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .mood-item {
        padding: 16px 16px 14px;
        margin-bottom: 14px;
    }
    
    /* 移动端头像稍大一些 */
    .mood-avatar {
        width: 40px;
        height: 40px;
    }
    
    /* 调整头像和内容间距 */
    .mood-header {
        margin-bottom: 10px;
    }
}

/* 图片预览（通用） */
.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.preview-item {
    position: relative;
    padding-bottom: 100%;
    overflow: hidden;
    border-radius: 10px;
    background-color: #f3f6ff;
}

.preview-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.18s ease;
}

.preview-item img:hover {
    transform: scale(1.04);
}

/* 微信朋友圈图片上传样式 */
.post-area .image-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin-bottom: 8px;
}

.post-area .image-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 4px;
    overflow: hidden;
    background: #f2f2f2;
}

.post-area .image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-area .image-preview-item .remove-image {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: normal;
    z-index: 10;
    border: none;
}

/* 上传成功标记样式 */
.post-area .image-preview-item .upload-success-mark {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 24px;
    height: 24px;
    background: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
    animation: successPulse 0.6s ease-out;
}

.post-area .image-preview-item .upload-success-mark svg {
    width: 14px;
    height: 14px;
}

/* 上传成功标记动画 */
@keyframes successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 微信朋友圈添加图片按钮 */
.post-area .add-image-btn {
    position: relative;
    aspect-ratio: 1;
    background: #f7f7f7;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.post-area .add-image-btn:hover {
    background: #ebebeb;
    border-color: #d0d0d0;
}

/* 微信风格的+号 */
.post-area .add-image-btn::before {
    content: '+';
    position: absolute;
    font-size: 60px;
    color: #c8c8c8;
    font-weight: normal;
    line-height: 1;
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 移除原有的after伪元素 */
.post-area .add-image-btn::after {
    display: none;
}

.post-area .image-count {
    color: #999;
    font-size: 12px;
    font-weight: 400;
    text-align: right;
    margin-top: 5px;
}

/* 移动端图片上传优化 */
@media (max-width: 600px) {
    .post-area .image-preview-grid {
        gap: 4px;
    }
    
    .post-area .add-image-btn {
        border: 1px solid #e0e0e0;
    }
}

/* 图片查看器（全局） */
#image-viewer {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    z-index: 1000;
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}

#image-viewer.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

#image-viewer .image-container {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#image-viewer img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

#image-viewer img.zoomed {
    cursor: zoom-out;
}

/* 关闭按钮 */
.image-viewer-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    z-index: 1001;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.image-viewer-close:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

/* 图片加载状态 */
.image-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: white;
}

.image-loading .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.error-message {
    color: #ff6b6b;
    font-size: 16px;
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(8px);
}

/* 图片查看器提示 */
.image-viewer-tips {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    opacity: 0.8;
    pointer-events: none;
    animation: fadeInOut 4s ease-in-out;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    20%, 80% { opacity: 0.8; }
}

/* 移动端优化 */
@media (max-width: 768px) {
    .image-viewer-close {
        top: -10px;
        right: -10px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    #image-viewer .image-container {
        max-width: 98%;
        max-height: 98%;
    }
    
    #image-viewer img {
        border-radius: 8px;
    }
    
    .image-viewer-tips {
        bottom: 10px;
        font-size: 11px;
        padding: 6px 12px;
    }
}

/* 加载状态 / 空数据 */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 14px;
    border: 1px solid #e4edff;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(148, 163, 184, 0.3);
    border-top: 3px solid #4ba3ff;
    border-radius: 999px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    color: #9ca3af;
    font-size: 13px;
    gap: 8px;
}

.no-data {
    text-align: center;
    padding: 26px 16px;
    color: #9ca3af;
    font-size: 14px;
}

/* 自定义文件上传按钮（可复用） */
.file-input {
    display: none;
}

.custom-file-upload {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #4ba3ff, #6366f1);
    color: #ffffff;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.16s ease, box-shadow 0.16s ease, transform 0.1s ease;
    font-size: 13px;
    font-weight: 500;
}

.custom-file-upload:hover {
    background: linear-gradient(135deg, #2f8af0, #4f46e5);
}

.custom-file-upload svg {
    fill: currentColor;
}

/* 加载更多按钮样式 */
.load-more-btn {
    width: 100%;
    padding: 12px 20px;
    margin: 20px 0;
    background: linear-gradient(135deg, #4ba3ff, #6366f1);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.2);
}

.load-more-btn:hover {
    background: linear-gradient(135deg, #2f8af0, #4f46e5);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(74, 158, 255, 0.3);
}

.load-more-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(74, 158, 255, 0.2);
}

.load-more-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .container {
        padding: 12px 10px 32px;
    }

    header {
        padding: 10px 12px;
    }

    .search-section,
    .form-card {
        padding: 12px;
    }

    /* 日期输入框保持水平排列 */
    .date-range {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 8px;
    }
    
    .date-input {
        min-width: 0; /* 允许flex子项收缩 */
    }
    
    .date-input label {
        font-size: 12px;
    }
    
    /* 搜索框和按钮保持水平排列 */
    .search-box {
        flex-direction: row;
    }
    
    #search-btn {
        flex-shrink: 0; /* 防止按钮被压缩 */
        white-space: nowrap; /* 防止按钮文字换行 */
    }
    
    .load-more-btn {
        margin: 15px 0;
        padding: 10px 16px;
        font-size: 13px;
    }
    
    /* 移动端心情列表字体优化 */
    .mood-nickname {
        font-size: 16px;
    }
    
    .mood-time {
        font-size: 14px;
    }
    
    .mood-content {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .mood-item {
        padding: 16px 16px 14px;
        margin-bottom: 14px;
    }
}

/* 加载更多按钮样式 */
.load-more-btn {
    display: block;
    margin: 16px auto;
    padding: 10px 20px;
    background: linear-gradient(135deg, #4ba3ff, #2563eb);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.16s ease, background-color 0.16s ease;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.23);
}

.load-more-btn:hover {
    background: linear-gradient(135deg, #2f8af0, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.load-more-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

/* 个人信息编辑页面样式 */
.profile-section {
    margin-top: 16px;
}

.profile-section .form-card {
    max-width: 600px;
    margin: 0 auto;
}

.profile-section .form-card h2 {
    text-align: center;
    margin-bottom: 24px;
    color: #1f2933;
    font-size: 20px;
    font-weight: 600;
}

/* 头像上传容器 */
.avatar-upload-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* 头像上传区域 - 简洁版 */
.avatar-upload-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid #e4edff;
    transition: all 0.3s ease;
}

.avatar-upload-wrapper:hover {
    border-color: #4ba3ff;
    transform: scale(1.02);
}

.avatar-upload-wrapper .avatar-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.current-avatar {
    display: block;
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid #e4edff;
}

.current-avatar:hover {
    border-color: #4ba3ff;
    transform: scale(1.02);
}

.current-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* 允许点击事件穿透到父元素 */
}

.current-avatar:hover .avatar-overlay {
    opacity: 1;
}

/* 移动端始终显示提示文字 */
@media (max-width: 768px) {
    .avatar-overlay {
        opacity: 0.9;
        background: rgba(0, 0, 0, 0.5);
    }
}

.avatar-tips {
    text-align: center;
}

.avatar-tips p {
    color: #9ca3af;
    font-size: 12px;
    margin: 0;
}

/* 表单组样式 */
.profile-section .form-group {
    margin-bottom: 24px;
}

.profile-section .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.profile-section .form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-section .form-group input:focus {
    outline: none;
    border-color: #4ba3ff;
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

/* 输入提示 */
.input-tips {
    text-align: right;
    margin-top: 4px;
    font-size: 12px;
    color: #9ca3af;
}

.password-tips {
    margin-top: 8px;
}

.password-tips p {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
}

/* 密码输入区域 */
.password-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 操作按钮 */
.form-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
}

.btn-secondary {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background: #e5e7eb;
    color: #4b5563;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .profile-section .form-card {
        margin: 0 12px;
        padding: 16px;
    }
    
    .current-avatar {
        width: 100px;
        height: 100px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions button {
        width: 100%;
    }
}

/* ========== 短链接生成器页面样式 ========== */
.url-shortener-section {
    margin-top: 16px;
}

.section-header {
    text-align: center;
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1f2933;
    margin-bottom: 8px;
}

.section-header p {
    color: #6b7280;
    font-size: 14px;
}

/* 输入区域 */
.url-input-area {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 14px;
    padding: 24px;
    border: 1px solid #e4edff;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.05);
    margin-bottom: 24px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.input-group textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group textarea:focus {
    outline: none;
    border-color: #4ba3ff;
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

/* 转换按钮 */
.convert-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #4ba3ff, #2563eb);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.23);
    position: relative;
    overflow: hidden;
}

.convert-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2f8af0, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

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

.convert-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-loading::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* 结果显示区域 */
.result-area {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 14px;
    padding: 24px;
    border: 1px solid #e4edff;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.05);
    margin-bottom: 24px;
    animation: slideInUp 0.3s ease-out;
}

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

.result-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2933;
    margin-bottom: 20px;
}

.result-item {
    margin-bottom: 20px;
}

.result-item:last-child {
    margin-bottom: 0;
}

.result-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.url-display {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    word-break: break-all;
}

.url-text {
    flex: 1;
    color: #374151;
    font-size: 14px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.copy-btn {
    padding: 6px 12px;
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

/* 二维码区域 */
.qr-code-container {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.qr-placeholder {
    width: 80px;
    height: 80px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #6b7280;
}

.qr-text {
    font-weight: 500;
    margin-bottom: 4px;
}

.qr-url {
    font-size: 10px;
    text-align: center;
    word-break: break-all;
    max-width: 60px;
}

.download-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.download-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
}

/* 历史记录区域 */
.history-section {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 14px;
    padding: 24px;
    border: 1px solid #e4edff;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.05);
}

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

.history-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2933;
}

.clear-btn {
    padding: 6px 12px;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clear-btn:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

.history-list {
    max-height: 400px;
    overflow-y: auto;
}

.no-history {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
    font-size: 14px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #fafafa;
    transition: all 0.2s ease;
}

.history-item:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.history-content {
    flex: 1;
    min-width: 0;
}

.history-long-url {
    font-size: 14px;
    color: #374151;
    margin-bottom: 4px;
    word-break: break-all;
}

.history-short-url {
    font-size: 13px;
    color: #4ba3ff;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    margin-bottom: 4px;
    word-break: break-all;
}

.history-time {
    font-size: 12px;
    color: #9ca3af;
}

.history-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.history-copy-btn,
.history-delete-btn {
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.history-copy-btn {
    background: #f3f4f6;
    color: #6b7280;
}

.history-copy-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.history-delete-btn {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.history-delete-btn:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

/* 消息提示样式 */
.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.message-success {
    background: #10b981;
}

.message-error {
    background: #ef4444;
}

.message-info {
    background: #3b82f6;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .url-input-area,
    .result-area,
    .history-section {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .section-header h2 {
        font-size: 20px;
    }
    
    .url-display {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .copy-btn {
        align-self: flex-end;
    }
    
    .qr-code-container {
        flex-direction: column;
        text-align: center;
    }
    
    .history-item {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .history-actions {
        justify-content: center;
    }
    
    .history-copy-btn,
    .history-delete-btn {
        flex: 1;
    }
}

/* 卖菜收入页面样式 */
.vegetable-income-page {
    padding: 16px 0;
}

.stats-cards {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    width: 100%;
    max-width: 100%;
}

.stats-cards::-webkit-scrollbar {
    height: 4px;
}

.stats-cards::-webkit-scrollbar-track {
    background: transparent;
}

.stats-cards::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.stat-card {
    flex: 0 0 auto;
    min-width: 200px;
    width: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.stat-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.3);
}

.stat-card:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.3);
}

.stat-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
}

.stat-value {
    font-size: 42px;
    font-weight: 700;
    color: white;
}

.add-income-section {
    background: white;
    padding: 20px;
    border-radius: 14px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.add-income-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1e293b;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group input {
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #f8fafc;
}

.form-group input:focus {
    outline: none;
    border-color: #4ba3ff;
    background: white;
    box-shadow: 0 0 0 3px rgba(74, 163, 255, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #4ba3ff 0%, #8b5cf6 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(74, 163, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 163, 255, 0.4);
}

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

.btn-secondary {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #e2e8f0;
    color: #475569;
}

.chart-section {
    background: white;
    padding: 20px;
    border-radius: 14px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.chart-tabs {
    display: flex;
    gap: 8px;
}

.chart-tab {
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chart-tab.active {
    background: linear-gradient(135deg, #4ba3ff 0%, #8b5cf6 100%);
    color: white;
    border-color: transparent;
}

.chart-tab:hover:not(.active) {
    background: #e2e8f0;
    color: #475569;
}

.view-toggle {
    display: flex;
    gap: 4px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 8px;
}

.view-toggle-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-toggle-btn.active {
    background: white;
    color: #4ba3ff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chart-container {
    width: 100%;
    height: 300px;
}

.detail-container {
    max-height: 500px;
    overflow-y: auto;
}

.detail-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-item {
    background: #f8fafc;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.detail-date {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.detail-total {
    font-size: 16px;
    font-weight: 700;
    color: #4ba3ff;
}

.detail-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
}

.item-name {
    font-size: 14px;
    color: #475569;
    flex: 1;
}

.item-amount {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-right: 12px;
}

.edit-btn {
    padding: 6px 12px;
    background: #4ba3ff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edit-btn:hover {
    background: #3b82f6;
    transform: translateY(-1px);
}

.detail-note {
    margin-top: 8px;
    padding: 8px 12px;
    background: #fef3c7;
    border-radius: 6px;
    font-size: 13px;
    color: #92400e;
}

.aggregate-section {
    background: white;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.aggregate-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1e293b;
}

.aggregate-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aggregate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.aggregate-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.aggregate-name {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}

.aggregate-info {
    display: flex;
    gap: 16px;
    align-items: center;
}

.aggregate-amount {
    font-size: 16px;
    font-weight: 700;
    color: #4ba3ff;
}

.aggregate-quantity {
    font-size: 13px;
    color: #64748b;
}

.no-data {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
    font-size: 14px;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 24px;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

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

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #64748b;
}

.modal-body {
    margin-bottom: 20px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-footer .btn-primary,
.modal-footer .btn-secondary {
    flex: 1;
}

.dishes-container {
    margin-bottom: 16px;
}

.dishes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.dishes-header span {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.btn-add-dish {
    background: linear-gradient(135deg, #22c55e 0%, #10b981 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-add-dish:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
}

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

.dishes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dish-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

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

.dish-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.dish-item-title {
    font-size: 15px;
    font-weight: 700;
    color: #334155;
}

.dish-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-toggle-dish {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: #0284c7;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.15);
}

.btn-toggle-dish:hover {
    background: linear-gradient(135deg, #bae6fd 0%, #7dd3fc 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

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

.toggle-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 7px solid #0284c7;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-arrow.collapsed {
    transform: rotate(-90deg);
}

.btn-delete-dish {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.15);
}

.btn-delete-dish:hover {
    background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

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

.dish-item-summary {
    padding: 20px 16px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.dish-item-summary .form-group {
    margin-bottom: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.dish-item-summary .form-group label {
    font-size: 28px;
    color: #64748b;
    margin-bottom: 0;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.dish-item-summary .form-group input {
    flex: 1;
    padding: 16px 20px;
    font-size: 36px;
    font-weight: 700;
    color: #1e293b;
    border: 2px solid #e2e8f0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 0;
}

.dish-item-summary .form-group input:focus {
    border-color: #4ba3ff;
    background: white;
    box-shadow: 0 0 0 4px rgba(74, 163, 255, 0.15);
    transform: scale(1.01);
}

.dish-item-summary .form-group input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.dish-item-body {
    padding: 20px 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    max-height: 500px;
    opacity: 1;
    overflow: hidden;
}

.dish-item-body .form-group {
    margin-bottom: 16px;
}

.dish-item-body .form-group:last-child {
    margin-bottom: 0;
}

.dish-item-body .form-group label {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 6px;
    font-weight: 500;
}

.dish-item-body .form-group input {
    padding: 12px 14px;
    font-size: 14px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dish-item-body .form-group input:focus {
    border-color: #4ba3ff;
    box-shadow: 0 0 0 3px rgba(74, 163, 255, 0.1);
}

.dish-item-body.collapsed {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
}

.dish-item-body .form-group {
    margin-bottom: 12px;
}

.dish-item-body .form-group:last-child {
    margin-bottom: 0;
}

.dish-item-body .form-group label {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
}

.dish-item-body .form-group input {
    padding: 10px 12px;
    font-size: 14px;
}

.total-amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 10px;
    margin-bottom: 16px;
    border: 1px solid #fcd34d;
}

.total-amount span:first-child {
    font-size: 14px;
    font-weight: 600;
    color: #92400e;
}

.total-value {
    font-size: 24px;
    font-weight: 700;
    color: #b45309;
}

@media (max-width: 768px) {
    .stats-cards {
        gap: 8px;
        width: 100%;
        max-width: 100%;
    }
    
    .stat-card {
        padding: 12px 8px;
        min-width: 180px;
        width: 180px;
    }
    
    .stat-label {
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .stat-value {
        font-size: 28px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .chart-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .chart-tabs {
        justify-content: center;
    }
    
    .view-toggle {
        justify-content: center;
    }
    
    .chart-container {
        height: 250px;
    }
    
    .aggregate-info {
        flex-direction: column;
        align-items: flex-end;
        gap: 4px;
    }
    
    .dish-item-header {
        padding: 10px 12px;
    }
    
    .dish-item-summary {
        padding: 16px 12px;
    }
    
    .dish-item-summary .form-group {
        gap: 8px;
        flex-direction: row;
    }
    
    .dish-item-summary .form-group label {
        font-size: 24px;
    }
    
    .dish-item-summary .form-group input {
        padding: 14px 16px;
        font-size: 32px;
    }
    
    .dish-item-body {
        padding: 16px 12px;
    }
    
    .dish-item-body .form-group {
        margin-bottom: 12px;
    }
    
    .dish-item-body .form-group input {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .add-income-section {
        padding: 16px;
    }
    
    .add-income-section h3 {
        font-size: 18px;
        margin-bottom: 14px;
    }
    
    .form-group label {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .form-group input {
        padding: 12px 14px;
        font-size: 16px;
        border-radius: 10px;
    }
    
    .dishes-header {
        margin-bottom: 14px;
        padding-bottom: 10px;
    }
    
    .dishes-header span {
        font-size: 15px;
    }
    
    .btn-add-dish {
        padding: 10px 18px;
        font-size: 14px;
        min-height: 44px;
        min-width: 120px;
    }
    
    .dish-item {
        border-radius: 14px;
    }
    
    .dish-item-header {
        padding: 14px 16px;
    }
    
    .dish-item-title {
        font-size: 15px;
    }
    
    .btn-delete-dish {
        padding: 8px 14px;
        font-size: 13px;
        min-height: 36px;
        min-width: 60px;
    }
    
    .dish-item-body {
        padding: 16px;
    }
    
    .dish-item-body .form-group {
        margin-bottom: 14px;
    }
    
    .dish-item-body .form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .dish-item-body .form-group input {
        padding: 12px 14px;
        font-size: 16px;
        border-radius: 10px;
    }
    
    .total-amount {
        padding: 18px 16px;
        border-radius: 12px;
        margin-bottom: 18px;
    }
    
    .total-amount span:first-child {
        font-size: 15px;
    }
    
    .total-value {
        font-size: 28px;
    }
    
    .btn-primary {
        padding: 14px 28px;
        font-size: 16px;
        min-height: 50px;
        width: 100%;
    }
    
    .chart-section,
    .aggregate-section {
        padding: 16px;
    }
    
    .chart-section h3,
    .aggregate-section h3 {
        font-size: 18px;
        margin-bottom: 14px;
    }
    
    .chart-tab {
        padding: 10px 18px;
        font-size: 14px;
        min-height: 40px;
    }
    
    .view-toggle-btn {
        padding: 10px 18px;
        font-size: 14px;
        min-height: 40px;
    }
    
    .detail-item {
        padding: 16px;
        border-radius: 12px;
    }
    
    .detail-date {
        font-size: 15px;
    }
    
    .detail-total {
        font-size: 18px;
    }
    
    .item-name {
        font-size: 15px;
    }
    
    .item-amount {
        font-size: 15px;
    }
    
    .edit-btn {
        padding: 8px 14px;
        font-size: 13px;
        min-height: 36px;
    }
    
    .aggregate-item {
        padding: 16px;
        border-radius: 12px;
    }
    
    .aggregate-name {
        font-size: 16px;
    }
    
    .aggregate-amount {
        font-size: 18px;
    }
    
    .aggregate-quantity {
        font-size: 14px;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
        border-radius: 18px;
    }
    
    .modal-header h3 {
        font-size: 20px;
    }
    
    .modal-body .form-group input {
        padding: 12px 14px;
        font-size: 16px;
        border-radius: 10px;
    }
    
    .modal-footer .btn-primary,
    .modal-footer .btn-secondary {
        padding: 14px 20px;
        font-size: 16px;
        min-height: 50px;
    }
}
