/* ===== 终极升级版视觉设计 ===== */
/* 配色方案：现代蓝紫绿渐变 + 全视觉增强 */

:root {
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --secondary: #10b981;
  --secondary-light: #34d399;
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  
  --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #10b981 100%);
  --gradient-reverse: linear-gradient(135deg, #10b981 0%, #8b5cf6 50%, #6366f1 100%);
  --gradient-hero: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #2563eb 100%);
  --gradient-card: linear-gradient(135deg, rgba(99,102,241,0.05) 0%, rgba(16,185,129,0.05) 100%);
  --gradient-border: linear-gradient(135deg, rgba(99,102,241,0.3), rgba(16,185,129,0.3));
  
  --bg: #f8fafc;
  --bg-white: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.75);
  --bg-glass-strong: rgba(255, 255, 255, 0.85);
  
  --text: #0f172a;
  --text-secondary: #475569;
  --text-light: #94a3b8;
  
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --border-glass: rgba(226, 232, 240, 0.6);
  
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 40px -10px rgba(0,0,0,0.12);
  --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.15);
  --shadow-glow: 0 0 40px rgba(99,102,241,0.15);
  --shadow-glow-strong: 0 0 60px rgba(99,102,241,0.25);
  
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  --bg-decoration: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99,102,241,0.08), transparent),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(16,185,129,0.06), transparent),
    radial-gradient(ellipse 50% 30% at 20% 80%, rgba(139,92,246,0.05), transparent);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Heiti SC", "WenQuanYi Micro Hei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  position: relative;
  cursor: default;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--bg-decoration);
  pointer-events: none;
  z-index: -1;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.hidden { display: none !important; }

/* ===== 自定义光标 ===== */
a, button, .nav-link, .query-tab, .category-item, .industry-tag, .detail-btn, .action-btn {
  cursor: pointer;
}

/* ===== 滚动条美化 ===== */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-light), var(--secondary));
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--primary), var(--secondary-light)); }

/* ===== 玻璃态卡片 ===== */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-md);
}

/* ===== 导航栏增强 ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-glass);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(32px);
  background: rgba(255, 255, 255, 0.92);
}

/* 滚动进度条 */
.navbar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  background: var(--gradient);
  width: var(--scroll-progress, 0%);
  transition: width 0.1s linear;
  z-index: 10;
}

.nav-container {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}

.nav-brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 20px;
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-logo-icon {
  width: 28px; height: 28px;
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links { display: flex; gap: 4px; align-items: center; }

.nav-link {
  padding: 10px 16px; border-radius: var(--radius-sm);
  color: var(--text-secondary); text-decoration: none;
  font-size: 14px; font-weight: 500; letter-spacing: 0.3px;
  transition: var(--transition-fast); position: relative;
}

.nav-link:hover { color: var(--primary); background: var(--gradient-card); }

.nav-link.active { color: var(--primary); background: var(--gradient-card); font-weight: 600; }

.nav-link.active::after {
  content: ''; position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%); width: 24px; height: 3px;
  background: var(--gradient); border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.nav-link.active:hover::after { width: 32px; }

.mobile-menu-btn { display: none; background: none; border: none; padding: 8px; cursor: pointer; color: var(--text); }

.mobile-menu {
  display: none; position: fixed; top: 72px; left: 0; right: 0;
  background: var(--bg-glass-strong); backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-glass); box-shadow: var(--shadow-lg);
  z-index: 999; padding: 16px;
}

.mobile-menu.show { display: block; }
.mobile-nav-link { display: block; padding: 14px 16px; color: var(--text-secondary); text-decoration: none; font-weight: 500; border-radius: var(--radius-sm); transition: var(--transition-fast); }
.mobile-nav-link:hover { background: var(--gradient-card); color: var(--primary); }

/* ===== Hero 区域大改版 ===== */
.hero {
  position: relative; min-height: 520px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; margin-top: 72px;
}

.hero-bg {
  position: absolute; inset: 0;
  background: var(--gradient-hero); opacity: 0.95;
}

.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background: 
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(255,255,255,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 60% 80%, rgba(255,255,255,0.08) 0%, transparent 40%);
}

/* 动态浮动粒子 */
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(12px, -12px) rotate(1.5deg); }
  66% { transform: translate(-8px, 8px) rotate(-1.5deg); }
}

/* 波浪装饰 */
.hero-waves {
  position: absolute; bottom: -2px; left: 0; right: 0;
  z-index: 2; height: 80px;
}

.hero-content {
  position: relative; z-index: 1;
  text-align: center; padding: 80px 24px;
}

/* 标题打字机动画 */
.hero-title {
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 900; color: #fff;
  letter-spacing: 4px; margin-bottom: 20px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.25);
  animation: heroTitleGlow 3s ease-in-out infinite alternate;
}

@keyframes heroTitleGlow {
  0% { text-shadow: 0 4px 30px rgba(0,0,0,0.25); }
  100% { text-shadow: 0 4px 40px rgba(255,255,255,0.2), 0 0 60px rgba(255,255,255,0.1); }
}

.hero-subtitle {
  font-size: clamp(18px, 3vw, 22px);
  color: rgba(255,255,255,0.85);
  margin-bottom: 44px; font-weight: 400;
  letter-spacing: 1px;
  animation: subtitleFadeIn 1s ease 0.5s both;
}

@keyframes subtitleFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Hero 搜索框 ===== */
.hero-search-container {
  max-width: 700px; margin: 0 auto;
  animation: subtitleFadeIn 1s ease 0.8s both;
}

.hero-search-box {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-full);
  padding: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  transition: var(--transition);
}

.hero-search-box:focus-within {
  box-shadow: 0 10px 40px rgba(0,0,0,0.2), 0 0 60px rgba(255,255,255,0.2);
}

.hero-search-icon {
  width: 24px; height: 24px; color: var(--text-light);
  margin-left: 16px; flex-shrink: 0;
}

.hero-search-box input {
  flex: 1; padding: 16px 8px;
  border: none; background: transparent;
  font-size: 16px; font-family: inherit;
  color: var(--text); outline: none;
}

.hero-search-box input::placeholder { color: var(--text-light); }

.hero-search-btn {
  padding: 14px 28px; border: none; border-radius: var(--radius-full);
  background: var(--gradient); color: #fff; cursor: pointer;
  transition: var(--transition); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(99,102,241,0.35);
}

.hero-search-btn:hover {
  transform: scale(1.05); box-shadow: 0 6px 20px rgba(99,102,241,0.45);
}

.hero-search-btn:active { transform: scale(0.95); }
.hero-search-btn i { width: 20px; height: 20px; }

.hero-ai-btn {
  padding: 14px 20px; border: none; border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: #fff; cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(16,185,129,0.35);
}

.hero-ai-btn:hover {
  transform: scale(1.05); box-shadow: 0 6px 20px rgba(16,185,129,0.45);
}

.hero-ai-btn:active { transform: scale(0.95); }
.hero-ai-btn i { width: 20px; height: 20px; }

