/* ========================================
   DNS 系统 - 运营级样式表
   ========================================
   版本: 2.0.0
   作者: System
   最后更新: 2026-03-10
   描述: 完整的运营级别 CSS 样式表
         包含 CSS 重置、变量系统、响应式设计、
         主题切换、动画效果、无障碍访问等
   ======================================== */

/* ========================================
   目录结构
   ========================================
   1. CSS Reset & Normalize
   2. CSS Variables & Design Tokens
   3. Base Styles
   4. Layout Components
   5. Navigation
   6. Forms & Inputs
   7. Buttons
   8. Cards & Containers
   9. Tables
  10. Badges & Tags
  11. Animations
  12. Responsive Design
  13. Print Styles
  14. Accessibility
  15. Utility Classes
   ======================================== */

/* ========================================
   1. CSS Reset & Normalize
   ======================================== */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

html, body {
  scroll-behavior: smooth;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section,
summary {
  display: block;
}

audio, canvas, progress, video {
  display: inline-block;
  vertical-align: baseline;
}

audio:not([controls]) {
  display: none;
  height: 0;
}

[hidden], template {
  display: none;
}

a {
  background-color: transparent;
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover, a:focus {
  color: var(--accent-purple);
  text-decoration: underline;
}

a:active, a:hover {
  outline: 0;
}

a:focus {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

abbr[title] {
  border-bottom: 1px dotted;
}

b, strong {
  font-weight: 700;
}

dfn {
  font-style: italic;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.5em;
  line-height: 1.2;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }
h5 { font-size: 0.875rem; }
h6 { font-size: 0.75rem; }

mark {
  background: #ff0;
  color: #000;
}

small {
  font-size: 80%;
}

sub, sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sup { top: -0.5em; }
sub { bottom: -0.25em; }

img {
  border: 0;
  max-width: 100%;
  height: auto;
  display: block;
}

svg:not(:root) {
  overflow: hidden;
}

figure {
  margin: 1em 40px;
}

hr {
  box-sizing: content-box;
  height: 0;
  border: 0;
  border-top: 1px solid var(--border-glass);
  margin: 1em 0;
}

pre {
  overflow: auto;
  font-family: monospace, monospace;
  font-size: 1em;
  background: var(--bg-tertiary);
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 1em;
}

code, kbd, samp, pre {
  font-family: monospace, monospace;
  font-size: 1em;
}

button, input, optgroup, select, textarea {
  color: inherit;
  font: inherit;
  margin: 0;
}

button {
  overflow: visible;
}

button, select {
  text-transform: none;
}

button, html input[type="button"],
input[type="reset"], input[type="submit"] {
  -webkit-appearance: button;
  cursor: pointer;
}

button[disabled], html input[disabled] {
  cursor: default;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

input {
  line-height: normal;
}

input[type="checkbox"], input[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

input[type="search"] {
  -webkit-appearance: textfield;
  box-sizing: content-box;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

fieldset {
  border: 1px solid var(--border-glass);
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em;
}

legend {
  border: 0;
  padding: 0;
}

textarea {
  overflow: auto;
  resize: vertical;
}

optgroup {
  font-weight: 700;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

td, th {
  padding: 0;
  text-align: left;
}

/* ========================================
   2. CSS Variables & Design Tokens
   ======================================== */

:root {
  /* ========================================
     2.1 Color System - Light Theme
     ======================================== */
  
  /* 背景色系 */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.98);
  --bg-glass: rgba(255, 255, 255, 0.7);
  --bg-glass-hover: rgba(255, 255, 255, 0.9);
  --bg-overlay: rgba(0, 0, 0, 0.5);
  
  /* 强调色系 - 运营级专业配色 */
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-orange: #f59e0b;
  --accent-red: #ef4444;
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  --accent-yellow: #fbbf24;
  
  /* 文字色系 */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-tertiary: #64748b;
  --text-muted: #94a3b8;
  --text-disabled: #cbd5e1;
  
  /* 边框与阴影 */
  --border-glass: rgba(0, 0, 0, 0.06);
  --border-glow: rgba(59, 130, 246, 0.3);
  --border-focus: rgba(59, 130, 246, 0.4);
  --shadow-glass: 0 4px 24px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.2);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
  
  /* 渐变色 */
  --gradient-primary: linear-gradient(135deg, #3b82f6, #60a5fa);
  --gradient-secondary: linear-gradient(135deg, #2563eb, #3b82f6);
  --gradient-success: linear-gradient(135deg, #10b981, #06b6d4);
  --gradient-warning: linear-gradient(135deg, #f59e0b, #f97316);
  --gradient-danger: linear-gradient(135deg, #ef4444, #dc2626);
  --gradient-purple: linear-gradient(135deg, #8b5cf6, #7c3aed);
  --gradient-cyan: linear-gradient(135deg, #06b6d4, #22d3ee);
  --gradient-pink: linear-gradient(135deg, #ec4899, #d946ef);
  
  /* ========================================
     2.2 Spacing System
     ======================================== */
  
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 16px;
  --spacing-xl: 20px;
  --spacing-2xl: 24px;
  --spacing-3xl: 32px;
  --spacing-4xl: 48px;
  --spacing-5xl: 64px;
  
  /* ========================================
     2.3 Border Radius
     ======================================== */
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-full: 9999px;
  
  /* ========================================
     2.4 Typography
     ======================================== */
  
  --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Open Sans', 'Helvetica Neue', sans-serif;
  --font-family-mono: 'SF Mono', 'Consolas', 'Monaco', 'Courier New', monospace;
  
  --text-xs: 10px;
  --text-sm: 12px;
  --text-base: 12px;
  --text-lg: 14px;
  --text-xl: 16px;
  --text-2xl: 18px;
  --text-3xl: 20px;
  --text-4xl: 24px;
  --text-5xl: 32px;
  
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  
  /* ========================================
     2.5 Transitions & Animations
     ======================================== */
  
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* 动画时长 */
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  
  /* ========================================
     2.6 Breakpoints
     ======================================== */
  
  --breakpoint-xs: 480px;
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
  --breakpoint-2xl: 1400px;
  
  /* ========================================
     2.7 Z-Index Scale
     ======================================== */
  
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-max: 9999;
  
  /* ========================================
     2.8 Shadow Layers
     ======================================== */
  
  --shadow-1: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-2: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
  --shadow-3: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
  --shadow-4: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
  --shadow-5: 0 19px 38px rgba(0, 0, 0, 0.30), 0 15px 12px rgba(0, 0, 0, 0.22);
}

/* ========================================
   2.9 Dark Theme
   ======================================== */

[data-theme="dark"] {
  /* 背景色系 */
  --bg-primary: #0a0f1a;
  --bg-secondary: #111827;
  --bg-tertiary: #1f2937;
  --bg-card: rgba(17, 24, 39, 0.95);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --bg-glass-hover: rgba(255, 255, 255, 0.1);
  --bg-overlay: rgba(0, 0, 0, 0.7);
  
  /* 文字色系 */
  --text-primary: #f9fafb;
  --text-secondary: #e5e7eb;
  --text-tertiary: #9ca3af;
  --text-muted: #6b7280;
  --text-disabled: #4b5563;
  
  /* 边框与阴影 */
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(59, 130, 246, 0.4);
  --border-focus: rgba(59, 130, 246, 0.6);
  --shadow-glass: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.3);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.4);
  
  /* 渐变色 */
  --gradient-primary: linear-gradient(135deg, #3b82f6, #60a5fa);
  --gradient-success: linear-gradient(135deg, #10b981, #06b6d4);
  --gradient-warning: linear-gradient(135deg, #f59e0b, #f97316);
  --gradient-danger: linear-gradient(135deg, #ef4444, #dc2626);
}

/* ========================================
   3. Base Styles
   ======================================== */

/* 页面基础容器 */
body {
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 背景装饰元素 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image: 
    radial-gradient(ellipse at 20% 0%, rgba(139, 92, 246, 0.15), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(236, 72, 153, 0.1), transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(124, 58, 237, 0.05), transparent 70%);
  background-attachment: fixed;
}

/* ========================================
   4. Layout Components
   ======================================== */

/* 主内容区域 */
main {
  position: relative;
  z-index: 1;
  padding: 64px 16px 20px;
  min-height: calc(100vh - 100px);
}

/* 容器 */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
}

/* 栅格系统 */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -8px;
}

.row.no-gutters {
  margin: 0;
}

.row.no-gutters > .col,
.row.no-gutters > [class^="col-"],
.row.no-gutters > [class*=" col-"] {
  padding: 0;
}

.col {
  flex: 1;
  padding: 0 8px;
}

.col-1 { flex: 0 0 calc(100% / 12 * 1); max-width: calc(100% / 12 * 1); }
.col-2 { flex: 0 0 calc(100% / 12 * 2); max-width: calc(100% / 12 * 2); }
.col-3 { flex: 0 0 calc(100% / 12 * 3); max-width: calc(100% / 12 * 3); }
.col-4 { flex: 0 0 calc(100% / 12 * 4); max-width: calc(100% / 12 * 4); }
.col-5 { flex: 0 0 calc(100% / 12 * 5); max-width: calc(100% / 12 * 5); }
.col-6 { flex: 0 0 calc(100% / 12 * 6); max-width: calc(100% / 12 * 6); }
.col-7 { flex: 0 0 calc(100% / 12 * 7); max-width: calc(100% / 12 * 7); }
.col-8 { flex: 0 0 calc(100% / 12 * 8); max-width: calc(100% / 12 * 8); }
.col-9 { flex: 0 0 calc(100% / 12 * 9); max-width: calc(100% / 12 * 9); }
.col-10 { flex: 0 0 calc(100% / 12 * 10); max-width: calc(100% / 12 * 10); }
.col-11 { flex: 0 0 calc(100% / 12 * 11); max-width: calc(100% / 12 * 11); }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* ========================================
   5. Navigation
   ======================================== */

/* 导航栏 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: var(--z-fixed);
  transition: var(--transition-normal);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .navbar {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* 导航栏阴影效果 */
.navbar::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
  opacity: 0.5;
}

/* 导航栏悬浮状态 */
.navbar:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .navbar:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition-fast);
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.logo:hover::before {
  transform: scaleX(1);
}

.logo:hover {
  opacity: 0.85;
}

.logo span:first-child {
  font-size: 18px;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.5));
}

/* 导航栏操作按钮组 */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  order: 3;
  flex-shrink: 0;
}

/* 移动端菜单切换按钮 */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition-fast);
  order: 2;
  border-radius: var(--radius-md);
}

.mobile-menu-toggle:hover {
  background: transparent;
  transform: scale(1.05);
}

.mobile-menu-toggle:focus {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

/* 导航栏认证按钮 */
.nav-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-fast);
  order: 2;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-auth-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: var(--transition-normal);
}

.nav-auth-btn:hover::before {
  left: 100%;
}

.nav-auth-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.nav-auth-btn:focus {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

.nav-auth-btn.login-btn {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-auth-btn.login-btn:hover {
  background: transparent;
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.nav-auth-btn.register-btn {
  background: var(--gradient-primary);
  border: none;
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.nav-auth-btn.register-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.nav-auth-btn.register-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* 主题切换按钮 */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition-fast);
  order: 1;
  border-radius: var(--radius-md);
  position: relative;
}

.theme-toggle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.theme-toggle:hover::before {
  opacity: 0.1;
}

.theme-toggle:hover {
  background: transparent;
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.theme-toggle:focus {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

.theme-toggle:active {
  transform: scale(0.95);
}

/* 导航菜单 */
.nav-menu {
  position: fixed;
  top: 50px;
  left: 0;
  right: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  list-style: none;
  padding: 0;
  display: none;
  flex-direction: column;
  gap: 0;
  z-index: var(--z-dropdown);
  box-shadow: none;
  animation: slideIn 0.3s ease;
  border-top: none;
}

.nav-menu.active {
  display: flex;
}

.nav-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: var(--text-base);
  font-weight: 500;
  border-radius: 0;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
  background: transparent;
}

.nav-menu li a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: var(--transition-normal);
}

.nav-menu li a:hover::before {
  left: 100%;
}

.nav-menu li a:hover {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-blue);
}

.nav-menu li a.active {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

/* 二级导航 */
.nav-submenu {
  position: relative;
}

.nav-submenu-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  color: var(--text-primary);
  background: transparent;
  border-radius: 0;
  cursor: pointer;
  padding: 10px 12px;
  transition: var(--transition-fast);
}

.nav-submenu-toggle:hover {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-blue);
}

.nav-submenu-toggle.active {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.nav-submenu-arrow {
  font-size: 12px;
  transition: transform 0.3s ease;
  margin-left: 4px;
  color: var(--text-primary);
}

.nav-submenu.active .nav-submenu-arrow {
  transform: rotate(180deg);
}

.nav-submenu-items {
  display: none;
  flex-direction: column;
  gap: 0;
  margin-top: 0;
  margin-left: 0;
  padding-left: 0;
  border-left: none;
  width: 100%;
}

.nav-submenu.active .nav-submenu-items {
  display: flex;
}

.nav-submenu-items a {
  font-size: var(--text-sm);
  padding: 10px 12px;
  color: var(--text-primary);
  border-radius: 0;
  background: transparent;
}

.nav-submenu-items a:hover {
  color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.1);
}

.nav-submenu-items a.active {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

/* 当二级导航项被选中时，主导航栏也高亮 */
.nav-submenu:has(.nav-submenu-items a.active) .nav-submenu-toggle {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

/* ========================================
   6. Forms & Inputs
   ======================================== */

/* 搜索筛选栏 */
.search-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  align-items: center;
}

/* 搜索筛选栏中的按钮与输入框高度一致 */
.search-filter .btn {
  padding: 10px 14px;
  font-size: var(--text-sm);
  height: 40px;
  box-sizing: border-box;
  border-radius: 10px;
}

/* 输入框和选择框 */
.search-filter input,
.search-filter select,
input[type="text"],
input[type="number"]:not(#quantity),
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
select,
textarea {
  flex: 1;
  min-width: 120px;
  padding: 10px 14px;
  height: 40px;
  box-sizing: border-box;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: var(--text-sm);
  transition: var(--transition-fast);
  backdrop-filter: blur(10px);
  position: relative;
}

.search-filter select,
select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: calc(100% - 12px) center !important;
  background-size: 12px !important;
  padding-right: 36px !important;
}

/* 选择框焦点和激活状态保持箭头位置 */
.search-filter select:focus,
.search-filter select:active,
.search-filter select:hover,
select:focus,
select:active,
select:hover {
  background-position: calc(100% - 12px) center !important;
}

/* 选择框展开时箭头向上 */
select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233b82f6' d='M6 4l5 5H1z'/%3E%3C/svg%3E") !important;
}

.search-filter input::before,
.search-filter select::before,
input[type="text"]::before,
input[type="number"]::before,
input[type="email"]::before,
input[type="password"]::before,
select::before,
textarea::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.search-filter input:hover,
.search-filter select:hover,
input[type="text"]:hover,
input[type="number"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
select:hover,
textarea:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05));
  border-color: var(--border-glow);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.search-filter input:hover::before,
.search-filter select:hover::before,
input[type="text"]:hover::before,
input[type="number"]:hover::before,
input[type="email"]:hover::before,
input[type="password"]:hover::before,
select:hover::before,
textarea:hover::before {
  opacity: 0.05;
}

.search-filter input:focus,
.search-filter select:focus,
input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2), 0 0 20px rgba(59, 130, 246, 0.1);
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05));
}

