/* 工学云自动打卡 Web管理界面样式 - 2024现代化设计 */

:root {
    /* 主色调 - 使用更鲜艳的渐变色 */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: rgba(99, 102, 241, 0.08);
    --primary-glow: rgba(99, 102, 241, 0.25);
    
    /* 功能色 */
    --success-color: #10b981;
    --success-light: rgba(16, 185, 129, 0.08);
    --success-glow: rgba(16, 185, 129, 0.25);
    --warning-color: #f59e0b;
    --warning-light: rgba(245, 158, 11, 0.08);
    --error-color: #ef4444;
    --error-light: rgba(239, 68, 68, 0.08);
    --info-color: #3b82f6;
    --info-light: rgba(59, 130, 246, 0.08);
    
    /* 中性色 */
    --bg-color: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-tertiary: #e2e8f0;
    --card-bg: #ffffff;
    --text-color: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    /* 阴影系统 */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
    
    /* 圆角 */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    
    /* 过渡 */
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ========== 基础重置 ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 50%, #fce7f3 100%);
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== 认证页面 ========== */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 40%);
    pointer-events: none;
}

.auth-box {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 48px 44px;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl), 0 0 80px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.auth-box h1 {
    text-align: center;
    margin-bottom: 8px;
    font-size: 28px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 36px;
    font-weight: 400;
    color: var(--text-muted);
    font-size: 15px;
}

.auth-footer {
    text-align: center;
    margin-top: 28px;
    color: var(--text-muted);
    font-size: 14px;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.auth-footer a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* ========== 表单元素 ========== */
.form-group {
    margin-bottom: 20px;
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 13px;
    letter-spacing: 0.01em;
}

.form-group small {
    display: block;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.6;
}

.form-group small a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.form-group small a:hover {
    text-decoration: underline;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    transition: var(--transition);
    background: var(--card-bg);
    color: var(--text-color);
    font-family: inherit;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.form-row .form-group {
    min-width: 160px;
}

/* ========== 复选框美化 ========== */
.checkbox-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-color);
    gap: 12px;
    user-select: none;
    transition: var(--transition);
}

.checkbox-label:hover {
    color: var(--primary-color);
}

.checkbox-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:hover {
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked {
    background: var(--primary-gradient);
    border-color: transparent;
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input[type="checkbox"]:focus {
    box-shadow: 0 0 0 4px var(--primary-light);
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* ========== 按钮系统 ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(255,255,255,0.1), rgba(255,255,255,0));
    opacity: 0;
    transition: var(--transition);
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px var(--success-glow);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--success-glow);
}

.btn-outline {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    color: var(--text-color);
}

.btn-outline:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--bg-secondary);
    color: var(--text-color);
}

.btn-danger {
    background: var(--error-light);
    color: var(--error-color);
    border: 2px solid transparent;
}

.btn-danger:hover {
    background: var(--error-color);
    color: white;
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 15px;
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* ========== 提示消息 ========== */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: var(--success-light);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.alert-error {
    background: var(--error-light);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.alert-warning {
    background: var(--warning-light);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.15);
}

.alert-info {
    background: var(--info-light);
    color: #1d4ed8;
    border: 1px solid rgba(59, 130, 246, 0.15);
}

/* ========== 仪表板布局 ========== */
.dashboard-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--bg-color) 0%, #eef2ff 100%);
}

/* ========== 导航栏 ========== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 18px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

.nav-brand {
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    cursor: default;
    transition: var(--transition);
}

.nav-brand:hover {
    transform: scale(1.05);
    filter: brightness(1.15);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px 8px 8px;
    background: var(--bg-secondary);
    border-radius: 50px;
    border: 1px solid var(--border-color);
}

.nav-user-info .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 2px 8px var(--primary-glow);
}

.nav-user-info span {
    color: var(--text-color);
    font-weight: 600;
    font-size: 14px;
}

/* ========== 主内容区 ========== */
.main-content {
    flex: 1;
    padding: 40px 32px;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

/* ========== 页面头部 ========== */
.page-header {
    margin-bottom: 32px;
    text-align: center;
}

.page-header-content h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

.page-header-content p {
    color: var(--text-muted);
    font-size: 15px;
}

.page-header-content code {
    background: var(--primary-light);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-family: 'SF Mono', 'Consolas', monospace;
    color: var(--primary-color);
    font-weight: 500;
}

/* ========== 选项卡导航 ========== */
.tabs-container {
    background: var(--card-bg);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md), var(--shadow-glow);
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, 0.08);
}

