/* 主色调变量 */
:root {
    --primary-color: #0A5F53; /* 墨绿色主色调 */
    --primary-light: #15776A; /* 浅墨绿色 */
    --primary-dark: #084842; /* 深墨绿色 */
    --primary-color-rgb: 10, 95, 83; /* RGB 值 */
    --primary-light-rgb: 21, 119, 106; /* RGB 值 */
    --primary-dark-rgb: 8, 72, 66; /* RGB 值 */
    --secondary-color: #2C3E50; /* 深蓝灰色 */
    --accent-color: #FF7800; /* 橙色强调色 */
    --accent-light: #FFB366; /* 浅橙色 */
    --light-color: #F8FAFB;
    --dark-color: #263238;
    --text-color: #333333;
    --text-secondary: #6c757d;
    --border-color: #E9EDF2;
    --success-color: #3E9C6C;
    --info-color: #4A89DC;
    --warning-color: #E4A147;
    --danger-color: #D54B4B;
    --transition-speed: 0.3s;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --card-radius: 16px;
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 80px;
    --header-height: 70px;
}

/* 占位图样式 */
.placeholder-img {
    width: 40px;
    height: 40px;
    background-color: #f8f9fa;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' fill='%23e9ecef'/%3E%3Cpath d='M20 12l8 16H12z' fill='%23adb5bd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 8px;
}

/* 移动端预览样式 */
.mobile-preview {
    margin-top: 30px;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.mobile-preview-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #f8f9fa;
}

.mobile-preview-content {
    padding: 20px;
}

.mobile-preview-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.mobile-preview-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

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

body {
    font-family: 'PingFang SC', 'Helvetica Neue', 'Microsoft YaHei', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #F5F7FA;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all var(--transition-speed) ease;
}

a:hover {
    color: var(--primary-dark);
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 500;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 12px rgba(10, 95, 83, 0.2);
}

.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(10, 95, 83, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 10px 22px;
    font-weight: 500;
    background: transparent;
    transition: all 0.4s ease;
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(10, 95, 83, 0.15);
}

/* 高级卡片样式 */
.admin-card {
    background: #FFFFFF;
    border-radius: var(--card-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.4s ease;
    margin-bottom: 24px;
    border: none;
    overflow: hidden;
    position: relative;
}

.admin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
}

.admin-card .card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 20px 24px;
    font-weight: 600;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-card .card-header i {
    color: var(--primary-color);
    margin-right: 10px;
}

.admin-card .card-body {
    padding: 24px;
}

/* 管理布局 */
.admin-container {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏 */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--dark-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
}

.sidebar-collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: var(--header-height);
}

.sidebar-header .logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.sidebar-header h2 {
    color: white;
    font-size: 1.5rem;
    margin: 0 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-toggle-menu {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.sidebar-menu {
    padding: 20px 0;
}

.sidebar-menu .nav-item {
    margin: 6px 15px;
    border-radius: 12px;
    overflow: hidden;
}

.sidebar-menu .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar-menu .nav-link i {
    font-size: 1.2rem;
    width: 24px;
    margin-right: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.sidebar-menu .nav-link:hover, 
.sidebar-menu .nav-link.active {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 6px 14px rgba(10, 95, 83, 0.25);
}

.sidebar-menu .nav-link:hover i, 
.sidebar-menu .nav-link.active i {
    transform: translateX(3px);
}

/* 主内容区域 */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: all 0.4s ease;
    padding: 24px;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    flex-direction: column;
}

.main-content-expanded {
    margin-left: var(--sidebar-collapsed-width);
}

/* 顶部导航 */
.top-nav {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFB 100%);
    padding: 16px 24px;
    border-radius: var(--card-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    border-left: 4px solid var(--primary-color);
}

.page-title h4 {
    margin: 0;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 20px;
    position: relative;
    display: inline-block;
}

.page-title h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 3px;
}

.notifications .badge {
    position: absolute;
    top: 3px;
    right: 3px;
    font-size: 0.6rem;
}

.notifications .nav-link,
.profile .nav-link {
    color: var(--secondary-color);
    position: relative;
    padding: 8px 15px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    border: 2px solid var(--primary-light);
    box-shadow: 0 4px 8px rgba(10, 95, 83, 0.2);
    transition: all 0.3s ease;
}

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

.admin-name {
    color: var(--secondary-color);
    font-weight: 500;
}

/* 通知下拉菜单 */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    min-width: 300px;
}