.search-filter input:focus::before,
.search-filter select:focus::before,
input[type="text"]:focus::before,
input[type="number"]:focus::before,
input[type="email"]:focus::before,
input[type="password"]:focus::before,
select:focus::before,
textarea:focus::before {
  opacity: 0.1;
}



/* 输入框占位符 */
input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
  font-size: var(--text-xs);
}

/* 输入框 - 浅色主题占位符 */
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}

/* 禁用状态 */
input:disabled,
select:disabled,
textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--bg-tertiary);
  border-color: var(--border-glass);
}

/* 禁用状态 - 浅色主题 */
[data-theme="dark"] input:disabled,
[data-theme="dark"] select:disabled,
[data-theme="dark"] textarea:disabled {
  background: var(--bg-tertiary);
  opacity: 0.6;
}

/* 复选框和单选框 */
input[type="checkbox"],
input[type="radio"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--accent-blue);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

input[type="checkbox"]:hover,
input[type="radio"]:hover {
  border-color: var(--accent-blue);
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
  background-color: var(--accent-blue);
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* 复选框和单选框 - 浅色主题 */
[data-theme="dark"] input[type="checkbox"],
[data-theme="dark"] input[type="radio"] {
  border-color: var(--border-glass);
}

[data-theme="dark"] input[type="checkbox"]:hover,
[data-theme="dark"] input[type="radio"]:hover {
  border-color: var(--accent-blue);
}

[data-theme="dark"] input[type="checkbox"]:checked,
[data-theme="dark"] input[type="radio"]:checked {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* ========================================
   7. Buttons
   ======================================== */

/* 按钮基础样式 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 12px;
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  vertical-align: middle;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

.btn:active {
  transform: translateY(0);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: var(--transition-normal);
}

.btn:hover::before {
  left: 100%;
}

/* 按钮尺寸 */
.btn-xs {
  padding: 2px 6px;
  font-size: 10px;
  min-height: 20px;
  border-radius: var(--radius-sm);
}

.btn-sm,
.btn-small {
  padding: 3px 8px;
  font-size: 11px;
  min-height: 26px;
}

.btn-lg {
  padding: 10px 16px;
  font-size: var(--text-sm);
}

/* 按钮变体 */
.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3), 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.08));
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--accent-blue);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(59, 130, 246, 0.15));
  border-color: var(--accent-blue);
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.btn-secondary:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #f87171);
  color: white;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-danger:hover {
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
  transform: translateY(-2px);
}

.btn-danger:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-danger:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3);
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #06b6d4);
  color: white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-success:hover {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  transform: translateY(-2px);
}

.btn-success:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:focus {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
}

.btn-warning {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: white;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-warning:hover {
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
  transform: translateY(-2px);
}

.btn-warning:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-warning:focus {
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline:hover {
  background: var(--bg-glass);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
  transform: translateY(-2px);
}

.btn-outline:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.15);
}

.btn-outline:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.btn-link {
  background: transparent;
  border: none;
  color: var(--accent-blue);
  padding: 4px 8px;
  text-decoration: underline;
  transition: all 0.2s ease;
}

.btn-link:hover {
  color: var(--accent-blue);
  text-decoration: none;
  text-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
  transform: translateY(-1px);
}

.btn-link:active {
  transform: translateY(0);
}

