/* =====================
   全局重置与基础
   灰白为主色，蓝色点缀
   ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary: #4a6cf7;
  --primary-light: #eef1fd;
  --primary-dark: #3651d5;
  --accent: #6c8aff;
  --bg: #f2f3f7;
  --white: #ffffff;
  --text: #1a1a2e;
  --text-2: #6b7280;
  --text-3: #9ca3af;
  --border: #e5e7eb;
  --sidebar-w: 88px;
  --header-h: 50px;
  --tab-h: 46px;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.10);
}
html, body { height: 100%; font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', sans-serif; background: var(--bg); color: var(--text); font-size: 14px; }
body { overflow: hidden; }
body.admin-page, body.login-page { overflow: auto; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
img { display: block; }
a { text-decoration: none; color: inherit; }
.hidden { display: none !important; }

/* =====================
   顶部 Header - 灰白色
   ===================== */
.app-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: var(--white);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  border-bottom: 1px solid var(--border);
}
.app-header .logo { display: flex; align-items: center; gap: 8px; }
.app-header .logo-icon { 
  width: 30px; height: 30px; border-radius: 7px; 
  display: flex; align-items: center; justify-content: center; 
  font-size: 16px; overflow: hidden;
  background: var(--bg);
}
.app-header .logo-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-header .logo-text { color: var(--text); font-size: 15px; font-weight: 700; letter-spacing: 0.3px; }
.app-header .header-actions { display: flex; gap: 8px; align-items: center; position: relative; }
.app-header .admin-entry {
  font-size: 12px; color: var(--primary); font-weight: 600;
  padding: 5px 12px; border: 1px solid var(--primary);
  border-radius: 16px; transition: all 0.2s;
}
.app-header .admin-entry:active { background: var(--primary-light); }

/* =====================
   搜索框
   ===================== */
.search-box {
  position: relative;
  display: flex; align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0 12px;
  height: 32px;
  transition: border-color 0.2s, box-shadow 0.2s;
  max-width: 160px;
}
.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74,108,247,0.1);
  max-width: 200px;
}
.search-box .search-icon {
  font-size: 14px; color: var(--text-2);
  flex-shrink: 0; margin-right: 6px;
}
.search-box .search-input {
  border: none; outline: none; background: transparent;
  font-size: 13px; color: var(--text);
  width: 100%; padding: 4px 0;
  font-family: inherit;
}
.search-box .search-input::placeholder { color: var(--text-3); }
.search-box .search-clear {
  font-size: 12px; color: var(--text-3); cursor: pointer;
  padding: 2px 4px; flex-shrink: 0;
  line-height: 1;
}
.search-box .search-clear.hidden { display: none; }
.search-box .search-clear:active { color: var(--text); }

/* 搜索结果下拉 */
.search-results {
  position: absolute; top: 44px; left: 0; right: 0;
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  max-height: 300px; overflow-y: auto; z-index: 200;
}
.search-results.hidden { display: none; }
.search-result-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; cursor: pointer;
  transition: background 0.15s; border-bottom: 1px solid #f5f5f5;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--primary-light); }
.search-result-item .sri-img {
  width: 36px; height: 36px; border-radius: 8px;
  object-fit: cover; flex-shrink: 0; background: var(--bg);
}
.search-result-item .sri-info { flex: 1; min-width: 0; }
.search-result-item .sri-name {
  font-size: 13px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.search-result-item .sri-price {
  font-size: 11px; color: var(--primary); font-weight: 600;
}
.search-result-item .sri-tag {
  font-size: 10px; color: #999;
}
.search-result-empty {
  padding: 20px; text-align: center; color: #999; font-size: 13px;
}
.search-result-more {
  padding: 8px; text-align: center; color: var(--primary);
  font-size: 12px; cursor: pointer; border-top: 1px solid #f5f5f5;
}

/* =====================
   自定义Logo上传区
   ===================== */
.logo-upload-tip {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.05); opacity: 0; transition: opacity 0.2s;
  border-radius: 7px; cursor: pointer;
}
.logo-icon:hover .logo-upload-tip { opacity: 1; }
.logo-upload-tip span { font-size: 10px; color: #666; font-weight: 600; }

/* =====================
   登录门禁遮罩
   ===================== */
.login-gate {
  position: fixed; inset: 0; z-index: 500;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.login-gate.fade-out {
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s;
}
.lg-card {
  width: 100%; max-width: 380px;
  background: var(--white); border-radius: 20px;
  padding: 40px 30px; box-shadow: var(--shadow-lg);
  text-align: center;
}
.lg-logo {
  width: 72px; height: 72px; border-radius: 18px;
  background: linear-gradient(135deg, #4a6cf7 0%, #6c8aff 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; margin: 0 auto 16px; color: #fff;
}
.lg-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
.lg-title { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.lg-sub { font-size: 13px; color: var(--text-3); margin-bottom: 28px; line-height: 1.6; }
.lg-form-group { margin-bottom: 16px; text-align: left; }
.lg-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.lg-input {
  width: 100%; height: 46px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 12px;
  font-size: 15px; color: var(--text); background: var(--bg);
  font-family: inherit; transition: border-color 0.2s;
}
.lg-input:focus { outline: none; border-color: var(--primary); background: var(--white); }
.lg-error { color: #ef4444; font-size: 12px; min-height: 18px; margin-bottom: 6px; }
.lg-btn {
  width: 100%; height: 48px; border-radius: 24px;
  background: var(--primary); color: #fff;
  font-size: 16px; font-weight: 700;
  cursor: pointer; border: none; transition: opacity 0.2s;
}
.lg-btn:hover { opacity: 0.9; }
.lg-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.lg-footer { font-size: 12px; color: var(--text-3); margin-top: 20px; }

/* =====================
   底部 Tab 导航
   ===================== */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  height: 56px;
  background: var(--white);
  display: flex; align-items: center;
  border-top: 1px solid var(--border);
  box-shadow: 0 -1px 6px rgba(0,0,0,0.06);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.icp-footer {
  position: fixed; bottom: 56px; left: 0; right: 0; z-index: 99;
  padding-bottom: env(safe-area-inset-bottom, 0);
  text-align: center; font-size: 11px; color: #9ca3af;
  background: var(--white); padding: 6px 0;
  line-height: 1.5;
}
.icp-footer a { color: #9ca3af; text-decoration: none; }
.icp-footer a:hover { color: var(--primary); }
.bn-item {
  flex: 1; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 10px; color: var(--text-3); font-weight: 500;
  cursor: pointer; background: none; border: none; font-family: inherit;
  transition: color 0.2s; position: relative;
}
.bn-item:hover { color: var(--text-2); }
.bn-item.active { color: var(--primary); font-weight: 700; }
.bn-icon { font-size: 22px; line-height: 1; }
.bn-label { font-size: 10px; }
.bn-item.active::after {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 24px; height: 3px; background: var(--primary); border-radius: 0 0 3px 3px;
}

/* =====================
   主体布局（顶部Header + 底部Tab）
   ===================== */
.app-body {
  position: fixed;
  top: var(--header-h); bottom: 0; left: 0; right: 0;
}
/* PC端底部有Tab栏+ICP备案，调整app-body的bottom */
@media (min-width: 768px) {
  .app-body { bottom: 84px; }
}
@media (max-width: 767px) {
  .app-body { bottom: 84px; }
}
.tab-panel { display: none; width: 100%; height: 100%; overflow: hidden; }
.tab-panel.active { display: flex; }

/* =====================
   首页面板
   ===================== */
.home-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 0; }
.home-scroll::-webkit-scrollbar { display: none; }

/* 首页搜索条 */
.home-search-wrap { padding: 12px 16px; background: var(--white); }
.home-search-box {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 22px; padding: 10px 16px; cursor: pointer;
  transition: border-color 0.2s;
}
.home-search-box:hover { border-color: var(--primary); }
.hs-icon { font-size: 16px; color: var(--text-3); }
.hs-placeholder { font-size: 14px; color: var(--text-3); }

/* 搜索浮层 */
.home-search-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--white);
  display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top, 0);
}
.home-search-overlay.hidden { display: none !important; }
.hso-content { display: flex; flex-direction: column; height: 100%; }
.hso-header {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h, 48px); padding: 0 14px;
  background: var(--white); border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.hso-title { font-size: 15px; font-weight: 700; color: var(--text); }
.hso-spacer { width: 40px; }
.hso-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.hso-back { font-size: 14px; color: var(--primary); font-weight: 600; cursor: pointer; white-space: nowrap; }
.hso-input { flex: 1; border: none; outline: none; font-size: 15px; color: var(--text); font-family: inherit; background: var(--bg); padding: 10px 14px; border-radius: 20px; }
.hso-input::placeholder { color: var(--text-3); }
.hso-clear { font-size: 16px; color: var(--text-3); cursor: pointer; padding: 4px; }
.hso-clear.hidden { display: none; }
.hso-results { flex: 1; overflow-y: auto; }
.hso-result-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid #f5f5f5; cursor: pointer;
  transition: background 0.15s;
}
.hso-result-item:hover { background: var(--primary-light); }
.hso-result-item .hsr-thumb { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--bg); flex-shrink: 0; }
.hso-result-item .hsr-info { flex: 1; min-width: 0; }
.hso-result-item .hsr-name { font-size: 14px; font-weight: 600; color: var(--text); }
.hso-result-item .hsr-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.hso-result-item .hsr-type { font-size: 10px; padding: 2px 8px; border-radius: 12px; font-weight: 600; flex-shrink: 0; }
.hsr-type.product { background: #e8f0fe; color: #1a73e8; }
.hsr-type.moment { background: #e6f7e6; color: #1aad19; }
.hsr-empty { text-align: center; padding: 40px 20px; color: var(--text-3); font-size: 14px; }

/* Banner 轮播 */
.banner-wrap { margin: 0 16px 12px; position: relative; border-radius: 14px; overflow: hidden; }
.banner-wrap .banner-loading { height: 160px; }
.banner-swiper { position: relative; overflow: hidden; }
.banner-track {
  display: flex; transition: transform 0.45s cubic-bezier(0.25,0.46,0.45,0.94);
}
.banner-slide {
  min-width: 100%; position: relative;
  cursor: pointer;
}
.banner-slide img { width: 100%; height: 180px; object-fit: cover; display: block; }
.banner-slide .bs-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 16px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
}
.banner-slide .bs-title { color: #fff; font-size: 15px; font-weight: 700; }
.banner-slide .bs-tag { color: rgba(255,255,255,0.75); font-size: 11px; margin-top: 2px; }
.banner-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 5;
}
.banner-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.5); cursor: pointer;
  transition: all 0.3s;
}
.banner-dot.active { background: #fff; width: 18px; border-radius: 3px; }

/* 快捷导航 */
.quick-nav {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; padding: 0 16px 16px;
}
.quick-nav .qn-loading { display: contents; }
.qn-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 6px;
  background: var(--white); border-radius: 12px;
  cursor: pointer; transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: var(--shadow);
}
.qn-item:active, .qn-item:hover { transform: scale(0.96); }
.qn-item .qn-icon { font-size: 28px; }
.qn-item .qn-icon-img { width: 28px; height: 28px; object-fit: contain; }
.qn-item .qn-text { font-size: 12px; color: var(--text-2); font-weight: 500; }

