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

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* 顶部导航栏 */
.header {
    background: linear-gradient(135deg, #1890ff, #40a9ff);
    color: white;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.university-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    /* 移除圆形边框，让SVG保持原始形状 */
    /* border-radius: 50%; */
}

.system-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 150px;
    display: none;
    z-index: 1001;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

/* 按钮样式 */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: #1890ff;
    color: white;
}

.btn-primary:hover {
    background-color: #40a9ff;
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

.btn-outline:hover {
    background-color: white;
    color: #1890ff;
}

.btn-success {
    background-color: #52c41a;
    color: white;
}

.btn-success:hover {
    background-color: #73d13d;
}

.btn-warning {
    background-color: #fa8c16;
    color: white;
}

.btn-warning:hover {
    background-color: #ffa940;
}

.btn-danger {
    background-color: #ff4d4f;
    color: white;
}

.btn-danger:hover {
    background-color: #ff7875;
}

.btn-info {
    background-color: #1890ff;
    color: white;
}

.btn-info:hover {
    background-color: #40a9ff;
}

/* 主要内容区域 */
.main-content {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 80px);
}

/* 侧边栏 */
.sidebar {
    width: 250px;
    background: white;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    padding: 2rem 0;
}

.nav-menu {
    display: flex;
    flex-direction: column;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background-color: #f8f9fa;
    border-left-color: #1890ff;
}

.nav-item.active {
    background-color: #e6f7ff;
    border-left-color: #1890ff;
    color: #1890ff;
}

.nav-icon {
    font-size: 1.2rem;
}

.nav-text {
    font-weight: 500;
}

.nav-divider {
    height: 1px;
    background-color: #f0f0f0;
    margin: 1rem 0;
}