.hero-search-hint {
  margin-top: 16px; display: flex; align-items: center;
  justify-content: center; gap: 10px; flex-wrap: wrap;
  font-size: 13px; color: rgba(255,255,255,0.8);
}

.hero-search-hint > span:first-child { color: rgba(255,255,255,0.7); }

.hero-hot-search {
  padding: 4px 12px; border-radius: var(--radius-full);
  background: rgba(255,255,255,0.15); cursor: pointer;
  transition: var(--transition-fast);
}

.hero-hot-search:hover {
  background: rgba(255,255,255,0.25);
}

/* Hero AI分析结果 */
.hero-ai-response {
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  animation: fadeInUp 0.4s ease forwards;
}

.hero-ai-loading { text-align: center; padding: 20px; }
.hero-ai-loading .loading-dots span {
  display: inline-block; width: 12px; height: 12px; border-radius: 50%;
  background: var(--gradient); margin: 0 6px;
  animation: dotBounce 1.4s infinite ease-in-out both;
  box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}
.hero-ai-loading .loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.hero-ai-loading .loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.hero-ai-loading p { margin-top: 12px; font-size: 14px; color: var(--text-light); }

.hero-ai-result {
  font-size: 14px; line-height: 1.8; color: var(--text-secondary);
}

.hero-ai-result h4 {
  color: var(--primary); font-size: 16px; margin-bottom: 12px; font-weight: 700;
}

.hero-ai-result .ai-warning {
  display: flex; align-items: flex-start; gap: 12px; padding: 16px;
  background: rgba(251,191,36,0.12); border-radius: var(--radius);
  border-left: 4px solid var(--accent); margin-top: 16px;
  font-size: 13px; color: var(--text);
}

.hero-ai-result .ai-warning i { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: #f59e0b; }

/* 查询按钮 - 脉冲光晕 */
.hero-btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 48px;
  background: #fff; color: var(--primary-dark);
  border-radius: var(--radius-full);
  font-size: 18px; font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 10px 40px rgba(0,0,0,0.2), 0 0 60px rgba(255,255,255,0.1);
  animation: btnPulse 2.5s ease-in-out infinite;
}

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 10px 40px rgba(0,0,0,0.2), 0 0 60px rgba(255,255,255,0.1); }
  50% { box-shadow: 0 10px 40px rgba(0,0,0,0.2), 0 0 80px rgba(255,255,255,0.2); }
}

.hero-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 50px rgba(0,0,0,0.25), 0 0 100px rgba(255,255,255,0.25);
}

.hero-btn:active { transform: translateY(-2px) scale(0.98); }
.hero-btn i { width: 22px; height: 22px; }

/* ===== 滚动淡入动画 ===== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.animate-in { animation: fadeInUp 0.6s ease forwards; }
.fade-in { animation: fadeIn 0.5s ease forwards; }

/* ===== 查询区域 ===== */
.query-section { margin-top: -70px; position: relative; z-index: 2; }

.query-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 44px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

/* 卡片顶部彩色指示条 */
.query-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: var(--gradient);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* 悬停发光效果 */
.query-card:hover {
  box-shadow: var(--shadow-xl), var(--shadow-glow-strong);
  transform: translateY(-2px);
}

.query-header { margin-bottom: 28px; }

.query-title {
  display: flex; align-items: center; gap: 14px;
  font-size: 28px; font-weight: 900; color: var(--text);
  letter-spacing: 1px;
}

.query-icon { width: 32px; height: 32px; color: var(--primary); }

.query-tabs {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 36px; padding-bottom: 28px;
  border-bottom: 2px solid var(--border-light);
}

.query-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px;
  border: 1px solid var(--border); border-radius: var(--radius-full);
  background: var(--bg-white); color: var(--text-secondary);
  font-size: 14px; font-weight: 500;
  cursor: pointer; transition: var(--transition-fast); font-family: inherit;
}

.query-tab i { width: 18px; height: 18px; }

.query-tab:hover { border-color: var(--primary-light); color: var(--primary); background: var(--gradient-card); transform: translateY(-1px); }

.query-tab.active {
  background: var(--gradient); color: #fff; border-color: transparent;
  box-shadow: 0 4px 16px rgba(99,102,241,0.35);
  transform: translateY(-1px);
}

.tab-content { margin-bottom: 28px; }

.tab-content + .tab-content:not(.hidden) {
  margin-top: 20px;
  padding-top: 24px;
  border-top: 1px dashed var(--border, #e2e8f0);
}

.tab-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  margin-bottom: 28px;
  background: var(--bg-secondary, #f8fafc);
  border: 1px dashed var(--border, #e2e8f0);
  border-radius: var(--radius-sm, 8px);
  color: var(--text-tertiary, #94a3b8);
  text-align: center;
  gap: 12px;
}

.tab-placeholder .placeholder-icon {
  width: 32px;
  height: 32px;
  stroke-width: 1.5;
  opacity: 0.6;
}

.tab-placeholder p {
  font-size: 14px;
  margin: 0;
}

.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }

.category-item {
  padding: 18px 22px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer;
  transition: var(--transition); text-align: center;
  font-size: 14px; font-weight: 600; color: var(--text);
  background: var(--bg-white); position: relative; overflow: hidden;
}

.category-item::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--gradient);
  transform: scaleX(0); transition: transform 0.3s ease;
}

.category-item:hover::before { transform: scaleX(1); }

.category-item:hover {
  border-color: var(--primary-light); background: var(--gradient-card);
  transform: translateY(-3px); box-shadow: var(--shadow-md);
}

.category-item.active {
  background: var(--gradient); color: #fff; border-color: transparent;
  box-shadow: 0 8px 24px rgba(99,102,241,0.4);
  transform: translateY(-3px);
}

.category-item.active::before { transform: scaleX(1); background: #fff; }

.search-box { position: relative; max-width: 600px; }

.search-icon {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; color: var(--text-light);
}

.search-box input {
  width: 100%; padding: 16px 18px 16px 52px;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  font-size: 15px; font-family: inherit;
  transition: var(--transition); background: var(--bg-white); color: var(--text);
}

.search-box input:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.15), 0 0 30px rgba(99,102,241,0.1);
}

.search-hint { margin-top: 12px; font-size: 13px; color: var(--text-light); }

