/* ===== 基础重置 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, #app {
  background-color: #f5f5f7 !important;
  color: #1d1d1f !important;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  min-height: 100vh;
  line-height: 1.6;
}

/* 主页面背景层 - 苹果极淡温润灰 */
.main-bg-gradient {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background: #f5f5f7;
  pointer-events: none !important;
  transform: translateZ(0);
}

/* ===== 开机封面 ===== */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 版权信息 */
.copyright {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: #94a3b8;
  letter-spacing: 1px;
  z-index: 10;
  text-align: center;
  white-space: nowrap;
}

/* 版本号——同行居中 */
.version-number {
  font-size: 0.65rem;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

/* 备案号——与上方版权行保持明确间距 */
.beian-info {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  color: #94a3b8;
  z-index: 10;
  text-align: center;
  white-space: nowrap;
}
.beian-info a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
}
.beian-info a:hover {
  opacity: 0.7;
}

/* 封面管理入口 */
.splash-admin-entry {
  position: absolute;
  left: 20px;
  bottom: 20px;
  font-size: 0.75rem;
  color: #94a3b8;
  cursor: pointer;
  z-index: 10;
  padding: 6px 12px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid rgba(0,0,0,0.06);
  transition: all 0.2s;
}

.splash-admin-entry:hover {
  color: #1d1d1f;
  background: #f1f5f9;
}

/* 修复输入框 - 确保可交互 - 移动端友好 */
.nickname-input {
  pointer-events: auto !important;
  cursor: text !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-user-select: text !important;
  user-select: text !important;
  -webkit-tap-highlight-color: transparent !important;
  touch-action: manipulation !important;
  position: relative;
  z-index: 100;
}

.splash-nickname input {
  pointer-events: auto !important;
  cursor: text !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  touch-action: manipulation !important;
  -webkit-user-select: text !important;
  user-select: text !important;
  -webkit-tap-highlight-color: transparent !important;
  position: relative;
  z-index: 100;
}

.splash-nickname {
  pointer-events: auto !important;
  position: relative;
  z-index: 100;
}

/* 静态装饰层 - 已净化 */
.splash-screen::before {
  display: none;
}

/* 暖色光晕叠加层 - 已移除，背景已固化 */



/* splash 退出过渡 */
.splash-screen.exiting {
  opacity: 0;
  transform: scale(1.1);
  filter: blur(20px);
}


/* ===== 页面通用样式 ===== */
.page-view {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: auto;
}

/* ===== 登录/注册页面 ===== */
.auth-page {
  background: #f5f5f7;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
}

/* 登录注册页面装饰层 - 已净化 */
.auth-page::before {
  display: none;
}

/* 光晕叠加层 - 已移除 */


/* 登录注册卡片 */
.auth-page-card {
  position: relative;
  z-index: 10;
  background: #ffffff;
  border-radius: 20px;
  border: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  padding: 40px;
  max-width: 420px;
  width: 90%;
  animation: slideUp 0.4s ease;
}

.auth-page-header {
  text-align: center;
  margin-bottom: 32px;
}

.back-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  background: #f8fafc;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 8px;
  padding: 8px 16px;
  color: #475569;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
}

.back-btn:hover {
  background: rgba(0,0,0,0.06);
  color: #1d1d1f;
}

.auth-page-logo {
  font-size: 2.5rem;
  font-weight: 200;
  color: #1d1d1f;
  letter-spacing: 10px;
  margin-bottom: 4px;
}

.auth-page-subtitle {
  font-size: 0.9rem;
  color: #86868b;
  letter-spacing: 2px;
}

.auth-form-container {
  padding: 0 8px;
}

.auth-form-container h2 {
  text-align: center;
  color: #1e293b;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.auth-form-container .auth-tip {
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.auth-form-container .form-group {
  margin-bottom: 16px;
}

.auth-form-container label {
  display: block;
  color: #475569;
  font-size: 0.9rem;
  margin-bottom: 6px;
  font-weight: 500;
}

.auth-form-container input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  font-size: 1rem;
  background: #ffffff;
  color: #1e293b;
  transition: all 0.2s;
}

/* 邮箱分离式输入组 */
.email-input-group {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.2s;
}

.email-input-group:focus-within {
  border-color: #1d1d1f;
}

.email-local-input {
  flex: 2;
  min-width: 0;
  padding: 14px 4px 14px 16px !important;
  border: none !important;
  border-radius: 0 !important;
  font-size: 1rem !important;
  background: transparent !important;
  color: #1e293b !important;
  outline: none !important;
  width: auto !important;
}

.email-local-input::placeholder {
  color: #94a3b8;
}

.email-at {
  flex-shrink: 0;
  padding: 14px 2px;
  color: #86868b;
  font-size: 1rem;
  font-weight: 500;
  background: #ffffff;
}

