/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background: linear-gradient(rgba(245, 247, 250, 0.9), rgba(195, 207, 226, 0.9)), url('https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=travel%20landscape%20background%20blurred%20mountains%20and%20ocean&image_size=landscape_16_9');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    transition: background 0.3s ease;
}

/* 页面容器 */
.page-container {
    display: flex;
    min-height: calc(100vh - 70px);
    transition: all 0.3s ease;
    position: relative;
}

/* 侧边栏 */
.sidebar {
    width: 250px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 70px;
    bottom: 0;
    z-index: 900;
    border-radius: 0 20px 20px 0;
    overflow: hidden;
}

body.dark-mode .sidebar {
    background: rgba(17, 24, 39, 0.95);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.3);
}

/* 侧边栏收缩状态 */
.sidebar.collapsed {
    width: 80px;
    border-radius: 0 20px 20px 0;
}

/* 侧边栏头部 */
.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

body.dark-mode .sidebar-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
}

/* 侧边栏菜单 */
.sidebar-menu {
    padding: 20px 0;
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(102, 126, 234, 0.5) rgba(0, 0, 0, 0.1);
}

.sidebar-menu::-webkit-scrollbar {
    width: 6px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 3px;
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.8);
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    margin: 5px 0;
    position: relative;
    overflow: hidden;
    border-radius: 0 15px 15px 0;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s;
}

.menu-item:hover::before {
    left: 100%;
}

/* 侧边栏内部的切换按钮 */
.sidebar-header .sidebar-toggle-btn {
    margin: 0;
    font-size: 18px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.sidebar-header .sidebar-toggle-btn:hover {
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.sidebar.collapsed .sidebar-header .sidebar-toggle-btn {
    transform: rotate(180deg);
}

.menu-item:hover {
    background: rgba(102, 126, 234, 0.1);
    border-left-color: #667eea;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

body.dark-mode .menu-item:hover {
    background: rgba(102, 126, 234, 0.2);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.menu-item.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border-left-color: #667eea;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.menu-icon {
    font-size: 20px;
    margin-right: 15px;
    min-width: 24px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.menu-item:hover .menu-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(102, 126, 234, 0.1);
}

.menu-item.active .menu-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.menu-text {
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.sidebar.collapsed .menu-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
    margin: 0;
}

.sidebar.collapsed .menu-icon {
    margin-right: 0;
}

/* 侧边栏切换按钮 */
.sidebar-toggle-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.sidebar-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

body.dark-mode .sidebar-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 深色模式 */
body.dark-mode {
    background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(75, 108, 183, 0.9)), url('https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=travel%20landscape%20background%20blurred%20mountains%20and%20ocean%20dark%20mode&image_size=landscape_16_9');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
}

/* 导航栏 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.navbar:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

body.dark-mode .navbar {
    background: rgba(17, 24, 39, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .navbar:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 28px;
    font-weight: bold;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.logo::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    text-shadow: 3px 3px 6px rgba(102, 126, 234, 0.3);
}

.logo:hover::before {
    width: 100%;
}

body.dark-mode .logo {
    background: linear-gradient(135deg, #a78bfa 0%, #c4b5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(167, 139, 250, 0.3);
}

body.dark-mode .logo::before {
    background: linear-gradient(135deg, #a78bfa 0%, #c4b5fd 100%);
}

.nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s;
}

.nav-links a:hover::before {
    left: 100%;
}

body.dark-mode .nav-links a {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.dark-mode .nav-links a::before {
    background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.2), transparent);
}

.nav-links a:hover {
    color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

body.dark-mode .nav-links a:hover {
    color: #a78bfa;
    box-shadow: 0 6px 16px rgba(167, 139, 250, 0.3);
    border-color: rgba(167, 139, 250, 0.4);
}

/* 退出登录按钮样式 */
#logout-btn {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

body.dark-mode #logout-btn {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#logout-btn:hover {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

body.dark-mode #logout-btn:hover {
    background: rgba(220, 53, 69, 0.3);
}

.mode-toggle button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.mode-toggle button:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* 主内容区域 */
.main-content {
    flex: 1;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    margin-left: 250px;
    min-height: calc(100vh - 70px);
}

.sidebar.collapsed + .main-content {
    margin-left: 80px;
}

.main-content > div {
    width: 100%;
    max-width: 1000px;
    margin-bottom: 40px;
}

/* 仪表盘 */
.dashboard {
    margin-bottom: 40px;
}

.dashboard h2 {
    margin-bottom: 20px;
    color: #333;
}

body.dark-mode .dashboard h2 {
    color: #fff;
}

.dashboard-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.chart-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

body.dark-mode .chart-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.chart-card:hover {
    transform: translateY(-5px);
}

.chart-card h3 {
    margin-top: 15px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

body.dark-mode .chart-card h3 {
    color: #fff;
}

.chart-card canvas {
    max-height: 300px;
}

/* 图表控制按钮 */
.chart-controls {
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-end;
}

.chart-toggle-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.chart-toggle-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

/* AI模型管理 */
.ai-models {
    margin-bottom: 40px;
}

.ai-models h2 {
    margin-bottom: 20px;
    color: #333;
}

body.dark-mode .ai-models h2 {
    color: #fff;
}

.model-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.model-actions button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    margin-left: 5px;
}

.model-actions .edit-btn {
    background-color: #2196F3;
    color: white;
}

.model-actions .edit-btn:hover {
    background-color: #0b7dda;
}

.model-actions .check-api-btn {
    background-color: #4CAF50;
    color: white;
}

.model-actions .check-api-btn:hover {
    background-color: #45a049;
}

.model-actions .delete-btn {
    background-color: #f44336;
    color: white;
}

.model-actions .delete-btn:hover {
    background-color: #da190b;
}

#add-model-btn {
    margin-top: 20px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background-color: #2196F3;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

#add-model-btn:hover {
    background-color: #0b7dda;
}