/* 按钮 - 浅色主题 */
[data-theme="dark"] .btn-primary {
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

[data-theme="dark"] .btn-primary:hover {
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

[data-theme="dark"] .btn-secondary {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
  border-color: rgba(59, 130, 246, 0.2);
}

[data-theme="dark"] .btn-secondary:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.08));
}

[data-theme="dark"] .btn-outline {
  border-color: var(--border-glass);
}

[data-theme="dark"] .btn-outline:hover {
  background: var(--bg-glass);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* ========================================
   8. Cards & Containers
   ======================================== */

/* 统计卡片网格 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
  position: relative;
}

.stats-grid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(59, 130, 246, 0.02));
  pointer-events: none;
  z-index: 0;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  transition: var(--transition-fast);
  animation: fadeIn 0.5s ease backwards;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  z-index: 1;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  transition: var(--transition-normal);
}

.stat-card:hover::before {
  left: 100%;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition-normal);
}

.stat-card:hover::after {
  transform: scaleX(1);
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.stat-card h3 {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-tertiary);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition-fast);
}

.stat-card:hover h3 {
  color: var(--accent-blue);
}

.stat-card .value {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.stat-card:hover .value {
  color: var(--accent-blue);
}

/* 通用卡片 */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 12px;
  animation: fadeIn 0.5s ease;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition-normal);
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glass);
  transform: translateY(-2px);
}

.card h2 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.card:hover h2 {
  color: var(--accent-blue);
}

.card h2 span {
  animation: bounce 2s ease-in-out infinite;
}

/* 移动端卡片列表 */
.mobile-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mobile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  transition: var(--transition-fast);
  animation: fadeIn 0.4s ease backwards;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.mobile-card:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.mobile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition-fast);
}

.mobile-card:hover::before {
  opacity: 1;
}

.mobile-card:nth-child(1) { animation-delay: 0.05s; }
.mobile-card:nth-child(2) { animation-delay: 0.1s; }
.mobile-card:nth-child(3) { animation-delay: 0.15s; }
.mobile-card:nth-child(4) { animation-delay: 0.2s; }
.mobile-card:nth-child(5) { animation-delay: 0.25s; }
.mobile-card:nth-child(6) { animation-delay: 0.3s; }

.mobile-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  gap: 4px;
}

.mobile-card-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-all;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}

.mobile-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
}

.mobile-card-row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  line-height: 1.4;
}

.mobile-card-label {
  color: var(--text-muted);
  font-size: 9px;
}

.mobile-card-value {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 9px;
  transition: var(--transition-fast);
}

.mobile-card:hover .mobile-card-value {
  color: var(--accent-blue);
}

.mobile-card-footer {
  display: flex;
  gap: 4px;
  padding-top: 6px;
  border-top: 1px solid var(--border-glass);
  transition: var(--transition-fast);
}

.mobile-card:hover .mobile-card-footer {
  border-top-color: var(--border-glow);
}

.mobile-card-footer .btn {
  flex: 1;
  padding: 3px 4px;
  font-size: 9px;
  border-radius: var(--radius-sm);
  min-height: 22px;
}

/* ========================================
   9. Tables
   ======================================== */

/* 表格容器 */
.table-responsive {
  display: block;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.table-responsive:hover {
  box-shadow: var(--shadow-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  transition: var(--transition-fast);
}

table:hover {
  box-shadow: var(--shadow-md);
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-glass);
  transition: var(--transition-fast);
}

th {
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  font-size: var(--text-xs);
  letter-spacing: 0.5px;
  background: var(--bg-tertiary);
  position: sticky;
  top: 0;
  z-index: 1;
  transition: var(--transition-fast);
}

th:hover {
  background: var(--bg-glass);
  color: var(--accent-blue);
}

td {
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

tr:hover td {
  background: var(--bg-glass);
  color: var(--text-primary);
}

tr:hover td:first-child {
  border-left: 2px solid var(--accent-blue);
  border-left-color: var(--accent-blue);
}

/* ========================================
   10. Badges & Tags
   ======================================== */

/* 状态标签 */
.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
  white-space: nowrap;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
  text-align: center;
  min-width: 40px;
  height: 20px;
  line-height: 20px;
}

.status::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  transition: var(--transition-fast);
}

.status::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: var(--transition-normal);
}

.status:hover::after {
  left: 100%;
}

.status:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.status.active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
}

.status.active::before {
  background: var(--accent-green);
}

.status.active:hover {
  background: rgba(16, 185, 129, 0.2);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.status.pending {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-orange);
}

.status.pending::before {
  background: var(--accent-orange);
}

