/* ===== 17用AI 全局样式 v3（浅色粉调主题） ===== */
:root {
  /* 品牌色 */
  --primary: #fb658a;          /* 主品牌粉 · 主按钮背景 */
  --primary-light: #ef3664;    /* 深玫瑰粉 · hover/文字强调 */
  --primary-dark: #f41a51;     /* 强促销红 */
  --secondary: #f41a51;        /* 强促销红（渐变辅助） */
  --accent: #ef3664;

  /* 背景与表面 */
  --bg-page: #f5f5f5;          /* 页面主背景 */
  --bg-surface: #ffffff;       /* 表面/卡片 */
  --bg-secondary: #f5f7fa;     /* 次级背景/灰底 */
  --bg-hover-pink: #fff2f5;    /* 浅粉 hover 背景 */

  /* 边框与分割线 */
  --border: #e5e5e5;           /* 最常用边框 */
  --border-el: #e4e7ed;        /* Element UI 边框 */
  --border-light: #ebeef5;     /* 表头/轻分隔 */
  --border-input: #dcdfe6;     /* 输入框边框 */

  /* 文字色 */
  --text-primary: #333333;     /* 主标题/正文 */
  --text-secondary: #666666;   /* 二级正文 */
  --text-muted: #999999;       /* 辅助/禁用 */
  --text-menu: #6c6c6c;        /* 菜单次级文字 */

  /* 状态色 */
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #c81623;           /* 通知/强警示 */

  /* 渐变 */
  --gradient-main: linear-gradient(135deg, #fb658a 0%, #f41a51 100%);
  --gradient-card: #ffffff;

  /* 阴影 */
  --shadow-glow: 0 0 24px rgba(251,101,138,0.22);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.08);

  /* 尺寸/排版（保持不变） */
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  --line-height: 1.7;
  --font-size-base: 15px;
  --font-size-sm: 13px;
  --font-size-lg: 17px;
  --max-width: 1280px;
  --nav-height: 68px;
}

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); }

/* ===== 滚动条 ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-page); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ===== 导航栏 ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
  display: flex; align-items: center;
  padding: 0 24px; gap: 0;
  transition: var(--transition);
}
.navbar.scrolled { background: rgba(255,255,255,0.98); box-shadow: 0 2px 20px rgba(0,0,0,0.06); }

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.logo-icon {
  width: 38px; height: 38px;
  background: var(--gradient-main);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900; color: white;
  box-shadow: var(--shadow-glow);
}
.logo-text {
  font-size: 20px; font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-logo-img {
  height: 34px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
}

.nav-menu {
  display: flex; align-items: center; gap: 4px;
  margin-left: 32px; list-style: none; flex: 1;
}
.nav-menu a {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 15px; border-radius: var(--radius-sm);
  color: var(--text-menu); text-decoration: none;
  font-size: 13.5px; font-weight: 500;
  transition: var(--transition); white-space: nowrap;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--text-primary); background: rgba(251,101,138,0.10); }
.nav-menu a.active { color: var(--primary-light); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* 移动端汉堡菜单 */
.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.menu-toggle span {
  width: 24px; height: 2px; background: var(--text-primary);
  border-radius: 2px; transition: var(--transition);
}

/* ===== 按钮系统 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  border: none; cursor: pointer;
  transition: var(--transition); text-decoration: none;
  white-space: nowrap; letter-spacing: 0.01em;
  user-select: none;
}
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.btn-primary {
  background: var(--gradient-main); color: white;
  box-shadow: 0 4px 15px rgba(251,101,138,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(251,101,138,0.5); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent; color: var(--primary-light);
  border: 1px solid var(--primary);
}
.btn-outline:hover { background: rgba(251,101,138,0.08); transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { color: var(--text-primary); background: rgba(251,101,138,0.06); }

.btn-sm { padding: 7px 15px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 14px 30px; font-size: 16px; border-radius: 12px; }
.btn-xl { padding: 17px 40px; font-size: 18px; border-radius: 14px; }

.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { filter: brightness(1.08); }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { filter: brightness(1.05); }
.btn-warning { background: var(--warning); color: white; }

.btn-block { width: 100%; }
.btn:disabled, .btn[disabled] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* ===== 卡片 ===== */
.card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
  line-height: 1.6;
}
.card:hover { border-color: var(--primary); background: var(--bg-hover-pink); box-shadow: 0 8px 24px rgba(251,101,138,0.12); transform: translateY(-2px); }
.card p { color: var(--text-secondary); margin-bottom: 12px; }
.card p:last-child { margin-bottom: 0; }
.card h3, .card h4 { color: var(--text-primary); margin-bottom: 12px; }

