/* ═══════════════════════════════════════════════════════════════
   落雨栖 · 日系清新设计系统 v3.1
   ── 温润、克制、有呼吸感
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* ── 色板：暖调莫兰迪 ── */
  --bg: #F5F2EC;
  --bg-warm: #EFEBE3;
  --bg-card: #FDFAF6;
  --bg-input: #F9F6F1;
  --bg-hover: #EDE8DF;
  --bg-active: #E6E0D6;

  --border: #DDD7CC;
  --border-light: #E8E3DA;
  --border-focus: #B5AD9F;

  --text: #3A3530;
  --text-secondary: #7A746C;
  --text-muted: #A9A299;
  --text-inverse: #FDFAF6;

  /* 品牌色：暖薰衣草 */
  --accent: #9B8EC4;
  --accent-hover: #8577B0;
  --accent-light: #C9C0DF;
  --accent-subtle: rgba(155, 142, 196, 0.08);
  --accent-warm: #D4A86A;

  --tag-bg: #EDE8DF;
  --tag-text: #6B635A;
  --tag-purple: rgba(155, 142, 196, 0.10);
  --tag-purple-text: #7B6DA3;

  --warning-bg: rgba(180, 140, 80, 0.08);
  --warning-border: #C9A96E;
  --warning-text: #8A7040;

  --success: #6B9B7A;
  --error: #B87070;

  /* ── 间距 ── */
  --s1: 4px;  --s2: 8px;  --s3: 12px;
  --s4: 16px; --s5: 20px; --s6: 24px;
  --s8: 32px; --s10: 40px; --s12: 48px;

  /* ── 字体 ── */
  --font: 'Inter', 'Hiragino Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-serif: 'Noto Serif SC', 'Source Han Serif', 'SimSun', serif;
  --font-display: 'Noto Serif SC', 'Georgia', serif;
  --text-xs: 11px;
  --text-sm: 13px;
  --text-base: 15px;
  --text-lg: 17px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 30px;

  /* ── 圆角（克制，小圆角） ── */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;

  /* ── 动效 ── */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --fast: 150ms;
  --normal: 250ms;

  /* ── 阴影（纸质柔和阴影） ── */
  --shadow-sm: 0 1px 3px rgba(58, 53, 48, 0.06), 0 1px 2px rgba(58, 53, 48, 0.04);
  --shadow-md: 0 3px 8px rgba(58, 53, 48, 0.08), 0 1px 3px rgba(58, 53, 48, 0.06);
  --shadow-lg: 0 6px 20px rgba(58, 53, 48, 0.10), 0 2px 6px rgba(58, 53, 48, 0.06);
  --shadow-card: 0 1px 2px rgba(58, 53, 48, 0.05), 0 4px 12px rgba(58, 53, 48, 0.04);

  /* ── 装饰 ── */
  --gradient-line: linear-gradient(90deg, transparent, var(--border-light), transparent);
  --gradient-accent: linear-gradient(135deg, var(--accent), var(--accent-warm));
}

/* ── 暗色模式 ── */
[data-theme="dark"] {
  --bg: #1A1917;
  --bg-warm: #201F1C;
  --bg-card: #242320;
  --bg-input: #282724;
  --bg-hover: #302E2A;
  --bg-active: #3A3732;

  --border: #3A3732;
  --border-light: #302E2A;
  --border-focus: #5A554C;

  --text: #E5E0D8;
  --text-secondary: #A9A299;
  --text-muted: #706B63;
  --text-inverse: #1A1917;

  --accent: #B8AED8;
  --accent-hover: #CCC3E4;
  --accent-light: #4A4560;
  --accent-subtle: rgba(184, 174, 216, 0.08);
  --accent-warm: #D4A86A;

  --tag-bg: #302E2A;
  --tag-text: #B8AFA3;
  --tag-purple: rgba(184, 174, 216, 0.10);
  --tag-purple-text: #B8AED8;

  --warning-bg: rgba(180, 140, 80, 0.10);
  --warning-border: #6B5A30;
  --warning-text: #C9A96E;

  --success: #7BAA89;
  --error: #C88080;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.20), 0 1px 2px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 3px 8px rgba(0, 0, 0, 0.25), 0 1px 3px rgba(0, 0, 0, 0.20);
  --shadow-lg: 0 6px 20px rgba(0, 0, 0, 0.30), 0 2px 6px rgba(0, 0, 0, 0.20);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.10);

  --gradient-line: linear-gradient(90deg, transparent, var(--border-light), transparent);
  --gradient-accent: linear-gradient(135deg, var(--accent), var(--accent-warm));
}

/* ═══════════════════════════════════════════════════════════════
   基础重置
   ═══════════════════════════════════════════════════════════════ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.page-shell {
  font-family: var(--font);
  background-color: var(--bg);
  /* 纸质微纹理 */
  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='%239C8E7A' fill-opacity='0.03'%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");
  color: var(--text);
  line-height: 1.7;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ═══════════════════════════════════════════════════════════════
   主容器
   ═══════════════════════════════════════════════════════════════ */
