/* TRO案件查询系统 - 移动端优化版主样式 */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body { 
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'HarmonyOS Sans SC', 'Microsoft YaHei', sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
  color: #1e293b; line-height: 1.6; min-width: 320px; overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; }
input, select, textarea { font-family: inherit; font-size: 16px; /* 防止iOS自动缩放 */ }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ===== 顶部导航栏（移动端优化） ===== */
.top-nav {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
  color: white; box-shadow: 0 2px 12px rgba(30, 58, 138, 0.3);
}
.nav-container { max-width: 1280px; margin: 0 auto; padding: 0 12px; }
.nav-top { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; }
.logo-icon { width: 32px; height: 32px; background: rgba(255,255,255,0.15); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.nav-actions { display: flex; align-items: center; gap: 4px; }
.nav-btn { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: white; position: relative; }
.nav-btn:active { background: rgba(255,255,255,0.15); }
.nav-badge { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; background: #ef4444; border-radius: 50%; }
.mobile-menu-btn { display: flex; }

/* 桌面端菜单默认隐藏，移动端显示 */
.nav-menu {
  display: none; flex-direction: column; gap: 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 8px 0;
}
.nav-menu.active { display: flex; }
.nav-item {
  padding: 12px 16px; border-radius: 6px; font-size: 15px;
  display: flex; align-items: center; gap: 10px;
}
.nav-item:active { background: rgba(255,255,255,0.1); }
.nav-item.active { background: rgba(255,255,255,0.15); font-weight: 600; }

/* 桌面端断点 */
@media (min-width: 768px) {
  .nav-top { height: 64px; }
  .logo { font-size: 20px; gap: 12px; }
  .logo-icon { width: 40px; height: 40px; font-size: 22px; }
  .mobile-menu-btn { display: none; }
  .nav-menu { display: flex !important; flex-direction: row; gap: 4px; border-top: none; padding: 0; height: 44px; align-items: center; }
  .nav-item { padding: 8px 14px; font-size: 14px; }
}

/* ===== 主容器 ===== */
.main-container { max-width: 1280px; margin: 0 auto; padding: 12px; }
@media (min-width: 768px) { .main-container { padding: 20px; } }
@media (min-width: 1024px) { .main-container { padding: 24px; } }

/* ===== 面包屑 ===== */
.breadcrumb { 
  font-size: 13px; color: #64748b; margin-bottom: 12px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
  padding: 8px 12px; background: white; border-radius: 8px;
  overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch;
}
.breadcrumb a { color: #2563eb; }
.breadcrumb span { color: #94a3b8; }

/* ===== Hero搜索区 ===== */
.hero-section {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
  border-radius: 12px; padding: 20px 16px; margin-bottom: 16px; color: white;
}
.hero-title { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.hero-subtitle { font-size: 13px; opacity: 0.85; margin-bottom: 16px; }
.search-box { background: white; border-radius: 10px; padding: 8px; margin-bottom: 12px; }
.search-tabs { display: flex; gap: 4px; margin-bottom: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.search-tab {
  padding: 6px 12px; border-radius: 6px; font-size: 13px; color: #64748b;
  white-space: nowrap; flex-shrink: 0;
}
.search-tab.active { background: #eff6ff; color: #2563eb; font-weight: 600; }
.search-input-row { display: flex; gap: 8px; }
.search-input {
  flex: 1; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 8px;
  font-size: 15px; outline: none; min-width: 0;
}
.search-input:focus { border-color: #2563eb; }
.search-btn {
  padding: 10px 16px; background: linear-gradient(135deg, #2563eb, #1d4ed8); color: white;
  border-radius: 8px; font-size: 14px; font-weight: 600; white-space: nowrap;
}
.search-filters { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.filter-select {
  flex: 1; min-width: 100px; padding: 8px 10px; border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px; background: rgba(255,255,255,0.15); color: white; font-size: 13px;
  -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center; padding-right: 28px;
}
.filter-select option { color: #1e293b; }
.hot-keywords { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.hot-keyword {
  padding: 4px 10px; background: rgba(255,255,255,0.15); border-radius: 20px;
  font-size: 12px; color: rgba(255,255,255,0.9); white-space: nowrap;
}
@media (min-width: 768px) {
  .hero-section { padding: 32px 40px; border-radius: 16px; margin-bottom: 24px; }
  .hero-title { font-size: 32px; }
  .hero-subtitle { font-size: 15px; }
  .search-box { padding: 12px; }
  .search-tab { padding: 8px 16px; font-size: 14px; }
  .search-input { padding: 12px 16px; font-size: 15px; }
  .search-btn { padding: 12px 24px; font-size: 15px; }
}

/* ===== 统计卡片 ===== */
.stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px;
}
.stat-card {
  background: white; border-radius: 12px; padding: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.stat-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 8px; }
.stat-value { font-size: 22px; font-weight: 700; color: #1e293b; line-height: 1.2; }
.stat-label { font-size: 12px; color: #64748b; margin-top: 2px; }
.stat-warning { animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }

@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; } .stat-card { padding: 20px; } .stat-value { font-size: 28px; } }

/* ===== 通用卡片 ===== */
.card {
  background: white; border-radius: 12px; padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05); margin-bottom: 16px;
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid #f1f5f9;
}
.card-title { font-size: 16px; font-weight: 700; color: #1e293b; display: flex; align-items: center; gap: 8px; }
.card-title::before { content: ''; width: 4px; height: 16px; background: linear-gradient(to bottom, #2563eb, #1d4ed8); border-radius: 2px; }
.card-more { font-size: 13px; color: #2563eb; }

@media (min-width: 768px) { .card { border-radius: 16px; padding: 24px; margin-bottom: 24px; } .card-title { font-size: 18px; } }

/* ===== 快捷功能 ===== */
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quick-item {
  display: flex; flex-direction: column; align-items: center; padding: 14px 8px;
  border-radius: 10px; background: #f8fafc; text-align: center;
}
.quick-item:active { background: #eff6ff; }
.quick-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 6px; }
.quick-text { font-size: 12px; color: #475569; }
@media (min-width: 640px) { .quick-grid { grid-template-columns: repeat(6, 1fr); gap: 16px; } .quick-item { padding: 20px 12px; } .quick-icon { width: 48px; height: 48px; font-size: 24px; } .quick-text { font-size: 13px; } }

/* ===== Tab切换 ===== */
.tabs {
  display: flex; gap: 4px; border-bottom: 2px solid #f1f5f9; margin-bottom: 16px;
  overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: -2px;
}
.tab {
  padding: 8px 14px; font-size: 14px; color: #64748b; border-bottom: 2px solid transparent;
  margin-bottom: -2px; white-space: nowrap; flex-shrink: 0;
}
.tab.active { color: #2563eb; border-bottom-color: #2563eb; font-weight: 600; }

/* ===== 表格（移动端自适应） ===== */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 16px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 640px; }
.data-table th { 
  text-align: left; padding: 10px 12px; background: #f8fafc; color: #64748b; 
  font-weight: 600; font-size: 12px; white-space: nowrap;
}
.data-table td { padding: 12px; border-bottom: 1px solid #f1f5f9; }
.data-table tr:active { background: #f8fafc; }

/* 移动端列表卡片样式（替代表格） */
.mobile-list { display: flex; flex-direction: column; gap: 10px; }
.mobile-list-item {
  background: #f8fafc; border-radius: 10px; padding: 12px;
}
.ml-title { font-size: 14px; font-weight: 600; color: #1e293b; margin-bottom: 6px; line-height: 1.4; }
.ml-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: #64748b; }
.ml-meta-item { display: flex; align-items: center; gap: 3px; }

@media (min-width: 768px) {
  .mobile-list { display: none; }
  .table-wrap { margin: 0; padding: 0; }
}
@media (max-width: 767px) {
  .table-wrap { display: none; }
}

/* ===== 状态标签 ===== */
.badge {
  display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
}
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-green { background: #dcfce7; color: #15803d; }
.badge-yellow { background: #fef3c7; color: #b45309; }
.badge-red { background: #fee2e2; color: #b91c1c; }
.badge-gray { background: #f1f5f9; color: #475569; }
.badge-purple { background: #ede9fe; color: #6d28d9; }
.badge-orange { background: #ffedd5; color: #c2410c; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 600;
  transition: all 0.2s; white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: white; }
.btn-success { background: linear-gradient(135deg, #10b981, #059669); color: white; }
.btn-warning { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; }
.btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: white; }
.btn-outline { border: 1px solid #e2e8f0; background: white; color: #475569; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 12px 24px; font-size: 15px; width: 100%; }

/* ===== 分页 ===== */
.pagination { display: flex; justify-content: center; align-items: center; gap: 4px; margin-top: 20px; flex-wrap: wrap; }
.page-btn { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; color: #64748b; background: #f8fafc; }
.page-btn.active { background: #2563eb; color: white; font-weight: 600; }
.page-btn:active { background: #e2e8f0; }
.page-btn.active:active { background: #1d4ed8; }

/* ===== 筛选侧栏（移动端折叠） ===== */
.filter-panel { background: white; border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.filter-group { margin-bottom: 16px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-label { font-size: 13px; font-weight: 600; color: #475569; margin-bottom: 8px; }
.filter-options { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-option {
  padding: 5px 12px; border-radius: 6px; font-size: 13px; background: #f8fafc; color: #64748b;
}
.filter-option.active { background: #eff6ff; color: #2563eb; font-weight: 600; }
.filter-toggle { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: white; border-radius: 10px; margin-bottom: 12px; font-weight: 600; }
@media (min-width: 1024px) {
  .content-with-sidebar { display: grid; grid-template-columns: 260px 1fr; gap: 20px; }
  .filter-toggle { display: none; }
  .filter-panel { margin-bottom: 0; position: sticky; top: 140px; }
}

/* ===== 详情页布局 ===== */
.detail-header {
  background: white; border-radius: 12px; padding: 16px; margin-bottom: 16px;
}
.detail-title { font-size: 16px; font-weight: 700; line-height: 1.5; margin-bottom: 12px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: #64748b; margin-bottom: 12px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 768px) {
  .detail-header { padding: 24px; border-radius: 16px; margin-bottom: 24px; }
  .detail-title { font-size: 22px; }
}

.info-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.info-item { display: flex; gap: 8px; font-size: 14px; }
.info-label { color: #64748b; min-width: 80px; flex-shrink: 0; }
.info-value { color: #1e293b; font-weight: 500; word-break: break-all; }
@media (min-width: 640px) { .info-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* ===== 时间轴 ===== */
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 4px; bottom: 4px; width: 2px; background: #e2e8f0; }
.timeline-item { position: relative; padding-bottom: 16px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -24px; top: 2px; width: 16px; height: 16px;
  border-radius: 50%; background: white; border: 3px solid #cbd5e1;
}
.timeline-dot.active { border-color: #2563eb; background: #2563eb; }
.timeline-dot.warning { border-color: #f59e0b; background: #f59e0b; }
.timeline-dot.danger { border-color: #ef4444; background: #ef4444; }
.timeline-date { font-size: 12px; color: #64748b; margin-bottom: 4px; }
.timeline-content { font-size: 14px; color: #334155; line-height: 1.6; }
.timeline-content-cn { font-size: 13px; color: #64748b; margin-top: 6px; padding: 8px 12px; background: #f8fafc; border-radius: 6px; display: none; }
.timeline-content-cn.show { display: block; }
.timeline-actions { display: flex; gap: 8px; margin-top: 8px; }
.timeline-btn {
  font-size: 12px; padding: 4px 10px; border-radius: 4px; background: #eff6ff; color: #2563eb;
  display: inline-flex; align-items: center; gap: 4px;
}

/* ===== 按钮组（详情页操作） ===== */
.action-buttons {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 16px;
}
@media (min-width: 640px) { .action-buttons { grid-template-columns: repeat(4, 1fr); } }

/* ===== AI解析面板 ===== */
.ai-panel {
  background: linear-gradient(135deg, #f0f9ff, #eff6ff); border: 1px solid #bfdbfe;
  border-radius: 12px; padding: 16px; margin-bottom: 16px; display: none;
}
.ai-panel.show { display: block; }
.ai-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.ai-icon { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg, #8b5cf6, #6d28d9); color: white; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.ai-title { font-size: 15px; font-weight: 700; color: #4c1d95; }
.ai-risk { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 10px; background: white; border-radius: 8px; }
.risk-level { padding: 2px 10px; border-radius: 4px; font-size: 12px; font-weight: 700; }
.risk-high { background: #fee2e2; color: #b91c1c; }
.ai-suggestions { font-size: 13px; color: #475569; line-height: 1.7; }
.ai-suggestions li { margin-bottom: 6px; padding-left: 16px; position: relative; }
.ai-suggestions li::before { content: '✓'; position: absolute; left: 0; color: #10b981; font-weight: bold; }

/* ===== 表单 ===== */
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 14px; font-weight: 600; color: #334155; margin-bottom: 6px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 8px;
  font-size: 15px; outline: none; background: white;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: #2563eb; }
.form-textarea { min-height: 100px; resize: vertical; }

/* ===== 登录注册页 ===== */
.auth-page {
  min-height: calc(100vh - 52px); display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.auth-card {
  background: white; border-radius: 16px; padding: 24px; width: 100%; max-width: 400px;
  box-shadow: 0 4px 24px rgba(30, 58, 138, 0.1);
}
.auth-title { font-size: 22px; font-weight: 700; text-align: center; margin-bottom: 8px; }
.auth-subtitle { font-size: 14px; color: #64748b; text-align: center; margin-bottom: 24px; }
.auth-tabs { display: flex; margin-bottom: 20px; background: #f8fafc; border-radius: 10px; padding: 4px; }
.auth-tab { flex: 1; padding: 10px; text-align: center; border-radius: 8px; font-size: 14px; font-weight: 600; color: #64748b; }
.auth-tab.active { background: white; color: #2563eb; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.social-login { display: flex; justify-content: center; gap: 16px; margin-top: 20px; }
.social-btn { width: 44px; height: 44px; border-radius: 50%; background: #f8fafc; display: flex; align-items: center; justify-content: center; font-size: 20px; }

/* ===== 模态框 ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 200;
  display: none; align-items: flex-end; justify-content: center; padding: 0;
}
.modal-overlay.show { display: flex; }
.modal {
  background: white; border-radius: 16px 16px 0 0; width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto; padding: 20px;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-title { font-size: 17px; font-weight: 700; }
.modal-close { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #94a3b8; }
@media (min-width: 640px) {
  .modal-overlay { align-items: center; padding: 20px; }
  .modal { border-radius: 16px; }
}

/* ===== Toast提示 ===== */
.toast-container { position: fixed; top: 70px; left: 50%; transform: translateX(-50%); z-index: 300; pointer-events: none; }
.toast {
  background: rgba(30, 41, 59, 0.9); color: white; padding: 10px 20px; border-radius: 8px;
  font-size: 14px; margin-bottom: 8px; white-space: nowrap;
  animation: toastIn 0.3s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

/* ===== 文章详情 ===== */
.article-content { font-size: 15px; line-height: 1.8; color: #334155; word-break: break-word; }
.article-content p { margin-bottom: 16px; }
.article-content h1 { font-size: 22px; font-weight: 700; margin: 28px 0 14px; color: #1e293b; line-height: 1.35; }
.article-content h2 { font-size: 19px; font-weight: 700; margin: 26px 0 12px; color: #1e293b; line-height: 1.4; padding-bottom: 8px; border-bottom: 1px solid #e2e8f0; }
.article-content h3 { font-size: 17px; font-weight: 700; margin: 22px 0 10px; color: #334155; }
.article-content h4 { font-size: 16px; font-weight: 600; margin: 18px 0 8px; color: #334155; }
.article-content h5 { font-size: 15px; font-weight: 600; margin: 16px 0 8px; color: #475569; }
.article-content h6 { font-size: 14px; font-weight: 600; margin: 14px 0 6px; color: #64748b; }
.article-content ul,
.article-content ol { margin: 12px 0 16px; padding-left: 24px; }
.article-content li { margin-bottom: 6px; line-height: 1.8; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content blockquote {
  margin: 16px 0; padding: 12px 18px; border-left: 4px solid #3b82f6;
  background: #eff6ff; color: #475569; border-radius: 0 8px 8px 0;
}
.article-content blockquote p { margin-bottom: 0; }
.article-content img {
  max-width: 100%; height: auto; margin: 14px 0; border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06); display: block;
}
.article-content figure { margin: 14px 0; text-align: center; }
.article-content figure img { margin: 0 auto; }
.article-content figcaption { font-size: 12px; color: #94a3b8; margin-top: 6px; }
.article-content table {
  width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px;
  display: block; overflow-x: auto;
}
.article-content table th,
.article-content table td {
  padding: 10px 14px; border: 1px solid #e2e8f0; text-align: left;
}
.article-content table th { background: #f8fafc; font-weight: 600; color: #334155; }
.article-content table tr:nth-child(even) td { background: #fafbfc; }
.article-content a { color: #2563eb; text-decoration: none; border-bottom: 1px dashed #93c5fd; transition: all .15s; }
.article-content a:hover { color: #1d4ed8; border-bottom-style: solid; }
.article-content strong,
.article-content b { font-weight: 700; color: #1e293b; }
.article-content em,
.article-content i { font-style: italic; }
.article-content u { text-decoration: underline; }
.article-content hr { border: none; border-top: 1px solid #e2e8f0; margin: 24px 0; }
.article-content code {
  background: #f1f5f9; color: #db2777; padding: 2px 6px; border-radius: 4px;
  font-size: 13px; font-family: "SF Mono", Consolas, Monaco, Menlo, monospace;
}
.article-content pre {
  background: #1e293b; color: #e2e8f0; padding: 16px 18px; border-radius: 10px;
  overflow-x: auto; margin: 16px 0; font-size: 13px; line-height: 1.6;
}
.article-content pre code { background: none; color: inherit; padding: 0; border-radius: 0; font-size: inherit; }
.article-content br { display: none; } /* 隐藏编辑器自动加的多余 br */
.article-content > *:first-child { margin-top: 0 !important; }
.article-content > *:last-child { margin-bottom: 0 !important; }
.article-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }
.tag { padding: 4px 10px; background: #f1f5f9; border-radius: 4px; font-size: 12px; color: #64748b; }

/* ===== 列表筛选（移动端顶部） ===== */
.search-bar { display: flex; gap: 8px; margin-bottom: 12px; }
.search-bar-input { flex: 1; padding: 10px 14px; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 15px; background: white; outline: none; }
.filter-btn { padding: 10px 14px; background: white; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 14px; display: flex; align-items: center; gap: 4px; }
.view-toggle { display: flex; background: white; border-radius: 10px; padding: 3px; }
.view-btn { width: 34px; height: 34px; border-radius: 7px; display: flex; align-items: center; justify-content: center; color: #94a3b8; }
.view-btn.active { background: #2563eb; color: white; }

/* ===== 品牌/律所/法院 通用实体卡片 ===== */
.entity-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.entity-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  text-align: left;
  box-shadow: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  overflow: hidden;
}
.entity-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px -12px rgba(37, 99, 235, .28);
  border-color: #bfdbfe;
}

/* 封面（旧 entity-avatar 改为方形封面区） */
.entity-avatar {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  margin: 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  overflow: hidden;
  position: relative;
}

/* 右侧内容区（虚拟 entity-body，用后续兄弟选择器） */
.entity-card > *:not(.entity-avatar) {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* 名称/缩写（entity-name） */
.entity-name {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 副标题/简介（entity-count 旧用法变副标题） */
.entity-count {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}

/* 威胁条（entity-threat-bar） */
.entity-threat {
  height: 4px;
  background: #f1f5f9;
  border-radius: 2px;
  margin-top: 4px;
  overflow: hidden;
  order: 99; /* 放最底 */
}
.entity-threat-bar { height: 100%; border-radius: 2px; }

/* 响应式 */
@media (min-width: 560px)  { .entity-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 860px)  { .entity-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1180px) { .entity-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 559px)  {
  .entity-card { padding: 12px; gap: 12px; }
  .entity-avatar { width: 56px; height: 56px; font-size: 18px; border-radius: 10px; }
  .entity-name { font-size: 14px; }
}

/* ===== 字母索引 ===== */
.alpha-index {
  display: flex; gap: 4px; overflow-x: auto; padding: 8px 0; margin-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}
.alpha-item {
  width: 30px; height: 30px; border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: #64748b; background: white; flex-shrink: 0;
}
.alpha-item.active { background: #2563eb; color: white; }

/* ===== 页脚 ===== */
.footer {
  background: #1e293b; color: #94a3b8; padding: 24px 16px; margin-top: 32px;
  font-size: 13px;
}
.footer-container { max-width: 1280px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 20px; }
.footer-title { color: white; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.footer-links li { margin-bottom: 6px; }
.footer-links a:active { color: #60a5fa; }
.footer-bottom { text-align: center; padding-top: 16px; border-top: 1px solid #334155; font-size: 12px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }

/* ===== 关于我们/联系我们 Hero ===== */
.page-hero {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  border-radius: 12px; padding: 28px 20px; color: white; margin-bottom: 16px; text-align: center;
}
.page-hero-title { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.page-hero-desc { font-size: 13px; opacity: 0.85; }
@media (min-width: 768px) { .page-hero { padding: 48px 40px; border-radius: 16px; margin-bottom: 24px; } .page-hero-title { font-size: 36px; } .page-hero-desc { font-size: 16px; } }

/* ===== FAQ手风琴 ===== */
.faq-item { border-bottom: 1px solid #f1f5f9; }
.faq-question {
  width: 100%; padding: 14px 0; display: flex; justify-content: space-between; align-items: center;
  font-size: 15px; font-weight: 600; color: #1e293b; text-align: left;
}
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  font-size: 14px; color: #64748b; line-height: 1.7;
}
.faq-answer.open { max-height: 300px; padding-bottom: 14px; }
.faq-icon { transition: transform 0.3s; font-size: 18px; }
.faq-icon.open { transform: rotate(180deg); }

/* ===== 双列布局（桌面端） ===== */
.two-col { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 1024px) { .two-col { flex-direction: row; } .two-col-main { flex: 1; min-width: 0; } .two-col-side { width: 300px; flex-shrink: 0; } }

/* ===== 侧栏小部件 ===== */
.widget { background: white; border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.widget-title { font-size: 15px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.widget-list li { padding: 8px 0; border-bottom: 1px solid #f8fafc; font-size: 14px; display: flex; justify-content: space-between; }
.widget-list li:last-child { border-bottom: none; }

/* ===== 统计数字大字 ===== */
.big-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.big-stat {
  background: white; border-radius: 12px; padding: 16px; text-align: center;
}
.big-stat-num { font-size: 28px; font-weight: 800; background: linear-gradient(135deg, #2563eb, #1d4ed8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.big-stat-label { font-size: 12px; color: #64748b; margin-top: 2px; }
@media (min-width: 640px) { .big-stats { grid-template-columns: repeat(4, 1fr); gap: 16px; } .big-stat-num { font-size: 36px; } }

/* ===== SVG图表容器 ===== */
.chart-container { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.chart-svg { width: 100%; height: auto; min-width: 300px; }

/* ===== 进度条 ===== */
.progress-item { margin-bottom: 10px; }
.progress-label { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.progress-bar { height: 8px; background: #f1f5f9; border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 4px; }

/* ===== 隐藏/显示工具类 ===== */
.hidden { display: none !important; }
@media (max-width: 767px) { .hide-mobile { display: none !important; } }
@media (min-width: 768px) { .show-mobile-only { display: none !important; } }

/* 滚动条优化 */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 2px; }

/* ===== 州/品牌/律所 增强卡片（独立类名，不影响 .entity-* 通用卡片） ===== */

/* Hero 增强：州详情蓝渐变 + 统计条 */
.state-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
  color: white;
  border-radius: 16px;
  padding: 28px 24px;
  margin-bottom: 20px;
}
.state-hero-bg {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 80%, rgba(255,255,255,.08) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(255,255,255,.1) 0%, transparent 40%);
  pointer-events: none;
}
.state-hero > * { position: relative; z-index: 1; }
.state-hero .page-hero-title { color: #fff; }
.state-hero .page-hero-desc { color: rgba(255,255,255,.85); }

.state-hero-stats {
  display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap;
}
.state-hero-stat {
  display: flex; flex-direction: column;
  background: rgba(255,255,255,.15); backdrop-filter: blur(8px);
  padding: 10px 18px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.2); min-width: 80px;
}
.state-hero-stat strong { font-size: 22px; font-weight: 700; letter-spacing: .5px; }
.state-hero-stat span { font-size: 12px; opacity: .85; margin-top: 2px; }

/* 搜索框增强（新增类，不覆盖 .search-bar / .search-bar-input） */
.search-bar-icon {
  display: flex; align-items: center;
  padding: 0 12px; background: #f1f5f9;
  border-radius: 10px 0 0 10px; font-size: 14px;
  border: 1px solid #e2e8f0; border-right: none;
}
.btn-ghost {
  padding: 8px 14px; border-radius: 10px;
  font-size: 14px; border: 1px solid #e2e8f0;
  background: white; color: #64748b;
  cursor: pointer; text-decoration: none; line-height: 1.5;
}
.btn-ghost:hover { color: #2563eb; border-color: #2563eb; }

/* 州卡片网格（独立类 state-grid，不复用 entity-grid） */
.state-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 560px) { .state-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .state-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1180px) { .state-grid { grid-template-columns: repeat(4, 1fr); } }

/* 州卡片（独立类 state-card，不复用 entity-card） */
.state-card {
  display: block; padding: 18px 20px;
  background: #fff; border: 1px solid #eef2f7; border-radius: 14px;
  text-decoration: none; color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position: relative; overflow: hidden;
}
.state-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  opacity: 0; transition: opacity .18s ease;
}
.state-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px -12px rgba(37, 99, 235, .25);
  border-color: #bfdbfe;
}
.state-card:hover::before { opacity: 1; }

.state-card-head {
  display: flex; gap: 14px; align-items: center; margin-bottom: 10px;
}
.state-card-badge {
  width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, #2563eb, #3b82f6); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px -4px rgba(37,99,235,.5);
}
.state-card-abbr { font-size: 20px; font-weight: 800; letter-spacing: 1px; }
.state-card-meta { min-width: 0; flex: 1; }
.state-card-title {
  margin: 0 0 3px; font-size: 17px; font-weight: 700;
  color: #0f172a; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.state-card-en {
  font-size: 12.5px; color: #64748b; font-style: italic;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.state-card-text {
  font-size: 13px; color: #475569; line-height: 1.7;
  margin: 6px 0 14px; min-height: 44px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.state-card-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 10px; border-top: 1px dashed #e2e8f0; font-size: 12px;
}
.state-card-id {
  color: #94a3b8; font-family: ui-monospace, Menlo, Consolas, monospace;
}
.state-card-link {
  color: #2563eb; font-weight: 600; opacity: .85; transition: opacity .15s;
}
.state-card:hover .state-card-link { opacity: 1; }

/* 空状态（通用） */
.empty-tip {
  grid-column: 1 / -1; text-align: center; padding: 60px 20px;
  background: #fff; border-radius: 14px; border: 1px dashed #e2e8f0;
}
.empty-tip-icon { font-size: 48px; margin-bottom: 12px; }
.empty-tip-text { color: #64748b; font-size: 14px; margin-bottom: 16px; }

/* ===== 分页器（通用，匹配 ThinkPHP 默认 HTML：ul.pagination > li > span/a） ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 24px;
  padding: 16px 0;
  flex-wrap: wrap;
}
.pagination li {
  list-style: none;
  display: inline-block;
}
.pagination li a,
.pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  text-decoration: none;
  transition: all .18s ease;
  box-sizing: border-box;
}
.pagination li a:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px -4px rgba(37, 99, 235, .4);
}
.pagination li.active span {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border-color: #2563eb;
  color: #fff;
  font-weight: 600;
}
.pagination li.disabled span {
  color: #cbd5e1;
  background: #f8fafc;
  cursor: not-allowed;
  border-color: #f1f5f9;
}

/* ===== 州详情页 ===== */

/* 详情 Hero（蓝渐变 + 缩写徽章 + 统计） */
.state-hero-detail {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
  border-radius: 16px;
  padding: 28px 24px;
  margin-bottom: 20px;
  color: white;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}
.state-hero-detail::after {
  content: '';
  position: absolute;
  right: -40px; top: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.state-hero-detail-badge {
  width: 64px; height: 64px;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800; letter-spacing: 1px;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.3);
}
.state-hero-detail-info { flex: 1; min-width: 0; position: relative; z-index: 1; }
.state-hero-detail-title {
  margin: 0 0 4px; font-size: 24px; font-weight: 700; line-height: 1.3;
}
.state-hero-detail-en {
  font-size: 14px; opacity: .9; font-style: italic; margin-bottom: 8px;
}
.state-hero-detail-text {
  margin: 0; font-size: 13px; line-height: 1.7; opacity: .85;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.state-hero-detail-stats { display: flex; gap: 10px; flex-shrink: 0; position: relative; z-index: 1; }
.state-hero-detail-stat {
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.3);
  padding: 10px 16px;
  text-align: center;
  min-width: 90px;
}
.state-hero-detail-stat strong {
  display: block; font-size: 24px; font-weight: 800; line-height: 1.1;
}
.state-hero-detail-stat span { font-size: 12px; opacity: .85; }

/* 基本信息网格 */
.state-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.state-info-row {
  display: flex;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
}
.state-info-row:last-child { border-bottom: none; }
.state-info-label {
  width: 90px; flex-shrink: 0;
  color: #64748b; font-weight: 500;
}
.state-info-value {
  flex: 1; color: #0f172a; word-break: break-all;
}
.state-info-badge {
  display: inline-block;
  padding: 2px 10px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .5px;
}
@media (min-width: 640px) {
  .state-info-grid { grid-template-columns: repeat(2, 1fr); column-gap: 24px; }
  .state-info-row:nth-child(odd) { padding-right: 24px; }
}

/* 案件表格（桌面） */
.state-cases-table-wrap { overflow-x: auto; margin: 0 -24px; padding: 0 24px; }
.state-cases-table {
  width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px;
}
.state-cases-table thead th {
  text-align: left; font-size: 13px; font-weight: 600;
  color: #64748b; background: #f8fafc;
  padding: 12px 14px; border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}
.state-cases-table tbody td {
  padding: 12px 14px; border-bottom: 1px solid #f1f5f9; color: #334155;
}
.state-cases-table tbody tr:hover { background: #fafbfc; }
.state-cases-table tbody tr:last-child td { border-bottom: none; }
.state-cases-td-id a {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  color: #2563eb; font-weight: 600; text-decoration: none;
}
.state-cases-td-id a:hover { text-decoration: underline; }
.state-cases-td-name a {
  color: #0f172a; text-decoration: none;
}
.state-cases-td-name a:hover { color: #2563eb; }
.state-cases-name-link {
  display: inline-block;
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
.state-cases-sub { color: #94a3b8; font-size: 12.5px; }
.state-cases-level {
  display: inline-block; padding: 2px 10px; border-radius: 12px;
  color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap;
}

/* 移动端表格隐藏，用列表 */
.state-cases-mobile { display: none; }
@media (max-width: 767px) {
  .state-cases-table-wrap { display: none; }
  .state-cases-mobile { display: block; }

  .state-hero-detail {
    flex-direction: column; gap: 14px; padding: 20px;
  }
  .state-hero-detail-badge { width: 52px; height: 52px; font-size: 22px; border-radius: 12px; }
  .state-hero-detail-title { font-size: 20px; }
  .state-hero-detail-text { -webkit-line-clamp: 3; }
  .state-hero-detail-stats { align-self: flex-start; }
}

/* ============================================================
   ============ 新版公共组件样式（统一设计系统） ============
   ============================================================ */

/* 容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============ 顶部条 + 主导航 ============ */
.top-bar {
  background: #0f172a;
  color: #cbd5e1;
  font-size: 13px;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 36px;
}
.top-bar-right a {
  color: #cbd5e1;
  margin-left: 16px;
  transition: color .15s;
}
.top-bar-right a:hover { color: #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
  justify-content: space-between;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0f172a;
  flex-shrink: 0;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.logo-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}
.logo-text em {
  display: block;
  font-size: 10px;
  font-style: normal;
  color: #64748b;
  letter-spacing: .3px;
}
.site-nav {
  flex: 1;
  display: flex;
  gap: 4px;
  overflow-x: auto;
}
.site-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  white-space: nowrap;
  transition: all .15s;
}
.site-nav a:hover { background: #f1f5f9; color: #0f172a; }
.site-nav a.active {
  background: #eff6ff;
  color: #2563eb;
  font-weight: 600;
}
.site-nav-actions { display: none; }
.nav-mobile-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 20px;
  color: #475569;
}

/* 面包屑 */
.breadcrumb-bar {
  background: #f8fafc;
  border-bottom: 1px solid #eef2f7;
  padding: 10px 0;
  font-size: 13px;
  color: #64748b;
}
.breadcrumb-bar a { color: #64748b; }
.breadcrumb-bar a:hover { color: #2563eb; }
.breadcrumb-bar .sep { margin: 0 8px; color: #cbd5e1; }
.breadcrumb-bar .current { color: #0f172a; font-weight: 500; }

/* ============ Hero 搜索 ============ */
.hero-section {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #60a5fa 100%);
  color: #fff;
  padding: 60px 0 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255,255,255,.15), transparent 50%);
  pointer-events: none;
}
.hero-section .container { position: relative; z-index: 1; }
.hero-section h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -1px;
}
.hero-section p { font-size: 16px; opacity: .9; margin-bottom: 24px; }
.hero-search {
  display: flex;
  gap: 8px;
  max-width: 640px;
  margin: 0 auto 14px;
  background: #fff;
  padding: 6px;
  border-radius: 14px;
  box-shadow: 0 12px 40px -12px rgba(0,0,0,.3);
}
.hero-search input {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: transparent;
  font-size: 15px;
  color: #0f172a;
  outline: none;
  min-width: 0;
}
.hero-search button {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}
.hero-tags { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.hero-tags a {
  padding: 6px 14px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 20px;
  font-size: 13px;
  transition: all .15s;
}
.hero-tags a:hover { background: rgba(255,255,255,.25); }

/* ============ 页面头（page-hero） ============ */
.page-hero {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  padding: 36px 0 28px;
  border-bottom: 1px solid #e0e7ff;
}
.page-hero--compact { padding: 28px 0 22px; }
.page-hero h1 {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}
.page-hero p {
  font-size: 14px;
  color: #64748b;
}

/* ============ 搜索条 ============ */
.search-bar {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  max-width: 560px;
}
.search-bar input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
  outline: none;
  transition: border-color .15s;
}
.search-bar input:focus { border-color: #2563eb; }
.search-bar button {
  padding: 10px 18px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}
.search-select {
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
  outline: none;
  flex-shrink: 0;
}

/* ============ 通用 section ============ */
.page-body {
  padding: 28px 0;
}
.page-body--compact { padding-top: 0; }
.section-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.section-title .bar {
  width: 4px;
  height: 18px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border-radius: 2px;
  flex-shrink: 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.section-head .section-title { margin-bottom: 0; }
.section-more {
  color: #2563eb;
  font-size: 13px;
  font-weight: 500;
}
.section-more:hover { text-decoration: underline; }

/* ============ 统计区 ============ */
.stats-section { padding: 24px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}
.stat-card {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}
.stat-num {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.stat-num--blue { color: #2563eb; }
.stat-num--orange { color: #ea580c; }
.stat-num--green { color: #16a34a; }
.stat-label {
  font-size: 13px;
  color: #64748b;
}

/* ============ 实体卡片变体 ============ */
.entity-grid--mini { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.entity-sub-abbr {
  display: inline-block;
  padding: 1px 6px;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  margin-right: 6px;
  letter-spacing: .5px;
}
.entity-sub-en {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 400;
  margin-left: 6px;
}
.entity-sub-plaintiff {
  color: #2563eb;
  font-size: 12px;
}
.state-abbr {
  background: linear-gradient(135deg, #2563eb, #3b82f6) !important;
}
.entity-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* ============ 详情 Hero ============ */
.entity-hero {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #60a5fa 100%);
  color: #fff;
  padding: 32px 0;
}
.entity-hero .container {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.eh-badge {
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255,255,255,.35);
  border-radius: 14px;
  padding: 14px 20px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 1px;
  flex-shrink: 0;
  min-width: 72px;
  text-align: center;
}
.eh-badge .brand-type {
  display: block;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 4px;
  letter-spacing: .5px;
}
.eh-info { flex: 1; min-width: 0; }
.eh-info h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -.5px;
}
.eh-en { font-size: 14px; opacity: .9; margin-bottom: 6px; font-style: italic; }
.eh-desc { font-size: 14px; opacity: .85; line-height: 1.6; }
.eh-stats { display: flex; gap: 12px; flex-shrink: 0; }
.eh-stat {
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 12px;
  padding: 12px 18px;
  text-align: center;
  min-width: 90px;
}
.eh-stat strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
}
.eh-stat span { font-size: 12px; opacity: .85; }

/* ============ 内容块 ============ */
.content-block {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  padding: 20px;
  font-size: 14px;
  line-height: 1.8;
  color: #334155;
}
.link-row {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  padding: 12px 18px;
}
.link-row a {
  color: #2563eb;
  font-weight: 500;
  word-break: break-all;
}
.link-row a:hover { text-decoration: underline; }
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-link {
  padding: 6px 14px;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  transition: all .15s;
}
.tag-link:hover { background: #dbeafe; }
.brand-type {
  display: inline-block;
  padding: 3px 10px;
  color: #fff;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  margin-right: 6px;
}

/* ============ 案件表格 ============ */
.case-list-card {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .03);
}
.case-list-head {
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
  color: #64748b;
  font-size: 14px;
}
.case-list-head strong { color: #2563eb; font-size: 18px; margin: 0 2px; }
.case-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.case-table--home th,
.case-table th {
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  background: #f8fafc;
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}
.case-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}
.case-table tbody tr:hover { background: #fafbfc; }
.case-table tbody tr:last-child td { border-bottom: none; }
.case-id {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-weight: 600;
  color: #2563eb;
  font-size: 13px;
}
.case-id:hover { text-decoration: underline; }
.case-name a {
  color: #0f172a;
  font-weight: 500;
}
.case-name a:hover { color: #2563eb; }
.case-id-large {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-weight: 700;
  color: #2563eb;
}

/* ============ 阶段标签 ============ */
.level-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.level-1 { background: #909399; } /* 起诉中 */
.level-2 { background: #E6A23C; } /* 签署临时禁令 */
.level-3 { background: #F56C6C; } /* 申请初步禁令 */
.level-4 { background: #ff5722; } /* 签署初步禁令 */
.level-5 { background: #b37feb; } /* 申请缺席 */
.level-6 { background: #722ED1; } /* 缺席判决 */
.level-7 { background: #13C2C2; } /* 最终缺席判决令 */
.level-8 { background: #52C41A; } /* 驳回匿名 */

/* ============ 筛选表单 ============ */
.case-filter { padding-top: 8px; padding-bottom: 16px; }
.filter-form {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  padding: 16px;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.filter-row input[type="text"],
.filter-row select {
  padding: 9px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  background: #fff;
  outline: none;
  min-width: 140px;
  transition: border-color .15s;
}
.filter-row input:focus,
.filter-row select:focus { border-color: #2563eb; }
.filter-date {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: #64748b;
}
.filter-date input[type="date"] {
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
}
.btn-primary {
  padding: 9px 18px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}
.btn-primary:hover { background: linear-gradient(135deg, #1d4ed8, #2563eb); }
.btn-reset {
  padding: 9px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  color: #64748b;
  white-space: nowrap;
}
.btn-reset:hover { background: #f8fafc; color: #0f172a; }

/* ============ 案件详情 ============ */
.case-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #2563eb 100%);
  color: #fff;
  padding: 36px 0;
}
.case-hero h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 8px 0;
  letter-spacing: -.3px;
  line-height: 1.4;
}
.ch-level { margin-bottom: 8px; }
.ch-caseid { font-size: 14px; opacity: .9; }
.ch-caseid strong {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 16px;
}
.ch-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  opacity: .9;
  margin-top: 10px;
}

/* Hero 顶部操作按钮 */
.ch-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.ch-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s;
  font-family: inherit;
}
.ch-action-btn:disabled { opacity: .6; cursor: not-allowed; }
.ch-action-btn--primary {
  background: #f59e0b;
  color: #fff;
  border-color: #f59e0b;
}
.ch-action-btn--primary:hover:not(:disabled) {
  background: #d97706;
  border-color: #d97706;
  transform: translateY(-1px);
}
.ch-action-btn--secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
.ch-action-btn--secondary:hover:not(:disabled) {
  background: rgba(255,255,255,.15);
  border-color: #fff;
}

.case-detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: start;
}
.cd-main { display: flex; flex-direction: column; gap: 18px; }
.cd-side { display: flex; flex-direction: column; gap: 18px; }

.detail-card {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}
.detail-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.detail-card-title .bar {
  width: 4px;
  height: 14px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border-radius: 2px;
}

/* 详情信息网格 - 紧凑版 */
.detail-info-grid { display: grid; gap: 0; }
.di-row {
  display: flex;
  padding: 8px 0;
  border-bottom: 1px solid #f5f7fa;
  font-size: 13px;
  align-items: center;
}
.di-row:last-child { border-bottom: none; }
.di-label {
  width: 80px;
  flex-shrink: 0;
  color: #64748b;
  font-weight: 500;
  font-size: 12px;
}
.di-value {
  flex: 1;
  color: #0f172a;
  word-break: break-all;
}
.di-value a { color: #2563eb; }
.di-value a:hover { text-decoration: underline; }

/* 重要节点时间线（基本信息内） */
.level-timeline {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 2px 0;
}
.lt-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.lt-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbd5e1;
  flex-shrink: 0;
}
.lt-item:first-child .lt-dot { background: #2563eb; }
.lt-date {
  font-size: 12px;
  color: #94a3b8;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  min-width: 70px;
}

/* ============ AI 智能分析 ============ */
.ai-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.btn-ai-run {
  padding: 10px 22px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
}
.btn-ai-run:disabled { opacity: .6; cursor: not-allowed; }
.btn-ai-stop {
  padding: 10px 18px;
  border: 1px solid #ef4444;
  color: #ef4444;
  border-radius: 10px;
  font-weight: 500;
  font-size: 14px;
}
.ai-tip { font-size: 12px; color: #64748b; }
.ai-stream-box {
  min-height: 200px;
  max-height: 560px;
  overflow-y: auto;
  padding: 18px 22px;
  background: #fafbfc;
  border: 1px solid #ebeef5;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.8;
  color: #334155;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
}
.ai-empty {
  color: #94a3b8;
  text-align: center;
  padding: 30px 20px;
  font-size: 14px;
}
.ai-empty.ai-error { color: #ef4444; }
.ai-loading {
  color: #2563eb;
  text-align: center;
  padding: 24px;
  font-size: 14px;
}
.ai-dots::after {
  content: '';
  animation: dots 1.4s infinite;
}
@keyframes dots {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60%, 100% { content: '...'; }
}

/* AI Markdown 渲染 */
.ai-markdown h1, .ai-markdown h2, .ai-markdown h3 {
  margin: 18px 0 10px;
  font-weight: 700;
  line-height: 1.4;
  color: #0f172a;
}
.ai-markdown h1 { font-size: 20px; border-bottom: 2px solid #2563eb; padding-bottom: 6px; }
.ai-markdown h2 { font-size: 17px; color: #1e40af; border-left: 4px solid #2563eb; padding-left: 10px; }
.ai-markdown h3 { font-size: 15px; color: #475569; }
.ai-markdown p { margin: 10px 0; }
.ai-markdown ul, .ai-markdown ol { margin: 10px 0 10px 20px; }
.ai-markdown ul li { list-style: disc; line-height: 1.8; }
.ai-markdown ol li { list-style: decimal; line-height: 1.8; }
.ai-markdown strong, .ai-markdown b { font-weight: 700; color: #0f172a; }
.ai-markdown em, .ai-markdown i { color: #64748b; }
.ai-markdown code {
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  color: #d6336c;
}
.ai-markdown blockquote {
  margin: 12px 0;
  padding: 10px 16px;
  border-left: 4px solid #2563eb;
  background: #eff6ff;
  color: #475569;
}
.ai-markdown a { color: #2563eb; }
.ai-markdown a:hover { text-decoration: underline; }

/* ============ 时间线 ============ */
.timeline {
  position: relative;
  padding-left: 24px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e2e8f0;
}
.tl-item {
  position: relative;
  padding-bottom: 16px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute;
  left: -21px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2563eb;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #2563eb;
}
.tl-title {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.5;
}
.tl-date { font-size: 12px; color: #94a3b8; margin-top: 2px; }
.tl-cn {
  margin-top: 6px;
  padding: 10px 14px;
  background: #f0f9eb;
  border-left: 3px solid #67C23A;
  border-radius: 4px;
  font-size: 13px;
  color: #334155;
  line-height: 1.7;
}
.tl-cn--hidden { display: none; }

/* 翻译按钮 */
.tl-translate-btn {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 10px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-size: 12px;
  color: #475569;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}
.tl-translate-btn:hover:not(:disabled) {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
.tl-translate-btn:disabled { opacity: .6; cursor: not-allowed; }

/* AI 折叠卡片 */
.detail-card--collapsed .ai-stream-box { display: none; }
.ai-card-trigger { cursor: pointer; user-select: none; }
.ai-card-trigger .card-toggle {
  float: right;
  font-size: 12px;
  font-weight: normal;
  color: #94a3b8;
  transition: transform .2s;
}

/* ============ 文件下载弹窗 ============ */
.file-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.file-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}
.file-modal-box {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 16px;
  max-width: 480px;
  width: 92%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
  animation: modalIn .2s ease-out;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(.92) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.file-modal-close {
  position: absolute;
  top: 12px; right: 14px;
  width: 32px; height: 32px;
  border: none;
  background: #f1f5f9;
  border-radius: 50%;
  font-size: 16px;
  color: #64748b;
  cursor: pointer;
  z-index: 2;
}
.file-modal-close:hover { background: #e2e8f0; color: #1e293b; }
.file-modal-content { padding: 12px 0 20px; }
.fm-header { padding: 14px 20px 10px; border-bottom: 1px solid #f1f5f9; }
.fm-title { font-size: 15px; font-weight: 600; color: #1e293b; }
.fm-body { padding: 20px; }
.fm-qr { text-align: center; margin-bottom: 20px; }
.fm-qr img {
  width: 160px; height: 160px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 8px;
  background: #fff;
}
.fm-qr p { margin-top: 10px; font-size: 13px; color: #64748b; }
.fm-info h4 {
  font-size: 13px; font-weight: 600; color: #1e293b;
  margin: 14px 0 6px;
}
.fm-info h4:first-child { margin-top: 0; }
.fm-info p, .fm-info li {
  font-size: 13px; color: #64748b; line-height: 1.7;
}
.fm-info ul { margin: 0; padding-left: 18px; }
.fm-contact {
  background: #f8fafc;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #334155;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
/* 弹窗手机端 */
@media (max-width: 480px) {
  .file-modal-box { border-radius: 12px; }
  .fm-body { padding: 16px; }
  .fm-qr img { width: 130px; height: 130px; }
}
/* 附件链接 */
.tl-files { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.tl-file {
  display: inline-block;
  padding: 3px 10px;
  background: #f1f5f9;
  border-radius: 4px;
  font-size: 12px;
  color: #475569;
  text-decoration: none;
}
.tl-file:hover { background: #e2e8f0; color: #2563eb; }

/* tl-dot 按 level 颜色 */
.tl-dot-1 { background: #909399; border-color: #909399; }
.tl-dot-2 { background: #E6A23C; border-color: #E6A23C; }
.tl-dot-3 { background: #F56C6C; border-color: #F56C6C; }
.tl-dot-4 { background: #ff5722; border-color: #ff5722; }
.tl-dot-5 { background: #b37feb; border-color: #b37feb; }
.tl-dot-6 { background: #722ED1; border-color: #722ED1; }
.tl-dot-7 { background: #13C2C2; border-color: #13C2C2; }
.tl-dot-8 { background: #52C41A; border-color: #52C41A; }

/* 小版本 level 标签 */
.level-tag--sm { font-size: 10px; padding: 1px 6px; vertical-align: middle; margin-right: 4px; }

/* AI 空状态/错误 */
.ai-empty { color: #94a3b8; text-align: center; padding: 24px 16px; font-size: 14px; }
.ai-has-content { white-space: normal; }

/* AI markdown 富文本样式（简洁版） */
.ai-markdown h1, .ai-markdown h2, .ai-markdown h3, .ai-markdown h4 { margin: 14px 0 6px; font-weight: 700; line-height: 1.4; }
.ai-markdown h2 { font-size: 17px; color: #1e40af; border-left: 3px solid #2563eb; padding-left: 10px; }
.ai-markdown h3 { font-size: 15px; color: #334155; }
.ai-markdown p { margin: 6px 0; line-height: 1.75; color: #475569; }
.ai-markdown ul, .ai-markdown ol { margin: 6px 0 6px 20px; padding: 0; }
.ai-markdown li { line-height: 1.8; color: #475569; }
.ai-markdown strong, .ai-markdown b { color: #1e293b; font-weight: 700; }
.ai-markdown a { color: #2563eb; text-decoration: none; }
.ai-markdown a:hover { text-decoration: underline; }

/* AI loading 动画 */
.ai-loading { color: #2563eb; text-align: center; padding: 24px; font-size: 14px; }
.ai-dots::after { content: ''; animation: aiDots 1.4s infinite; }
@keyframes aiDots { 0%, 20% { content: ''; } 40% { content: '.'; } 60% { content: '..'; } 80%, 100% { content: '...'; } }
.ai-error { color: #ef4444; }

/* 手机端 hero 按钮 */
@media (max-width: 991px) {
  .ch-actions { gap: 8px; }
  .ch-action-btn { padding: 8px 14px; font-size: 13px; flex: 1; justify-content: center; }
  
  .case-detail-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .cd-main, .cd-side {
    order: 0;
  }
}

@media (min-width: 640px) {
  .detail-info-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 24px;
  }
  .di-row:nth-child(odd) {
    padding-right: 24px;
  }
  /* 重要节点单独占整行 */
  .di-row:last-child {
    grid-column: span 2;
    padding-right: 0 !important;
  }
}

/* ============ 相关案件列表 ============ */
.related-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.related-list li a {
  display: block;
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: all .15s;
}
.related-list li a:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
}
.related-list li strong { display: block; margin-bottom: 2px; }
.related-list li span {
  font-size: 13px;
  color: #64748b;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============ 联系区块 ============ */
.contact-block {
  padding: 40px 0;
}
.contact-card {
  display: flex;
  gap: 28px;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 20px;
  padding: 32px;
  align-items: stretch;
  box-shadow: 0 4px 16px -8px rgba(15, 23, 42, .06);
  flex-wrap: wrap;
}
.contact-qr { flex-shrink: 0; text-align: center; }
.qr-box {
  width: 140px;
  height: 140px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.qr-box img { width: 100%; height: 100%; object-fit: contain; }
.qr-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #94a3b8;
}
.qr-fallback span { margin-top: 6px; }
.qr-box--lg { width: 160px; height: 160px; }
.qr-tip { margin-top: 10px; font-size: 13px; color: #64748b; }

.contact-info { flex: 1; min-width: 280px; }
.contact-info h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}
.contact-desc {
  font-size: 14px;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 18px;
}
.contact-ways {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.contact-way {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: 10px;
  font-size: 13px;
}
.cw-icon { font-size: 18px; }
.cw-label {
  font-size: 11px;
  color: #94a3b8;
  display: block;
}
.contact-way a,
.cw-val {
  color: #0f172a;
  font-weight: 500;
}
.contact-way a:hover { color: #2563eb; }

/* 联系页面专用 */
.contact-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.contact-page-card {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: all .18s;
}
.contact-page-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px -12px rgba(37, 99, 235, .18);
  border-color: #bfdbfe;
}
.cpc-icon {
  font-size: 32px;
  margin-bottom: 12px;
}
.contact-page-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}
.cpc-value {
  font-size: 18px;
  font-weight: 700;
  color: #2563eb;
  margin: 10px 0 6px;
  word-break: break-all;
}
.cpc-value a { color: #2563eb; }
.cpc-desc, .cpc-tip {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.6;
}

/* ============ 两列布局 ============ */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* ============ 文章 ============ */
.article-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: start;
}
.article-cate {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  padding: 16px;
  position: sticky;
  top: 120px;
}
.article-cate h4 {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
}
.article-cate li a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: #475569;
  transition: all .15s;
}
.article-cate li a:hover { background: #f1f5f9; }
.article-cate li a.active {
  background: #eff6ff;
  color: #2563eb;
  font-weight: 600;
}

.article-item {
  display: block;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 12px;
  transition: all .18s;
}
.article-item:hover {
  border-color: #bfdbfe;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -12px rgba(37, 99, 235, .18);
}
.article-item h3 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
  line-height: 1.4;
}
.article-item:hover h3 { color: #2563eb; }
.article-item p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 10px;
}
.article-item-meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: #94a3b8;
  align-items: center;
}
.article-item-meta .tag {
  padding: 2px 10px;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

/* 文章详情 */
.article-view-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 24px;
  align-items: start;
}
.article-hero h1 {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
  line-height: 1.4;
}
.article-hero-meta {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: #64748b;
  align-items: center;
  margin-bottom: 20px;
}
.article-hero-meta .tag {
  padding: 2px 10px;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}
.article-content {
  font-size: 15px;
  line-height: 1.9;
  color: #334155;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  padding: 24px;
}
.article-content p { margin-bottom: 14px; }

.article-sidebar { display: flex; flex-direction: column; gap: 16px; }
.side-block {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  padding: 16px;
}
.side-block h4 {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}
.side-block ul { display: flex; flex-direction: column; gap: 6px; }
.side-block li a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  transition: all .15s;
}
.side-block li a:hover {
  background: #eff6ff;
  color: #2563eb;
}

/* ============ 单页正文 ============ */
.page-content {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  padding: 28px;
}
.pc-body {
  font-size: 15px;
  line-height: 1.9;
  color: #334155;
}
.pc-body p { margin-bottom: 14px; }
.pc-body h2, .pc-body h3 {
  margin: 20px 0 10px;
  font-weight: 700;
  color: #0f172a;
}

/* ============ 统计页组件 ============ */
.level-dist { display: flex; flex-direction: column; gap: 12px; }
.ld-row {
  display: grid;
  grid-template-columns: 180px 1fr 110px;
  gap: 12px;
  align-items: center;
}
.ld-label { font-size: 14px; color: #0f172a; font-weight: 500; }
.ld-bar {
  background: #f1f5f9;
  border-radius: 6px;
  height: 12px;
  overflow: hidden;
}
.ld-fill { height: 100%; border-radius: 6px; }
.ld-fill-1 { background: #909399; }
.ld-fill-2 { background: #E6A23C; }
.ld-fill-3 { background: #F56C6C; }
.ld-fill-4 { background: #ff5722; }
.ld-fill-5 { background: #b37feb; }
.ld-fill-6 { background: #722ED1; }
.ld-fill-7 { background: #13C2C2; }
.ld-fill-8 { background: #52C41A; }
.ld-num { font-size: 13px; color: #64748b; text-align: right; }

.month-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 240px;
  padding: 20px 10px 0;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  overflow-x: auto;
}
.mc-bar {
  flex: 1;
  min-width: 36px;
  max-width: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.mc-count { font-size: 11px; color: #2563eb; font-weight: 700; }
.mc-fill {
  width: 100%;
  background: linear-gradient(180deg, #2563eb, #60a5fa);
  border-radius: 6px 6px 0 0;
  min-height: 4px;
  transition: height .4s;
}
.mc-label {
  font-size: 11px;
  color: #64748b;
}

/* ============ 空状态 ============ */
.empty-tip {
  grid-column: 1 / -1;
  padding: 60px 20px;
  text-align: center;
  background: #fff;
  border-radius: 14px;
  border: 1px dashed #e2e8f0;
}
.empty-tip-icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.empty-tip-text {
  font-size: 14px;
  color: #64748b;
}

/* ============ 底部 ============ */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 48px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  margin-top: 14px;
}
.footer-grid h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid ul li a,
.footer-contact li {
  font-size: 13px;
  color: #94a3b8;
  transition: color .15s;
}
.footer-grid ul li a:hover { color: #fff; }
.footer-contact li {
  display: flex;
  gap: 6px;
}
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #64748b;
}
.footer-bottom a { color: #64748b; margin-left: 16px; }
.footer-bottom a:hover { color: #fff; }

/* ============ 响应式 ============ */
@media (max-width: 991px) {
  .case-detail-layout { grid-template-columns: 1fr; }
  .cd-side { order: 0; /* 移除强制前置，保持DOM原有顺序，main在前aside在后 */ }
  .article-view-layout { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-cate { position: static; }
  .two-col-grid { grid-template-columns: 1fr; }
  .ld-row { grid-template-columns: 120px 1fr 80px; }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .top-bar { display: none; }
  .site-nav { display: none; }
  .site-nav-actions { display: block; }
  .site-header .container { height: 56px; gap: 12px; }
  .logo-text strong { font-size: 13px; }
  .logo-text em { display: none; }

  .case-detail-layout { gap: 16px; }
  .cd-main, .cd-side { width: 100%; max-width: 100%; }
  .detail-card { padding: 16px; }
  .di-label { width: 80px; }

  .hero-section { padding: 44px 0 36px; }
  .hero-section h1 { font-size: 24px; letter-spacing: -.5px; }
  .hero-section p { font-size: 14px; margin-bottom: 18px; }
  .hero-search { flex-direction: column; border-radius: 12px; padding: 8px; }
  .hero-search button { padding: 10px; }

  .entity-hero .container { flex-direction: column; gap: 14px; }
  .eh-stats { align-self: flex-start; }
  .eh-badge { font-size: 22px; padding: 10px 14px; min-width: 56px; }
  .eh-info h1 { font-size: 22px; }

  .filter-row { flex-direction: column; align-items: stretch; }
  .filter-row input, .filter-row select { width: 100%; }
  .filter-date { justify-content: space-between; }

  .case-table { font-size: 12px; }
  .case-table th, .case-table td { padding: 8px 10px; }
  .ld-row { grid-template-columns: 80px 1fr 70px; font-size: 12px; }

  .contact-card { flex-direction: column; align-items: center; text-align: center; }
  .contact-block { padding: 28px 0; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* 移动端导航展开 */
.site-nav.active {
  display: flex;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  flex-direction: column;
  background: #fff;
  padding: 16px;
  border-top: 1px solid #eef2f7;
  box-shadow: 0 8px 24px -12px rgba(15, 23, 42, .12);
}
@media (max-width: 767px) {
  .site-nav.active { top: 56px; }
}

/* ============ 手机端完整适配补丁 ============ */

/* --- case-table 卡片化（thead 隐藏、tr 变卡片、td 变 label+值） --- */
@media (max-width: 767px) {
  .case-table,
  .case-table tbody,
  .case-table tbody tr,
  .case-table td {
    display: block;
    width: 100%;
  }
  .case-table thead { display: none; }
  .case-table--home thead { display: none; }

  .case-table tbody tr {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
  }
  .case-table tbody tr:last-child { border-bottom: 1px solid #eef2f7; }
  .case-table tbody tr:hover { background: #fff; }

  .case-table td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    line-height: 1.5;
    text-align: right;
  }
  .case-table td:last-child { border-bottom: none; }
  .case-table td::before {
    content: attr(data-label);
    flex-shrink: 0;
    margin-right: 10px;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
    text-align: left;
    white-space: nowrap;
  }

  /* 案件名称、案号占满 */
  .case-table td.case-name-cell,
  .case-table td.case-id-cell {
    flex-direction: column;
    text-align: left;
  }
  .case-table td.case-name-cell::before,
  .case-table td.case-id-cell::before {
    margin-right: 0;
    margin-bottom: 4px;
  }
  .case-table .case-id,
  .case-table .case-name a { font-size: 14px; }
  .case-list-head { padding: 12px 14px; font-size: 13px; }
  .case-list-head strong { font-size: 16px; }
}

/* --- 分页按钮（手机端紧凑 + 可滚动） --- */
@media (max-width: 767px) {
  .pagination {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 6px;
    padding: 12px 4px;
    margin: 16px -4px 0;
    -webkit-overflow-scrolling: touch;
  }
  .pagination::-webkit-scrollbar { height: 4px; }
  .pagination::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 2px; }
  .page-btn,
  .pagination a,
  .pagination span {
    flex-shrink: 0;
    min-width: 34px;
    height: 34px;
    line-height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
  }
  /* TP paginate 默认输出的 .pagination li 样式覆盖 */
  .pagination li { display: inline-block; }
  .pagination li a,
  .pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 13px;
    background: #f8fafc;
    color: #64748b;
    margin: 0 2px;
  }
  .pagination li.active span,
  .pagination .current {
    background: #2563eb !important;
    color: #fff !important;
    font-weight: 600;
  }
  .pagination li.disabled span {
    background: #f1f5f9 !important;
    color: #cbd5e1 !important;
  }
}

/* --- 筛选表单（手机端折叠） --- */
@media (max-width: 767px) {
  .case-filter { margin-bottom: 0; }
  .filter-form {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    border: 1px solid #eef2f7;
  }
  .filter-row {
    flex-direction: column;
    gap: 10px;
  }
  .filter-row input,
  .filter-row select,
  .filter-row .filter-date input {
    width: 100%;
    height: 40px;
    font-size: 14px;
    border-radius: 8px;
  }
  .filter-row .filter-date {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
  }
  .filter-row .filter-date input { flex: 1; min-width: 0; }
  .filter-row .filter-date span { color: #94a3b8; font-size: 13px; flex-shrink: 0; }
  .filter-row .btn-primary,
  .filter-row .btn-reset {
    width: 100%;
    height: 42px;
    font-size: 15px;
  }
  .filter-row .btn-reset { margin-top: -4px; text-align: center; }

  /* 实体列表筛选 */
  .search-bar {
    flex-direction: column;
    gap: 10px;
  }
  .search-bar input,
  .search-bar select { width: 100%; height: 40px; }
  .search-bar button { width: 100%; height: 40px; }
}

/* --- 实体卡片网格 --- */
@media (max-width: 480px) {
  .entity-grid { grid-template-columns: 1fr !important; gap: 12px; }
  .entity-card { padding: 14px; }
  .entity-avatar { width: 42px; height: 42px; font-size: 15px; }
  .entity-title { font-size: 14px; }
  .entity-sub { font-size: 12px; }

  .state-grid { grid-template-columns: 1fr !important; }
  .brand-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .lawfirm-grid { grid-template-columns: 1fr !important; }
  .court-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 767px) {
  /* 面包屑 */
  .breadcrumb-bar { padding: 10px 0; font-size: 12px; }
  .breadcrumb-bar .container { padding: 0 14px; }
  .breadcrumb-bar .sep { margin: 0 6px; }

  /* page hero */
  .page-hero { padding: 28px 0 20px; }
  .page-hero h1 { font-size: 20px; margin-bottom: 6px; }
  .page-hero p { font-size: 13px; line-height: 1.5; }
  .page-hero--compact h1 { font-size: 20px; }

  /* section 间距 */
  .page-body { padding: 16px 0; }
  .page-body .container { padding: 0 14px; }

  /* 统计卡片 */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card { padding: 14px 10px; }
  .stat-value { font-size: 24px; }
  .stat-label { font-size: 12px; }

  /* 案件详情布局 */
  .case-detail-layout { gap: 16px; }
  .case-detail-header { padding: 18px 16px; }
  .case-detail-header h1 { font-size: 18px; }
  .cd-badge-row { flex-wrap: wrap; gap: 6px; }

  /* 快捷入口 */
  .quick-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .quick-item { padding: 12px 8px; }
  .quick-icon { width: 36px; height: 36px; font-size: 18px; }
  .quick-text { font-size: 12px; }

  /* 热门案件表格 */
  .case-table--home td { padding: 10px 12px; }

  /* 联系区块 */
  .contact-block { padding: 28px 14px; }
  .contact-card { padding: 18px 14px; }

  /* 文章详情 */
  .article-view-content h2 { font-size: 18px; }
  .article-view-content h3 { font-size: 16px; }
  .article-view-content p { font-size: 14px; line-height: 1.7; }

  /* two-col 详情 */
  .two-col { flex-direction: column; gap: 16px; }
  .two-col-side { width: 100%; }

  /* info-grid 实体详情 */
  .info-grid { grid-template-columns: 1fr !important; }
}

/* --- Hero 搜索框手机端 --- */
@media (max-width: 767px) {
  .hero-section { padding: 32px 0 24px; }
  .hero-section h1 { font-size: 22px; letter-spacing: -0.5px; margin-bottom: 8px; }
  .hero-section p { font-size: 14px; margin-bottom: 16px; }
  .hero-search {
    flex-direction: column;
    border-radius: 12px;
    padding: 8px;
    gap: 6px;
  }
  .hero-search input {
    width: 100%;
    height: 44px;
    font-size: 15px;
    border-radius: 8px;
  }
  .hero-search button {
    width: 100%;
    height: 44px;
    border-radius: 8px;
    font-size: 15px;
  }
  .hero-quick {
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
  }
  .hero-quick a {
    font-size: 12px;
    padding: 4px 10px;
  }
}

/* --- Level tag 手机端适配 --- */
@media (max-width: 767px) {
  .level-tag { padding: 2px 8px; font-size: 11px; }
}

/* --- 空状态 --- */
.empty-tip { padding: 40px 20px; text-align: center; }
.empty-tip-icon { font-size: 40px; margin-bottom: 10px; }
.empty-tip-text { color: #94a3b8; font-size: 14px; }

/* --- 修复 iOS 点击延迟 --- */
button, a { touch-action: manipulation; }
input, select { font-size: 16px; } /* 防止 iOS 自动缩放 */

/* --- 防止 body 横向溢出 --- */
html, body { overflow-x: hidden; }
.container { max-width: 100%; }

/* --- 面包屑手机端隐藏（可选） --- */
@media (max-width: 480px) {
  .breadcrumb-bar { display: none; }
}

/* ============ Auth 登录/注册页 ============ */
.auth-section {
  position: relative; padding: 60px 0; min-height: 70vh;
  background: linear-gradient(135deg, #f0f5ff 0%, #faf5ff 50%, #ffffff 100%);
}
.auth-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(37,99,235,.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(124,58,237,.08) 0%, transparent 40%);
}
.auth-wrapper {
  position: relative; display: grid; grid-template-columns: 1fr 340px;
  gap: 20px; max-width: 900px; margin: 0 auto;
}
.auth-card {
  background: #fff; border-radius: 16px; border: 1px solid #eef2f7;
  padding: 32px; box-shadow: 0 4px 20px -8px rgba(15,23,42,.06);
}
.auth-header { text-align: center; margin-bottom: 24px; }
.auth-logo {
  width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 14px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; box-shadow: 0 4px 12px rgba(37,99,235,.25);
}
.auth-header h1 { font-size: 22px; color: #0f172a; margin-bottom: 6px; }
.auth-header p { font-size: 14px; color: #64748b; line-height: 1.5; }

.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form-group { display: flex; flex-direction: column; gap: 6px; }
.auth-form-group label { font-size: 13px; font-weight: 600; color: #334155; }
.auth-form-group input {
  width: 100%; height: 44px; padding: 0 14px;
  border: 1px solid #e2e8f0; border-radius: 10px; font-size: 14px;
  transition: all .15s; background: #fafbfc;
}
.auth-form-group input:focus {
  border-color: #2563eb; background: #fff;
  box-shadow: 0 0 0 3px rgba(37,99,235,.1); outline: none;
}
.captcha-row { display: flex; gap: 10px; }
.captcha-row input { flex: 1; }
.captcha-img {
  height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; overflow: hidden;
  cursor: pointer;
}
.captcha-img img { height: 44px; display: block; }

.auth-form-extra, .auth-agree { font-size: 13px; color: #64748b; }
.auth-form-extra label, .auth-agree label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.auth-agree a { color: #2563eb; text-decoration: none; }
.auth-agree a:hover { text-decoration: underline; }

.auth-submit {
  width: 100%; height: 46px; border: none; border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff;
  font-size: 15px; font-weight: 600; letter-spacing: 2px;
  cursor: pointer; transition: all .15s;
}
.auth-submit:hover { box-shadow: 0 4px 14px rgba(37,99,235,.35); transform: translateY(-1px); }
.auth-submit:active { transform: translateY(0); }

.auth-switch {
  text-align: center; font-size: 13px; color: #64748b;
}
.auth-switch a { color: #2563eb; text-decoration: none; font-weight: 500; }
.auth-switch a:hover { text-decoration: underline; }

.auth-side {
  background: linear-gradient(135deg, #1e3a8a 0%, #4c1d95 100%);
  border-radius: 16px; padding: 28px; color: #fff; position: relative; overflow: hidden;
}
.auth-side::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 100% 100%, rgba(255,255,255,.1) 0%, transparent 50%);
}
.auth-side-inner { position: relative; z-index: 1; }
.auth-side h2 { font-size: 18px; margin-bottom: 18px; font-weight: 600; }
.auth-benefits { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.auth-benefits li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; opacity: .95; }
.auth-benefits li span { font-size: 18px; flex-shrink: 0; }
.auth-side-tip {
  margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.2);
  font-size: 12px; opacity: .75;
}

@media (max-width: 767px) {
  .auth-section { padding: 24px 0 40px; min-height: auto; }
  .auth-wrapper { grid-template-columns: 1fr; gap: 14px; }
  .auth-card { padding: 24px 20px; border-radius: 14px; }
  .auth-header h1 { font-size: 20px; }
  .auth-header p { font-size: 13px; }
  .auth-side { padding: 20px; border-radius: 14px; }
  .auth-side h2 { font-size: 16px; margin-bottom: 14px; }
  .auth-benefits { gap: 10px; }
  .auth-benefits li { font-size: 13px; }
}