/* ===== 标签 ===== */
.badge {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
}
.badge-primary { background: rgba(251,101,138,0.12); color: var(--primary-light); border: 1px solid rgba(251,101,138,0.3); }
.badge-success { background: rgba(22,163,74,0.12); color: var(--success); border: 1px solid rgba(22,163,74,0.3); }
.badge-warning { background: rgba(245,158,11,0.14); color: var(--warning); border: 1px solid rgba(245,158,11,0.3); }
.badge-danger { background: rgba(200,22,35,0.12); color: var(--danger); border: 1px solid rgba(200,22,35,0.3); }
.badge-info { background: rgba(251,101,138,0.12); color: var(--primary-light); border: 1px solid rgba(251,101,138,0.3); }
.badge-default { background: rgba(0,0,0,0.04); color: var(--text-muted); }
.badge-hot { background: linear-gradient(135deg,#fb658a,#f41a51); color: white; }
.badge-new { background: linear-gradient(135deg,#fb658a,#ef3664); color: white; }

/* ===== 表单元素 ===== */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; margin-bottom: 8px;
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.form-control {
  width: 100%; padding: 12px 16px;
  background: #ffffff; border: 1px solid var(--border-input);
  border-radius: 10px; color: var(--text-primary);
  font-size: 14px; line-height: 1.5;
  transition: var(--transition); outline: none;
}
.form-control:focus { border-color: var(--primary); background: #ffffff; box-shadow: 0 0 0 3px rgba(251,101,138,0.12); }
.form-control::placeholder { color: var(--text-muted); }
.form-control:disabled { opacity: 0.5; cursor: not-allowed; }

textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; appearance: none; 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='%23999999' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

.form-control-dark {
  background: rgba(0,0,0,0.03); border: 1px solid var(--border-light);
}

/* ===== 范围滑块 ===== */
.range-slider {
  -webkit-appearance: none; width: 100%; height: 6px;
  background: rgba(0,0,0,0.08); border-radius: 3px; outline: none; cursor: pointer;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px;
  background: var(--gradient-main); border-radius: 50%;
  box-shadow: 0 0 8px rgba(251,101,138,0.5);
}

/* ===== 主内容区域 ===== */
.main-content { padding-top: var(--nav-height); min-height: 100vh; }
.page-container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ===== Section 标题 ===== */
.section-title {
  font-size: 36px; font-weight: 800; text-align: center; margin-bottom: 14px;
  line-height: 1.3;
}
.section-title span {
  background: var(--gradient-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle { text-align: center; color: var(--text-secondary); font-size: 16px; margin-bottom: 52px; line-height: 1.6; }

/* ===== 网格 ===== */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 1200px) { .grid-5, .grid-6 { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2,1fr); } .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 768px) { .grid-2, .grid-3, .grid-4, .grid-5, .grid-6 { grid-template-columns: 1fr; } }

/* ===== 模态框 ===== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: var(--transition);
}
.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px; width: 90%; max-width: 460px;
  box-shadow: var(--shadow-glow), var(--shadow-card);
  transform: scale(0.95) translateY(20px);
  transition: var(--transition);
  max-height: 90vh; overflow-y: auto;
}
.modal-overlay.active .modal-box { transform: scale(1) translateY(0); }

.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.modal-title { font-size: 22px; font-weight: 800; }
.modal-close {
  background: none; border: none; color: var(--text-muted);
  cursor: pointer; font-size: 20px; padding: 4px 8px; border-radius: 6px;
  transition: var(--transition);
}
.modal-close:hover { color: var(--text-primary); background: rgba(0,0,0,0.04); }

/* ===== 标签页 ===== */
.tabs { display: flex; gap: 4px; background: var(--bg-secondary); border-radius: 12px; padding: 4px; margin-bottom: 24px; overflow-x: auto; }
.tab-btn {
  flex: 1; padding: 10px 16px; border: none; background: transparent;
  color: var(--text-secondary); border-radius: 8px;
  cursor: pointer; font-weight: 600; font-size: 14px;
  transition: var(--transition); white-space: nowrap;
}
.tab-btn.active { background: var(--gradient-main); color: white; box-shadow: 0 4px 15px rgba(251,101,138,0.3); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== 登录弹窗专用（auth-modal.js 渲染，所有页面统一） ===== */
.auth-tabs { display: flex; gap: 4px; background: var(--bg-secondary); border-radius: 12px; padding: 4px; margin-bottom: 24px; }
.auth-tabs .tab-btn { flex: 1; }
.code-row { display: flex; gap: 8px; align-items: stretch; }
.code-row .form-control { flex: 1; min-width: 0; }
.code-row .btn { flex: 0 0 auto; }
.auth-tab-hint { font-size: 13px; color: var(--text-secondary); text-align: center; margin-top: 14px; line-height: 1.6; }
.auth-tab-hint a { color: var(--primary-light); cursor: pointer; }

/* ===== 进度条 ===== */
.progress-bar { background: rgba(0,0,0,0.06); border-radius: 10px; height: 8px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--gradient-main); border-radius: 10px; transition: width 0.5s ease; }

/* ===== 加载动画 ===== */
.spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(251,101,138,0.2);
  border-top-color: var(--primary);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== 骨架屏 ===== */
.skeleton { background: linear-gradient(90deg, rgba(0,0,0,0.04) 25%, rgba(0,0,0,0.08) 50%, rgba(0,0,0,0.04) 75%); background-size: 200% 100%; animation: skeleton-shimmer 1.5s ease-in-out infinite; border-radius: 8px; }
@keyframes skeleton-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ===== 通知 Toast ===== */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 99999; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 20px;
  display: flex; align-items: center; gap: 12px;
  min-width: 280px; max-width: 400px;
  box-shadow: var(--shadow-card); pointer-events: auto;
  animation: slideIn 0.3s ease;
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.warning { border-left: 3px solid var(--warning); }
.toast.info { border-left: 3px solid var(--primary); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ===== Hero 粒子背景 ===== */
.particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.particle {
  position: absolute; border-radius: 50%;
  animation: float linear infinite;
}
@keyframes float {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; } 90% { opacity: 1; }
  100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* ===== 侧边栏 ===== */
.sidebar {
  width: 240px; min-height: 100vh;
  background: var(--bg-surface); border-right: 1px solid var(--border);
  padding: 20px 0; flex-shrink: 0;
}
.sidebar-menu { list-style: none; }
.sidebar-menu li a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; color: var(--text-secondary);
  text-decoration: none; font-size: 14px; font-weight: 500;
  transition: var(--transition); border-left: 3px solid transparent;
}
.sidebar-menu li a:hover, .sidebar-menu li a.active {
  color: var(--text-primary); background: rgba(251,101,138,0.08);
  border-left-color: var(--primary);
}

/* ===== 表格 ===== */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; }
thead th {
  padding: 13px 16px; text-align: left;
  font-size: 12px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap; position: sticky; top: 0;
  background: var(--border-light);
}
tbody td {
  padding: 15px 16px; font-size: 14px;
  border-bottom: 1px solid var(--border-light);
  line-height: 1.5; vertical-align: middle;
}
tbody tr:hover { background: rgba(251,101,138,0.05); }
tbody tr:last-child td { border-bottom: none; }

.table-empty {
  text-align: center; padding: 48px 16px;
  color: var(--text-muted); font-size: 14px;
}

/* ===== 统计卡片 ===== */
.stat-card {
  background: var(--gradient-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; transition: var(--transition);
}
.stat-card:hover { border-color: var(--primary); }
.stat-value { font-size: 32px; font-weight: 900; line-height: 1.2; }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.stat-change { font-size: 12px; margin-top: 8px; }
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ===== 分隔线 ===== */
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* ===== 特效文字 ===== */
.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== 空状态 ===== */
.empty-state {
  text-align: center; padding: 60px 24px;
  color: var(--text-muted);
}
.empty-state-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.6; }
.empty-state-title { font-size: 18px; font-weight: 700; color: var(--text-secondary); margin-bottom: 8px; }
.empty-state-desc { font-size: 14px; max-width: 400px; margin: 0 auto 20px; line-height: 1.6; }

/* ===== 工具提示 ===== */
.tooltip {
  position: relative;
}
.tooltip::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--bg-secondary); color: var(--text-primary);
  padding: 6px 12px; border-radius: 8px; font-size: 12px;
  white-space: nowrap; pointer-events: none; opacity: 0;
  transition: opacity 0.2s; border: 1px solid var(--border);
}
.tooltip:hover::after { opacity: 1; }

/* ===== 响应式图片/视频容器 ===== */
.img-fluid { max-width: 100%; height: auto; }
.img-rounded { border-radius: var(--radius-sm); }
.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius); }
.video-container iframe, .video-container video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* ===== 动画 ===== */
.fade-in { animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.fade-in-up { animation: fadeInUp 0.5s ease; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

.pulse { animation: pulse 2s cubic-bezier(0.4,0,0.6,1) infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ===== 生成状态动画 ===== */
.generating-dots span { animation: blink 1.4s infinite; }
.generating-dots span:nth-child(2) { animation-delay: 0.2s; }
.generating-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%,80%,100% { opacity: 0; } 40% { opacity: 1; } }

/* ===== 页脚 ===== */
.footer {
  background: var(--bg-secondary); border-top: 1px solid var(--border);
  padding: 48px 24px 24px; margin-top: 80px;
}
.footer-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 32px; max-width: var(--max-width); margin: 0 auto 32px; }
.footer-brand .logo-text { font-size: 24px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; margin-top: 12px; line-height: 1.6; }
.footer-col h4 { font-size: 14px; font-weight: 700; margin-bottom: 16px; color: var(--text-primary); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-muted); text-decoration: none; font-size: 14px; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--primary-light); }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 13px; max-width: var(--max-width); margin: 0 auto; }