.api-model-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.api-model-form input {
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #333;
}

body.dark-mode .api-model-form input {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#fetch-models-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

#fetch-models-btn:hover {
    background-color: #45a049;
}

.models-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.models-container .model-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

body.dark-mode .models-container .model-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.models-container .model-info h4 {
    margin: 0 0 5px 0;
    color: #333;
}

body.dark-mode .models-container .model-info h4 {
    color: #fff;
}

.models-container .model-info p {
    margin: 0;
    color: #666;
    font-size: 12px;
}

body.dark-mode .models-container .model-info p {
    color: #aaa;
}

.models-container .model-actions .add-model-btn {
    padding: 5px 15px;
    border: none;
    border-radius: 6px;
    background-color: #2196F3;
    color: white;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.models-container .model-actions .add-model-btn:hover {
    background-color: #0b7dda;
}

.model-list {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

body.dark-mode .model-list {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.model-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

body.dark-mode .model-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.model-item:last-child {
    border-bottom: none;
}

.model-info h3 {
    color: #333;
    margin-bottom: 5px;
}

body.dark-mode .model-info h3 {
    color: #fff;
}

.model-info p {
    color: #666;
    font-size: 14px;
}

body.dark-mode .model-info p {
    color: #ccc;
}

.model-actions {
    display: flex;
    gap: 10px;
}

.model-actions button {
    padding: 5px 10px;
    border: none;
    border-radius: 10px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.edit-btn {
    background: #ffc107;
    color: #333;
}

.edit-btn:hover {
    background: #e0a800;
}

.delete-btn {
    background: #dc3545;
    color: white;
}

.delete-btn:hover {
    background: #c82333;
}

#add-model-btn,
#add-user-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 15px;
    background: #28a745;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

#add-model-btn:hover,
#add-user-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body.dark-mode #add-model-btn:hover,
body.dark-mode #add-user-btn:hover {
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

/* 用户管理 */
.user-management {
    margin-bottom: 40px;
}

.user-management h2 {
    margin-bottom: 20px;
    color: #333;
}

body.dark-mode .user-management h2 {
    color: #fff;
}

.user-list {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

body.dark-mode .user-list {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

body.dark-mode .user-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-item:last-child {
    border-bottom: none;
}

.user-info h3 {
    color: #333;
    margin-bottom: 5px;
}

body.dark-mode .user-info h3 {
    color: #fff;
}

.user-info p {
    color: #666;
    font-size: 14px;
}

body.dark-mode .user-info p {
    color: #ccc;
}

.user-actions {
    display: flex;
    gap: 10px;
}

.user-actions button {
    padding: 5px 10px;
    border: none;
    border-radius: 10px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    width: 80%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
}

body.dark-mode .modal-content {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* 模态框按钮样式 */
.modal-content button {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    background: #007bff;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.modal-content button:hover {
    background: #0069d9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

body.dark-mode .modal-content button:hover {
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

body.dark-mode .close:hover {
    color: #fff;
}

.modal-content h3 {
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

body.dark-mode .modal-content h3 {
    color: #fff;
}

#add-model-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#add-model-form input,
#add-model-form select {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

#add-model-form input:focus,
#add-model-form select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    transform: translateY(-1px);
}

body.dark-mode #add-model-form input,
body.dark-mode #add-model-form select {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode #add-model-form input:focus,
body.dark-mode #add-model-form select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

#add-model-form button {
    padding: 12px;
    border: none;
    border-radius: 15px;
    background: #007bff;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

#add-model-form button:hover {
    background: #0069d9;
}

/* 编辑用户表单 */
#edit-user-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#edit-user-form input,
#edit-user-form select {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

#edit-user-form input:focus,
#edit-user-form select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    transform: translateY(-1px);
}

body.dark-mode #edit-user-form input,
body.dark-mode #edit-user-form select {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode #edit-user-form input:focus,
body.dark-mode #edit-user-form select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

#edit-user-form button {
    padding: 12px;
    border: none;
    border-radius: 15px;
    background: #007bff;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}

#edit-user-form button:hover {
    background: #0069d9;
    transform: translateY(-2px);
}

/* 编辑AI模型表单 */
#edit-model-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#edit-model-form input,
#edit-model-form select {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

#edit-model-form input:focus,
#edit-model-form select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    transform: translateY(-1px);
}

body.dark-mode #edit-model-form input,
body.dark-mode #edit-model-form select {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode #edit-model-form input:focus,
body.dark-mode #edit-model-form select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

#edit-model-form button {
    padding: 12px;
    border: none;
    border-radius: 15px;
    background: #007bff;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}

#edit-model-form button:hover {
    background: #0069d9;
    transform: translateY(-2px);
}

/* 添加用户表单 */
#add-user-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#add-user-form input,
#add-user-form select {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

#add-user-form input:focus,
#add-user-form select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    transform: translateY(-1px);
}

body.dark-mode #add-user-form input,
body.dark-mode #add-user-form select {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode #add-user-form input:focus,
body.dark-mode #add-user-form select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

#add-user-form button {
    padding: 12px;
    border: none;
    border-radius: 15px;
    background: #007bff;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}

#add-user-form button:hover {
    background: #0069d9;
    transform: translateY(-2px);
}

/* 模态框动画效果 */
.modal-content {
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 按钮悬停效果 */
button {
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body.dark-mode button:hover {
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

/* 旅游实例管理 */
.tourism-management {
    margin-bottom: 40px;
}

.tourism-management h2 {
    margin-bottom: 20px;
    color: #333;
}

body.dark-mode .tourism-management h2 {
    color: #fff;
}

.tourism-list {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

body.dark-mode .tourism-list {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.tourism-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body.dark-mode .tourism-item {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tourism-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

body.dark-mode .tourism-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.tourism-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
}

.tourism-info h3 {
    color: #333;
    margin-bottom: 5px;
    font-size: 18px;
}

body.dark-mode .tourism-info h3 {
    color: #fff;
}

.tourism-info p {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

body.dark-mode .tourism-info p {
    color: #ccc;
}

.tourism-info img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.tourism-info img:hover {
    transform: scale(1.05);
}

.tourism-actions {
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin-top: 20px;
    align-items: center;
    justify-content: flex-start;
}

.btn-link {
    padding: 8px 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    box-sizing: border-box;
    min-width: 100px;
    text-align: center;
}

.btn-link:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

.tourism-actions button {
    padding: 8px 16px;
    border: none;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    height: 36px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    text-align: center;
}

.tourism-actions button:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

/* 用户评价管理 */
.review-management {
    margin-bottom: 40px;
}

.review-management h2 {
    margin-bottom: 20px;
    color: #333;
}

body.dark-mode .review-management h2 {
    color: #fff;
}

.review-list {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

body.dark-mode .review-list {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.review-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body.dark-mode .review-item {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.review-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

body.dark-mode .review-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.review-info {
    flex: 1;
}

.review-info h3 {
    color: #333;
    margin-bottom: 5px;
    font-size: 16px;
}

body.dark-mode .review-info h3 {
    color: #fff;
}

.review-rating {
    color: #ffc107 !important;
    font-size: 14px;
    margin-bottom: 10px !important;
}

.review-info p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

body.dark-mode .review-info p {
    color: #ccc;
}

.review-actions {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.review-actions button {
    padding: 8px 16px;
    border: none;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 统一按钮样式 */
.edit-btn {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #333;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.edit-btn:hover {
    background: linear-gradient(135deg, #ffb300 0%, #f57c00 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 193, 7, 0.4);
}

.delete-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.delete-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 53, 69, 0.4);
}

#add-tourism-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    box-sizing: border-box;
    min-width: 100px;
    text-align: center;
}

#add-tourism-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

/* 添加旅游实例表单 */
#add-tourism-form,
#edit-tourism-form,
#edit-review-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#add-tourism-form input,
#add-tourism-form select,
#edit-tourism-form input,
#edit-tourism-form select,
#edit-review-form input,
#edit-review-form select,
#edit-review-form textarea {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

#add-tourism-form input:focus,
#add-tourism-form select:focus,
#edit-tourism-form input:focus,
#edit-tourism-form select:focus,
#edit-review-form input:focus,
#edit-review-form select:focus,
#edit-review-form textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    transform: translateY(-1px);
}

body.dark-mode #add-tourism-form input,
body.dark-mode #add-tourism-form select,
body.dark-mode #edit-tourism-form input,
body.dark-mode #edit-tourism-form select,
body.dark-mode #edit-review-form input,
body.dark-mode #edit-review-form select,
body.dark-mode #edit-review-form textarea {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode #add-tourism-form input:focus,
body.dark-mode #add-tourism-form select:focus,
body.dark-mode #edit-tourism-form input:focus,
body.dark-mode #edit-tourism-form select:focus,
body.dark-mode #edit-review-form input:focus,
body.dark-mode #edit-review-form select:focus,
body.dark-mode #edit-review-form textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

#edit-review-form textarea {
    resize: vertical;
    min-height: 100px;
}

#add-tourism-form button,
#edit-tourism-form button,
#edit-review-form button {
    padding: 12px;
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, #007bff 0%, #0069d9 100%);
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

#add-tourism-form button:hover,
#edit-tourism-form button:hover,
#edit-review-form button:hover {
    background: linear-gradient(135deg, #0069d9 0%, #0056b3 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

/* 文章摘要管理 */
.summary-management {
    margin-bottom: 40px;
}

.summary-management h2 {
    margin-bottom: 20px;
    color: #333;
}

body.dark-mode .summary-management h2 {
    color: #fff;
}

.summary-list {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

body.dark-mode .summary-list {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body.dark-mode .summary-item {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.summary-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

body.dark-mode .summary-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.summary-info {
    flex: 1;
}

.summary-info h3 {
    color: #333;
    margin-bottom: 5px;
    font-size: 16px;
}

body.dark-mode .summary-info h3 {
    color: #fff;
}

.summary-date {
    color: #666 !important;
    font-size: 12px;
    margin-bottom: 10px !important;
}

body.dark-mode .summary-date {
    color: #ccc !important;
}

.summary-content {
    margin-top: 10px;
}

.summary-content h4 {
    color: #333;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 600;
}

body.dark-mode .summary-content h4 {
    color: #fff;
}

.summary-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
}

body.dark-mode .summary-content p {
    color: #ccc;
}

.summary-actions {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.summary-actions button {
    padding: 8px 16px;
    border: none;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

#add-summary-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

#add-summary-btn:hover {
    background: linear-gradient(135deg, #138496 0%, #0f6674 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(23, 162, 184, 0.4);
}

/* 生成文章摘要表单 */
#add-summary-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#add-summary-form input,
#add-summary-form textarea {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

#add-summary-form textarea {
    resize: vertical;
    min-height: 150px;
}

#add-summary-form input:focus,
#add-summary-form textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

body.dark-mode #add-summary-form input,
body.dark-mode #add-summary-form textarea {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode #add-summary-form input:focus,
body.dark-mode #add-summary-form textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

#add-summary-form button {
    padding: 12px;
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, #007bff 0%, #0069d9 100%);
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

#add-summary-form button:hover {
    background: linear-gradient(135deg, #0069d9 0%, #0056b3 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

/* 背景图片管理 */
.background-management {
    margin-bottom: 40px;
}

.background-management h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
    font-weight: 600;
    position: relative;
    padding-left: 20px;
}

.background-management h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    border-radius: 2px;
}

body.dark-mode .background-management h2 {
    color: #fff;
}

.background-list {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

body.dark-mode .background-list {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.background-list:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

body.dark-mode .background-list:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.background-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

body.dark-mode .background-item {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.background-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

body.dark-mode .background-item:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.background-info {
    flex: 1;
    margin-right: 30px;
}

.background-info h3 {
    color: #333;
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.background-info h3::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin-left: 10px;
}

body.dark-mode .background-info h3 {
    color: #fff;
}

body.dark-mode .background-info h3::after {
    background: rgba(255, 255, 255, 0.1);
}

.background-info p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.background-info p strong {
    color: #333;
    font-weight: 600;
    min-width: 80px;
}

body.dark-mode .background-info p {
    color: #ccc;
}

body.dark-mode .background-info p strong {
    color: #fff;
}

.background-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    align-items: flex-start;
}

.background-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 80px;
    justify-content: center;
}

.background-actions .edit-btn {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #333;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.background-actions .edit-btn:hover {
    background: linear-gradient(135deg, #ffb300 0%, #f57c00 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 193, 7, 0.4);
}

.background-actions .delete-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.background-actions .delete-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 53, 69, 0.4);
}

#add-background-btn {
    padding: 14px 30px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(23, 162, 184, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#add-background-btn::before {
    content: '+';
    font-size: 18px;
    font-weight: bold;
}

#add-background-btn:hover {
    background: linear-gradient(135deg, #138496 0%, #0f6674 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(23, 162, 184, 0.4);
}

/* 添加背景图片表单 */
#add-background-form,
#edit-background-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

#add-background-form input,
#edit-background-form input {
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#add-background-form input:focus,
#edit-background-form input:focus {
    border-color: #17a2b8;
    box-shadow: 0 0 0 4px rgba(23, 162, 184, 0.25);
    transform: translateY(-1px);
}

body.dark-mode #add-background-form input,
body.dark-mode #edit-background-form input {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.dark-mode #add-background-form input:focus,
body.dark-mode #edit-background-form input:focus {
    border-color: #2196F3;
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.25);
}

#add-background-form button,
#edit-background-form button {
    padding: 14px 24px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

#add-background-form button:hover,
#edit-background-form button:hover {
    background: linear-gradient(135deg, #138496 0%, #0f6674 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(23, 162, 184, 0.4);
}

/* 文章管理 */
.posts-management {
    margin-bottom: 40px;
}

.posts-management h2 {
    margin-bottom: 20px;
    color: #333;
}

body.dark-mode .posts-management h2 {
    color: #fff;
}

.posts-actions {
    margin-bottom: 20px;
}

#add-post-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, #007bff 0%, #0069d9 100%);
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

#add-post-btn:hover {
    background: linear-gradient(135deg, #0069d9 0%, #0056b3 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

.post-list {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

body.dark-mode .post-list {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.no-data {
    text-align: center;
    color: #666;
    padding: 40px 0;
}

body.dark-mode .no-data {
    color: #ccc;
}

.post-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body.dark-mode .post-item {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.post-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

body.dark-mode .post-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.post-info {
    flex: 1;
    margin-right: 20px;
}

.post-info h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 18px;
}

body.dark-mode .post-info h3 {
    color: #fff;
}

.post-meta {
    color: #666 !important;
    font-size: 12px;
    margin-bottom: 10px !important;
}

body.dark-mode .post-meta {
    color: #aaa !important;
}

.post-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

body.dark-mode .post-excerpt {
    color: #ccc;
}

.post-image {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.post-image:hover {
    transform: scale(1.05);
}

.post-tags {
    margin-top: 10px;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    margin-right: 8px;
    margin-bottom: 8px;
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    border-radius: 15px;
    font-size: 12px;
    transition: all 0.3s ease;
}

body.dark-mode .tag {
    background: rgba(0, 123, 255, 0.2);
    color: #64b5f6;
}

.tag:hover {
    background: rgba(0, 123, 255, 0.2);
    transform: translateY(-1px);
}

.post-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.post-actions button {
    padding: 8px 16px;
    border: none;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 大尺寸模态框 */
.modal-large {
    max-width: 800px;
    width: 90%;
}

/* 添加文章表单 */
#add-post-form,
#edit-post-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#add-post-form input,
#add-post-form select,
#add-post-form textarea,
#edit-post-form input,
#edit-post-form select,
#edit-post-form textarea {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

#add-post-form textarea,
#edit-post-form textarea {
    resize: vertical;
    min-height: 200px;
    font-family: 'Arial', sans-serif;
}

#add-post-form input:focus,
#add-post-form select:focus,
#add-post-form textarea:focus,
#edit-post-form input:focus,
#edit-post-form select:focus,
#edit-post-form textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    transform: translateY(-1px);
}

body.dark-mode #add-post-form input,
body.dark-mode #add-post-form select,
body.dark-mode #add-post-form textarea,
body.dark-mode #edit-post-form input,
body.dark-mode #edit-post-form select,
body.dark-mode #edit-post-form textarea {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode #add-post-form input:focus,
body.dark-mode #add-post-form select:focus,
body.dark-mode #add-post-form textarea:focus,
body.dark-mode #edit-post-form input:focus,
body.dark-mode #edit-post-form select:focus,
body.dark-mode #edit-post-form textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

#add-post-form button,
#edit-post-form button {
    padding: 12px;
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, #007bff 0%, #0069d9 100%);
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

#add-post-form button:hover,
#edit-post-form button:hover {
    background: linear-gradient(135deg, #0069d9 0%, #0056b3 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

/* 分享管理 */
.share-management {
    margin-bottom: 40px;
}

.share-management h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
    font-weight: 600;
    position: relative;
    padding-left: 20px;
}

.share-management h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

body.dark-mode .share-management h2 {
    color: #fff;
}

.share-list {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

body.dark-mode .share-list {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.share-item {
    display: flex;
    flex-direction: column;
    padding: 20px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body.dark-mode .share-item {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.share-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

body.dark-mode .share-item:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.share-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 18px;
}

.share-user-details h4 {
    color: #333;
    margin-bottom: 2px;
    font-size: 16px;
    font-weight: 600;
}

body.dark-mode .share-user-details h4 {
    color: #fff;
}

.share-time {
    font-size: 12px;
    color: #999;
}

.share-actions {
    display: flex;
    gap: 10px;
}

.share-actions button {
    padding: 8px 16px;
    border: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-actions .delete-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.share-actions .delete-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 53, 69, 0.4);
}

.share-content {
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    white-space: pre-wrap;
}

body.dark-mode .share-content {
    color: #ccc;
}

.share-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.share-image {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.share-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.share-stats {
    display: flex;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body.dark-mode .share-stats {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.share-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 14px;
}

body.dark-mode .share-stat {
    color: #ccc;
}

.no-shares {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

body.dark-mode .no-shares {
    color: #ccc;
}

.no-shares-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.no-shares-text {
    font-size: 16px;
    margin-bottom: 10px;
}

.no-shares-subtext {
    font-size: 14px;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .model-item,
    .user-item,
    .tourism-item,
    .review-item,
    .summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .model-actions,
    .user-actions,
    .tourism-actions,
    .review-actions,
    .summary-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .tourism-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .tourism-info img {
        width: 100%;
        height: 120px;
    }
    
    .review-actions,
    .summary-actions {
        margin-left: 0;
    }
}