/* =========================================================
   绵阳师范学院美术系06级4班 · 20周年聚会 H5
   全局样式：复古怀旧 · 暖色调 · 移动端优先
   ========================================================= */

/* 默认配色「岁月清新」：面向 35 岁左右参会同学，跳出复古厚重的棕褐色调，
   改用清爽的薄荷青 + 珊瑚橙 + 靛紫，明快通透又不失活力，看起来更年轻。
   变量名保留旧命名（--c-brown / --c-gold 等）以兼容全站已有样式引用，
   实际含义已调整为：--c-brown-deep=标题主色，--c-brown=次强调色，
   --c-gold=主强调色（暖色点缀），--c-gold-light=浅色点缀底色。 */
:root,
html[data-theme="brown"] {
  --c-paper: #f4f9fb;
  --c-paper-deep: #e6f4f3;
  --c-brown-deep: #223a5e;
  --c-brown: #2dd4bf;
  --c-gold: #ff8a65;
  --c-gold-light: #ffe0d1;
  --c-text: #263142;
  --c-text-light: #8a97a8;
  --c-danger: #ef4444;
  --c-success: #12b76a;
  --c-white: #ffffff;
  --c-hero-1: #22c1c3;
  --c-hero-2: #6c63ff;
  --c-hero-3: #4b3f9e;
  --c-border: #dde5f0;
  --c-border-dash: #c7d3e8;
  --shadow-soft: 0 4px 16px rgba(34, 47, 74, 0.1);
  --radius: 16px;
  --nav-height: 62px;
  --app-width: 560px; /* 手机端页面在宽屏浏览器中的固定展示宽度 */
}

/* 墨绿青春（美术系黑板/画布绿） */
html[data-theme="green"] {
  --c-paper: #f1f4ea;
  --c-paper-deep: #e2ead2;
  --c-brown-deep: #2f4a34;
  --c-brown: #4c7a52;
  --c-gold: #8fae62;
  --c-gold-light: #c3d9a0;
  --c-text: #2c332a;
  --c-text-light: #7c8a76;
  --c-danger: #b8503a;
  --c-success: #3f7a4c;
  --c-white: #fbfdf6;
  --c-hero-1: #45623f;
  --c-hero-2: #2f4a34;
  --c-hero-3: #1f3324;
  --c-border: #d3e4c2;
  --c-border-dash: #b9d29c;
}

/* 藏青校园（校徽藏青 + 暖金） */
html[data-theme="navy"] {
  --c-paper: #eef1f6;
  --c-paper-deep: #dde3ee;
  --c-brown-deep: #1f3350;
  --c-brown: #35507a;
  --c-gold: #c9a35a;
  --c-gold-light: #e6cf9a;
  --c-text: #232a36;
  --c-text-light: #78859a;
  --c-danger: #c14f3f;
  --c-success: #3c7a5e;
  --c-white: #fbfcff;
  --c-hero-1: #33507a;
  --c-hero-2: #1f3350;
  --c-hero-3: #142138;
  --c-border: #ccdaf0;
  --c-border-dash: #aec3e8;
}

/* 胭脂怀旧（老照片胭脂红） */
html[data-theme="rouge"] {
  --c-paper: #f9ece7;
  --c-paper-deep: #f0dad2;
  --c-brown-deep: #7a2f2a;
  --c-brown: #a8483a;
  --c-gold: #d98a5e;
  --c-gold-light: #eab68f;
  --c-text: #3a2620;
  --c-text-light: #9a7a70;
  --c-danger: #a8271f;
  --c-success: #4c7a4f;
  --c-white: #fff8f4;
  --c-hero-1: #8a3a30;
  --c-hero-2: #7a2f2a;
  --c-hero-3: #501f1a;
  --c-border: #f2d2c4;
  --c-border-dash: #e9b8a2;
}

