/* 内容社区 Web 版样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #07c160;
  --primary-dark: #06ad56;
  --bg: #f5f6f7;
  --card: #ffffff;
  --text: #1a1a1a;
  --text-2: #555555;
  --text-3: #999999;
  --border: #ececec;
  --danger: #ee0a24;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.06);
  --shadow-hover: 0 4px 12px rgba(0,0,0,.1);
}

html { font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ===== 顶部导航 ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  height: 56px;
}
.navbar-inner {
  max-width: 1000px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
  height: 100%; padding: 0 16px;
}
.logo {
  font-size: 1.15rem; font-weight: 700; color: var(--text);
  text-decoration: none; display: flex; align-items: center; gap: 8px;
  cursor: pointer;
}
.logo .dot { color: var(--primary); }
.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-link {
  padding: 6px 14px; border-radius: 8px;
  color: var(--text-2); text-decoration: none; font-size: .92rem; font-weight: 500;
  cursor: pointer; border: none; background: none;
  transition: all .15s;
}
.nav-link:hover { background: #f0f0f0; }
.nav-link.active { color: var(--primary); background: rgba(7,193,96,.08); }
.nav-user { display: flex; align-items: center; gap: 10px; }
.nav-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: #eee; object-fit: cover; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; color: #999;
}
.nav-nickname { font-size: .88rem; color: var(--text-2); max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 18px; border-radius: 8px; border: 1px solid var(--border);
  background: #fff; color: var(--text); font-size: .9rem; font-weight: 500;
  cursor: pointer; transition: all .15s; text-decoration: none;
}
.btn:hover { border-color: #ccc; background: #fafafa; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-danger { color: var(--danger); border-color: var(--danger); background: transparent; }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { padding: 4px 12px; font-size: .8rem; border-radius: 6px; }
.btn-block { width: 100%; padding: 11px; font-size: .95rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ===== 主容器 ===== */
.container { max-width: 1000px; margin: 0 auto; padding: 20px 16px 90px; }