@media (max-width: 768px) { .footer-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ===== 间距工具类 ===== */
.mt-0 { margin-top: 0 !important; }
.mt-4 { margin-top: 4px !important; }
.mt-8 { margin-top: 8px !important; }
.mt-12 { margin-top: 12px !important; }
.mt-16 { margin-top: 16px !important; }
.mt-20 { margin-top: 20px !important; }
.mt-24 { margin-top: 24px !important; }
.mt-32 { margin-top: 32px !important; }
.mt-48 { margin-top: 48px !important; }
.mt-64 { margin-top: 64px !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-4 { margin-bottom: 4px !important; }
.mb-8 { margin-bottom: 8px !important; }
.mb-12 { margin-bottom: 12px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mb-48 { margin-bottom: 48px !important; }

.my-16 { margin-top: 16px !important; margin-bottom: 16px !important; }
.my-24 { margin-top: 24px !important; margin-bottom: 24px !important; }
.my-32 { margin-top: 32px !important; margin-bottom: 32px !important; }

.p-0 { padding: 0 !important; }
.p-8 { padding: 8px !important; }
.p-12 { padding: 12px !important; }
.p-16 { padding: 16px !important; }
.p-20 { padding: 20px !important; }
.p-24 { padding: 24px !important; }
.p-32 { padding: 32px !important; }

.px-16 { padding-left: 16px !important; padding-right: 16px !important; }
.px-24 { padding-left: 24px !important; padding-right: 24px !important; }
.py-8 { padding-top: 8px !important; padding-bottom: 8px !important; }
.py-12 { padding-top: 12px !important; padding-bottom: 12px !important; }
.py-16 { padding-top: 16px !important; padding-bottom: 16px !important; }

.gap-8 { gap: 8px !important; }
.gap-12 { gap: 12px !important; }
.gap-16 { gap: 16px !important; }
.gap-24 { gap: 24px !important; }

/* ===== 布局工具类 ===== */
.flex { display: flex !important; }
.flex-col { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-1 { flex: 1 !important; }
.items-center { align-items: center !important; }
.items-start { align-items: flex-start !important; }
.items-end { align-items: flex-end !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.justify-end { justify-content: flex-end !important; }
.self-center { align-self: center !important; }

/* ===== 文本工具类 ===== */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.text-sm { font-size: var(--font-size-sm) !important; }
.text-lg { font-size: var(--font-size-lg) !important; }
.text-xs { font-size: 12px !important; }
.text-2xl { font-size: 24px !important; }
.text-3xl { font-size: 32px !important; }

.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }

.font-bold { font-weight: 700 !important; }
.font-semibold { font-weight: 600 !important; }
.font-normal { font-weight: 400 !important; }

.text-truncate {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.text-break { word-break: break-word; overflow-wrap: break-word; }
.whitespace-nowrap { white-space: nowrap !important; }

/* ===== 显示/隐藏 ===== */
.hidden { display: none !important; }
.block { display: block !important; }
.inline-block { display: inline-block !important; }
.inline-flex { display: inline-flex !important; }

/* ===== 宽度 ===== */
.w-full { width: 100% !important; }
.w-auto { width: auto !important; }
.max-w-sm { max-width: 360px !important; }
.max-w-md { max-width: 480px !important; }
.max-w-lg { max-width: 640px !important; }
.max-w-xl { max-width: 800px !important; }

/* ===== 相对/绝对定位 ===== */
.relative { position: relative !important; }
.absolute { position: absolute !important; }
.overflow-hidden { overflow: hidden !important; }
.overflow-auto { overflow: auto !important; }

/* ===== 圆角 ===== */
.rounded { border-radius: var(--radius-sm) !important; }
.rounded-lg { border-radius: var(--radius) !important; }
.rounded-full { border-radius: 9999px !important; }

/* ===== 透明度 ===== */
.opacity-50 { opacity: 0.5 !important; }
.opacity-75 { opacity: 0.75 !important; }

/* ===== 光标 ===== */
.cursor-pointer { cursor: pointer !important; }
.pointer-events-none { pointer-events: none !important; }

/* ===== 响应式 ===== */
@media (max-width: 1200px) {
  .hide-xl { display: none !important; }
}

@media (max-width: 1024px) {
  .hide-lg { display: none !important; }
}

@media (max-width: 768px) {
  .hide-md { display: none !important; }
  .show-md { display: block !important; }
  .nav-menu { display: none; }
  .menu-toggle { display: flex; }
  .section-title { font-size: 26px; }
  .section-subtitle { font-size: 14px; margin-bottom: 36px; }
  .page-container { padding: 0 16px; }
  .navbar { padding: 0 16px; }
  .modal-box { padding: 24px; }
}

@media (max-width: 480px) {
  .hide-sm { display: none !important; }
  .section-title { font-size: 22px; }
  .card { padding: 20px; }
  .btn-lg { padding: 12px 24px; font-size: 15px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; }
  .tab-btn { flex: 0 0 auto; }
}

/* ===== 去图标后隐藏空图标容器 ===== */
.feature-icon:empty { display: none; }
.empty-state-icon:empty { display: none; }

/* ===== 打印样式 ===== */
@media print {
  .navbar, .footer, .sidebar, .toast-container, .modal-overlay, .btn { display: none !important; }
  body { background: white; color: black; }
  .card { border: 1px solid #ddd; box-shadow: none; }
}