.status.pending:hover {
  background: rgba(245, 158, 11, 0.2);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.status.expired {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
}

.status.expired::before {
  background: var(--accent-red);
}

.status.expired:hover {
  background: rgba(239, 68, 68, 0.2);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.status.info {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
}

.status.info::before {
  background: var(--accent-blue);
}

.status.info:hover {
  background: rgba(59, 130, 246, 0.2);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.status.success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
}

.status.success::before {
  background: var(--accent-green);
}

.status.success:hover {
  background: rgba(16, 185, 129, 0.2);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.status.warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-orange);
}

.status.warning::before {
  background: var(--accent-orange);
}

.status.warning:hover {
  background: rgba(245, 158, 11, 0.2);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.status.danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
}

.status.danger::before {
  background: var(--accent-red);
}

.status.danger:hover {
  background: rgba(239, 68, 68, 0.2);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

/* 状态标签 - 浅色主题 */
[data-theme="dark"] .status {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border-glass);
}

[data-theme="dark"] .status.active {
  background: rgba(16, 185, 129, 0.1);
}

[data-theme="dark"] .status.pending {
  background: rgba(245, 158, 11, 0.1);
}

[data-theme="dark"] .status.expired {
  background: rgba(239, 68, 68, 0.1);
}

[data-theme="dark"] .status.info {
  background: rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] .status.success {
  background: rgba(16, 185, 129, 0.1);
}

[data-theme="dark"] .status.warning {
  background: rgba(245, 158, 11, 0.1);
}

[data-theme="dark"] .status.danger {
  background: rgba(239, 68, 68, 0.1);
}

/* 标签变体 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  background: var(--bg-glass);
  color: var(--text-secondary);
  border: 1px solid var(--border-glass);
  transition: var(--transition-fast);
}

.tag:hover {
  background: var(--bg-glass-hover);
  border-color: var(--accent-blue);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.tag-primary {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-blue);
  border-color: rgba(59, 130, 246, 0.2);
}

.tag-primary:hover {
  background: rgba(59, 130, 246, 0.2);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.tag-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
  border-color: rgba(16, 185, 129, 0.2);
}

.tag-success:hover {
  background: rgba(16, 185, 129, 0.2);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.tag-danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent-red);
  border-color: rgba(239, 68, 68, 0.2);
}

.tag-danger:hover {
  background: rgba(239, 68, 68, 0.2);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.tag-warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-orange);
  border-color: rgba(245, 158, 11, 0.2);
}

.tag-warning:hover {
  background: rgba(245, 158, 11, 0.2);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.tag-info {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-blue);
  border-color: rgba(59, 130, 246, 0.2);
}

.tag-info:hover {
  background: rgba(59, 130, 246, 0.2);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* 标签 - 浅色主题 */
[data-theme="dark"] .tag {
  background: rgba(255, 255, 255, 0.5);
  border-color: var(--border-glass);
}

[data-theme="dark"] .tag:hover {
  background: rgba(255, 255, 255, 0.7);
}

/* ========================================
   11. Animations
   ======================================== */

/* 关键帧动画 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 5px var(--accent-blue), 0 0 10px var(--accent-blue); }
  50% { box-shadow: 0 0 20px var(--accent-blue), 0 0 30px var(--accent-blue); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes floatUp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes floatDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

@keyframes floatLeft {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-10px); }
}

@keyframes floatRight {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(10px); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px var(--accent-blue), 0 0 10px var(--accent-blue); }
  50% { box-shadow: 0 0 20px var(--accent-blue), 0 0 30px var(--accent-blue); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spin-reverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes bounce-small {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
  20%, 40%, 60%, 80% { transform: translateX(4px); }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes scaleOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.8); }
}

@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 动画工具类 */
.animate-fade-in { animation: fadeIn 0.5s ease; }
.animate-fade-in-up { animation: fadeInUp 0.5s ease; }
.animate-fade-in-down { animation: fadeInDown 0.5s ease; }
.animate-fade-in-left { animation: fadeInLeft 0.5s ease; }
.animate-fade-in-right { animation: fadeInRight 0.5s ease; }
.animate-slide-in { animation: slideIn 0.3s ease; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
.animate-glow { animation: glow 2s ease-in-out infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-bounce { animation: bounce 2s ease-in-out infinite; }
.animate-shimmer { animation: shimmer 2s linear infinite; }
.animate-spin { animation: spin 1s linear infinite; }

/* ========================================
   12. Responsive Design
   ======================================== */

/* 移动端导航 */
@media (max-width: 768px) {
  .navbar {
    height: 50px;
    padding: 0 12px;
  }
  
  .logo {
    font-size: var(--text-sm);
  }
  
  .logo span:first-child {
    font-size: 16px;
  }
  
  .navbar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  
  .mobile-menu-toggle {
    display: flex;
    position: relative;
    z-index: 1002;
    cursor: pointer;
    width: 28px;
    height: 28px;
    font-size: 14px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    padding: 0;
  }
  
  .mobile-menu-toggle svg {
    transition: transform 0.3s ease;
  }
  
  .mobile-menu-toggle .hamburger-line {
    transform-origin: center;
    transition: all 0.3s ease;
  }
  
  .mobile-menu-toggle.active .hamburger-line.line-1 {
    transform: rotate(45deg) translate(0, 5px);
  }
  
  .mobile-menu-toggle.active .hamburger-line.line-2 {
    opacity: 0;
    transform: scaleX(0);
  }
  
  .mobile-menu-toggle.active .hamburger-line.line-3 {
    transform: rotate(-45deg) translate(0, -5px);
  }
  
  .nav-menu {
    display: none;
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    flex-direction: column;
    padding: 6px;
    gap: 3px;
    z-index: 999;
    list-style: none;
    box-shadow: var(--shadow-glass);
  }
  
  .nav-menu.active {
    display: flex;
    animation: slideIn 0.3s ease;
  }
  
  .nav-menu li a {
    padding: 10px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
  }
  
  .nav-submenu-items {
    margin-left: 12px;
    padding-left: 8px;
    border-left: 2px solid var(--border-glass);
  }
  
  .nav-submenu-items a {
    font-size: 12px;
    padding: 8px 10px;
  }
  
  main {
    padding: 64px 10px 20px;
  }
  
  .container {
    padding: 0 10px;
  }
  
  .search-filter {
    flex-wrap: nowrap;
    gap: 4px;
  }
  
  .search-filter input,
  .search-filter select {
    flex: 1;
    min-width: 0;
    padding: 6px 8px;
    font-size: 10px;
  }
  
  .search-filter .btn {
    padding: 6px 8px;
    font-size: 10px;
    white-space: nowrap;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-bottom: 8px;
  }
  
  .stat-card {
    padding: 10px 8px;
  }
  
  .stat-card h3 {
    font-size: 10px;
  }
  
  .stat-card .value {
    font-size: 16px;
  }
  
  .card {
    padding: 12px;
    margin-bottom: 10px;
  }
  
  .card h2 {
    font-size: var(--text-base);
  }
  
  .mobile-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  
  .mobile-card {
    padding: 8px 10px;
  }
  
  .mobile-card-title {
    font-size: 10px;
  }
  
  .mobile-card-value {
    font-size: 9px;
  }
  
  .mobile-card-footer .btn {
    padding: 4px 6px;
    font-size: 9px;
  }
  
  .status {
    padding: 2px 5px;
    font-size: 9px;
  }
  
  .status::before {
    width: 4px;
    height: 4px;
  }
  
  .card {
    padding: 10px;
    margin-bottom: 8px;
  }
  
  .card h2 {
    font-size: 12px;
  }
  
  .mobile-card-footer .btn {
    padding: 3px 5px;
    font-size: 8px;
  }
  
  .pagination {
    padding: 8px 0;
    gap: 3px;
  }
  
  .pagination-item {
    min-width: 22px;
    height: 22px;
    padding: 0 4px;
    font-size: 9px;
  }
  
  .pagination-ellipsis {
    min-width: 18px;
    height: 18px;
    font-size: 8px;
  }
  
  /* 移动端表格适配 */
  .table-responsive {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  table {
    font-size: var(--text-xs);
    min-width: 100%;
  }
  
  th, td {
    padding: 8px 10px;
    white-space: nowrap;
  }
  
  th {
    font-size: 10px;
  }
}

/* 小屏幕手机优化 */
@media (max-width: 380px) {
  .navbar {
    height: 48px;
  }
  
  .logo {
    font-size: 10px;
  }
  
  .logo span:first-child {
    font-size: 14px;
  }
  
  .mobile-menu-toggle {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }
  
  .nav-menu {
    top: 48px;
  }
  
  main {
    padding: 58px 8px 16px;
  }
  
  .container {
    padding: 0 8px;
  }
  
  .search-filter {
    gap: 3px;
  }
  
  .search-filter input,
  .search-filter select {
    padding: 5px 6px;
    font-size: 9px;
  }
  
  .search-filter .btn {
    padding: 5px 6px;
    font-size: 9px;
  }
  
  .btn {
    padding: 8px 12px;
    font-size: 10px;
  }
  
  .btn-sm,
  .btn-small {
    padding: 2px 6px;
    font-size: 10px;
    min-height: 22px;
  }
  
  .btn-lg {
    padding: 10px 16px;
    font-size: 11px;
  }
  
  .stats-grid {
    gap: 4px;
    margin-bottom: 6px;
  }
  
  .stat-card {
    padding: 8px 6px;
  }
  
  .stat-card h3 {
    font-size: 9px;
  }
  
  .stat-card .value {
    font-size: 14px;
  }
  
  .card {
    padding: 10px;
    margin-bottom: 8px;
  }
  
  .card h2 {
    font-size: 13px;
  }
  
  .mobile-cards {
    grid-template-columns: 1fr;
  }
  
  .status {
    padding: 2px 4px;
    font-size: 8px;
  }
  
  .status::before {
    width: 3px;
    height: 3px;
  }
  
  .card {
    padding: 8px;
    margin-bottom: 6px;
  }
  
  .card h2 {
    font-size: 11px;
  }
  
  .mobile-card-footer .btn {
    padding: 2px 4px;
    font-size: 7px;
  }
  
  .pagination {
    padding: 6px 0;
    gap: 2px;
  }
  
  .pagination-item {
    min-width: 20px;
    height: 20px;
    padding: 0 3px;
    font-size: 8px;
  }
  
  .pagination-ellipsis {
    min-width: 16px;
    height: 16px;
    font-size: 7px;
  }
}

/* 桌面端优化 */
@media (min-width: 769px) {
  :root {
    --text-xs: 11px;
    --text-sm: 13px;
    --text-base: 14px;
    --text-lg: 16px;
    --text-xl: 20px;
    --text-2xl: 24px;
  }
  
  .navbar {
    height: 50px;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
  }
  
  .logo {
    position: absolute;
    left: 30px;
    font-size: var(--text-base);
  }
  
  .logo span:first-child {
    font-size: 20px;
  }
  
  .navbar-actions {
    position: absolute;
    right: 40px;
    order: unset;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .mobile-menu-toggle {
    display: none;
  }
  
  .theme-toggle {
    order: unset;
    width: 40px;
    height: 40px;
    font-size: 18px;
    background: transparent;
    border: none;
    color: var(--text-primary);
  }
  
  .theme-toggle:hover {
    background: var(--bg-glass);
    transform: scale(1.05);
  }
  
  .nav-menu {
    position: static;
    display: flex;
    flex-direction: row;
    background: transparent;
    border: none;
    padding: 0;
    gap: 8px;
  }
  
  .nav-menu li a {
    padding: 10px 18px;
    font-size: var(--text-sm);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
  }
  
  .nav-menu li a:hover {
    background: var(--bg-glass);
  }
  
  .nav-menu li a.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
  }
  
  .nav-submenu {
    position: relative;
  }
  
  .nav-submenu-items {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 8px;
    margin: 0;
    box-shadow: var(--shadow-glass);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: none;
  }
  
  /* 添加一个伪元素作为间隙的桥接，防止鼠标移出时菜单收起 */
  .nav-submenu-items::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
    background: transparent;
  }
  
  .nav-submenu:hover .nav-submenu-items {
    display: flex;
    flex-direction: column;
  }
  
  .nav-submenu-items a {
    font-size: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    white-space: nowrap;
  }
  
  .nav-submenu-items a:hover {
    background: var(--bg-glass-hover);
  }
  
  .nav-submenu-items a.active {
    background: var(--gradient-primary);
    color: white;
  }
  
  main {
    padding: 64px 24px 20px;
    max-width: 1400px;
    margin: 0 auto;
  }
  
  .container {
    max-width: 1400px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 8px;
  }
  
  .stat-card {
    padding: 10px 12px;
  }
  
  .stat-card h3 {
    font-size: 11px;
    margin-bottom: 4px;
  }
  
  .stat-card .value {
    font-size: 18px;
  }
  
  .card {
    padding: 16px;
    margin-bottom: 10px;
  }
  
  .mobile-cards {
    display: none;
  }
  
  .table-responsive {
    display: block;
    overflow-x: auto;
  }
  
  table {
    font-size: var(--text-sm);
  }
  
  th, td {
    padding: 12px 16px;
  }
  
  th {
    font-size: var(--text-xs);
  }
  
  .status {
    gap: 3px;
    padding: 3px 8px;
    font-size: var(--text-xs);
  }
  
  .status::before {
    width: 5px;
    height: 5px;
  }
}

/* 大屏幕优化 */
@media (min-width: 1200px) {
  .container {
    max-width: 1400px;
  }
  
  .stats-grid {
    gap: 12px;
  }
  
  .stat-card {
    padding: 14px 16px;
  }
  
  .stat-card .value {
    font-size: 20px;
  }
}

/* ========================================
   13. Print Styles
   ======================================== */

@media print {
  *, *::before, *::after {
    background: transparent;
    color: #000;
    box-shadow: none;
    text-shadow: none;
  }
  
  a, a:visited {
    text-decoration: underline;
  }
  
  a[href]::after {
    content: " (" attr(href) ")";
  }
  
  a[href^="#"]::after, a[href^="javascript:"]::after {
    content: "";
  }
  
  pre, blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }
  
  thead {
    display: table-header-group;
  }
  
  tr, img {
    page-break-inside: avoid;
  }
  
  img {
    max-width: 100%;
  }
  
  @page {
    margin: 2cm;
  }
  
  body {
    min-height: auto;
  }
  
  .navbar, .footer, .mobile-menu-toggle, .theme-toggle {
    display: none;
  }
  
  main {
    padding: 0;
  }
  
  .card, .stat-card {
    border: 1px solid #ddd;
    break-inside: avoid;
  }
}

/* ========================================
   14. Accessibility
   ======================================== */

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
  :root {
    --border-glass: rgba(255, 255, 255, 0.3);
    --border-glow: rgba(139, 92, 246, 0.8);
  }
  
  [data-theme="dark"] {
    --border-glass: rgba(0, 0, 0, 0.3);
    --border-glow: rgba(139, 92, 246, 0.8);
  }
  
  .btn {
    border: 1px solid currentColor;
  }
  
  a {
    text-decoration: underline;
    text-underline-offset: 2px;
  }
}

/* 减少动画模式 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* 聚焦可见性 */
:focus {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

/* 跳过导航链接 */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent-blue);
  color: white;
  padding: 8px;
  z-index: 100;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* 无障碍标签 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================
   15. Utility Classes
   ======================================== */

/* 显示工具类 */
.d-none { display: none; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.d-grid { display: grid; }

/* 隐藏工具类（仅屏幕阅读器） */
.hidden { display: none; }
.invisible { visibility: hidden; }

/* 边距工具类 */
.m-0 { margin: 0; }
.m-1 { margin: 4px; }
.m-2 { margin: 8px; }
.m-3 { margin: 12px; }
.m-4 { margin: 16px; }
.m-5 { margin: 20px; }
.m-auto { margin: auto; }

.mx-0 { margin-left: 0; margin-right: 0; }
.mx-1 { margin-left: 4px; margin-right: 4px; }
.mx-2 { margin-left: 8px; margin-right: 8px; }
.mx-3 { margin-left: 12px; margin-right: 12px; }
.mx-4 { margin-left: 16px; margin-right: 16px; }
.mx-5 { margin-left: 20px; margin-right: 20px; }
.mx-auto { margin-left: auto; margin-right: auto; }

.my-0 { margin-top: 0; margin-bottom: 0; }
.my-1 { margin-top: 4px; margin-bottom: 4px; }
.my-2 { margin-top: 8px; margin-bottom: 8px; }
.my-3 { margin-top: 12px; margin-bottom: 12px; }
.my-4 { margin-top: 16px; margin-bottom: 16px; }
.my-5 { margin-top: 20px; margin-bottom: 20px; }
.my-auto { margin-top: auto; margin-bottom: auto; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }
.mt-auto { margin-top: auto; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }
.mb-auto { margin-bottom: auto; }

.ml-0 { margin-left: 0; }
.ml-1 { margin-left: 4px; }
.ml-2 { margin-left: 8px; }
.ml-3 { margin-left: 12px; }
.ml-4 { margin-left: 16px; }
.ml-5 { margin-left: 20px; }
.ml-auto { margin-left: auto; }

.mr-0 { margin-right: 0; }
.mr-1 { margin-right: 4px; }
.mr-2 { margin-right: 8px; }
.mr-3 { margin-right: 12px; }
.mr-4 { margin-right: 16px; }
.mr-5 { margin-right: 20px; }
.mr-auto { margin-right: auto; }

/* 内边距工具类 */
.p-0 { padding: 0; }
.p-1 { padding: 4px; }
.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.p-5 { padding: 20px; }

.px-0 { padding-left: 0; padding-right: 0; }
.px-1 { padding-left: 4px; padding-right: 4px; }
.px-2 { padding-left: 8px; padding-right: 8px; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.px-5 { padding-left: 20px; padding-right: 20px; }

.py-0 { padding-top: 0; padding-bottom: 0; }
.py-1 { padding-top: 4px; padding-bottom: 4px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-5 { padding-top: 20px; padding-bottom: 20px; }

.pt-0 { padding-top: 0; }
.pt-1 { padding-top: 4px; }
.pt-2 { padding-top: 8px; }
.pt-3 { padding-top: 12px; }
.pt-4 { padding-top: 16px; }
.pt-5 { padding-top: 20px; }

.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: 4px; }
.pb-2 { padding-bottom: 8px; }
.pb-3 { padding-bottom: 12px; }
.pb-4 { padding-bottom: 16px; }
.pb-5 { padding-bottom: 20px; }

.pl-0 { padding-left: 0; }
.pl-1 { padding-left: 4px; }
.pl-2 { padding-left: 8px; }
.pl-3 { padding-left: 12px; }
.pl-4 { padding-left: 16px; }
.pl-5 { padding-left: 20px; }

.pr-0 { padding-right: 0; }
.pr-1 { padding-right: 4px; }
.pr-2 { padding-right: 8px; }
.pr-3 { padding-right: 12px; }
.pr-4 { padding-right: 16px; }
.pr-5 { padding-right: 20px; }

/* 文本工具类 */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

.text-muted { color: var(--text-muted); }
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-accent-blue { color: var(--accent-blue); }
.text-accent-purple { color: var(--accent-purple); }
.text-accent-green { color: var(--accent-green); }
.text-accent-red { color: var(--accent-red); }
.text-accent-orange { color: var(--accent-orange); }

.font-weight-light { font-weight: 300; }
.font-weight-normal { font-weight: 400; }
.font-weight-medium { font-weight: 500; }
.font-weight-semibold { font-weight: 600; }
.font-weight-bold { font-weight: 700; }

.text-uppercase { text-transform: uppercase; }
.text-lowercase { text-transform: lowercase; }
.text-capitalize { text-transform: capitalize; }

/* 尺寸工具类 */
.w-100 { width: 100%; }
.w-75 { width: 75%; }
.w-50 { width: 50%; }
.w-25 { width: 25%; }
.w-auto { width: auto; }

.h-100 { height: 100%; }
.h-75 { height: 75%; }
.h-50 { height: 50%; }
.h-25 { height: 25%; }
.h-auto { height: auto; }

.min-w-0 { min-width: 0; }
.min-w-100 { min-width: 100%; }

.max-w-100 { max-width: 100%; }

/* 位置工具类 */
.position-static { position: static; }
.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }
.position-sticky { position: sticky; }

.top-0 { top: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }

/* 间距工具类 */
.gap-0 { gap: 0; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }

/* 圆角工具类 */
.rounded-0 { border-radius: 0; }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

/* 边框工具类 */
.border-0 { border: 0; }
.border-1 { border: 1px solid var(--border-glass); }
.border-2 { border: 2px solid var(--border-glass); }

.border-top-0 { border-top: 0; }
.border-bottom-0 { border-bottom: 0; }
.border-left-0 { border-left: 0; }
.border-right-0 { border-right: 0; }

/* 阴影工具类 */
.shadow-none { box-shadow: none; }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* 状态工具类 */
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.cursor-not-allowed { cursor: not-allowed; }

.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }

.select-none { user-select: none; }
.select-text { user-select: text; }

.opacity-0 { opacity: 0; }
.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* Flex 工具类 */
.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.flex-row-reverse { flex-direction: row-reverse; }
.flex-column-reverse { flex-direction: column-reverse; }

.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-wrap-reverse { flex-wrap: wrap-reverse; }

.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-evenly { justify-content: space-evenly; }

.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }
.align-center { align-items: center; }
.align-baseline { align-items: baseline; }
.align-stretch { align-items: stretch; }