/* 灰蓝月光（胶片黑白 · 冷调） */
html[data-theme="moon"] {
  --c-paper: #eef0f2;
  --c-paper-deep: #dfe3e8;
  --c-brown-deep: #33424f;
  --c-brown: #52697a;
  --c-gold: #9ab0bd;
  --c-gold-light: #c3d3da;
  --c-text: #262e33;
  --c-text-light: #7c8a92;
  --c-danger: #b8503a;
  --c-success: #4c7a4f;
  --c-white: #f9fbfc;
  --c-hero-1: #445a68;
  --c-hero-2: #33424f;
  --c-hero-3: #212b33;
  --c-border: #cfdbe3;
  --c-border-dash: #b7c8d3;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }

/* 页面本质是手机端H5，在电脑等宽屏浏览器打开时，把整站限制在手机宽度内居中显示，
   避免顶部横幅铺满整个宽屏而中间卡片却居中，出现"错位"的观感。
   手机端屏幕本身小于此宽度，不受影响。
   注意：这里不能给 body 加 transform，否则会让 body 变成内部 position:fixed 元素
   （底部导航/提示条/弹窗）的定位基准，导致它们不再固定在"屏幕"底部，而是固定在
   "整页内容"的底部——页面一旦变长（如行程页很长），底部导航就会被顶到屏幕外，
   要滚动到页面最底部才能看到。所以固定元素改为各自用 max-width + 居中的方式
   限制在手机宽度内（见 .sfxy-nav 等），position: fixed 始终相对于真实视口。 */
html {
  min-height: 100%;
  background: var(--c-hero-3, #4b3f9e);
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--c-text);
  background-color: var(--c-paper);
  /* 清爽多彩光晕背景，替代原先偏暗沉的做旧纸纹，更贴合年轻化视觉 */
  background-image:
    radial-gradient(circle at 10% 6%, rgba(45, 212, 191, 0.16), transparent 42%),
    radial-gradient(circle at 90% 4%, rgba(255, 138, 101, 0.14), transparent 40%),
    radial-gradient(circle at 92% 94%, rgba(108, 99, 255, 0.12), transparent 45%),
    radial-gradient(circle at 6% 92%, rgba(34, 193, 195, 0.1), transparent 40%);
  min-height: 100vh;
  padding-bottom: calc(var(--nav-height) + 14px);
  -webkit-font-smoothing: antialiased;
  max-width: var(--app-width);
  margin: 0 auto;
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.25);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-thumb { background: rgba(34, 47, 74, 0.25); border-radius: 4px; }

/* ---------------- 顶部氛围横幅 ---------------- */
.sfxy-hero {
  position: relative;
  padding: 34px 20px 26px;
  background: linear-gradient(160deg, var(--c-hero-1) 0%, var(--c-hero-2) 55%, var(--c-hero-3) 100%);
  color: var(--c-white);
  overflow: hidden;
  text-align: center;
  transition: background 0.4s ease;
}
.sfxy-hero::before,
.sfxy-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; height: 10px;
  background-image: repeating-linear-gradient(90deg, rgba(0,0,0,0.55) 0 6px, transparent 6px 16px);
  opacity: 0.35;
}
.sfxy-hero::before { top: 0; }
.sfxy-hero::after { bottom: 0; }
.sfxy-hero-badge {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 3px;
  padding: 4px 14px;
  border: 1px solid rgba(255, 250, 240, 0.5);
  border-radius: 20px;
  color: var(--c-gold-light);
  margin-bottom: 12px;
}
.sfxy-hero h1 {
  font-family: "STKaiti", "KaiTi", "SimSun", serif;
  font-size: 24px;
  line-height: 1.5;
  margin: 0 0 8px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.25);
  letter-spacing: 1px;
}
.sfxy-hero p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 250, 240, 0.78);
  letter-spacing: 1px;
}
.sfxy-hero-deco {
  position: absolute;
  font-size: 46px;
  opacity: 0.12;
  pointer-events: none;
  user-select: none;
}
.sfxy-hero-deco.d1 { left: -10px; top: 30px; transform: rotate(-15deg); }
.sfxy-hero-deco.d2 { right: -6px; bottom: 22px; transform: rotate(12deg); }

.sfxy-theme-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 250, 240, 0.45);
  background: rgba(0, 0, 0, 0.15);
  color: var(--c-white);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}
.sfxy-theme-btn:active { transform: scale(0.92); }