.industry-tags { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

.industry-tag {
  padding: 10px 22px; border: 1px solid var(--border); border-radius: var(--radius-full);
  font-size: 13px; cursor: pointer; transition: var(--transition-fast);
  background: var(--bg-white); color: var(--text-secondary); font-weight: 500;
}

.industry-tag:hover { border-color: var(--primary-light); color: var(--primary); background: var(--gradient-card); transform: translateY(-1px); }

.industry-tag.active {
  background: var(--gradient); color: #fff; border-color: transparent;
  box-shadow: 0 4px 14px rgba(99,102,241,0.3); transform: translateY(-1px);
}

.characteristic-options { display: flex; flex-wrap: wrap; gap: 18px; }

.characteristic-check {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  padding: 14px 24px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: var(--transition-fast); background: var(--bg-white);
}

.characteristic-check:hover { border-color: var(--primary-light); }
.characteristic-check:has(input:checked) {
  border-color: var(--primary); background: var(--gradient-card);
  box-shadow: 0 2px 12px rgba(99,102,241,0.15);
}

.characteristic-check input { display: none; }

.check-indicator {
  width: 24px; height: 24px; border: 2px solid var(--border);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  transition: var(--transition-fast); flex-shrink: 0;
}

.characteristic-check:has(input:checked) .check-indicator {
  background: var(--gradient); border-color: transparent;
}

.characteristic-check:has(input:checked) .check-indicator::after {
  content: '✓'; color: #fff; font-size: 14px; font-weight: 700;
}

.check-label { font-size: 14px; font-weight: 600; color: var(--text); }

/* 高级筛选 */
.advanced-filter { margin-bottom: 28px; }

.advanced-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 24px; background: none; border: none;
  color: var(--primary); font-size: 15px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: var(--transition-fast);
  border-radius: var(--radius-sm);
}

.advanced-toggle:hover { background: var(--gradient-card); }

.toggle-icon { width: 20px; height: 20px; transition: transform 0.3s ease; }
.advanced-toggle.open .toggle-icon { transform: rotate(180deg); }

.advanced-content {
  padding: 28px; background: var(--gradient-card);
  border-radius: var(--radius); margin-top: 16px;
  border: 1px solid var(--border-light);
}

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

.advanced-field label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text-secondary); margin-bottom: 8px;
}

.advanced-field select {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 14px; font-family: inherit;
  background: var(--bg-white); transition: var(--transition-fast);
  cursor: pointer; color: var(--text);
}

.advanced-field select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.1);
}

.advanced-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px; background: var(--gradient);
  color: #fff; border: none; border-radius: var(--radius-full);
  font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit;
  transition: var(--transition); box-shadow: 0 4px 18px rgba(99,102,241,0.35);
  position: relative; overflow: hidden;
}

.advanced-btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.advanced-btn:hover::after { transform: translateX(100%); }

.advanced-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(99,102,241,0.45); }
.advanced-btn:active { transform: translateY(0) scale(0.97); }

/* ===== 查询结果 ===== */
.query-results { border-top: 2px solid var(--border-light); padding-top: 32px; }

.results-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 18px; margin-bottom: 28px;
}

.results-title-group { display: flex; align-items: center; gap: 18px; }

.results-title {
  display: flex; align-items: center; gap: 12px;
  font-size: 24px; font-weight: 900; letter-spacing: 0.5px;
}

.results-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 12px;
  background: var(--gradient); color: #fff;
  border-radius: var(--radius-full); font-size: 16px; font-weight: 700;
  box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}

.results-actions { display: flex; gap: 12px; }

.action-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 24px; border: 1px solid var(--border);
  border-radius: var(--radius-full); background: var(--bg-white);
  color: var(--text-secondary); font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: var(--transition-fast);
  position: relative; overflow: hidden;
}

.action-btn i { width: 18px; height: 18px; }