.email-domain-select {
  flex: 3;
  min-width: 0;
  padding: 14px 12px 14px 4px !important;
  border: none !important;
  border-radius: 0 !important;
  font-size: 0.9rem !important;
  background: transparent !important;
  color: #475569 !important;
  outline: none !important;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: auto !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  padding-right: 32px !important;
}

.email-domain-select:hover {
  color: #1d1d1f !important;
}

.email-domain-select option {
  color: #1e293b;
  background: #ffffff;
  padding: 8px;
}

.auth-form-container input:focus {
  outline: none;
  border-color: #1d1d1f;
  background: #ffffff;
}

.auth-form-container input::placeholder {
  color: #94a3b8;
}

.auth-submit-btn {
  width: 100%;
  padding: 16px;
  background: #1d1d1f;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.3s;
}

.auth-submit-btn:hover:not(:disabled) {
  background: #333;
}

.auth-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.auth-switch {
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
  margin-top: 16px;
}

.auth-switch a {
  color: #1d1d1f;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-switch a:hover {
  color: #475569;
}

/* 验证码输入行 */
.code-input-row {
  display: flex;
  gap: 10px;
}

.code-input-row input {
  flex: 1;
}

.send-code-btn {
  padding: 12px 16px;
  background: #1d1d1f;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  min-width: 100px;
}

.send-code-btn:hover:not(:disabled) {
  background: #333;
}

.send-code-btn:disabled {
  background: rgba(0,0,0,0.05);
  color: #86868b;
  cursor: not-allowed;
}

.auth-error {
  color: #dc2626;
  font-size: 0.85rem;
  text-align: center;
  margin: 8px 0;
  padding: 8px 12px;
  background: rgba(220, 38, 38, 0.1);
  border-radius: 8px;
}

.auth-success {
  color: #16a34a;
  font-size: 0.85rem;
  text-align: center;
  margin: 8px 0;
  padding: 8px 12px;
  background: rgba(22, 163, 74, 0.1);
  border-radius: 8px;
}

/* ===== 模块切换 Tab ===== */
.module-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 16px 20px 0;
}

.tab-btn {
  padding: 12px 32px;
  background: #f5f5f7;
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #86868b;
  cursor: pointer;
  transition: all 0.3s;
}

.tab-btn:hover {
  background: #e8e8ed;
  border-color: rgba(0,0,0,0.08);
  color: #1d1d1f;
}

.tab-btn.active {
  background: #1d1d1f;
  color: #ffffff;
  border-color: #1d1d1f;
}

/* 食客楼卡片样式 - 简化布局 */
.offcampus-card {
  border-left: 3px solid #475569;
}

/* 管理员操作按钮 */
.admin-actions {
  display: flex;
  gap: 8px;
}

.edit-btn {
  border: none;
  background: #e8f4fd;
  color: #2196F3;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.edit-btn:hover {
  background: #d0e8f9;
}

/* ===== 玻璃拟态中心交互区 - 已去卡片化 / 全通栏 ===== */
.glass-card {
  position: relative;
  z-index: 10;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 20px !important;
  margin: 3vh auto 0 auto !important;
  pointer-events: auto;
  min-height: auto;
}

.glass-card-inner {
  position: relative;
  z-index: 100;
  text-align: center;
  pointer-events: auto;
}

/* 确保封面登录注册按钮可点击 */
.splash-auth-buttons {
  pointer-events: auto;
  position: relative;
  z-index: 100;
}

.splash-auth-buttons .glass-btn {
  pointer-events: auto;
  position: relative;
  z-index: 101;
}

/* ===== 封面品牌资产 (双线展开 + 文字滑入) ===== */
.ml5 {
  position: relative;
  font-weight: 300;
  color: #1d1d1f;
  text-align: center !important;
  width: 100% !important;
}

.ml5 .text-wrapper {
  position: relative;
  display: flex !important;
  justify-content: center;
  align-items: center;
  padding-top: 0.1em;
  padding-bottom: 0.15em;
  line-height: 1em;
  /* 随视口宽度自适应: 最小 2.5rem → 按 9vw 伸缩 → 最大 9rem */
  font-size: clamp(2.5rem, 9vw, 9rem) !important;
}

.ml5 .line {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  height: 3px;
  width: 100%;
  background-color: #1d1d1f;
  transform-origin: 0.5 0;
}

.ml5 .brand-center {
  font-family: "ZCOOL KuaiLe", -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-weight: 400;
  font-size: clamp(2.8rem, 10vw, 10rem) !important;
  color: #1d1d1f;
  flex-shrink: 0;
  text-align: center;
}

.ml5 .letters-left,
.ml5 .letters-right {
  font-family: "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 7.5vw, 7.5rem) !important;
  letter-spacing: clamp(0.08em, 0.25vw, 0.25em) !important;
  color: #86868b !important;
  flex: 1;
}

.ml5 .letters-left {
  text-align: right;
  padding-right: clamp(0.15em, 0.4vw, 0.4em);
}

