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

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #0f172a, #1e293b, #334155);
    color: #e2e8f0;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

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

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3b82f6, #60a5fa);
    border-radius: 4px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #2563eb, #3b82f6);
}

/* 页面容器 */
.page-container {
    display: flex;
    min-height: 100vh;
    gap: 15px;
    padding: 15px;
}

/* 左侧导航栏 */
.sidebar {
    width: 200px;
    background: rgba(15, 23, 42, 0.9);
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 20px;
    position: fixed;
    height: calc(100vh - 30px);
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.sidebar:hover {
    box-shadow: 0 8px 40px rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

.sidebar-header {
    padding: 0 20px 30px;
    text-align: center;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    margin-bottom: 30px;
}

.sidebar-header h2 {
    font-size: 24px;
    margin: 0;
    color: #3b82f6;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    }
    to {
        text-shadow: 0 0 20px rgba(59, 130, 246, 0.8), 0 0 30px rgba(59, 130, 246, 0.5);
    }
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    color: #e2e8f0;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
    transition: left 0.5s ease;
}

.menu-item:hover::before {
    left: 100%;
}

.menu-item:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    transform: translateX(8px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
}

.menu-item.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(96, 165, 250, 0.1));
    color: #3b82f6;
    border-left: 4px solid #3b82f6;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
}

.menu-icon {
    margin-right: 12px;
    font-size: 20px;
    transition: transform 0.3s ease;
}

.menu-item:hover .menu-icon {
    transform: scale(1.1);
}

.menu-text {
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
}

/* 右侧主要内容区 */
.main-content {
    flex: 1;
    margin-left: 215px;
    min-height: calc(100vh - 30px);
    background: rgba(15, 23, 42, 0.7);
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1), transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1), transparent 50%);
    pointer-events: none;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(59, 130, 246, 0.2);
    position: relative;
}

.header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 2px;
    animation: headerLine 2s ease-in-out infinite alternate;
}

@keyframes headerLine {
    from {
        width: 80px;
    }
    to {
        width: 160px;
    }
}

.header h2 {
    color: #3b82f6;
    font-size: 28px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.time-display {
    font-size: 14px;
    color: #e2e8f0;
    background: rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(10px);
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* 搜索和筛选 */
.search-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-box {
    display: flex;
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-box input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px 0 0 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-box input::placeholder {
    color: rgba(148, 163, 184, 0.6);
}

.search-box input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.search-btn {
    padding: 10px 18px;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    border: none;
    border-radius: 0 12px 12px 0;
    color: white;
    cursor: pointer;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.search-btn:hover {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.filter-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-options select {
    padding: 14px 20px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filter-options select:hover {
    border-color: rgba(59, 130, 246, 0.8);
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.filter-options select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.filter-options select option {
    background: rgba(15, 23, 42, 0.95);
    color: #e2e8f0;
    padding: 10px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.filter-options select option:hover {
    background: rgba(59, 130, 246, 0.2);
}

/* 表格容器 */
.table-container {
    overflow-x: auto;
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.02);
}

.common-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    position: relative;
}



.common-table th,
.common-table td {
    padding: 6px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    line-height: 1.4;
    vertical-align: middle;
}

.common-table th {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(96, 165, 250, 0.1));
    color: #3b82f6;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 2;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
    white-space: nowrap;
    text-align: center;
}

.common-table th:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(96, 165, 250, 0.2));
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.common-table tr {
    transition: all 0.3s ease;
    position: relative;
    height: 48px;
}



.common-table tr:hover {
    background: rgba(59, 130, 246, 0.05);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
}

.common-table tr:hover td {
    color: #e2e8f0;
    transform: translateY(-1px);
}

/* 操作按钮 */
.action-btn {
    padding: 6px 14px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 8px;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    min-width: 80px;
    height: 32px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.action-btn::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;
}

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

.action-btn:hover {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.action-btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.btn-secondary {
    background: rgba(224, 224, 224, 0.1);
    color: #e2e8f0;
    border: 1px solid rgba(224, 224, 224, 0.2);
}

.btn-secondary:hover {
    background: rgba(224, 224, 224, 0.2);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 16px rgba(224, 224, 224, 0.2);
}

.btn-secondary:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 2px 8px rgba(224, 224, 224, 0.1);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 25px;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    background: rgba(59, 130, 246, 0.05);
}

.modal-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-btn.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

/* 状态标签 */
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    min-width: 70px;
    height: 32px;
    line-height: 1;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.status-badge::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;
}

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

.status-badge:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.status-badge:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.page-btn {
    padding: 8px 18px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(96, 165, 250, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    color: #3b82f6;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

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

.page-btn:hover:not(:disabled)::before {
    left: 100%;
}

.page-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.page-btn:active:not(:disabled) {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.page-btn:disabled {
    background: rgba(59, 130, 246, 0.1);
    color: rgba(59, 130, 246, 0.5);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.page-info {
    font-size: 14px;
    color: #94a3b8;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.page-info:hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.modal.show {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 50px;
}

.modal-content {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
    padding: 30px;
    border-radius: 16px;
    width: 85%;
    max-width: 800px;
    box-shadow: 0 12px 48px rgba(59, 130, 246, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.3);
    animation: modalFadeIn 0.4s ease;
    position: relative;
    max-height: 90vh;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa, #3b82f6);
    animation: modalBorder 3s linear infinite;
    border-radius: 16px 16px 0 0;
}

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

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.modal-header h3 {
    color: #3b82f6;
    font-size: 20px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.close-modal {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 24px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.close-modal:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    transform: rotate(90deg) scale(1.1);
}

.modal-body {
    margin-bottom: 25px;
    max-height: 70vh;
    overflow-y: auto;
}

.detail-item {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-label {
    width: 120px;
    font-weight: 600;
    color: #3b82f6;
    flex-shrink: 0;
}

.detail-value {
    flex: 1;
    color: #e2e8f0;
    line-height: 1.6;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .page-container {
        padding: 15px;
        gap: 15px;
    }
    
    .sidebar {
        width: 200px;
        padding: 25px 15px;
        height: calc(100vh - 30px);
    }
    
    .main-content {
        margin-left: 215px;
        padding: 25px;
        height: calc(100vh - 30px);
    }
}

@media (max-width: 768px) {
    .page-container {
        flex-direction: column;
        padding: 10px;
        gap: 10px;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 20px;
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px;
        min-height: calc(100vh - 200px);
    }
    
    .sidebar-menu {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .menu-item {
        white-space: nowrap;
        padding: 12px 16px;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    
    .menu-item:hover,
    .menu-item.active {
        border-left: none;
        border-bottom-color: #3b82f6;
        transform: translateY(-2px);
    }
    
    .search-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: none;
    }
    
    .filter-options {
        justify-content: space-between;
    }
    
    .common-table {
        font-size: 12px;
    }
    
    .common-table th,
    .common-table td {
        padding: 12px 16px;
    }
    
    .modal-content {
        width: 95%;
        margin: 15% auto;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .sidebar-menu {
        gap: 4px;
    }
    
    .menu-item {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .menu-icon {
        font-size: 16px;
    }
    
    .header h2 {
        font-size: 20px;
    }
    
    .search-btn {
        padding: 12px 16px;
    }
    
    .filter-options select {
        min-width: 120px;
        padding: 12px 16px;
    }
    
    .action-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .page-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}