.action-btn:hover:not(:disabled) {
  border-color: var(--primary); color: var(--primary);
  background: var(--gradient-card); transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.action-btn:active:not(:disabled) { transform: translateY(0) scale(0.96); }
.action-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* 清空查询按钮 */
.clear-btn { margin-bottom: 16px; border-color: #ef4444; color: #ef4444; }
.clear-btn:hover { background: #ef4444; color: #fff; border-color: #ef4444; }

/* ===== 表格美化 ===== */
.table-container {
  overflow-x: auto; border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.results-table { width: 100%; border-collapse: collapse; font-size: 14px; }

/* 渐变表头 */
.results-table thead {
  background: var(--gradient);
}

.results-table th {
  padding: 18px 20px; text-align: left;
  font-weight: 700; color: #fff; font-size: 13px;
  white-space: nowrap; letter-spacing: 0.5px;
  text-transform: uppercase;
  border: none;
}

.results-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
}

/* 斑马纹交替 */
.results-table tbody tr:nth-child(even) { background: #fafbfc; }
.results-table tbody tr:nth-child(odd) { background: #ffffff; }

.results-table tbody tr {
  transition: var(--transition-fast); position: relative;
}

/* 悬停左侧彩色指示条 */
.results-table tbody tr::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--gradient);
  opacity: 0; transition: opacity 0.2s ease;
}

.results-table tbody tr:hover::before { opacity: 1; }

.results-table tbody tr:hover {
  background: linear-gradient(90deg, rgba(99,102,241,0.04), rgba(16,185,129,0.02));
  box-shadow: inset 0 0 20px rgba(99,102,241,0.03);
}

.results-table tbody tr:last-child td { border-bottom: none; }

.empty-row td { padding: 80px 16px !important; }

.empty-state { text-align: center; color: var(--text-light); }
.empty-icon { width: 56px; height: 56px; margin-bottom: 16px; opacity: 0.4; }
.empty-state p { font-size: 16px; }

/* 危险特性徽章 - 3D效果 */
.char-badge {
  display: inline-flex; padding: 4px 14px;
  border-radius: var(--radius-full); font-size: 12px; font-weight: 700;
  margin-right: 4px; margin-bottom: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border: 1px solid rgba(0,0,0,0.05);
}

.char-T { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e; }
.char-I { background: linear-gradient(135deg, #fee2e2, #fecaca); color: #991b1b; }
.char-In { background: linear-gradient(135deg, #fee2e2, #fecaca); color: #991b1b; }
.char-C { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); color: #3730a3; }
.char-R { background: linear-gradient(135deg, #f3e8ff, #e9d5ff); color: #6b21a8; }
.char-F { background: linear-gradient(135deg, #ffedd5, #fed7aa); color: #9a3412; }

.detail-btn {
  padding: 8px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-white); color: var(--primary); font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: var(--transition-fast);
  position: relative; overflow: hidden;
}

.detail-btn:hover {
  background: var(--gradient); color: #fff; border-color: transparent;
  box-shadow: 0 4px 14px rgba(99,102,241,0.35); transform: translateY(-1px);
}

.detail-btn:active { transform: translateY(0) scale(0.95); }

.pagination {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 28px;
}

.page-btn {
  padding: 10px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-white); color: var(--text-secondary); cursor: pointer;
  transition: var(--transition-fast); display: flex; align-items: center;
}

.page-btn i { width: 20px; height: 20px; }
.page-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); background: var(--gradient-card); transform: translateY(-1px); }
.page-btn:active:not(:disabled) { transform: translateY(0) scale(0.96); }
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.page-info { font-size: 14px; color: var(--text-light); font-weight: 500; }

/* ===== 鉴别指南 ===== */
.guide-card {
  background: var(--bg-white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 44px; margin-bottom: 40px;
  position: relative; overflow: hidden; transition: var(--transition);
}

.guide-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: var(--gradient);
}

.guide-card:hover { box-shadow: var(--shadow-xl), var(--shadow-glow-strong); transform: translateY(-3px); }

.guide-title { display: flex; align-items: center; gap: 14px; font-size: 28px; font-weight: 900; margin-bottom: 32px; }
.guide-icon { width: 32px; height: 32px; color: var(--primary); }

.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }

.guide-box {
  background: var(--gradient-card); border-radius: var(--radius); padding: 36px;
  border: 1px solid var(--border-light); transition: var(--transition); position: relative; overflow: hidden;
}

.guide-box::after {
  content: ''; position: absolute; top: 0; right: 0;
  width: 80px; height: 80px; background: var(--gradient);
  border-radius: 0 0 0 100%; opacity: 0.08;
}

.guide-box:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.guide-box-title { font-size: 22px; font-weight: 900; color: var(--primary); margin-bottom: 20px; }

.guide-list { list-style: none; }
.guide-list li { display: flex; gap: 14px; margin-bottom: 18px; font-size: 14px; line-height: 1.8; color: var(--text-secondary); }
.guide-check { width: 24px; height: 24px; color: var(--secondary); flex-shrink: 0; margin-top: 3px; }

.guide-steps { list-style: none; counter-reset: step; }
.guide-steps li {
  counter-increment: step; padding-left: 42px; position: relative;
  margin-bottom: 20px; font-size: 14px; line-height: 1.8; color: var(--text-secondary);
}

.guide-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; background: var(--gradient); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}

/* FAQ */
.faq-card {
  background: var(--bg-white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 44px;
  position: relative; overflow: hidden; transition: var(--transition);
}

.faq-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: var(--gradient);
}

.faq-card:hover { box-shadow: var(--shadow-xl), var(--shadow-glow-strong); transform: translateY(-3px); }

.faq-title { font-size: 24px; font-weight: 900; margin-bottom: 28px; color: var(--primary); }

.faq-item { border: 1px solid var(--border-light); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; transition: var(--transition-fast); }
.faq-item:hover { border-color: var(--primary-light); }

.faq-question {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 22px 28px; background: var(--bg-white); border: none; cursor: pointer;
  font-size: 15px; font-weight: 600; font-family: inherit; color: var(--text);
  text-align: left; transition: var(--transition-fast);
}

.faq-question:hover { background: var(--gradient-card); }

.faq-icon { width: 22px; height: 22px; color: var(--text-light); transition: transform 0.3s ease; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(180deg); color: var(--primary); }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer p { padding: 0 28px 22px; font-size: 14px; line-height: 1.8; color: var(--text-secondary); }
.faq-item.open .faq-answer { max-height: 400px; }

/* ===== AI 助手 ===== */
.ai-card {
  background: var(--bg-white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 44px;
  position: relative; overflow: hidden; transition: var(--transition);
}

.ai-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.ai-card:hover { box-shadow: var(--shadow-xl), var(--shadow-glow-strong); transform: translateY(-3px); }

.ai-title { display: flex; align-items: center; gap: 14px; font-size: 28px; font-weight: 900; margin-bottom: 16px; }
.ai-icon { width: 32px; height: 32px; color: var(--secondary); }
.ai-description { font-size: 15px; color: var(--text-secondary); margin-bottom: 32px; }

.ai-input-area { display: flex; gap: 16px; align-items: flex-end; }

.ai-input-area textarea {
  flex: 1; padding: 18px; border: 2px solid var(--border); border-radius: var(--radius);
  font-size: 15px; font-family: inherit; resize: vertical; min-height: 120px;
  transition: var(--transition); background: var(--bg-white); color: var(--text);
}

.ai-input-area textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.15), 0 0 30px rgba(99,102,241,0.1);
}

.ai-submit-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 36px; background: var(--gradient);
  color: #fff; border: none; border-radius: var(--radius-full);
  font-size: 16px; font-weight: 700; cursor: pointer; font-family: inherit;
  transition: var(--transition); white-space: nowrap;
  box-shadow: 0 4px 24px rgba(99,102,241,0.35); position: relative; overflow: hidden;
}

.ai-submit-btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: translateX(-100%); transition: transform 0.6s ease;
}

.ai-submit-btn:hover::after { transform: translateX(100%); }
.ai-submit-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 36px rgba(99,102,241,0.45); }
.ai-submit-btn:active { transform: translateY(-1px) scale(0.96); }
.ai-submit-btn i { width: 20px; height: 20px; }

.ai-response {
  margin-top: 32px; padding: 32px;
  background: var(--gradient-card); border-radius: var(--radius);
  border: 1px solid var(--border-light);
}

.ai-loading { text-align: center; padding: 28px; }
.loading-dots span {
  display: inline-block; width: 14px; height: 14px; border-radius: 50%;
  background: var(--gradient); margin: 0 6px;
  animation: dotBounce 1.4s infinite ease-in-out both;
  box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes dotBounce { 0%, 80%, 100% { transform: scale(0); opacity: 0.4; } 40% { transform: scale(1); opacity: 1; } }
.ai-loading p { margin-top: 16px; font-size: 15px; color: var(--text-light); }

.ai-result { font-size: 15px; line-height: 1.8; color: var(--text-secondary); }
.ai-result h4 { color: var(--primary); font-size: 18px; margin-bottom: 16px; font-weight: 700; }
.ai-result .ai-warning {
  display: flex; align-items: flex-start; gap: 14px; padding: 18px;
  background: rgba(251,191,36,0.12); border-radius: var(--radius);
  border-left: 4px solid var(--accent); margin-top: 20px;
  font-size: 14px; color: var(--text);
}

/* ===== 关于系统 ===== */
.about-card {
  background: var(--bg-white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 44px;
  position: relative; overflow: hidden; transition: var(--transition);
}

.about-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: var(--gradient);
}

.about-card:hover { box-shadow: var(--shadow-xl), var(--shadow-glow-strong); transform: translateY(-3px); }

.about-title { display: flex; align-items: center; gap: 14px; font-size: 28px; font-weight: 900; margin-bottom: 32px; }
.about-icon { width: 32px; height: 32px; color: var(--primary); }

.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 52px; }

.about-subtitle {
  font-size: 22px; font-weight: 900; margin-bottom: 18px;
  background: var(--gradient); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
  letter-spacing: 0.5px;
}

.about-intro p, .about-source p { font-size: 15px; line-height: 1.9; color: var(--text-secondary); margin-bottom: 18px; }

.about-features { display: flex; gap: 28px; margin-top: 28px; }
.about-feature { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; color: var(--text); }
.feature-icon { width: 24px; height: 24px; color: var(--secondary); }

/* 免责说明框 */
.disclaimer-box {
  margin-top: 28px;
  padding: 20px 24px;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
}

.disclaimer-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.disclaimer-title::before {
  content: '⚠';
  font-size: 18px;
}

.disclaimer-box p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.update-info {
  margin-top: 28px; padding: 24px;
  background: var(--gradient-card); border-radius: var(--radius);
  border: 1px solid var(--border-light);
}

.update-title { font-size: 18px; font-weight: 700; margin-bottom: 14px; color: var(--primary); }
.update-item { display: flex; gap: 16px; font-size: 14px; }
.update-date { color: var(--text-light); white-space: nowrap; font-weight: 600; }
.update-desc { color: var(--text-secondary); }

/* ===== 页脚 ===== */
.footer {
  background: var(--text); color: rgba(255,255,255,0.7);
  padding: 52px 0; position: relative; overflow: hidden;
}

.footer::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(16,185,129,0.1));
}