.tabs-nav {
    display: flex;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-color) 100%);
    padding: 12px;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid var(--border-color);
}

.tabs-nav::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    padding: 14px 24px;
    border: none;
    background: transparent;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-color);
}

.tab-btn.active {
    background: var(--card-bg);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 3px;
}

.tab-btn .tab-icon {
    font-size: 18px;
}

.tabs-content {
    padding: 40px;
}

.tab-pane {
    display: none;
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-pane.active {
    display: block;
}

@keyframes fadeInUp {
    from { 
        opacity: 0;
        transform: translateY(12px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== 配置区块 ========== */
.config-section {
    margin-bottom: 32px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.config-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
    transition: left 0.5s ease;
}

.config-section:hover::before {
    left: 100%;
}

.config-section:hover {
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.config-section:last-child {
    margin-bottom: 0;
}

.test-checkin-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    border: 2px solid rgba(99, 102, 241, 0.25) !important;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15), 0 0 40px rgba(99, 102, 241, 0.05) !important;
    position: relative;
}

.test-checkin-section::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: var(--radius-xl);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.test-checkin-section:hover::after {
    opacity: 0.1;
}

.test-checkin-section:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.25), 0 0 60px rgba(99, 102, 241, 0.1) !important;
}

.config-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.config-section-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.config-section-title h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.config-section-title p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ========== 子区块 ========== */
.sub-section {
    padding: 24px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.sub-section:hover {
    border-color: rgba(99, 102, 241, 0.15);
    box-shadow: var(--shadow-sm);
}

.sub-section:last-child {
    margin-bottom: 0;
}

.sub-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.sub-section-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ========== 推送设置美化 ========== */
.push-section {
    position: relative;
    border-left: 3px solid transparent;
    transition: var(--transition);
}

.push-section .push-header {
    margin-bottom: 20px;
}

.push-section .push-header .checkbox-label {
    font-size: 15px;
    font-weight: 700;
}

.push-section .push-body {
    padding-left: 32px;
    position: relative;
}

.push-section .push-body::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
    border-radius: 2px;
}

/* ========== 表单操作区 ========== */
.form-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    padding: 40px 0 0;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}

/* ========== 日志面板 ========== */
.log-panel {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.log-header {
    padding: 20px 24px;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    border-bottom: 1px solid rgba(71, 85, 105, 0.5);
}

.log-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.log-controls select {
    padding: 10px 14px;
    border: 1px solid #475569;
    border-radius: var(--radius);
    background: #1e293b;
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.log-controls select:hover {
    border-color: var(--primary-color);
}

.log-controls select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.log-controls .checkbox-label {
    color: #94a3b8;
    font-size: 13px;
}

.log-controls .checkbox-label input {
    border-color: #475569;
}

.log-controls .checkbox-label input:checked {
    background: var(--primary-gradient);
}

.log-actions {
    display: flex;
    gap: 10px;
}

.log-actions .btn {
    padding: 10px 16px;
    font-size: 13px;
}

.log-content {
    padding: 24px;
    max-height: 500px;
    overflow-y: auto;
    font-family: 'SF Mono', 'Monaco', 'Consolas', 'Courier New', monospace;
    font-size: 13px;
    line-height: 2;
    color: #e2e8f0;
}

.log-content::-webkit-scrollbar {
    width: 8px;
}

.log-content::-webkit-scrollbar-track {
    background: #1e293b;
}

.log-content::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 4px;
}

.log-content::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

.log-entry {
    margin-bottom: 2px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: var(--transition-fast);
}

.log-entry:hover {
    background: rgba(255, 255, 255, 0.05);
}

.log-time {
    color: #64748b;
}

.log-level {
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.log-level.info {
    color: #34d399;
    background: rgba(52, 211, 153, 0.15);
}

.log-level.warning {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.15);
}

.log-level.error {
    color: #f87171;
    background: rgba(248, 113, 113, 0.15);
}

.log-tag {
    color: #c4b5fd;
    font-weight: 600;
}

.log-message {
    color: #f1f5f9;
}

.log-footer {
    padding: 16px 24px;
    background: rgba(30, 41, 59, 0.8);
    border-top: 1px solid rgba(71, 85, 105, 0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.log-status {
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
}

/* ========== 测试打卡区块特殊样式 ========== */
.test-checkin-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(168, 85, 247, 0.08) 100%) !important;
    border: 2px solid rgba(99, 102, 241, 0.2) !important;
    position: relative;
    overflow: hidden;
}

.test-checkin-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
}