.self-start { align-self: flex-start; }
.self-end { align-self: flex-end; }
.self-center { align-self: center; }
.self-baseline { align-self: baseline; }
.self-stretch { align-self: stretch; }

.flex-1 { flex: 1; }
.flex-auto { flex: auto; }
.flex-none { flex: none; }

.order-0 { order: 0; }
.order-1 { order: 1; }
.order-2 { order: 2; }
.order-3 { order: 3; }
.order-4 { order: 4; }
.order-5 { order: 5; }
.order-last { order: 9999; }

/* Grid 工具类 */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

/* 其他工具类 */
.overflow-hidden { overflow: hidden; }
.overflow-scroll { overflow: scroll; }
.overflow-auto { overflow: auto; }
.overflow-x-hidden { overflow-x: hidden; }
.overflow-y-hidden { overflow-y: hidden; }

.invisible { visibility: hidden; }
.visible { visibility: visible; }

/* 动画工具类 */
.animate-none { animation: none; }
.transition-none { transition: none; }
.transition-all { transition: all; }
.transition-fast { transition: var(--transition-fast); }
.transition-normal { transition: var(--transition-normal); }
.transition-slow { transition: var(--transition-slow); }

/* ========================================
   16. Custom Animations (Original)
   ======================================== */

/* 漂浮的可爱元素 */
.cute-bg-elements {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.cute-element {
  position: absolute;
  font-size: 24px;
  opacity: 0.2;
  animation: float-around 25s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.cute-element:nth-child(1) { top: 5%; left: 3%; animation-delay: 0s; font-size: 28px; }
.cute-element:nth-child(2) { top: 15%; right: 5%; animation-delay: 2s; font-size: 20px; }
.cute-element:nth-child(3) { top: 25%; left: 8%; animation-delay: 4s; font-size: 22px; }
.cute-element:nth-child(4) { top: 35%; right: 3%; animation-delay: 6s; font-size: 26px; }
.cute-element:nth-child(5) { top: 45%; left: 5%; animation-delay: 8s; font-size: 18px; }
.cute-element:nth-child(6) { top: 55%; right: 6%; animation-delay: 10s; font-size: 24px; }
.cute-element:nth-child(7) { top: 65%; left: 4%; animation-delay: 12s; font-size: 20px; }
.cute-element:nth-child(8) { top: 75%; right: 8%; animation-delay: 14s; font-size: 22px; }
.cute-element:nth-child(9) { top: 85%; left: 6%; animation-delay: 16s; font-size: 26px; }
.cute-element:nth-child(10) { top: 12%; left: 15%; animation-delay: 18s; font-size: 18px; }
.cute-element:nth-child(11) { top: 42%; right: 12%; animation-delay: 20s; font-size: 24px; }
.cute-element:nth-child(12) { top: 68%; left: 10%; animation-delay: 22s; font-size: 20px; }

/* 彩色泡泡 */
.bubble {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.4), rgba(186, 218, 255, 0.4));
  backdrop-filter: blur(2px);
  pointer-events: none;
  animation: bubble-float 20s ease-in-out infinite;
}