.footer-content { text-align: center; position: relative; z-index: 1; }

.footer-brand {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  font-weight: 800; font-size: 22px; color: #fff; margin-bottom: 14px;
}

.footer-logo-icon { width: 28px; height: 28px; color: var(--secondary-light); }
.footer-text { font-size: 15px; margin-bottom: 12px; }
.footer-copyright { font-size: 14px; color: rgba(255,255,255,0.5); }

/* ===== 分割线渐变 ===== */
hr {
  border: none; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 24px 0;
}

/* ===== 详情弹窗 ===== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000; display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; visibility: hidden; transition: var(--transition);
}

/* AI分析模态框 */
.ai-modal-overlay {
  z-index: 2100;
}

.ai-modal {
  max-width: 800px;
  width: 100%;
  max-height: 85vh;
}

.ai-modal .modal-header {
  background: linear-gradient(135deg, rgba(16,185,129,0.06), rgba(99,102,241,0.06));
  border-bottom: 1px solid var(--border-light);
}

.ai-modal .modal-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-modal .modal-icon {
  width: 28px;
  height: 28px;
  color: var(--secondary);
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ai-modal .modal-body {
  padding: 32px;
  max-height: calc(85vh - 80px);
  overflow-y: auto;
}

.ai-modal-loading {
  text-align: center;
  padding: 40px;
}

.ai-modal-loading .loading-dots span {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  margin: 0 8px;
  animation: dotBounce 1.4s infinite ease-in-out both;
  box-shadow: 0 2px 12px rgba(99,102,241,0.4);
}

.ai-modal-loading .loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.ai-modal-loading .loading-dots span:nth-child(2) { animation-delay: -0.16s; }

.ai-modal-loading p {
  margin-top: 18px;
  font-size: 16px;
  color: var(--text-light);
}

.ai-modal-result {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-secondary);
}

.ai-modal-result h4 {
  color: var(--primary);
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: 800;
}

.ai-modal-result strong {
  color: var(--text);
}

.ai-modal-result .ai-warning {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: rgba(251,191,36,0.1);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  margin-top: 24px;
  font-size: 14px;
  color: var(--text);
}

.ai-modal-result .ai-warning i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: #f59e0b;
}

/* AI分析结果列表 */
.ai-results-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-result-item {
  padding: 16px;
  background: rgba(26, 86, 219, 0.05);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  transition: var(--transition-fast);
}

.ai-result-item:hover {
  background: rgba(26, 86, 219, 0.08);
  transform: translateX(4px);
}

.ai-result-meta {
  display: flex;
  gap: 20px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-light);
}

.ai-result-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-result-chars {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* AI分析分页 */
.ai-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.ai-page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.ai-page-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--gradient-card);
  transform: translateY(-2px);
}

.ai-page-btn:active:not(:disabled) {
  transform: translateY(0) scale(0.95);
}

.ai-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ai-page-btn i {
  width: 20px;
  height: 20px;
}

.ai-page-info {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 100px;
  text-align: center;
}

.modal-overlay.show { opacity: 1; visibility: visible; }

.modal {
  background: var(--bg-white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl); max-width: 640px; width: 100%;
  max-height: 85vh; overflow-y: auto;
  transform: translateY(30px) scale(0.92);
  transition: var(--transition); border: 1px solid var(--border-glass);
  position: relative;
}

.modal::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: var(--gradient); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-overlay.show .modal { transform: translateY(0) scale(1); }

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

.modal-header h3 { font-size: 22px; font-weight: 800; letter-spacing: 0.5px; }

.modal-close {
  padding: 10px; background: none; border: none; cursor: pointer;
  color: var(--text-light); transition: var(--transition-fast);
  border-radius: var(--radius-sm);
}

.modal-close:hover { color: var(--text); background: var(--gradient-card); transform: rotate(90deg); }

.modal-body { padding: 32px; }

.detail-row {
  display: flex; padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}

.detail-row:last-child { border-bottom: none; }

.detail-label {
  width: 120px; font-size: 14px; font-weight: 700;
  color: var(--text-light); flex-shrink: 0;
}

.detail-value { font-size: 15px; color: var(--text); }

/* ===== 打印样式 ===== */
@media print {
  .navbar, .hero, .footer, .query-tabs, .advanced-filter,
  .management-section, .about-section, .faq-card,
  .pagination, .action-btn, .results-actions, .detail-btn,
  .fab-group, .hero-waves, .hero-ai-response { display: none !important; }
  .section { padding: 0; }
  .query-card { box-shadow: none; }
  .results-table th, .results-table td { border: 1px solid #ccc; }
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .hero { min-height: 400px; }
  .hero-title { font-size: 36px; }
  .hero-content { padding: 60px 20px; }
  .hero-btn { padding: 16px 36px; font-size: 16px; }
  
  .hero-search-container { max-width: 100%; }
  .hero-search-box { flex-wrap: wrap; padding: 12px; gap: 8px; }
  .hero-search-box input { width: 100%; flex: none; padding: 12px; }
  .hero-search-btn, .hero-ai-btn { flex: 1; }
  .hero-search-hint { font-size: 12px; }
  
  .query-card { padding: 28px; }
  .query-title { font-size: 24px; }
  .query-tabs { gap: 8px; }
  .query-tab { padding: 10px 18px; font-size: 13px; }
  .category-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .results-header { flex-direction: column; align-items: flex-start; }
  .ai-input-area { flex-direction: column; }
  .ai-submit-btn { width: 100%; justify-content: center; }
  .guide-grid { grid-template-columns: 1fr; }
  .about-features { flex-wrap: wrap; }
  .guide-card, .faq-card, .ai-card, .about-card { padding: 28px; }
}

@media (max-width: 480px) {
  .section { padding: 50px 0; }
  .container { padding: 0 16px; }
  .query-card, .guide-card, .faq-card, .ai-card, .about-card { padding: 20px; }
  .hero { min-height: 340px; }
  .hero-content { padding: 50px 16px; }
  .hero-title { font-size: 32px; letter-spacing: 2px; }
  .hero-subtitle { font-size: 15px; margin-bottom: 32px; }
  .hero-btn { padding: 16px 36px; font-size: 15px; }
  .category-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .category-item { padding: 14px 16px; font-size: 13px; }
  .characteristic-options { flex-direction: column; }
  .characteristic-check { width: 100%; }
  .advanced-row { grid-template-columns: 1fr; }
  .nav-container { height: 64px; }
  .mobile-menu { top: 64px; }
  .hero { margin-top: 64px; }
  .results-table { font-size: 13px; }
  .results-table th, .results-table td { padding: 14px 16px; }
}

/* ===== 豁免清单 ===== */
.exemption-card {
  background: var(--bg-white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 44px;
  position: relative; overflow: hidden; transition: var(--transition);
}

.exemption-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: var(--gradient);
}

.exemption-card:hover { box-shadow: var(--shadow-xl), var(--shadow-glow-strong); transform: translateY(-3px); }

.exemption-search { max-width: 500px; margin-bottom: 32px; }
.exemption-list { display: flex; flex-direction: column; gap: 14px; }

.exemption-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0; transition: var(--transition-fast);
  overflow: hidden; background: var(--bg-white);
}

