:root {
    --primary-bg: linear-gradient(135deg, #1a1a2e, #16213e);
    --secondary-bg: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(255, 255, 255, 0.1);
    --text-color: white;
    --accent-color: #00dbde;
    --border-color: rgba(255, 255, 255, 0.18);
    --sidebar-bg: rgba(255, 255, 255, 0.1);
}

/* 主题切换平滑过渡效果 */
body {
    transition: all 0.3s ease;
}

body.theme-transitioning * {
    transition: all 0.3s ease !important;
}

/* 确保所有元素都有平滑过渡 */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* 统计容器样式 */
.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 10px;
}

.stat-item {
    text-align: center;
    margin: 5px;
    padding: 15px;
    background: var(--card-bg);
    border-radius: 12px;
    min-width: 100px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--text-color);
}

.stat-label {
    color: var(--text-color);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 统计数字颜色 - 深色主题 */
.stat-item:nth-child(1) .stat-value { color: #ff416c; }
.stat-item:nth-child(2) .stat-value { color: #8e2de2; }
.stat-item:nth-child(3) .stat-value { color: #d4af37; }
.stat-item:nth-child(4) .stat-value { color: #00c9ff; }
.stat-item:nth-child(5) .stat-value { color: #ff6b6b; }

/* 个人中心样式 */
.profile-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-top: 2rem;
}

.profile-sidebar {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.profile-avatar {
    text-align: center;
    margin-bottom: 2rem;
}

.avatar-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 3rem;
    color: white;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.user-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.stat-card {
    background: var(--bg-color);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-color);
    margin-top: 0.5rem;
    opacity: 0.8;
}

.profile-main {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.profile-section {
    margin-bottom: 2rem;
}

.profile-section h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

/* 用户管理样式 */
.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-box input {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--card-bg);
    color: var(--text-color);
    min-width: 200px;
}

.search-box button {
    padding: 0.5rem 1rem;
    background: var(--accent-color);
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-box button:hover {
    background: #00b8c4;
}

.users-table-container {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.users-table th,
.users-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.users-table th {
    background: var(--bg-color);
    font-weight: 600;
    color: var(--text-color);
}

.users-table tr:hover {
    background: var(--bg-color);
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background: #00b8c4;
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    margin-right: 0.5rem;
}

.btn-edit {
    background: #4CAF50;
    color: white;
}

.btn-edit:hover {
    background: #45a049;
}

.btn-delete {
    background: #f44336;
    color: white;
}

.btn-delete:hover {
    background: #da190b;
}

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

.modal-content {
    background: var(--card-bg);
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

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

.modal-header h2 {
    margin: 0;
    color: var(--text-color);
}

.close {
    color: var(--text-color);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--accent-color);
}

.modal form {
    padding: 1.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .action-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        justify-content: center;
    }
    
    .users-table {
        font-size: 0.875rem;
    }
    
    .users-table th,
    .users-table td {
        padding: 0.5rem;
    }
}

/* 帮助页面样式 */
.help-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.help-section:hover {
    transform: translateY(-2px);
}

.help-section h2 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.help-content h3 {
    color: var(--text-color);
    margin: 1.5rem 0 1rem 0;
    font-size: 1.2rem;
}

.help-content h3:first-child {
    margin-top: 0;
}

.help-content p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.help-content ul {
    color: var(--text-color);
    line-height: 1.6;
    margin-left: 1.5rem;
}

.help-content li {
    margin-bottom: 0.5rem;
}

.work-type {
    background: var(--bg-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.work-type:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.work-type h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
}

.work-type .tag {
    font-size: 0.9rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
}

.work-type p {
    margin: 0;
    color: var(--text-color);
    opacity: 0.9;
}

.faq-item {
    background: var(--bg-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.faq-item h4 {
    margin: 0 0 1rem 0;
    color: var(--accent-color);
    font-size: 1rem;
}

.faq-item p {
    margin: 0;
    color: var(--text-color);
    line-height: 1.6;
}

/* 帮助页面响应式设计 */
@media (max-width: 768px) {
    .help-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .help-section h2 {
        font-size: 1.3rem;
    }
    
    .help-content h3 {
        font-size: 1.1rem;
    }
    
    .work-type,
    .faq-item {
        padding: 1rem;
    }
}

/* 内容列表样式 */
.content-lists {
    margin-top: 20px;
}

.content-lists-container {
    display: flex;
    gap: 20px;
}

.content-list {
    flex: 1;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.content-list h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

.shoot-list h4 {
    color: #d4af37;
}

.final-list h4 {
    color: #ff6b6b;
}

#shoot-content-list,
#final-content-list {
    max-height: 300px;
    overflow-y: auto;
}

.empty-content {
    color: var(--text-color);
    text-align: center;
    opacity: 0.6;
    font-style: italic;
}

/* 确保内容列表中的文本颜色正确 */
#shoot-content-list,
#final-content-list {
    color: var(--text-color) !important;
}

/* 浅色主题下的内容列表文本颜色 */
.theme-light #shoot-content-list,
.theme-light #final-content-list {
    color: #333 !important;
}

/* 高对比度主题下的内容列表文本颜色 */
.theme-high-contrast #shoot-content-list,
.theme-high-contrast #final-content-list {
    color: #ffff00 !important;
}

/* 内容列表中的具体文本元素样式 */
#shoot-content-list div,
#final-content-list div {
    color: inherit !important;
}

/* 浅色主题下的内容列表文本元素 */
.theme-light #shoot-content-list div,
.theme-light #final-content-list div {
    color: #333 !important;
}

/* 高对比度主题下的内容列表文本元素 */
.theme-high-contrast #shoot-content-list div,
.theme-high-contrast #final-content-list div {
    color: #ffff00 !important;
}

/* 确保所有内容列表项的颜色统一 */
#shoot-content-list div,
#final-content-list div {
    color: var(--text-color) !important;
}

/* 浅色主题下的内容列表项 */
.theme-light #shoot-content-list div,
.theme-light #final-content-list div {
    color: #333 !important;
}

/* 高对比度主题下的内容列表项 */
.theme-high-contrast #shoot-content-list div,
.theme-high-contrast #final-content-list div {
    color: #ffff00 !important;
}

/* 备注区域样式 */
.notes-section {
    margin-top: 20px;
}

.notes-section textarea {
    width: 100%;
    height: 200px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    color: var(--text-color);
    font-size: 0.9rem;
    resize: vertical;
    transition: all 0.3s ease;
}

.notes-section textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(0, 217, 222, 0.2);
}

.notes-section textarea::placeholder {
    color: var(--text-color);
    opacity: 0.6;
}

/* 浅色主题 */
.theme-light {
    --primary-bg: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    --secondary-bg: rgba(0, 0, 0, 0.05);
    --card-bg: rgba(255, 255, 255, 0.8);
    --text-color: #333;
    --accent-color: #007bff;
    --border-color: rgba(0, 0, 0, 0.1);
    --sidebar-bg: rgba(255, 255, 255, 0.9);
}

/* 浅色主题下的文字颜色修复 */
.theme-light .stat-label,
.theme-light .stat-value,
.theme-light .modal-content textarea,
.theme-light #notes,
.theme-light .modal-content textarea::placeholder,
.theme-light #notes::placeholder {
    color: #333 !important;
}