.bubble:nth-child(1) { width: 60px; height: 60px; bottom: 10%; left: 10%; animation-delay: 0s; }
.bubble:nth-child(2) { width: 40px; height: 40px; bottom: 20%; right: 15%; animation-delay: 3s; }
.bubble:nth-child(3) { width: 50px; height: 50px; top: 30%; left: 20%; animation-delay: 6s; }
.bubble:nth-child(4) { width: 35px; height: 35px; top: 50%; right: 25%; animation-delay: 9s; }
.bubble:nth-child(5) { width: 45px; height: 45px; bottom: 30%; left: 30%; animation-delay: 12s; }

/* 闪烁星星 */
.star {
  position: absolute;
  font-size: 14px;
  opacity: 0.15;
  animation: star-twinkle 3s ease-in-out infinite;
}

.star:nth-child(1) { top: 8%; left: 20%; animation-delay: 0s; }
.star:nth-child(2) { top: 18%; right: 15%; animation-delay: 0.5s; }
.star:nth-child(3) { top: 38%; left: 25%; animation-delay: 1s; }
.star:nth-child(4) { top: 58%; right: 20%; animation-delay: 1.5s; }
.star:nth-child(5) { top: 78%; left: 18%; animation-delay: 2s; }
.star:nth-child(6) { top: 28%; right: 28%; animation-delay: 2.5s; }
.star:nth-child(7) { top: 48%; left: 30%; animation-delay: 0.3s; }
.star:nth-child(8) { top: 68%; right: 12%; animation-delay: 0.8s; }

/* 动态光晕背景 */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
  animation: orb-float 20s ease-in-out infinite;
}

.glow-orb:nth-child(1) {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #3b82f6, #60a5fa, #93c5fd);
  top: -150px;
  left: -150px;
  animation-delay: 0s;
}

.glow-orb:nth-child(2) {
  width: 350px;
  height: 350px;
  background: linear-gradient(135deg, #2563eb, #3b82f6, #60a5fa);
  bottom: -120px;
  right: -120px;
  animation-delay: 7s;
}

.glow-orb:nth-child(3) {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #60a5fa, #93c5fd, #bfdbfe);
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 14s;
}

.glow-orb:nth-child(4) {
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, #38bdf8, #22d3ee, #2dd4bf);
  top: 60%;
  left: 10%;
  animation-delay: 4s;
}

.glow-orb:nth-child(5) {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #fbbf24, #fb923c, #f87171);
  top: 10%;
  right: 30%;
  animation-delay: 10s;
}

/* 动画定义 */
@keyframes float-around {
  0%, 100% { 
    transform: translate(0, 0) rotate(0deg); 
  }
  25% { 
    transform: translate(20px, -30px) rotate(5deg); 
  }
  50% { 
    transform: translate(-10px, -50px) rotate(-5deg); 
  }
  75% { 
    transform: translate(-20px, -20px) rotate(3deg); 
  }
}

@keyframes orb-float {
  0%, 100% { 
    transform: translate(0, 0) scale(1); 
  }
  33% { 
    transform: translate(30px, -30px) scale(1.1); 
  }
  66% { 
    transform: translate(-20px, 20px) scale(0.9); 
  }
}

@keyframes bubble-float {
  0%, 100% { 
    transform: translate(0, 0) scale(1);
    opacity: 0.4;
  }
  25% { 
    transform: translate(15px, -25px) scale(1.05);
    opacity: 0.6;
  }
  50% { 
    transform: translate(-10px, -40px) scale(0.95);
    opacity: 0.5;
  }
  75% { 
    transform: translate(-15px, -20px) scale(1.02);
    opacity: 0.55;
  }
}

@keyframes star-twinkle {
  0%, 100% { 
    opacity: 0.2;
    transform: scale(1);
  }
  50% { 
    opacity: 0.5;
    transform: scale(1.2);
  }
}

/* 页脚 */
.footer {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-glass);
  padding: 8px 16px;
  text-align: center;
  margin-top: 20px;
  position: relative;
}

/* 固定底部 - 用于非首页 */
.footer-fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin-top: 0;
  z-index: 100;
}

/* 为固定底部添加内边距，防止内容被遮挡 */
body.has-fixed-footer {
  padding-bottom: 50px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer p {
  font-size: 11px;
  color: var(--text-tertiary);
  margin: 0;
}

/* 页面标题 */
.page-header {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 12px;
  margin-bottom: 8px;
  text-align: center;
  animation: fadeIn 0.5s ease;
}

.page-header h1 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: 4px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header p {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

/* ==================== 分页组件样式 ==================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 0;
  margin-top: 16px;
  flex-wrap: wrap;
  transition: var(--transition-fast);
}

/* 固定底部分页 - 用于列表页面 */
.pagination-fixed {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 12px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 100;
  margin-top: 0;
}

.pagination-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  border: 1px solid #e5e7eb;
  transition: var(--transition-fast);
  cursor: pointer;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.pagination-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: var(--transition-normal);
}

.pagination-item:hover::before {
  left: 100%;
}

.pagination-item:hover:not(.disabled):not(.active) {
  background: var(--bg-hover);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.pagination-item:active:not(.disabled):not(.active) {
  transform: translateY(0);
  box-shadow: none;
}

.pagination-item.active {
  background: var(--gradient-primary);
  color: white;
  border-color: var(--accent-blue);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  position: relative;
  font-weight: 600;
}

.pagination-item.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
}

.pagination-item.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-item svg {
  width: 12px;
  height: 12px;
  transition: var(--transition-fast);
}

.pagination-item:hover:not(.disabled):not(.active) svg {
  transform: scale(1.1);
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 4px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 500;
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
  cursor: default;
}

.pagination-ellipsis:hover {
  background: var(--bg-hover);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

/* 移动端分页优化 */
@media (max-width: 768px) {
  .pagination {
    gap: 4px;
    padding: 12px 0;
  }
  
  .pagination-item {
    min-width: 24px;
    height: 24px;
    padding: 0 4px;
    font-size: 10px;
  }
  
  .pagination-ellipsis {
    min-width: 20px;
    height: 20px;
    font-size: 9px;
  }
}

@media (max-width: 380px) {
  .pagination {
    gap: 3px;
    padding: 10px 0;
  }
  
  .pagination-item {
    min-width: 22px;
    height: 22px;
    padding: 0 3px;
    font-size: 9px;
  }
  
  .pagination-ellipsis {
    min-width: 18px;
    height: 18px;
    font-size: 8px;
  }
}

/* ========================================
   17. Additional Components
   ======================================== */

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
  background: var(--border-glass);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

::-webkit-scrollbar-corner {
  background: var(--bg-tertiary);
}

/* 滚动条 - 浅色主题 */
[data-theme="dark"] ::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: var(--border-glass);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* 滚动条 - 高对比度模式 */
@media (prefers-contrast: high) {
  ::-webkit-scrollbar-thumb {
    border: 2px solid var(--text-primary);
  }
}

/* 加载动画 */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-glass);
  border-top-color: var(--accent-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  transition: var(--transition-fast);
}

.spinner:hover {
  transform: scale(1.1);
}

.spinner-sm {
  width: 16px;
  height: 16px;
  border-width: 1.5px;
}

.spinner-sm:hover {
  transform: scale(1.15);
}

.spinner-lg {
  width: 32px;
  height: 32px;
  border-width: 3px;
}

.spinner-lg:hover {
  transform: scale(1.2);
}

/* 加载动画 - 浅色主题 */
[data-theme="dark"] .spinner {
  border-color: var(--border-glass);
  border-top-color: var(--accent-blue);
}

[data-theme="dark"] .spinner-sm {
  border-width: 1.5px;
}

[data-theme="dark"] .spinner-lg {
  border-width: 3px;
}

/* 折叠面板 */
.accordion {
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  background: var(--bg-card);
  transition: var(--transition-fast);
}

.accordion:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-sm);
}

.accordion-item {
  border-bottom: 1px solid var(--border-glass);
  transition: var(--transition-fast);
}

.accordion-item:hover {
  background: var(--bg-glass);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  transition: var(--transition-fast);
  position: relative;
}

.accordion-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.accordion-header:hover::before {
  opacity: 0.05;
}

.accordion-header:hover {
  background: var(--bg-glass);
  color: var(--accent-blue);
}

.accordion-header::after {
  content: '+';
  font-size: 18px;
  transition: transform 0.3s ease;
  color: var(--accent-blue);
}

.accordion-header.active::after {
  content: '−';
}

.accordion-content {
  padding: 12px 16px;
  display: none;
  border-top: 1px solid var(--border-glass);
  animation: slideIn 0.3s ease;
  background: var(--bg-card);
}

.accordion-content.active {
  display: block;
}


/* 工具提示 */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: var(--z-tooltip);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-glass);
  max-width: 200px;
  word-wrap: break-word;
}