/* ========== 页脚 ========== */
.footer {
    text-align: center;
    padding: 28px;
    color: var(--text-muted);
    font-size: 14px;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
}

.footer p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ========== 加载动画 ========== */
.loading {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-weight: 500;
}

.loading-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 20px;
    }
    
    .nav-brand {
        font-size: 18px;
    }
    
    .main-content {
        padding: 24px 16px;
    }
    
    .page-header-content h1 {
        font-size: 28px;
    }
    
    .tabs-nav {
        padding: 8px;
    }
    
    .tab-btn {
        padding: 12px 18px;
        font-size: 13px;
    }
    
    .tab-btn.active::after {
        display: none;
    }
    
    .tabs-content {
        padding: 24px;
    }
    
    .config-section {
        padding: 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 16px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .log-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .log-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .log-actions {
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .nav-user-info {
        display: none;
    }
    
    .auth-box {
        padding: 32px 24px;
    }
    
    .page-header-content h1 {
        font-size: 24px;
    }
    
    .config-section-header {
        flex-direction: column;
        text-align: center;
    }
}

/* ========== 输入框焦点环美化 ========== */
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
    outline: none;
}

/* ========== 选择框美化 ========== */
select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    appearance: none;
    -webkit-appearance: none;
}

/* ========== 时间输入框美化 ========== */
input[type="time"] {
    cursor: pointer;
}

input[type="time"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
}

input[type="time"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* ========== 数字输入框按钮 ========== */
input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
    -webkit-appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
}

/* ========== 卡片组件 ========== */
.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
}

.card-header h2 {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-body {
    padding: 24px;
}

/* ========== 状态徽章 ========== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: var(--success-light);
    color: var(--success-color);
}

.badge-warning {
    background: var(--warning-light);
    color: var(--warning-color);
}

.badge-error {
    background: var(--error-light);
    color: var(--error-color);
}

.badge-info {
    background: var(--info-light);
    color: var(--info-color);
}

/* ========== 分割线 ========== */
.divider {
    height: 1px;
    background: var(--border-color);
    margin: 24px 0;
}

/* ========== 工具提示 ========== */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 8px 14px;
    background: #1e293b;
    color: white;
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    pointer-events: none;
    box-shadow: var(--shadow-lg);
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

/* ========== 骨架屏加载 ========== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========== 空状态 ========== */
.empty-state {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-state-desc {
    font-size: 14px;
}

/* Toast 通知样式 - 现代化设�?*/
#toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.12), 0 2px 10px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.05);
    pointer-events: auto;
    animation: toastSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 420px;
    position: relative;
    overflow: hidden;
}

.toast.hiding {
    animation: toastSlideOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(100px) scale(0.9);
    }
}

.toast-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    font-weight: bold;
}