.ml5 .letters-right {
  text-align: left;
  padding-left: clamp(0.15em, 0.4vw, 0.4em);
}

.ml5 .letters {
  display: inline-block;
  opacity: 0;
}

/* splash logo 和 tagline */
.splash-logo {
  font-size: 4rem;
  font-weight: 200;
  color: #1d1d1f;
  margin-bottom: 8px;
  letter-spacing: 16px;
}

.splash-version-tag {
  font-size: 1rem;
  font-weight: 400;
  color: #86868b;
  padding: 4px 12px;
  border-radius: 12px;
  letter-spacing: 2px;
  vertical-align: middle;
  margin-left: 8px;
}

.splash-tagline {
  font-size: 1.1rem;
  color: #86868b;
  margin-bottom: 48px;
  font-weight: 400;
  letter-spacing: 4px;
}

/* ===== 封面入场动画 (Vue Transition 苹果级渐入) ===== */
.splash-enter-active {
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.splash-enter-from {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(6px);
}
.splash-enter-to {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.splash-nickname {
  margin-bottom: 32px;
}

.splash-nickname input {
  padding: 18px 32px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  background: #ffffff;
  color: #1d1d1f;
  font-size: 1.05rem;
  width: 300px;
  text-align: center;
  transition: all 0.3s;
}

.splash-nickname input::placeholder {
  color: #86868b;
  font-weight: 300;
}

.splash-nickname input:focus {
  outline: none;
  border-color: #1d1d1f;
  background: #ffffff;
}

/* 玻璃质感按钮 - 已简化 */
.glass-btn {
  position: relative;
  padding: 18px 56px;
  font-size: 1.1rem;
  font-weight: 500;
  color: #1d1d1f;
  background: #f5f5f7;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 2px;
}

.glass-btn:hover {
  background: #1d1d1f;
  color: #ffffff;
  border-color: #1d1d1f;
}

/* ===== 浮动关键词气泡 - 已移除 ===== */
.floating-bubbles {
  display: none;
}

/* bubble 样式已移除 */

/* ===== 时段提示弹窗 ===== */
.time-notice .time-notice-content {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 24px;
  padding: 48px;
  max-width: 440px;
  text-align: center;
  color: #334155;
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  border: 1px solid rgba(255, 255, 255, 0.6);
  animation: slideUp 0.4s ease;
}

.time-notice-icon {
  font-size: 3.5rem;
  margin-bottom: 24px;
}

.time-notice-content h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: #1e293b;
  font-weight: 600;
}

.time-notice-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: #64748b;
  margin-bottom: 12px;
}

.time-notice-sub {
  font-size: 0.9rem;
  color: #94a3b8;
  font-style: italic;
}

.notice-btn {
  margin-top: 28px;
  padding: 14px 36px;
  background: #1d1d1f;
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.notice-btn:hover {
  background: #1e293b;
}

/* ===== 用前必看弹窗 ===== */
.onboarding .onboarding-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 28px;
  max-width: 500px;
  width: 90%;
  color: #334155;
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  border: 1px solid rgba(255, 255, 255, 0.6);
  overflow: hidden;
  animation: slideUp 0.4s ease;
}

.onboarding-header {
  background: #f8fafc;
  padding: 36px;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.onboarding-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.onboarding-header h2 {
  font-size: 1.5rem;
  color: #1e293b;
  font-weight: 600;
}

.onboarding-body {
  padding: 32px;
}

.onboarding-section {
  margin-bottom: 24px;
  padding: 24px;
  background: #f8fafc;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.06);
  border-left: 3px solid #1d1d1f;
}

.onboarding-section h4 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #1e293b;
}

.onboarding-section p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #64748b;
}

.onboarding-version {
  text-align: center;
  font-size: 0.75rem;
  color: #94a3b8;
  padding: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  letter-spacing: 1px;
}