.sfxy-user-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--c-brown-deep);
}
.sfxy-user-info { display: flex; align-items: center; gap: 8px; }
.sfxy-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--c-gold), var(--c-brown));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-family: "STKaiti", "KaiTi", serif;
  box-shadow: 0 2px 6px rgba(34, 47, 74, 0.2);
}
.sfxy-user-bar .hello { color: var(--c-text-light); }
.sfxy-user-bar .name { color: var(--c-brown-deep); font-weight: 700; }
.sfxy-admin-entry {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--c-brown);
  color: #fff;
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 12px;
  flex-shrink: 0;
}

/* ---------------- 配色选择面板 ---------------- */
.sfxy-theme-panel {
  background: var(--c-white);
  border-radius: 18px 18px 0 0;
  padding: 18px 18px 26px;
  width: 100%;
  max-width: 420px;
}
.sfxy-theme-panel .ttl {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-brown-deep);
  margin-bottom: 4px;
}
.sfxy-theme-panel .sub {
  font-size: 12px;
  color: var(--c-text-light);
  margin-bottom: 14px;
}
.sfxy-theme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.sfxy-theme-swatch {
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 10px 6px 8px;
  text-align: center;
  cursor: pointer;
  background: rgba(0,0,0,0.02);
}
.sfxy-theme-swatch.active { border-color: var(--c-gold); background: rgba(0,0,0,0.04); }
.sfxy-theme-swatch .dots {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin-bottom: 6px;
}
.sfxy-theme-swatch .dot { width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.sfxy-theme-swatch .lbl { font-size: 11px; color: var(--c-text); }
.sfxy-theme-swatch .check { font-size: 10px; color: var(--c-gold); margin-top: 2px; height: 12px; }

/* ---------------- 通用容器/卡片 ---------------- */
.sfxy-page { padding: 12px 14px 6px; max-width: var(--app-width); margin: 0 auto; }
.sfxy-section { display: none; animation: fadeIn 0.25s ease; }
.sfxy-section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: translateY(0);} }

.sfxy-card {
  background: var(--c-white);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(34, 47, 74, 0.08);
  position: relative;
}
.sfxy-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--c-brown-deep);
  margin-bottom: 12px;
}
.sfxy-card-title .icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--c-gold); }
.sfxy-card-title .sub { font-size: 12px; font-weight: 400; color: var(--c-text-light); margin-left: auto; }

.sfxy-empty {
  text-align: center;
  padding: 26px 10px;
  color: var(--c-text-light);
  font-size: 13px;
}

/* ---------------- 表单 ---------------- */
.sfxy-field { margin-bottom: 12px; }
.sfxy-field label { display: block; font-size: 13px; color: var(--c-text-light); margin-bottom: 6px; }
.sfxy-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  background: var(--c-white);
  font-size: 15px;
  color: var(--c-text);
  outline: none;
  transition: border-color 0.2s;
}
.sfxy-input:focus { border-color: var(--c-gold); }
.sfxy-textarea { min-height: 80px; resize: vertical; }