.app-wrapper {
  flex: 1 0 auto;
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: var(--s8) var(--s6);
  animation: fadeIn 0.3s var(--ease) both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════
   页面标题
   ═══════════════════════════════════════════════════════════════ */
.page-header {
  display: flex;
  align-items: baseline;
  gap: var(--s4);
  margin-bottom: var(--s2);
  padding-bottom: var(--s5);
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

/* 标题下方渐变装饰线 */
.page-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 80px;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 1px;
  opacity: 0.6;
}

.page-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: var(--s3);
  letter-spacing: 0.02em;
}

.page-title i {
  color: var(--accent);
  font-size: 22px;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: var(--text-xs);
  margin-bottom: var(--s6);
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════════════════════
   筛选面板
   ═══════════════════════════════════════════════════════════════ */
.filter-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: var(--s6);
  margin-bottom: var(--s8);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--s4) var(--s6);
  box-shadow: var(--shadow-sm);
}

.filter-group {
  display: flex;
  flex-direction: column;
  min-width: 160px;
  flex: 1;
}

.filter-group label {
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: var(--s2);
  text-transform: uppercase;
}

.input-glass, .select-glass {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 14px;
  font-size: var(--text-sm);
  font-family: var(--font);
  color: var(--text);
  outline: none;
  transition: border-color var(--normal) var(--ease), box-shadow var(--normal) var(--ease);
}

.input-glass {
  min-width: 200px;
  cursor: text;
}

.select-glass {
  min-width: 160px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23A9A299' viewBox='0 0 256 256'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.input-glass:hover, .select-glass:hover {
  border-color: var(--accent-light);
}

.input-glass:focus, .select-glass:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.input-glass::placeholder {
  color: var(--text-muted);
}

.select-glass option {
  background: var(--bg-card);
  color: var(--text);
}

.action-buttons {
  display: flex;
  gap: var(--s3);
  align-items: center;
}

/* ── 按钮 ── */
.btn-primary {
  padding: 10px 20px;
  background: var(--gradient-accent);
  color: var(--text-inverse);
  border: none;
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  font-family: var(--font);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--normal) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  box-shadow: 0 2px 8px rgba(155, 142, 196, 0.2);
}

.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 3px 12px rgba(155, 142, 196, 0.3);
  transform: translateY(-1px);
}

.btn-glass {
  padding: 10px 20px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--normal) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
}

.btn-glass:hover {
  background: var(--bg-hover);
  border-color: var(--accent-light);
  color: var(--text);
}

/* ═══════════════════════════════════════════════════════════════
   统计 & 警示
   ═══════════════════════════════════════════════════════════════ */
.stats {
  font-size: var(--text-sm);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) var(--s4);
  margin-bottom: var(--s6);
}

.stats i {
  font-size: 16px;
}

.warning-banner {
  background: var(--warning-bg);
  border-left: 3px solid var(--warning-border);
  border-radius: var(--r-sm);
  padding: var(--s4) var(--s5);
  margin-bottom: var(--s6);
  display: flex;
  align-items: center;
  gap: var(--s3);
  color: var(--warning-text);
  font-size: var(--text-sm);
}

.warning-banner i {
  color: var(--warning-border);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   学校卡片
   ═══════════════════════════════════════════════════════════════ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--s4);
}

.school-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: var(--s5);
  transition: all var(--normal) var(--ease);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

/* 卡片顶部渐变装饰线 */
.school-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity var(--normal) var(--ease);
}

.school-card:hover {
  border-color: var(--accent-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.school-card:hover::before {
  opacity: 0.5;
}

.card-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: var(--s3);
  padding-bottom: var(--s3);
  border-bottom: 1px solid var(--border-light);
}

.card-detail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2);
  margin-top: var(--s2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.tag {
  background: var(--tag-bg);
  padding: 3px var(--s3);
  border-radius: var(--r-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  color: var(--tag-text);
  font-size: var(--text-xs);
  font-weight: 500;
}

.tag i { font-size: 12px; }

.tag-code {
  font-family: var(--font);
  font-size: var(--text-xs);
  color: var(--text-muted);
  background: transparent;
}

.card-footer {
  margin-top: auto;
  padding-top: var(--s3);
  border-top: 1px solid var(--border-light);
  font-size: var(--text-xs);
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s3);
}

/* ═══════════════════════════════════════════════════════════════
   分页
   ═══════════════════════════════════════════════════════════════ */
.pagination {
  margin-top: var(--s10);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--s3);
}

.pagination button {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: var(--s2) var(--s4);
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  font-family: var(--font);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--normal) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
}

.pagination button:hover:not(:disabled) {
  background: var(--bg-hover);
  border-color: var(--accent-light);
}

.pagination button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pagination .page-info {
  font-size: var(--text-sm);
  color: var(--text-muted);
  padding: var(--s2) var(--s4);
}

