/* ========== 公司文化活动系统 - 红色主题 + 响应式 ========== */
:root {
  --primary: #c41e3a;
  --primary-dark: #9e1630;
  --primary-light: #e83e5f;
  --orange: #ff6b35;
  --orange-dark: #e85a2b;
  --gold: #ffd700;
  --bg: #faf7f5;
  --card: #ffffff;
  --text: #1a1a1a;
  --text-secondary: #6b7280;
  --border: #e5e7eb;
  --radius: 16px;
  --shadow: 0 4px 16px rgba(196, 30, 58, 0.08);
  --shadow-lg: 0 8px 32px rgba(196, 30, 58, 0.15);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.app-root {
  max-width: 720px; margin: 0 auto; min-height: 100vh;
  background: var(--bg); padding-bottom: 70px;
}
@media (min-width: 721px) {
  .app-root { max-width: 1000px; padding: 20px; padding-bottom: 20px; }
}

/* ========== Banner ========== */
.banner-wrap { position: relative; width: 100%; height: 320px; overflow: hidden; border-radius: var(--radius); margin-bottom: 12px; }
@media (min-width: 721px) { .banner-wrap { height: 440px; box-shadow: var(--shadow-lg); margin-bottom: 16px; } }
.banner-img { width: 100%; height: 100%; object-fit: fill; display: block; }
.banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 30%, rgba(0,0,0,0.6) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px 20px; color: #fff;
}
.banner-title { font-size: 24px; font-weight: 700; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
@media (min-width: 721px) { .banner-title { font-size: 32px; } }
.banner-sub { font-size: 14px; opacity: 0.9; margin-top: 4px; }

/* ========== 卡片网格（统一 Grid，移动端 PC 端同一套） ========== */
.card-grid { padding: 16px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 12px; }
@media (min-width: 721px) { .card-grid { padding: 0; gap: 16px; margin-top: 16px; } }

/* 云端祝福：左列竖长大卡片 */
.card-big {
  grid-column: span 1; grid-row: span 2;
  border-radius: var(--radius); cursor: pointer; box-shadow: var(--shadow);
  min-height: 240px;
  background-size: cover;
  background-repeat: no-repeat;
}
@media (min-width: 721px) { .card-big { min-height: 320px; } }

/* 在线答题 + 健步走：右侧两个小卡片 */
.card-small {
  border-radius: var(--radius); cursor: pointer; box-shadow: var(--shadow);
  min-height: 110px;
  background-size: cover;
  background-repeat: no-repeat;
}
@media (min-width: 721px) { .card-small { min-height: 150px; } }

.card-photo { border-radius: var(--radius); overflow: hidden; cursor: pointer; box-shadow: var(--shadow); position: relative; background: #1a1a1a; min-height: 90px; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 90px; }
.card-photo-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); color: #fff; padding: 12px; font-size: 12px; text-align: right; }
.card-big:hover, .card-small:hover, .card-photo:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); transition: all 0.2s ease; }