/* ===== 分类筛选 ===== */
.filter-bar {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 14px;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-chip {
  padding: 6px 16px; border-radius: 20px; border: 1px solid var(--border);
  background: #fff; color: var(--text-2); font-size: .85rem;
  cursor: pointer; white-space: nowrap; transition: all .15s;
}
.filter-chip:hover { border-color: #bbb; }
.filter-chip.active { background: #1a1a1a; border-color: #1a1a1a; color: #fff; }

/* ===== 文章卡片 ===== */
.article-list { display: flex; flex-direction: column; gap: 14px; }
.article-card {
  background: var(--card); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow);
  cursor: pointer; transition: box-shadow .2s, transform .2s;
}
.article-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.article-title { font-size: 1.08rem; font-weight: 600; margin-bottom: 6px; }
.article-excerpt { font-size: .9rem; color: var(--text-2); margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-images { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.article-images img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.article-meta { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--text-3); }
.meta-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: #eee; }
.meta-cat { background: #f0f0f0; padding: 1px 10px; border-radius: 10px; font-size: .76rem; }
.meta-actions { margin-left: auto; display: flex; gap: 16px; }
.meta-action { display: flex; align-items: center; gap: 4px; cursor: pointer; user-select: none; }
.meta-action.liked { color: var(--danger); }
.meta-action:hover { color: var(--primary); }
.meta-action.report:hover { color: var(--danger); }

/* ===== 摄影瀑布流 ===== */
.waterfall { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.photo-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); cursor: pointer;
  transition: box-shadow .2s, transform .2s;
}
.photo-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.photo-cover { position: relative; background: #111; }
.photo-cover img { width: 100%; display: block; }
.photo-price {
  position: absolute; top: 10px; right: 10px;
  background: rgba(238,10,36,.92); color: #fff;
  font-size: .76rem; font-weight: 600; padding: 3px 10px; border-radius: 12px;
}
.photo-count {
  position: absolute; top: 10px; left: 10px;
  background: rgba(0,0,0,.55); color: #fff;
  font-size: .74rem; padding: 3px 10px; border-radius: 12px;
}
.photo-info { padding: 12px 14px 14px; }
.photo-title { font-size: .95rem; font-weight: 600; margin-bottom: 6px; }
.photo-exif { font-size: .76rem; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.photo-author-row { display: flex; align-items: center; gap: 8px; }
.photo-author-row img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background: #eee; }
.photo-author-name { font-size: .8rem; color: var(--text-2); flex: 1; }
.photo-like { font-size: .82rem; color: var(--text-3); }
.photo-like.liked { color: var(--danger); }

/* ===== 详情页 ===== */
.detail-wrap { max-width: 720px; margin: 0 auto; }
.detail-card { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.detail-title { font-size: 1.4rem; font-weight: 700; line-height: 1.4; margin-bottom: 14px; }
.detail-author-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid var(--border); margin-bottom: 16px;
}
.detail-author-row img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #eee; }
.detail-author-name { font-weight: 600; font-size: .95rem; }
.detail-time { font-size: .78rem; color: var(--text-3); }
.detail-content { font-size: .98rem; color: var(--text); line-height: 1.8; white-space: pre-wrap; }
.detail-images { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.detail-images img { width: 100%; border-radius: 10px; cursor: zoom-in; }
.exif-box {
  background: #f8f9fa; border-radius: 10px; padding: 16px;
  margin-top: 16px; font-size: .88rem;
}
.exif-box h4 { font-size: .84rem; color: var(--text-2); margin-bottom: 10px; }
.exif-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.exif-item .label { font-size: .72rem; color: var(--text-3); }
.exif-item .value { color: var(--text); }
.album-link {
  display: flex; align-items: center; gap: 6px;
  margin-top: 14px; padding: 12px 14px;
  background: rgba(7,193,96,.06); border-radius: 10px;
  color: var(--primary); font-size: .88rem; cursor: pointer;
}
.detail-actions {
  display: flex; gap: 14px; align-items: center;
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border);
}
.detail-action {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 18px; border-radius: 20px;
  border: 1px solid var(--border); cursor: pointer; font-size: .88rem; color: var(--text-2);
  background: none; transition: all .15s;
}
.detail-action:hover { border-color: #bbb; }
.detail-action.liked { color: var(--danger); border-color: rgba(238,10,36,.3); background: rgba(238,10,36,.05); }
.detail-action.buy { margin-left: auto; background: var(--danger); color: #fff; border-color: var(--danger); }

/* ===== 评论区 ===== */
.comments-card { background: var(--card); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow); margin-top: 16px; }
.comments-title { font-size: 1rem; font-weight: 600; margin-bottom: 16px; }
.comment-item { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.comment-item:last-child { border-bottom: none; }
.comment-item img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #eee; flex-shrink: 0; }
.comment-body { flex: 1; min-width: 0; }
.comment-name { font-size: .84rem; font-weight: 600; }
.comment-time { font-size: .72rem; color: var(--text-3); margin-left: 8px; }
.comment-text { font-size: .9rem; color: var(--text-2); margin-top: 3px; word-break: break-word; }
.comment-report { font-size: .74rem; color: var(--text-3); cursor: pointer; margin-top: 4px; }
.comment-report:hover { color: var(--danger); }
.comment-input-row { display: flex; gap: 10px; margin-top: 16px; }
.comment-input {
  flex: 1; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: 10px; font-size: .9rem; outline: none; background: #fafafa;
}
.comment-input:focus { border-color: var(--primary); background: #fff; }

/* ===== 表单页 ===== */
.form-card { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: .86rem; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.form-input, .form-textarea, .form-select {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: 10px; font-size: .92rem; outline: none; background: #fafafa;
  font-family: inherit; transition: border .15s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--primary); background: #fff; }
.form-textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-hint { font-size: .76rem; color: var(--text-3); margin-top: 4px; }
.char-count { text-align: right; font-size: .74rem; color: var(--text-3); margin-top: 4px; }

/* 图片上传九宫格 */
.image-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.image-cell {
  position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden;
  background: #f0f0f0;
}
.image-cell img { width: 100%; height: 100%; object-fit: cover; }
.image-remove {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px;
  background: rgba(0,0,0,.6); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; cursor: pointer; border: none;
}
.image-cover-tag {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,.55); color: #fff; font-size: .68rem;
  text-align: center; padding: 2px 0;
}
.upload-add {
  aspect-ratio: 1; border: 2px dashed #ddd; border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #bbb; cursor: pointer; background: #fafafa; gap: 4px;
  transition: border .15s;
}
.upload-add:hover { border-color: var(--primary); color: var(--primary); }
.upload-add .plus { font-size: 1.8rem; line-height: 1; }
.upload-add .txt { font-size: .74rem; }

/* 分类选择 */
.cat-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-chip {
  padding: 7px 18px; border-radius: 20px; border: 1px solid var(--border);
  background: #fafafa; font-size: .86rem; color: var(--text-2); cursor: pointer;
}
.cat-chip.active { background: #1a1a1a; border-color: #1a1a1a; color: #fff; }

/* 相册选择 */
.album-picker { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.album-picker-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 14px; font-size: .9rem; cursor: pointer;
  border-bottom: 1px solid var(--border);
}
.album-picker-item:last-child { border-bottom: none; }
.album-picker-item:hover { background: #f7f7f7; }
.album-picker-item .cnt { font-size: .78rem; color: var(--text-3); }
.album-picker-item.selected { color: var(--primary); font-weight: 600; }

/* 付费开关 */
.price-row { display: flex; align-items: center; gap: 12px; }
.price-input-wrap {
  display: flex; align-items: center; border: 1px solid var(--border);
  border-radius: 10px; padding: 0 12px; background: #fafafa;
}
.price-input-wrap .yen { color: var(--text-3); }
.price-input { width: 90px; border: none; background: none; padding: 10px 6px; font-size: 1rem; color: var(--danger); font-weight: 600; outline: none; }
.price-input-wrap .unit { font-size: .78rem; color: var(--text-3); }

/* ===== 登录页 ===== */
.auth-wrap { max-width: 400px; margin: 40px auto; }
.auth-tabs { display: flex; margin-bottom: 20px; background: #fff; border-radius: 10px; padding: 4px; box-shadow: var(--shadow); }
.auth-tab {
  flex: 1; text-align: center; padding: 10px; border-radius: 8px;
  font-size: .92rem; font-weight: 600; cursor: pointer; color: var(--text-2);
}
.auth-tab.active { background: var(--primary); color: #fff; }

/* ===== 个人中心 ===== */
.profile-header {
  background: linear-gradient(135deg, var(--primary), #059a4c);
  border-radius: var(--radius); padding: 26px; color: #fff;
  display: flex; align-items: center; gap: 16px; margin-bottom: 16px;
}
.profile-header img { width: 64px; height: 64px; border-radius: 50%; border: 3px solid rgba(255,255,255,.5); object-fit: cover; background: rgba(255,255,255,.2); }
.profile-nickname { font-size: 1.2rem; font-weight: 700; }
.profile-username { font-size: .8rem; opacity: .85; margin-top: 2px; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.stat-card { background: var(--card); border-radius: var(--radius); padding: 16px; text-align: center; box-shadow: var(--shadow); }
.stat-num { font-size: 1.4rem; font-weight: 700; }
.stat-label { font-size: .76rem; color: var(--text-3); margin-top: 2px; }
.menu-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 15px 18px; border-bottom: 1px solid var(--border);
  cursor: pointer; font-size: .92rem;
}
.menu-item:last-child { border-bottom: none; }
.menu-item:hover { background: #f7f7f7; }
.menu-item .arrow { margin-left: auto; color: #ccc; }
.menu-icon { font-size: 1.05rem; }

/* ===== 相册列表 ===== */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.album-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); cursor: pointer; transition: transform .15s, box-shadow .15s;
  position: relative;
}
.album-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.album-cover { aspect-ratio: 16/10; background: linear-gradient(135deg,#e8e8e8,#f5f5f5); display: flex; align-items: center; justify-content: center; color: #bbb; font-size: 2rem; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; }
.album-info { padding: 12px 14px; }
.album-name { font-size: .95rem; font-weight: 600; }
.album-meta { font-size: .76rem; color: var(--text-3); margin-top: 2px; }
.album-del {
  position: absolute; top: 8px; right: 8px; width: 28px; height: 28px;
  background: rgba(0,0,0,.5); color: #fff; border-radius: 50%; border: none;
  font-size: .9rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* ===== 空状态/加载 ===== */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-3); }
.empty-state .icon { font-size: 2.4rem; margin-bottom: 10px; opacity: .4; }
.empty-state .sub { font-size: .82rem; margin-top: 4px; }
.load-more { text-align: center; padding: 20px; color: var(--text-3); font-size: .84rem; }
.loading-spinner {
  width: 28px; height: 28px; margin: 40px auto;
  border: 3px solid #e5e5e5; border-top-color: var(--primary);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== 通用提示 ===== */
.toast {
  position: fixed; bottom: 70px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: rgba(0,0,0,.78); color: #fff; padding: 10px 22px;
  border-radius: 8px; font-size: .86rem; opacity: 0;
  transition: all .25s; pointer-events: none; z-index: 1000;
  max-width: 85vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 模态框 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 500;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-mask.show { display: flex; }
.modal-box {
  background: #fff; border-radius: 14px; padding: 24px;
  max-width: 380px; width: 100%; box-shadow: 0 10px 40px rgba(0,0,0,.2);
}
.modal-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.modal-text { font-size: .9rem; color: var(--text-2); margin-bottom: 18px; line-height: 1.6; }
.modal-input {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: 10px; font-size: .92rem; outline: none; margin-bottom: 18px;
}
.modal-input:focus { border-color: var(--primary); }
.modal-btns { display: flex; gap: 10px; }
.modal-btns .btn { flex: 1; }

/* 图片查看器 */
.img-viewer {
  position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 900;
  display: none; align-items: center; justify-content: center; cursor: zoom-out;
}
.img-viewer.show { display: flex; }
.img-viewer img { max-width: 95vw; max-height: 90vh; object-fit: contain; }

/* ===== 移动端适配 ===== */
.bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff; border-top: 1px solid var(--border); z-index: 200;
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 6px 0 4px; color: var(--text-3); font-size: .68rem; cursor: pointer;
}
.bottom-nav-item .bi { font-size: 1.25rem; line-height: 1.2; }
.bottom-nav-item.active { color: var(--primary); }

.fab {
  position: fixed; right: 18px; bottom: 78px;
  width: 48px; height: 48px; border-radius: 50%;
  background: #1a1a1a; color: #fff; font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.25); z-index: 150;
  border: none; user-select: none;
}
.fab:active { transform: scale(.93); }

@media (max-width: 640px) {
  .navbar-inner { gap: 8px; }
  .nav-links { display: none; }
  .nav-nickname { display: none; }
  .container { padding: 14px 12px 100px; }
  .bottom-nav { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .exif-grid { grid-template-columns: 1fr; }
  .waterfall { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .article-images { grid-template-columns: repeat(3, 1fr); }
  .image-grid { grid-template-columns: repeat(3, 1fr); }
  .fab { bottom: 72px; }
  .detail-title { font-size: 1.2rem; }
}
@media (min-width: 641px) {
  .waterfall { grid-template-columns: repeat(3, 1fr); }
}

/* ===== 管理后台 ===== */
.nav-admin-btn {
  font-size: 1.05rem; text-decoration: none; padding: 4px 6px;
  border-radius: 8px; line-height: 1;
}
.nav-admin-btn:hover { background: #f0f0f0; }

.admin-wrap { max-width: 860px; margin: 0 auto; padding: 4px 0 40px; }
.admin-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.admin-head h2 { font-size: 1.25rem; }
.admin-role-tag {
  font-size: .68rem; font-weight: 700; letter-spacing: 1px;
  background: linear-gradient(135deg, #ff9500, #ff5e3a);
  color: #fff; padding: 2px 8px; border-radius: 6px;
}
.admin-tabs {
  display: flex; gap: 4px; background: #fff; border: 1px solid var(--border);
  border-radius: 10px; padding: 4px; margin-bottom: 16px;
  overflow-x: auto;
}
.admin-tab {
  flex: 1; text-align: center; padding: 8px 10px; border-radius: 8px;
  color: var(--text-2); text-decoration: none; font-size: .88rem;
  font-weight: 500; white-space: nowrap; transition: all .15s;
}
.admin-tab:hover { background: #f5f5f5; }
.admin-tab.active { background: var(--primary); color: #fff; }

.admin-stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-bottom: 18px;
}
.admin-stat {
  background: var(--card); border-radius: var(--radius); padding: 18px 12px;
  text-align: center; box-shadow: var(--shadow); text-decoration: none;
  color: var(--text); transition: box-shadow .15s;
}
.admin-stat:hover { box-shadow: var(--shadow-hover); }
.admin-stat .num { font-size: 1.6rem; font-weight: 700; color: var(--primary); }
.admin-stat.warn .num { color: #ff9500; }
.admin-stat .label { font-size: .78rem; color: var(--text-3); margin-top: 2px; }

.admin-tips {
  background: #fffbe8; border: 1px solid #ffe58f; border-radius: var(--radius);
  padding: 14px 16px;
}
.admin-tips .tip { font-size: .82rem; color: #8c6d1f; line-height: 2; }

.admin-toolbar {
  display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap;
}
.admin-select {
  padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px;
  background: #fff; font-size: .85rem; color: var(--text); outline: none;
}
.admin-input {
  flex: 1; min-width: 160px; padding: 7px 12px; border: 1px solid var(--border);
  border-radius: 8px; font-size: .85rem; outline: none;
}
.admin-input:focus { border-color: var(--primary); }

.admin-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border-radius: var(--radius);
  padding: 12px 16px; margin-bottom: 10px; box-shadow: var(--shadow);
}
.admin-row-main { flex: 1; min-width: 0; }
.admin-row-title {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: .92rem; font-weight: 500;
}
.admin-row-title a { color: var(--text); text-decoration: none; }
.admin-row-title a:hover { color: var(--primary); }
.admin-row-sub {
  font-size: .76rem; color: var(--text-3); margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.admin-row-actions { display: flex; gap: 6px; flex-shrink: 0; }
.admin-username { font-size: .78rem; color: var(--text-3); font-weight: 400; }
.admin-self { font-size: .76rem; color: var(--text-3); }

.admin-ch-tag {
  font-size: .68rem; padding: 1px 7px; border-radius: 5px;
  background: rgba(7,193,96,.1); color: var(--primary);
  font-weight: 500;
}
.admin-badge-tag {
  font-size: .68rem; padding: 1px 7px; border-radius: 5px; font-weight: 500;
}
.admin-badge-tag.ok { background: rgba(7,193,96,.1); color: var(--primary); }
.admin-badge-tag.warn { background: #fff7e6; color: #d48806; }
.admin-badge-tag.danger { background: #fff1f0; color: var(--danger); }
.admin-badge-tag.mute { background: #f5f5f5; color: var(--text-3); }

.admin-report-row { align-items: flex-start; }

@media (max-width: 640px) {
  .admin-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-tab { font-size: .8rem; padding: 7px 6px; }
  .admin-row { flex-direction: column; align-items: stretch; }
  .admin-row-actions { justify-content: flex-end; }
}

/* ===== 多栏目改造：栏目页头部 ===== */
.channel-head {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, var(--primary), #059a4c);
  border-radius: var(--radius); padding: 20px 22px; color: #fff;
  margin-bottom: 16px;
}
.channel-icon { font-size: 2.2rem; }
.channel-title { font-size: 1.3rem; font-weight: 700; }
.channel-desc { font-size: .8rem; opacity: .85; margin-top: 3px; }

/* ===== 多栏目改造：移动端底部导航横向滚动（栏目多时） ===== */
.bottom-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.bottom-nav::-webkit-scrollbar { display: none; }
.bottom-nav-item { flex: 0 0 auto; min-width: 72px; }

/* ===== 多栏目改造：个人中心「我的发布」混合列表 ===== */
.my-item { position: relative; }
.my-item .my-item-tag {
  display: inline-block; margin: 4px 0 2px; padding: 1px 10px;
  background: rgba(7,193,96,.1); color: var(--primary);
  border-radius: 10px; font-size: .72rem; font-weight: 500;
}

/* ===== 活动模块 ===== */
.ev-page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ev-page-title { font-size: 1.15rem; font-weight: 700; }
.ev-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.ev-tab {
  padding: 5px 16px; border-radius: 20px; border: 1px solid var(--border);
  background: #fff; color: var(--text-2); font-size: .85rem; cursor: pointer; transition: all .15s;
}
.ev-tab:hover { border-color: #ccc; }
.ev-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }

.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.ev-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; transition: all .18s; border: 1px solid var(--border);
}
.ev-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.ev-cover { height: 150px; background-size: cover; background-position: center; background-color: #f0f0f0; }
.ev-cover-empty {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #e8f7ee, #f5f5f5); font-size: 2.4rem; color: #b8d8c5;
}
.ev-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ev-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ev-quota { font-size: .78rem; color: var(--text-3); white-space: nowrap; }
.ev-tag {
  display: inline-block; padding: 1px 10px; border-radius: 10px;
  font-size: .72rem; font-weight: 600; background: #f0f0f0; color: var(--text-2); white-space: nowrap;
}
.ev-tag-open { background: rgba(7,193,96,.12); color: var(--primary); }
.ev-tag-going { background: rgba(64,158,255,.12); color: #409eff; }
.ev-tag-closed { background: rgba(250,173,20,.14); color: #d48806; }
.ev-tag-ended { background: #f0f0f0; color: var(--text-3); }
.ev-tag-cancelled { background: rgba(238,10,36,.1); color: var(--danger); }
.ev-su-pending { background: rgba(250,173,20,.14); color: #d48806; }
.ev-su-approved { background: rgba(7,193,96,.12); color: var(--primary); }
.ev-su-rejected { background: rgba(238,10,36,.1); color: var(--danger); }
.ev-su-attended { background: rgba(64,158,255,.12); color: #409eff; }

.ev-title { font-size: .98rem; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev-meta { display: flex; flex-direction: column; gap: 2px; font-size: .8rem; color: var(--text-3); }
.ev-author { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; font-size: .8rem; color: var(--text-2); }
.ev-avatar {
  width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: none;
  background: #eee; display: flex; align-items: center; justify-content: center; font-size: .75rem; color: #999;
}

/* 详情页 */
.ev-detail-cover { height: 220px; background-size: cover; background-position: center; background-color: #f0f0f0; }
.ev-detail-title { font-size: 1.35rem; font-weight: 700; line-height: 1.4; margin: 12px 0 8px; }
.ev-detail-author { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--text-2); margin-bottom: 14px; }
.ev-detail-info { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; background: #f8f9fa; border-radius: 10px; margin: 4px 0 16px; font-size: .88rem; }
.ev-info-row { display: flex; align-items: baseline; gap: 8px; }
.ev-info-row b { flex: none; color: var(--text-3); font-weight: 600; width: 62px; font-size: .8rem; }
.ev-info-row span { color: var(--text); word-break: break-all; }
.ev-desc { font-size: .92rem; color: var(--text); line-height: 1.8; white-space: normal; word-break: break-word; margin-bottom: 18px; }
.ev-org-actions { display: flex; gap: 10px; margin-bottom: 16px; }
.ev-signup-box { margin-top: 6px; }
.ev-signed { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--text-2); }
.btn-ok { color: var(--primary); border-color: var(--primary); background: transparent; }
.btn-ok:hover { background: var(--primary); color: #fff; }

/* 报名名单 */
.ev-sec-title { font-size: .98rem; font-weight: 700; margin-bottom: 10px; }
.ev-su-list { display: flex; flex-direction: column; gap: 8px; }
.ev-su-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: #f8f9fa; border-radius: 10px; font-size: .85rem;
}
.ev-su-info { flex: 1; min-width: 0; }
.ev-su-name { font-weight: 600; }
.ev-su-phone { font-weight: 400; color: var(--text-3); font-size: .78rem; margin-left: 6px; }
.ev-su-remark { font-size: .78rem; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-su-ops { display: flex; gap: 6px; flex: none; }

/* 发布/编辑表单 */
.ev-form-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.ev-form-head h2 { font-size: 1.1rem; }
.ev-cover-pick {
  border: 1px dashed #ccc; border-radius: 10px; min-height: 130px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); font-size: .85rem; cursor: pointer; overflow: hidden; background: #fafafa;
  transition: all .15s;
}
.ev-cover-pick:hover { border-color: var(--primary); color: var(--primary); }
.ev-cover-pick img { width: 100%; display: block; }

/* ============ 地图定位（活动） ============ */
.geo-row { display: flex; gap: 8px; }
.geo-row .form-input { flex: 1; min-width: 0; }
.geo-row .btn { flex-shrink: 0; align-self: flex-start; padding: 8px 14px; }
.geo-results { margin-top: 8px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; }
.geo-result { padding: 10px 12px; cursor: pointer; border-bottom: 1px solid #f2f2f2; }
.geo-result:last-child { border-bottom: none; }
.geo-result:active { background: #f6f7f8; }
.geo-result-name { font-size: .9rem; color: var(--text); }
.geo-result-addr { font-size: .78rem; color: var(--text-3); margin-top: 2px; }
.geo-map, .ev-map { margin-top: 10px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: #f7f8f9; }
.geo-map iframe, .ev-map iframe { width: 100%; height: 180px; border: 0; display: block; }
.geo-open { display: block; text-align: center; font-size: .78rem; color: var(--primary); padding: 6px 0; text-decoration: none; background: #fff; }
.geo-open:hover { background: #fafafa; }

/* ============ v3.6 分享 / 回顾 / 快速报名 ============ */
.ev-head-actions { display: flex; gap: 8px; margin: 10px 0 2px; }
.ev-head-actions .btn { padding: 6px 12px; font-size: .82rem; }

.ev-hint { font-size: .78rem; color: var(--text-3); line-height: 1.5; }
.modal-sub { font-size: .78rem; color: var(--text-3); margin: -4px 0 12px; line-height: 1.5; }
.share-card-box { max-width: 340px; }
.share-card-loading { text-align: center; color: var(--text-3); padding: 30px 0; }

/* 活动回顾 */
.ev-mem-form {
  border: 1px solid var(--border); border-radius: 12px; padding: 12px;
  background: var(--card-bg, #fff); margin-bottom: 12px;
}
.mem-imgs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.mem-img { position: relative; width: 76px; height: 76px; border-radius: 8px; overflow: hidden; }
.mem-img img { width: 100%; height: 100%; object-fit: cover; }
.mem-img span {
  position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; line-height: 18px;
  text-align: center; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; cursor: pointer;
}
.mem-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.ev-mem-list { display: flex; flex-direction: column; gap: 10px; }
.ev-mem-item {
  border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: var(--card-bg, #fff);
}
.ev-mem-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ev-mem-info { flex: 1; min-width: 0; }
.ev-mem-name { font-size: .88rem; font-weight: 600; }
.ev-mem-time { font-size: .75rem; color: var(--text-3); margin-top: 2px; }
.ev-mem-text { font-size: .9rem; line-height: 1.6; color: var(--text); word-break: break-word; }
.ev-mem-imgs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ev-mem-imgs img { width: 31%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }

/* ===== v3.7 费用均摊（AA 结算） ===== */
.ev-cost-box{background:#fff8f2;border:1px solid #ffe0c7;border-radius:12px;padding:14px 16px;margin-top:10px}
.ev-cost-row{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px dashed #ffe0c7;font-size:14px}
.ev-cost-row:last-child{border-bottom:none}
.ev-cost-name{flex:1;color:#333}
.ev-cost-calc{color:#999;font-size:13px}
.ev-cost-sub{font-weight:600;color:#c2571b;min-width:80px;text-align:right}
.ev-cost-total{display:flex;justify-content:space-between;align-items:center;margin-top:10px;padding-top:10px;border-top:2px solid #ffd7b3;font-size:14px;color:#8a5a2b;flex-wrap:wrap;gap:6px}
.ev-cost-per{font-weight:700;color:#e0501e;font-size:18px}
.ev-cost-ops{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}
.cost-calc-box{max-width:520px}
.cost-tpl-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:10px}
.cost-tpl-label{font-size:13px;color:#999}
.cost-row{display:flex;gap:6px;align-items:center;margin-bottom:8px}
.cost-row input{padding:8px 10px;border:1px solid #e0e0e6;border-radius:8px;font-size:14px}
.cost-row .cost-name{flex:1;min-width:0}
.cost-row .cost-qty,.cost-row .cost-price{width:88px}
.cost-rm{color:#c33;cursor:pointer;padding:0 6px;font-size:16px;flex-shrink:0}
.cost-hc-row{display:flex;align-items:center;gap:8px;margin:12px 0;font-size:14px;flex-wrap:wrap}
.cost-hc-row input{width:80px;padding:8px 10px;border:1px solid #e0e0e6;border-radius:8px}
.cost-hc-hint{font-size:12px;color:#999}
.cost-result{background:#fff4ec;border-radius:10px;padding:12px;text-align:center;font-size:15px;color:#8a5a2b;margin-bottom:6px}
.cost-per-big{color:#e0501e;font-size:22px;font-weight:800;margin-left:4px}
