/* ═══════════════════════════════════════════════════════
   风满楼 — 现代玻璃态 UI 样式表
   ═══════════════════════════════════════════════════════ */

:root {
  /* === 品牌色 === */
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --accent: #a78bfa;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;

  /* === 中性色 === */
  --surface: rgba(255,255,255,0.82);
  --surface-hover: rgba(255,255,255,0.92);
  --border: rgba(255,255,255,0.45);
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;

  /* === 阴影 === */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-glow: 0 0 40px rgba(99,102,241,0.12), 0 4px 20px rgba(99,102,241,0.06);

  /* === 圆角 === */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* === 过渡 === */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration: 0.25s;
}

/* ═══════════════════════════════════════════════════════
   全局重置
   ═══════════════════════════════════════════════════════ */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  min-height: 100vh;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  padding: 32px 20px;

  /* 多层渐变背景 + 噪点纹理 */
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(99,102,241,0.15), transparent),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(168,139,250,0.10), transparent),
    linear-gradient(180deg, #f8fafc 0%, #eff2f9 40%, #e8ecf4 100%);
  background-attachment: fixed;
}

/* 背景粒子装饰 */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  opacity: 0.4;
  background-image:
    radial-gradient(circle at 25% 35%, rgba(99,102,241,0.08) 0%, transparent 50%),
    radial-gradient(circle at 75% 65%, rgba(168,139,250,0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(99,102,241,0.04) 0%, transparent 50%);
}

.container {
  position: relative; z-index: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ═══════════════════════════════════════════════════════
   卡片 — 玻璃态
   ═══════════════════════════════════════════════════════ */

.card {
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 36px 40px;
  transition:
    box-shadow var(--duration) var(--ease-out),
    border-color var(--duration) var(--ease-out),
    transform var(--duration) var(--ease-out);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(99,102,241,0.18);
}

.search-card {
  box-shadow: var(--shadow-glow);
}

.card-header {
  margin-bottom: 28px;
  text-align: center;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: -0.01em;
}
.card-title .icon-circle {
  width: 38px; height: 38px;
  border-radius: var(--radius-xs);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(168,139,250,0.12));
  color: var(--primary);
}

/* ═══════════════════════════════════════════════════════
   Logo
   ═══════════════════════════════════════════════════════ */