.exemption-item:hover { border-color: var(--primary-light); box-shadow: var(--shadow-md); }

.exemption-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 24px 28px; background: none; border: none;
  cursor: pointer; font-family: inherit; transition: var(--transition-fast);
  text-align: left;
}

.exemption-toggle:hover { background: var(--gradient-card); }
.exemption-toggle > div { flex: 1; }

.exemption-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }

.exemption-code {
  font-family: 'Courier New', monospace; font-size: 14px; font-weight: 700;
  color: var(--primary); background: var(--gradient-card);
  padding: 6px 14px; border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
}

.exemption-link-badge {
  font-size: 12px; padding: 6px 14px; border-radius: var(--radius-full);
  background: var(--gradient); color: #fff; font-weight: 700;
}

.exemption-name { font-size: 17px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.exemption-category { font-size: 13px; color: var(--text-light); margin-bottom: 10px; }

.exemption-chevron {
  width: 22px; height: 22px; color: var(--text-light);
  transition: transform 0.3s ease; flex-shrink: 0; margin-left: 18px;
}

.exemption-item.open .exemption-chevron { transform: rotate(180deg); color: var(--primary); }
.exemption-item.open .exemption-toggle { background: var(--gradient-card); border-bottom: 1px solid var(--border-light); }

.exemption-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; padding: 0 28px; }
.exemption-item.open .exemption-content { padding: 26px 28px; }
.exemption-detail { font-size: 14px; color: var(--text-secondary); line-height: 1.8; }
.exemption-detail strong { color: var(--text); }

/* ===== 鉴别标准 ===== */
.standards-card {
  background: var(--bg-white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 44px;
  position: relative; overflow: hidden; transition: var(--transition);
}

.standards-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: var(--gradient);
}

.standards-card:hover { box-shadow: var(--shadow-xl), var(--shadow-glow-strong); transform: translateY(-3px); }

.standards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 18px; }

.standard-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0; transition: var(--transition-fast);
  overflow: hidden; background: var(--bg-white);
}

.standard-item:hover { border-color: var(--primary-light); box-shadow: var(--shadow-md); }

.standard-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 24px 28px; background: none; border: none;
  cursor: pointer; font-family: inherit; transition: var(--transition-fast); text-align: left;
}

.standard-toggle:hover { background: var(--gradient-card); }
.standard-toggle > div { flex: 1; }

.standard-code { font-family: 'Courier New', monospace; font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.standard-name { font-size: 16px; font-weight: 700; color: var(--text); margin: 0; }

.standard-chevron {
  width: 22px; height: 22px; color: var(--text-light);
  transition: transform 0.3s ease; flex-shrink: 0; margin-left: 18px;
}

.standard-item.open .standard-chevron { transform: rotate(180deg); color: var(--primary); }
.standard-item.open .standard-toggle { background: var(--gradient-card); border-bottom: 1px solid var(--border-light); }

.standard-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; padding: 0 28px; }
.standard-item.open .standard-content { padding: 26px 28px; }

.standard-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.7; }

.standard-criteria {
  font-size: 14px; color: var(--text); background: var(--gradient-card);
  padding: 18px; border-radius: var(--radius-sm);
  white-space: pre-line; line-height: 1.8; border: 1px solid var(--border-light);
}

.standard-limits { margin-top: 16px; font-size: 14px; }
.standard-limits table { width: 100%; border-collapse: collapse; }
.standard-limits th, .standard-limits td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border-light); }
.standard-limits th { font-weight: 700; color: var(--text-secondary); font-size: 13px; background: var(--gradient-card); }

/* ===== 处置方法 ===== */
.disposal-card {
  background: var(--bg-white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 44px;
  position: relative; overflow: hidden; transition: var(--transition);
}

.disposal-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.disposal-card:hover { box-shadow: var(--shadow-xl), var(--shadow-glow-strong); transform: translateY(-3px); }

.disposal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 18px; }

.disposal-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0; transition: var(--transition-fast);
  overflow: hidden; background: var(--bg-white);
}

.disposal-item:hover { border-color: var(--secondary-light); box-shadow: var(--shadow-md); }

.disposal-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 24px 28px; background: none; border: none;
  cursor: pointer; font-family: inherit; transition: var(--transition-fast);
}

.disposal-toggle:hover { background: var(--gradient-card); }
.disposal-name { font-size: 18px; font-weight: 900; color: var(--secondary); margin: 0; }

.disposal-chevron {
  width: 22px; height: 22px; color: var(--text-light);
  transition: transform 0.3s ease; flex-shrink: 0;
}

.disposal-item.open .disposal-chevron { transform: rotate(180deg); color: var(--secondary); }
.disposal-item.open .disposal-toggle { background: var(--gradient-card); border-bottom: 1px solid var(--border-light); }

.disposal-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; padding: 0 28px; }
.disposal-item.open .disposal-content { padding: 26px 28px; }

.disposal-desc { font-size: 15px; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.7; }
.disposal-applicable { font-size: 14px; color: var(--text); margin-bottom: 16px; }
.disposal-applicable strong { color: var(--text-secondary); }

.disposal-requirements { list-style: none; margin-bottom: 18px; }
.disposal-requirements li {
  font-size: 14px; color: var(--text-secondary); padding: 8px 0;
  padding-left: 22px; position: relative; line-height: 1.7;
}

.disposal-requirements li::before {
  content: '•'; position: absolute; left: 0; color: var(--secondary);
  font-weight: 700; font-size: 20px;
}

.disposal-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; font-size: 14px; }

.disposal-pros {
  color: #059669; background: rgba(5,150,105,0.08); padding: 14px;
  border-radius: var(--radius-sm); border: 1px solid rgba(5,150,105,0.15);
}

.disposal-cons {
  color: #dc2626; background: rgba(220,38,38,0.08); padding: 14px;
  border-radius: var(--radius-sm); border: 1px solid rgba(220,38,38,0.15);
}