.sfxy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 22px;
  background: linear-gradient(135deg, var(--c-gold), var(--c-brown));
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 138, 101, 0.32);
  transition: transform 0.15s, opacity 0.15s;
}
.sfxy-btn:active { transform: scale(0.96); }
.sfxy-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.sfxy-btn.block { width: 100%; }
.sfxy-btn.ghost { background: none; color: var(--c-brown); box-shadow: none; border: 1px solid var(--c-border); }
.sfxy-btn.small { padding: 6px 14px; font-size: 12px; }
.sfxy-btn.danger { background: linear-gradient(135deg, #d17a5f, var(--c-danger)); }

/* ---------------- 报名名单 ---------------- */
.sfxy-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sfxy-tag {
  padding: 6px 14px;
  background: var(--c-paper-deep);
  border-radius: 18px;
  font-size: 13px;
  color: var(--c-brown-deep);
  border: 1px dashed var(--c-border-dash);
}
.sfxy-count { color: var(--c-gold); font-weight: 700; }

/* ---------------- 活动行程与费用 ---------------- */
.sfxy-sched-header {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 700; color: var(--c-brown-deep);
  margin: 2px 2px 14px;
}

/* 时间轴：左侧日期徽章串成一条竖线，右侧接卡片内容 */
.sfxy-sched-timeline { position: relative; }
.sfxy-tl-item { display: flex; gap: 12px; position: relative; padding-bottom: 18px; }
.sfxy-tl-item:last-child { padding-bottom: 0; }
.sfxy-tl-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 27px; top: 58px; bottom: -2px; width: 2px;
  background-image: repeating-linear-gradient(180deg, var(--c-gold) 0 4px, transparent 4px 8px);
}
.sfxy-tl-marker { flex-shrink: 0; width: 56px; position: relative; z-index: 1; }
.sfxy-tl-badge {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--c-hero-1), var(--c-hero-2));
  color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
}
.sfxy-tl-badge .d { font-size: 20px; font-weight: 800; font-family: "STKaiti", "KaiTi", serif; }
.sfxy-tl-badge .m { font-size: 10px; opacity: 0.88; margin-top: 1px; }
.sfxy-tl-badge.note { font-size: 22px; }
.sfxy-tl-card {
  flex: 1; min-width: 0;
  background: var(--c-white);
  border-radius: var(--radius);
  padding: 13px 15px 15px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(34, 47, 74, 0.08);
}
.sfxy-tl-card.note {
  background: linear-gradient(160deg, var(--c-gold-light), var(--c-paper-deep));
  border: 1px dashed var(--c-gold);
}
.sfxy-tl-headline { font-size: 12px; color: var(--c-text-light); margin-bottom: 3px; letter-spacing: 1px; }
.sfxy-day-title { font-size: 15.5px; font-weight: 700; line-height: 1.4; color: var(--c-brown-deep); margin-bottom: 8px; }

.sfxy-sched-line { font-size: 13.5px; color: var(--c-text); line-height: 1.7; margin-bottom: 7px; }
.sfxy-sched-line:last-child { margin-bottom: 0; }
.sfxy-sched-divider {
  display: flex; align-items: center; gap: 8px; margin: 10px 0 12px;
  color: var(--c-text-light); font-size: 11px; letter-spacing: 1px;
}
.sfxy-sched-divider::before, .sfxy-sched-divider::after {
  content: ""; flex: 1; height: 1px;
  background-image: repeating-linear-gradient(90deg, var(--c-border-dash) 0 4px, transparent 4px 8px);
}
.sfxy-sched-total {
  margin-top: 10px; padding: 9px 12px;
  background: var(--c-paper-deep);
  border-left: 3px solid var(--c-gold);
  border-radius: 8px;
  font-weight: 700; color: var(--c-brown-deep); font-size: 14px;
}

.sfxy-tl-card.note .sfxy-sched-line { color: var(--c-brown-deep); }
.sfxy-tl-card.note .sfxy-sched-total { background: rgba(255, 255, 255, 0.55); }

/* ---------------- 财务模块 ---------------- */
.sfxy-finance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.sfxy-finance-item { text-align: center; background: var(--c-paper-deep); border-radius: 12px; padding: 12px 6px; }
.sfxy-finance-item .num { font-size: 17px; font-weight: 700; color: var(--c-brown-deep); }
.sfxy-finance-item .label { font-size: 11px; color: var(--c-text-light); margin-top: 4px; }
.sfxy-finance-item.balance .num { color: var(--c-success); }
.sfxy-bill-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px dashed var(--c-border-dash); font-size: 13px;
}
.sfxy-bill-row:last-child { border-bottom: none; }
.sfxy-bill-row .cat { color: var(--c-text-light); }
.sfxy-bill-row .amt { font-weight: 700; color: var(--c-danger); }