.logo {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  background: linear-gradient(135deg, var(--primary-dark), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.card-desc {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 6px;
}

/* ═══════════════════════════════════════════════════════
   搜索框 — 胶囊风格
   ═══════════════════════════════════════════════════════ */

.search-box {
  position: relative;
  width: 100%;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  background: white;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(0,0,0,0.04);
  transition: box-shadow var(--duration) var(--ease-out);
  overflow: hidden;
}
.search-input-wrapper:focus-within {
  box-shadow: 0 0 0 4px rgba(99,102,241,0.14), 0 4px 16px rgba(99,102,241,0.08);
}

.search-icon {
  position: absolute;
  left: 20px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 18px;
  pointer-events: none;
  transition: color var(--duration);
}
.search-input-wrapper:focus-within .search-icon {
  color: var(--primary);
}

.search-input {
  flex: 1;
  height: 56px;
  padding: 0 20px 0 50px;
  border: none;
  background: transparent;
  font-size: 16px;
  color: var(--text-primary);
  outline: none;
}
.search-input::placeholder {
  color: var(--text-muted);
}

.clear-icon {
  height: 44px;
  margin-right: 6px;
  padding: 0 16px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: none;
  align-items: center; gap: 4px;
  background: #f1f5f9;
  border: none;
  border-radius: var(--radius-full);
  transition: all var(--duration) var(--ease-out);
  white-space: nowrap;
}
.clear-icon.show { display: flex; }
.clear-icon:hover { background: #fee2e2; color: var(--danger); }

.inner-search-btn {
  height: 56px;
  padding: 0 28px;
  border: none;
  border-radius: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  transition: all var(--duration) var(--ease-out);
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.inner-search-btn:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: inset 0 0 20px rgba(255,255,255,0.1);
}
.inner-search-btn:active { transform: scale(0.98); }
.inner-search-btn i { font-size: 16px; }

/* ═══════════════════════════════════════════════════════
   流光搜索框
   ═══════════════════════════════════════════════════════ */

.glow-search {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  margin: 0 auto;
  max-width: 640px;
}

/* ── 光晕层 ─────────────────────────────── */
.glow-ring {
  max-height: 70px; max-width: 640px;
  height: 100%; width: 100%;
  position: absolute;
  overflow: hidden;
  z-index: -1;
  border-radius: 12px;
}

.glow-outer {
  filter: blur(30px);
  opacity: 0.4;
  max-height: 130px;
  max-width: 680px;
}
.glow-outer::before {
  content: "";
  z-index: -2;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(60deg);
  position: absolute;
  width: 999px; height: 999px;
  background-repeat: no-repeat;
  background-position: 0 0;
  background-image: conic-gradient(
    #000,
    #402fb5 5%,
    #000 38%,
    #000 50%,
    #cf30aa 60%,
    #000 87%
  );
  transition: transform 2s ease;
}

.glow-mid {
  max-height: 65px;
  max-width: 638px;
}
.glow-mid::before {
  content: "";
  z-index: -2;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(82deg);
  position: absolute;
  width: 600px; height: 600px;
  background-repeat: no-repeat;
  background-position: 0 0;
  background-image: conic-gradient(
    rgba(0,0,0,0),
    #18116a,
    rgba(0,0,0,0) 10%,
    rgba(0,0,0,0) 50%,
    #6e1b60,
    rgba(0,0,0,0) 60%
  );
  transition: transform 2s ease;
}

.glow-inner {
  max-height: 70px;
  max-width: 640px;
  filter: blur(3px);
}
.glow-inner::before {
  content: "";
  z-index: -2;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(82deg);
  position: absolute;
  width: 600px; height: 600px;
  background-repeat: no-repeat;
  background-position: 0 0;
  background-image: conic-gradient(
    rgba(0,0,0,0),
    #18116a,
    rgba(0,0,0,0) 10%,
    rgba(0,0,0,0) 50%,
    #6e1b60,
    rgba(0,0,0,0) 60%
  );
  transition: transform 2s ease;
}

.glow-white {
  max-height: 63px;
  max-width: 633px;
  border-radius: 10px;
  filter: blur(2px);
}
.glow-white::before {
  content: "";
  z-index: -2;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(83deg);
  position: absolute;
  width: 600px; height: 600px;
  background-repeat: no-repeat;
  background-position: 0 0;
  filter: brightness(1.4);
  background-image: conic-gradient(
    rgba(0,0,0,0) 0%,
    #a099d8,
    rgba(0,0,0,0) 8%,
    rgba(0,0,0,0) 50%,
    #dfa2da,
    rgba(0,0,0,0) 58%
  );
  transition: transform 2s ease;
}

.glow-border {
  max-height: 59px;
  max-width: 629px;
  border-radius: 11px;
  filter: blur(0.5px);
}
.glow-border::before {
  content: "";
  z-index: -2;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(70deg);
  position: absolute;
  width: 600px; height: 600px;
  filter: brightness(1.3);
  background-repeat: no-repeat;
  background-position: 0 0;
  background-image: conic-gradient(
    #1c191c,
    #402fb5 5%,
    #1c191c 14%,
    #1c191c 50%,
    #cf30aa 60%,
    #1c191c 64%
  );
  transition: transform 2s ease;
}

/* 持续旋转动画 */
.glow-outer::before { animation: glowRotate1 20s linear infinite; }
.glow-mid::before   { animation: glowRotate2 16s linear infinite; }
.glow-inner::before { animation: glowRotate3 24s linear infinite; }
.glow-white::before { animation: glowRotate1 28s linear infinite reverse; }
.glow-border::before { animation: glowRotate2 18s linear infinite reverse; }

@keyframes glowRotate1 {
  0%   { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes glowRotate2 {
  0%   { transform: translate(-50%, -50%) rotate(82deg); }
  100% { transform: translate(-50%, -50%) rotate(442deg); }
}
@keyframes glowRotate3 {
  0%   { transform: translate(-50%, -50%) rotate(60deg); }
  100% { transform: translate(-50%, -50%) rotate(420deg); }
}

/* hover 加速 */
.glow-search:hover .glow-outer::before { animation-duration: 8s; }
.glow-search:hover .glow-mid::before   { animation-duration: 6s; }
.glow-search:hover .glow-inner::before { animation-duration: 10s; }
.glow-search:hover .glow-white::before { animation-duration: 12s; }
.glow-search:hover .glow-border::before { animation-duration: 7s; }

/* focus 更快 */
.glow-search:focus-within .glow-outer::before { animation-duration: 4s; }
.glow-search:focus-within .glow-mid::before   { animation-duration: 3s; }
.glow-search:focus-within .glow-inner::before { animation-duration: 5s; }
.glow-search:focus-within .glow-white::before { animation-duration: 6s; }
.glow-search:focus-within .glow-border::before { animation-duration: 3.5s; }

/* ── 主输入区 ────────────────────────────── */
.glow-main {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 620px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  isolation: isolate;
}

.glow-input {
  width: 100%;
  height: 56px;
  padding: 0 60px;
  border: 1px solid rgba(0,0,0,0.1);
  background: #ffffff;
  color: #000000;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  outline: none;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(0,0,0,0.03);
  transition: border-color 0.3s;
}
.glow-main:focus-within .glow-input {
  border-color: rgba(99,102,241,0.4);
}
.glow-input::selection {
  background: rgba(207, 48, 170, 0.5);
  color: #fff;
}
.glow-input::placeholder {
  color: #94a3b8;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* 左侧搜索图标 */
.glow-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  pointer-events: none;
}

/* 渐变遮罩 */
.glow-input-mask {
  display: none;
}

/* 粉色光斑 */
.glow-pink-mask {
  pointer-events: none;
  width: 30px;
  height: 20px;
  position: absolute;
  top: 10px;
  left: 5px;
  z-index: 1;
  background: #cf30aa;
  filter: blur(20px);
  opacity: 0.8;
  transition: opacity 2s ease;
}
.glow-search:hover .glow-pink-mask {
  opacity: 0;
}

/* 右侧搜索按钮 */
.glow-submit {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #ffffff;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(99,102,241,0.3);
}
.glow-submit svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.5;
}
.glow-submit:hover {
  box-shadow: 0 4px 20px rgba(99,102,241,0.45);
  transform: translateY(-50%) scale(1.05);
}
.glow-submit:active {
  transform: translateY(-50%) scale(0.93);
}

@keyframes glowSpin {
  100% { transform: rotate(360deg); }
}

/* 清除按钮 */
.glow-clear-wrap {
  display: none;
  justify-content: center;
  margin-top: 10px;
}
.glow-clear-wrap.show {
  display: flex;
}

/* ═══════════════════════════════════════════════════════
   搜索选项
   ═══════════════════════════════════════════════════════ */

.search-options {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.field-select {
  padding: 8px 32px 8px 14px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--text-secondary);
  background: white;
  outline: none;
  cursor: pointer;
  transition: all var(--duration);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%2364748b'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  box-shadow: var(--shadow-sm);
}
.field-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

/* ═══════════════════════════════════════════════════════
   状态栏
   ═══════════════════════════════════════════════════════ */

.status-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, rgba(99,102,241,0.04), rgba(168,139,250,0.04));
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--text-secondary);
}
.status-bar .count {
  color: var(--primary);
  font-weight: 700;
  font-size: 20px;
}

/* ═══════════════════════════════════════════════════════
   表格 — 极简风格
   ═══════════════════════════════════════════════════════ */

.results-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 8px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
}
.results-table thead th {
  padding: 14px 20px;
  text-align: center;
  font-weight: 600;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  background: rgba(248,250,252,0.8);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.results-table tbody td {
  padding: 14px 20px;
  font-size: 14px;
  color: var(--text-primary);
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid rgba(0,0,0,0.03);
  transition: background var(--duration);
}
.results-table tbody td:first-child {
  text-align: left;
  font-weight: 500;
}
.results-table tbody tr:last-child td {
  border-bottom: none;
}
.results-table tbody tr:hover td {
  background: rgba(99,102,241,0.03);
}

/* 到期标签 */
.expire-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.expire-tag.normal {
  background: #f1f5f9; color: #475569;
}
.expire-tag.warn {
  background: #fffbeb; color: #d97706;
}
.expire-tag.danger {
  background: #fef2f2; color: #dc2626;
}

/* ═══════════════════════════════════════════════════════
   空状态 / 使用指南
   ═══════════════════════════════════════════════════════ */

.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-secondary);
}
.empty-state .fa-icon {
  font-size: 56px;
  color: #e2e8f0;
  margin-bottom: 16px;
  display: block;
}
.empty-state .fa-icon.glow {
  color: var(--primary);
  opacity: 0.3;
}
.empty-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.empty-state p {
  max-width: 400px;
  margin: 0 auto;
  font-size: 14px;
  color: var(--text-muted);
}