.tooltip::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  border: 6px solid transparent;
  border-top-color: var(--bg-tertiary);
  opacity: 0;
  transition: all 0.2s ease;
  pointer-events: none;
}

.tooltip:hover::before,
.tooltip:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-12px);
}

.tooltip.top::before {
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
}

.tooltip.top::after {
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(0);
}

.tooltip.bottom::before {
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
}

.tooltip.bottom::after {
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  border-top-color: transparent;
  border-bottom-color: var(--bg-tertiary);
}

.tooltip.left::before {
  right: 100%;
  top: 50%;
  transform: translateX(8px) translateY(-50%);
}

.tooltip.left::after {
  right: 100%;
  top: 50%;
  transform: translateX(0) translateY(-50%);
  border-top-color: transparent;
  border-left-color: var(--bg-tertiary);
}

.tooltip.right::before {
  left: 100%;
  top: 50%;
  transform: translateX(-8px) translateY(-50%);
}

.tooltip.right::after {
  left: 100%;
  top: 50%;
  transform: translateX(0) translateY(-50%);
  border-top-color: transparent;
  border-right-color: var(--bg-tertiary);
}

/* 进度条 */
.progress {
  width: 100%;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s linear infinite;
}

/* 警告框 */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--accent-red);
  color: var(--accent-red);
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--accent-orange);
  color: var(--accent-orange);
}

.alert-info {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid var(--accent-blue);
  color: var(--accent-blue);
}

/* 分割线 */
.divider {
  height: 1px;
  background: var(--border-glass);
  margin: 16px 0;
}

.divider-vertical {
  width: 1px;
  height: 24px;
  background: var(--border-glass);
  margin: 0 16px;
  display: inline-block;
  vertical-align: middle;
}

/* 背景渐变动画 */
.bg-gradient-animated {
  background-size: 200% 200%;
  animation: gradient 3s ease infinite;
}

/* ========================================
   18. Dark/Light Theme Utilities
   ======================================== */

/* 深色主题工具类 */
.dark\\:hidden { display: none; }
.dark\\:block { display: none; }
.dark\\:flex { display: none; }
.dark\\:inline-flex { display: none; }
.dark\\:grid { display: none; }

[data-theme="dark"] .dark\\:hidden { display: none; }
[data-theme="dark"] .dark\\:block { display: block; }
[data-theme="dark"] .dark\\:flex { display: flex; }
[data-theme="dark"] .dark\\:inline-flex { display: inline-flex; }
[data-theme="dark"] .dark\\:grid { display: grid; }

/* 浅色主题工具类 */
.light\\:hidden { display: none; }
.light\\:block { display: none; }
.light\\:flex { display: none; }
.light\\:inline-flex { display: none; }
.light\\:grid { display: none; }

[data-theme="dark"] .light\\:hidden { display: block; }
[data-theme="dark"] .light\\:block { display: none; }
[data-theme="dark"] .light\\:flex { display: none; }
[data-theme="dark"] .light\\:inline-flex { display: none; }
[data-theme="dark"] .light\\:grid { display: none; }

/* ========================================
   19. Print Utilities
   ======================================== */

@media print {
  .print\\:hidden { display: none; }
  .print\\:block { display: block; }
  .print\\:flex { display: flex; }
  .print\\:inline-flex { display: inline-flex; }
  .print\\:grid { display: grid; }
}

/* ========================================
   20. Responsive Utilities
   ======================================== */

/* 移动端隐藏 */
.hidden-xs, .hidden-sm, .hidden-md, .hidden-lg, .hidden-xl {
  display: none;
}

/* 桌面端隐藏 */
.visible-xs, .visible-sm, .visible-md, .visible-lg, .visible-xl {
  display: block;
}

/* 响应式显示控制 */
@media (max-width: 768px) {
  .hidden-xs { display: none; }
  .visible-xs { display: block; }
  .hidden-sm { display: block; }
  .visible-sm { display: none; }
  .hidden-md { display: block; }
  .visible-md { display: none; }
  .hidden-lg { display: block; }
  .visible-lg { display: none; }
  .hidden-xl { display: block; }
  .visible-xl { display: none; }
  
  /* 手机版按钮优化 */
  .btn {
    padding: 4px 8px;
    font-size: 11px;
    min-height: 28px;
  }
  
  .btn-sm {
    padding: 3px 6px;
    font-size: 10px;
    min-height: 24px;
  }
  
  .btn-xs {
    padding: 2px 4px;
    font-size: 9px;
    min-height: 18px;
  }
  
  /* 手机版状态标签优化 */
  .status {
    padding: 1px 4px;
    font-size: 9px;
    min-width: 32px;
    gap: 2px;
    height: 18px;
    line-height: 18px;
  }
  
  .status::before {
    width: 3px;
    height: 3px;
  }
}

@media (min-width: 769px) and (max-width: 992px) {
  .hidden-xs { display: block; }
  .visible-xs { display: none; }
  .hidden-sm { display: none; }
  .visible-sm { display: block; }
  .hidden-md { display: block; }
  .visible-md { display: none; }
  .hidden-lg { display: block; }
  .visible-lg { display: none; }
  .hidden-xl { display: block; }
  .visible-xl { display: none; }
}

@media (min-width: 993px) and (max-width: 1200px) {
  .hidden-xs { display: block; }
  .visible-xs { display: none; }
  .hidden-sm { display: block; }
  .visible-sm { display: none; }
  .hidden-md { display: none; }
  .visible-md { display: block; }
  .hidden-lg { display: block; }
  .visible-lg { display: none; }
  .hidden-xl { display: block; }
  .visible-xl { display: none; }
}

@media (min-width: 1201px) and (max-width: 1400px) {
  .hidden-xs { display: block; }
  .visible-xs { display: none; }
  .hidden-sm { display: block; }
  .visible-sm { display: none; }
  .hidden-md { display: block; }
  .visible-md { display: none; }
  .hidden-lg { display: none; }
  .visible-lg { display: block; }
  .hidden-xl { display: block; }
  .visible-xl { display: none; }
}

@media (min-width: 1401px) {
  .hidden-xs { display: block; }
  .visible-xs { display: none; }
  .hidden-sm { display: block; }
  .visible-sm { display: none; }
  .hidden-md { display: block; }
  .visible-md { display: none; }
  .hidden-lg { display: block; }
  .visible-lg { display: none; }
  .hidden-xl { display: none; }
  .visible-xl { display: block; }
}

/* ========================================
   21. Performance Optimizations
   ======================================== */

/* GPU 加速 */
.gpu-accelerated {
  transform: translateZ(0);
  will-change: transform;
}

/* 减少重排 */
.reduce-repaint {
  contain: layout paint style;
}