/* 轮播指示器 */
.banner-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 5; }
.banner-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.3s; }
.banner-dots span.active { background: #fff; width: 20px; border-radius: 4px; }

/* ========== 活动列表 ========== */
.activity-list { padding: 0 16px 16px; }
@media (min-width: 721px) { .activity-list { padding: 20px 0 0; } }
.activity-item { display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow); cursor: pointer; transition: all 0.2s; }
@media (min-width: 721px) { .activity-item { gap: 20px; padding: 16px 20px; } }
.activity-item:hover { transform: translateX(4px); box-shadow: var(--shadow-lg); }
.activity-icon-wrap { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: linear-gradient(135deg, #c41e3a, #ff6b35); box-shadow: 0 2px 8px rgba(196,30,58,0.25); }
@media (min-width: 721px) { .activity-icon-wrap { width: 52px; height: 52px; border-radius: 14px; } .activity-icon-wrap .activity-icon { font-size: 26px; } }
.activity-icon-wrap .activity-icon { font-size: 22px; filter: brightness(0) invert(1); line-height: 1; }
.icon-collect { background: linear-gradient(135deg, #c41e3a, #e63950); }
.icon-photos  { background: linear-gradient(135deg, #e63950, #ff6b35); }
.icon-ideas   { background: linear-gradient(135deg, #ff6b35, #ff8f5e); }
.icon-suggest { background: linear-gradient(135deg, #c41e3a, #ff6b35); }
.activity-info { flex: 1; min-width: 0; }
.activity-title { font-size: 15px; font-weight: 600; color: var(--text); }
.activity-sub { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.activity-btn { background: linear-gradient(135deg, #c41e3a, #ff6b35) !important; border: none !important; color: #fff !important; padding: 6px 16px !important; border-radius: 20px !important; font-size: 12px !important; font-weight: 600 !important; box-shadow: 0 2px 6px rgba(196,30,58,0.2); cursor: pointer; flex-shrink: 0; transition: transform 0.2s; }
.activity-btn:hover { transform: scale(1.05); }
.activity-btn:active { transform: scale(0.98); }

/* ========== 底部导航 ========== */
.bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 720px; background: #fff; border-top: 1px solid var(--border); display: flex; z-index: 100; box-shadow: 0 -4px 20px rgba(0,0,0,0.06); }
@media (min-width: 721px) { .bottom-nav { position: static; transform: none; border-radius: var(--radius); margin-top: 16px; max-width: 1000px; box-shadow: var(--shadow); } }
.nav-item { flex: 1; text-align: center; padding: 10px 0; cursor: pointer; color: var(--text-secondary); font-size: 12px; transition: color 0.2s; }
.nav-item.active { color: var(--primary); }
.nav-icon { font-size: 22px; display: block; margin-bottom: 2px; }

/* ========== 子页面通用 ========== */
.module-banner { position: relative; width: 100%; height: 220px; overflow: hidden; border-radius: 0; background: linear-gradient(135deg, #c41e3a, #ff6b35); }
@media (min-width: 721px) { .module-banner { aspect-ratio: 2048 / 1152; height: auto; border-radius: 12px; margin: 0 0 16px; box-shadow: 0 4px 16px rgba(0,0,0,0.1); } }
.module-banner-item { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; animation: bannerFade 0.6s ease-out; }
@keyframes bannerFade { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: scale(1); } }
.module-banner-title { position: absolute; bottom: 0; left: 0; right: 0; padding: 30px 20px 16px; font-size: 18px; font-weight: 700; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.5); background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 60%, transparent 100%); }
@media (min-width: 721px) { .module-banner-title { font-size: 22px; padding: 40px 28px 20px; } }

.page-header { display: flex; align-items: center; padding: 16px 20px; background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
@media (min-width: 721px) { .page-header { border-radius: var(--radius); margin-bottom: 16px; border: none; box-shadow: var(--shadow); } }
.page-back { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; font-size: 22px; font-weight: 700; cursor: pointer; color: var(--primary); background: rgba(196, 30, 58, 0.08); border-radius: 50%; margin-right: 12px; transition: background 0.15s ease, transform 0.15s ease; -webkit-tap-highlight-color: transparent; user-select: none; line-height: 1; }
.page-back:hover { background: rgba(196, 30, 58, 0.15); color: var(--primary-dark); }
.page-back:active { background: rgba(196, 30, 58, 0.25); transform: scale(0.92); }
.page-title { font-size: 17px; font-weight: 600; flex: 1; }
.page-content { padding: 16px; }
@media (min-width: 721px) { .page-content { padding: 0; } }

/* ========== 云端祝福墙 ========== */
.wish-form-bar { margin: 12px 16px; background: #fff; border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); border-top: 3px solid var(--primary); }
.wish-form-input { width: 100%; border: none; resize: none; font-size: 14px; line-height: 1.6; min-height: 60px; font-family: inherit; color: var(--text); background: transparent; outline: none; }
.wish-form-input::placeholder { color: #c0c0c0; }
.wish-form-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid #f3f4f6; }
.wish-form-img-btn { font-size: 18px; cursor: pointer; padding: 4px 10px; border-radius: 8px; transition: background 0.15s; }
.wish-form-img-btn:hover { background: #fff5f7; }
.wish-form-submit { background: linear-gradient(135deg, var(--primary), var(--orange)); color: #fff; border: none; padding: 8px 22px; border-radius: 20px; font-size: 14px; font-weight: 600; cursor: pointer; transition: transform 0.15s; }
.wish-form-submit:hover { transform: scale(1.05); }
.wish-form-submit:active { transform: scale(0.97); }

.wish-wall-area { position: relative; margin: 0 16px 16px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; height: 480px; }
@media (min-width: 721px) { .wish-wall-area { height: 560px; margin: 0 20px 20px; } }
.wish-wall-mask { position: absolute; left: 0; right: 0; height: 40px; z-index: 5; pointer-events: none; }
.wish-wall-mask.top { top: 0; background: linear-gradient(to bottom, #fff, transparent); }
.wish-wall-mask.bottom { bottom: 0; background: linear-gradient(to top, #fff, transparent); }
.wish-wall-scroll { height: 100%; overflow-y: auto; padding: 16px; scroll-snap-type: y mandatory; animation: wish-scroll-up 60s linear infinite; animation-play-state: running; }
.wish-wall-scroll.paused, .wish-wall-scroll:hover { animation-play-state: paused; }
.wish-wall-scroll::-webkit-scrollbar { width: 6px; }
.wish-wall-scroll::-webkit-scrollbar-track { background: transparent; }
.wish-wall-scroll::-webkit-scrollbar-thumb { background: rgba(196, 30, 58, 0.25); border-radius: 3px; }
.wish-wall-scroll::-webkit-scrollbar-thumb:hover { background: rgba(196, 30, 58, 0.4); }
@keyframes wish-scroll-up { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }
.wish-wall-scroll .wish-card { background: linear-gradient(135deg, #fff 0%, #fff9f9 100%); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; border: 1px solid #fce4e7; scroll-snap-align: start; transition: transform 0.2s, box-shadow 0.2s; }
.wish-wall-scroll .wish-card:hover { transform: translateX(4px); box-shadow: 0 4px 16px rgba(196, 30, 58, 0.12); }
.wish-card-img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; margin-bottom: 0px; border: 1px solid #f3f4f6; cursor: zoom-in; }
.wish-content { font-size: 14px; line-height: 1.7; color: var(--text); word-break: break-word; }
.wish-meta { display: flex; align-items: center; margin-top: 10px; gap: 8px; }
.wish-meta-left { font-size: 12px; color: var(--primary); font-weight: 500; }
.wish-meta-time { font-size: 11px; color: var(--text-secondary); margin-left: auto; }

.wish-like-btn { display: inline-flex; align-items: center; gap: 2px; background: rgba(196, 30, 58, 0.08); border: none; border-radius: 16px; padding: 3px 10px; font-size: 12px; color: var(--text-secondary); cursor: pointer; transition: all 0.2s; font-family: inherit; }
.wish-like-btn:hover { background: rgba(196, 30, 58, 0.15); color: var(--primary); transform: scale(1.05); }
.wish-like-btn.liked { background: linear-gradient(135deg, #ff6b8a, #c41e3a); color: #fff; animation: wish-like-pop 0.4s ease; }
@keyframes wish-like-pop { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 70% { transform: scale(0.95); } 100% { transform: scale(1); } }

.wish-wall-controls { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-top: 1px solid #f3f4f6; background: #fff; }
.wish-count { font-size: 12px; color: var(--text-secondary); }
.wish-pause-btn { font-size: 12px; color: var(--primary); cursor: pointer; padding: 4px 10px; border-radius: 12px; transition: background 0.15s; }
.wish-pause-btn:hover { background: rgba(196, 30, 58, 0.08); }
.wish-comment-btn { display: inline-flex; align-items: center; gap: 2px; background: rgba(59, 130, 246, 0.08); border: none; border-radius: 16px; padding: 3px 10px; font-size: 12px; color: #6b7280; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.wish-comment-btn:hover { background: rgba(59, 130, 246, 0.15); color: #3b82f6; transform: scale(1.05); }

/* 评论弹窗 */
.comment-wish-ref { background: linear-gradient(135deg, #fff5f7, #fff); border-radius: 12px; padding: 12px 14px; border-left: 3px solid var(--primary); }
.comment-wish-img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; margin-bottom: 4px; border: 1px solid #f3f4f6; cursor: zoom-in; }
.comment-wish-text { font-size: 14px; line-height: 1.6; color: var(--text); }
.comment-wish-meta { font-size: 11px; color: var(--text-secondary); margin-top: 6px; }
.comment-list { max-height: 320px; overflow-y: auto; padding-right: 4px; }
.comment-list::-webkit-scrollbar { width: 5px; }
.comment-list::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 3px; }
.comment-empty { text-align: center; color: var(--text-secondary); padding: 30px 0; font-size: 13px; }
.comment-item { padding: 10px 0; border-bottom: 1px solid #f3f4f6; }
.comment-item.reply { margin-left: 16px; padding: 10px; background: #fafafa; border-radius: 8px; border-bottom: none; margin-bottom: 4px; }
.comment-body { font-size: 13px; }
.comment-nick { font-weight: 600; color: var(--primary); margin-right: 6px; }
.comment-reply-to { color: #3b82f6; font-size: 12px; margin-right: 6px; }
.comment-time { color: #9ca3af; font-size: 11px; }
.comment-content { color: var(--text); margin-top: 4px; line-height: 1.6; word-break: break-word; }
.comment-reply-link { display: inline-block; margin-top: 4px; font-size: 11px; color: var(--text-secondary); cursor: pointer; padding: 2px 6px; border-radius: 8px; transition: all 0.15s; }
.comment-reply-link:hover { background: rgba(196, 30, 58, 0.08); color: var(--primary); }
.comment-submit { margin-top: 12px; padding-top: 10px; border-top: 1px solid #f3f4f6; }
.comment-submit.replying { border-top-color: #3b82f6; background: linear-gradient(135deg, rgba(59,130,246,0.06), transparent); border-radius: 10px; padding: 10px; }
.comment-replying-bar { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #3b82f6; margin-bottom: 8px; }
.comment-replying-bar strong { color: var(--primary); }
.comment-replying-cancel { cursor: pointer; padding: 2px 8px; border-radius: 10px; color: var(--text-secondary); transition: all 0.15s; }
.comment-replying-cancel:hover { background: rgba(0,0,0,0.05); color: var(--primary); }
.comment-submit-row { display: flex; gap: 8px; align-items: flex-end; }
.comment-top-textarea { flex: 1; border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.5; min-height: 44px; resize: none; font-family: inherit; outline: none; transition: border-color 0.2s; }
.comment-top-textarea:focus { border-color: var(--primary); }
.comment-top-send { background: linear-gradient(135deg, var(--primary), var(--orange)); color: #fff; border: none; padding: 10px 18px; border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer; flex-shrink: 0; }
.comment-top-send:hover { transform: scale(1.03); }

/* ========== 答题 ========== */
.quiz-card { background: #fff; border-radius: var(--radius); padding: 20px; margin-bottom: 14px; box-shadow: var(--shadow); }
.quiz-qnum { font-size: 12px; color: var(--primary); font-weight: 600; margin-bottom: 8px; }
.quiz-question { font-size: 16px; font-weight: 600; margin-bottom: 14px; line-height: 1.5; }
.quiz-option { display: flex; align-items: center; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; cursor: pointer; transition: all 0.2s; background: #fff; width: 100%; text-align: left; font-size: 14px; font-family: inherit; }
.quiz-option:hover { border-color: var(--primary); background: #fff5f7; }
.quiz-option.selected { border-color: var(--primary); background: #fff0f3; color: var(--primary); font-weight: 500; }
.quiz-result { background: linear-gradient(135deg, var(--primary), var(--orange)); border-radius: var(--radius); padding: 30px; text-align: center; color: #fff; box-shadow: var(--shadow-lg); }
.quiz-score { font-size: 48px; font-weight: 800; }
.quiz-badge { display: inline-block; background: var(--gold); color: var(--primary-dark); padding: 6px 20px; border-radius: 20px; font-weight: 700; margin-top: 12px; }

/* ========== 选卷卡片 ========== */
.paper-card { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 14px; padding: 16px 18px; margin-bottom: 12px; box-shadow: 0 2px 12px rgba(196, 30, 58, 0.06); border: 1px solid #fce4e7; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.paper-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(196, 30, 58, 0.15); border-color: #c41e3a; }
.paper-card-btn { flex-shrink: 0; background: linear-gradient(135deg, #c41e3a, #ff6b35); color: #fff; padding: 10px 20px; border-radius: 22px; font-size: 13px; font-weight: 600; }
.history-item { display: flex; align-items: center; gap: 10px; background: #fff; padding: 10px 14px; border-radius: 10px; margin-bottom: 8px; border: 1px solid #f3f4f6; font-size: 13px; }

/* ========== 照片墙 ========== */
.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 16px; }
.photo-item { aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow); }
.photo-item .photo-img img { object-fit: cover; }
@media (min-width: 721px) { .photo-grid { grid-template-columns: repeat(3, 1fr); padding: 20px; gap: 14px; } .photo-item { aspect-ratio: 1/1; } }
.photo-item img, .photo-img, .photo-img img { width: 100%; height: 100%; object-fit: cover; }
.photo-img { display: block; cursor: zoom-in; }
.photo-item-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.75), transparent); color: #fff; padding: 10px; font-size: 12px; pointer-events: none; }

/* ========== 表单 ========== */
.form-card { background: #fff; border-radius: var(--radius); padding: 20px; margin: 16px; box-shadow: var(--shadow); }
@media (min-width: 721px) { .form-card { margin: 0 0 20px; } }
.form-label { font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-input { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; font-family: inherit; transition: border-color 0.2s; margin-bottom: 14px; }
.form-input:focus { outline: none; border-color: var(--primary); }
.form-textarea { min-height: 100px; resize: vertical; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; border: none; padding: 14px 28px; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; width: 100%; font-family: inherit; transition: transform 0.2s; }
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

/* ========== 集字活动 ========== */
.collect-board { display: flex; justify-content: center; gap: 10px; margin: 20px 0; flex-wrap: wrap; }
.collect-char { width: 54px; height: 54px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; background: #f3f4f6; color: #9ca3af; border: 2px dashed #d1d5db; }
.collect-char.got { background: linear-gradient(135deg, var(--primary), var(--orange)); color: #fff; border: none; box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3); }
.collect-draw-btn { display: block; margin: 20px auto; padding: 14px 48px; font-size: 16px; background: linear-gradient(135deg, var(--primary), var(--orange)); color: #fff; border: none; border-radius: 30px; font-weight: 700; cursor: pointer; box-shadow: var(--shadow-lg); }

/* ========== 排行榜 ========== */
.rank-item { display: flex; align-items: center; background: #fff; border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow); }
.rank-num { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; background: #f3f4f6; color: var(--text-secondary); margin-right: 14px; flex-shrink: 0; }
.rank-num.top1 { background: linear-gradient(135deg, #ffd700, #ffb700); color: #fff; }
.rank-num.top2 { background: linear-gradient(135deg, #c0c0c0, #a8a8a8); color: #fff; }
.rank-num.top3 { background: linear-gradient(135deg, #cd7f32, #a0522d); color: #fff; }
.rank-name { flex: 1; font-weight: 600; }
.rank-score { color: var(--primary); font-weight: 700; font-size: 15px; }
.rank-detail { font-size: 11px; color: var(--text-secondary); }

/* ========== 空状态 ========== */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-secondary); }
.empty-state .emoji { font-size: 48px; margin-bottom: 12px; }

/* ========== Element Plus 覆盖 ========== */
.el-button--primary { --el-button-bg-color: var(--primary); --el-button-border-color: var(--primary); }
.toast-success { background: linear-gradient(135deg, #10b981, #059669) !important; }

/* ========== 右上角登录/用户栏 ========== */
.top-userbar { position: fixed; top: 10px; right: 10px; z-index: 60; display: flex; align-items: center; gap: 8px; padding: 0; font-size: 13px; background: transparent; border-radius: 0; box-shadow: none; }
@media (min-width: 721px) { .top-userbar { top: 18px; right: 28px; } }
.top-userbar-welcome { color: #4b5563; }
.top-userbar-login { color: #c41e3a; cursor: pointer; font-weight: 600; }
.top-userbar-login:hover { text-decoration: underline; }
.top-userbar-bell { position: relative; cursor: pointer; font-size: 16px; padding: 0 2px; line-height: 1; }
.top-userbar-bell:hover { transform: scale(1.15); }
.top-userbar-badge { position: absolute; top: -6px; right: -10px; background: #c41e3a; color: #fff; font-size: 10px; min-width: 16px; height: 16px; line-height: 16px; padding: 0 4px; border-radius: 8px; text-align: center; font-weight: 600; box-shadow: 0 0 0 2px #fff; }
.top-userbar-logout { color: #9ca3af; cursor: pointer; font-size: 12px; }
.top-userbar-logout:hover { color: #c41e3a; }
.top-userbar-admin { color: #fff; background: linear-gradient(135deg, #ff6b35, #c41e3a); padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; cursor: pointer; }
.top-userbar-admin:hover { transform: scale(1.05); }

/* ========== 通知面板 ========== */
.notif-panel { max-height: 480px; display: flex; flex-direction: column; }
.notif-panel-header { display: flex; justify-content: space-between; align-items: center; padding: 4px 4px 10px; border-bottom: 1px solid #f3f4f6; margin-bottom: 4px; }
.notif-panel-header strong { font-size: 14px; color: #1f2937; }
.notif-readall { font-size: 12px; color: #c41e3a; cursor: pointer; padding: 2px 8px; border-radius: 10px; transition: background 0.15s; }
.notif-readall:hover { background: rgba(196,30,58,0.08); }
.notif-list { overflow-y: auto; flex: 1; margin: 0 -8px; padding: 0 8px; }
.notif-empty { padding: 30px 10px; text-align: center; color: #9ca3af; font-size: 13px; }
.notif-item { display: flex; gap: 10px; padding: 10px 8px; border-radius: 8px; cursor: pointer; transition: background 0.15s; position: relative; }
.notif-item:hover { background: #f9fafb; }
.notif-item.unread { background: rgba(196,30,58,0.03); }
.notif-item.unread:hover { background: rgba(196,30,58,0.08); }
.notif-item-icon { width: 32px; height: 32px; border-radius: 50%; background: #f3f4f6; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.notif-item.unread .notif-item-icon { background: linear-gradient(135deg, #fef3f3, #fee2e2); }
.notif-item-body { flex: 1; min-width: 0; }
.notif-item-title { font-size: 13px; font-weight: 500; color: #1f2937; line-height: 1.4; }
.notif-item.unread .notif-item-title { color: #c41e3a; font-weight: 600; }
.notif-item-body-text { font-size: 12px; color: #6b7280; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-item-time { font-size: 11px; color: #9ca3af; margin-top: 4px; }
.notif-dot { position: absolute; top: 14px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: #c41e3a; }
.notif-tabs { display: flex; border-bottom: 1px solid #f0f0f0; padding: 0 4px; }
.notif-tab { flex: 1; text-align: center; padding: 10px 0; font-size: 13px; color: #9ca3af; cursor: pointer; position: relative; font-weight: 500; transition: color .15s; }
.notif-tab:hover { color: #374151; }
.notif-tab.active { color: #c41e3a; }
.notif-tab.active::after { content: ''; position: absolute; bottom: -1px; left: 30%; right: 30%; height: 2px; background: #c41e3a; border-radius: 1px; }
.notif-tab-badge { display: inline-block; background: #c41e3a; color: #fff; font-size: 11px; font-weight: 600; padding: 0 6px; border-radius: 10px; margin-left: 4px; line-height: 16px; min-width: 16px; text-align: center; }
.notif-tab-badge.read { background: #d1d5db; }

/* 登录页 - 历史账号下拉 */
.login-phone-wrapper { position: relative; z-index: 10; }
.login-history-dropdown { position: absolute; top: 100%; left: 0; right: 0; margin-top: 4px; background: #fff; border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,0.15); max-height: 240px; overflow-y: auto; z-index: 100; border: 1px solid #f3f4f6; }
.login-history-item { padding: 10px 14px; border-bottom: 1px solid #f9fafb; cursor: pointer; display: flex; align-items: center; gap: 10px; transition: background .1s; }
.login-history-item:last-child { border-bottom: none; }
.login-history-item:hover { background: linear-gradient(135deg, rgba(196,30,58,0.04), rgba(255,107,53,0.04)); }
.login-history-phone { font-size: 14px; font-weight: 600; color: #1f2937; flex: 1; }
.login-history-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.login-history-nick { color: #6b7280; }
.login-history-tag { padding: 1px 6px; border-radius: 8px; font-size: 11px; font-weight: 500; }
.login-history-tag:first-of-type { background: rgba(16,185,129,0.1); color: #059669; }
.login-history-tag:not(:first-of-type) { background: rgba(156,163,175,0.15); color: #6b7280; }
.login-history-del { font-size: 12px; color: #d1d5db; padding: 2px 6px; border-radius: 4px; transition: all .15s; }
.login-history-del:hover { background: #fee2e2; color: #dc2626; }

.notif-sender { font-weight: 600; color: #c41e3a; margin-right: 4px; }
.notif-item-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.notif-module-tag { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: linear-gradient(135deg, rgba(196,30,58,0.1), rgba(255,107,53,0.1)); color: #c41e3a; font-weight: 500; }

/* 评论定位高亮 */
.comment-item.comment-highlight { animation: commentPulse 2s ease-out; outline: 2px solid #c41e3a; outline-offset: 2px; border-radius: 6px; }
@keyframes commentPulse { 0% { background: rgba(196,30,58,0.15); } 100% { background: transparent; } }

/* ========== 提案卡片 / 谏言卡片 ========== */
.idea-card { background: #fff; border: 1px solid #f3f4f6; border-left: 4px solid #c41e3a; border-radius: 10px; padding: 14px 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.idea-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 6px; }
.idea-actions { display: flex; gap: 6px; flex-shrink: 0; }
.idea-field { font-size: 13px; color: #4b5563; margin-bottom: 4px; line-height: 1.5; }

/* photo 卡片底部操作 */
.photo-item-actions { display: flex; gap: 6px; margin-top: 6px; pointer-events: auto; }
.photo-item-actions .wish-like-btn, .photo-item-actions .wish-comment-btn { font-size: 11px; padding: 2px 8px; background: rgba(255,255,255,0.9); backdrop-filter: blur(4px); }

/* 照片卡片：文字截断 + 昵称粗体 */
.photo-item-overlay > div:first-child { font-weight: 600; line-height: 1.3; }
.photo-item-overlay > div:not(.photo-item-actions) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; line-height: 1.3; max-height: 2.6em; }

@media (max-width: 500px) { .top-userbar { padding: 5px 10px; font-size: 12px; gap: 6px; } }
.mobile-only { display: none !important; }
@media (hover: none) and (pointer: coarse) { .mobile-only { display: inline-block !important; } }

.photo-pick-btn { display: inline-block; cursor: pointer; font-size: 13px; color: #c41e3a; padding: 6px 14px; border: 1px dashed #c41e3a; border-radius: 8px; transition: background 0.2s; user-select: none; }
.photo-pick-btn:active { background: rgba(196,30,58,0.08); }

/* 移动端弹窗适配 */
.el-dialog { max-width: 480px !important; margin: 10px auto !important; }
@media (max-width: 480px) {
  .el-dialog { width: 96% !important; margin: 8px auto !important; }
  .el-dialog__body { padding: 14px 12px; max-height: calc(100vh - 140px); overflow-y: auto; }
  .el-dialog__header { padding: 12px; }
  .el-dialog__footer { padding: 10px 12px; }
  .comment-list { max-height: 40vh; overflow-y: auto; }
}

/* Element Plus image viewer 手势增强 */
.el-image-viewer__wrapper { touch-action: none; }
.el-image-viewer__canvas img, .el-image-viewer__img { touch-action: pinch-zoom; user-select: none; -webkit-user-drag: none; }
@media (hover: none) and (pointer: coarse) { .el-image-viewer__canvas { overflow: hidden; } }
@media (max-width: 480px) {
  .el-image-viewer__actions { left: 50%; transform: translateX(-50%); bottom: 20px; }
  .el-image-viewer__actions__inner { display: flex; gap: 14px; padding: 8px 14px; }
}

/* 移动端照片全屏预览 overlay */
.photo-img-mobile { width: 100%; height: 100%; background-size: cover; background-position: center; cursor: zoom-in; }
.photo-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: #000; z-index: 9999; display: flex; align-items: center; justify-content: center; -webkit-overflow-scrolling: touch; overflow: auto; overscroll-behavior: contain; }
.photo-overlay-img { max-width: 100vw; max-height: 100vh; width: auto; height: auto; object-fit: contain; touch-action: pinch-zoom; -webkit-user-drag: none; user-select: none; }
.photo-overlay-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.2); color: #fff; border: none; font-size: 20px; cursor: pointer; z-index: 10001; backdrop-filter: blur(4px); }
.photo-overlay-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.2); color: #fff; border: none; font-size: 28px; line-height: 1; cursor: pointer; z-index: 10001; backdrop-filter: blur(4px); }
.photo-overlay-nav.prev { left: 14px; }
.photo-overlay-nav.next { right: 14px; }
.photo-overlay-counter { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 13px; background: rgba(0,0,0,0.5); padding: 6px 14px; border-radius: 14px; z-index: 10001; }
.photo-overlay.fade-enter-active, .photo-overlay.fade-leave-active { transition: opacity 0.2s; }
.photo-overlay.fade-enter-from, .photo-overlay.fade-leave-to { opacity: 0; }
@media (hover: hover) and (pointer: fine) { .photo-overlay-nav { display: none; } }

/* ========== 首页二维码卡片 ========== */
.home-qr-card { display: flex; flex-direction: column; align-items: center; justify-content: center; background: #fff; margin: 20px auto; padding: 24px 28px; border-radius: var(--radius); box-shadow: var(--shadow); max-width: 260px; text-align: center; }
.home-qr-img { margin-bottom: 10px; }
.home-qr-img img, .home-qr-img canvas { border-radius: 8px; }
.home-qr-text { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.home-qr-sub { font-size: 11px; color: #999; word-break: break-all; }
@media (hover: none) and (pointer: coarse) { .home-qr-card { display: none !important; } }

/* ========== 首页视图模式切换条 ========== */
.view-mode-bar { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 16px 4px; }
.view-mode-label { font-size: 13px; color: var(--text-secondary); font-weight: 500; }
.view-mode-seg { display: inline-flex; background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 3px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.view-mode-seg button { border: none; background: transparent; padding: 6px 16px; border-radius: 16px; font-size: 13px; font-weight: 500; color: var(--text-secondary); cursor: pointer; transition: all 0.2s; font-family: inherit; }
.view-mode-seg button:hover { color: var(--primary); }
.view-mode-seg button.active { background: linear-gradient(135deg, var(--primary), var(--orange)); color: #fff; box-shadow: 0 2px 8px rgba(196,30,58,0.3); }

/* ========== 移动端卡片：单列堆叠 ========== */
.mobile-cards { padding: 12px 16px; display: flex; flex-direction: column; gap: 12px; }
.mobile-card {
  width: 100%;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: var(--shadow);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mobile-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.mobile-card:active { transform: scale(0.98); }

/* ========== 视图选择遮罩弹窗 ========== */
.view-prompt-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  animation: vpFadeIn 0.25s ease-out;
}
@keyframes vpFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes vpCardPop { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

.view-prompt-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px 22px;
  width: 86%;
  max-width: 380px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: vpCardPop 0.3s ease-out;
}
.view-prompt-title { font-size: 19px; font-weight: 700; color: var(--text); text-align: center; }
.view-prompt-sub { font-size: 13px; color: var(--text-secondary); text-align: center; margin-top: 6px; }
.view-prompt-btns { display: flex; gap: 12px; margin-top: 22px; }
.view-prompt-btn {
  flex: 1; border: none; border-radius: 14px; padding: 20px 14px;
  background: #f8f6f4; cursor: pointer; transition: all 0.2s ease;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-family: inherit;
}
.view-prompt-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(196, 30, 58, 0.18); }
.view-prompt-btn.pc:hover { background: linear-gradient(135deg, rgba(196,30,58,0.08), rgba(255,107,53,0.08)); }
.view-prompt-btn.mobile:hover { background: linear-gradient(135deg, rgba(255,107,53,0.08), rgba(196,30,58,0.08)); }
.view-prompt-btn .vp-icon { font-size: 32px; line-height: 1; }
.view-prompt-btn .vp-text { font-size: 15px; font-weight: 700; color: var(--text); margin-top: 4px; }
.view-prompt-btn .vp-desc { font-size: 11px; color: var(--text-secondary); }
.view-prompt-btn:active { transform: scale(0.97); }
.view-prompt-current { font-size: 11px; color: #9ca3af; text-align: center; margin-top: 16px; }

/* ========== 右下角浮动重开按钮 ========== */
.view-prompt-reopen {
  position: fixed; right: 28px; bottom: 28px; z-index: 55;
  width: 42px; height: 42px; border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #c41e3a, #ff6b35);
  box-shadow: 0 4px 14px rgba(196,30,58,0.35);
  cursor: pointer; font-size: 20px;
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
  display: flex; align-items: center; justify-content: center;
}
@media (max-width: 768px) {
  .view-prompt-reopen { right: 16px; bottom: 82px; width: 40px; height: 40px; font-size: 18px; }
}
.view-prompt-reopen:hover { transform: scale(1.12) rotate(25deg); box-shadow: 0 6px 20px rgba(196,30,58,0.5); }
.view-prompt-reopen:active { transform: scale(0.92); }

/* ========== 抽奖转盘弹窗 v20261007b ========== */
.lottery-mask {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.lottery-dialog {
  background: linear-gradient(160deg, #fff9f5 0%, #fff 100%);
  border-radius: 24px;
  padding: 22px 20px 18px;
  width: 380px;
  max-width: 94vw;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(196,30,58,0.35);
  border: 2px solid #c41e3a;
  animation: lotteryPop 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes lotteryPop { from { transform: scale(0.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.lottery-title {
  font-size: 18px; font-weight: 700; color: #c41e3a;
  margin-bottom: 16px;
}

.lottery-wheel-wrap {
  width: 340px; height: 340px;
  margin: 0 auto;
  position: relative;
  filter: drop-shadow(0 6px 18px rgba(196,30,58,0.3));
}

/* ===== conic-gradient 新转盘 ===== */
.cg-wheel {
  width: 100%; height: 100%;
  border-radius: 50%;
  position: relative;
  border: 8px solid #ffd700;
  box-shadow:
    inset 0 0 0 4px #fff7cc,
    inset 0 0 0 8px #d4af37,
    0 0 0 14px #c41e3a,
    0 0 0 18px #ff6b9d;
  overflow: hidden;
}

.cg-sector-text {
  position: absolute;
  top: 50%; left: 50%;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  white-space: nowrap;
  transform-origin: 0 0;  /* 绕转盘中心(元素左上角)旋转，保证 rotate 做圆周运动 */
  pointer-events: none;
}
.cg-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e83e5f, #9e1630);
  border: 4px solid #ffd700;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
  color: #fff7cc;
  font-size: 22px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
}

.lottery-pointer {
  position: absolute; top: -14px; left: 50%;
  transform: translateX(-50%);
  font-size: 32px; color: #c41e3a;
  text-shadow: 0 2px 6px rgba(196,30,58,0.6);
  z-index: 10;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}

.lottery-actions { margin-top: 18px; }

.btn-lottery {
  width: 100%; padding: 14px 0;
  background: linear-gradient(135deg, #c41e3a, #ff6b35);
  color: white; border: none; border-radius: 14px;
  font-size: 16px; font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(196,30,58,0.4);
  transition: all 0.2s;
}
.btn-lottery:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(196,30,58,0.5); }
.btn-lottery:active:not(:disabled) { transform: translateY(0); }
.btn-lottery:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-lottery-skip {
  width: 100%; padding: 10px 0; margin-top: 8px;
  background: transparent; border: none;
  color: #9ca3af; font-size: 13px; cursor: pointer;
}

.lottery-result {
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.97);
  border-radius: 22px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px;
  animation: lotteryPop 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.lottery-result-emoji {
  font-size: 80px; line-height: 1; margin-bottom: 8px;
  animation: bounce 0.8s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes bounce {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.lottery-result-text {
  font-size: 14px; color: #6b7280; margin-bottom: 4px;
}
.lottery-result-name {
  font-size: 22px; font-weight: 700; color: #c41e3a;
  background: linear-gradient(135deg, #c41e3a, #ff6b35);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}


/* 内层 span：用于下半圈文字翻转（绕自己中心翻，不影响位置） */
.cg-sector-text-inner {
  display: inline-block;
  transform-origin: center center;
}


/* ========== el-image-viewer 正确层级修复 ========== */
/* 不要用 !important 99999，会搞乱内部按钮的层级 */
.el-image-viewer__wrapper {
  z-index: 3000 !important;
}



/* ========== el-image-viewer 打开时锁住 body 滚动 ========== */
/* EP 打开时会在 body 上加 .el-image-viewing 类 */
body.el-image-viewing {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}
.el-image-viewer__wrapper {
  overscroll-behavior: contain;
  touch-action: none;
}
.el-image-viewer__img {
  touch-action: none;
}



/* ========== Element Plus el-image-viewer 修复 ========== */
/* 1. z-index 足够高，不被任何容器遮挡 */
.el-image-viewer__wrapper {
  z-index: 3000 !important;
}

/* 2. 打开预览时锁住 body 滚动，防止滚轮穿透 */
body.el-image-viewing {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}



/* ========== el-image-viewer 仿 theme photo-overlay 风格 ========== */
/* 隐藏底部工具栏（缩放/旋转/翻转/全屏），做成和征集板块一样干净 */
.el-image-viewer__actions {
  display: none !important;
}
/* 关闭按钮改到右上角，仿 theme 风格 */
.el-image-viewer__close {
  top: 16px !important;
  right: 16px !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(4px);
}
.el-image-viewer__close svg {
  width: 24px !important;
  height: 24px !important;
}
/* 图片样式仿 theme：contain 填满视口 */
.el-image-viewer__canvas img,
.el-image-viewer__img {
  max-width: 100vw !important;
  max-height: 100vh !important;
  object-fit: contain !important;
}
/* 隐藏 EP 的翻页箭头（theme 没有） */
.el-image-viewer__prev,
.el-image-viewer__next {
  display: none !important;
}



/* ========== 照片墙上传增强：缩略图 + 粘贴提示 ========== */
.photo-preview-box {
  position: relative;
  display: inline-block;
  margin: 10px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.photo-preview-img {
  max-width: 200px;
  max-height: 160px;
  display: block;
  border-radius: 8px;
}
.photo-preview-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 24px;
  cursor: pointer;
  font-size: 14px;
  z-index: 2;
}
.photo-paste-hint {
  color: #888;
  font-size: 13px;
  margin: 6px 0 10px;
  padding: 8px 12px;
  background: #f5f7fa;
  border-radius: 6px;
  border-left: 3px solid #409eff;
}
.photo-paste-hint b { color: #409eff; }

/* ==================== FileHub 文件共享模块 ==================== */
.fh-page { --fh-bg:#f6f7f9; --fh-panel:#fff; --fh-line:#e8eaf0; --fh-text:#1e2430; --fh-muted:#8a93a6; --fh-brand:#3b6cf6; --fh-brand-soft:#edf2ff; --fh-radius:10px; min-height: calc(100vh - 60px); display: flex; flex-direction: column; background: var(--fh-bg); font: 14px/1.5 -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--fh-text); }
.fh-muted { color: var(--fh-muted); font-size: 12px; }

/* 顶栏 */
.fh-topbar { height: 56px; flex: 0 0 56px; display: flex; align-items: center; gap: 16px; padding: 0 16px; background: var(--fh-panel); border-bottom: 1px solid var(--fh-line); }
.fh-logo { display: flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; font-size: 14px; }
.fh-logo-mark { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-size: 13px; background: linear-gradient(135deg,#3b6cf6,#7c3aed); }
.fh-search { flex: 1; max-width: 420px; position: relative; }
.fh-search svg { position: absolute; left: 10px; top: 9px; color: var(--fh-muted); }
.fh-search input { width: 100%; height: 34px; border-radius: 8px; border: 1px solid var(--fh-line); background: var(--fh-bg); padding: 0 12px 0 34px; outline: none; font-size: 13px; }
.fh-search input:focus { border-color: var(--fh-brand); background: #fff; }
.fh-spacer { flex: 1; }
.fh-btn, .fh-btn-primary { height: 34px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--fh-line); background: #fff; color: var(--fh-text); font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.fh-btn:hover { background: #f7f8fb; }
.fh-btn-primary { background: var(--fh-brand); border-color: var(--fh-brand); color: #fff; }
.fh-btn-primary:hover { filter: brightness(1.05); }
.fh-btn.disabled, .fh-btn-primary.disabled,
.fh-btn:disabled, .fh-btn-primary:disabled { opacity: .45; cursor: not-allowed; pointer-events: none; filter: grayscale(.6); }

/* 顶栏用户区域 */
.fh-user { position: relative; display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 20px; cursor: pointer; transition: background .15s; }
.fh-user:hover { background: #f1f3f8; }
.fh-avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 13px; flex-shrink: 0; }
.fh-user-name { font-size: 13px; color: #39415a; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fh-user-role { font-size: 11px; padding: 2px 6px; border-radius: 4px; background: #fff3e0; color: #e67e22; font-weight: 500; }
.fh-user-menu { position: absolute; top: 100%; right: 0; margin-top: 6px; min-width: 160px; background: #fff; border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.06); border: 1px solid #eef0f6; z-index: 100; overflow: hidden; padding: 4px; }
.fh-menu-item { display: flex; align-items: center; gap: 8px; padding: 9px 12px; font-size: 13px; color: #39415a; cursor: pointer; border-radius: 6px; text-decoration: none; transition: background .12s; }
.fh-menu-item:hover { background: #f1f3f8; }
.fh-menu-sep { height: 1px; background: #eef0f6; margin: 4px 8px; }

.fh-icon-btn { width: 26px; height: 26px; border: 0; border-radius: 6px; background: transparent; color: var(--fh-muted); cursor: pointer; font-size: 16px; line-height: 1; display: grid; place-items: center; }
.fh-icon-btn:hover { background: #f1f3f8; color: var(--fh-text); }

/* 布局 */
.fh-layout { flex: 1; display: flex; min-height: 0; }
.fh-sidebar { width: 240px; flex: 0 0 240px; background: var(--fh-panel); border-right: 1px solid var(--fh-line); padding: 12px 8px; overflow-y: auto; overflow-x: hidden; min-height: 0; height: 100%; }
.fh-side-title { font-size: 12px; color: var(--fh-muted); font-weight: 600; padding: 10px 10px 4px; }
.fh-nav-item { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border-radius: 8px; cursor: pointer; color: #39415a; user-select: none; font-size: 13px; }
.fh-nav-item:hover { background: #f1f3f8; }
.fh-nav-item.active { background: var(--fh-brand-soft); color: var(--fh-brand); font-weight: 600; }
.fh-nav-item.sub { padding-left: 28px; font-size: 13px; color: var(--fh-muted); }
.fh-nav-icon { width: 16px; text-align: center; opacity: .8; }
.fh-count { margin-left: auto; font-size: 12px; color: var(--fh-muted); font-weight: 400; }

/* 树形导航 */
.fh-tree { margin-top: 4px; }
.fh-tree-node { display: flex; align-items: center; gap: 4px; height: 30px; border-radius: 6px; cursor: pointer; color: #39415a; user-select: none; font-size: 12.5px; transition: background .15s; }
.fh-tree-node:hover { background: #f1f3f8; }
.fh-tree-node.active { background: var(--fh-brand-soft); color: var(--fh-brand); font-weight: 600; }
.fh-tree-node.ghost { opacity: .55; color: #999; cursor: not-allowed; }
.fh-tree-node.ghost:hover { background: #fafafa; }
.fh-tree-toggle { width: 14px; text-align: center; color: #aaa; font-size: 10px; cursor: pointer; user-select: none; flex-shrink: 0; }
.fh-tree-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }

/* 主区 */
.fh-main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--fh-panel); }
.fh-toolbar { height: 56px; flex: 0 0 56px; display: flex; align-items: center; gap: 12px; padding: 0 20px; border-bottom: 1px solid var(--fh-line); }
.fh-crumb { font-size: 15px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fh-crumb-seg { cursor: pointer; }
.fh-crumb-arrow { color: var(--fh-muted); margin: 0 4px; font-weight: 400; }
.fh-toolbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* 表头和行 */
.fh-table-head, .fh-row { display: grid; grid-template-columns: minmax(0,1fr) 80px 150px 110px 100px 36px; gap: 12px; align-items: center; padding: 0 20px; }
.fh-table-head { height: 38px; flex: 0 0 38px; font-size: 12px; color: var(--fh-muted); border-bottom: 1px solid var(--fh-line); }
.fh-rows { flex: 1; overflow: auto; }
.fh-row { height: 56px; border-bottom: 1px solid #f3f4f8; cursor: pointer; font-size: 13px; }
.fh-row:hover { background: #fafbfd; }
.fh-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fh-badge { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 8px; display: grid; place-items: center; font-size: 9px; font-weight: 700; color: #fff; letter-spacing: .02em; }
.fh-fname { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fh-edited { display: flex; flex-direction: column; gap: 1px; }
.fh-edited b { font-weight: 500; font-size: 13px; }
.fh-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; background: #f1f3f8; color: #5b647c; white-space: nowrap; }
.fh-pill-blue { background: #eaf0ff; color: #3b6cf6; }
.fh-pill-gray { background: #f1f3f8; color: #5b647c; }
.fh-pill-red { background: #fef2f2; color: #dc2626; }
.fh-pill-green { background: #e6f7ec; color: #16a34a; }
.fh-pill-orange { background: #fff4e0; color: #e67e22; }
.fh-empty { padding: 60px 20px; text-align: center; color: var(--fh-muted); }

/* 权限弹窗 - 用户行 */
.fh-user-row { display:flex; align-items:center; justify-content:space-between; padding:8px 10px; border-bottom:1px solid #eef0f5; gap:10px; }
.fh-user-row:last-child { border-bottom:none; }
.fh-user-info { flex:1; min-width:0; }
.fh-user-name { font-weight:500; font-size:13px; color:#222; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fh-user-sub { font-size:11px; color:#888; margin-top:2px; }
.fh-group-radio { display:flex; gap:4px; flex-shrink:0; }
.fh-radio-btn { padding:4px 8px; border-radius:4px; border:1px solid #d1d5e0; background:#fff; font-size:11px; color:#555; cursor:pointer; transition:all .15s; white-space:nowrap; }
.fh-radio-btn:hover { background:#f5f7fb; }
.fh-radio-btn.active { border-width:1.5px; font-weight:600; }
.fh-radio-btn.active.fh-radio-admin { background:#e6f7ec; border-color:#16a34a; color:#15803d; }
.fh-radio-btn.active.fh-radio-editor { background:#fff4e0; border-color:#e67e22; color:#c05621; }
.fh-radio-btn.active.fh-radio-viewer { background:#f1f3f8; border-color:#5b647c; color:#3a4258; }
.fh-radio-btn.active:not(.fh-radio-admin):not(.fh-radio-editor):not(.fh-radio-viewer) { background:#eef0f5; border-color:#888; color:#666; }

/* 权限模板开关行 */
.fh-perm-row { display:flex; align-items:center; gap:8px; padding:6px 10px; border:1px solid #e6e8ef; border-radius:6px; cursor:pointer; transition:all .15s; }
.fh-perm-row:hover { border-color:#c5c9d4; background:#fafbfd; }
.fh-perm-row.active { border-width:1.5px; border-color:#5b647c; background:#f0f3f9; }
.fh-perm-chk { width:16px; height:16px; cursor:pointer; }
.fh-perm-name { font-weight:600; font-size:13px; color:#222; min-width:90px; }
.fh-perm-desc { font-size:11px; color:#888; }

/* 更多菜单 */
.fh-more-wrap { position: relative; }
.fh-more-menu { position: absolute; right: 0; top: 30px; width: 180px; background: #fff; border-radius: 8px; box-shadow: 0 8px 30px rgba(20,26,40,.15); padding: 6px 0; z-index: 100; }
.fh-menu-item { padding: 8px 14px; font-size: 13px; cursor: pointer; color: #39415a; }
.fh-menu-item:hover { background: #f1f3f8; }
.fh-menu-item.danger { color: #dc2626; }
.fh-menu-item.disabled { color: #c0c4cc; cursor: not-allowed; background: transparent !important; }
.fh-menu-divider { height: 1px; background: #f3f4f8; margin: 6px 0; }

/* 模态 */
.fh-mask { position: fixed; inset: 0; background: rgba(20,26,40,.4); display: grid; place-items: center; z-index: 50; }
.fh-modal { width: 360px; background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 20px 50px rgba(20,26,40,.2); max-height: 80vh; overflow-y: auto; }
.fh-modal h3 { margin: 0 0 14px; font-size: 15px; font-weight: 600; }
.fh-modal label { display: block; font-size: 12px; color: var(--fh-muted); margin: 10px 0 4px; }
.fh-modal input, .fh-modal select { width: 100%; height: 34px; border: 1px solid var(--fh-line); border-radius: 8px; padding: 0 10px; font-size: 13px; outline: none; box-sizing: border-box; }
.fh-modal input:focus, .fh-modal select:focus { border-color: var(--fh-brand); }
.fh-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.fh-share-result { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--fh-line); }
.fh-share-url { font-size: 12px; background: #f1f3f8; padding: 8px; border-radius: 6px; word-break: break-all; margin-bottom: 8px; }
.fh-section-label { font-size: 12px; font-weight: 600; color: var(--fh-muted); margin: 8px 0 10px; }
.fh-acl-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid #f3f4f8; }
.fh-acl-row:last-child { border-bottom: 0; }

/* 权限弹窗 tabs */
.fh-perm-tabs { display: flex; gap: 0; border-bottom: 1px solid #e6e8ef; margin-bottom: 12px; }
.fh-perm-tab { padding: 8px 14px; border: 0; background: transparent; font-size: 13px; color: #8b94a6; cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.15s; }
.fh-perm-tab:hover { color: #3b6cf6; }
.fh-perm-tab.active { color: #3b6cf6; border-bottom-color: #3b6cf6; font-weight: 600; }

.fh-group-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid #f3f4f8; }
.fh-group-row:last-child { border-bottom: 0; }
.fh-group-info { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }

.fh-group-mgr-row { padding: 10px 0; border-bottom: 1px solid #f3f4f8; }
.fh-group-mgr-row:last-child { border-bottom: 0; }

.fh-select { height: 30px; padding: 0 8px; border: 1px solid #d4d6dc; border-radius: 6px; background: #fff; font-size: 13px; color: #333; }
.fh-input { height: 30px; padding: 0 10px; border: 1px solid #d4d6dc; border-radius: 6px; background: #fff; font-size: 13px; color: #333; outline: none; }
.fh-input:focus { border-color: #3b6cf6; }

/* 用户多选行 */
.fh-user-line { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-bottom: 1px solid #f3f4f8; font-size: 13px; cursor: pointer; }
.fh-user-line:last-child { border-bottom: 0; }
.fh-user-line:hover { background: #f8f9fc; }
.fh-user-line input[type="checkbox"] { width: 13px; height: 13px; margin: 0; padding: 0; flex-shrink: 0; accent-color: #3b6cf6; cursor: pointer; }
.fh-user-name { flex: 1; min-width: 0; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fh-user-phone { font-size: 12px; color: #8b94a6; }

/* 预设组权限矩阵 */
.fh-perm-matrix { width: 100%; border-collapse: collapse; font-size: 13px; }
.fh-perm-matrix th, .fh-perm-matrix td { padding: 8px 10px; text-align: center; border-bottom: 1px solid #f3f4f8; }
.fh-perm-matrix th:first-child, .fh-perm-matrix td:first-child { text-align: left; }
.fh-perm-matrix thead th { background: #fafbfc; font-weight: 600; color: #555; border-bottom: 2px solid #e6e8ef; }
.fh-perm-matrix input[type="checkbox"] { width: 15px; height: 15px; accent-color: #3b6cf6; }

/* 幽灵文件夹 */
.fh-ghost { opacity: 0.45; cursor: not-allowed !important; background: #fafbfc !important; }
.fh-ghost:hover { background: #f3f4f8 !important; }
.fh-ghost .fh-row-right { pointer-events: none; }

/* 深层嵌套文件 (nested) */
.fh-nested { background: #f6f8ff !important; border-left: 3px solid #3b6cf6 !important; }
.fh-nested:hover { background: #eef1ff !important; }
.fh-path-prefix { color: #9aa3b2; font-size: 12px; margin-right: 2px; }

/* ===== 全屏预览 ===== */
.fh-mask { z-index: 999; }
.fh-preview {
  position: fixed;
  inset: 0;
  margin: 0;
  background: #1a1d24;
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
}
.fh-preview-header {
  flex: 0 0 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px;
  background: #262a33;
  border-bottom: 1px solid #3a3f4a;
  color: #e4e6eb;
}
.fh-preview-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 14px;
  min-width: 0;
}
.fh-preview-title .fh-badge { width: 28px; height: 28px; font-size: 8px; flex-shrink: 0; }
.fh-preview-title span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; }
.fh-preview-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.fh-preview-actions .fh-btn {
  background: #3b6cf6;
  color: #fff;
  border-color: #3b6cf6;
  height: 32px;
  padding: 0 14px;
}
.fh-preview-actions .fh-btn:hover { background: #2f5be0; }
.fh-preview-actions .fh-icon-btn {
  width: 32px;
  height: 32px;
  color: #c9cdd4;
  font-size: 18px;
}
.fh-preview-actions .fh-icon-btn:hover { background: #3a3f4a; color: #fff; }
.fh-preview-body {
  flex: 1 1 auto;
  position: relative;
  overflow: hidden;
  background: #111318;
}
.fh-preview-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
  display: block;
}
.fh-office-frame {
  overflow: auto;
}
.fh-preview-sheet {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
  flex-shrink: 0;
}
.fh-sheet-tab {
  background: transparent;
  color: #c9cdd4;
  border: 1px solid #3a3f4a;
  border-radius: 4px 4px 0 0;
  border-bottom: none;
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
  height: 28px;
  font-family: inherit;
}
.fh-sheet-tab:hover { background: #3a3f4a; color: #fff; }
.fh-sheet-tab.active { background: #3b6cf6; color: #fff; border-color: #3b6cf6; }
.fh-preview-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #8a93a6;
  font-size: 14px;
}
.fh-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #3a3f4a;
  border-top-color: #3b6cf6;
  border-radius: 50%;
  animation: fh-spin 0.8s linear infinite;
}
@keyframes fh-spin { to { transform: rotate(360deg); } }

/* 📤 上传进度面板 */
.fh-upload-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 360px;
  max-height: 320px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  border: 1px solid var(--fh-line);
  overflow: hidden;
  z-index: 9999;
  display: flex;
  flex-direction: column;
}
.fh-upload-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid var(--fh-line);
  background: var(--fh-brand-soft);
  color: var(--fh-brand);
}
.fh-upload-close {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  color: var(--fh-muted);
  padding: 4px 8px;
  border-radius: 6px;
}
.fh-upload-close:hover { background: #e4e8f0; color: var(--fh-text); }
.fh-upload-list {
  overflow-y: auto;
  flex: 1;
  padding: 8px;
}
.fh-upload-item {
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 6px;
  background: #f7f8fa;
  border: 1px solid transparent;
}
.fh-upload-item.fh-upload-success { border-color: #52c41a33; background: #f6ffed; }
.fh-upload-item.fh-upload-error { border-color: #ff4d4f33; background: #fff2f0; }
.fh-upload-fname {
  font-size: 13px;
  font-weight: 500;
  color: var(--fh-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}
.fh-upload-bar {
  height: 6px;
  background: #e8eaf0;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}
.fh-upload-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, var(--fh-brand), #6b8fff);
  border-radius: 3px;
  transition: width 0.15s ease-out;
}
.fh-upload-item.fh-upload-success .fh-upload-bar-inner { background: #52c41a; }
.fh-upload-item.fh-upload-error .fh-upload-bar-inner { background: #ff4d4f; }
.fh-upload-meta {
  font-size: 12px;
  color: var(--fh-muted);
  text-align: right;
}
.fh-upload-ok { color: #52c41a; font-weight: 500; }
.fh-upload-err { color: #ff4d4f; font-weight: 500; }


/* ===== 文件级组权限弹窗（补齐） ===== */
.fh-source { color: var(--fh-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fh-edited { display: flex; flex-direction: column; gap: 1px; }
.fh-edited b { font-weight: 500; font-size: 13px; }

.fh-btn-mini { height: 24px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--fh-line); background: #fff; color: var(--fh-text); font-size: 12px; cursor: pointer; white-space: nowrap; }
.fh-btn-mini:disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.fh-btn-join { background: #16a34a; border-color: #16a34a; color: #fff; }
.fh-btn-join:hover:not(:disabled) { background: #12853c; border-color: #12853c; }
.fh-btn-remove { background: #dc2626; border-color: #dc2626; color: #fff; }
.fh-btn-remove:hover:not(:disabled) { background: #b91c1c; border-color: #b91c1c; }

.fh-btn.fh-btn-add { background: #16a34a; border-color: #16a34a; color: #fff; }
.fh-btn.fh-btn-add:hover:not(:disabled) { background: #12853c; border-color: #12853c; }
.fh-btn.fh-btn-remove-solid { background: #dc2626; border-color: #dc2626; color: #fff; }
.fh-btn.fh-btn-remove-solid:hover:not(:disabled) { background: #b91c1c; border-color: #b91c1c; }

.fh-tag-mini { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 4px; font-size: 11px; white-space: nowrap; }
.fh-tag-inherit { background: #f1f3f8; color: #5b647c; }
.fh-tag-joined { background: #e6f7ec; color: #16a34a; }
.fh-conflict-tag { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 4px; font-size: 11px; background: #fff4e0; color: #e67e22; white-space: nowrap; }


.fh-badge.fh-badge-folder { background: transparent !important; font-size: 22px; font-weight: 400; line-height: 1; }
