/* 重置样式和基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #3b82f6;
    --accent: #8b5cf6;
    --background: #ffffff;
    --surface: #f8fafc;
    --surface-light: #f1f5f9;
    --text: #1e293b;
    --text-secondary: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --border: rgba(37, 99, 235, 0.2);
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    --glow: 0 0 20px rgba(37, 99, 235, 0.15);
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 登录页面样式 */
.login-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-container {
    width: 100%;
    max-width: 420px;
    z-index: 10;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 35px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.logo {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: white;
    box-shadow: var(--glow);
}

.login-header h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    z-index: 2;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.btn-login {
    width: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 10px;
    padding: 15px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

.login-footer {
    margin-top: 30px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.default-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
    padding: 10px;
    background: var(--surface);
    border-radius: 8px;
}

/* 浮动背景元素 */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.float-el {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(139, 92, 246, 0.1));
    animation: float 20s infinite linear;
    opacity: 0.7;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
    100% {
        transform: translateY(0) rotate(360deg);
    }
}

/* 主布局样式 */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-section .logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.logo-section h1 {
    font-size: 1.4rem;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.username {
    font-weight: 600;
    font-size: 0.95rem;
}

.user-role {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.user-menu {
    display: flex;
    gap: 15px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: var(--surface);
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9rem;
    border: 1px solid var(--border);
}

.menu-item:hover {
    background: var(--surface-light);
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}

.menu-item.logout {
    color: var(--error);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.2rem;
    cursor: pointer;
}

/* 主内容区 */
.main-content {
    padding: 30px 0;
    min-height: calc(100vh - 140px);
    background: var(--background);
}

.content-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.category-section {
    margin-bottom: 50px;
}

.category-header {
    margin-bottom: 25px;
    position: relative;
}

.category-title {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: var(--text);
    display: inline-block;
}

.category-line {
    height: 3px;
    width: 60px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
}

/* 导航网格 */
.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
}

.nav-card {
    background: var(--surface);
    border-radius: 15px;
    padding: 25px 20px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 140px;
    justify-content: center;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.nav-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--glow);
}

.nav-card:hover .card-glow {
    transform: scaleX(1);
}

.card-content {
    position: relative;
    z-index: 2;
}

.nav-icon {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--primary);
    transition: transform 0.3s;
}

.nav-card:hover .nav-icon {
    transform: scale(1.1);
}

.nav-name {
    font-weight: 500;
    font-size: 0.95rem;
}

.card-hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(139, 92, 246, 0.05));
    opacity: 0;
    transition: opacity 0.3s;
}

.nav-card:hover .card-hover-effect {
    opacity: 1;
}

/* 页脚 */
.main-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 20px 0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-container p {
    margin: 5px 0;
}

/* 提示信息 */
.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--error);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success);
}

/* 后台管理特定样式 */
.admin-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: var(--surface);
    border-radius: 15px;
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
}