/* 预加载 */
.preload {
  rel: preload;
}




        .example-section {
            margin-bottom: 30px;
        }
        
        .example-section h2 {
            font-size: 16px;
            margin-bottom: 16px;
            color: var(--text-secondary);
        }

        /* 基础表单 */
        .form-group {
            margin-bottom: 16px;
        }
        
        .form-group label {
            display: block;
            font-size: 13px;
            font-weight: 600;
            margin-bottom: 6px;
            color: var(--text-secondary);
        }
        
        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            box-sizing: border-box;
        }
        
        /* 双列表单 */
        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
        }
        
        /* 内联表单 */
        .form-inline {
            display: flex;
            gap: 12px;
            align-items: flex-end;
            flex-wrap: wrap;
        }
        
        .form-inline .form-group {
            flex: 1;
            min-width: 200px;
            margin-bottom: 0;
        }
        
        /* 带图标的输入框 */
        .input-with-icon {
            position: relative;
        }
        
        .input-with-icon .input-icon {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 16px;
            color: var(--text-muted);
            z-index: 2;
            pointer-events: none;
        }
        
        .input-with-icon .form-control {
            padding-left: 42px;
            box-sizing: border-box;
        }
        
        /* 复选框和单选框 */
        .checkbox-group,
        .radio-group {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        
        .checkbox-item,
        .radio-item {
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            padding: 8px;
            border-radius: var(--radius-md);
            transition: all 0.2s ease;
        }
        
        .checkbox-item:hover,
        .radio-item:hover {
            background: var(--bg-glass);
        }
        
        .checkbox-item input,
        .radio-item input {
            width: 18px;
            height: 18px;
            accent-color: var(--accent-purple);
        }
        
        .checkbox-item label,
        .radio-item label {
            font-size: 13px;
            cursor: pointer;
            margin: 0;
        }
        
        /* 开关样式 */
        .toggle-group {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        
        .toggle-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px;
            background: var(--bg-glass);
            border-radius: var(--radius-md);
        }
        
        .toggle-item .toggle-info {
            display: flex;
            flex-direction: column;
        }
        
        .toggle-item .toggle-title {
            font-size: 14px;
            font-weight: 500;
        }
        
        .toggle-item .toggle-desc {
            font-size: 11px;
            color: var(--text-muted);
        }
        
        /* 文件上传 */
        .file-upload {
            border: 2px dashed var(--border-glass);
            border-radius: var(--radius-lg);
            padding: 40px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .file-upload:hover {
            border-color: var(--accent-purple);
            background: var(--bg-glass);
        }
        
        .file-upload .upload-icon {
            font-size: 48px;
            margin-bottom: 12px;
        }
        
        .file-upload .upload-text {
            font-size: 14px;
            color: var(--text-secondary);
            margin-bottom: 8px;
        }
        
        .file-upload .upload-hint {
            font-size: 12px;
            color: var(--text-muted);
        }
        
        /* 步骤表单 */
        .steps {
            display: flex;
            justify-content: space-between;
            margin-bottom: 30px;
            position: relative;
        }
        
        .steps::before {
            content: '';
            position: absolute;
            top: 20px;
            left: 0;
            right: 0;
            height: 2px;
            background: var(--border-glass);
            z-index: 0;
        }
        
        .step {
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
            z-index: 1;
        }
        
        .step-number {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--bg-glass);
            border: 2px solid var(--border-glass);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            margin-bottom: 8px;
        }
        
        .step.active .step-number {
            background: var(--gradient-primary);
            border-color: transparent;
            color: white;
        }
        
        .step.completed .step-number {
            background: var(--accent-green);
            border-color: transparent;
            color: white;
        }
        
        .step-label {
            font-size: 12px;
            color: var(--text-muted);
        }
        
        .step.active .step-label {
            color: var(--text-primary);
            font-weight: 500;
        }
        
        /* 表单操作按钮 */
        .form-actions {
            display: flex;
            gap: 12px;
            margin-top: 24px;
            padding-top: 24px;
            border-top: 1px solid var(--border-glass);
        }
        
        .form-actions .btn {
            flex: 1;
        }
        
        @media (max-width: 768px) {
            .form-row {
                grid-template-columns: 1fr;
            }
            
            .form-inline {
                flex-direction: column;
                align-items: stretch;
            }
            
            .form-inline .form-group {
                margin-bottom: 16px;
            }
        }




        .example-section {
            margin-bottom: 30px;
        }
        
        .example-section h2 {
            font-size: 16px;
            margin-bottom: 16px;
            color: var(--text-secondary);
        }

        .timeline-container {
            position: relative;
            padding-left: 30px;
        }
        
        .timeline-container::before {
            content: '';
            position: absolute;
            left: 8px;
            top: 0;
            bottom: 0;
            width: 2px;
            background: var(--border-glass);
        }
        
        .timeline-item {
            position: relative;
            margin-bottom: 24px;
            padding-left: 20px;
        }
        
        .timeline-item::before {
            content: '';
            position: absolute;
            left: -26px;
            top: 4px;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: var(--accent-purple);
            border: 2px solid var(--bg-secondary);
            z-index: 1;
        }
        
        .timeline-item.completed::before {
            background: var(--accent-green);
        }
        
        .timeline-item.pending::before {
            background: var(--accent-orange);
        }
        
        .timeline-item.error::before {
            background: var(--accent-red);
        }
        
        .timeline-content {
            background: var(--bg-glass);
            border: 1px solid var(--border-glass);
            border-radius: var(--radius-md);
            padding: 16px;
            transition: all 0.3s ease;
        }
        
        .timeline-content:hover {
            border-color: var(--border-glow);
            transform: translateX(5px);
        }
        
        .timeline-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }
        
        .timeline-title {
            font-size: 14px;
            font-weight: 600;
        }
        
        .timeline-time {
            font-size: 11px;
            color: var(--text-muted);
        }
        
        .timeline-desc {
            font-size: 13px;
            color: var(--text-secondary);
            line-height: 1.5;
        }

        .timeline-status {
            display: inline-block;
            padding: 4px 8px;
            border-radius: var(--radius-sm);
            font-size: 11px;
            font-weight: 500;
            margin-top: 8px;
        }
        
        .timeline-status.success {
            background: rgba(16, 185, 129, 0.1);
            color: var(--accent-green);
        }
        
        .timeline-status.warning {
            background: rgba(245, 158, 11, 0.1);
            color: var(--accent-orange);
        }
        
        .timeline-status.error {
            background: rgba(239, 68, 68, 0.1);
            color: var(--accent-red);
        }

        .profile-layout {
            display: grid;
            grid-template-columns: 1fr;
            gap: 20px;
        }
        
        @media (min-width: 768px) {
            .profile-layout {
                grid-template-columns: 250px 1fr;
            }
        }
        
        .profile-sidebar {
            background: transparent;
            border: none;
            border-radius: 0;
            padding: 20px;
            text-align: center;
        }
        
        .profile-avatar {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            background: var(--gradient-primary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 48px;
            margin: 0 auto 16px;
        }
        
        .profile-name {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 4px;
        }
        
        .profile-role {
            font-size: 13px;
            color: var(--text-muted);
            margin-bottom: 16px;
        }
        
        .profile-stats {
            display: flex;
            justify-content: space-around;
            margin-top: 16px;
            padding-top: 16px;
            border-top: 1px solid var(--border-glass);
        }
        
        .profile-stat {
            text-align: center;
        }
        
        .profile-stat-value {
            font-size: 20px;
            font-weight: 700;
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        .profile-stat-label {
            font-size: 11px;
            color: var(--text-muted);
            margin-top: 4px;
        }
        
        .profile-main {
            background: transparent;
            border: none;
            border-radius: 0;
            padding: 20px 20px 20px 60px;
        }
        
        .profile-section {
            margin-bottom: 24px;
        }
        
        .profile-section h3 {
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 12px;
            padding-bottom: 8px;
            border-bottom: 1px solid var(--border-glass);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .profile-section h3 .btn {
            font-size: 11px;
            padding: 4px 12px;
            border-radius: var(--radius-md);
        }
        
        .profile-info-row {
            display: flex;
            justify-content: space-between;
            padding: 8px 0;
            border-bottom: 1px solid var(--border-glass);
        }
        
        .profile-info-row:last-child {
            border-bottom: none;
        }
        
        .profile-info-label {
            font-size: 13px;
            color: var(--text-muted);
        }
        
        .profile-info-value {
            font-size: 13px;
            font-weight: 500;
        }
/* ========================================
   22. Record Type 记录类型样式
   ======================================== */

.record-type {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* A记录 - 蓝色 */
.record-type.a,
.record-type.A {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* CNAME记录 - 绿色 */
.record-type.cname,
.record-type.CNAME {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* MX记录 - 橙色 */
.record-type.mx,
.record-type.MX {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* TXT记录 - 紫色 */
.record-type.txt,
.record-type.TXT {
  background: rgba(139, 92, 246, 0.15);
  color: #8b5cf6;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

/* NS记录 - 粉色 */
.record-type.ns,
.record-type.NS {
  background: rgba(236, 72, 153, 0.15);
  color: #ec4899;
  border: 1px solid rgba(236, 72, 153, 0.3);
}

/* AAAA记录 - 青色 */
.record-type.aaaa,
.record-type.AAAA {
  background: rgba(6, 182, 212, 0.15);
  color: #06b6d4;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

/* 深色主题适配 */
[data-theme="dark"] .record-type.a,
[data-theme="dark"] .record-type.A {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.5);
}

[data-theme="dark"] .record-type.cname,
[data-theme="dark"] .record-type.CNAME {
  background: rgba(16, 185, 129, 0.25);
  border-color: rgba(16, 185, 129, 0.5);
}

[data-theme="dark"] .record-type.mx,
[data-theme="dark"] .record-type.MX {
  background: rgba(245, 158, 11, 0.25);
  border-color: rgba(245, 158, 11, 0.5);
}

[data-theme="dark"] .record-type.txt,
[data-theme="dark"] .record-type.TXT {
  background: rgba(139, 92, 246, 0.25);
  border-color: rgba(139, 92, 246, 0.5);
}

[data-theme="dark"] .record-type.ns,
[data-theme="dark"] .record-type.NS {
  background: rgba(236, 72, 153, 0.25);
  border-color: rgba(236, 72, 153, 0.5);
}

[data-theme="dark"] .record-type.aaaa,
[data-theme="dark"] .record-type.AAAA {
  background: rgba(6, 182, 212, 0.25);
  border-color: rgba(6, 182, 212, 0.5);
}

/* ========================================
   23. Empty State 空状态样式
   ======================================== */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  text-align: center;
  background: var(--bg-glass);
  border: 2px dashed var(--border-glass);
  border-radius: var(--radius-lg);
  margin: 20px 0;
  transition: all 0.3s ease;
  width: 100%;
  min-height: 300px;
}

.empty-state:hover {
  border-color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.05);
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.8;
  animation: float 3s ease-in-out infinite;
}

.empty-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 300px;
  line-height: 1.6;
}

.empty-state .btn {
  padding: 12px 24px;
  font-size: 14px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
  transition: all 0.3s ease;
}

.empty-state .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
}

/* 深色主题适配 */
[data-theme="dark"] .empty-state {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .empty-state:hover {
  border-color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.1);
}

/* 移动端适配 */
@media (max-width: 768px) {
  .empty-state {
    padding: 40px 16px;
    margin: 12px 0;
  }
  
  .empty-icon {
    font-size: 48px;
  }
  
  .empty-title {
    font-size: 16px;
  }
  
  .empty-desc {
    font-size: 13px;
    margin-bottom: 20px;
  }
  
  .empty-state .btn {
    padding: 10px 20px;
    font-size: 13px;
  }
}

/* ========================================
   23. Final Notes
   ========================================
   
   本 CSS 文件遵循以下最佳实践：
   - CSS Reset & Normalize：确保跨浏览器一致性
   - CSS Variables：使用设计令牌系统
   - 响应式设计：支持多设备
   - 主题切换：深色/浅色主题
   - 无障碍访问：符合 WCAG 标准
   - 性能优化：GPU 加速、减少重排
   - 打印样式：优化打印输出
   - 工具类：快速开发
   
   版本历史：
   - v2.0.0 (2026-03-10): 运营级样式表
   - 包含完整的文档注释
   
   ======================================== */