.dropdown-header {
    background-color: var(--light-color);
    font-weight: 600;
    padding: 12px 20px;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: rgba(255, 120, 0, 0.1);
}

.notification-item {
    display: flex;
    align-items: center;
    padding: 5px 0;
}

.notification-item i {
    margin-right: 15px;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.notification-content {
    line-height: 1.3;
}

/* 页面内容 */
.page-content {
    flex: 1;
    padding: 20px 0;
}

/* 页面标题 */
.section-title {
    margin-bottom: 20px;
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background-color: var(--primary-color);
    border-radius: 10px;
}

/* 仪表盘卡片 */
.stats-card {
    border-radius: var(--card-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFB 100%);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    border-left: 4px solid var(--primary-color);
}

.stats-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.1);
}

.stats-card-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.7rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    position: relative;
    box-shadow: 0 8px 20px rgba(10, 95, 83, 0.25);
}

.stats-card-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 6px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

.stats-card-title {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.stats-card-trend {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 20px;
}

.trend-up {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.trend-down {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

/* 数据表格样式 */
.custom-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 24px;
    background-color: white;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.custom-table th,
.custom-table td {
    padding: 18px 24px;
    vertical-align: middle;
}

.custom-table thead th {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    border: none;
}

.custom-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.custom-table tbody tr:hover {
    background-color: rgba(10, 95, 83, 0.05);
    transform: scale(1.01);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.07);
}

.custom-table tbody tr:last-child {
    border-bottom: none;
}

/* 状态标签 */
.status-badge {
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
}

.status-badge i {
    margin-right: 5px;
    font-size: 10px;
}

.status-active {
    background-color: rgba(62, 156, 108, 0.15);
    color: var(--success-color);
}

.status-pending {
    background-color: rgba(228, 161, 71, 0.15);
    color: var(--warning-color);
}

.status-inactive {
    background-color: rgba(108, 117, 125, 0.15);
    color: #6c757d;
}

/* 表单样式 */
.form-control, .form-select {
    border-radius: 12px;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    font-size: 14px;
    box-shadow: none;
    transition: all 0.3s ease;
    background-color: #f9fafb;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(10, 95, 83, 0.15);
    background-color: white;
}

.form-label {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
    font-size: 14px;
}

/* 搜索框样式 */
.search-form {
    position: relative;
    margin-bottom: 24px;
}

.search-form .form-control {
    padding-left: 50px;
    background-color: white;
    border-radius: 30px;
    height: 54px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: none;
    font-size: 15px;
}

.search-form .form-control:focus {
    box-shadow: 0 6px 16px rgba(10, 95, 83, 0.1);
}

.search-form .search-icon {
    position: absolute;
    left: 20px;
    top: 17px;
    color: var(--primary-color);
    font-size: 1.3rem;
}

/* 过滤器样式 */
.filter-container {
    background-color: #fff;
    border-radius: var(--card-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
}

.filter-title {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.filter-title i {
    margin-right: 10px;
    color: var(--primary-color);
}

/* 页脚 */
.footer {
    background-color: transparent;
    padding: 20px 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-text {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
}

.footer-text a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-text a:hover {
    color: var(--primary-color);
}

.footer-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

/* 响应式页脚 */
@media (max-width: 768px) {
    .footer {
        padding: 15px 0;
    }
    
    .footer-content {
        padding: 0 15px;
    }
    
    .footer-text {
        font-size: 13px;
    }
}

/* 响应式调整 */
@media (max-width: 992px) {
    .sidebar {
        width: var(--sidebar-collapsed-width);
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
        width: var(--sidebar-width);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .sidebar-header h2, 
    .sidebar-menu .nav-link span {
        opacity: 0;
        visibility: hidden;
    }
    
    .sidebar.active .sidebar-header h2, 
    .sidebar.active .sidebar-menu .nav-link span {
        opacity: 1;
        visibility: visible;
    }
    
    .sidebar-menu .nav-link {
        justify-content: center;
    }
    
    .sidebar.active .sidebar-menu .nav-link {
        justify-content: flex-start;
    }
    
    .sidebar-menu .nav-link i {
        margin-right: 0;
    }
    
    .sidebar.active .sidebar-menu .nav-link i {
        margin-right: 10px;
    }
}

@media (max-width: 768px) {
    .top-nav {
        flex-direction: column;
        align-items: stretch;
    }
    
    .page-title {
        margin-bottom: 15px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

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

.fade-in {
    animation: fadeIn 0.5s ease;
}

.slide-left {
    animation: slideInLeft 0.5s ease;
}

.slide-right {
    animation: slideInRight 0.5s ease;
}

.slide-up {
    animation: slideInUp 0.5s ease;
}

/* 加载动画 */
.loader {
    width: 48px;
    height: 48px;
    border: 5px solid rgba(10, 95, 83, 0.2);
    border-bottom-color: var(--primary-color);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

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

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* 添加新动画 */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-25deg);
    animation: shine 3s infinite;
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

/* 轮播图管理样式
.carousel-manager {
    position: relative;
    background: white;
    border-radius: var(--card-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    padding: 30px;
    margin-bottom: 30px;
}

.carousel-manager-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.carousel-manager-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    display: flex;
    align-items: center;
}

.carousel-manager-title i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.4rem;
}

.carousel-items-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.carousel-item-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.carousel-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-light);
}

.carousel-item-preview {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: #f8f9fa;
}

.carousel-item-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.carousel-item-card:hover .carousel-item-preview img {
    transform: scale(1.05);
}

.carousel-item-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.carousel-item-active {
    background-color: rgba(62, 156, 108, 0.9);
    color: white;
}

.carousel-item-inactive {
    background-color: rgba(108, 117, 125, 0.9);
    color: white;
}

.carousel-item-info {
    padding: 15px;
}

.carousel-item-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.carousel-item-description {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.4;
    height: 36px;
    overflow: hidden;
    margin-bottom: 12px;
}

.carousel-item-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
}

.carousel-item-actions {
    display: flex;
    margin-top: 12px;
    gap: 8px;
}

.carousel-action-btn {
    border: none;
    background: #f5f7fa;
    color: var(--dark-color);
    border-radius: 8px;
    padding: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.carousel-action-btn i {
    margin-right: 6px;
    font-size: 13px;
}

.carousel-action-btn.edit {
    background-color: rgba(74, 137, 220, 0.1);
    color: var(--info-color);
}

.carousel-action-btn.delete {
    background-color: rgba(213, 75, 75, 0.1);
    color: var(--danger-color);
}

.carousel-action-btn:hover {
    transform: translateY(-2px);
}

.carousel-action-btn.edit:hover {
    background-color: var(--info-color);
    color: white;
}

.carousel-action-btn.delete:hover {
    background-color: var(--danger-color);
    color: white;
}

.carousel-item-order {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    z-index: 2;
}

.carousel-upload-container {
    background: #f8f9fa;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 30px;
}

.carousel-upload-container:hover {
    border-color: var(--primary-color);
    background: rgba(10, 95, 83, 0.05);
}

.carousel-upload-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.carousel-upload-container:hover .carousel-upload-icon {
    transform: scale(1.1);
}

.carousel-upload-text {
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.carousel-upload-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 10px;
}

.carousel-editor-modal .modal-dialog {
    max-width: 700px;
}

.carousel-editor-form .form-group {
    margin-bottom: 20px;
}

.carousel-preview-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 20px;
    background: #f8f9fa;
}

.carousel-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-preview-wrapper:hover .carousel-preview-overlay {
    opacity: 1;
}

.carousel-preview-action {
    background: white;
    color: var(--dark-color);
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-preview-action:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.carousel-sortable-handle {
    cursor: move;
    color: var(--text-secondary);
    margin-right: 10px;
    padding: 5px;
}

.carousel-item-dragging {
    opacity: 0.6;
    transform: scale(0.95);
}

.carousel-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.carousel-filter-btn {
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-filter-btn:hover, 
.carousel-filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.carousel-timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
    padding-left: 20px;
    border-left: 2px dashed var(--border-color);
}

.carousel-timeline-item {
    position: relative;
    padding-left: 30px;
}

.carousel-timeline-item::before {
    content: '';
    position: absolute;
    left: -11px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--primary-color);
}

.carousel-timeline-date {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.carousel-timeline-content {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.carousel-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.carousel-stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.carousel-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.carousel-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(10, 95, 83, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 15px;
}

.carousel-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.carousel-stat-label {
    font-size: 14px;
    color: var(--text-secondary);
} */

/* 响应式调整 */
@media (max-width: 768px) {
    .carousel-items-container {
        grid-template-columns: 1fr;
    }
    
    .carousel-manager-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .carousel-manager-actions {
        margin-top: 15px;
        width: 100%;
    }
    
    .carousel-filters {
        overflow-x: auto;
        padding-bottom: 10px;
        flex-wrap: nowrap;
    }
}

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

.modal.show {
    display: block;
}

.modal-backdrop {
    display: none !important;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 1.75rem auto;
    max-width: 500px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modal-content {
    position: relative;
    width: 100%;
    background: #fff;
    border-radius: 8px;
}

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

.modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* 响应式调整 */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.5rem;
    }
}

/* 目的地编辑样式 */
.destination-status-toggle {
    position: relative;
}

.card.processing {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

.card.processing::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='40' stroke='%230A5F53' stroke-width='8' fill='none' stroke-dasharray='200' stroke-dashoffset='0'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 50 50' to='360 50 50' dur='1s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50px;
    z-index: 10;
    border-radius: var(--card-radius);
}

/* 风景图库样式 */
.scenic-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.scenic-image-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.scenic-image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.scenic-image-preview {
    width: 100%;
    height: 150px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.scenic-image-controls {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scenic-image-item:hover .scenic-image-controls {
    opacity: 1;
}

.image-index {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.batch-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* 拖拽上传区域样式 */
.dropzone-container {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    background-color: rgba(10, 95, 83, 0.03);
    position: relative;
}

.dropzone-container.dragover {
    border-color: var(--primary-color);
    background-color: rgba(10, 95, 83, 0.08);
    transform: scale(1.02);
}

.dropzone-container.uploading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    border-radius: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='40' stroke='%230A5F53' stroke-width='8' fill='none' stroke-dasharray='200' stroke-dashoffset='0'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 50 50' to='360 50 50' dur='1s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50px;
    z-index: 2;
}

.dropzone-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.dropzone-inner i {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.dropzone-inner p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.upload-more .dropzone-container {
    background-color: rgba(10, 95, 83, 0.05);
    padding: 16px;
}

.upload-more .dropzone-inner i {
    font-size: 24px;
}

.upload-more .dropzone-inner p {
    font-size: 14px;
    font-weight: 500;
}

/* 图片预览模态框 */
.image-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.image-preview-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    z-index: 1;
}

.image-preview {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.image-preview-close {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-preview-close:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #d9e2ec;
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 0;
}

/* 动画效果 */
@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.animate__fadeOut {
    animation: fadeOut 0.3s ease forwards;
}

/* 目的地禁用状态样式 */
.disabled-card {
    opacity: 0.75;
    position: relative;
    transition: opacity 0.3s ease;
}

.disabled-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.03);
    backdrop-filter: grayscale(70%);
    z-index: 1;
    border-radius: var(--card-radius);
}

.table-inactive {
    background-color: rgba(0, 0, 0, 0.03) !important;
}

.table-inactive td {
    color: #6c757d;
}

.list-unstyled {
    padding-left: 40px;
}

.list-unstyled li {
    padding: 12px 0;
}

.list-unstyled li a {
    color: #fff;
}

.list-unstyled li a i {
    margin-right: 10px;
}