/* ============================================================
   瑶海区科普场馆预约系统 - 全局样式（精致版）
   设计语言：科技蓝 × 青色渐变 / 柔和阴影 / 圆角卡片 / 无图标
   ============================================================ */

/* === 重置与基础 === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #2e6bff;
  --primary-dark: #1d4ed8;
  --primary-deep: #143a8f;
  --accent: #06b6d4;
  --grad-primary: linear-gradient(135deg, #2e6bff 0%, #06b6d4 100%);
  --grad-violet: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  --grad-amber: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  --danger: #ef4444;
  --danger-deep: #b91c1c;
  --danger-light: #fee2e2;
  --warn: #f59e0b;
  --warn-deep: #b45309;
  --warn-light: #fff7e6;
  --success: #10b981;
  --success-deep: #047857;
  --success-light: #d1fae5;
  --indigo-deep: #3730a3;
  --indigo-light: #e0e7ff;
  --text: #17233d;
  --text-muted: #64748b;
  --text-faint: #94a3b8;
  --border: #e6ebf2;
  --border-strong: #d7deea;
  --bg: #f4f6fb;
  --bg-soft: #f7f9fc;
  --bg-card: #ffffff;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.05);
  --shadow: 0 2px 10px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 14px 36px rgba(16, 24, 40, 0.12);
  --shadow-glow: 0 6px 18px rgba(46, 107, 255, 0.28);
  --max-width: 1080px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(46, 107, 255, 0.05), transparent 60%),
    radial-gradient(900px 420px at -10% 20%, rgba(6, 182, 212, 0.05), transparent 55%),
    var(--bg);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  text-decoration: none;
  color: var(--primary-dark);
}

/* 精致滚动条 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cfd8e6;
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: #b3c0d4;
}

/* 键盘焦点提示 */
:focus-visible {
  outline: 3px solid rgba(46, 107, 255, 0.35);
  outline-offset: 2px;
  border-radius: 4px;
}

/* === 导航栏 === */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 10px rgba(16, 24, 40, 0.04);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 1.25rem;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-logo::before {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--grad-primary);
  box-shadow: 0 4px 12px rgba(46, 107, 255, 0.35);
  flex-shrink: 0;
}

.nav-logo:hover {
  color: var(--text);
}

.nav-menu {
  display: flex;
  gap: 0.3rem;
  align-items: center;
}

.nav-link {
  color: var(--text-muted);
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover {
  background: #eaf1ff;
  color: var(--primary);
  text-decoration: none;
}

.nav-link-primary {
  background: var(--grad-primary);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(46, 107, 255, 0.3);
}

.nav-link-primary:hover {
  color: #fff;
  background: linear-gradient(135deg, #1d4ed8 0%, #0891b2 100%);
  box-shadow: 0 6px 16px rgba(46, 107, 255, 0.38);
  transform: translateY(-1px);
}

.nav-link-logout {
  color: var(--danger-deep);
}

.nav-link-logout:hover {
  background: var(--danger-light);
  color: var(--danger-deep);
}

/* === 导航下拉菜单 === */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-dropdown-toggle {
  cursor: pointer;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 150px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(16, 24, 40, 0.12);
  padding: 0.35rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-dropdown-item:hover {
  background: #eaf1ff;
  color: var(--primary);
  text-decoration: none;
}

/* === 主内容区 === */
.main-content {
  flex: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 2.2rem 1.25rem 3rem;
}

/* === 按钮 === */
.btn {
  display: inline-block;
  padding: 0.62rem 1.4rem;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s ease;
  text-decoration: none;
  text-align: center;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(46, 107, 255, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #0891b2 100%);
  box-shadow: 0 8px 22px rgba(46, 107, 255, 0.38);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover {
  background: #eaf1ff;
  color: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(46, 107, 255, 0.15);
}

.btn-danger {
  background: linear-gradient(135deg, #f43f5e 0%, #ef4444 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.btn-danger:hover {
  color: #fff;
  background: linear-gradient(135deg, #e11d48 0%, #dc2626 100%);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.32);
}

.btn-sm {
  padding: 0.32rem 0.8rem;
  font-size: 0.82rem;
  border-radius: 8px;
}

.btn-block {
  width: 100%;
  display: block;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.mt-2 {
  margin-top: 1rem;
}

/* === 表单 === */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label,
.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--text);
  letter-spacing: 0.01em;
}

.required {
  color: var(--danger);
  font-weight: 700;
}

.form-input,
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.62rem 0.9rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.4rem;
  cursor: pointer;
}

.form-input::placeholder,
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-faint);
}

.form-input:hover,
.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: #b9c5d8;
}

.form-input:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(46, 107, 255, 0.13);
}

.form-input-readonly {
  background: var(--bg-soft);
  color: var(--text-muted);
  cursor: not-allowed;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.form-error {
  background: var(--danger-light);
  color: var(--danger-deep);
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--danger);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-row > :only-child {
  grid-column: 1 / -1;
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
}

/* === 提示框 === */
.alert {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.alert-warning {
  background: var(--warn-light);
  color: var(--warn-deep);
  border: 1px solid #fde68a;
}

.alert-success {
  background: #ecfdf5;
  color: var(--success-deep);
  border: 1px solid #a7f3d0;
}

/* === 认证页面（登录/注册） === */
.auth-container {
  max-width: 440px;
  margin: 2.5rem auto;
}

.auth-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 64px rgba(16, 24, 40, 0.12);
  padding: 2.5rem 2.3rem 2rem;
}

.auth-card::before {
  content: "";
  position: absolute;
  top: -110px;
  right: -110px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 107, 255, 0.12), transparent 70%);
  pointer-events: none;
}