/* 素材精选 feed */
.feed-section { padding: 0 16px 16px; }
.feed-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; position: sticky; top: 0;
  background: var(--bg); z-index: 50; padding: 8px 0;
}
.feed-title { font-size: 16px; font-weight: 700; color: var(--text); }
.feed-tabs { display: flex; gap: 4px; }
.ft-item {
  padding: 5px 12px; border-radius: 16px;
  font-size: 12px; font-weight: 600; color: var(--text-3);
  background: var(--bg); cursor: pointer;
  transition: all 0.2s;
  border: none; font-family: inherit;
}
.ft-item.active { background: var(--primary); color: #fff; }
.ft-item:hover:not(.active) { color: var(--primary); }

.feed-list { display: flex; flex-direction: column; gap: 12px; }
.feed-loading { text-align: center; padding: 40px 0; color: var(--text-3); }
.spinner { width: 32px; height: 32px; border: 3px solid #eee; border-top-color: var(--primary); border-radius: 50%; margin: 0 auto 12px; animation: spin 0.8s linear infinite; }
.feed-card {
  background: var(--white); border-radius: 14px;
  padding: 16px; box-shadow: var(--shadow);
  cursor: pointer; transition: box-shadow 0.2s;
  position: relative;
}
.feed-card:hover { box-shadow: var(--shadow-md); }
.feed-card .fc-text {
  font-size: 14px; color: var(--text); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: 10px;
}
.feed-card .fc-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
.fc-tag {
  font-size: 10px; padding: 2px 8px; border-radius: 12px;
  background: #eef1fd; color: #4a6cf7; font-weight: 500;
}
.feed-card .fc-images { display: grid; gap: 4px; margin-bottom: 10px; }
.fc-images.cols-1 { grid-template-columns: 1fr; max-width: 200px; }
.fc-images.cols-2 { grid-template-columns: 1fr 1fr; max-width: 280px; }
.fc-images.cols-3 { grid-template-columns: repeat(3, 1fr); max-width: 320px; }
.fc-images img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 8px; cursor: pointer; }
.feed-card .fc-video {
  position: relative; border-radius: 10px; overflow: hidden;
  margin-bottom: 10px; cursor: pointer;
  background: #000;
}
.fc-video img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.fc-video .fc-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; padding-left: 2px;
}

/* ===== 视频播放浮层 ===== */
.video-player-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.92); z-index: 99999;
  display: flex; align-items: center; justify-content: center;
}
.video-player-overlay.hidden { display: none; }
.video-player-wrap {
  position: relative; width: 100%; max-width: 600px;
  max-height: 80vh; margin: 0 auto;
}
.video-player-wrap video {
  width: 100%; max-height: 80vh; display: block;
  border-radius: 8px;
}
.video-player-close {
  position: absolute; top: -40px; right: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.15); border: none;
  color: #fff; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.video-player-close:active { background: rgba(255,255,255,0.3); }