.disposal-pros strong, .disposal-cons strong { display: block; margin-bottom: 6px; font-size: 15px; }

/* ===== 通用区块标题 ===== */
.section-title {
  display: flex; align-items: center; gap: 14px;
  font-size: 28px; font-weight: 900; margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.section-icon { width: 32px; height: 32px; color: var(--primary); }
.section-desc { font-size: 15px; color: var(--text-secondary); margin-bottom: 28px; line-height: 1.7; }

/* ===== 侧边栏 ===== */
.sidebar-panel {
  position: fixed; top: 72px; right: -400px; width: 400px;
  height: calc(100vh - 72px); background: var(--bg-glass-strong);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-xl); z-index: 900;
  transition: right 0.3s ease; overflow-y: auto; padding: 32px;
  border-left: 1px solid var(--border-glass);
}

.sidebar-panel.open { right: 0; }

.sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; padding-bottom: 20px; border-bottom: 2px solid var(--border-light);
}

.sidebar-header h3 { font-size: 22px; font-weight: 800; }

.sidebar-close {
  background: none; border: none; cursor: pointer; color: var(--text-light);
  padding: 8px; border-radius: var(--radius-sm); transition: var(--transition-fast);
}

.sidebar-close:hover { color: var(--text); background: var(--gradient-card); transform: rotate(90deg); }

.sidebar-list { list-style: none; }

.sidebar-item {
  padding: 16px; border: 1px solid var(--border-light); border-radius: var(--radius);
  margin-bottom: 12px; cursor: pointer; transition: var(--transition-fast);
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg-white);
}

.sidebar-item:hover {
  border-color: var(--primary-light); background: var(--gradient-card);
  box-shadow: var(--shadow-sm); transform: translateX(-2px);
}

.sidebar-item-info h4 { font-size: 15px; font-weight: 600; color: var(--text); }
.sidebar-item-info p { font-size: 13px; color: var(--text-light); margin-top: 4px; }
.sidebar-item-actions { display: flex; gap: 10px; }

.sidebar-action-btn {
  padding: 6px 10px; border: none; border-radius: var(--radius-sm);
  font-size: 13px; cursor: pointer; transition: var(--transition-fast);
}

.sidebar-action-btn.remove { color: #ef4444; background: rgba(239,68,68,0.08); }
.sidebar-action-btn.remove:hover { background: #ef4444; color: #fff; }

.sidebar-empty { text-align: center; padding: 52px 0; color: var(--text-light); }

.sidebar-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.35);
  z-index: 899; opacity: 0; visibility: hidden; transition: var(--transition);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}

.sidebar-overlay.show { opacity: 1; visibility: visible; }

/* ===== 浮动按钮 ===== */
.fab-group {
  position: fixed; bottom: 32px; right: 32px;
  display: flex; flex-direction: column; gap: 14px; z-index: 800;
}

.fab-btn {
  width: 56px; height: 56px; border-radius: 50%; border: none;
  background: var(--gradient); color: #fff; cursor: pointer;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); position: relative;
}

.fab-btn:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: var(--shadow-xl), var(--shadow-glow-strong);
}

.fab-btn:active { transform: scale(0.95); }
.fab-btn i { width: 24px; height: 24px; }

.fab-badge {
  position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px;
  padding: 0 8px; border-radius: var(--radius-full); background: #ef4444;
  color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(239,68,68,0.4);
}

/* ===== 表格操作列 ===== */
.table-actions { display: flex; gap: 8px; }

.table-action-btn {
  padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-white); cursor: pointer; transition: var(--transition-fast);
  display: flex; align-items: center;
}

.table-action-btn i { width: 16px; height: 16px; }
.table-action-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--gradient-card); transform: translateY(-1px); }

/* ===== 响应式适配 ===== */
@media (max-width: 768px) {
  .exemption-card, .standards-card, .disposal-card { padding: 28px; }
  .standards-grid, .disposal-grid { grid-template-columns: 1fr; }
  .disposal-pros-cons { grid-template-columns: 1fr; }
  .sidebar-panel { width: 100%; right: -100%; }
  .fab-group { bottom: 20px; right: 20px; }
  .fab-btn { width: 50px; height: 50px; }
}

/* ===== 智能搜索建议 ===== */
.suggestions-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  z-index: 100; max-height: 340px; overflow-y: auto;
  display: none; animation: slideDown 0.2s ease forwards;
}

.suggestions-dropdown.show { display: block; }

@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.suggestion-item {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px;
  cursor: pointer; transition: var(--transition-fast);
  border-bottom: 1px solid var(--border-light);
}

.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover, .suggestion-item.highlighted { background: var(--gradient-card); }

.suggestion-icon { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; }
.suggestion-content { flex: 1; }
.suggestion-title { font-size: 14px; font-weight: 600; color: var(--text); }
.suggestion-subtitle { font-size: 12px; color: var(--text-light); margin-top: 2px; }

.suggestion-badge {
  padding: 4px 12px; border-radius: var(--radius-full);
  background: var(--gradient-card); color: var(--primary);
  font-size: 11px; font-weight: 600;
}

/* ===== 骨架屏 ===== */
.skeleton {
  background: linear-gradient(90deg, var(--border-light) 25%, var(--bg) 50%, var(--border-light) 75%);
  background-size: 200% 100%; animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.skeleton-card { background: var(--bg-white); border-radius: var(--radius-lg); padding: 40px; }
.skeleton-header { height: 32px; width: 200px; margin-bottom: 24px; }
.skeleton-row { display: flex; gap: 12px; margin-bottom: 16px; }
.skeleton-cell { height: 20px; flex: 1; }
.skeleton-cell.short { flex: 0 0 100px; }

.skeleton-table { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.skeleton-table-header { display: flex; gap: 16px; padding: 16px; background: var(--gradient-card); border-bottom: 1px solid var(--border); }
.skeleton-table-row { display: flex; gap: 16px; padding: 16px; border-bottom: 1px solid var(--border-light); }
.skeleton-table-row:last-child { border-bottom: none; }

/* ===== 粒子背景 ===== */
.particles-canvas { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

/* ===== 3D 卡片悬停 ===== */
.tilt-card { transform-style: preserve-3d; perspective: 1000px; transition: transform 0.1s ease; }
.tilt-card .tilt-content { transform: translateZ(0); transition: transform 0.3s ease; }
.tilt-card:hover .tilt-content { transform: translateZ(20px); }

.tilt-glow {
  position: absolute; inset: 0; border-radius: inherit;
  opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(99,102,241,0.15), transparent 50%);
}

.tilt-card:hover .tilt-glow { opacity: 1; }

/* ===== 视差滚动 ===== */
.parallax-element { transition: transform 0.1s linear; will-change: transform; }

/* ===== 页面过渡 ===== */
.page-transition { animation: pageFadeIn 0.6s ease forwards; }
@keyframes pageFadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ===== 涟漪效果 ===== */
.ripple {
  position: absolute; border-radius: 50%;
  background: rgba(99,102,241,0.3); transform: scale(0);
  animation: rippleEffect 0.6s ease-out; pointer-events: none;
}

@keyframes rippleEffect { to { transform: scale(4); opacity: 0; } }

/* ===== 加载动画 ===== */
.enhanced-loading { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 24px; }

.loading-spinner {
  width: 24px; height: 24px; border: 3px solid var(--border);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: 14px; color: var(--text-light); }

/* ===== 脉冲动画 ===== */
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(99,102,241,0.4); } 70% { box-shadow: 0 0 0 12px rgba(99,102,241,0); } 100% { box-shadow: 0 0 0 0 rgba(99,102,241,0); } }
.fab-btn.pulse { animation: pulse 2s infinite; }