.auth-card::after {
  content: "";
  position: absolute;
  bottom: -130px;
  left: -110px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12), transparent 70%);
  pointer-events: none;
}

.auth-title {
  position: relative;
  z-index: 1;
  font-size: 1.7rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1.8rem;
  letter-spacing: 0.02em;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-form {
  position: relative;
  z-index: 1;
  margin-bottom: 1.5rem;
}

.auth-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}

.auth-footer a {
  font-weight: 600;
}

.demo-hint {
  position: relative;
  z-index: 1;
  margin-top: 1.2rem;
  padding: 0.9rem 1rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.9;
}

.demo-hint p {
  margin-bottom: 0.1rem;
}

/* === 首页 Hero === */
.hero-section {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #123a8f 0%, #2e6bff 48%, #06b6d4 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  margin-bottom: 2.5rem;
  box-shadow: 0 20px 48px rgba(46, 107, 255, 0.3);
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -80px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18), transparent 62%);
  pointer-events: none;
}

.hero-section::after {
  content: "";
  position: absolute;
  bottom: -170px;
  left: -100px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.4), transparent 65%);
  pointer-events: none;
}

.hero-title {
  position: relative;
  z-index: 1;
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 18px rgba(9, 30, 66, 0.25);
}

.hero-subtitle {
  position: relative;
  z-index: 1;
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.8rem;
  font-weight: 400;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.hero-actions .btn {
  min-width: 150px;
  padding: 0.7rem 1.8rem;
  font-size: 1rem;
}

.hero-actions .btn-primary {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 10px 26px rgba(9, 30, 66, 0.28);
}

.hero-actions .btn-primary:hover {
  background: #f0f6ff;
  color: var(--primary-deep);
  box-shadow: 0 14px 32px rgba(9, 30, 66, 0.32);
}

.hero-actions .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
}

.hero-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
}

/* === 首页快捷卡片 === */
.quick-cards {
  counter-reset: qcard;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-bottom: 2.4rem;
}

.quick-card {
  position: relative;
  counter-increment: qcard;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.6rem 1.5rem;
  text-align: left;
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  animation: fadeUp 0.5s ease both;
}

.quick-card:nth-child(2) { animation-delay: 0.06s; }
.quick-card:nth-child(3) { animation-delay: 0.12s; }

.quick-card::before {
  content: "0" counter(qcard);
  position: absolute;
  top: 0.9rem;
  right: 1.2rem;
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.25;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.quick-card::after {
  content: "";
  position: absolute;
  left: 1.6rem;
  right: 1.6rem;
  top: 0;
  height: 3px;
  border-radius: 0 0 6px 6px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.quick-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(46, 107, 255, 0.35);
  text-decoration: none;
  color: var(--text);
}

.quick-card:hover::before {
  opacity: 0.55;
  transform: scale(1.06);
}

.quick-card:hover::after {
  opacity: 1;
}

.quick-card-title {
  display: block;
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.quick-card-desc {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* === 信息区块 === */
.info-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.8rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.4rem;
}

.info-section p {
  margin-bottom: 0.6rem;
  color: #334155;
}

.section-title {
  position: relative;
  padding-left: 1rem;
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.15rem;
  letter-spacing: 0.01em;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 1.15em;
  border-radius: 99px;
  background: var(--grad-primary);
}

.subsection-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text);
}