.admin-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.admin-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.dashboard-section {
    background: var(--surface);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.section-header i {
    font-size: 1.5rem;
    color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-header h3 {
    font-size: 1.4rem;
    color: var(--text);
}

.dashboard-card {
    background: var(--surface-light);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.dashboard-card:last-child {
    margin-bottom: 0;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h4 {
    font-size: 1.1rem;
    color: var(--text);
}

.badge {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* 现代化表单样式 */
.modern-form {
    width: 100%;
}

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

.form-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    margin-bottom: 20px;
}

.form-row .input-group {
    flex: 1;
}

.full-width {
    width: 100%;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 12px 15px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.95rem;
    transition: all 0.3s;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* 按钮样式 */
.btn-primary, .btn-secondary, .btn-warning, .btn-danger, .btn-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

.btn-secondary {
    background: var(--surface-light);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--surface);
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}

.btn-warning {
    background: linear-gradient(90deg, var(--warning), #f97316);
    color: white;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.4);
}

.btn-danger {
    background: linear-gradient(90deg, var(--error), #dc2626);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4);
}

.btn-info {
    background: linear-gradient(90deg, #0ea5e9, #3b82f6);
    color: white;
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.4);
}

.btn-sm {
    padding: 8px 12px;
    font-size: 0.8rem;
}

/* 现代化表格 */
.table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--background);
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--background);
}

.modern-table th,
.modern-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.modern-table th {
    background: var(--surface-light);
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
}

.modern-table tbody tr {
    transition: all 0.3s;
}

.modern-table tbody tr:hover {
    background: rgba(37, 99, 235, 0.03);
}

/* 单元格样式 */
.user-cell, .nav-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar.small, .nav-icon.small {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
}

.role-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.role-badge.admin {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.role-badge.user {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
}

.status.active {
    color: var(--success);
}

.status i {
    font-size: 0.6rem;
}

.url-code {
    background: var(--surface-light);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.icon-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.category-tag {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid var(--accent);
}

/* 分类网格 */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.category-card {
    background: var(--surface);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
    box-shadow: var(--card-shadow);
}

.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--glow);
}

.category-icon {
    width: 50px;
    height: 50px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

.category-info {
    flex: 1;
}

.category-info h5 {
    margin-bottom: 5px;
    font-size: 1rem;
}

.category-count {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.category-actions {
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    gap: 5px;
}

.category-card:hover .category-actions {
    opacity: 1;
}

/* 修改密码页面特定样式 */
.form-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.form-container {
    background: var(--surface);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
    box-shadow: var(--glow);
}

.form-header h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.password-form .input-group {
    margin-bottom: 25px;
}

.password-strength {
    margin-top: 10px;
}

.strength-bar {
    width: 100%;
    height: 6px;
    background: var(--surface-light);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: all 0.3s;
}

.strength-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.password-match {
    display: none;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.8rem;
    padding: 8px 12px;
    border-radius: 6px;
}

.password-match.valid {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.password-match.invalid {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.form-actions .btn-primary,
.form-actions .btn-secondary {
    flex: 1;
    justify-content: center;
}

.form-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.security-tips h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--primary);
}

.security-tips ul {
    list-style: none;
    padding: 0;
}

.security-tips li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.security-tips li i {
    color: var(--success);
    font-size: 0.8rem;
}

/* 编辑导航模态框 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal {
    background: var(--surface);
    border-radius: 15px;
    padding: 30px;
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow);
    position: relative;
}

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

.modal-header h3 {
    font-size: 1.4rem;
    color: var(--text);
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--error);
}

.modal-body {
    margin-bottom: 25px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .nav-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
    }
    
    .user-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        background: var(--surface);
        flex-direction: column;
        width: 200px;
        padding: 15px;
        border-radius: 0 0 0 15px;
        border: 1px solid var(--border);
        transition: right 0.3s;
        box-shadow: var(--shadow);
        z-index: 100;
    }
    
    .user-menu.active {
        right: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .nav-card {
        padding: 20px 15px;
        height: 130px;
    }
    
    .nav-icon {
        font-size: 2rem;
    }
    
    .content-container {
        padding: 0 15px;
    }
    
    .login-card {
        padding: 30px 25px;
    }
    
    .dashboard-section {
        padding: 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        padding: 30px 25px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .modern-table {
        font-size: 0.85rem;
    }
    
    .modern-table th,
    .modern-table td {
        padding: 12px 8px;
    }
    
    .modal {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .header-container {
        height: 60px;
    }
    
    .logo-section h1 {
        font-size: 1.2rem;
    }
    
    .user-info .user-details {
        display: none;
    }
    
    .main-content {
        padding: 20px 0;
    }
    
    .category-title {
        font-size: 1.4rem;
    }
    
    .admin-header {
        padding: 20px 15px;
    }
    
    .admin-header h2 {
        font-size: 1.6rem;
    }
    
    .dashboard-section {
        padding: 15px;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        padding: 25px 20px;
    }
    
    .form-header h2 {
        font-size: 1.5rem;
    }
    
    .modal {
        padding: 15px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
}

/* 动画效果增强 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-card, .dashboard-card, .category-card {
    animation: fadeIn 0.5s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

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

/* 选择文本样式 */
::selection {
    background: rgba(37, 99, 235, 0.2);
    color: var(--text);
}

/* 焦点样式 */
*:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* 加载状态 */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.2), transparent);
    animation: loading 1.5s infinite;
}

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

/* 工具类 */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.p-20 {
    padding: 20px;
}

.hidden {
    display: none;
}

.flex {
    display: flex;
}

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

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.grid {
    display: grid;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

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

.status-online {
    background-color: var(--success);
}

.status-offline {
    background-color: var(--error);
}

.status-idle {
    background-color: var(--warning);
}

/* 卡片悬停效果增强 */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow);
}

/* 渐变文本 */
.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 分割线 */
.divider {
    height: 1px;
    background: var(--border);
    margin: 20px 0;
}

/* 代码样式 */
.code-block {
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
}

/* 标签样式 */
.tag {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid var(--primary);
}

.tag-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-color: var(--success);
}

.tag-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border-color: var(--warning);
}

.tag-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border-color: var(--error);
}

/* 操作按钮组 */
.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

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

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--border);
}

.empty-state h3 {
    margin-bottom: 10px;
    color: var(--text);
}

/* 搜索框 */
.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.95rem;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}