* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #0a0a1a, #1a1a2e, #16213e);
    min-height: 100vh;
}

/* 登录页面 */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a1a, #1a1a2e, #16213e);
}

.login-container {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 3rem;
    border: 1px solid rgba(121, 68, 154, 0.3);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
    width: 100%;
    max-width: 400px;
    text-align: center;
    transition: all 0.3s ease;
}

.login-container:hover {
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.4);
    transform: translateY(-5px);
}

.login-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    margin-bottom: 0.5rem;
}

.login-header p {
    font-size: 1rem;
    color: #94a3b8;
    margin-bottom: 2rem;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.login-form label {
    display: block;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.login-form input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(121, 68, 154, 0.3);
    border-radius: 6px;
    background: rgba(10, 10, 26, 0.8);
    color: #e2e8f0;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.login-form input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.login-form .btn-primary {
    width: 100%;
    padding: 0.75rem;
    margin-top: 1rem;
}

.error-message {
    color: #ef4444;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .login-container {
        padding: 2rem;
        margin: 1rem;
    }

    .login-header h2 {
        font-size: 1.5rem;
    }
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    margin: 15% auto;
    padding: 2rem;
    border: 1px solid rgba(121, 68, 154, 0.3);
    border-radius: 12px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-50px);}
    to {opacity: 1; transform: translateY(0);}
}

.modal-content .close {
    color: #94a3b8;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-content .close:hover {
    color: #e2e8f0;
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-content .form-group {
    margin-bottom: 1.5rem;
}

.modal-content label {
    display: block;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.modal-content input,
.modal-content select,
.modal-content textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(121, 68, 154, 0.3);
    border-radius: 6px;
    background: rgba(10, 10, 26, 0.8);
    color: #e2e8f0;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.modal-content input:focus,
.modal-content select:focus,
.modal-content textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.modal-content textarea {
    resize: vertical;
    min-height: 100px;
}

.modal-content .btn-primary {
    width: 100%;
    margin-top: 1rem;
}

.admin-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* 侧边栏 */
.sidebar {
    width: 280px;
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(121, 68, 154, 0.3);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(121, 68, 154, 0.2);
}

.sidebar-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.sidebar-header p {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-top: 0.5rem;
}

.sidebar-nav {
    flex: 1;
    padding: 1.5rem 0;
}

.sidebar-nav ul {
    list-style: none;
}

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-item a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item a:hover {
    background: rgba(121, 68, 154, 0.2);
    color: #a855f7;
    border-left-color: #6366f1;
}

.nav-item.active a {
    background: rgba(99, 102, 241, 0.2);
    color: #a855f7;
    border-left-color: #6366f1;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.nav-icon {
    font-size: 1.2rem;
    margin-right: 1rem;
}

.nav-text {
    font-size: 1rem;
    font-weight: 500;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(121, 68, 154, 0.2);
}

#logout-btn {
    width: 100%;
    padding: 0.75rem;
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

#logout-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

/* 主内容区 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.main-header {
    background: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(121, 68, 154, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header h1 {
    font-size: 1.5rem;
    color: #e2e8f0;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-profile span {
    color: #e2e8f0;
    font-weight: 500;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(121, 68, 154, 0.5);
}

.content-area {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(121, 68, 154, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
    border-color: rgba(121, 68, 154, 0.4);
}

.stat-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
    border: 1px solid rgba(121, 68, 154, 0.3);
}

.stat-content h3 {
    font-size: 1rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #a855f7;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

/* 最近活动 */
.recent-activity {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(121, 68, 154, 0.2);
}

.recent-activity h2 {
    font-size: 1.2rem;
    color: #e2e8f0;
    margin-bottom: 1.5rem;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(10, 10, 26, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(121, 68, 154, 0.1);
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: rgba(10, 10, 26, 0.7);
    border-color: rgba(121, 68, 154, 0.3);
}

.activity-icon {
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
    border: 1px solid rgba(121, 68, 154, 0.3);
}

.activity-content p {
    color: #e2e8f0;
    margin-bottom: 0.5rem;
}

.activity-time {
    font-size: 0.8rem;
    color: #94a3b8;
}

/*  section 头部 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    color: #e2e8f0;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.section-actions input,
.section-actions select {
    padding: 0.75rem;
    border: 1px solid rgba(121, 68, 154, 0.3);
    border-radius: 6px;
    background: rgba(26, 26, 46, 0.8);
    color: #e2e8f0;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.section-actions input:focus,
.section-actions select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5, #9333ea);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
}

.btn-edit {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
}

.btn-edit:hover {
    background: rgba(52, 152, 219, 0.3);
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

.btn-delete {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-delete:hover {
    background: rgba(231, 76, 60, 0.3);
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.3);
}

.btn-view {
    background: rgba(99, 102, 241, 0.2);
    color: #6366f1;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
}

.btn-view:hover {
    background: rgba(99, 102, 241, 0.3);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

.btn-confirm {
    background: rgba(39, 174, 96, 0.2);
    color: #27ae60;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(39, 174, 96, 0.3);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
}

.btn-confirm:hover {
    background: rgba(39, 174, 96, 0.3);
    box-shadow: 0 0 10px rgba(39, 174, 96, 0.3);
}

.btn-complete {
    background: rgba(243, 156, 18, 0.2);
    color: #f39c12;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(243, 156, 18, 0.3);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-complete:hover {
    background: rgba(243, 156, 18, 0.3);
    box-shadow: 0 0 10px rgba(243, 156, 18, 0.3);
}

/* 表格样式 */
.table-container {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(121, 68, 154, 0.2);
    overflow: hidden;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(121, 68, 154, 0.2);
}

.admin-table th {
    background: rgba(10, 10, 26, 0.5);
    color: #e2e8f0;
    font-weight: 600;
}

.admin-table tr:hover {
    background: rgba(10, 10, 26, 0.3);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

/* 状态标签 */
.status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status.pending {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #fff;
}

.status.confirmed {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #fff;
}

.status.completed {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: #fff;
}

.status.cancelled {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
}

/* 设置表单 */
.settings-form {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(121, 68, 154, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(121, 68, 154, 0.3);
    border-radius: 6px;
    background: rgba(10, 10, 26, 0.8);
    color: #e2e8f0;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .admin-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid rgba(121, 68, 154, 0.3);
    }

    .sidebar-nav ul {
        display: flex;
        overflow-x: auto;
    }

    .nav-item {
        margin-bottom: 0;
    }

    .nav-item a {
        padding: 0.75rem 1rem;
        white-space: nowrap;
    }

    .content-area {
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .section-actions {
        width: 100%;
        flex-direction: column;
    }

    .section-actions input,
    .section-actions select {
        width: 100%;
    }

    .table-container {
        overflow-x: auto;
    }

    .admin-table {
        min-width: 600px;
    }
}