/* ---------------- 照片墙 ---------------- */
.sfxy-photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sfxy-photo-item {
  position: relative; background: #fff; padding: 4px; border-radius: 6px;
  box-shadow: 0 3px 8px rgba(34,47,74,0.16); aspect-ratio: 1/1; overflow: hidden;
}
.sfxy-photo-item:nth-child(3n+1) { transform: rotate(-2deg); }
.sfxy-photo-item:nth-child(3n+2) { transform: rotate(1.5deg); }
.sfxy-photo-item:nth-child(3n) { transform: rotate(-1deg); }
.sfxy-photo-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
.sfxy-photo-item .who {
  position: absolute; bottom: 4px; left: 0; right: 0; text-align: center;
  font-size: 10px; color: var(--c-text-light); font-family: "STKaiti", serif;
  text-shadow: 0 1px 2px rgba(255,255,255,0.9);
}
.sfxy-upload-box {
  border: 2px dashed var(--c-border-dash); border-radius: 12px; text-align: center; padding: 22px 10px;
  color: var(--c-text-light); font-size: 13px; margin-bottom: 14px; position: relative; cursor: pointer;
  background: rgba(255,255,255,0.5);
}
.sfxy-upload-box input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.sfxy-upload-box .plus { font-size: 26px; color: var(--c-gold); display: block; margin-bottom: 4px; }
.sfxy-photo-viewer {
  position: fixed; inset: 0; background: rgba(16,18,26,0.96); z-index: 999;
  display: flex; flex-direction: column; touch-action: none; overflow: hidden;
  user-select: none; -webkit-user-select: none;
}
.sfxy-photo-viewer-stage {
  flex: 1; position: relative; width: 100%; min-height: 0;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  touch-action: none;
}
.sfxy-photo-viewer-stage img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; border-radius: 0; display: block;
  transform-origin: center center; will-change: transform;
  pointer-events: none; /* 手势统一由 stage 处理 */
}
.sfxy-photo-viewer .cap {
  flex-shrink: 0; color: #f0f0f2; padding: 10px 16px 18px; font-size: 13px;
  text-align: center; min-height: 44px;
}
.sfxy-photo-viewer .close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,0.35); color: #fff; font-size: 24px; line-height: 36px;
  text-align: center; cursor: pointer;
}
.sfxy-photo-viewer-idx {
  position: absolute; top: 18px; left: 0; right: 0; z-index: 2;
  text-align: center; color: rgba(255,255,255,0.85); font-size: 13px;
  pointer-events: none;
}
.sfxy-photo-viewer-hint {
  position: absolute; bottom: 56px; left: 0; right: 0; z-index: 2;
  text-align: center; color: rgba(255,255,255,0.45); font-size: 11px;
  pointer-events: none; transition: opacity 0.4s ease;
}