/* 浅色主题下的统计数字颜色调整 */
.theme-light .stat-item:nth-child(1) .stat-value { color: #d63384 !important; }
.theme-light .stat-item:nth-child(2) .stat-value { color: #6f42c1 !important; }
.theme-light .stat-item:nth-child(3) .stat-value { color: #b8860b !important; }
.theme-light .stat-item:nth-child(4) .stat-value { color: #0d6efd !important; }
.theme-light .stat-item:nth-child(5) .stat-value { color: #dc3545 !important; }

/* 浅色主题下的内容列表标题颜色 */
.theme-light .shoot-list h4 { color: #b8860b !important; }
.theme-light .final-list h4 { color: #dc3545 !important; }

.theme-light .modal-content textarea,
.theme-light #notes {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
}

.theme-light .modal-content textarea::placeholder,
.theme-light #notes::placeholder {
    color: #666 !important;
}

/* 浅色主题下的下拉选择框样式 */
.theme-light .form-select option {
    background: #ffffff;
    color: #333333;
    border: 1px solid #e0e0e0;
}

.theme-light .form-select option:hover {
    background: #f8f9fa;
}

.theme-light .form-select option:checked {
    background: var(--accent-color);
    color: #ffffff;
}

.theme-light .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23333333' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
}

/* 高对比度主题 */
.theme-high-contrast {
    --primary-bg: #000000;
    --secondary-bg: #222222;
    --card-bg: #333333;
    --text-color: #ffff00;
    --accent-color: #ffff00;
    --border-color: #555555;
    --sidebar-bg: #222222;
}

/* 高对比度主题下的文字颜色修复 */
.theme-high-contrast .stat-label,
.theme-high-contrast .stat-value,
.theme-high-contrast .modal-content textarea,
.theme-high-contrast #notes,
.theme-high-contrast .modal-content textarea::placeholder,
.theme-high-contrast #notes::placeholder {
    color: #ffff00 !important;
}

/* 高对比度主题下的统计数字颜色调整 */
.theme-high-contrast .stat-item:nth-child(1) .stat-value { color: #ff6b6b !important; }
.theme-high-contrast .stat-item:nth-child(2) .stat-value { color: #a855f7 !important; }
.theme-high-contrast .stat-item:nth-child(3) .stat-value { color: #fbbf24 !important; }
.theme-high-contrast .stat-item:nth-child(4) .stat-value { color: #06b6d4 !important; }
.theme-high-contrast .stat-item:nth-child(5) .stat-value { color: #ef4444 !important; }

/* 高对比度主题下的内容列表标题颜色 */
.theme-high-contrast .shoot-list h4 { color: #fbbf24 !important; }
.theme-high-contrast .final-list h4 { color: #ef4444 !important; }

.theme-high-contrast .modal-content textarea,
.theme-high-contrast #notes {
    background: #333333 !important;
    border: 1px solid #555555 !important;
}

.theme-high-contrast .modal-content textarea::placeholder,
.theme-high-contrast #notes::placeholder {
    color: #cccc00 !important;
}

/* 高对比度主题下的下拉选择框样式 */
.theme-high-contrast .form-select option {
    background: #333333;
    color: #ffff00;
    border: 1px solid #555555;
}

.theme-high-contrast .form-select option:hover {
    background: #444444;
}

.theme-high-contrast .form-select option:checked {
    background: var(--accent-color);
    color: #000000;
}

.theme-high-contrast .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ffff00' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
}

/* 年份选择器下拉框样式 - 支持所有主题 */
.year-selector select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.year-selector select option {
    background: #2a2a3e;
    color: #ffffff;
    padding: 12px 16px;
    border: none;
}

.year-selector select option:hover {
    background: #3a3a4e;
}

.year-selector select option:checked {
    background: var(--accent-color);
    color: #ffffff;
}

/* 浅色主题下的年份选择下拉框样式 */
.theme-light .year-selector select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23333333' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
}

.theme-light .year-selector select option {
    background: #ffffff;
    color: #333333;
    border: 1px solid #e0e0e0;
}

.theme-light .year-selector select option:hover {
    background: #f8f9fa;
}

.theme-light .year-selector select option:checked {
    background: var(--accent-color);
    color: #ffffff;
}

/* 高对比度主题下的年份选择下拉框样式 */
.theme-high-contrast .year-selector select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ffff00' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
}

.theme-high-contrast .year-selector select option {
    background: #333333;
    color: #ffff00;
    border: 1px solid #555555;
}

.theme-high-contrast .year-selector select option:hover {
    background: #444444;
}

.theme-high-contrast .year-selector select option:checked {
    background: var(--accent-color);
    color: #000000;
}

* {
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: var(--primary-bg);
    min-height: 100vh; 
    padding: 0; 
    overflow-x: hidden;
    color: var(--text-color);
}

/* 顶部导航栏 */
.top-nav {
    background: var(--secondary-bg);
    backdrop-filter: blur(10px);
    height: 70px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid var(--border-color);
    z-index: 10;
    box-sizing: border-box;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 100%;
}

#current-user {
    font-weight: 500;
}

.logout-btn {
    background: rgba(255, 0, 0, 0.2);
    color: var(--text-color);
    border: 1px solid rgba(255, 0, 0, 0.3);
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 36px;
    display: flex;
    align-items: center;
}

.logout-btn:hover {
    background: rgba(255, 0, 0, 0.3);
}

.theme-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 36px;
}

.theme-switcher span {
    font-size: 0.85rem;
    color: var(--text-color);
    font-weight: 500;
    white-space: nowrap;
}

.theme-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.theme-btn:hover {
    transform: scale(1.1);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 219, 222, 0.2);
}

.theme-btn.active {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 219, 222, 0.4);
    transform: scale(1.05);
}

.theme-btn:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

.theme-dark-btn {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.theme-light-btn {
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
}

.theme-high-contrast-btn {
    background: linear-gradient(45deg, #000000, #333333);
    border: 2px solid #ffff00;
}

/* 可编辑框样式 */
.editable-section {
    background: var(--secondary-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    margin: 20px 0;
}

.editable-section h3 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

#notes {
    width: 100%;
    height: 150px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
    color: var(--text-color);
    font-size: 1rem;
    resize: none;
    box-sizing: border-box;
}

#notes:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 12;
}

/* 移动端菜单按钮显示 */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
}

/* 侧边栏样式 */
.sidebar {
    background: var(--sidebar-bg);
    backdrop-filter: blur(10px);
    border-right: 1px solid var(--border-color);
    width: 250px;
    height: calc(100vh - 70px);
    position: fixed;
    top: 70px;
    left: 0;
    overflow-y: auto;
    padding: 20px 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    margin-bottom: 5px;
}

.sidebar a {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    padding: 15px 20px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar a:hover,
.sidebar .active a {
    background: var(--secondary-bg);
    border-left: 3px solid var(--accent-color);
}

/* 主内容区 */
.main-content {
    margin-left: 250px;
    padding-top: 90px;
    padding-right: 20px;
    padding-bottom: 20px;
    padding-left: 20px;
    transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

/* 侧边栏遮罩 */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 8;
}

@media (max-width: 768px) {
    .sidebar.active + .sidebar-overlay {
        display: block;
    }
    
    /* 移动端顶部导航优化 */
    .top-nav {
        padding: 8px 20px;
        flex-wrap: wrap;
        gap: 8px;
        height: 60px;
        align-items: center;
        justify-content: space-between;
    }

    .logo {
        font-size: 1.2rem;
        order: 1;
        align-self: center;
        flex-shrink: 0;
    }

    .user-info {
        gap: 6px;
        order: 2;
        flex: 0 0 auto;
        justify-content: flex-end;
        align-items: center;
        height: 100%;
        margin-left: auto;
    }
    
    .header-avatar {
        width: 26px;
        height: 26px;
    }
    
    #current-user {
        font-size: 0.9rem;
        display: none; /* 在中等屏幕上隐藏用户名 */
    }
    
    .theme-switcher {
        background: rgba(255, 255, 255, 0.15);
        padding: 3px 6px;
        border-radius: 12px;
        height: 32px;
        align-items: center;
        margin-left: auto;
    }
    
    .theme-switcher span {
        display: none;
    }
    
    .theme-btn {
        width: 16px;
        height: 16px;
    }
    
    .logout-btn {
        padding: 4px 8px;
        font-size: 0.8rem;
        height: 32px;
        align-items: center;
        margin-left: auto;
    }
}

/* 表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.3s ease;
}

.data-table:hover {
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.18);
}

.data-table th {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    text-align: left;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 5;
    backdrop-filter: blur(5px);
    border-bottom: 2px solid var(--accent-color);
}

.data-table td {
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.25s ease;
}

.data-table tr {
    transition: all 0.25s ease;
}

.data-table tr:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.005);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.header {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    padding: 20px 40px;
    margin-bottom: 30px;
    text-align: center;
    opacity: 0;
    transform: translateY(-50px);
    animation: fadeInDown 0.8s forwards;
}

@keyframes fadeInDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header h1 {
    color: var(--text-color);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.calendar-container {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    padding: 30px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s 0.3s forwards;
}

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

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    color: var(--text-color);
}

.nav-button {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.current-month-container {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    position: relative;
}

.current-month {
    font-size: 1.8rem;
    font-weight: bold;
}

.year-selector,
.month-selector {
    display: flex;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    position: relative;
    margin: 0 5px;
    min-width: 60px;
}

#current-year,
#current-month {
    font-size: 1.8rem;
    font-weight: bold;
}

.year-dropdown-arrow,
.month-dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.year-selector:hover .year-dropdown-arrow,
.month-selector:hover .month-dropdown-arrow {
    transform: rotate(180deg);
}

.year-dropdown,
.month-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 5px;
}

.year-dropdown.show,
.month-dropdown.show {
    display: block;
}

.year-option,
.month-option {
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.year-option:hover,
.month-option:hover {
    background-color: var(--hover-bg);
}

.year-option.selected,
.month-option.selected {
    background-color: var(--accent-color);
    color: var(--text-color);
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.day {
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    min-height: 120px;
    max-height: 120px;
    padding: 10px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.day:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.day-number {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color);
    z-index: 10;
    margin-bottom: 5px;
}

.day-content {
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    min-height: 60px;
    max-height: 80px;
    flex: 1;
    color: var(--text-color);
    word-wrap: break-word;
    white-space: pre-wrap;
}

/* 农历和节假日显示样式 */
.lunar-holiday-info {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.8);
    padding: 2px 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin: 1px;
    font-weight: 500;
    text-align: right;
    display: inline-block;
    min-width: 20px;
}