/* ═══════════════════════════════════════════════════════════════
   模态窗
   ═══════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(26, 25, 23, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--s6);
  visibility: hidden;
  opacity: 0;
  transition: all var(--normal) var(--ease);
}

[data-theme="dark"] .modal-overlay {
  background: rgba(0, 0, 0, 0.55);
}

.modal-overlay.show {
  visibility: visible;
  opacity: 1;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 8px 30px rgba(58, 53, 48, 0.12);
  padding: var(--s8);
  position: relative;
  color: var(--text);
  animation: modalIn 0.2s var(--ease);
}

[data-theme="dark"] .modal-content {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.97) translateY(4px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: var(--s4);
  right: var(--s5);
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  padding: var(--s2);
  transition: color var(--normal) var(--ease);
}

.modal-close:hover {
  color: var(--text);
}

.modal-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  margin-bottom: var(--s5);
  padding-bottom: var(--s4);
  border-bottom: 1px solid var(--border-light);
}

.modal-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text);
  flex: 1;
  line-height: 1.3;
}

/* 收藏按钮 */
.favorite-btn {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) var(--s3);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--fast) var(--ease);
  flex-shrink: 0;
}

.favorite-btn:hover {
  border-color: var(--error);
  color: var(--error);
}

.favorite-btn.active {
  background: rgba(184, 112, 112, 0.08);
  border-color: var(--error);
  color: var(--error);
}

.favorite-btn i { font-size: 15px; }

.modal-summary {
  font-size: var(--text-sm);
  line-height: 1.8;
  color: var(--text-secondary);
  background: var(--bg-input);
  padding: var(--s4) var(--s5);
  border-radius: var(--r-md);
  margin: var(--s4) 0;
  border: 1px solid var(--border-light);
}

.tags-section {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin: var(--s4) 0 var(--s5);
}

.attr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0;
  background: var(--bg-input);
  padding: var(--s4) var(--s5);
  border-radius: var(--r-md);
  margin: var(--s5) 0;
  border: 1px solid var(--border-light);
}

.attr-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  padding: var(--s2) 0;
}

.attr-item:last-child { border-bottom: none; }

.attr-key {
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--text-sm);
}

.attr-value {
  color: var(--text);
  font-size: var(--text-sm);
}

.modal-actions {
  margin-top: var(--s8);
  padding-top: var(--s5);
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  align-items: center;
}

.modal-actions .btn-glass,
.modal-actions .btn-accent {
  padding: 10px 20px;
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  font-family: var(--font);
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--normal) var(--ease);
}

.modal-actions .btn-accent {
  background: var(--accent);
  color: var(--text-inverse);
  border: 1px solid var(--accent);
}

.modal-actions .btn-accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.modal-actions .btn-glass {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.modal-actions .btn-glass:hover {
  background: var(--bg-hover);
  border-color: var(--accent-light);
}

.website-link {
  margin: var(--s4) 0;
}

.no-website {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.modal-loading, .modal-error, .loading, .error-message {
  text-align: center;
  padding: var(--s10);
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s3);
  color: var(--text-muted);
}

.spin { animation: spin 1s linear infinite; }

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.empty-message {
  text-align: center;
  padding: var(--s12) var(--s6);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* ═══════════════════════════════════════════════════════════════
   页脚
   ═══════════════════════════════════════════════════════════════ */
.site-footer {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: var(--s8) var(--s6);
  border-top: 1px solid var(--border-light);
  background: var(--bg-warm);
}

/* 国际站跳转 */
.footer-international {
  text-align: center;
  padding: var(--s6) var(--s6) var(--s4);
  margin-bottom: var(--s4);
  border-bottom: 1px solid var(--border-light);
}

.footer-intl-tip {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--s2);
}

.footer-intl-link {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color var(--normal) var(--ease);
}

.footer-intl-link:hover {
  color: var(--accent-hover);
}

/* 页脚渐变装饰线 */
.site-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 1px;
  opacity: 0.5;
}

.footer-inner {
  width: min(100%, 720px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.08em;
}

.footer-slogan {
  font-size: var(--text-sm);
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.footer-beian {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 6px;
  column-gap: var(--s2);
  margin-top: var(--s2);
}

.beian-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--normal) var(--ease);
}

.beian-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.beian-divider {
  font-size: 12px;
  color: var(--border);
  user-select: none;
}

.gongan-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  vertical-align: middle;
  flex-shrink: 0;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: var(--s1);
  opacity: 0.7;
}

/* ═══════════════════════════════════════════════════════════════
   主题切换按钮
   ═══════════════════════════════════════════════════════════════ */
.theme-toggle {
  position: fixed;
  top: var(--s4);
  right: var(--s4);
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all var(--normal) var(--ease);
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.theme-toggle:hover {
  background: var(--bg-hover);
  border-color: var(--accent-light);
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════════
   响应式
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .app-wrapper { padding: var(--s5) var(--s4); }
  .filter-panel {
    flex-direction: column;
    align-items: stretch;
    padding: var(--s4);
  }
  .action-buttons { justify-content: flex-end; }
  .filter-group { min-width: 100%; }
  .input-glass, .select-glass { min-width: 100%; }
  .cards-grid { grid-template-columns: 1fr; }
  .page-title { font-size: var(--text-xl); }
  .modal-content { padding: var(--s6); }
}

@media (max-width: 640px) {
  .footer-beian { flex-direction: column; }
  .beian-divider { display: none; }
}

/* 减少动效 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