/* === 通用页面标题 === */
.page-header {
  margin-bottom: 1.6rem;
}

.page-title {
  position: relative;
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
  padding-bottom: 0.4rem;
}

.page-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 3px;
  border-radius: 99px;
  background: var(--grad-primary);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.6rem;
  flex-wrap: wrap;
}

.admin-welcome {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* === 标签页 === */
.tabs,
.filter-tabs,
.import-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.6rem;
  border-bottom: 2px solid var(--border);
  flex-wrap: wrap;
  overflow-x: auto;
}

.tab,
.filter-tab,
.import-tab {
  padding: 0.65rem 1.3rem;
  border: none;
  background: none;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.tab:hover,
.filter-tab:hover,
.import-tab:hover {
  color: var(--text);
  background: #f6f9ff;
}

.tab-active,
.filter-tab.active,
.import-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 700;
}

.tab-content {
  display: none;
}

.tab-content-active {
  display: block;
}

/* === 分类筛选标签 === */
.category-filter {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
  flex-wrap: wrap;
}

.category-tag {
  padding: 0.42rem 1.1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
}

.category-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #eaf1ff;
  text-decoration: none;
}

.category-tag.active {
  background: var(--grad-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(46, 107, 255, 0.3);
}

/* === 场馆卡片 === */
.venue-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
}

.venue-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.4rem;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  animation: fadeUp 0.5s ease both;
}

.venue-card:nth-child(2) { animation-delay: 0.05s; }
.venue-card:nth-child(3) { animation-delay: 0.1s; }
.venue-card:nth-child(4) { animation-delay: 0.15s; }
.venue-card:nth-child(5) { animation-delay: 0.2s; }
.venue-card:nth-child(6) { animation-delay: 0.25s; }

.venue-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(46, 107, 255, 0.3);
  text-decoration: none;
  color: var(--text);
}

/* 首字徽章（替代原 emoji 图标） */
.venue-card-initial,
.activity-card-initial,
.reservation-initial,
.venue-detail-initial,
.activity-detail-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--grad-primary);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(46, 107, 255, 0.3);
  user-select: none;
}

.venue-card-initial {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  font-size: 1.5rem;
}

.activity-card-initial {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  font-size: 1.4rem;
}

.reservation-initial {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 1.25rem;
}

.venue-detail-initial,
.activity-detail-initial {
  width: 74px;
  height: 74px;
  border-radius: 22px;
  font-size: 2.1rem;
}

/* 徽章配色交替变化 */
.venue-card:nth-child(3n+2) .venue-card-initial,
.activity-card:nth-child(3n+2) .activity-card-initial,
.reservation-card:nth-child(3n+2) .reservation-initial {
  background: var(--grad-violet);
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.3);
}

.venue-card:nth-child(3n) .venue-card-initial,
.activity-card:nth-child(3n) .activity-card-initial,
.reservation-card:nth-child(3n) .reservation-initial {
  background: var(--grad-amber);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.3);
}

.venue-card-body {
  flex: 1;
  min-width: 0;
}

.venue-card-name {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.venue-card-tag {
  display: inline-block;
  padding: 0.18rem 0.7rem;
  background: #eaf1ff;
  color: var(--primary-dark);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.venue-card-location,
.venue-card-capacity {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

/* === 场馆详情 === */
.venue-detail-header,
.activity-detail-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.8rem;
}

.venue-detail-header .page-title,
.activity-detail-header .page-title {
  margin-bottom: 0.25rem;
}

.venue-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.4rem;
  margin-bottom: 1.8rem;
  align-items: start;
}

.venue-info-card,
.venue-side-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.7rem;
  box-shadow: var(--shadow-sm);
}

.venue-side-card {
  position: sticky;
  top: 84px;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.info-table th {
  text-align: left;
  padding: 0.7rem 0.9rem;
  background: var(--bg-soft);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
  width: 130px;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}

.info-table td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid #f0f3f8;
  font-size: 0.92rem;
  color: #334155;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: none;
}

.venue-description {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--border);
}

.venue-description p {
  color: #475569;
  font-size: 0.93rem;
}

.action-box,
.materials-box {
  margin-bottom: 1.6rem;
}

.action-box:last-child,
.materials-box:last-child {
  margin-bottom: 0;
}

.action-box h3,
.materials-box h3 {
  position: relative;
  padding-left: 0.8rem;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.action-box h3::before,
.materials-box h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 1em;
  border-radius: 99px;
  background: var(--grad-primary);
}