.lunar-holiday-info.holiday {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    font-weight: bold;
}

.lunar-holiday-info.lunar {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

/* 浅色主题下的农历和节假日样式 */
.theme-light .lunar-holiday-info {
    color: rgba(0, 0, 0, 0.7);
    background: rgba(0, 0, 0, 0.1);
}

.theme-light .lunar-holiday-info.holiday {
    background: rgba(255, 107, 107, 0.3);
    color: #d32f2f;
}

.theme-light .lunar-holiday-info.lunar {
    background: rgba(255, 193, 7, 0.3);
    color: #f57c00;
}

/* 高对比度主题下的农历和节假日样式 */
.theme-high-contrast .lunar-holiday-info {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid #ffffff;
}

.theme-high-contrast .lunar-holiday-info.holiday {
    background: rgba(255, 0, 0, 0.3);
    color: #ffff00;
    border-color: #ffff00;
}

.theme-high-contrast .lunar-holiday-info.lunar {
    background: rgba(255, 255, 0, 0.3);
    color: #ffff00;
    border-color: #ffff00;
}

.other-month {
    opacity: 0.5;
    cursor: not-allowed;
}

.today {
    background: rgba(0, 219, 222, 0.2);
    border: none;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 100;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

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

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

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.modal-content {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    padding: 30px;
    width: 90%;
    max-width: 500px;
    color: var(--text-color);
}

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

.close {
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-color);
}

.modal-date {
    font-size: 1.5rem;
    font-weight: bold;
}

textarea {
    width: 100%;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
    color: var(--text-color);
    font-size: 1rem;
    resize: none;
    margin-bottom: 20px;
}

textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.tag-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tag-btn {
    padding: 8px 15px;
    border-radius: 20px;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tag-btn:hover {
    transform: translateY(-3px);
}

.tag-btn.active {
    transform: scale(1.1);
}

/* 标签按钮样式 - 用于日历中的标签显示 */
.rest { background: linear-gradient(45deg, #ff416c, #ff4b2b); }
.leave { background: linear-gradient(45deg, #8e2de2, #4a00e0); }
.shoot { background: linear-gradient(45deg, #000000, #d4af37); }
.edit { background: linear-gradient(45deg, #00c9ff, #92fe9d); }
.final { background: linear-gradient(45deg, #ff416c, #ff6b6b, #ffd166, #06d6a0, #118ab2, #8338ec, #ff416c); background-size: 200% 200%; animation: gradient 5s ease infinite; }

/* 统计表格数据徽章样式 - 使用边框和图标标识 */
.monthly-table .data-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 24px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    transition: all 0.3s ease;
}

/* 休息 - 使用红色边框和休息图标 */
.monthly-table .rest .data-badge {
    color: #ff416c;
    border: 2px solid #ff416c;
    background: rgba(255, 65, 108, 0.05);
}

.monthly-table .rest .data-badge::before {
    content: "😴";
    margin-right: 4px;
    font-size: 0.8rem;
}

/* 请假 - 使用紫色边框和请假图标 */
.monthly-table .leave .data-badge {
    color: #8e2de2;
    border: 2px solid #8e2de2;
    background: rgba(142, 45, 226, 0.05);
}

.monthly-table .leave .data-badge::before {
    content: "📅";
    margin-right: 4px;
    font-size: 0.8rem;
}

/* 拍摄 - 使用金色边框和拍摄图标 */
.monthly-table .shoot .data-badge {
    color: #d4af37;
    border: 2px solid #d4af37;
    background: rgba(212, 175, 55, 0.05);
}

.monthly-table .shoot .data-badge::before {
    content: "📷";
    margin-right: 4px;
    font-size: 0.8rem;
}

/* 剪辑 - 使用蓝色边框和剪辑图标 */
.monthly-table .edit .data-badge {
    color: #00c9ff;
    border: 2px solid #00c9ff;
    background: rgba(0, 201, 255, 0.05);
}

.monthly-table .edit .data-badge::before {
    content: "✂️";
    margin-right: 4px;
    font-size: 0.8rem;
}

/* 成片 - 使用橙色边框和成片图标 */
.monthly-table .final .data-badge {
    color: #ff6b6b;
    border: 2px solid #ff6b6b;
    background: rgba(255, 107, 107, 0.05);
}

.monthly-table .final .data-badge::before {
    content: "🎬";
    margin-right: 4px;
    font-size: 0.8rem;
}

/* 悬停效果 */
.monthly-table .data-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 浅色主题下的数据徽章样式调整 */
.theme-light .monthly-table .rest .data-badge {
    color: #d63384;
    border-color: #d63384;
    background: rgba(214, 51, 132, 0.1);
}
.theme-light .monthly-table .leave .data-badge {
    color: #6f42c1;
    border-color: #6f42c1;
    background: rgba(111, 66, 193, 0.1);
}
.theme-light .monthly-table .shoot .data-badge {
    color: #b8860b;
    border-color: #b8860b;
    background: rgba(184, 134, 11, 0.1);
}
.theme-light .monthly-table .edit .data-badge {
    color: #0d6efd;
    border-color: #0d6efd;
    background: rgba(13, 110, 253, 0.1);
}
.theme-light .monthly-table .final .data-badge {
    color: #dc3545;
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

/* 浅色主题下的报销记录样式调整 */
.theme-light .filter-btn {
    border-color: rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.8);
}

.theme-light .filter-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
}

.theme-light .filter-btn.active {
    background: #8e2de2;
    border-color: #8e2de2;
    color: #fff;
}

.theme-light .nav-btn {
    border-color: rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.8);
}

.theme-light .nav-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
}

.theme-light .current-period {
    color: rgba(0, 0, 0, 0.9);
}

.theme-light .section-header h2 {
    color: #000;
}

.theme-light .expense-table-container {
    background: rgba(0, 0, 0, 0.05);
}

.theme-light .expense-table th {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
    text-align: center;
}

.theme-light .expense-table td {
    color: rgba(0, 0, 0, 0.9);
    text-align: center;
}

.theme-light .expense-table tr:hover {
    background: rgba(0, 0, 0, 0.05);
}

.theme-light .action-btn {
    border-color: rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.8);
}

.theme-light .action-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
}

/* 高对比度主题下的数据徽章样式调整 */
.theme-high-contrast .monthly-table .rest .data-badge {
    color: #ff6b6b;
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.15);
    border-width: 3px;
}
.theme-high-contrast .monthly-table .leave .data-badge {
    color: #a855f7;
    border-color: #a855f7;
    background: rgba(168, 85, 247, 0.15);
    border-width: 3px;
}
.theme-high-contrast .monthly-table .shoot .data-badge {
    color: #fbbf24;
    border-color: #fbbf24;
    background: rgba(251, 191, 36, 0.15);
    border-width: 3px;
}
.theme-high-contrast .monthly-table .edit .data-badge {
    color: #06b6d4;
    border-color: #06b6d4;
    background: rgba(6, 182, 212, 0.15);
    border-width: 3px;
}
.theme-high-contrast .monthly-table .final .data-badge {
    color: #ef4444;
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
    border-width: 3px;
}

/* 高对比度主题下的报销记录样式调整 */
.theme-high-contrast .filter-btn {
    border-width: 2px;
    border-color: #fff;
    background: #000;
    color: #fff;
}

.theme-high-contrast .filter-btn:hover {
    background: #333;
}

.theme-high-contrast .filter-btn.active {
    background: #8e2de2;
    border-color: #8e2de2;
    color: #fff;
}

.theme-high-contrast .nav-btn {
    border-width: 2px;
    border-color: #fff;
    background: #000;
    color: #fff;
}

.theme-high-contrast .nav-btn:hover {
    background: #333;
}

.theme-high-contrast .current-period {
    color: #fff;
    font-weight: bold;
}

.theme-high-contrast .section-header h2 {
    color: #fff;
    font-weight: bold;
}

.theme-high-contrast .expense-table-container {
    background: #000;
    border: 2px solid #fff;
}

.theme-high-contrast .expense-table th {
    background: #333;
    color: #fff;
    font-weight: bold;
    text-align: center;
}

.theme-high-contrast .expense-table td {
    color: #fff;
    text-align: center;
}

.theme-high-contrast .expense-table tr:hover {
    background: #333;
}

.theme-high-contrast .action-btn {
    border-width: 2px;
    border-color: #fff;
    background: #000;
    color: #fff;
}

.theme-high-contrast .action-btn:hover {
    background: #333;
}

/* 报销记录页面样式 */
.filter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-buttons {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.filter-btn.active {
    background: #8e2de2;
    border-color: #8e2de2;
    color: #fff;
}

.month-navigation {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-btn {
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.current-period {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
}

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

.section-header h2 {
    color: #fff;
    font-size: 20px;
    margin: 0;
}

.export-btn {
    padding: 8px 16px;
    background: #8e2de2;
    border: none;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.export-btn:hover {
    background: #7c3aed;
    transform: translateY(-1px);
}

.expense-table-container {
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.expense-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

.expense-table th {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    padding: 16px 12px;
    text-align: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.expense-table td {
    padding: 16px 12px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    vertical-align: middle;
}

.expense-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.expense-table tr:last-child td {
    border-bottom: none;
}

/* 状态徽章样式优化 */
.status-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    min-width: 80px;
    text-align: center;
}

.status-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.status-badge:hover::before {
    left: 100%;
}

.status-badge.reimbursed {
    background: linear-gradient(135deg, #00d4aa, #00b894);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
}

.status-badge.reimbursed:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 170, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.status-badge.not-reimbursed {
    background: linear-gradient(135deg, #ff7675, #e17055);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 118, 117, 0.3);
}

.status-badge.not-reimbursed:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 118, 117, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

/* 分类徽章样式 */
.category-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.category-badge.travel {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.category-badge.meals {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.category-badge.equipment {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.category-badge.office {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.category-badge.other {
    background: linear-gradient(135deg, #fa709a, #fee140);
}

/* 操作按钮样式优化 */
.action-btn {
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 600;
    margin: 0 4px;
    min-width: 60px;
    backdrop-filter: blur(5px);
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-1px);
}

.edit-btn {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
    color: #3b82f6;
}

.edit-btn:hover {
    background: #3b82f6;
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.delete-btn {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
}

.delete-btn:hover {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

/* 移动端表格适配 */
@media (max-width: 768px) {
    .expense-table-container {
        padding: 15px;
        margin: 15px 0;
    }
    
    .expense-table th,
    .expense-table td {
        padding: 12px 8px;
        font-size: 13px;
    }
    
    .status-badge {
        padding: 6px 12px;
        font-size: 11px;
        min-width: 70px;
    }
    
    .action-btn {
        padding: 6px 12px;
        font-size: 11px;
        min-width: 50px;
        margin: 0 2px;
    }
}

/* 添加报销记录按钮样式 */
.add-expense-section {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.add-expense-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.add-expense-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.add-expense-btn:hover::before {
    left: 100%;
}

.add-expense-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.add-expense-btn:active {
    transform: translateY(-1px);
}

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

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

/* 报销记录模态框样式 */
.expense-modal-content {
    max-width: 600px;
    padding: 0;
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
}

.title-icon {
    font-size: 28px;
}

.expense-form {
    padding: 0 30px 30px 30px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.label-icon {
    font-size: 18px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    font-size: 16px;
    transition: all 0.3s ease;
        backdrop-filter: blur(10px);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(0, 219, 222, 0.1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* 下拉选择框选项样式 */
.form-select option {
    background: #2a2a3e;
    color: #ffffff;
    padding: 12px 16px;
    border: none;
}

.form-select option:hover {
    background: #3a3a4e;
}

.form-select option:checked {
    background: var(--accent-color);
    color: #ffffff;
}

/* 确保下拉框在深色主题下可见 */
.form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

/* 确保在IE浏览器中也能正确显示 */
.form-select::-ms-expand {
    display: none;
}

/* 金额输入框样式优化 */
.amount-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.currency-symbol {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-color);
    font-size: 16px;
    font-weight: 600;
    z-index: 2;
    pointer-events: none;
}

.amount-input {
    padding-left: 35px !important;
    padding-right: 12px !important;
    width: 100%;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 16px;
}

/* 确保金额输入框在深色主题下可见 */
.amount-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-family: inherit;
}

/* 金额输入框聚焦状态 */
.amount-input:focus {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(0, 219, 222, 0.1);
}

.form-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.cancel-btn {
    flex: 1;
    padding: 14px 24px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-width: 120px;
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

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

.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
        gap: 15px;
    }
    
.save-btn {
    flex: 0 1 auto;
    padding: 14px 24px;
    border-radius: 12px;
    background: linear-gradient(135deg, #00dbde, #fc00ff);
    color: white;
    font-size: 16px;
    font-weight: 600;
        cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 219, 222, 0.3);
    min-width: 120px;
    max-width: 200px;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 219, 222, 0.4);
}

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

/* 移动端模态框适配 */
@media (max-width: 768px) {
    .expense-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .expense-form {
        padding: 0 20px 20px 20px;
    }
    
    .modal-title {
        font-size: 20px;
    }
    
    .title-icon {
        font-size: 24px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .cancel-btn,
    .save-btn {
        flex: none;
        width: 100%;
        min-width: auto;
    }
    
    .add-expense-btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .btn-icon {
        font-size: 16px;
    }
    
    .btn-text {
        font-size: 14px;
    }
}

/* 统计卡片样式 */
.stats-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 25px 0;
    padding: 0 15px;
}

.stats-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.stats-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px 20px 0 0;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
}

.card-content {
    position: relative;
    z-index: 2;
}

.card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.card-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 50%;
    z-index: 1;
}

/* 不同卡片的主题色彩 */
.total-card {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(52, 152, 219, 0.05));
    border-color: rgba(52, 152, 219, 0.2);
}

.total-card::before {
    background: linear-gradient(90deg, #3498db, #2980b9);
}

.total-card .card-value {
    color: #2980b9;
}

.count-card {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.1), rgba(155, 89, 182, 0.05));
    border-color: rgba(155, 89, 182, 0.2);
}

.count-card::before {
    background: linear-gradient(90deg, #9b59b6, #8e44ad);
}

.count-card .card-value {
    color: #8e44ad;
}

.reimbursed-card {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(46, 204, 113, 0.05));
    border-color: rgba(46, 204, 113, 0.2);
}

.reimbursed-card::before {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.reimbursed-card .card-value {
    color: #27ae60;
}

.pending-card {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(231, 76, 60, 0.05));
    border-color: rgba(231, 76, 60, 0.2);
}

.pending-card::before {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.pending-card .card-value {
    color: #c0392b;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .stats-cards-container {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 15px;
    }
    
    .stats-card {
        padding: 20px;
    }
    
    .card-icon {
        font-size: 2rem;
    }
    
    .card-value {
        font-size: 1.5rem;
    }
}

/* 删除原有的统计区域样式 */
.expense-summary {
    display: none;
}

.summary-card {
    display: none;
}

.summary-item {
    display: none;
}

.summary-label {
    display: none;
}

.summary-value {
    display: none;
}

/* 月度统计表格样式 */
.monthly-status {
    display: flex;
        flex-direction: column;
    gap: 4px;
    align-items: center;
}

.status-item {
        font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.status-item.reimbursed {
    background: rgba(46, 204, 113, 0.2);
    color: #27ae60;
}

.status-item.not-reimbursed {
    background: rgba(231, 76, 60, 0.2);
    color: #c0392b;
}

.has-data {
    background: rgba(52, 152, 219, 0.05);
}

.has-data:hover {
    background: rgba(52, 152, 219, 0.1);
}

.no-data {
    color: #999;
    background: rgba(0, 0, 0, 0.02);
}

.yearly-summary {
    border-top: 3px solid #3498db;
}

.yearly-summary td {
    border-top: 2px solid #3498db;
}

/* 年度统计表格特殊样式 */
.expense-table .yearly-summary td {
    font-size: 1.1rem;
    padding: 12px 8px;
}

.expense-table .has-data td {
    font-weight: 500;
}

.expense-table .no-data td {
    font-style: italic;
    opacity: 0.7;
}

/* 年度统计表格样式 */
.expense-table tr.no-data {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.expense-table tr.no-data:hover {
    background: rgba(255, 255, 255, 0.05);
}

.expense-table tr.has-data {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.expense-table tr.has-data:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 浅色主题下的年度统计表格样式 */
.theme-light .expense-table tr.no-data {
    background: rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.theme-light .expense-table tr.no-data:hover {
    background: rgba(0, 0, 0, 0.05);
}

.theme-light .expense-table tr.has-data {
    background: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.theme-light .expense-table tr.has-data:hover {
    background: rgba(0, 0, 0, 0.08);
}

/* 发票上传相关样式 */
.file-upload-wrapper {
    position: relative;
    margin-top: 8px;
}

.file-upload-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.file-upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.upload-icon {
    font-size: 16px;
}

.upload-text {
    font-size: 14px;
}

.file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-color);
}

.file-info span {
    flex: 1;
    margin-right: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.remove-file-btn {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
        width: 20px;
        height: 20px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-file-btn:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.file-help-text {
    margin-top: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

/* 发票下载按钮样式 */
.invoice-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.invoice-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
}

/* 浅色主题下的发票上传样式 */
.theme-light .file-info {
    background: rgba(52, 152, 219, 0.05);
    border-color: rgba(52, 152, 219, 0.2);
    color: #333;
}

.theme-light .file-help-text {
    color: rgba(0, 0, 0, 0.6);
}

/* 高对比度主题下的发票上传样式 */
.theme-high-contrast .file-upload-btn {
    background: linear-gradient(135deg, #000 0%, #333 100%);
    border: 2px solid #fff;
}

.theme-high-contrast .file-info {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.theme-high-contrast .invoice-btn {
    background: linear-gradient(135deg, #000 0%, #333 100%);
    border: 1px solid #fff;
    color: #fff;
}

/* 个人中心专门样式 - 已移至profile.php内联样式 */

.profile-sidebar {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
        backdrop-filter: blur(10px);
}

.profile-avatar {
    text-align: center;
    margin-bottom: 2rem;
}

.avatar-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 3rem;
    color: white;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.avatar-container:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

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

.avatar-overlay span {
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
}

.profile-avatar h3 {
    margin: 1rem 0 0.5rem 0;
    color: var(--text-color);
    font-size: 1.25rem;
}

.user-email {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 0.875rem;
        margin: 0;
    }
    
.user-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.stat-card {
    background: var(--bg-color);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-color);
    margin-top: 0.5rem;
    opacity: 0.8;
}

.user-info-details {
    margin-top: 2rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
        align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 0.875rem;
}

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

.status-active {
    color: #4CAF50;
}

.profile-main {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.profile-section {
    margin-bottom: 2rem;
}

.profile-section:last-child {
    margin-bottom: 0;
}

.profile-section h3 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    font-size: 1.25rem;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group label {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.875rem;
}

.form-group input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(0, 219, 222, 0.2);
}

.form-group input:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    opacity: 0.7;
    cursor: not-allowed;
}

.form-group small {
    color: var(--text-color);
    opacity: 0.6;
        font-size: 0.75rem;
    }
    
.security-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.security-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.security-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.security-info h4 {
    margin: 0 0 0.25rem 0;
    color: var(--text-color);
        font-size: 1rem;
    }
    
.security-info p {
    margin: 0;
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.875rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
        font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-secure {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-warning {
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

/* 页脚样式 */
.footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer p {
    margin: 0;
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.875rem;
}

/* 响应式设计 - 已移至profile.php内联样式 */

/* 主题适配 */
.theme-light .profile-sidebar,
.theme-light .profile-main {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
}

.theme-light .stat-card,
.theme-light .security-item {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

.theme-light .form-group input {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.2);
    color: #333;
}

.theme-light .form-group input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(0, 219, 222, 0.1);
}

.theme-high-contrast .profile-sidebar,
.theme-high-contrast .profile-main {
    background: rgba(0, 0, 0, 0.9);
    border-color: #fff;
}

.theme-high-contrast .stat-card,
.theme-high-contrast .security-item {
    background: rgba(0, 0, 0, 0.8);
    border-color: #fff;
}

.theme-high-contrast .form-group input {
    background: rgba(0, 0, 0, 0.9);
    border-color: #fff;
    color: #fff;
}

.theme-high-contrast .form-group input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(0, 219, 222, 0.5);
}

    /* 移动端菜单按钮显示 */
    @media (max-width: 768px) {
        .menu-toggle {
            display: block;
        }
        
        /* 主内容区移动端优化 */
        .main-content {
            margin-left: 0;
            padding-top: 70px;
            padding-left: 15px;
            padding-right: 15px;
        }
        
        /* 侧边栏移动端优化 */
        .sidebar {
            width: 280px;
            top: 60px;
            height: calc(100vh - 60px);
            transform: translateX(-100%);
            transition: transform 0.3s ease;
            z-index: 1000;
        }
        
        .sidebar.active {
            transform: translateX(0);
        }
        
        /* 工作记录日历移动端优化 */
        .calendar-container {
            padding: 12px;
            margin-bottom: 12px;
            border-radius: 10px;
        }
        
        .calendar-header {
            flex-direction: row;
            gap: 12px;
            margin-bottom: 12px;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
        }
        
        .nav-button {
            padding: 8px 12px;
            font-size: 0.8rem;
            border-radius: 6px;
            min-width: 60px;
        }
        
        .current-month-container {
            flex-direction: row;
            gap: 8px;
            align-items: center;
            justify-content: center;
        }
        
        #current-year,
        #current-month {
            font-size: 1.1rem;
            text-align: center;
            white-space: nowrap;
        }
        
        /* 星期标题移动端优化 */
        .weekdays {
            gap: 3px;
            margin-bottom: 6px;
        }
        
        .weekdays div {
            font-size: 0.75rem;
            padding: 4px 0;
            font-weight: 600;
        }
        
        /* 日历日期移动端优化 - 调整为长方形，更小 */
        .days {
            gap: 4px;
        }
        
        .day {
            min-height: 70px;
            max-height: 70px;
            padding: 4px;
            border-radius: 6px;
            border-width: 1px;
        }
        
        .day-number {
            font-size: 0.65rem;
            margin-bottom: 2px;
            font-weight: 600;
        }
        
        .day-content {
            font-size: 0.5rem;
            padding: 2px;
            min-height: 35px;
            max-height: 40px;
            -webkit-line-clamp: 3;
            line-height: 1.0;
            display: flex;
            flex-direction: column;
            gap: 1px;
            align-items: flex-start;
            position: relative !important;
            overflow: hidden;
            box-sizing: border-box;
        }
        
        /* 标签文字和小圆点移动端优化 - 在日期右侧显示，字体更小 */
        .day-content .tag {
            font-size: 0.12rem !important;
            padding: 0.1px 0.2px !important;
            margin: 0 !important;
            border-radius: 1px !important;
            display: inline-block !important;
            white-space: nowrap !important;
            max-width: 35% !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
            line-height: 0.4 !important;
            position: absolute !important;
            right: 0.5px !important;
            top: 0.5px !important;
            background: rgba(255, 255, 255, 0.25) !important;
            border: 1px solid rgba(255, 255, 255, 0.5) !important;
            z-index: 10 !important;
            font-weight: normal !important;
            box-shadow: 0 0 2px rgba(0, 0, 0, 0.3) !important;
        }
        
        .day-content .tag::before {
            content: '' !important;
            display: inline-block !important;
            width: 0.6px !important;
            height: 0.6px !important;
            border-radius: 50% !important;
            margin-right: 0.15px !important;
            vertical-align: middle !important;
            position: relative !important;
            top: -0.2px !important;
            background: currentColor !important;
        }
        
        /* 统计容器移动端优化 - 更小 */
        .stats-container {
            flex-direction: row;
            flex-wrap: wrap;
            gap: 4px;
            justify-content: center;
        }
        
        .stat-item {
            min-width: 55px;
            max-width: 80px;
            padding: 6px 4px;
            border-radius: 6px;
            flex: 1;
        }
        
        .stat-value {
            font-size: 0.8rem;
            margin-bottom: 1px;
        }
        
        .stat-label {
            font-size: 0.6rem;
            line-height: 1.0;
        }
        
        /* 内容列表移动端优化 */
        .content-lists-container {
            flex-direction: column;
            gap: 12px;
        }
        
        .content-list {
            padding: 12px;
            border-radius: 8px;
            height: 250px;
            overflow: hidden;
        }
        
        .content-list h4 {
            font-size: 0.9rem;
            margin-bottom: 8px;
            text-align: center;
        }
        
        #shoot-content-list,
        #final-content-list {
            max-height: 200px;
            font-size: 0.75rem;
            overflow-y: auto;
            padding: 8px;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.05);
        }
        
        /* 内容列表项优化 */
        #shoot-content-list div,
        #final-content-list div {
            padding: 6px 8px;
            margin: 2px 0;
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.1);
            font-size: 0.7rem;
            line-height: 1.2;
            word-wrap: break-word;
            overflow-wrap: break-word;
        }
    
    /* 容器移动端优化 */
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    /* 头部移动端优化 */
    .header {
        padding: 20px;
        margin-bottom: 20px;
        border-radius: 15px;
    }
    
    .header h1 {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    
    .header p {
        font-size: 0.9rem;
    }
    
    /* 顶部导航栏移动端优化 */
    .top-nav {
        height: 60px;
        padding: 0 15px;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .user-info {
        gap: 8px;
    }
    
    .theme-switcher {
        gap: 5px;
    }
    
    .theme-btn {
        width: 20px;
        height: 12px;
    }
    
    .logout-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    /* 侧边栏移动端优化 */
    .sidebar {
        width: 280px;
        top: 60px;
        height: calc(100vh - 60px);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .sidebar a {
        padding: 18px 20px;
        font-size: 1rem;
    }
    
    /* 模态框移动端优化 */
    .modal-content {
        width: 95%;
        margin: 10px;
        padding: 20px;
        border-radius: 15px;
    }
    
    .modal-header {
        margin-bottom: 15px;
    }
    
    .modal-date {
        font-size: 1.2rem;
    }
    
    .close {
        font-size: 1.5rem;
    }
    
    textarea {
        height: 120px;
        padding: 12px;
        font-size: 0.9rem;
        border-radius: 8px;
        margin-bottom: 15px;
    }
    
    .tag-buttons {
        gap: 8px;
        margin-bottom: 15px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .tag-btn {
        padding: 10px 16px;
        font-size: 0.8rem;
        border-radius: 15px;
        min-width: 60px;
    }
    
    /* 表格移动端优化 */
    .data-table {
        font-size: 0.8rem;
        margin-bottom: 20px;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px 8px;
    }
    
    /* 用户管理页面移动端优化 */
    .action-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .search-box {
        justify-content: center;
    }
    
    .search-box input {
        min-width: auto;
        width: 100%;
        max-width: 300px;
    }
    
    .users-table-container {
        padding: 15px;
        border-radius: 10px;
        overflow-x: auto;
    }
    
    .users-table {
        font-size: 0.8rem;
        min-width: 600px;
    }
    
    .users-table th,
    .users-table td {
        padding: 8px 6px;
        white-space: nowrap;
    }
    
    .btn {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
    
    .btn-small {
        padding: 4px 8px;
        font-size: 0.7rem;
        margin-right: 3px;
    }
    
    /* 个人中心移动端优化 - 已移至profile.php内联样式 */
    
    .stat-card {
        padding: 15px;
        border-radius: 8px;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .info-item {
        padding: 10px 0;
    }
    
    .info-label,
    .info-value {
        font-size: 0.8rem;
    }
    
    .form-group {
        gap: 8px;
    }
    
    .form-group label {
        font-size: 0.8rem;
    }
    
    .form-group input {
        padding: 10px 12px;
        font-size: 0.8rem;
        border-radius: 6px;
    }
    
    .form-group small {
        font-size: 0.7rem;
    }
    
    .security-item {
        padding: 12px;
        border-radius: 8px;
    }
    
    .security-info h4 {
        font-size: 0.9rem;
    }
    
    .security-info p {
        font-size: 0.8rem;
    }
    
    .status-badge {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
    
    /* 帮助页面移动端优化 */
    .help-section {
        padding: 20px;
        margin-bottom: 15px;
        border-radius: 10px;
    }
    
    .help-section h2 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .help-content h3 {
        font-size: 1rem;
        margin: 12px 0 8px 0;
    }
    
    .work-type,
    .faq-item {
        padding: 15px;
        margin-bottom: 12px;
        border-radius: 8px;
    }
    
    .work-type h4,
    .faq-item h4 {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .work-type p,
    .faq-item p {
        font-size: 0.8rem;
    }
    
    .tag {
        font-size: 0.8rem;
        padding: 3px 8px;
    }
    
    /* 报销统计页面移动端优化 */
    .filter-section {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .filter-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .filter-btn {
        padding: 10px 16px;
        font-size: 0.8rem;
        border-radius: 6px;
    }
    
    .month-navigation {
        justify-content: center;
        gap: 10px;
    }
    
    .nav-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        border-radius: 4px;
    }
    
    .current-period {
        font-size: 0.9rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        margin-bottom: 15px;
    }
    
    .section-header h2 {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .export-btn {
        padding: 10px 20px;
        font-size: 0.8rem;
        border-radius: 6px;
    }
    
    .expense-table-container {
        margin: 15px 0;
        padding: 15px;
        border-radius: 10px;
        overflow-x: auto;
    }
    
    .expense-table {
        min-width: 800px;
    }
    
    .expense-table th,
    .expense-table td {
        padding: 10px 6px;
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    .status-badge {
        padding: 6px 10px;
        font-size: 0.7rem;
        min-width: 60px;
    }
    
    .category-badge {
        padding: 4px 8px;
        font-size: 0.7rem;
        border-radius: 8px;
    }
    
    .action-btn {
        padding: 6px 10px;
        font-size: 0.7rem;
        min-width: 50px;
        margin: 0 2px;
        border-radius: 6px;
    }
    
    .add-expense-section {
        margin: 20px 0;
    }
    
    .add-expense-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
        border-radius: 25px;
    }
    
    .btn-icon {
        font-size: 16px;
    }
    
    .btn-text {
        font-size: 0.9rem;
    }
    
    /* 统计卡片移动端优化 */
    .stats-cards-container {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 15px;
        margin: 20px 0;
    }
    
    .stats-card {
        padding: 20px;
        border-radius: 15px;
    }
    
    .card-icon {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    
    .card-title {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }
    
    .card-value {
        font-size: 1.5rem;
    }
    
    .card-decoration {
        width: 60px;
        height: 60px;
        top: -15px;
        right: -15px;
    }
    
    /* 年度统计表格移动端优化 */
    .expense-table .yearly-summary td {
        font-size: 1rem;
        padding: 10px 6px;
    }
    
    .monthly-status {
        gap: 3px;
    }
    
    .status-item {
        font-size: 0.7rem;
        padding: 1px 4px;
    }
    
    /* 发票上传移动端优化 */
    .file-upload-btn {
        padding: 10px 14px;
        font-size: 0.8rem;
        border-radius: 6px;
    }
    
    .upload-icon {
        font-size: 14px;
    }
    
    .upload-text {
        font-size: 0.8rem;
    }
    
    .file-info {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .remove-file-btn {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }
    
    .file-help-text {
        font-size: 0.7rem;
    }
    
    .invoice-btn {
        padding: 4px 8px;
        font-size: 0.7rem;
        border-radius: 4px;
    }
    
    /* 报销记录模态框移动端优化 */
    .expense-modal-content {
        width: 95%;
        margin: 10px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .expense-form {
        padding: 0 20px 20px 20px;
    }
    
    .modal-title {
        font-size: 1.2rem;
        gap: 8px;
    }
    
    .title-icon {
        font-size: 1.4rem;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-label {
        font-size: 0.9rem;
        gap: 6px;
        margin-bottom: 6px;
    }
    
    .label-icon {
        font-size: 16px;
    }
    
    .form-input,
    .form-select {
        padding: 12px 14px;
        font-size: 0.9rem;
        border-radius: 8px;
    }
    
    /* 修复下拉框乱码和布局问题 */
    .form-select {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 10px center;
        background-size: 14px;
        padding-right: 35px;
        cursor: pointer;
    }
    
    /* 确保在IE浏览器中也能正确显示 */
    .form-select::-ms-expand {
        display: none;
    }
    
    /* 修复金额输入框位置问题 */
    .amount-input-wrapper {
        position: relative;
        display: flex;
        align-items: center;
        width: 100%;
    }
    
    .currency-symbol {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-color);
        font-size: 14px;
        z-index: 2;
        pointer-events: none;
    }
    
    .amount-input {
        padding-left: 30px;
    }
    
    /* 修复报销状态下拉框 */
    .form-select[name="expense-status"] {
        background-image: none;
    }
    
    /* 修复按钮大小不一致问题 */
    .form-actions {
        flex-direction: column;
        gap: 12px;
        margin-top: 24px;
    }
    
    .cancel-btn,
    .save-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        border-radius: 8px;
        width: 100%;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .top-nav {
        height: 50px;
        padding: 0 10px;
        flex-wrap: wrap;
        gap: 6px;
        align-items: center;
        justify-content: space-between;
    }
    
    .logo {
        font-size: 1rem;
        order: 1;
        align-self: center;
        flex-shrink: 0;
    }
    
    .user-info {
        gap: 4px;
        flex-wrap: wrap;
        justify-content: flex-end;
        order: 2;
        align-items: center;
        height: 100%;
        margin-left: auto;
    }
    
    .header-avatar {
        width: 22px;
        height: 22px;
    }
    
    #current-user {
        font-size: 0.75rem;
        order: 2;
        width: 100%;
        text-align: right;
        margin: 3px 0 0 0;
    }
    
    .theme-switcher {
        gap: 3px;
        order: 3;
        background: rgba(255, 255, 255, 0.2);
        padding: 3px 6px;
        border-radius: 12px;
        height: 28px;
        align-items: center;
        margin-left: auto;
    }
    
    .theme-btn {
        width: 16px;
        height: 16px;
    }
    
    .logout-btn {
        padding: 4px 6px;
        font-size: 0.75rem;
        order: 4;
        height: 28px;
        align-items: center;
        margin-left: auto;
    }
    
    .main-content {
        padding-top: 65px;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .header {
        padding: 15px;
        border-radius: 12px;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .header p {
        font-size: 0.8rem;
    }
    
    /* 超小屏幕日历优化 */
    .calendar-container {
        padding: 10px;
        border-radius: 8px;
    }
    
    .calendar-header {
        gap: 8px;
    }
    
    .nav-button {
        padding: 6px 10px;
        font-size: 0.7rem;
        min-width: 55px;
    }
    
    .current-month-container {
        flex-direction: row;
        gap: 6px;
        align-items: center;
        justify-content: center;
    }
    
    #current-year,
    #current-month {
        font-size: 1rem;
        text-align: center;
        white-space: nowrap;
    }
    
    .weekdays div {
        font-size: 0.65rem;
        padding: 3px 0;
    }
    
    .days {
        gap: 3px;
    }
    
    .day {
        min-height: 60px;
        max-height: 60px;
        padding: 3px;
        border-radius: 5px;
    }
    
    .day-number {
        font-size: 0.65rem;
        margin-bottom: 1px;
        font-weight: 600;
        line-height: 1;
    }
    
    .day-content {
        font-size: 0.45rem;
        padding: 1px;
        min-height: 30px;
        max-height: 35px;
        display: flex;
        flex-direction: column;
        gap: 0.5px;
        align-items: flex-start;
        position: relative;
        overflow: hidden;
    }
    
    /* 移动端标签优化 - 避免与日期重叠 */
    .day-content .tag {
        font-size: 0.18rem !important;
        padding: 0.1px 0.5px !important;
        margin: 0 !important;
        border-radius: 1px !important;
        max-width: 25% !important;
        line-height: 0.5 !important;
        position: absolute !important;
        right: 0.5px !important;
        top: 0.5px !important;
        background: rgba(0, 219, 222, 0.9) !important;
        border: 0.5px solid rgba(0, 219, 222, 1) !important;
        z-index: 10 !important;
        font-weight: 500 !important;
        box-shadow: 0 0.5px 1px rgba(0, 0, 0, 0.4) !important;
        color: white !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .day-content .tag::before {
        width: 0.4px !important;
        height: 0.4px !important;
        margin-right: 0.1px !important;
        position: relative !important;
        top: -0.1px !important;
        background: currentColor !important;
    }
    
    /* 超小屏幕统计优化 */
    .stats-container {
        gap: 3px;
    }
    
    .stat-item {
        min-width: 45px;
        max-width: 65px;
        padding: 4px 2px;
        border-radius: 4px;
    }
    
    .stat-value {
        font-size: 0.7rem;
        margin-bottom: 0.5px;
    }
    
    .stat-label {
        font-size: 0.55rem;
    }
    
    .content-list {
        padding: 10px;
        border-radius: 6px;
    }
    
    .content-list h4 {
        font-size: 0.8rem;
    }
    
    #notes {
        height: 90px;
        padding: 8px;
        font-size: 0.75rem;
    }
    
    .save-btn {
        padding: 8px 14px;
        font-size: 0.75rem;
    }
    
    .modal-content {
        width: 98%;
        margin: 3px;
        padding: 12px;
    }
    
    .modal-date {
        font-size: 1rem;
    }
    
    .close {
        font-size: 1.2rem;
    }
    
    textarea {
        height: 90px;
        padding: 8px;
        font-size: 0.75rem;
    }
    
    .tag-btn {
        padding: 6px 10px;
        font-size: 0.7rem;
        min-width: 45px;
    }
    
    .stats-cards-container {
        padding: 0 3px;
        gap: 6px;
    }
    
    .stats-card {
        padding: 6px;
        border-radius: 6px;
        min-height: 50px;
        max-height: 55px;
    }
    
    .card-icon {
        font-size: 1rem;
        margin-bottom: 2px;
    }
    
    .card-title {
        font-size: 0.5rem;
        margin-bottom: 1px;
        line-height: 1;
    }
    
    .card-value {
        font-size: 0.8rem;
        font-weight: 600;
        line-height: 1;
    }
    
    .card-decoration {
        width: 25px;
        height: 25px;
        top: -3px;
        right: -3px;
    }
    
    /* 强制移动端优化 */
    @media (max-width: 480px) {
        .stats-cards-container {
            padding: 0 2px !important;
            gap: 4px !important;
        }
        
        .stats-card {
            padding: 4px !important;
            border-radius: 4px !important;
            min-height: 45px !important;
            max-height: 50px !important;
        }
        
        .card-icon {
            font-size: 0.9rem !important;
            margin-bottom: 1px !important;
        }
        
        .card-title {
            font-size: 0.45rem !important;
            margin-bottom: 0.5px !important;
        }
        
        .card-value {
            font-size: 0.7rem !important;
        }
        
        .day-content .tag {
            font-size: 0.08rem !important;
            padding: 0.1px 0.3px !important;
            max-width: 20% !important;
            right: 0.3px !important;
            top: 0.3px !important;
            line-height: 0.3 !important;
            border-radius: 0.5px !important;
        }
    }
    
    .expense-table-container {
        padding: 10px;
        border-radius: 6px;
    }
    
    .expense-table th,
    .expense-table td {
        padding: 6px 3px;
        font-size: 0.65rem;
    }
    
    .status-badge {
        padding: 3px 6px;
        font-size: 0.6rem;
        min-width: 45px;
    }
    
    .action-btn {
        padding: 3px 6px;
        font-size: 0.6rem;
        min-width: 35px;
        margin: 0 1px;
    }
    
    .add-expense-btn {
        padding: 8px 16px;
        font-size: 0.75rem;
    }
    
    .btn-icon {
        font-size: 12px;
    }
    
    .btn-text {
        font-size: 0.75rem;
    }
    
    .expense-modal-content {
        width: 98%;
        margin: 3px;
    }
    
    .expense-form {
        padding: 0 12px 12px 12px;
    }
    
    .modal-title {
        font-size: 1rem;
    }
    
    .title-icon {
        font-size: 1.1rem;
    }
    
    .form-label {
        font-size: 0.75rem;
    }
    
    .label-icon {
        font-size: 12px;
    }
    
    .form-input,
    .form-select {
        padding: 8px 10px;
        font-size: 0.75rem;
    }
    
    /* 超小屏幕下拉框优化 */
    .form-select {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 8px center;
        background-size: 12px;
        padding-right: 30px;
        cursor: pointer;
    }
    
    /* 确保在IE浏览器中也能正确显示 */
    .form-select::-ms-expand {
        display: none;
    }
    
    /* 超小屏幕金额输入框优化 */
    .currency-symbol {
        font-size: 10px;
        left: 6px;
    }
    
    .amount-input {
        padding-left: 20px;
    }
    
    /* 超小屏幕按钮优化 */
    .cancel-btn,
    .save-btn {
        padding: 8px 14px;
        font-size: 0.75rem;
        min-height: 36px;
        width: 100%;
    }
}

/* 横屏模式优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .top-nav {
        height: 50px;
    }
    
    .sidebar {
        top: 50px;
        height: calc(100vh - 50px);
    }
    
    .main-content {
        padding-top: 60px;
    }
    
    /* 横屏模式日历优化 */
    .calendar-header {
        flex-direction: row;
        gap: 8px;
    }
    
    .days {
        gap: 4px;
    }
    
    .day {
        min-height: 65px;
        max-height: 65px;
        padding: 4px;
    }
    
    .day-content {
        min-height: 35px;
        max-height: 40px;
        -webkit-line-clamp: 2;
        display: flex;
        flex-direction: column;
        gap: 0.5px;
        align-items: flex-start;
        position: relative;
    }
    
    /* 横屏模式标签优化 - 在日期右侧显示 */
    .day-content .tag {
        font-size: 0.12rem !important;
        padding: 0.1px 0.2px !important;
        margin: 0 !important;
        border-radius: 1px !important;
        max-width: 35% !important;
        line-height: 0.4 !important;
        position: absolute !important;
        right: 0.5px !important;
        top: 0.5px !important;
        background: rgba(255, 255, 255, 0.25) !important;
        border: 1px solid rgba(255, 255, 255, 0.5) !important;
        z-index: 10 !important;
        font-weight: normal !important;
        box-shadow: 0 0 2px rgba(0, 0, 0, 0.3) !important;
    }
    
    .day-content .tag::before {
        width: 0.6px !important;
        height: 0.6px !important;
        margin-right: 0.15px !important;
        vertical-align: middle !important;
        position: relative !important;
        top: -0.2px !important;
        background: currentColor !important;
    }
    
    .stats-container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .stat-item {
        flex: 1;
        min-width: 120px;
    }
    
    .content-lists-container {
        flex-direction: row;
        gap: 10px;
    }
    
    .content-list {
        flex: 1;
    }
}

/* 全局标签强制样式覆盖 */
.day-content .tag {
    position: absolute !important;
    right: 4px !important;
    top: 4px !important;
    font-size: 0.6rem !important;
    padding: 1px 3px !important;
    margin: 0 !important;
    border-radius: 2px !important;
    max-width: 60% !important;
    line-height: 1 !important;
    background: rgba(255, 255, 255, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    z-index: 10 !important;
    font-weight: 500 !important;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.3) !important;
    display: inline-block !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

/* 移动端专用的小标签样式 */
@media (max-width: 768px) {
    .day .tag,
    .day-content .tag,
    .day-content span.tag {
        font-size: 0.4rem !important;
        padding: 0.8px 2px !important;
        max-width: 55% !important;
        line-height: 0.9 !important;
        right: 3px !important;
        top: 3px !important;
        border-radius: 2px !important;
        z-index: 20 !important;
        overflow: visible !important;
    }
}

/* 超小屏幕专用 */
@media (max-width: 480px) {
    .day .tag,
    .day-content .tag,
    .day-content span.tag {
        font-size: 0.35rem !important;
        padding: 0.5px 1.5px !important;
        max-width: 50% !important;
        line-height: 0.8 !important;
        right: 2px !important;
        top: 2px !important;
        border-radius: 1.5px !important;
        z-index: 25 !important;
        overflow: visible !important;
    }
}

.day-content .tag::before {
    content: '' !important;
    display: inline-block !important;
    width: 0.6px !important;
    height: 0.6px !important;
    border-radius: 50% !important;
    margin-right: 0.15px !important;
    vertical-align: middle !important;
    position: relative !important;
    top: -0.2px !important;
    background: currentColor !important;
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    /* 触摸设备日历优化 */
    .day {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* 触摸设备标签优化 - 在日期右侧显示 */
    .day-content .tag {
        font-size: 0.12rem !important;
        padding: 0.1px 0.2px !important;
        margin: 0 !important;
        border-radius: 1px !important;
        max-width: 35% !important;
        line-height: 0.4 !important;
        position: absolute !important;
        right: 0.5px !important;
        top: 0.5px !important;
        background: rgba(255, 255, 255, 0.25) !important;
        border: 1px solid rgba(255, 255, 255, 0.5) !important;
        z-index: 10 !important;
        font-weight: normal !important;
        box-shadow: 0 0 2px rgba(0, 0, 0, 0.3) !important;
    }
    
    .day-content .tag::before {
        width: 0.6px !important;
        height: 0.6px !important;
        margin-right: 0.15px !important;
        position: relative !important;
        top: -0.2px !important;
        background: currentColor !important;
    }
    
    .day:hover,
    .stat-item:hover,
    .content-list:hover,
    .help-section:hover,
    .work-type:hover,
    .faq-item:hover,
    .stat-card:hover,
    .security-item:hover {
        transform: none;
    }
    
    .nav-button:hover,
    .tag-btn:hover,
    .btn:hover,
    .action-btn:hover,
    .filter-btn:hover,
    .nav-btn:hover,
    .export-btn:hover,
    .add-expense-btn:hover,
    .save-btn:hover,
    .cancel-btn:hover,
    .file-upload-btn:hover,
    .invoice-btn:hover,
    .remove-file-btn:hover {
        transform: none;
    }
    
    .day:active,
    .stat-item:active,
    .content-list:active,
    .help-section:active,
    .work-type:active,
    .faq-item:active,
    .stat-card:active,
    .security-item:active {
        transform: scale(0.98);
    }
    
    .nav-button:active,
    .tag-btn:active,
    .btn:active,
    .action-btn:active,
    .filter-btn:active,
    .nav-btn:active,
    .export-btn:active,
    .add-expense-btn:active,
    .save-btn:active,
    .cancel-btn:active,
    .file-upload-btn:active,
    .invoice-btn:active,
    .remove-file-btn:active {
        transform: scale(0.95);
    }
}