/* 内容区域 */
.content-area {
    flex: 1;
    padding: 2rem;
    background: white;
    margin-left: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.page-header h2 {
    color: #1890ff;
    font-size: 1.8rem;
    font-weight: 600;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #fff, #f8f9fa);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
}

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

.stat-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

.stat-content {
    flex: 1;
}

.stat-title {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1890ff;
}

/* 轮播图 */
.carousel-container {
    position: relative;
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel {
    position: relative;
    height: 300px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
}

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

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.carousel-btn.prev {
    left: 1rem;
}

.carousel-btn.next {
    right: 1rem;
}

/* 活动列表 */
.activity-section h3 {
    color: #1890ff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.activity-item {
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #1890ff;
}

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

/* 场馆选择器 */
.venue-selector {
    display: flex;
    gap: 1rem;
}

.venue-selector select {
    padding: 0.5rem 1rem;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 1rem;
    background: white;
}

/* 座位状态图例 */
.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.seat-demo, .venue-element {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.seat-demo.available {
    background-color: #52c41a;
}

.seat-demo.occupied {
    background-color: #ff4d4f;
}

.seat-demo.in-use {
    background-color: #fa8c16;
}

.seat-demo.temp-leave {
    background-color: #1890ff;
}

.seat-demo.maintenance {
    background-color: #722ed1;
}

.venue-element.bookshelf {
    background-color: #1890ff;
}

.venue-element.desk {
    background-color: #8B4513;
}

.venue-element.window {
    background-color: #87CEEB;
}

/* 座位布局 */
.seat-layout {
    display: grid;
    gap: 4px;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    justify-content: center;
    max-width: 100%;
    overflow-x: auto;
}

.seat-button {
    width: 40px;
    height: 40px;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.seat-button.available {
    background-color: #52c41a;
}

.seat-button.occupied {
    background-color: #ff4d4f;
    cursor: not-allowed;
}

.seat-button.in-use {
    background-color: #fa8c16;
    cursor: not-allowed;
}

.seat-button.temp-leave {
    background-color: #1890ff;
    cursor: not-allowed;
}

.seat-button.maintenance {
    background-color: #722ed1;
    cursor: not-allowed;
}

.venue-element-button {
    width: 40px;
    height: 40px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.7rem;
    color: white;
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
}

.venue-element-button.bookshelf {
    background-color: #1890ff;
}

.venue-element-button.desk {
    background-color: #8B4513;
}

.venue-element-button.window {
    background-color: #87CEEB;
}

.venue-element-button.entrance {
    background-color: #52c41a;
}

.venue-element-button.aisle {
    background-color: #f0f0f0;
    color: #999;
    border: none;
}

/* 预约卡片 */
.current-reservation {
    margin-bottom: 2rem;
}

.current-reservation h3 {
    color: #1890ff;
    margin-bottom: 1rem;
}

.no-reservation {
    text-align: center;
    padding: 2rem;
    color: #666;
    background: #f8f9fa;
    border-radius: 8px;
}

.reservation-card {
    background: linear-gradient(135deg, #e6f7ff, #f0f9ff);
    border: 1px solid #91d5ff;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reservation-info {
    flex: 1;
}

.seat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1890ff;
    margin-bottom: 0.5rem;
}

.venue-name {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.time-info {
    margin-bottom: 0.25rem;
    color: #333;
}

.reservation-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* 历史记录表格 */
.history-section h3 {
    color: #1890ff;
    margin-bottom: 1rem;
}

.history-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.history-table table {
    width: 100%;
    border-collapse: collapse;
}

.history-table th {
    background: #f8f9fa;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e8e8e8;
}

.history-table td {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.history-table tr:hover {
    background: #f8f9fa;
}

.no-data {
    text-align: center;
    color: #666;
    font-style: italic;
}

/* 行为分析 */
.behavior-stats {
    display: grid;
    gap: 2rem;
}

.behavior-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.behavior-card h3 {
    color: #1890ff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.behavior-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.behavior-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.behavior-label {
    color: #666;
}

.behavior-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1890ff;
}

.time-distribution {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.time-slot {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.time-label {
    width: 120px;
    font-size: 0.9rem;
    color: #666;
}

.time-bar {
    flex: 1;
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.time-fill {
    height: 100%;
    background: linear-gradient(90deg, #1890ff, #40a9ff);
    transition: width 0.5s ease;
}

.time-count {
    width: 40px;
    text-align: right;
    font-weight: bold;
    color: #1890ff;
}

/* 消息中心 */
.messages-container {
    padding: 1rem;
}

.message-filters {
    margin-bottom: 1rem;
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #d9d9d9;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background-color: #1890ff;
    color: white;
    border-color: #1890ff;
}

.filter-btn:hover {
    border-color: #1890ff;
}

.messages-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message-item {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.message-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.message-item.unread {
    border-left: 4px solid #1890ff;
    background-color: #f6ffed;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.message-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    flex: 1;
}

.message-icon {
    font-size: 1.2rem;
}

.unread-badge {
    background-color: #ff4d4f;
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 0.5rem;
}

.message-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-view {
    background-color: #1890ff;
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view:hover {
    background-color: #40a9ff;
}

.btn-delete {
    background-color: #ff4d4f;
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-delete:hover {
    background-color: #ff7875;
}

.message-time {
    color: #999;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.message-content {
    color: #666;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.no-messages {
    text-align: center;
    color: #999;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}

/* 反馈表单 */
.feedback-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    display: flex;
    gap: 1rem;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

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

.modal-header h3 {
    color: #1890ff;
    margin: 0;
}

.close {
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 1.5rem;
}

.reservation-details {
    margin-bottom: 1.5rem;
}

.reservation-details p {
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reservation-details select {
    padding: 0.5rem;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
}

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

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

/* 响应式设计 */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        order: 2;
    }
    
    .content-area {
        margin-left: 0;
        margin-bottom: 1rem;
        order: 1;
    }
    
    .header-container {
        padding: 1rem;
    }
    
    .system-title {
        font-size: 1.2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .reservation-card {
        flex-direction: column;
        gap: 1rem;
    }
    
    .reservation-actions {
        justify-content: center;
    }
    
    .seat-layout {
        padding: 1rem;
    }
    
    .seat-button,
    .venue-element-button {
        width: 35px;
        height: 35px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .content-area {
        padding: 1rem;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .reservation-actions {
        flex-direction: column;
    }
}

/* 管理员页面样式 */
.admin-stats, .seat-stats, .system-overview {
    margin-bottom: 2rem;
}

.management-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.management-header h3 {
    margin: 0;
    color: #1890ff;
}

.management-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-input {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    min-width: 200px;
}

.search-input:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.users-table, .seats-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.users-table table, .seats-table table {
    width: 100%;
    border-collapse: collapse;
}

.users-table th, .seats-table th,
.users-table td, .seats-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.users-table th, .seats-table th {
    background: #fafafa;
    font-weight: 600;
    color: #262626;
}

.users-table tr:hover, .seats-table tr:hover {
    background: #f5f5f5;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
    margin-right: 4px;
}

.user-type {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.user-type.admin {
    background: #fff2e8;
    color: #fa8c16;
}

.user-type.user {
    background: #e6f7ff;
    color: #1890ff;
}

.credit-level {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.credit-level.credit-A {
    background: #f6ffed;
    color: #52c41a;
}

.credit-level.credit-B {
    background: #e6f7ff;
    color: #1890ff;
}

.credit-level.credit-C {
    background: #fff7e6;
    color: #fa8c16;
}

.credit-level.credit-D {
    background: #fff2f0;
    color: #ff4d4f;
}

.seat-status {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.seat-status.status-0 {
    background: #f6ffed;
    color: #52c41a;
}

.seat-status.status-1 {
    background: #fff7e6;
    color: #fa8c16;
}

.seat-status.status-2 {
    background: #e6f7ff;
    color: #1890ff;
}

.seat-status.status-3 {
    background: #f9f0ff;
    color: #722ed1;
}

.seat-status.status-4 {
    background: #fff2f0;
    color: #ff4d4f;
}

/* 用户详情模态框 */
.user-detail h4 {
    color: #1890ff;
    margin: 1rem 0 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

.user-detail h4:first-child {
    margin-top: 0;
}

.user-detail p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.modal-actions {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* 图表样式 */
.charts-section {
    margin-top: 2rem;
}

.chart-container {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chart-container h3 {
    margin: 0 0 1.5rem 0;
    color: #1890ff;
}

.venue-usage {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.venue-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.venue-name {
    min-width: 100px;
    font-weight: 500;
    color: #262626;
}

.usage-bar {
    flex: 1;
    height: 20px;
    background: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.usage-fill {
    height: 100%;
    background: linear-gradient(90deg, #52c41a, #73d13d);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.usage-percent {
    min-width: 40px;
    text-align: right;
    font-weight: 500;
    color: #262626;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .management-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .management-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .search-input {
        min-width: auto;
        width: 100%;
    }
    
    .users-table, .seats-table {
        overflow-x: auto;
    }
    
    .venue-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .venue-name {
        min-width: auto;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}

/* ======================== 新增功能样式 ======================== */

/* 座位属性筛选 */
.filter-section {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-section .form-group {
    flex: 1;
}

.filter-section label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.filter-section select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.filtered-seats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.seat-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.seat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.seat-card.available {
    border-left: 4px solid #52c41a;
}

.seat-card.occupied {
    border-left: 4px solid #ff4d4f;
    cursor: not-allowed;
}

.seat-card.in-use {
    border-left: 4px solid #1890ff;
    cursor: not-allowed;
}

.seat-card.temp-leave {
    border-left: 4px solid #fa8c16;
    cursor: not-allowed;
}

.seat-card.maintenance {
    border-left: 4px solid #666;
    cursor: not-allowed;
}

.seat-card .seat-number {
    font-size: 18px;
    font-weight: bold;
    color: #1890ff;
    margin-bottom: 5px;
}

.seat-card .seat-venue {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.seat-card .seat-attributes {
    margin-bottom: 10px;
}

.attr-tag {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    margin-right: 5px;
}

.attr-tag.power {
    background: #e6f7ff;
    color: #1890ff;
}

.attr-tag.window {
    background: #f6ffed;
    color: #52c41a;
}

.seat-card .seat-status {
    font-size: 12px;
    font-weight: bold;
}

/* 黑名单管理 */
.blacklist-table table,
.news-table table,
.reports-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.blacklist-table th,
.news-table th,
.reports-table th {
    background: #f5f5f5;
    padding: 12px;
    text-align: left;
    font-weight: bold;
    border-bottom: 1px solid #e8e8e8;
}

.blacklist-table td,
.news-table td,
.reports-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.blacklist-table tr:hover,
.news-table tr:hover,
.reports-table tr:hover {
    background: #f9f9f9;
}

.blacklist-table tr.processed {
    background: #f6ffed;
}

.blacklist-table tr.unprocessed {
    background: #fff7e6;
}

/* 徽章样式 */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.badge-success {
    background: #f6ffed;
    color: #52c41a;
}

.badge-warning {
    background: #fff7e6;
    color: #fa8c16;
}

.badge-secondary {
    background: #f5f5f5;
    color: #666;
}

/* 信用等级样式增强 */
.credit-level {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 12px;
}

.credit-level.credit-A {
    background: #f6ffed;
    color: #52c41a;
}

.credit-level.credit-B {
    background: #e6f7ff;
    color: #1890ff;
}

.credit-level.credit-C {
    background: #fff7e6;
    color: #fa8c16;
}

.credit-level.credit-D {
    background: #fff2f0;
    color: #ff4d4f;
}

/* 座位状态样式增强 */
.seat-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 12px;
}

.seat-status.status-0 {
    background: #f6ffed;
    color: #52c41a;
}

.seat-status.status-1 {
    background: #fff7e6;
    color: #fa8c16;
}

.seat-status.status-2 {
    background: #e6f7ff;
    color: #1890ff;
}

.seat-status.status-3 {
    background: #fff2f0;
    color: #ff4d4f;
}

.seat-status.status-4 {
    background: #f5f5f5;
    color: #666;
}

/* 用户类型样式 */
.user-type {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 12px;
}

.user-type.admin {
    background: #fff2f0;
    color: #ff4d4f;
}

.user-type.user {
    background: #e6f7ff;
    color: #1890ff;
}

/* 表单增强 */
.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

/* 调试按钮 */
.debug-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ff4d4f;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 1000;
}

.debug-button:hover {
    background: #ff7875;
}

/* 响应式设计增强 */
@media (max-width: 768px) {
    .filter-section {
        flex-direction: column;
        gap: 15px;
    }
    
    .filtered-seats {
        grid-template-columns: 1fr;
    }
    
    .seat-card {
        margin-bottom: 10px;
    }
    
    .blacklist-table,
    .news-table,
    .reports-table {
        overflow-x: auto;
        display: block;
        white-space: nowrap;
    }
    
    .blacklist-table table,
    .news-table table,
    .reports-table table {
        min-width: 600px;
    }
}

/* 实时通知样式 */
.real-time-notification {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    overflow: hidden;
    animation: slideInRight 0.3s ease-out;
}

.real-time-notification.info {
    border-left: 4px solid #1890ff;
}

.real-time-notification.success {
    border-left: 4px solid #52c41a;
}

.real-time-notification.warning {
    border-left: 4px solid #faad14;
}

.real-time-notification.error {
    border-left: 4px solid #ff4d4f;
}

.real-time-notification.message {
    border-left: 4px solid #722ed1;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px 8px;
    background: #f8f9fa;
}

.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    color: #ff4d4f;
}

.notification-body {
    padding: 8px 16px 12px;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

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

/* 座位筛选器样式 */
.seat-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.filter-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #1890ff;
}

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

.search-group input {
    padding: 0.5rem;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    width: 120px;
}

/* 实时统计面板 */
.real-time-stats {
    display: flex;
    justify-content: space-around;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.stats-item {
    text-align: center;
}

.stats-label {
    display: block;
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.stats-value {
    display: block;
    font-size: 18px;
    font-weight: bold;
}

/* 座位布局容器 */
.seat-layout-container {
    position: relative;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
}

/* 3D视图样式 */
.seat-layout-3d {
    min-height: 600px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    position: relative;
}

.scene-container {
    width: 100%;
    height: 600px;
    position: relative;
    overflow: hidden;
}

.scene {
    width: 100%;
    height: 100%;
    perspective: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.venue-3d {
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.seat-3d {
    position: absolute;
    width: 30px;
    height: 30px;
    background: #52c41a;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.seat-3d:hover {
    transform: translateZ(10px) scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.seat-3d.occupied {
    background: #ff4d4f;
}

.seat-3d.in-use {
    background: #fa8c16;
}

.seat-3d.temp-leave {
    background: #1890ff;
}

.seat-3d.maintenance {
    background: #722ed1;
}

.controls-3d {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.controls-3d button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.controls-3d button:hover {
    background: white;
    transform: scale(1.1);
}

/* 热力图样式 */
.heatmap-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.heatmap-legend {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.legend-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.legend-scale {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.scale-gradient {
    width: 80px;
    height: 12px;
    background: linear-gradient(to right, 
        rgba(0, 255, 0, 0.3) 0%, 
        rgba(255, 255, 0, 0.5) 50%, 
        rgba(255, 0, 0, 0.7) 100%);
    border-radius: 6px;
}

/* 智能推荐面板 */
.recommendation-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow: hidden;
    animation: fadeInScale 0.3s ease-out;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #1890ff, #40a9ff);
    color: white;
}

.panel-header h3 {
    margin: 0;
    font-size: 18px;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

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

.panel-content {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.recommendation-list {
    margin-bottom: 20px;
}

.recommendation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.recommendation-item:hover {
    border-color: #1890ff;
    background: #f0f8ff;
}

.recommendation-info {
    flex: 1;
}

.seat-number {
    font-size: 16px;
    font-weight: bold;
    color: #1890ff;
}

.seat-features {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.recommendation-score {
    background: #52c41a;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.recommendation-criteria {
    border-top: 1px solid #e8e8e8;
    padding-top: 15px;
}

.recommendation-criteria h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #333;
}

.recommendation-criteria ul {
    margin: 0;
    padding-left: 20px;
    font-size: 13px;
    color: #666;
}

.recommendation-criteria li {
    margin-bottom: 5px;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* 轮播图增强样式 */
.carousel {
    position: relative;
    width: 100%;
    height: 300px;
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

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

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background: white;
    transform: scale(1.2);
}

/* 座位按钮增强效果 */
.seat-button {
    position: relative;
    overflow: hidden;
}

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

.seat-button:hover::before {
    left: 100%;
}

.seat-button.recommended {
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 0 rgba(24, 144, 255, 0.7);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(24, 144, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(24, 144, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(24, 144, 255, 0);
    }
}

/* 响应式设计增强 */
@media (max-width: 768px) {
    .seat-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        justify-content: center;
    }
    
    .search-group {
        justify-content: center;
    }
    
    .real-time-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .recommendation-panel {
        width: 95%;
        max-height: 90vh;
    }
    
    .controls-3d {
        flex-direction: row;
        bottom: 10px;
        right: 10px;
    }
    
    .controls-3d button {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1890ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 工具提示 */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.tooltip:hover::after {
    opacity: 1;
}

/* 成功/错误状态指示 */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-indicator.online {
    background: #52c41a;
    animation: blink 2s infinite;
}

.status-indicator.offline {
    background: #d9d9d9;
}

.status-indicator.busy {
    background: #faad14;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

/* ======================== 用户中心样式 ======================== */

.user-info-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.user-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease;
    overflow: hidden;
}

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

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

.user-details {
    flex: 1;
}

.user-details h3 {
    margin: 0 0 16px 0;
    color: #1890ff;
    font-size: 24px;
}

.user-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.info-item label {
    font-weight: bold;
    color: #666;
    min-width: 80px;
}

.info-item span {
    color: #333;
    flex: 1;
}

.info-item .btn {
    margin-left: auto;
}

.user-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.user-stats-section,
.admin-stats-section,
.recent-activity-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-stats-section h3,
.admin-stats-section h3,
.recent-activity-section h3 {
    margin: 0 0 20px 0;
    color: #1890ff;
    font-size: 20px;
    border-bottom: 2px solid #e8f4fd;
    padding-bottom: 12px;
}

.user-activity-list {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.activity-time {
    color: #666;
    font-size: 14px;
}

.activity-description {
    color: #333;
    flex: 1;
    margin-left: 12px;
}

.activity-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.activity-status.success {
    background: #f6ffed;
    color: #52c41a;
}

.activity-status.warning {
    background: #fff7e6;
    color: #fa8c16;
}

.activity-status.error {
    background: #fff2f0;
    color: #ff4d4f;
}

/* 头像上传样式 */
.avatar-upload-area {
    text-align: center;
    padding: 20px;
}

.avatar-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px dashed #d9d9d9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    cursor: pointer;
    transition: border-color 0.3s ease;
    overflow: hidden;
}

.avatar-preview:hover {
    border-color: #1890ff;
}

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

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

/* 信用等级样式 */
.credit-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.credit-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

.credit-badge.A {
    background: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.credit-badge.B {
    background: #e6f7ff;
    color: #1890ff;
    border: 1px solid #91d5ff;
}

.credit-badge.C {
    background: #fff7e6;
    color: #fa8c16;
    border: 1px solid #ffd591;
}

.credit-badge.D {
    background: #fff2f0;
    color: #ff4d4f;
    border: 1px solid #ffccc7;
}

.credit-score {
    font-size: 12px;
    color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .user-info-card {
        flex-direction: column;
        text-align: center;
    }
    
    .user-info-grid {
        grid-template-columns: 1fr;
    }
    
    .user-actions {
        justify-content: center;
    }
    
    .avatar-placeholder {
        width: 100px;
        height: 100px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .user-info-card {
        padding: 16px;
    }
    
    .user-stats-section,
    .admin-stats-section,
    .recent-activity-section {
        padding: 16px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .user-actions {
        flex-direction: column;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .info-item .btn {
        margin-left: 0;
        align-self: stretch;
    }
}

/* 选项卡样式 */
.tab-navigation {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 2rem;
    gap: 0;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 2rem;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:hover {
    color: #1890ff;
    background-color: #f8f9fa;
}

.tab-btn.active {
    color: #1890ff;
    border-bottom-color: #1890ff;
    background-color: #fff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 信用系统样式 */
.credit-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.credit-filters select,
.credit-filters input {
    padding: 0.5rem;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
}

.credit-filters select {
    min-width: 150px;
}

.credit-filters input {
    flex: 1;
    max-width: 300px;
}

.stat-desc {
    font-size: 12px;
    color: #666;
    margin-top: 0.5rem;
}

/* 信用等级颜色 */
.credit-level-A {
    color: #52c41a;
    font-weight: bold;
}

.credit-level-B {
    color: #1890ff;
    font-weight: bold;
}

.credit-level-C {
    color: #fa8c16;
    font-weight: bold;
}

.credit-level-D {
    color: #ff4d4f;
    font-weight: bold;
}

/* 信用分数样式 */
.credit-score {
    font-weight: bold;
}

.credit-score.excellent {
    color: #52c41a;
}

.credit-score.good {
    color: #1890ff;
}

.credit-score.fair {
    color: #fa8c16;
}

.credit-score.poor {
    color: #ff4d4f;
}

/* 用户状态样式 */
.user-status {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.user-status.normal {
    background-color: #f6ffed;
    color: #52c41a;
}

.user-status.banned {
    background-color: #fff2f0;
    color: #ff4d4f;
}

.user-status.admin {
    background-color: #e6f7ff;
    color: #1890ff;
}

/* 操作按钮组 */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.action-buttons .btn {
    padding: 0.25rem 0.5rem;
    font-size: 12px;
    min-width: auto;
}

/* 表格响应式改进 */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 1rem;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table th,
.table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.table th {
    background-color: #fafafa;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.table td {
    font-size: 13px;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* 统计卡片改进 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-left: 4px solid #1890ff;
}

.stat-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #1890ff;
    margin-bottom: 0.5rem;
}

/* 管理操作头部 */
.management-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.management-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.management-actions {
    display: flex;
    gap: 0.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tab-navigation {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 120px;
        padding: 0.75rem 1rem;
        font-size: 13px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .management-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .management-actions {
        justify-content: center;
    }
    
    .credit-filters {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .credit-filters input,
    .credit-filters select {
        width: 100%;
        max-width: none;
    }
}

/* 封禁详情样式 */
.ban-detail {
    padding: 1rem;
}

.ban-detail h4 {
    color: #1890ff;
    margin-bottom: 1.5rem;
    font-size: 18px;
    font-weight: bold;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-item label {
    font-weight: bold;
    color: #666;
    font-size: 14px;
}

.detail-item span {
    color: #333;
    font-size: 14px;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.detail-item .status-text {
    font-weight: bold;
    color: #ff4d4f;
}

.detail-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.detail-actions .btn {
    min-width: 100px;
}

/* 徽章样式 */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    text-align: center;
}

.badge-danger {
    background-color: #ff4d4f;
    color: white;
}

.badge-warning {
    background-color: #fa8c16;
    color: white;
}

.badge-secondary {
    background-color: #666;
    color: white;
}

.badge-success {
    background-color: #52c41a;
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .detail-actions {
        flex-direction: column;
    }
    
    .detail-actions .btn {
        width: 100%;
    }
}

/* 管理员消息中心样式 */
.message-send-section {
    background: white;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.message-send-section h3 {
    color: #1890ff;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.recipient-input-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.recipient-input-group input {
    flex: 1;
}

.message-management-section {
    background: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.message-filters {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    align-items: center;
}

.message-filters select,
.message-filters input {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
}

.message-filters input {
    flex: 1;
    max-width: 300px;
}

/* 消息表格样式 */
#adminMessagesTableBody tr:hover {
    background-color: #f5f5f5;
}

.message-type-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    min-width: 60px;
}

.message-type-system {
    background-color: #e6f7ff;
    color: #1890ff;
}

.message-type-announcement {
    background-color: #fff7e6;
    color: #fa8c16;
}

.message-type-maintenance {
    background-color: #fff1f0;
    color: #ff4d4f;
}

.message-type-warning {
    background-color: #fff0f6;
    color: #eb2f96;
}

.message-type-info {
    background-color: #f6ffed;
    color: #52c41a;
}

.message-status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    min-width: 50px;
}

.message-status-sent {
    background-color: #f6ffed;
    color: #52c41a;
}

.message-status-pending {
    background-color: #fff7e6;
    color: #fa8c16;
}

.message-status-failed {
    background-color: #fff1f0;
    color: #ff4d4f;
}

.message-content-preview {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-actions {
    display: flex;
    gap: 8px;
}

.message-actions .btn {
    padding: 4px 8px;
    font-size: 12px;
    min-width: auto;
}

/* 消息预览模态框 */
.message-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.message-preview-content {
    background: white;
    border-radius: 8px;
    padding: 24px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.message-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.message-preview-header h3 {
    margin: 0;
    color: #1890ff;
}

.message-preview-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-preview-close:hover {
    color: #666;
}

.message-preview-body {
    line-height: 1.6;
}

.message-preview-meta {
    background-color: #f8f9fa;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #666;
}

.message-preview-meta div {
    margin-bottom: 4px;
}

.message-preview-meta div:last-child {
    margin-bottom: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .recipient-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .message-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .message-filters input {
        max-width: none;
    }
    
    .message-preview-content {
        margin: 20px;
        width: calc(100% - 40px);
    }
}

/* 座位按钮选中状态 */
.seat-button.selected {
    background-color: #722ed1 !important;
    color: white !important;
    border: 2px solid #531dab !important;
    box-shadow: 0 0 10px rgba(114, 46, 209, 0.5) !important;
    transform: scale(1.05);
    z-index: 10;
    position: relative;
}

.seat-button.selected::after {
    content: '✓';
    position: absolute;
    top: -5px;
    right: -5px;
    background: #52c41a;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* 座位管理选项卡样式 */
.seat-management-tabs {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.tab-nav {
    display: flex;
    background: #f5f5f5;
    border-bottom: 1px solid #d9d9d9;
}

.tab-btn {
    flex: 1;
    padding: 16px 24px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    background: #e6f7ff;
    color: #1890ff;
}

.tab-btn.active {
    background: white;
    color: #1890ff;
    border-bottom-color: #1890ff;
}

.tab-content {
    display: none;
    padding: 24px;
}

.tab-content.active {
    display: block;
}

/* 监控控制面板样式 */
.monitor-controls {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-group label {
    font-weight: 500;
    color: #495057;
    white-space: nowrap;
}

.control-group select {
    padding: 6px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    min-width: 120px;
}

.control-group select:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.control-group button {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #1890ff;
    color: white;
}

.btn-primary:hover {
    background: #40a9ff;
}

.btn-warning {
    background: #fa8c16;
    color: white;
}

.btn-warning:hover {
    background: #ffa940;
}

/* 座位监控表格样式 */
.seat-monitor-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.seat-monitor-table table {
    width: 100%;
    border-collapse: collapse;
}

.seat-monitor-table th {
    background: #f5f5f5;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e9ecef;
    font-size: 14px;
}

.seat-monitor-table td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.seat-monitor-table tr:hover {
    background: #f8f9fa;
}

/* 座位属性管理样式 */
.attributes-controls {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.attribute-form,
.batch-operations {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.attribute-form h3,
.batch-operations h3 {
    margin: 0 0 16px 0;
    color: #1890ff;
    font-size: 18px;
    font-weight: 600;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    align-items: center;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group label {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group select {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

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

/* 属性表格样式 */
.attributes-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.attributes-table table {
    width: 100%;
    border-collapse: collapse;
}

.attributes-table th {
    background: #f5f5f5;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e9ecef;
}

.attributes-table td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.attributes-table tr:hover {
    background: #f8f9fa;
}

/* 报告控制面板样式 */
.reports-controls {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    flex-wrap: wrap;
}

/* 报告表格样式 */
.reports-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.reports-table table {
    width: 100%;
    border-collapse: collapse;
}

.reports-table th {
    background: #f5f5f5;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e9ecef;
}

.reports-table td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.reports-table tr:hover {
    background: #f8f9fa;
}

/* 报告详情面板样式 */
.report-detail {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.report-detail h3 {
    margin: 0 0 16px 0;
    color: #1890ff;
    font-size: 18px;
    font-weight: 600;
}

.report-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

/* 状态标签样式 */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    min-width: 60px;
}

.status-available {
    background: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.status-reserved {
    background: #e6f7ff;
    color: #1890ff;
    border: 1px solid #91d5ff;
}

.status-occupied {
    background: #fff7e6;
    color: #fa8c16;
    border: 1px solid #ffd591;
}

.status-away {
    background: #f9f0ff;
    color: #722ed1;
    border: 1px solid #d3adf7;
}

.status-maintenance {
    background: #fff2e8;
    color: #fa541c;
    border: 1px solid #ffbb96;
}

.status-disabled {
    background: #fff1f0;
    color: #ff4d4f;
    border: 1px solid #ffa39e;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .attributes-controls {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .monitor-controls,
    .reports-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        justify-content: space-between;
    }
    
    .tab-nav {
        flex-direction: column;
    }
    
    .form-actions,
    .report-actions {
        flex-direction: column;
    }
}

/* 湘潭大学图书馆链接样式 */
.library-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.link-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e8e8e8;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-color: #1890ff;
}

.link-icon {
    font-size: 2rem;
    min-width: 3rem;
    text-align: center;
    background: linear-gradient(135deg, #e6f7ff, #bae7ff);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.25rem;
}

.link-content {
    flex: 1;
}

.link-content h4 {
    color: #1890ff;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.link-content p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.link-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #1890ff, #40a9ff);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.link-btn:hover {
    background: linear-gradient(135deg, #40a9ff, #69c0ff);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
}

@media (max-width: 768px) {
    .library-links {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .link-card {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .link-icon {
        font-size: 1.5rem;
        width: 2.5rem;
        height: 2.5rem;
        min-width: 2.5rem;
    }
    
    .link-content h4 {
        font-size: 1rem;
    }
    
    .link-content p {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }
}

/* 记录审计页面样式 */
.audit-table {
    margin: 20px 0;
    overflow-x: auto;
}

.audit-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.audit-table th,
.audit-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e8e8e8;
}

.audit-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #333;
}

.audit-table tr:hover {
    background: #f9f9f9;
}

.audit-table tr.selected {
    background: #e6f7ff;
}

.audit-stats {
    margin-top: 20px;
}

.audit-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.audit-status.completed {
    background: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.audit-status.cancelled {
    background: #e6f7ff;
    color: #1890ff;
    border: 1px solid #91d5ff;
}

.audit-status.timeout {
    background: #fff2e8;
    color: #fa8c16;
    border: 1px solid #ffd591;
}

.audit-duration {
    font-weight: 500;
    color: #666;
}

.audit-actions {
    display: flex;
    gap: 8px;
}

.audit-actions .btn {
    padding: 4px 8px;
    font-size: 12px;
}

@media (max-width: 768px) {
    .audit-table {
        font-size: 14px;
    }
    
    .audit-table th,
    .audit-table td {
        padding: 8px 4px;
    }
    
    .audit-actions {
        flex-direction: column;
        gap: 4px;
    }
    
    .audit-actions .btn {
        font-size: 11px;
        padding: 2px 6px;
    }
}

/* 审计页面样式增强 */
.audit-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.audit-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.audit-table th,
.audit-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.audit-table th {
    background-color: #fafafa;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.audit-table td {
    font-size: 13px;
    color: #666;
}

.audit-table tr:hover {
    background-color: #f8f9fa;
}

.audit-table tr.selected {
    background-color: #e6f7ff;
}

/* 审计状态样式 */
.audit-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    min-width: 60px;
}

.audit-status-completed {
    background-color: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.audit-status-cancelled {
    background-color: #e6f7ff;
    color: #1890ff;
    border: 1px solid #91d5ff;
}

.audit-status-timeout {
    background-color: #fff2e8;
    color: #fa8c16;
    border: 1px solid #ffd591;
}

.audit-status-unknown {
    background-color: #f5f5f5;
    color: #999;
    border: 1px solid #d9d9d9;
}

/* 审计统计卡片 */
.audit-stats {
    margin-bottom: 2rem;
}

.audit-stats .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.audit-stats .stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-left: 4px solid #1890ff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.audit-stats .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.audit-stats .stat-card:nth-child(1) {
    border-left-color: #1890ff;
}

.audit-stats .stat-card:nth-child(2) {
    border-left-color: #52c41a;
}

.audit-stats .stat-card:nth-child(3) {
    border-left-color: #fa8c16;
}

.audit-stats .stat-card:nth-child(4) {
    border-left-color: #ff4d4f;
}

.audit-stats .stat-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.audit-stats .stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin: 0;
}

/* 筛选区域样式 */
.filter-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: end;
}

.filter-section .form-group {
    display: flex;
    flex-direction: column;
    min-width: 150px;
    flex: 1;
}

.filter-section label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.filter-section select,
.filter-section input {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-section select:focus,
.filter-section input:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

/* 管理操作头部 */
.management-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.management-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.management-actions {
    display: flex;
    gap: 0.5rem;
}

.management-actions .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.management-actions .btn i {
    font-size: 14px;
}

.management-actions .btn-info {
    background-color: #1890ff;
    color: white;
}

.management-actions .btn-info:hover {
    background-color: #40a9ff;
}

.management-actions .btn-warning {
    background-color: #fa8c16;
    color: white;
}

.management-actions .btn-warning:hover {
    background-color: #ffa940;
}

.management-actions .btn-danger {
    background-color: #ff4d4f;
    color: white;
}

.management-actions .btn-danger:hover {
    background-color: #ff7875;
}

/* 审计详情模态框 */
.audit-detail-modal {
    max-width: 600px;
    width: 90%;
}

.audit-detail-modal .modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.audit-detail-modal .modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.audit-detail-modal .modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.audit-detail-modal .modal-close:hover {
    background-color: #f5f5f5;
    color: #333;
}

.audit-detail-modal .modal-body {
    padding: 1.5rem;
}

.audit-detail-modal .detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.audit-detail-modal .detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.audit-detail-modal .detail-item label {
    font-weight: 600;
    color: #666;
    font-size: 14px;
}

.audit-detail-modal .detail-item span {
    color: #333;
    font-size: 14px;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.audit-detail-modal .modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
}

.audit-detail-modal .btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.audit-detail-modal .btn-secondary:hover {
    background-color: #5a6268;
}

/* 模态框覆盖层 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-overlay .modal-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
}

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

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .filter-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-section .form-group {
        min-width: auto;
    }
    
    .management-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .management-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .audit-stats .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .audit-table {
        overflow-x: auto;
    }
    
    .audit-table th,
    .audit-table td {
        padding: 8px 12px;
        font-size: 12px;
        white-space: nowrap;
    }
    
    .audit-detail-modal {
        width: 95%;
        margin: 1rem;
    }
    
    .audit-detail-modal .detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .management-actions .btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .audit-stats .stat-card {
        padding: 1rem;
    }
    
    .audit-stats .stat-value {
        font-size: 1.5rem;
    }
    
    .filter-section {
        padding: 1rem;
    }
} 

/* 新功能模块样式 */

/* 设置面板样式 */
.settings-container {
    display: flex;
    height: 600px;
}

.settings-sidebar {
    width: 200px;
    background: #f8f9fa;
    border-right: 1px solid #dee2e6;
    padding: 1rem 0;
}

.settings-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.settings-nav-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.settings-nav-item:hover {
    background-color: #e9ecef;
}

.settings-nav-item.active {
    background-color: #007bff;
    color: white;
}

.settings-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.settings-panel {
    display: none;
}

.settings-panel.active {
    display: block;
}

.settings-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.settings-section:last-child {
    border-bottom: none;
}

.settings-section h4 {
    margin-bottom: 1rem;
    color: #495057;
    font-size: 1.1rem;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f8f9fa;
}

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

.setting-label {
    flex: 1;
    margin-right: 1rem;
}

.setting-label h5 {
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
    color: #212529;
}

.setting-label p {
    margin: 0;
    font-size: 0.85rem;
    color: #6c757d;
}

.setting-control {
    min-width: 120px;
}

.theme-preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.theme-preview {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.theme-preview:hover {
    border-color: #007bff;
    transform: translateY(-2px);
}

.theme-preview.active {
    border-color: #007bff;
    background-color: #f8f9ff;
}

.theme-preview-colors {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.theme-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #dee2e6;
}

/* 搜索面板样式 */
.search-container {
    padding: 1rem;
}

.search-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.search-input-group {
    flex: 1;
    position: relative;
}

.search-input-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ced4da;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-suggestion {
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
}

.search-suggestion:hover {
    background-color: #f8f9fa;
}

.search-suggestion:last-child {
    border-bottom: none;
}

.advanced-search-panel {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.advanced-search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.search-results-container {
    min-height: 400px;
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.search-results-count {
    color: #6c757d;
    font-size: 0.9rem;
}

.search-view-controls {
    display: flex;
    gap: 0.5rem;
}

.view-toggle-btn {
    padding: 0.25rem 0.5rem;
    border: 1px solid #ced4da;
    background: white;
    cursor: pointer;
    border-radius: 4px;
}

.view-toggle-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-result-item {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 1rem;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.search-result-item:hover {
    border-color: #007bff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.search-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.search-result-seat {
    font-weight: 600;
    font-size: 1.1rem;
}

.search-result-venue {
    color: #6c757d;
    font-size: 0.9rem;
}

.search-result-status {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.search-result-attributes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.search-result-attribute {
    padding: 0.125rem 0.375rem;
    background: #e9ecef;
    border-radius: 3px;
    font-size: 0.75rem;
    color: #495057;
}

.search-history-panel {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.search-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.search-history-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.search-history-item {
    padding: 0.25rem 0.5rem;
    background: white;
    border: 1px solid #ced4da;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.search-history-item:hover {
    border-color: #007bff;
    color: #007bff;
}

.search-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

.pagination-btn {
    padding: 0.5rem 0.75rem;
    border: 1px solid #ced4da;
    background: white;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #007bff;
    color: #007bff;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination-info {
    color: #6c757d;
    font-size: 0.9rem;
}

/* 反馈表单样式 */
.feedback-form-container {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.feedback-form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.feedback-form-header h3 {
    color: #495057;
    margin-bottom: 0.5rem;
}

.feedback-form-header p {
    color: #6c757d;
    margin: 0;
}

.feedback-type-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.feedback-type-option {
    padding: 1rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feedback-type-option:hover {
    border-color: #007bff;
}

.feedback-type-option.selected {
    border-color: #007bff;
    background-color: #f8f9ff;
}

.feedback-type-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.feedback-type-label {
    font-weight: 500;
    color: #495057;
}

.feedback-rating {
    text-align: center;
    margin-bottom: 2rem;
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.rating-star {
    font-size: 2rem;
    color: #dee2e6;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rating-star:hover,
.rating-star.active {
    color: #ffc107;
}

/* 统计图表样式 */
.statistics-container {
    padding: 2rem;
}

.statistics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.statistics-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.chart-container {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.chart-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    margin: 0;
}

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

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

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

/* 实时通知样式增强 */
.realtime-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    animation: slideInRight 0.3s ease;
    border-left: 4px solid #007bff;
}

.realtime-notification.success {
    border-left-color: #28a745;
}

.realtime-notification.warning {
    border-left-color: #ffc107;
}

.realtime-notification.error {
    border-left-color: #dc3545;
}

.realtime-notification.info {
    border-left-color: #17a2b8;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1rem 0.5rem 1rem;
}

.notification-title {
    font-weight: 600;
    color: #495057;
    margin: 0;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    color: #495057;
}

.notification-body {
    padding: 0 1rem 1rem 1rem;
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
}

.notification-timestamp {
    font-size: 0.8rem;
    color: #adb5bd;
    margin-top: 0.5rem;
}

/* 3D视图增强样式 */
.scene-3d-container {
    position: relative;
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.scene-3d-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 100;
}

.scene-3d-controls button {
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scene-3d-controls button:hover {
    background: white;
    transform: scale(1.05);
}

.heatmap-container {
    position: relative;
    width: 100%;
    height: 400px;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.heatmap-canvas {
    width: 100%;
    height: 100%;
}

.heatmap-legend {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.heatmap-legend-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #495057;
}

.heatmap-legend-scale {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.heatmap-gradient {
    width: 100px;
    height: 20px;
    background: linear-gradient(to right, #4285f4, #ea4335);
    border-radius: 2px;
}

.heatmap-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* 响应式设计增强 */
@media (max-width: 768px) {
    .settings-container {
        flex-direction: column;
        height: auto;
    }
    
    .settings-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
    }
    
    .settings-nav {
        display: flex;
        overflow-x: auto;
    }
    
    .settings-nav-item {
        white-space: nowrap;
        border-bottom: none;
        border-right: 1px solid #e9ecef;
    }
    
    .search-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .advanced-search-grid {
        grid-template-columns: 1fr;
    }
    
    .search-results-grid {
        grid-template-columns: 1fr;
    }
    
    .feedback-type-selector {
        grid-template-columns: 1fr;
    }
    
    .statistics-controls {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .chart-legend {
        flex-direction: column;
        align-items: center;
    }
    
    .realtime-notification {
        left: 10px;
        right: 10px;
        max-width: none;
    }
    
    .scene-3d-container {
        height: 300px;
    }
    
    .scene-3d-controls {
        top: 0.5rem;
        right: 0.5rem;
        gap: 0.25rem;
    }
    
    .scene-3d-controls button {
        padding: 0.375rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .settings-content {
        padding: 1rem;
    }
    
    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .setting-control {
        min-width: auto;
        width: 100%;
    }
    
    .theme-preview-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .search-container {
        padding: 0.5rem;
    }
    
    .feedback-form-container {
        padding: 1rem;
    }
    
    .statistics-container {
        padding: 1rem;
    }
    
    .chart-container {
        padding: 1rem;
    }
    
    .chart-canvas {
        height: 250px;
    }
} 