/* ===== Toast 通知 ===== */
.toast-container { position: fixed; top: 90px; right: 24px; z-index: 2000; display: flex; flex-direction: column; gap: 12px; }

.toast {
  display: flex; align-items: center; gap: 14px; padding: 18px 24px;
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  animation: toastSlideIn 0.3s ease forwards; min-width: 320px;
}

@keyframes toastSlideIn { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } }
.toast.removing { animation: toastSlideOut 0.3s ease forwards; }
@keyframes toastSlideOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(100%); } }

.toast-icon { width: 20px; height: 20px; flex-shrink: 0; }
.toast-icon.success { color: var(--secondary); }
.toast-icon.error { color: #ef4444; }
.toast-icon.info { color: var(--primary); }
.toast-message { font-size: 14px; color: var(--text); }

/* ===== 返回顶部按钮 ===== */
.back-to-top {
  position: fixed; bottom: 100px; right: 32px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--bg-white); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); transition: var(--transition);
  opacity: 0; visibility: hidden; z-index: 700;
}

.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--gradient); color: #fff; border-color: transparent; transform: translateY(-3px); box-shadow: var(--shadow-xl); }
.back-to-top:active { transform: translateY(0) scale(0.9); }
.back-to-top i { width: 22px; height: 22px; }

/* ===== 鉴别案例模块样式 - 表格+抽屉 ===== */
.cases-section {
  background: var(--bg);
}

.cases-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  box-shadow: var(--shadow-lg);
}

.cases-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.cases-search {
  flex: 1;
  max-width: 400px;
  position: relative;
}

.cases-search .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-light);
}

.cases-search input {
  width: 100%;
  padding: 12px 16px 12px 48px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  transition: var(--transition);
  background: var(--bg);
}

.cases-search input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-white);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.1);
}

.cases-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-right: 4px;
}

.filter-btn {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.cases-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 24px;
  padding: 20px 24px;
  background: var(--gradient-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.stat-number.stat-danger {
  color: #ef4444;
}

.stat-number.stat-success {
  color: var(--secondary);
}

.stat-label {
  font-size: 13px;
  color: var(--text-light);
}

/* ===== 案例表格 ===== */
.cases-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.cases-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.cases-table thead {
  background: var(--bg);
}

.cases-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.cases-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
  vertical-align: middle;
}

.cases-table tbody tr {
  cursor: pointer;
  transition: var(--transition);
}

.cases-table tbody tr:hover {
  background: rgba(99,102,241,0.04);
}

.cases-table tbody tr:last-child td {
  border-bottom: none;
}

.case-id {
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 13px;
  color: var(--text-secondary);
}

.case-object {
  font-weight: 500;
  color: var(--text);
  max-width: 200px;
}

.case-desc {
  color: var(--text-secondary);
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-property {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

.property-hazard {
  background: #fef2f2;
  color: #dc2626;
}

.property-safe {
  background: #f0fdf4;
  color: #16a34a;
}

.case-action {
  color: var(--primary);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.case-action i {
  width: 16px;
  height: 16px;
}

/* 空状态 */
.cases-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
}

.cases-empty .empty-icon {
  width: 48px;
  height: 48px;
  color: var(--text-light);
  margin-bottom: 16px;
  opacity: 0.5;
}

.cases-empty p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.cases-empty .empty-hint {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== 详情抽屉 ===== */
.detail-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
}

.detail-drawer:not(.hidden) {
  pointer-events: auto;
}

.drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.detail-drawer:not(.hidden) .drawer-overlay {
  opacity: 1;
}

.drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 480px;
  max-width: 90vw;
  background: var(--bg-white);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.detail-drawer:not(.hidden) .drawer-content {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.drawer-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.drawer-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
}

.drawer-close:hover {
  background: var(--bg);
  color: var(--text);
}

.drawer-close i {
  width: 20px;
  height: 20px;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.drawer-section {
  margin-bottom: 24px;
}

.drawer-section-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.drawer-field {
  margin-bottom: 16px;
}

.drawer-field:last-child {
  margin-bottom: 0;
}

.drawer-field-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.drawer-field-value {
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
  word-break: break-word;
}

.drawer-field-value.highlight {
  padding: 12px 16px;
  background: var(--gradient-card);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
}

.drawer-property-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
}

.drawer-property-badge.hazard {
  background: #fef2f2;
  color: #dc2626;
}

.drawer-property-badge.safe {
  background: #f0fdf4;
  color: #16a34a;
}

.drawer-property-badge i {
  width: 16px;
  height: 16px;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .cases-card {
    padding: 20px;
  }

  .cases-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .cases-search {
    max-width: none;
  }

  .cases-stats {
    flex-direction: column;
    gap: 16px;
  }

  .drawer-content {
    width: 100%;
    max-width: 100%;
  }

  .case-desc {
    max-width: 150px;
  }
}

/* 回到顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-strong);
}

.back-to-top i {
  width: 24px;
  height: 24px;
}

/* 可折叠模块样式 */
.collapsible-section {
  position: relative;
}

.section-header-collapsible {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 8px 0;
  user-select: none;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.section-header-collapsible:hover {
  background: var(--gradient-card);
}

.section-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition-fast);
}

.section-toggle-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.section-toggle-btn i {
  width: 18px;
  height: 18px;
  transition: var(--transition);
}

.collapsible-section.collapsed .section-toggle-btn i {
  transform: rotate(-90deg);
}

.section-content.collapsible-content {
  max-height: 2000px;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out;
}

.collapsible-section.collapsed .section-content.collapsible-content {
  max-height: 0;
}

/* 响应式适配 */
@media (max-width: 992px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

/* 修复折叠后的样式 */
.collapsible-section .guide-card,
.collapsible-section .exemption-card,
.collapsible-section .standards-card,
.collapsible-section .disposal-card,
.collapsible-section .cases-card,
.collapsible-section .about-card {
  padding-top: 16px;
}

.collapsible-section.collapsed .guide-card,
.collapsible-section.collapsed .exemption-card,
.collapsible-section.collapsed .standards-card,
.collapsible-section.collapsed .disposal-card,
.collapsible-section.collapsed .cases-card,
.collapsible-section.collapsed .about-card {
  display: none;
}