.toast.success .toast-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.toast.error .toast-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.toast.warning .toast-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.toast.info .toast-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 700;
    font-size: 15px;
    color: #0f172a;
    margin-bottom: 3px;
    letter-spacing: -0.2px;
}

.toast-message {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    background: #f1f5f9;
    color: #475569;
    transform: scale(1.1);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    border-radius: 0 0 16px 16px;
    animation: toastProgress 4s linear forwards;
}

.toast.success .toast-progress {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.toast.error .toast-progress {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.toast.warning .toast-progress {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.toast.info .toast-progress {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

@keyframes toastProgress {
    from { width: 100%; }
    to { width: 0%; }
}

/* 按钮加载状�?*/
.btn .loading-spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

.btn.loading {
    pointer-events: none;
    opacity: 0.85;
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-loading {
    display: inline-flex !important;
    align-items: center;
}

/* 保存成功动画 */
@keyframes successPulse {
    0% { box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25), 0 0 0 0 rgba(16, 185, 129, 0.5); }
    50% { box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25), 0 0 0 12px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25), 0 0 0 0 rgba(16, 185, 129, 0); }
}

.btn.success-pulse {
    animation: successPulse 0.8s ease-out;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

/* 波纹效果 */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@media (max-width: 480px) {
    #toast-container {
        top: auto;
        bottom: 24px;
        left: 16px;
        right: 16px;
    }
    
    .toast {
        max-width: none;
    }
}

/* ========== ������ִ�����ǿ��ʽ ========== */

/* �������ǿ��ͣ�;۽�Ч�� */
.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(255, 255, 255, 1);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12), 0 2px 8px rgba(99, 102, 241, 0.08);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
}

/* ��ť��ǿ�Ӿ�Ч�� */
.btn-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4), 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

/* ѡ���ǿ���� */
.tab-btn {
    position: relative;
    overflow: hidden;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-icon {
    transition: transform 0.3s ease;
}

.tab-btn:hover .tab-icon,
.tab-btn.active .tab-icon {
    transform: scale(1.15) rotate(5deg);
}

/* ��Ƭͷ��ͼ����ǿ */
.config-section-icon {
    transition: transform 0.3s ease;
}

.config-section:hover .config-section-icon {
    transform: scale(1.1) rotate(5deg);
}

/* ҳ��ͷ����ǿ */
.page-header {
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* ��־�����ǿ */
.log-panel {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.log-entry {
    transition: background 0.2s ease;
}

.log-entry:hover {
    background: rgba(99, 102, 241, 0.04);
}

/* ����������ǿ */
.push-section {
    transition: var(--transition);
}

.push-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: rgba(99, 102, 241, 0.2);
}

/* ��ť����ͣЧ�� */
.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

/* ����������ť���� */
.form-actions {
    gap: 16px;
    margin-top: 32px;
}

/* ͷ����ǿ */
.nav-user-info .avatar {
    transition: var(--transition);
}

.nav-user-info .avatar:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 16px var(--primary-glow);
}

/* ���������� */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #667eea, #764ba2);
    border-radius: 10px;
    transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #764ba2, #667eea);
}

/* �������ǿ */
code {
    padding: 2px 8px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 4px;
    font-size: 13px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* ��ʾ��Ϣ��ǿ */
.form-group small {
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.form-group small:hover {
    color: var(--primary-color);
    transform: translateX(2px);
}

/* ҳ����ǿ */
.footer {
    margin-top: 60px;
    padding: 32px 24px;
    text-align: center;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(226, 232, 240, 0.6);
}

.footer p {
    margin: 0;
    font-size: 14px;
}

/* ��̬����Ч�� */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.config-section-icon {
    animation: float 3s ease-in-out infinite;
}

/* ���ض�����ǿ */
.loading-spinner {
    position: relative;
}

.loading-spinner::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: rgba(99, 102, 241, 0.3);
    animation: spin 1.5s linear infinite;
}

/* ��ǩ��ǿ��ʽ */
label {
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition);
}

label:hover {
    color: var(--primary-color);
}