.agree-btn {
  display: block;
  width: calc(100% - 64px);
  margin: 0 32px 32px;
  padding: 16px;
  background: #1d1d1f;
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.agree-btn:hover {
  background: #1e293b;
}

/* ===== 头部 ===== */
.header {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #1d1d1f;
  padding: 24px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.header-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.logo {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: #1d1d1f;
}

.subtitle {
  font-size: 1rem;
  color: #86868b;
}

.user-badge {
  position: absolute;
  right: 120px;
  top: 50%;
  transform: translateY(-50%);
  background: #f5f5f7;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(0,0,0,0.04);
  cursor: pointer;
  transition: all 0.2s;
  color: #1d1d1f;
}

.user-badge:hover {
  background: #e8e8ed;
}

.badge-icon {
  font-size: 1rem;
}

.badge-name {
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 开发日志入口按钮 */
.changelog-entry {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: #f8fafc;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(0,0,0,0.06);
  cursor: pointer;
  transition: all 0.3s;
  color: #475569;
}

.changelog-entry:hover {
  background: #f1f5f9;
  color: #1d1d1f;
}

/* 全局弹窗层 - 最高优先级 */
.global-modal {
  z-index: 10000 !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
}

/* 强制关闭按钮在最顶层 */
.close-btn {
  z-index: 10003 !important;
  position: relative;
}

/* 开发日志弹窗 */
.changelog-modal {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 28px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  border: 1px solid rgba(255, 255, 255, 0.6);
  animation: slideUp 0.4s ease;
  z-index: 10002;
  position: relative;
}

.changelog-content {
  padding: 24px;
}

.changelog-version {
  margin-bottom: 20px;
}

.changelog-version h4 {
  font-size: 1.1rem;
  color: #1d1d1f;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(0,0,0,0.06);
}

.changelog-version ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.changelog-version li {
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

.changelog-version li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #1d1d1f;
  font-weight: bold;
}

/* ===== 搜索栏 ===== */
.search-section {
  background: transparent !important;
  padding: 0 20px;
  margin-bottom: 24px !important;
  position: sticky;
  top: 0;
  z-index: 100;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.search-container {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
}

.search-input {
  flex: 1;
  padding: 14px 20px;
  border: 1.5px solid #d2d2d7 !important;
  border-radius: 14px;
  background: #ffffff;
  font-size: 1rem;
  color: #1d1d1f;
  transition: all 0.3s;
}

.search-input:focus {
  outline: none;
  border-color: #1d1d1f;
  background: #ffffff;
}

/* 搜索按钮 */
.search-btn {
  padding: 14px 28px;
  background: #1d1d1f;
  color: #ffffff;
  border: 1px solid #1d1d1f;
  border-radius: 14px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s;
}

.search-btn:hover {
  background: #333;
}

/* ===== 筛选区域 ===== */
.filter-section {
  background: #ffffff !important;
  padding: 12px 20px !important;
  margin: 18px 20px 24px 20px !important;
  border-radius: 12px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: none !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-label {
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
  font-size: 0.9rem;
}

/* 筛选标签 */
.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #f5f5f7;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s;
  color: #1d1d1f;
}

.checkbox-label:hover {
  background: #e8e8ed;
  border-color: rgba(0,0,0,0.1);
  color: #1d1d1f;
}

.checkbox-label:has(input:checked) {
  background: #1d1d1f;
  border-color: #1d1d1f;
  color: #ffffff;
  font-weight: 500;
}

.checkbox-label input {
  accent-color: #87CEEB;
  width: 14px;
  height: 14px;
}

/* 排序选择器 */
.sort-select {
  padding: 10px 18px;
  background: #f5f5f7;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  font-size: 0.9rem;
  cursor: pointer;
  color: #1d1d1f;
  transition: all 0.3s;
}

.sort-select:hover {
  background: #e8e8ed;
  border-color: rgba(0,0,0,0.1);
}

.sort-select:focus {
  outline: none;
  border-color: #1d1d1f;
}

/* 重置按钮 */
.reset-btn {
  margin-left: auto;
  padding: 8px 16px;
  background: #f8fafc;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  color: #475569;
  transition: all 0.3s;
}

.reset-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}

/* 价格筛选区域布局 */
.price-filter-group {
  flex-wrap: wrap;
  gap: 12px;
}

/* 价格输入框容器 */
.price-inputs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.price-input {
  width: 60px;
  padding: 6px 8px;
  border: 1px solid rgba(135, 206, 235, 0.4);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  text-align: center;
  color: #475569;
  transition: all 0.2s;
  -moz-appearance: textfield;
}

.price-input::-webkit-outer-spin-button,
.price-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.price-input:focus {
  outline: none;
  border-color: #1d1d1f;
  background: #ffffff;
}

.price-input::placeholder {
  color: #94a3b8;
  font-size: 0.8rem;
}

.price-dash {
  color: #64748b;
  font-size: 0.9rem;
}

.price-unit {
  color: #64748b;
  font-size: 0.85rem;
  margin-left: 4px;
}

/* 确定筛选按钮 */
.apply-filter-btn {
  margin-left: 8px;
  padding: 6px 14px;
  background: #1d1d1f;
  border: none;
  border-radius: 10px;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.apply-filter-btn:hover {
  background: #333;
}

/* 食堂筛选下拉框 */
.canteen-select {
  padding: 8px 16px;
  background: #f5f5f7;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  font-size: 0.85rem;
  cursor: pointer;
  color: #1d1d1f;
  transition: all 0.3s;
  min-width: 100px;
}

.canteen-select:hover {
  background: #e8e8ed;
  border-color: rgba(0,0,0,0.1);
}

.canteen-select:focus {
  outline: none;
  border-color: #1d1d1f;
}

.price-text {
  font-size: 0.85rem;
  color: #64748b;
  min-width: 90px;
  text-align: center;
}

/* ===== 结果信息 ===== */
.results-info {
  text-align: center;
  padding: 12px;
  color: #64748b;
  font-size: 0.9rem;
}

.results-info strong {
  color: #1d1d1f;
}

/* ===== 主内容区 ===== */
.main-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 120px;
}

/* ===== 评价卡片 ===== */
.reviews-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-card, .post-card, .comment-item {
  background: #ffffff !important;
  border: 1.5px solid #d2d2d7 !important;
  border-radius: 12px !important;
  padding: 16px 20px !important;
  margin-bottom: 14px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease, border-color 0.2s ease !important;
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: 1fr auto;
}

.review-card:hover {
  border-color: #86868b !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06) !important;
  background: #ffffff !important;
}

.review-card.card-good {
  border-left: 3px solid #1d1d1f;
}

.review-card.card-bad {
  border-left: 3px solid #86868b;
}

.card-right {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  padding-left: 20px;
  min-width: 100px;
}

.card-left {
  grid-column: 1;
  grid-row: 1;
}

.card-footer {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* 价格标签 */
.card-price {
  background: #f5f5f7;
  color: #1d1d1f;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid rgba(0,0,0,0.04);
}

/* 星级评分 */
.card-rating {
  display: flex;
  align-items: center;
  gap: 2px;
}

.star {
  font-size: 1.1rem;
  color: #d2d2d7;                 /* 淡灰轮廓，确保在白底上可见 */
  -webkit-text-stroke: 0.5px #c8c8cd; /* 字体图标描边，增强可见度 */
  transition: all 0.2s;
}

.star.filled {
  color: #1d1d1f;                 /* 填充状态使用深墨灰，杜绝彩色 */
}

.star.top-star {
  color: #1d1d1f;                 /* 满分星星同样为深墨灰 */
  font-weight: 700;
}

/* 评分标签 */
.rating-label {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
}

.rating-label.label-top {
  background: #1d1d1f;
  color: #ffffff;
}

.rating-label.label-good {
  background: #f5f5f7;
  color: #1d1d1f;
}

.rating-label.label-bad {
  background: #f5f5f7;
  color: #86868b;
}

/* 卡片左侧信息 */
.card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.canteen-tag {
  background: #1d1d1f;
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
}

.stall-name {
  color: #86868b;
  font-size: 0.9rem;
}

.nickname {
  color: #86868b;
  font-size: 0.85rem;
}

.time {
  color: #aeaeb2;
  font-size: 0.8rem;
  margin-left: auto;
}

.post-title, .dish-name {
  font-size: 18px !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  color: #1d1d1f !important;
  margin-bottom: 4px !important;
}

.post-content, .review-content {
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: #334155 !important;
  font-weight: 400;
  margin-bottom: 12px !important;
}

/* 投票按钮 - 一人一票 */
.vote-buttons {
  display: flex;
  gap: 12px;
}

.vote-btn {
  border: 1px solid rgba(0,0,0,0.1);
  background: #ffffff;
  padding: 4px 12px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #86868b;
}

.vote-btn:hover {
  border-color: #1d1d1f;
  color: #1d1d1f;
}

.vote-btn.voted {
  transform: scale(1.02);
}

.vote-btn.recommend.voted {
  background: #f5f5f7;
  border-color: #1d1d1f;
  color: #1d1d1f;
}

.vote-btn.oppose.voted {
  background: #f5f5f7;
  border-color: #86868b;
  color: #86868b;
}

.vote-icon {
  font-size: 13px !important;
  color: inherit;                 /* 继承父元素颜色，实现统一黑白灰单色 */
}

/* 推荐/点踩组件尺寸微缩 */
.like-btn, .dislike-btn, .action-button-container {
  padding: 4px 12px !important;
  font-size: 12px !important;
  border-radius: 14px !important;
}

/* 微调图标尺寸 */
.like-btn i, .dislike-btn i {
  font-size: 13px !important;
}

.vote-count {
  font-weight: 600;
}

.vote-label {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* 删除按钮 */
.delete-btn {
  border: none;
  background: #fff0f0;
  color: #e74c3c;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.delete-btn:hover {
  background: #ffe0e0;
}

/* ===== 评分选择器 ===== */
.rating-selector {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rating-star {
  font-size: 2rem;
  cursor: pointer;
  color: #d2d2d7;                 /* 未选中淡灰，在白底上清晰可见 */
  -webkit-text-stroke: 0.5px #c8c8cd;
  transition: all 0.2s;
  user-select: none;
}

.rating-star:hover {
  transform: scale(1.2);
  color: #a8a8ad;
}

.rating-star.active {
  color: #1d1d1f;                 /* 选中态深墨灰 */
}

.rating-star.top.active {
  color: #1d1d1f;
  font-weight: 700;
}

.rating-hint {
  margin-left: 12px;
  color: #64748b;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ===== 分页 ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.page-btn {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-info {
  color: #666;
  font-size: 0.9rem;
}

/* ===== 加载和空状态 ===== */
.loading,
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.empty-state h3 {
  color: #1d1d1f;
  margin-bottom: 8px;
}

.empty-state p {
  color: #86868b;
}

.spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  border: 4px solid rgba(0,0,0,0.05);
  border-top: 4px solid #1d1d1f;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== 浮动按钮 ===== */
.fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: #1d1d1f;
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 99;
}

.fab:hover {
  background: #333;
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* 移除旧管理入口样式，使用新版 */

/* ===== 页脚 ===== */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 20px;
  border-top: 1px solid rgba(0,0,0,0.04);
  z-index: 97;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  position: relative;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-link {
  color: #555;
  font-size: 0.9rem;
  font-weight: 400;
  cursor: pointer;
  transition: color 0.2s;
  font-family: "楷体", "KaiTi", "STKaiti", serif;
  letter-spacing: 1px;
}

.footer-link:hover {
  color: #1d1d1f;
}

.footer-divider {
  color: #bbb;
  font-size: 0.85rem;
}

/* 小型管理入口 - 定位在左下角 */
.admin-entry-small {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  color: #bbb;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.admin-entry-small:hover {
  color: #1d1d1f;
  background: #f1f5f9;
}

/* 页脚底部提示信息 */
.footer-notice {
  text-align: center;
  font-size: 0.7rem;
  color: #bbb;
  padding-top: 6px;
  border-top: 1px solid rgba(0, 0, 0, 0.03);
  margin-top: 6px;
}

/* 关于弹窗 */
.about-modal {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 450px;
  max-height: 80vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

.about-modal.about-danshi {
  max-width: 500px;
}

.about-content {
  padding: 24px;
}

.about-section {
  margin-bottom: 20px;
}

.about-section:last-child {
  margin-bottom: 0;
}

.about-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 4px;
}

.about-school {
  color: #666;
  font-size: 0.95rem;
}

.about-section h4 {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 8px;
}

.about-email {
  color: #475569;
  font-size: 0.95rem;
  word-break: break-all;
}

.danshi-intro {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #555;
}

.danshi-intro p {
  text-indent: 2em;
}

/* ===== 模态框 ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(29, 29, 31, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: white;
  border-radius: 20px;
  border: none;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== 帖子详情弹窗 ===== */
.post-detail-modal .post-detail-body {
  padding: 20px 24px;
}

.post-detail-modal .detail-row {
  display: flex;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.post-detail-modal .detail-row:last-of-type {
  border-bottom: none;
}

.post-detail-modal .detail-label {
  color: #888;
  font-size: 0.85rem;
  width: 80px;
  flex-shrink: 0;
}

.post-detail-modal .detail-value {
  color: #1d1d1f;
  font-size: 0.95rem;
  flex: 1;
}

.post-detail-modal .detail-content-row {
  flex-direction: column;
  gap: 8px;
}

.post-detail-modal .detail-content {
  color: #1d1d1f;
  font-size: 0.95rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
}

.post-detail-modal .detail-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.post-detail-modal .detail-actions .table-edit-btn,
.post-detail-modal .detail-actions .table-delete-btn {
  flex: 1;
  padding: 8px 0;
  border-radius: 8px;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
}

/* ===== 板块标签 ===== */
.source-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 500;
}
.source-tag[title="校内食堂"],
.source-tag:-webkit-any(:not([title])) {
  background: #f8fafc;
  color: #475569;
}
.source-tag[title="食客楼"] {
  background: #f8fafc;
  color: #475569;
}

/* ===== 用户中心弹窗 ===== */
.user-profile .user-profile-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(40px) saturate(150%);
  border-radius: 24px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  animation: slideUp 0.3s ease;
  overflow: hidden;
}

.user-profile-header {
  background: #f8fafc;
  padding: 24px;
  text-align: center;
  position: relative;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.user-avatar {
  width: 72px;
  height: 72px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.user-profile-header h2 {
  color: #1d1d1f;
  font-size: 1.3rem;
  margin: 0;
  font-weight: 600;
}

.user-profile-header .close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid rgba(0,0,0,0.06);
}

.user-profile-header .close-btn:hover {
  background: rgba(0,0,0,0.06);
}

.user-profile-body {
  padding: 24px;
}

.profile-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}

.profile-item:last-child {
  border-bottom: none;
}

.profile-label {
  color: #64748b;
  font-size: 0.9rem;
}

.profile-value {
  color: #334155;
  font-weight: 500;
  font-size: 0.95rem;
}

.user-profile-footer {
  padding: 16px 24px 24px;
}

.logout-btn {
  width: 100%;
  padding: 14px;
  background: #fee2e2;
  color: #dc2626;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.logout-btn:hover {
  background: #fecaca;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.modal-header h2 {
  font-size: 1.25rem;
  color: #1d1d1f;
}

.close-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: #f5f5f5;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.close-btn:hover {
  background: #e0e0e0;
}

/* ===== 表单 ===== */
.review-form,
.admin-form {
  padding: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #555;
}

.form-group .required {
  color: #e74c3c;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1d1d1f;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.char-count {
  display: block;
  text-align: right;
  font-size: 0.8rem;
  color: #999;
  margin-top: 4px;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

.cancel-btn {
  padding: 12px 24px;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
}

.cancel-btn:hover {
  background: #e8e8e8;
}

.submit-btn {
  padding: 12px 24px;
  background: #1d1d1f;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.2s;
}

.submit-btn:hover:not(:disabled) {
  background: #333;
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-form input {
  padding: 14px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
}

.admin-form input:focus {
  outline: none;
  border-color: #1d1d1f;
}

.admin-modal {
  max-width: 480px;
}

.admin-dashboard {
  padding: 0;
}

.admin-tabs {
  display: flex;
  border-bottom: 2px solid #f1f5f9;
  margin-bottom: 20px;
}

.admin-tab {
  flex: 1;
  padding: 14px 20px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  color: #94a3b8;
  transition: all 0.2s;
  font-weight: 500;
}

.admin-tab:hover {
  color: #475569;
  background: #f8fafc;
}

.admin-tab.active {
  color: #1d1d1f;
  border-bottom-color: #1d1d1f;
  font-weight: 600;
  background: #f8fafc;
}

.admin-tab-content {
  padding: 20px;
}

.admin-tip {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.admin-logout-btn {
  width: 100%;
  padding: 12px;
  background: #f1f5f9;
  color: #64748b;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
}

.admin-logout-btn:hover {
  background: rgba(0,0,0,0.06);
}

/* 用户列表 */
.user-list {
  max-height: 300px;
  overflow-y: auto;
}

.user-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.user-item:last-child {
  border-bottom: none;
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-nickname {
  font-weight: 500;
  color: #334155;
}

.user-email {
  font-size: 0.85rem;
  color: #94a3b8;
}

.user-date {
  font-size: 0.8rem;
  color: #94a3b8;
}

.user-list-empty {
  text-align: center;
  padding: 40px 0;
  color: #94a3b8;
}

/* ===== 独立管理后台页面 ===== */
.admin-dashboard-page {
  min-height: 100vh;
  background: #f5f5f7;
  padding: 20px;
}

.admin-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #FFFFFF;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0,0,0,0.06);
}

.admin-dashboard-header h1 {
  margin: 0;
  font-size: 1.3rem;
  color: #1e293b;
  white-space: nowrap;
}

.admin-dashboard-header .admin-logout-btn {
  padding: 8px 16px;
  background: #f1f5f9;
  color: #64748b;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
  white-space: nowrap;
}

.admin-dashboard-header .admin-logout-btn:hover {
  background: rgba(0,0,0,0.06);
  color: #475569;
}

.admin-tab-panel {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0,0,0,0.06);
  min-height: 400px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
  padding: 12px 8px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}

.admin-table th {
  background: #f8fafc;
  font-weight: 600;
  color: #475569;
}

.admin-table td {
  color: #64748b;
}

.admin-table .hash-cell {
  font-family: monospace;
  font-size: 0.75rem;
  color: #94a3b8;
}

.table-edit-btn,
.table-delete-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  margin-right: 4px;
}

.table-edit-btn {
  background: #dbeafe;
  color: #2563eb;
}

.table-edit-btn:hover {
  background: #bfdbfe;
}

.table-delete-btn {
  background: #fee2e2;
  color: #dc2626;
}

.table-delete-btn:hover {
  background: #fecaca;
}

.admin-empty {
  text-align: center;
  padding: 60px 20px;
  color: #94a3b8;
}

/* ===== 管理后台编辑弹窗 ===== */
.edit-post-modal {
  width: 500px;
  max-width: 90vw;
}

.edit-post-modal .modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.edit-post-modal .form-group {
  text-align: left;
}

.edit-post-modal .form-group label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
}

.edit-post-modal .form-group input,
.edit-post-modal .form-group select,
.edit-post-modal .form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  color: #1d1d1f;
  background: #ffffff;
  transition: border-color 0.2s;
}

.edit-post-modal .form-group input:focus,
.edit-post-modal .form-group select:focus,
.edit-post-modal .form-group textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.edit-post-modal .form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.edit-post-modal .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.edit-post-modal .cancel-btn {
  padding: 10px 20px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  color: #64748b;
  font-size: 0.9rem;
  cursor: pointer;
}

.edit-post-modal .cancel-btn:hover {
  background: #f8fafc;
}

.edit-post-modal .submit-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.9rem;
  cursor: pointer;
}

.edit-post-modal .submit-btn:hover {
  background: #1d4ed8;
}

.edit-post-modal .submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .ml5 {
    margin-top: 1vh !important;
    margin-bottom: 40px !important;
  }

  .glass-card {
    padding: 0 12px !important;
    max-width: 100% !important;
    margin: 3vh auto 0 auto !important;
  }

  .auth-btn {
    min-width: 100px;
  }
  
  .splash-logo {
    font-size: 3rem;
    letter-spacing: 10px;
  }
  
  .splash-tagline {
    font-size: 0.95rem;
    letter-spacing: 2px;
  }
  
  .splash-nickname input {
    width: 260px;
    padding: 16px 24px;
  }
  
  .glass-btn {
    padding: 16px 40px;
    font-size: 1rem;
  }
  
  .bubble {
    padding: 10px 16px;
  }
  
  .bubble span {
    font-size: 0.75rem;
  }
  
  .bubble-1 { top: 8%; left: 5%; }
  .bubble-2 { top: 12%; right: 5%; }
  .bubble-3 { bottom: 25%; left: 3%; }
  .bubble-4 { bottom: 22%; right: 3%; }
  .bubble-5 { top: 70%; }
  
  .header {
    padding: 16px;
  }
  
  .logo {
    font-size: 2rem;
  }
  
  .user-badge {
    position: static;
    transform: none;
    margin-top: 10px;
    display: inline-flex;
  }
  
  .search-container {
    flex-direction: column;
  }
  
  .search-btn {
    width: 100%;
    justify-content: center;
  }
  
  .filter-section {
    margin: 12px 12px;
    padding: 12px;
  }
  
  .filter-group {
    width: 100%;
    flex-wrap: wrap;
  }
  
  .checkbox-label {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  
  .main-content {
    padding: 0 12px 120px;
  }
  
  .review-card {
    padding: 16px;
    grid-template-columns: 1fr;
  }
  
  .card-right {
    grid-column: 1;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding-left: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 8px;
  }
  
  .card-left {
    grid-row: 2;
  }
  
  .card-footer {
    grid-row: 3;
  }
  
  .fab {
    bottom: 80px;
    right: 20px;
    width: 54px;
    height: 54px;
  }

  .glass-fab {
    bottom: 150px;
    left: 20px;
    width: 54px;
    height: 54px;
  }
  
  .footer {
    bottom: 0;
  }
  
  .admin-link {
    bottom: 80px;
  }
  
  .time-notice .time-notice-content {
    padding: 30px 20px;
    margin: 20px;
  }
  
  .onboarding .onboarding-content {
    margin: 20px;
  }
  
  .modal-content {
    margin: 10px;
    max-height: calc(100vh - 20px);
  }
}

/* ===== 登录注册弹窗 ===== */
.splash-auth-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  margin-bottom: 24px;
}

.auth-btn {
  min-width: 120px;
  background: #ffffff;
  border: 2px solid #3a3a3a;
  color: #1d1d1f;
}

.auth-btn:hover {
  background: #f0f0f0;
  border-color: #1d1d1f;
}

.auth-btn.register-btn {
  background: #ffffff;
  border: 2px solid #3a3a3a;
  color: #1d1d1f;
}

.auth-btn.register-btn:hover {
  background: #f0f0f0;
  border-color: #1d1d1f;
  color: #1d1d1f;
}

.splash-anonymous-link {
  font-size: 0.85rem;
  color: #94a3b8;
  pointer-events: auto;
  position: relative;
  z-index: 100;
}

.splash-anonymous-link a {
  color: #475569;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.splash-anonymous-link a:hover {
  color: #1d1d1f;
}

/* 仅针对注册页面，解决移动端显示不全问题 */
.auth-page.page-view .auth-page-card {
    max-height: 85vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
}

/* ===== AI 助手入口按钮 - 已简化为纯白 ===== */
.glass-fab {
    position: fixed;
    bottom: 80px;
    left: 25px;
    width: 60px;
    height: 60px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: transform 0.2s ease;
}

.glass-fab i {
    font-size: 24px;
    color: #1d1d1f;
}

.glass-fab:active {
    transform: scale(0.92);
}

/* ===== AI 全屏对话覆盖层 - 已简化 ===== */
.glass-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    display: none;
    flex-direction: column;
}

.chat-header {
    padding: 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    background: #ffffff;
}

.chat-title {
    margin-left: 20px;
    font-weight: bold;
    font-size: 18px;
    color: #1e293b;
}

.messages-box {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.5;
}

.message.ai {
    background: #f8fafc;
    border: 1px solid rgba(0,0,0,0.06);
    align-self: flex-start;
    color: #334155;
}

.message.user {
    background: #1d1d1f;
    color: #ffffff;
    align-self: flex-end;
}

.chat-input-area {
    padding: 15px;
    display: flex;
    gap: 10px;
    background: #ffffff;
    border-top: 1px solid rgba(0,0,0,0.06);
}

#chat-input-field {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.06);
    background: #ffffff;
    outline: none;
}

#send-chat-btn {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    border: none;
    background: #1d1d1f;
    color: #ffffff;
    cursor: pointer;
}