/* ---------------- 拼房住宿 ---------------- */
.sfxy-room-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.sfxy-room-card {
  position: relative;
  overflow: hidden;
  background: var(--c-white);
  border-radius: 18px;
  padding: 14px 13px 13px;
  border: 1px solid var(--c-border);
  box-shadow: 0 3px 12px rgba(34, 47, 74, 0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.sfxy-room-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--c-gold), var(--c-brown));
}
.sfxy-room-card:active { transform: scale(0.97); }
.sfxy-room-card.full { opacity: 0.85; }
.sfxy-room-card.full::before { background: linear-gradient(90deg, #d7dce6, #b7c0d1); }
.sfxy-room-card.mine {
  border-color: var(--c-gold);
  box-shadow: 0 0 0 3px var(--c-gold-light), 0 8px 18px rgba(34, 47, 74, 0.12);
}
.sfxy-room-mine-tag {
  position: absolute; top: 11px; right: -30px; width: 106px;
  text-align: center; transform: rotate(40deg);
  font-size: 10px; font-weight: 700; letter-spacing: 1px; color: #fff;
  padding: 3px 0; z-index: 1;
  background: linear-gradient(135deg, var(--c-gold), var(--c-brown));
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
.sfxy-room-head { display: flex; justify-content: space-between; align-items: center; margin: 3px 0 10px; }
.sfxy-room-no { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; color: var(--c-brown-deep); }
.sfxy-room-no .badge {
  width: 28px; height: 28px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--c-gold), var(--c-brown));
  box-shadow: 0 3px 8px rgba(34, 47, 74, 0.15);
}
.sfxy-room-card.full .sfxy-room-no .badge { background: linear-gradient(135deg, #d7dce6, #aeb7c8); box-shadow: none; }
.sfxy-room-status {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; padding: 4px 10px 4px 8px; border-radius: 12px;
}
.sfxy-room-status .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.sfxy-room-status.open { background: #e2f8ee; color: #12b76a; }
.sfxy-room-status.open .dot { animation: sfxyDotPulse 1.6s ease-in-out infinite; }
.sfxy-room-status.full { background: #fdeceb; color: #f04438; }
@keyframes sfxyDotPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(1.4); } }
.sfxy-room-members { min-height: 8px; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.sfxy-room-members-empty { min-height: 0; margin-bottom: 6px; }
.sfxy-room-member {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; background: var(--c-paper-deep);
  padding: 3px 10px 3px 3px; border-radius: 14px; color: var(--c-brown-deep);
  border: 1px solid transparent;
}
.sfxy-room-member .av {
  width: 17px; height: 17px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 9.5px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--c-gold), var(--c-brown));
}
.sfxy-room-member.me { background: var(--c-gold-light); border-color: var(--c-gold); color: var(--c-brown-deep); }
.sfxy-room-member.me .av { background: linear-gradient(135deg, var(--c-brown), var(--c-brown-deep)); }
.sfxy-room-member.empty {
  background: transparent; border: 1px dashed var(--c-border-dash); color: var(--c-text-light); font-weight: 400;
  padding: 3px 10px;
}
.sfxy-room-progress { height: 5px; border-radius: 3px; background: var(--c-paper-deep); overflow: hidden; margin-bottom: 11px; }
.sfxy-room-progress span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--c-gold), var(--c-brown)); transition: width 0.3s ease; }
.sfxy-room-card.full .sfxy-room-progress span { background: linear-gradient(90deg, #f0a998, var(--c-danger)); }

/* ---------------- 底部导航 ---------------- */
.sfxy-nav {
  /* 始终固定在“屏幕”底部（相对真实视口），而不是页面内容底部；
     宽屏下用 left:50%+translateX 把宽度限制在手机宽度内并居中，与上方内容对齐 */
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: var(--app-width); height: var(--nav-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--c-border);
  display: flex;
  z-index: 500;
  box-shadow: 0 -4px 14px rgba(34, 47, 74, 0.08);
}
.sfxy-nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: var(--c-text-light); font-size: 11px; border: none; background: none; cursor: pointer;
}
.sfxy-nav-item svg { width: 22px; height: 22px; }
.sfxy-nav-item.active { color: var(--c-brown-deep); }
.sfxy-nav-item.active svg { color: var(--c-gold); }

/* ---------------- Toast ---------------- */
.sfxy-toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-height) + 20px); transform: translateX(-50%) translateY(10px);
  background: rgba(30, 34, 48, 0.92); color: #fff; padding: 10px 18px; border-radius: 20px;
  font-size: 13px; z-index: 1200; opacity: 0; pointer-events: none; transition: all 0.25s; max-width: 80vw; text-align: center;
}
.sfxy-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------- Modal ---------------- */
.sfxy-modal-mask {
  position: fixed; inset: 0; background: rgba(18,20,30,0.5); z-index: 1300;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.sfxy-modal-mask.sheet { align-items: flex-end; justify-content: center; padding: 0; }
.sfxy-modal {
  background: var(--c-white); border-radius: 14px; padding: 20px; width: 100%; max-width: 320px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.sfxy-modal-title { font-size: 16px; font-weight: 700; color: var(--c-brown-deep); margin-bottom: 10px; }
.sfxy-modal-body { font-size: 14px; color: var(--c-text); line-height: 1.6; margin-bottom: 18px; }
.sfxy-modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ---------------- 加载中 ---------------- */
.sfxy-loading { text-align: center; padding: 30px; color: var(--c-text-light); font-size: 13px; }
.sfxy-spinner {
  width: 26px; height: 26px; border: 3px solid var(--c-border); border-top-color: var(--c-gold);
  border-radius: 50%; margin: 0 auto 10px; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- 小工具类 ---------------- */
.sfxy-flex-between { display: flex; align-items: center; justify-content: space-between; }
.sfxy-mt10 { margin-top: 10px; }
.sfxy-hint { font-size: 12px; color: var(--c-text-light); line-height: 1.6; }