/* ===== 我的发布/朋友圈 视频缩略图 ===== */
.moment-video-thumb {
  display: inline-block; vertical-align: top; margin: 4px;
  position: relative; cursor: pointer;
  width: 120px; height: 80px; border-radius: 8px; overflow: hidden;
  background: #000;
}
.moment-video-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.moment-video-thumb .play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px; pointer-events: none;
}
.moment-video-thumb:active { opacity: 0.8; }
.feed-card .fc-product {
  font-size: 12px; color: var(--primary); font-weight: 600;
  margin-bottom: 8px;
}
.feed-card .fc-actions { display: flex; gap: 6px; flex: 1; min-width: 0; }
.fc-btn {
  flex: 1; height: 34px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  cursor: pointer; border: none; font-family: inherit;
  background: #f0f4ff; color: #4a6cf7;
  transition: all 0.15s;
}
.fc-btn:active, .fc-btn:hover { opacity: 0.85; }
.fc-btn.copy, .fc-btn.share { background: #f0f4ff; color: #4a6cf7; }
.feed-card .fc-heat {
  font-size: 11px; color: var(--text-3);
  display: flex; align-items: center; gap: 2px;
  flex-shrink: 0; margin-left: auto;
}
.feed-card .fc-prod-line {
  font-size: 12px; font-weight: 600; color: #4a6cf7;
  background: #eef1fd; padding: 3px 10px; border-radius: 6px;
  display: inline-block; align-self: flex-start;
  margin-bottom: 8px;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.feed-card .fc-meta-row {
  display: flex; align-items: center; gap: 8px;
  margin-top: 10px;
}
.feed-empty { text-align: center; padding: 40px 20px; color: var(--text-3); font-size: 13px; }

/* =====================
   素材库面板
   ===================== */
.lib-layout { display: flex; flex-direction: column; width: 100%; height: 100%; }
.lib-main-row { display: flex; flex: 1; min-height: 0; width: 100%; }
.lib-search-top { padding: 10px 14px; background: var(--white); flex-shrink: 0; border-bottom: 1px solid var(--border); }
.lib-search-top .search-box { max-width: 100%; }
.lib-search-wrap { padding: 0 14px 8px; background: var(--white); flex-shrink: 0; }

/* =====================
   我的面板
   ===================== */
.mine-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; background: var(--bg); padding: 16px; }
.mine-scroll::-webkit-scrollbar { display: none; }

/* 登录卡片 */
.mine-login { display: flex; align-items: center; justify-content: center; min-height: 100%; }
.ml-card {
  width: 100%; max-width: 380px;
  background: var(--white); border-radius: 16px;
  padding: 40px 28px; box-shadow: var(--shadow-lg);
  text-align: center;
}
.ml-avatar { font-size: 56px; margin-bottom: 12px; }
.ml-title { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.ml-sub { font-size: 13px; color: var(--text-3); margin-bottom: 28px; }
.ml-form-group { margin-bottom: 16px; text-align: left; }
.ml-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.ml-input {
  width: 100%; height: 44px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 10px;
  font-size: 14px; color: var(--text); background: var(--bg);
  font-family: inherit; transition: border-color 0.2s;
}
.ml-input:focus { outline: none; border-color: var(--primary); background: var(--white); }
.ml-error { color: #ef4444; font-size: 12px; min-height: 18px; margin-bottom: 8px; }
.ml-btn {
  width: 100%; height: 46px; border-radius: 23px;
  background: var(--primary); color: #fff;
  font-size: 15px; font-weight: 700;
  cursor: pointer; border: none; transition: opacity 0.2s;
}
.ml-btn:hover { opacity: 0.9; }
.ml-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.ml-switch { text-align: center; margin-top: 16px; font-size: 13px; color: var(--text-3); }
.ml-switch a { color: var(--primary); font-weight: 600; text-decoration: none; }
.ml-switch a:hover { text-decoration: underline; }
select.ml-input { box-sizing: border-box; appearance: auto; }

/* 已登录仪表盘 */
.md-card {
  background: linear-gradient(135deg, #4a6cf7 0%, #6c8aff 100%);
  border-radius: 16px; padding: 20px; display: flex; align-items: center; gap: 14px;
  color: #fff; margin-bottom: 16px;
}
.md-avatar-wrap { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.md-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; flex-shrink: 0; cursor: pointer;
  overflow: hidden; transition: transform 0.15s;
}
.md-avatar:hover { transform: scale(1.05); }
.md-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.md-avatar-hint { font-size: 10px; opacity: 0.6; margin-top: 4px; text-align: center; color: #fff; cursor: pointer; }
.md-info { flex: 1; min-width: 0; }
.md-name { font-size: 18px; font-weight: 700; }
.md-role { font-size: 12px; opacity: 0.85; margin-top: 2px; }
.md-team { font-size: 11px; opacity: 0.7; margin-top: 2px; }
.md-stats { display: flex; gap: 16px; flex-shrink: 0; }
.mds-item { text-align: center; }
.mds-val { font-size: 22px; font-weight: 700; display: block; }
.mds-label { font-size: 11px; opacity: 0.75; }

/* 功能菜单 */
.md-menu { display: flex; flex-direction: column; gap: 8px; }
.mdm-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: var(--white);
  border-radius: 12px; cursor: pointer; border: none; font-family: inherit;
  font-size: 14px; color: var(--text);
  box-shadow: var(--shadow); transition: background 0.15s;
}
.mdm-item:hover { background: var(--primary-light); }
.mdm-icon { font-size: 20px; }
.mdm-text { flex: 1; text-align: left; font-weight: 500; }
.mdm-arrow { font-size: 18px; color: var(--text-3); }
.mdm-badge {
  background: #ef4444; color: #fff;
  font-size: 11px; font-weight: 600;
  min-width: 20px; height: 20px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 6px;
}
.mdm-badge.hidden { display: none; }

/* 发布表单弹窗 */
.publish-sheet { max-width: 560px !important; }
.publish-body { padding: 16px 20px !important; }
.pub-form-group { margin-bottom: 16px; }
.pub-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.pub-select {
  width: 100%; height: 40px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 10px;
  font-size: 14px; color: var(--text); background: var(--bg);
  font-family: inherit;
}
.pub-textarea {
  width: 100%; padding: 12px;
  border: 1px solid var(--border); border-radius: 10px;
  font-size: 14px; color: var(--text); background: var(--bg);
  font-family: inherit; resize: vertical;
}
.pub-textarea:focus, .pub-select:focus { outline: none; border-color: var(--primary); }
.pub-images { margin-bottom: 8px; }
.pub-img-add {
  display: inline-block; padding: 8px 16px;
  background: var(--primary-light); color: var(--primary);
  border-radius: 8px; font-size: 13px; font-weight: 600;
  cursor: pointer; border: 1px dashed var(--primary);
  transition: background 0.2s;
}
.pub-img-add:hover { background: #dde4fd; }
.pub-img-preview { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.pub-error { color: #ef4444; font-size: 12px; min-height: 18px; margin-bottom: 8px; }
.pub-actions { display: flex; gap: 10px; }
.pub-cancel {
  flex: 1; height: 44px; border-radius: 22px;
  background: var(--bg); color: var(--text-2);
  font-size: 14px; font-weight: 600; cursor: pointer; border: none;
}
.pub-submit {
  flex: 2; height: 44px; border-radius: 22px;
  background: var(--primary); color: #fff;
  font-size: 14px; font-weight: 700; cursor: pointer; border: none;
}
.pub-submit:hover { opacity: 0.9; }

/* 我的发布列表（弹窗内） */
.sub-list { display: flex; flex-direction: column; gap: 10px; }
.sub-item {
  display: flex; flex-direction: column;
  padding: 12px; background: var(--bg); border-radius: 10px;
}
.sub-item .sub-content { font-size: 13px; color: var(--text); margin-bottom: 8px; word-break: break-word; }
.sub-item .sub-media { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.sub-item .sub-footer { display: flex; align-items: center; gap: 10px; }
.sub-item .sub-status {
  font-size: 11px; padding: 3px 10px; border-radius: 12px; font-weight: 600; white-space: nowrap;
}
.sub-status.pending { background: #fff7ed; color: #f59e0b; }
.sub-status.approved { background: #ecfdf5; color: #22c55e; }
.sub-status.rejected { background: #fef2f2; color: #ef4444; }
.sub-item .sub-del {
  padding: 4px 10px; border-radius: 12px; font-size: 11px;
  background: #fef2f2; color: #ef4444; cursor: pointer; border: none;
}

/* ===================== 我的问答（改版） ===================== */
.qa-card-list { display: flex; flex-direction: column; gap: 14px; max-height: 65vh; overflow-y: auto; padding-right: 4px; }
.qa-card-new {
  display: flex; gap: 12px;
  background: #fff; border: 1px solid #e8e8e8; border-radius: 12px;
  padding: 16px; transition: box-shadow 0.2s;
}
.qa-card-new:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.qa-card-number {
  width: 32px; height: 32px; min-width: 32px;
  background: var(--primary); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.qa-card-body { flex: 1; min-width: 0; }
.qa-card-meta {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap;
}
.qa-status-badge {
  display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 11px; font-weight: 600;
}
.qa-status-badge.pending { background: #fff3e0; color: #ff9800; }
.qa-status-badge.answered { background: #e8f0fe; color: #4a6cf7; }
.qa-status-badge.reviewing { background: #f3e5f5; color: #9c27b0; }
.qa-status-badge.published { background: #e8f8f0; color: #27ae60; }
.qa-product-tag { font-size: 11px; color: #888; }
.qa-time { font-size: 11px; color: #bbb; margin-left: auto; }
.qa-del-btn {
  background: none; border: none; cursor: pointer; font-size: 14px; opacity: 0.5; padding: 2px 6px;
  transition: opacity 0.15s;
}
.qa-del-btn:hover { opacity: 1; }

.qa-q-block {
  background: #f0f4ff; border-left: 3px solid var(--primary);
  padding: 10px 14px; border-radius: 0 8px 8px 0; margin-bottom: 10px;
}
.qa-q-label { font-size: 11px; color: var(--primary); font-weight: 600; margin-bottom: 4px; }
.qa-q-text { font-size: 14px; color: #333; line-height: 1.6; }

.qa-a-block { margin-top: 6px; }
.qa-a-label { font-size: 11px; color: #27ae60; font-weight: 600; margin-bottom: 4px; }
.qa-a-text {
  background: #f6fff0; border-left: 3px solid #27ae60;
  padding: 10px 14px; border-radius: 0 8px 8px 0;
  font-size: 14px; color: #333; line-height: 1.6; margin-bottom: 8px;
}

.qa-edit-btn {
  display: inline-block; padding: 4px 14px; border-radius: 14px;
  background: #fef2f2; color: #e67e22; border: 1px solid #f5cba7;
  font-size: 12px; cursor: pointer; transition: all 0.15s;
}
.qa-edit-btn:hover { background: #fde8d0; }

.qa-review-hint {
  font-size: 12px; color: #9c27b0; padding: 6px 12px;
  background: #faf5ff; border-radius: 8px; text-align: center;
}

.qa-input-area { margin-top: 10px; }
.qa-textarea {
  width: 100%; padding: 10px 12px; border: 2px solid #e0e0e0; border-radius: 8px;
  font-size: 14px; line-height: 1.5; outline: none; resize: vertical;
  min-height: 80px; box-sizing: border-box; transition: border-color 0.2s;
  font-family: inherit;
}
.qa-textarea:focus { border-color: var(--primary); }

.qa-submit-btn {
  display: inline-block; margin-top: 8px; padding: 8px 20px;
  background: var(--primary); color: #fff; border: none; border-radius: 8px;
  font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.15s;
}
.qa-submit-btn:hover { background: #3a5bd9; }

.qa-edit-area { margin-top: 4px; }
.qa-edit-actions { display: flex; gap: 8px; margin-top: 8px; }
.qa-cancel-btn {
  display: inline-block; padding: 8px 20px;
  background: #f0f0f0; color: #666; border: none; border-radius: 8px;
  font-size: 13px; cursor: pointer; transition: background 0.15s;
}
.qa-cancel-btn:hover { background: #e0e0e0; }

/* 提问表单（产品详情页） */
.qa-ask-form {
  background: #f0f5ff; border-radius: 10px; padding: 14px;
  margin-bottom: 12px; border: 1px solid #c7d2fe;
}
.qa-ask-title {
  font-size: 13px; font-weight: 600; color: #4a6cf7; margin-bottom: 8px;
}
.qa-ask-textarea {
  width: 100%; min-height: 60px; font-size: 13px; line-height: 1.5;
  padding: 10px; border: 1px solid #c7d2fe; border-radius: 8px;
  background: #fff; box-sizing: border-box; resize: vertical; outline: none;
}
.qa-ask-textarea:focus { border-color: #4a6cf7; }
.qa-ask-btn {
  display: inline-block; margin-top: 8px; padding: 8px 24px;
  background: #4a6cf7; color: #fff; border: none; border-radius: 8px;
  font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.15s;
}
.qa-ask-btn:hover { background: #3a5bd9; }
.qa-ask-login-hint {
  background: #fefce8; border-radius: 8px; padding: 10px 14px;
  font-size: 12px; color: #854d0e; margin-bottom: 10px;
}
.qa-ask-login-hint a { color: #4a6cf7; text-decoration: underline; cursor: pointer; }

/* 我的朋友圈列表 */
.my-moments-list { display: flex; flex-direction: column; gap: 12px; }
.my-moment-item {
  padding: 14px; background: var(--bg); border-radius: 12px;
  border-left: 3px solid var(--primary);
}
.my-moment-product { font-size: 13px; color: var(--primary); font-weight: 600; margin-bottom: 6px; }
.my-moment-content { font-size: 14px; color: var(--text); line-height: 1.7; margin-bottom: 8px; }
.my-moment-imgs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.my-moment-time { font-size: 11px; color: var(--text-2); }

/* =====================
   Skeleton 骨架屏
   ===================== */
.skeleton {
  height: 160px; background: var(--white); border-radius: 14px;
  overflow: hidden; position: relative;
}
.skeleton-sm { height: 72px; border-radius: 12px; }
.shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* =====================
   左侧分类菜单
   ===================== */
.sidebar {
  width: var(--sidebar-w);
  background: var(--white);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  overflow-x: hidden;
  flex-shrink: 0;
  -webkit-overflow-scrolling: touch;
}
.sidebar::-webkit-scrollbar { display: none; }

.cat-group { }
.cat-parent {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 10px 4px 6px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  user-select: none;
  transition: background 0.2s;
}
.cat-parent:active { background: var(--primary-light); }
.cat-parent.active { background: #f8f9fc; }
.cat-parent.active .cat-name { color: var(--primary); }
.cat-parent .cat-icon { font-size: 22px; line-height: 1; }
.cat-parent .cat-icon-img { width: 22px; height: 22px; border-radius: 4px; object-fit: cover; }
.cat-parent .cat-name { font-size: 11px; color: var(--text-2); margin-top: 4px; text-align: center; line-height: 1.3; }
.cat-parent.active .cat-name { color: var(--primary); font-weight: 600; }
.cat-parent .cat-arrow {
  font-size: 10px; color: var(--text-3); margin-top: 2px;
  transition: transform 0.25s;
  display: inline-block;
}
.cat-parent.expanded .cat-arrow { transform: rotate(180deg); }
.cat-parent .active-bar {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 60%; background: var(--primary); border-radius: 3px 0 0 3px;
  opacity: 0; transition: opacity 0.2s;
}
.cat-parent.active .active-bar { opacity: 1; }

.cat-children { display: none; background: #fafbfd; }
.cat-children.open { display: block; }
.cat-child {
  display: block; padding: 9px 6px 9px 12px;
  font-size: 12px; color: var(--text-2);
  border-bottom: 1px solid #f2f3f7;
  cursor: pointer; transition: all 0.15s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  position: relative;
}
.cat-child:active { background: var(--primary-light); }
.cat-child.active {
  color: var(--primary); font-weight: 600;
  background: linear-gradient(90deg, var(--primary-light) 0%, transparent 100%);
}
.cat-child.active::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--primary); border-radius: 0 3px 3px 0;
}

/* =====================
   右侧内容区
   ===================== */
.main-content {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  background: var(--bg);
  overflow: hidden;
}

/* =====================
   顶部 Tab 滑动导航
   ===================== */
.content-tabs {
  height: var(--tab-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-end;
  overflow-x: auto; overflow-y: hidden;
  flex-shrink: 0;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}
.content-tabs::-webkit-scrollbar { display: none; }
.tab-item {
  flex-shrink: 0;
  padding: 0 15px 10px;
  font-size: 13px; color: var(--text-3);
  cursor: pointer; position: relative;
  white-space: nowrap; transition: color 0.2s;
  scroll-snap-align: start;
  font-weight: 500;
}
.tab-item:active { color: var(--primary); }
.tab-item.active { color: var(--primary); font-weight: 700; }
.tab-item.active::after {
  content: ''; position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 3px;
  background: var(--primary); border-radius: 3px;
}

/* =====================
   内容区主体
   ===================== */
.content-body {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 12px;
}
.content-body::-webkit-scrollbar { display: none; }

/* =====================
   产品列表
   ===================== */
.product-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.product-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  cursor: pointer; transition: transform 0.18s, box-shadow 0.18s;
  position: relative;
}
.product-card:active { transform: scale(0.97); }
.product-card .card-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.product-card .card-info { padding: 8px 10px 10px; }
.product-card .card-name { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.4; margin-bottom: 2px; }
.product-card .card-price-label { font-size: 10px; color: var(--text-3); margin-bottom: 1px; }
.product-card .card-price { font-size: 15px; font-weight: 700; color: #ef4444; }
.product-card .card-tag {
  position: absolute; top: 8px; left: 8px;
  background: var(--primary); color: #fff;
  font-size: 10px; font-weight: 600;
  padding: 2px 7px; border-radius: 20px;
}

/* =====================
   内容面板通用
   ===================== */
.panel-title {
  font-size: 15px; font-weight: 700; color: var(--text);
  padding: 0 0 12px; display: flex; align-items: center; gap: 6px;
}
.panel-title::before { content: ''; display: inline-block; width: 4px; height: 16px; background: var(--primary); border-radius: 3px; }

/* 知识文章列表 */
.knowledge-list { display: flex; flex-direction: column; gap: 10px; }
.knowledge-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); cursor: pointer; transition: transform 0.15s;
  position: relative;
}
.knowledge-card:active { transform: scale(0.98); }
.knowledge-card .kc-cover { width: 100%; height: 140px; object-fit: cover; }
.knowledge-card .kc-body { padding: 12px; }
.knowledge-card .kc-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.knowledge-card .kc-meta { display: flex; align-items: center; gap: 6px; }
.kc-type-badge { font-size: 11px; padding: 2px 8px; border-radius: 20px; font-weight: 600; }
.kc-type-badge.article { background: #e8f0fe; color: #1a73e8; }
.kc-type-badge.video { background: #fef3f2; color: #d93025; }

/* 销售问答 */
.script-list { display: flex; flex-direction: column; gap: 10px; overflow: visible; }
.script-card {
  background: var(--white); border-radius: var(--radius);
  padding: 14px; box-shadow: var(--shadow); position: relative;
  overflow: visible;
}
.script-card .sc-title { font-size: 13px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.script-card .sc-text { font-size: 13px; color: var(--text-2); line-height: 1.7; }
.script-card .sc-actions { display: flex; gap: 8px; margin-top: 12px; }
.sc-btn {
  flex: 1; height: 34px; border-radius: 20px; font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  transition: opacity 0.15s;
}
.sc-btn:active { opacity: 0.75; }
.sc-btn.copy { background: var(--primary-light); color: var(--primary); }
.sc-btn.share { background: var(--primary); color: #fff; }

/* 资料下载 */
.material-list { display: flex; flex-direction: column; gap: 8px; }
.material-item {
  background: var(--white); border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow);
  position: relative;
  display: flex; align-items: center; gap: 12px;
}
.material-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.material-icon.pdf { background: #fef2f2; }
.material-icon.doc { background: #e8f0fe; }
.material-icon.docx { background: #e8f0fe; }
.material-icon.xlsx { background: #ecfdf5; }
.material-icon.ppt { background: #fff7ed; }
.material-icon.pptx { background: #fff7ed; }
.material-info { flex: 1; min-width: 0; }
.material-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.material-size { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.material-actions { display: flex; gap: 6px; flex-shrink: 0; }
.mat-btn {
  height: 30px; padding: 0 10px; border-radius: 20px;
  font-size: 11px; font-weight: 600;
  display: flex; align-items: center; gap: 3px;
}
.mat-btn.preview { background: var(--primary-light); color: var(--primary); }
.mat-btn.download { background: var(--primary); color: #fff; }

/* 相关素材 */
.asset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.asset-item { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 1/1; cursor: pointer; }
.asset-item img { width: 100%; height: 100%; object-fit: cover; }
.asset-item .asset-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.35);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  opacity: 0; transition: opacity 0.2s;
}
.asset-item:active .asset-overlay, .asset-item.show-overlay .asset-overlay { opacity: 1; }
.asset-item .asset-overlay button { background: rgba(255,255,255,0.9); border-radius: 6px; padding: 4px 10px; font-size: 11px; font-weight: 600; color: var(--primary); }
.asset-item .video-badge {
  position: absolute; top: 5px; left: 5px;
  background: rgba(0,0,0,0.55); color: #fff;
  font-size: 10px; padding: 2px 6px; border-radius: 6px;
}
/* 视频缩略图 — 第一帧背景 */
.video-thumb { position: relative; overflow: hidden; }
.video-thumb-bg {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  background: #1a1a2e;
}
/* 占位层 — 视频加载中或失败时显示 */
.video-thumb-placeholder {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px;
  z-index: 1;
  transition: opacity 0.35s;
}
.video-thumb-placeholder.hidden { opacity: 0; pointer-events: none; }
.video-thumb-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px;
  padding-left: 2px;
}
.video-thumb-label {
  color: rgba(255,255,255,0.7);
  font-size: 9px;
  text-align: center;
  padding: 0 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 90%;
}
.asset-section-header { font-size: 12px; color: var(--text-3); margin: 8px 0 6px; font-weight: 600; }

/* 朋友圈素材 */
.moment-list { display: flex; flex-direction: column; gap: 14px; }
.moment-card {
  background: var(--white); border-radius: var(--radius);
  padding: 14px; box-shadow: var(--shadow);
  position: relative;
}
.moment-text { font-size: 13px; color: var(--text); line-height: 1.75; margin-bottom: 10px; }
.moment-imgs { display: grid; gap: 4px; margin-bottom: 12px; }
.moment-imgs.cols-1 { grid-template-columns: 1fr; max-width: 220px; }
.moment-imgs.cols-2 { grid-template-columns: 1fr 1fr; }
.moment-imgs.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.moment-imgs img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 6px; }
.moment-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.moment-btn {
  flex: 1; min-width: 80px; height: 36px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  transition: opacity 0.15s;
}
.moment-btn:active { opacity: 0.75; }
.moment-btn.wechat, .moment-btn.friend, .moment-btn.copy, .moment-btn.save {
  background: #f0f4ff; color: #4a6cf7;
}
/* 朋友圈视频 */
.moment-video {
  margin-bottom: 10px; border-radius: 8px; overflow: hidden;
  cursor: pointer;
  position: relative;
}
.mv-video-bg {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  background: #1a1a2e;
}
.moment-video-inner {
  position: relative; z-index: 1;
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
  transition: opacity 0.35s;
}
.moment-video-inner.fade { opacity: 0.3; }
.mv-play-btn {
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px;
  padding-left: 3px;
  transition: background 0.2s;
}
.moment-video:active .mv-play-btn { background: rgba(255,255,255,0.35); }
.mv-label {
  color: rgba(255,255,255,0.65);
  font-size: 11px;
}

/* =====================
   弹出层 / Modal
   ===================== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.55);
  display: flex; flex-direction: column;
  animation: fadeIn 0.2s;
}
/* 确认弹窗：居中显示 */
#confirm-overlay { align-items: center; justify-content: center; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
.modal-overlay.hidden { display: none !important; }

.modal-sheet {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-radius: 16px 16px 0 0;
  max-height: 90vh;
  display: flex; flex-direction: column;
  animation: slideUp 0.28s cubic-bezier(0.34,1.2,0.64,1);
}
@keyframes slideUp { from { transform: translateY(100%) } to { transform: translateY(0) } }

.modal-header {
  padding: 14px 16px 10px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-header h3 { font-size: 16px; font-weight: 700; color: var(--text); }
.modal-close { width: 30px; height: 30px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--text-3); }

.modal-body { flex: 1; overflow-y: auto; padding: 16px; -webkit-overflow-scrolling: touch; }
.modal-body::-webkit-scrollbar { display: none; }

/* 知识内容 */
.knowledge-content h3 { font-size: 15px; font-weight: 700; color: var(--text); margin: 12px 0 8px; }
.knowledge-content p { font-size: 13px; color: var(--text-2); line-height: 1.8; margin-bottom: 10px; }
.knowledge-content strong { color: var(--primary); }
.knowledge-content img { width: 100%; border-radius: 8px; margin: 8px 0; }
.knowledge-content em { color: var(--accent); font-style: italic; }
.kc-video-wrap { position: relative; width: 100%; border-radius: 10px; overflow: hidden; background: #000; margin-bottom: 12px; }
.kc-video-wrap video { width: 100%; display: block; }
.knowledge-content video { width: 100%; border-radius: 8px; margin: 8px 0; background: #000; display: block; }

/* 文档预览 */
.doc-preview-wrap { width: 100%; }
.doc-preview-placeholder {
  background: var(--bg); border-radius: 12px; padding: 30px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--text-2); font-size: 13px; text-align: center;
}
.docx-preview { font-family: 'PingFang SC','Microsoft YaHei',sans-serif; }
.docx-preview h1,.docx-preview h2,.docx-preview h3 { margin: 12px 0 8px; font-weight: 700; }
.docx-preview h1 { font-size: 20px; }
.docx-preview h2 { font-size: 17px; }
.docx-preview h3 { font-size: 15px; }
.docx-preview p { margin: 6px 0; }
.docx-preview table { border-collapse: collapse; width: 100%; margin: 10px 0; font-size:13px; }
.docx-preview table td,.docx-preview table th { border:1px solid #ddd; padding:6px 8px; }
.docx-preview img { max-width: 100%; border-radius: 6px; }
.docx-preview ul,.docx-preview ol { padding-left: 20px; margin: 6px 0; }

/* PPTX 预览 */
.pptx-preview { width: 100%; }
.pptx-preview .slide { margin-bottom: 16px; border: 1px solid #eee; border-radius: 10px; overflow: hidden; background: #fff; }
.pptx-slide-num { text-align: center; font-size: 11px; color: #999; padding: 8px 0; background: var(--bg); }

/* 素材预览 */
.asset-preview-img { width: 100%; border-radius: 10px; }
.asset-preview-actions { display: flex; gap: 10px; margin-top: 14px; }
.asset-preview-btn {
  flex: 1; height: 44px; border-radius: 22px;
  font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.asset-preview-btn.download { background: var(--primary); color: #fff; }
.asset-preview-btn.save { background: var(--primary-light); color: var(--primary); }

/* 分享面板 */
.share-panel { padding: 0 0 10px; }
.share-title { font-size: 13px; color: var(--text-3); text-align: center; margin-bottom: 16px; }
.share-options { display: flex; justify-content: space-around; }
.share-opt { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.share-opt .share-icon { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 26px; background: var(--bg); }
.share-opt .share-label { font-size: 11px; color: var(--text-2); }
.share-opt:active .share-icon { opacity: 0.75; transform: scale(0.93); }
.share-cancel { display: block; width: 100%; height: 44px; margin-top: 14px; background: var(--bg); border-radius: 22px; color: var(--text-2); font-size: 14px; font-weight: 600; }

/* =====================
   Toast 提示
   ===================== */
.toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(10px);
  background: rgba(30,30,50,0.85); color: #fff;
  padding: 9px 20px; border-radius: 20px;
  font-size: 13px; font-weight: 500;
  z-index: 999; opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* =====================
   分类名称标题区 - 灰白色
   ===================== */
.category-hero {
  background: var(--white);
  padding: 14px 14px 12px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}
.category-hero .hero-title { font-size: 16px; font-weight: 700; color: var(--text); }
.category-hero .hero-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* =====================
   空状态
   ===================== */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  padding: 50px 20px; color: var(--text-3);
}
.empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state p { font-size: 14px; }

/* =====================
   图片全屏预览
   ===================== */
.img-viewer {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.92);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.img-viewer.hidden { display: none !important; }
.img-viewer img { max-width: 100%; max-height: 80vh; border-radius: 6px; }
.img-viewer .iv-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.15); color: #fff; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.img-viewer .iv-actions { position: absolute; bottom: 30px; display: flex; gap: 14px; }
.iv-action-btn { background: rgba(255,255,255,0.15); color: #fff; border-radius: 20px; padding: 8px 18px; font-size: 13px; font-weight: 600; }

/* 侧边栏加载态 */
.sidebar-loading { padding: 24px 8px; display: flex; align-items: center; justify-content: center; }
.sidebar-skel { width: 100%; }

/* 滚动条统一隐藏 */
* { scrollbar-width: none; -ms-overflow-style: none; }

/* =====================
   登录表单
   ===================== */
.login-page {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; background: var(--bg);
  padding: 20px;
}
.login-card {
  width: 100%; max-width: 360px;
  background: var(--white); border-radius: 16px;
  padding: 36px 28px;
  box-shadow: var(--shadow-lg);
}
.login-card .login-logo {
  width: 64px; height: 64px; border-radius: 16px;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; margin: 0 auto 16px;
}
.login-card .login-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.login-card h2 { text-align: center; font-size: 20px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.login-card .login-sub { text-align: center; font-size: 13px; color: var(--text-3); margin-bottom: 24px; }
.login-card .form-group { margin-bottom: 16px; }
.login-card .form-label { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; display: block; }
.login-card .form-input {
  width: 100%; height: 44px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 10px;
  font-size: 14px; color: var(--text); background: var(--bg);
  transition: border-color 0.2s;
}
.login-card .form-input:focus { outline: none; border-color: var(--primary); background: var(--white); }
.login-card .login-btn {
  width: 100%; height: 46px; border-radius: 23px;
  background: var(--primary); color: #fff;
  font-size: 15px; font-weight: 700;
  margin-top: 8px; transition: opacity 0.2s;
}
.login-card .login-btn:active { opacity: 0.85; }
.login-card .login-error {
  color: #ef4444; font-size: 12px; text-align: center;
  margin-top: 12px; min-height: 18px;
}

/* =====================
   全局动画
   ===================== */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ============================================================
   ====== PC 端响应式布局 (≥768px) ======
   ============================================================ */
@media (min-width: 768px) {
  :root {
    --sidebar-w: 220px;
    --header-h: 60px;
    --tab-h: 50px;
    --radius: 14px;
  }

  body { font-size: 15px; overflow: hidden; }

  /* Header */
  .app-header { padding: 0 24px; }

  /* Bottom nav PC */
  .bottom-nav { height: 60px; padding-bottom: 0; }
  .bottom-nav .bn-icon { font-size: 24px; }
  .bottom-nav .bn-label { font-size: 12px; }

  /* App body: account for bottom tab */
  .app-body { top: var(--header-h); bottom: 60px; }
  .app-header .logo-icon { width: 36px; height: 36px; border-radius: 9px; font-size: 18px; }
  .app-header .logo-text { font-size: 17px; letter-spacing: 0.5px; }
  .app-header .header-actions { gap: 16px; }
  .app-header .admin-entry {
    font-size: 13px; padding: 7px 16px; border-radius: 20px;
    transition: all 0.2s;
  }
  .app-header .admin-entry:hover { background: var(--primary); color: #fff; }

  /* Search */
  .lib-search-wrap { padding: 0 14px 8px; }
  .search-box { max-width: 280px; height: 38px; border-radius: 22px; padding: 0 14px; }
  .search-box:focus-within { max-width: 360px; }
  .search-box .search-icon { font-size: 15px; }
  .search-box .search-input { font-size: 14px; }
  .search-results { top: 48px; border-radius: 14px; max-height: 400px; }
  .search-result-item { padding: 12px 18px; }
  .search-result-item .sri-img { width: 44px; height: 44px; border-radius: 10px; }
  .search-result-item .sri-name { font-size: 14px; }

  /* Sidebar — PC 宽侧边栏 */
  .sidebar { width: var(--sidebar-w); }
  .cat-parent {
    flex-direction: row; align-items: center; gap: 10px;
    padding: 12px 16px; border-bottom: 1px solid var(--border);
    transition: background 0.2s;
  }
  .cat-parent:hover { background: var(--primary-light); }
  .cat-parent .cat-icon { font-size: 24px; }
  .cat-parent .cat-icon-img { width: 24px; height: 24px; }
  .cat-parent .cat-name { font-size: 14px; margin-top: 0; flex: 1; text-align: left; }
  .cat-parent .cat-arrow { font-size: 12px; }
  .cat-parent .active-bar { width: 4px; height: 70%; }
  .cat-children { background: #f8f9fc; }
  .cat-child {
    padding: 10px 16px 10px 48px; font-size: 13px;
    transition: all 0.15s;
  }
  .cat-child:hover { background: var(--primary-light); padding-left: 52px; }

  /* Category hero */
  .category-hero { padding: 18px 24px 14px; }
  .category-hero .hero-title { font-size: 20px; }
  .category-hero .hero-sub { font-size: 13px; margin-top: 4px; }

  /* Content tabs */
  .content-tabs { height: var(--tab-h); padding: 0 12px; }
  .tab-item { padding: 0 20px 12px; font-size: 14px; }
  .tab-item:hover { color: var(--primary); }

  /* Content body */
  .content-body { padding: 20px 24px; max-width: 1200px; margin: 0 auto; width: 100%; }

  /* Product grid — 4 columns */
  .product-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .product-card { border-radius: var(--radius); transition: transform 0.2s, box-shadow 0.2s; }
  .product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
  .product-card .card-info { padding: 10px 12px 12px; }
  .product-card .card-name { font-size: 14px; }
  .product-card .card-price { font-size: 17px; }

  /* Knowledge list — 2 column grid */
  .knowledge-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .knowledge-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
  .knowledge-card .kc-cover { height: 180px; }
  .knowledge-card .kc-body { padding: 14px; }
  .knowledge-card .kc-title { font-size: 15px; }

  /* Sales scripts — 2 column */
  .script-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .script-card { padding: 16px; }
  .script-card .sc-title { font-size: 14px; }
  .script-card .sc-text { font-size: 14px; }
  .sc-btn { height: 38px; font-size: 13px; border-radius: 22px; transition: opacity 0.2s; }
  .sc-btn:hover { opacity: 0.85; }

  /* Materials */
  .material-list { gap: 10px; }
  .material-item { padding: 14px 18px; border-radius: var(--radius); transition: box-shadow 0.2s; }
  .material-item:hover { box-shadow: var(--shadow-md); }
  .material-icon { width: 44px; height: 44px; font-size: 22px; }
  .material-name { font-size: 14px; }
  .mat-btn { height: 34px; padding: 0 14px; font-size: 12px; border-radius: 22px; }
  .mat-btn:hover { opacity: 0.85; }

  /* Asset grid — 5 columns */
  .asset-grid { grid-template-columns: repeat(5, 1fr); gap: 10px; }
  .asset-item { border-radius: 10px; }
  .asset-item:hover .asset-overlay { opacity: 1; }
  .asset-item:hover { transform: scale(1.03); transition: transform 0.2s; }

  /* Moments */
  .moment-list { gap: 18px; }
  .moment-card { padding: 18px; border-radius: var(--radius); }
  .moment-text { font-size: 14px; line-height: 1.8; }
  .moment-imgs.cols-3 { max-width: 360px; }
  .moment-btn { height: 40px; font-size: 13px; border-radius: 22px; }
  .moment-btn:hover { opacity: 0.85; }

  /* Panel title */
  .panel-title { font-size: 17px; padding-bottom: 16px; }
  .panel-title::before { width: 5px; height: 20px; }

  /* Modal — centered dialog on PC */
  .modal-overlay { align-items: center; justify-content: center; padding: 40px; }
  .modal-sheet {
    position: relative; bottom: auto; left: auto; right: auto;
    width: 100%; max-width: 720px; max-height: 85vh;
    border-radius: 16px;
    animation: modalPopIn 0.3s cubic-bezier(0.34,1.2,0.64,1);
  }
  @keyframes modalPopIn {
    from { transform: scale(0.95) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
  }
  .modal-header { padding: 18px 24px 12px; }
  .modal-header h3 { font-size: 18px; }
  .modal-close { width: 34px; height: 34px; font-size: 20px; }
  .modal-close:hover { background: var(--primary-light); color: var(--primary); }
  .modal-body { padding: 20px 24px; }

  /* Knowledge content in modal */
  .knowledge-content h3 { font-size: 17px; }
  .knowledge-content p { font-size: 14px; line-height: 1.9; }

  /* Image viewer */
  .img-viewer img { max-height: 82vh; border-radius: 8px; }
  .img-viewer .iv-close { width: 42px; height: 42px; font-size: 24px; }
  .img-viewer .iv-close:hover { background: rgba(255,255,255,0.25); }
  .iv-action-btn { padding: 10px 24px; font-size: 14px; }
  .iv-action-btn:hover { background: rgba(255,255,255,0.25); }

  /* Empty state */
  .empty-state { padding: 60px 24px; }
  .empty-state .empty-icon { font-size: 56px; }

  /* Toast */
  .toast { bottom: 40px; font-size: 14px; padding: 11px 24px; }

  /* Loading spinner */
  .loading-spinner .spinner {
    width: 36px !important; height: 36px !important;
  }

  /* Back button in detail panel */
  #detail-panel > div:first-child { gap: 12px; margin-bottom: 16px; }
  #detail-panel > div:first-child button { font-size: 14px; padding: 8px 18px; border-radius: 22px; }
  #detail-panel > div:first-child button:hover { background: var(--primary); color: #fff; }
  #detail-product-name { font-size: 16px; }

  /* Detail panel content */
  #tab-content { max-width: 1200px; margin: 0 auto; }

  /* Doc download button */
  #doc-download-btn a { padding: 12px 32px; font-size: 15px; }
  #doc-download-btn a:hover { opacity: 0.9; }

  /* Asset preview */
  .asset-preview-btn { height: 48px; font-size: 15px; }
  .asset-preview-btn:hover { opacity: 0.9; }
}

/* ====== Wide desktop (≥1200px) ====== */
@media (min-width: 1200px) {
  :root { --sidebar-w: 240px; }

  .product-grid { grid-template-columns: repeat(5, 1fr); gap: 18px; }
  .asset-grid { grid-template-columns: repeat(6, 1fr); }
  .content-body { padding: 24px 32px; }
  .modal-sheet { max-width: 800px; }

  /* Knowledge cards: 3 columns on wide */
  .knowledge-list { grid-template-columns: repeat(3, 1fr); }

  /* Scripts: 3 columns on wide */
  .script-list { grid-template-columns: repeat(3, 1fr); }
}

/* ====== Ultra-wide (≥1600px) ====== */
@media (min-width: 1600px) {
  .product-grid { grid-template-columns: repeat(6, 1fr); }
  .content-body { max-width: 1400px; }
  #tab-content { max-width: 1400px; }
}

/* ====== 收藏功能样式 ====== */
/* 收藏星标 */
.fav-star {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
  font-size: 20px;
  cursor: pointer;
  color: #ccc;
  text-shadow: 0 0 2px rgba(0,0,0,0.15);
  transition: all 0.2s;
  user-select: none;
  line-height: 1;
}
.fav-star:hover { transform: scale(1.3); color: #f0c040; }
.fav-star.favorited { color: #f0c040; text-shadow: 0 0 4px rgba(240,192,64,0.5); }
.fav-star.favorited:hover { color: #d0a020; }

/* 资料卡片星标：放在下载按钮后面，inline对齐 */
.material-item .fav-star {
  position: static;
  top: auto;
  right: auto;
  left: auto;
  font-size: 18px;
  margin-left: 4px;
  align-self: center;
  text-shadow: none;
  color: #ccc;
}
.material-item .fav-star:hover { color: #f0c040; transform: scale(1.2); }
.material-item .fav-star.favorited { color: #f0c040; }
.material-item .fav-star.favorited:hover { color: #d0a020; }
/* 不需要让出位置 */
.material-item .material-icon { margin-left: 0; }
/* 素材卡片的星标缩小并贴边 */
.asset-item .fav-star { font-size: 16px; top: 4px; right: 4px; }

/* 收藏按钮（跟其他按钮同款风格，区分收藏/取消状态） */
.fav-btn {
  flex: 1; height: 34px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  cursor: pointer; border: none; font-family: inherit;
  background: #f0f4ff; color: #4a6cf7;
  transition: all 0.15s;
}
.fav-btn:hover { background: #e0e8ff; }
.fav-btn.favorited { background: #fff3cc; color: #8a6000; }
.fav-btn.favorited:hover { background: #ffeb99; }

/* 朋友圈卡片的星标：右上角 */
.moment-card .fav-star { position: absolute; top: 12px; right: 14px; font-size: 22px; }
.moment-card .moment-text { padding-right: 30px; }
.moment-card .moment-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.moment-card .moment-actions .moment-btn { flex: 1; min-width: 0; }

/* 朋友圈产品标签：放在actions行内 */
.moment-prod-tag {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 11px; font-weight: 600; padding: 3px 10px;
  border-radius: 8px; background: #eef1fd; color: #4a6cf7;
  white-space: nowrap; max-width: 130px; overflow: hidden; text-overflow: ellipsis;
}

/* ===== 收藏面板的归属标签 ===== */
.kc-prod-tag, .sc-prod-tag, .asset-prod-tag, .fav-prod-tag {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 8px;
  background: #eef1fd;
  color: #4a6cf7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}
.kc-prod-tag { font-size: 11px; }
.sc-prod-tag { font-size: 11px; margin-left: 6px; }
.asset-prod-tag { display: block; color: rgba(255,255,255,0.95); background: rgba(0,0,0,0.4); font-size: 10px; margin-top: 4px; padding: 2px 6px; max-width: 100%; }

/* 资料文件大小行合并产品名 */
.material-meta { font-size: 11px; color: #999; margin-top: 2px; }

/* 朋友圈：紧凑左图右文布局 */
.fav-moment-list { display: flex; flex-direction: column; gap: 10px; }
.fav-moment-item {
  display: flex;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  position: relative;
  gap: 12px;
}
.fav-moment-cover {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: #f0f0f0;
}
.fav-moment-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fav-mv-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  font-size: 26px; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.fav-img-count {
  position: absolute; bottom: 4px; right: 4px;
  background: rgba(0,0,0,0.5); color: #fff; font-size: 10px;
  padding: 1px 6px; border-radius: 8px;
}
.fav-moment-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding-right: 28px; }
.fav-moment-text {
  font-size: 13px; color: #333; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.fav-moment-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fav-type-tag {
  font-size: 10px; padding: 1px 6px; border-radius: 6px;
  background: #fff3e0; color: #ff9800; font-weight: 600;
}
.fav-moment-time { font-size: 11px; color: #999; margin-left: auto; }
.fav-moment-actions { display: flex; gap: 6px; }
.fav-moment-actions .fc-btn {
  flex: 1; font-size: 11px; padding: 4px 0; border-radius: 6px;
  border: none; background: #f0f4ff; color: #4a6cf7; font-weight: 600;
}
.fav-moment-actions .fc-btn.copy { background: #eef1fd; color: #4a6cf7; }
.fav-moment-actions .fc-btn.share { background: #fff3e0; color: #ff9800; }

/* ====== 确认弹窗 ====== */
.confirm-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px 20px;
  width: 85vw;
  max-width: 340px;
  text-align: center;
  box-shadow: 0 12rpx 40rpx rgba(0,0,0,0.2);
}
.confirm-icon { font-size: 48px; margin-bottom: 12px; }
.confirm-title { font-size: 17px; font-weight: 700; color: #1a1a2e; margin-bottom: 8px; }
.confirm-msg { font-size: 14px; color: #666; line-height: 1.6; margin-bottom: 20px; white-space: pre-wrap; }
.confirm-actions { display: flex; gap: 10px; }
.confirm-btn { flex: 1; padding: 12px; border: none; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.confirm-btn.cancel { background: #f0f0f0; color: #666; }
.confirm-btn.cancel:hover { background: #e5e5e5; }
.confirm-btn.ok { background: var(--primary,#4a6cf7); color: #fff; }
.confirm-btn.ok:hover { opacity: 0.9; }
.confirm-btn.danger { background: #ff4d4f; }

/* 收藏Tab面板 */
.fav-scroll { padding: 0 0 80px; height: 100%; overflow-y: auto; }
.fav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  border-bottom: 1px solid #eee;
}
.fav-h2 { font-size: 18px; font-weight: 700; color: #1a1a2e; }
.fav-count { font-size: 12px; color: #999; }
.fav-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 16px;
  overflow-x: auto;
  border-bottom: 1px solid #eee;
  -webkit-overflow-scrolling: touch;
  flex-shrink: 0;
}
.fav-tabs .ft-item {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  background: #f5f5f5;
  color: #666;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.fav-tabs .ft-item.active { background: var(--primary,#4a6cf7); color: #fff; }
.fav-body { padding: 12px 16px; }

/* 收藏分组 */
.fav-group { margin-bottom: 16px; }
.fav-group-title {
  font-size: 13px;
  font-weight: 700;
  color: #666;
  padding: 6px 0 8px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 8px;
}
.fav-group-items { display: flex; flex-direction: column; gap: 6px; }

/* 收藏单条 */
.fav-item {
  display: flex;
  align-items: flex-start;
  padding: 10px 12px;
  background: #fafafa;
  border-radius: 8px;
  border: 1px solid #eee;
  position: relative;
  transition: all 0.15s;
}
.fav-item:hover { background: #f0f4ff; border-color: #d0d8f0; }
.fav-item .fav-star { position: relative; top: 1px; right: auto; margin-right: 10px; flex-shrink: 0; }
.fav-item-content { flex: 1; min-width: 0; }
.fav-item-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
  line-height: 1.4;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fav-item-title:hover { color: var(--primary,#4a6cf7); }
.fav-item-meta {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}