.action-box p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

/* === 数据表格 === */
.admin-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.5rem 1rem 0.9rem;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th {
  text-align: left;
  padding: 0.8rem 0.9rem;
  background: var(--bg-soft);
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.data-table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid #f0f3f8;
  color: #334155;
}

.data-table tbody tr {
  transition: background 0.15s ease;
}

.data-table tbody tr:hover {
  background: #f7faff;
}

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

.data-table-compact {
  font-size: 0.82rem;
}

.data-table-compact th,
.data-table-compact td {
  padding: 0.45rem 0.6rem;
}

.row-error {
  background: var(--danger-light) !important;
}

.text-danger {
  color: var(--danger);
  font-weight: 600;
}

.action-cell {
  white-space: nowrap;
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

/* === 状态标签 === */
.status-tag {
  position: relative;
  display: inline-block;
  padding: 0.26rem 0.8rem 0.26rem 1.55rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-tag::before {
  content: "";
  position: absolute;
  left: 0.68rem;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.9;
}

.status-open,
.status-approved,
.status-completed,
.status-checked_in {
  background: var(--success-light);
  color: var(--success-deep);
}

.status-pending {
  background: var(--warn-light);
  color: var(--warn-deep);
}

.status-rejected,
.status-noshow,
.status-closed {
  background: var(--danger-light);
  color: var(--danger-deep);
}

.status-cancelled {
  background: #eef1f5;
  color: #64748b;
}

/* 预约卡片状态色条 */
.reservation-card.status-bar-pending::before { background: linear-gradient(180deg, #f59e0b, #fbbf24); }
.reservation-card.status-bar-approved::before { background: linear-gradient(180deg, #10b981, #34d399); }
.reservation-card.status-bar-rejected::before { background: linear-gradient(180deg, #ef4444, #f87171); }
.reservation-card.status-bar-cancelled::before { background: #94a3b8; }
.reservation-card.status-bar-checked_in::before { background: linear-gradient(180deg, #2e6bff, #60a5fa); }
.reservation-card.status-bar-noshow::before { background: linear-gradient(180deg, #ef4444, #fb7185); }
.reservation-card.status-bar-completed::before { background: linear-gradient(180deg, #6366f1, #818cf8); }

/* === 预约规则 === */
.rules-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rule-item {
  position: relative;
  display: flex;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rule-item:hover {
  border-color: rgba(46, 107, 255, 0.3);
  box-shadow: var(--shadow);
}

.rule-item::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--grad-primary);
  margin-top: 0.55rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(46, 107, 255, 0.12);
}

.rule-content h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.rule-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.rule-content strong {
  color: var(--primary-dark);
  font-weight: 700;
}

/* === 排期日历 === */
.schedule-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.schedule-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
  justify-content: center;
}

.week-label {
  font-size: 0.98rem;
  font-weight: 600;
  min-width: 260px;
  text-align: center;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 1.2rem;
}

.schedule-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 5px;
  font-size: 0.82rem;
}

.schedule-table th {
  padding: 0.6rem 0.4rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  color: var(--text);
}

.schedule-date {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 400;
}

.schedule-table td {
  padding: 0.65rem 0.3rem;
  border: none;
  border-radius: 12px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 500;
  vertical-align: middle;
}

.slot-time {
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  background: var(--bg-soft) !important;
}

.slot-free {
  background: linear-gradient(135deg, #e8faf3, #d1fae5);
  color: var(--success-deep);
}

.slot-reviewing {
  background: var(--warn-light);
  color: var(--warn-deep);
}

.slot-full {
  background: var(--danger-light);
  color: var(--danger-deep);
}

.slot-closed {
  background: #f1f3f7;
  color: #b6bfcc;
}

.slot-count {
  font-size: 0.7rem;
  display: block;
  margin-top: 0.15rem;
  opacity: 0.85;
}

/* === 预约页面 === */
.booking-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem 2.2rem;
  box-shadow: var(--shadow);
  max-width: 760px;
  margin: 0 auto;
}

.slot-select-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.slot-option {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  background: #fff;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.slot-option:hover {
  border-color: var(--primary);
  background: #f5f8ff;
}

.slot-option:has(input:checked) {
  border-color: var(--primary);
  background: linear-gradient(135deg, #eef4ff, #e9faf8);
  box-shadow: 0 0 0 4px rgba(46, 107, 255, 0.1);
}

.slot-option.slot-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.slot-option input[type="radio"] {
  margin: 0;
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

.slot-status {
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}

.slot-status.slot-free { background: var(--success-light); color: var(--success-deep); }
.slot-status.slot-reviewing { background: var(--warn-light); color: var(--warn-deep); }
.slot-status.slot-full { background: var(--danger-light); color: var(--danger-deep); }

/* === 预约卡片列表 === */
.reservation-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.reservation-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  animation: fadeUp 0.45s ease both;
}

.reservation-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.reservation-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #cbd5e1;
}

.reservation-card-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.reservation-info {
  flex: 1;
  min-width: 0;
}

.reservation-title {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.reservation-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.reservation-reject {
  font-size: 0.85rem;
  color: var(--danger-deep);
  margin-top: 0.5rem;
  padding: 0.5rem 0.7rem;
  background: var(--danger-light);
  border-radius: var(--radius);
}

.reservation-card-actions {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

/* === 审核页：物料与备注展示 === */
.review-materials,
.review-remark {
  margin-top: 0.7rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.review-sub-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
}

.review-materials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.review-materials .review-sub-label {
  width: 100%;
  margin-bottom: 0.35rem;
}

.review-mat-chip {
  display: inline-block;
  padding: 0.22rem 0.7rem;
  background: #eaf1ff;
  color: var(--primary-dark);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.review-remark {
  border-left: 3px solid var(--accent);
}

.review-remark-text {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

/* === 通知列表 === */
.notification-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.notification-item {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.notification-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.notification-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: transparent;
}

.notification-unread {
  background: linear-gradient(90deg, #f5f8ff, #ffffff);
}

.notification-unread::before {
  background: var(--grad-primary);
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.55rem;
}

.notification-type {
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
}

.notification-type-info { background: #eaf1ff; color: var(--primary-dark); }
.notification-type-approval { background: var(--success-light); color: var(--success-deep); }
.notification-type-warning { background: var(--warn-light); color: var(--warn-deep); }

.notification-time {
  font-size: 0.82rem;
  color: var(--text-faint);
}

.notification-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.notification-content {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

/* === 活动列表 === */
.search-box {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
}

.search-box .form-input {
  flex: 1;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.activity-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  animation: fadeUp 0.45s ease both;
}

.activity-card:nth-child(2) { animation-delay: 0.05s; }
.activity-card:nth-child(3) { animation-delay: 0.1s; }
.activity-card:nth-child(4) { animation-delay: 0.15s; }
.activity-card:nth-child(5) { animation-delay: 0.2s; }

.activity-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(46, 107, 255, 0.3);
  text-decoration: none;
  color: var(--text);
}

.activity-card-body {
  flex: 1;
  min-width: 0;
}

.activity-card-title {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.activity-card-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

/* === 个人中心 === */
.page-container {
  max-width: 720px;
  margin: 0 auto;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  margin-top: 1.6rem;
}

.info-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.muted-text {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* === 错误页 === */
.error-page {
  position: relative;
  text-align: center;
  padding: 4rem 1rem;
}

.error-page::before {
  content: "";
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fef2f2, #ffe4e6);
  box-shadow: inset 0 2px 8px rgba(225, 29, 72, 0.08);
  opacity: 0.9;
  z-index: 0;
}

.error-title {
  position: relative;
  z-index: 1;
  font-size: 2rem;
  font-weight: 800;
  color: var(--danger);
  margin: 5.2rem 0 0.8rem;
}

.error-message {
  position: relative;
  z-index: 1;
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
}

/* === 管理后台 === */
.admin-nav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.1rem;
}

.admin-nav-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  animation: fadeUp 0.5s ease both;
}

.admin-nav-card:nth-child(2) { animation-delay: 0.05s; }
.admin-nav-card:nth-child(3) { animation-delay: 0.1s; }
.admin-nav-card:nth-child(4) { animation-delay: 0.15s; }
.admin-nav-card:nth-child(5) { animation-delay: 0.2s; }

.admin-nav-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.admin-nav-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(46, 107, 255, 0.3);
  text-decoration: none;
  color: var(--text);
}

.admin-nav-card:hover::before {
  opacity: 1;
}

.admin-nav-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.admin-nav-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.admin-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.7rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.4rem;
}

/* === 统计看板 === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 1.1rem;
  margin-bottom: 1.6rem;
}

.stat-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  animation: fadeUp 0.5s ease both;
}

.stat-card:nth-child(2) { animation-delay: 0.05s; }
.stat-card:nth-child(3) { animation-delay: 0.1s; }
.stat-card:nth-child(4) { animation-delay: 0.15s; }
.stat-card:nth-child(5) { animation-delay: 0.2s; }
.stat-card:nth-child(6) { animation-delay: 0.25s; }

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

.stat-card::after {
  content: "";
  position: absolute;
  right: -32px;
  bottom: -32px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 107, 255, 0.12), transparent 70%);
  pointer-events: none;
}

.stat-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stat-value {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* === 操作标签 / 筛选栏 === */
.action-tag {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  background: #eaf1ff;
  color: var(--primary-dark);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
}

.filter-bar {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
  align-items: center;
}

.filter-select,
.filter-input,
.filter-date {
  padding: 0.45rem 0.8rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-select:focus,
.filter-input:focus,
.filter-date:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46, 107, 255, 0.13);
}

.filter-input {
  flex: 1;
  min-width: 220px;
}

/* === 分页 === */
.pagination {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  justify-content: center;
  margin-top: 1.2rem;
  padding: 1rem 0;
}

.page-info {
  font-size: 0.88rem;
  color: var(--text-muted);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 0.3rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* === 图表容器 === */
.chart-container {
  width: 100%;
  height: 350px;
  margin-top: 0.8rem;
}

/* === 管理操作按钮组 === */
.admin-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* === 弹窗 === */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2.5rem 1rem;
  overflow-y: auto;
}

.modal-content {
  background: #fff;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 560px;
  padding: 1.9rem 2rem;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.25);
  animation: modalIn 0.25s ease both;
}

.modal-content-wide {
  max-width: 680px;
  width: 94%;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-header h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}

.modal-close {
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-muted);
  background: var(--bg-soft);
  font-family: inherit;
  transition: all 0.2s ease;
}

.modal-close:hover {
  color: var(--danger-deep);
  border-color: var(--danger);
  background: var(--danger-light);
}

/* === 内联表单 === */
.inline-form {
  margin-top: 1rem;
  padding: 1.1rem 1.2rem;
  background: var(--bg-soft);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}

/* === 分配列表 === */
.assign-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.assign-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0.9rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.92rem;
}

/* === 加载与错误提示 === */
.loading-text {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
}

.error-text {
  text-align: center;
  color: var(--danger);
  padding: 2rem;
}

.empty-text {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
}

/* === 空状态 === */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3.2rem 1rem;
  color: var(--text-muted);
}

.empty-state::before {
  content: "";
  display: block;
  width: 62px;
  height: 62px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #edf3ff, #e6f7f5);
  border: 1px solid #e3ecfa;
  box-shadow: inset 0 2px 8px rgba(16, 24, 40, 0.05);
}

.empty-state p {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.empty-state .btn {
  margin-top: 0.8rem;
}

/* === 物料选择项 === */
.material-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 0.2rem;
  border-bottom: 1px solid var(--border);
}

.material-item:last-child {
  border-bottom: none;
}

.material-item label {
  flex: 1;
  cursor: pointer;
  font-size: 0.92rem;
}

.material-item input[type="checkbox"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

.material-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.mat-qty-input {
  width: 72px !important;
  padding: 0.32rem 0.5rem !important;
  border: 1.5px solid var(--border-strong) !important;
  border-radius: 8px !important;
  font-size: 0.85rem !important;
  text-align: center;
}

/* === 批量导入 === */
.import-info {
  background: var(--bg-soft);
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  margin-bottom: 1.1rem;
  font-size: 0.88rem;
  border: 1px solid var(--border);
}

.import-info p {
  margin-bottom: 0.4rem;
}

.import-info pre {
  background: #fff;
  padding: 0.6rem;
  border-radius: var(--radius);
  font-size: 0.82rem;
  overflow-x: auto;
  border: 1px solid var(--border);
}

.import-info code {
  background: #eaf1ff;
  color: var(--primary-dark);
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  font-weight: 600;
}

.import-actions {
  margin-bottom: 1rem;
}

.file-upload-area {
  border: 2px dashed #c6d3e8;
  border-radius: var(--radius-lg);
  padding: 2.4rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.22s ease;
  background: linear-gradient(180deg, #fbfdff, #f3f7ff);
}

.file-upload-area:hover,
.file-upload-area.drag-over {
  border-color: var(--primary);
  background: #f0f6ff;
}

.file-upload-area p:first-of-type {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.file-upload-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.file-preview {
  margin-top: 1rem;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.7rem;
  font-size: 0.88rem;
}

.preview-table-wrap {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.import-result {
  margin-top: 1rem;
}

.import-summary {
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.success-color {
  background: #ecfdf5;
  color: var(--success-deep);
  border: 1px solid #a7f3d0;
}

.import-errors {
  list-style: none;
  padding: 0.7rem 1rem;
  background: var(--danger-light);
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--danger-deep);
  max-height: 200px;
  overflow-y: auto;
}

.import-errors li {
  padding: 0.2rem 0;
}

/* === 编辑弹窗表单 === */
#editModal .form-group {
  margin-bottom: 0.9rem;
}

#editModal label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

#editModal input[disabled] {
  background: var(--bg-soft);
  color: var(--text-muted);
  cursor: not-allowed;
}

/* === 页脚 === */
.site-footer {
  position: relative;
  background: linear-gradient(135deg, #0f1f43 0%, #123a8f 100%);
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  padding: 1.6rem 1rem;
  font-size: 0.85rem;
  margin-top: auto;
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, #2e6bff, #06b6d4) 1;
}

.site-footer p {
  margin: 0;
}

/* === 动画 === */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* === 移动端适配 ============================================================
   断点：
   ≤900px  汉堡菜单导航
   ≤768px  触控优化 / 弹窗抽屉式 / 表单 16px 防 iOS 缩放
   ≤480px  小屏精调
   ============================================================ */

/* --- 基础：触控与溢出优化 --- */
body {
  -webkit-tap-highlight-color: transparent;
}

.btn,
a,
.category-tag,
.slot-option,
.nav-toggle-btn,
.file-upload-area {
  touch-action: manipulation;
}

/* 汉堡按钮与复选框（桌面隐藏，仅移动端显示） */
.nav-toggle {
  display: none;
}

.nav-toggle-btn {
  display: none;
}

/* 横向表格容器（场馆排期 / 物料表 / 关于页场馆表） */
.schedule-grid,
.materials-box,
.venue-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/* 页脚安全区 */
.site-footer {
  padding-bottom: calc(1.6rem + env(safe-area-inset-bottom));
}

/* --- ≤900px：汉堡菜单 --- */
@media (max-width: 900px) {
  .nav-container {
    position: relative;
    flex-wrap: wrap;
    height: auto;
    padding: 0.65rem 1rem;
    gap: 0;
  }

  .nav-logo {
    font-size: 0.98rem;
    max-width: calc(100vw - 110px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-toggle-btn {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border-radius: 10px;
    cursor: pointer;
  }

  .nav-toggle-btn span {
    display: block;
    width: 20px;
    height: 2.5px;
    border-radius: 3px;
    background: var(--text);
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.98);
    padding: 0.6rem 0.9rem 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 20px 34px rgba(16, 24, 40, 0.1);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }

  .nav-menu .nav-link {
    padding: 0.72rem 1rem;
    border-radius: 10px;
    font-size: 0.95rem;
    min-height: 46px;
    display: flex;
    align-items: center;
  }

  .nav-link-primary {
    justify-content: center;
    margin-top: 0.3rem;
  }

  .nav-toggle:checked ~ .nav-menu {
    display: flex;
  }

  .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }
  .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  /* 移动端下拉菜单展开为分组列表 */
  .nav-dropdown {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-dropdown .nav-dropdown-toggle {
    padding: 0.72rem 1rem;
    border-radius: 10px;
    font-size: 0.95rem;
    min-height: 46px;
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--text);
    pointer-events: none;
  }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-left: 1rem;
    margin-top: 0.15rem;
  }

  .nav-dropdown-item {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.92rem;
    min-height: 42px;
    display: flex;
    align-items: center;
  }
}

/* --- ≤768px：触控优化 --- */
@media (max-width: 768px) {
  .main-content {
    padding: 1.5rem 1rem 2.6rem;
  }

  /* Hero */
  .hero-section {
    padding: 2.8rem 1.3rem;
    margin-bottom: 1.8rem;
  }
  .hero-title {
    font-size: 1.65rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }

  /* 卡片布局单列 */
  .quick-cards {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
  .venue-detail-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .venue-side-card {
    position: static;
  }

  /* 表单单列 */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* 管理头部 */
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }
  .admin-actions {
    width: 100%;
  }
  .admin-actions .btn {
    flex: 1;
  }

  /* 统计卡片 */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  /* 筛选栏 */
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-input {
    min-width: 100%;
  }
  .filter-select,
  .filter-date {
    width: 100%;
  }

  /* 标签页横滑 */
  .tabs,
  .filter-tabs,
  .import-tabs {
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  /* 图表 */
  .chart-container {
    height: 260px;
  }

  /* 预约表单 */
  .booking-form-card {
    padding: 1.4rem 1.1rem;
  }

  /* 排期工具栏 */
  .schedule-toolbar {
    flex-wrap: wrap;
    gap: 0.6rem;
  }
  .week-label {
    min-width: 0;
    flex: 1 1 100%;
    order: 3;
  }

  /* 详情表格瘦身 */
  .info-table th {
    width: 96px;
    padding: 0.55rem 0.7rem;
    font-size: 0.82rem;
  }
  .info-table td {
    padding: 0.55rem 0.7rem;
  }

  /* 表单控件 16px：防止 iOS 聚焦时自动缩放 */
  .form-input,
  .form-group input,
  .form-group select,
  .form-group textarea,
  .filter-select,
  .filter-input,
  .filter-date {
    font-size: 16px;
  }

  /* 弹窗：底部抽屉式 */
  .modal {
    align-items: flex-end;
    padding: 0;
  }
  .modal-content,
  .modal-content-wide {
    max-width: 100%;
    width: 100%;
    border-radius: 22px 22px 0 0;
    padding: 1.5rem 1.3rem calc(2rem + env(safe-area-inset-bottom));
    max-height: 88vh;
    overflow-y: auto;
    animation-name: sheetIn;
  }

  /* 触控目标 ≥44px */
  .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .btn-sm {
    min-height: 36px;
  }
  .category-tag {
    padding: 0.55rem 1.15rem;
  }
  .slot-option {
    padding: 0.95rem 1rem;
  }
  input[type="checkbox"],
  input[type="radio"] {
    width: 20px;
    height: 20px;
  }

  /* 预约卡片操作按钮铺满 */
  .reservation-card-actions {
    flex-wrap: wrap;
  }
  .reservation-card-actions .btn {
    flex: 1;
  }

  /* 通知头换行 */
  .notification-header {
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  /* 分页换行 */
  .pagination {
    flex-wrap: wrap;
  }

  /* 标题字号 */
  .page-title {
    font-size: 1.4rem;
  }
  .section-title {
    font-size: 1.12rem;
  }

  /* 排期表更紧凑 */
  .schedule-table {
    font-size: 0.72rem;
  }
  .schedule-table td {
    padding: 0.55rem 0.25rem;
  }
}

/* --- ≤480px：小屏精调 --- */
@media (max-width: 480px) {
  .main-content {
    padding: 1.3rem 0.8rem 2.2rem;
  }

  .nav-logo {
    font-size: 0.92rem;
  }

  .hero-title {
    font-size: 1.45rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    min-width: 0;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat-card {
    padding: 1rem 0.9rem;
  }
  .stat-value {
    font-size: 1.4rem;
  }
  .stat-label {
    font-size: 0.78rem;
  }

  .venue-cards {
    grid-template-columns: 1fr;
  }
  .venue-card {
    padding: 1.1rem 1.15rem;
  }
  .venue-card-initial {
    width: 46px;
    height: 46px;
    font-size: 1.25rem;
    border-radius: 13px;
  }
  .venue-detail-initial,
  .activity-detail-initial {
    width: 62px;
    height: 62px;
    font-size: 1.75rem;
    border-radius: 18px;
  }

  .auth-card {
    padding: 1.9rem 1.3rem 1.5rem;
  }
  .auth-title {
    font-size: 1.45rem;
  }

  .admin-table-wrap {
    padding: 0.4rem 0.5rem;
  }

  .reservation-card-header {
    flex-wrap: wrap;
  }

  .week-label {
    font-size: 0.88rem;
  }

  /* Toast 全宽居中 */
  .toast {
    left: 14px !important;
    right: 14px !important;
    text-align: center;
  }
}

/* --- 底部抽屉动画 --- */
@keyframes sheetIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- 无鼠标设备：去除悬浮位移，避免点击后卡片"卡住" --- */
@media (hover: none) {
  .venue-card:hover,
  .quick-card:hover,
  .activity-card:hover,
  .admin-nav-card:hover,
  .stat-card:hover,
  .reservation-card:hover,
  .notification-item:hover,
  .rule-item:hover,
  .btn:hover,
  .btn-primary:hover,
  .btn-outline:hover,
  .btn-danger:hover {
    transform: none;
  }
}