/*  使用指南 */
.empty-guide {
  padding: 8px 0;
}
.guide-header {
  text-align: center;
  margin-bottom: 28px;
  padding: 32px 20px;
  background: linear-gradient(135deg, rgba(99,102,241,0.04), rgba(168,139,250,0.04));
  border-radius: var(--radius);
  border: 1px solid rgba(99,102,241,0.08);
}
.guide-icon-box {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 8px 32px rgba(99,102,241,0.2);
}
.guide-title {
  font-size: 20px; font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.guide-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 80%;
  margin: 0 auto;
}

.guide-rules {
  background: rgba(255,255,255,0.6);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(0,0,0,0.04);
}
.guide-rules-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.guide-rules-list {
  display: grid; gap: 10px;
}
.guide-rule-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--duration);
}
.guide-rule-item:hover {
  background: white;
  box-shadow: var(--shadow-sm);
}

.guide-rule-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-xs);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}
.guide-rule-title {
  font-size: 14px; font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.guide-rule-desc {
  font-size: 13px; color: var(--text-muted);
  line-height: 1.4;
}

.rule-item-1 { background: rgba(236,72,153,0.04); }
.rule-icon-1 { background: #fce7f3; color: #ec4899; }
.rule-item-2 { background: rgba(34,197,94,0.04); }
.rule-icon-2 { background: #dcfce7; color: #22c55e; }
.rule-item-3 { background: rgba(99,102,241,0.04); }
.rule-icon-3 { background: #eef2ff; color: #6366f1; }

/* ═══════════════════════════════════════════════════════
   按钮系统
   ═══════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 16px rgba(99,102,241,0.25);
}
.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(99,102,241,0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #f1f5f9;
  color: var(--text-secondary);
}
.btn-secondary:hover {
  background: #e2e8f0;
  color: var(--text-primary);
}

.btn-edit {
  background: rgba(99,102,241,0.08);
  color: var(--primary);
}
.btn-edit:hover {
  background: rgba(99,102,241,0.15);
}

.btn-delete {
  background: rgba(239,68,68,0.08);
  color: var(--danger);
}
.btn-delete:hover {
  background: rgba(239,68,68,0.15);
}

.btn-cancel {
  background: #f1f5f9;
  color: var(--text-secondary);
}

.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 12px 28px; font-size: 16px; }

/* ═══════════════════════════════════════════════════════
   弹窗
   ═══════════════════════════════════════════════════════ */

.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  justify-content: center; align-items: center;
}
.modal-overlay.show { display: flex; }

.modal {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px;
  width: 480px;
  max-width: 92vw;
  box-shadow: 0 24px 80px rgba(0,0,0,0.15);
  animation: modalIn 0.25s var(--ease-out);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal h3 {
  font-size: 18px; font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-primary);
  display: flex; align-items: center; gap: 10px;
}
.modal h3 .icon-circle {
  width: 34px; height: 34px;
  background: rgba(99,102,241,0.08);
  border-radius: var(--radius-xs);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 15px;
}
.modal .form-row {
  display: flex; gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
}

/* 确认框 */
.confirm-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0,0,0,0.15);
  animation: modalIn 0.25s var(--ease-out);
  border: 1px solid rgba(239,68,68,0.15);
}
.confirm-box p {
  font-size: 15px;
  margin-bottom: 28px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.confirm-box .btn { margin: 0 6px; }

/* ═══════════════════════════════════════════════════════
   Toast
   ═══════════════════════════════════════════════════════ */

.toast {
  position: fixed;
  top: 28px; left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: white;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-size: 14px; font-weight: 500;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  pointer-events: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(4px); }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

/* ═══════════════════════════════════════════════════════
   加载遮罩
   ═══════════════════════════════════════════════════════ */

.loading-mask {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center; justify-content: center;
  z-index: 9999;
}
.loading-mask.show { display: flex; }
.loading-mask i {
  font-size: 40px;
  color: var(--primary);
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 搜索加载 */
.search-loading {
  display: none;
  text-align: center;
  padding: 48px 20px;
  color: var(--primary);
  font-size: 15px; font-weight: 500;
}
.search-loading.show { display: block; }
.search-loading i {
  font-size: 32px;
  display: block;
  margin-bottom: 12px;
  animation: spin 0.8s linear infinite;
}

/* ═══════════════════════════════════════════════════════
   分页
   ═══════════════════════════════════════════════════════ */

.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin-top: 24px; padding: 10px 0;
}
.page-info {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 600;
}
.pagination .btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════
   页脚
   ═══════════════════════════════════════════════════════ */

.footer {
  text-align: center;
  padding: 16px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(248,250,252,0.85);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(0,0,0,0.04);
  z-index: 100;
}

/* ═══════════════════════════════════════════════════════
   登录页
   ═══════════════════════════════════════════════════════ */

.login-container {
  max-width: 420px;
  margin: 60px auto 0;
}
.login-form { margin-top: 24px; }
.login-form .form-group { margin-bottom: 20px; }
.login-form .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.login-form .form-group input {
  width: 100%; height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text-primary);
  outline: none;
  background: white;
  transition: all var(--duration) var(--ease-out);
  box-shadow: var(--shadow-sm);
}
.login-form .form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.1);
}
.login-btn {
  width: 100%; height: 50px;
  border: none;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-size: 16px; font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  box-shadow: 0 4px 20px rgba(99,102,241,0.25);
  letter-spacing: 0.04em;
}
.login-btn:hover {
  box-shadow: 0 8px 32px rgba(99,102,241,0.35);
  transform: translateY(-1px);
}
.login-btn:active { transform: scale(0.98); }
.login-error {
  color: var(--danger);
  font-size: 14px;
  text-align: center;
  margin-top: 14px;
  display: none;
}

/* ═══════════════════════════════════════════════════════
   管理后台
   ═══════════════════════════════════════════════════════ */

.admin-layout {
  display: flex; flex-direction: column; gap: 20px;
}
.data-table-wrap {
  overflow: auto;
  max-height: 520px;
  border-radius: var(--radius);
}

.btn-icon {
  width: 34px; height: 34px;
  border: none; border-radius: var(--radius-xs);
  cursor: pointer; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--duration) var(--ease-out);
}
.btn-icon:hover { transform: scale(1.12); }
.btn-icon.edit { background: rgba(99,102,241,0.08); color: var(--primary); }
.btn-icon.edit:hover { background: rgba(99,102,241,0.16); }
.btn-icon.del { background: rgba(239,68,68,0.08); color: var(--danger); }
.btn-icon.del:hover { background: rgba(239,68,68,0.16); }

.form-row-inline { display: flex; gap: 10px; align-items: center; }

.upload-area {
  border: 2px dashed rgba(0,0,0,0.08);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  background: rgba(255,255,255,0.4);
}
.upload-area:hover {
  border-color: var(--success);
  background: rgba(16,185,129,0.04);
}
.upload-area.drag-over {
  border-color: var(--success);
  background: rgba(16,185,129,0.08);
  box-shadow: 0 0 0 4px rgba(16,185,129,0.1);
}
.upload-area p {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

/* 表单 */
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label {
  font-size: 13px; font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.form-group input,
.form-group select {
  padding: 10px 14px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-xs);
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  background: white;
  transition: all var(--duration) var(--ease-out);
  box-shadow: var(--shadow-sm);
}
.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.form-actions { display: flex; gap: 10px; align-items: end; }

/* ═══════════════════════════════════════════════════════
   响应式
   ═══════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  body {
    padding: 12px 8px;
  }
  .container { gap: 14px; }
  .card {
    padding: 20px 16px;
    border-radius: var(--radius);
  }
  .logo { font-size: 24px; }
  .card-header { margin-bottom: 18px; }

  /* 搜索 */
  .glow-search {
    max-width: 100%;
    height: 62px;
  }
  .glow-input {
    height: 50px;
    padding: 0 48px;
    font-size: 15px;
  }
  .glow-main {
    height: 50px;
  }
  .glow-search-icon {
    left: 12px;
  }
  .glow-submit {
    width: 36px;
    height: 36px;
    right: 4px;
  }
  .search-input {
    height: 50px;
    padding: 0 12px 0 42px;
    font-size: 15px;
  }
  .search-icon { left: 14px; font-size: 16px; }
  .clear-icon { height: 38px; padding: 0 10px; font-size: 13px; }
  .inner-search-btn {
    height: 50px; padding: 0 16px;
    font-size: 14px;
  }

  .form-grid {
    display: flex !important;
    flex-direction: column; gap: 10px;
  }
  .form-actions { flex-direction: column; }

  /* 表格 */
  .results-table th, .results-table td {
    padding: 10px 8px;
    font-size: 13px;
  }

  .status-bar {
    font-size: 12px;
    padding: 8px 14px;
  }

  /* 指南 */
  .guide-header { padding: 24px 14px; }
  .guide-icon-box { width: 56px; height: 56px; }
  .guide-title { font-size: 17px; }
  .guide-subtitle { font-size: 13px; max-width: 100%; }
  .guide-rule-item {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 8px;
  }
  .guide-rule-icon { width: 34px; height: 34px; }

  .footer { font-size: 12px; }
  .login-container { margin-top: 24px; }
}
