/* ============================================
 * main.css - 主样式文件
 * 轩雨阁主题：墨绿描金 · 古风大气
 * 主色 #1a4d3e / 鎏金点缀 #c9a227 / 象牙白底 #f7f3e9
 * ============================================ */

/* ===== CSS 变量 ===== */
:root {
  /* 墨绿主色系（LOG O 外框同源） */
  --primary-color: #1a4d3e;
  --primary-light: #2d6b57;
  --primary-dark: #0f3329;
  --primary-bg: #f2f7f4;
  --primary-border: #c5d9d0;
  --primary-accent: #c9a227;

  /* 鎏金点缀（LOGO 金环同源） */
  --gold-color: #c9a227;
  --gold-light: #e3c766;
  --gold-dark: #a8851a;
  --gold-pale: #f5ecd0;

  /* 青绿远山（LOGO 远山同源） */
  --jade-color: #4a7c6f;
  --jade-light: #6d9a8d;

  /* 文字 */
  --text-color: #1f2421;
  --text-secondary: #4a5551;
  --text-light: #8b9793;

  /* 底色：象牙白 / 宣纸 */
  --bg-color: #f7f3e9;
  --bg-white: #fffdf8;
  --bg-paper: #efe8d8;

  --border-color: #e0d7c3;
  --border-gold: rgba(201, 162, 39, 0.35);
  --border-radius: 4px;

  --header-height: 80px;
  --section-width: 1600px;

  /* 阴影：细描金边 + 淡墨投影 */
  --shadow-sm: 0 1px 3px rgba(31, 36, 33, 0.06), 0 1px 0 rgba(201, 162, 39, 0.08);
  --shadow-md: 0 4px 16px rgba(26, 77, 62, 0.1), 0 0 0 1px rgba(201, 162, 39, 0.12);
  --shadow-lg: 0 10px 30px rgba(31, 36, 33, 0.13), 0 0 0 1px rgba(201, 162, 39, 0.16);
  --shadow-glow: 0 0 0 1px rgba(201, 162, 39, 0.4), 0 6px 20px rgba(201, 162, 39, 0.2);

  /* 渐变：墨绿到鎏金 */
  --gradient-main: linear-gradient(135deg, #2d6b57 0%, #1a4d3e 50%, #0f3329 100%);
  --gradient-gold: linear-gradient(135deg, #e3c766 0%, #c9a227 50%, #a8851a 100%);
  --gradient-soft: linear-gradient(135deg, #f7f3e9 0%, #efe8d8 50%, #f5ecd0 100%);

  /* 字体 */
  --font-serif: "Noto Serif SC", "Songti SC", "SimSun", "STSong", serif;
  --font-body: var(--font-serif);

  --transition: all 0.3s ease;
}


/* ===== 通用工具类 ===== */
.hidden { display: none !important; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: var(--border-radius);
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
  gap: 4px;
}

.btn:hover { opacity: 0.85; }
.btn:active { transform: translateY(1px); }
.btn:focus { outline: 2px solid var(--primary-color); outline-offset: 2px; }

/* 键盘焦点样式 (focus-visible) */
:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* 移除默认焦点框，保持键盘可访问性 */
:focus:not(:focus-visible) {
  outline: none;
}

/* 可点击元素的键盘焦点样式 */
.city-tag:focus-visible,
.filter-item:focus-visible,
.hot-tab:focus-visible,
.nav-menu li:focus-visible,
.publish-tab:focus-visible,
.avatar-item:focus-visible,
.page-btn:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.18);
}

.btn-primary {
  background: var(--gradient-main);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(26, 77, 62, 0.28);
}

.btn-default {
  background-color: var(--bg-white);
  color: var(--text-color);
  border-color: var(--border-color);
}

.btn-block {
  width: 100%;
  padding: 12px 16px;
}

/* ===== 全局布局 ===== */
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
}

.home-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1;
  padding-top: calc(var(--header-height) + 44px);
}

/* ===== 顶部导航（浮空胶囊） ===== */
.header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: var(--section-width);
  height: var(--header-height);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  z-index: 1000;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 12px 32px rgba(26, 77, 62, 0.14),
    0 2px 8px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 16px 40px rgba(201, 162, 39, 0.18),
    0 2px 8px rgba(15, 23, 42, 0.06);
}

/* 胶囊外的一圈流光描边 */
.header::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, rgba(45, 107, 87, 0.5), rgba(201, 162, 39, 0.15) 40%, rgba(45, 107, 87, 0) 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* 胶囊底部的高光弧 */
.header::after {
  content: '';
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.7), transparent);
  opacity: 0.7;
  pointer-events: none;
}

.header-content {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 20px 0 24px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex-shrink: 0;
  margin-right: 8px;
}

/* 站名字标：与徽标同色系（玫红 → 金） */
.logo-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
  gap: 1px;
}

.logo-brand-main {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 3px;
  background: linear-gradient(100deg, #0f3329 0%, #1a4d3e 45%, #1a4d3e 70%, #c9a227 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #1a4d3e;
  white-space: nowrap;
}

.logo-brand-sub {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2.2px;
  color: #c9a227;
  opacity: 0.8;
  white-space: nowrap;
}

.logo-text {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-color);
}

.logo-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-left: 4px;
}

.logo-img,
.site-logo {
  height: 56px;
  width: auto;
  max-width: 300px;
  object-fit: contain;
  display: block;
  background: transparent;
  flex-shrink: 0;
}

/* ===== 导航菜单 ===== */
.nav-menu {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-menu ul {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(241, 245, 249, 0.75);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.nav-menu li {
  font-family: "Noto Serif SC", "Songti SC", "SimSun", "STSong", serif;
  position: relative;
  padding: 9px 16px;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 999px;
  transition: var(--transition);
  font-size: 14px;
  white-space: nowrap;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 桌面端不显示图标与短名 */
.nav-ico-wrap {
  display: none;
}

.nav-txt-short {
  display: none;
}

.nav-txt-full {
  display: inline;
}

.nav-menu li:hover {
  color: var(--primary-dark);
  background-color: rgba(255, 255, 255, 0.9);
}

.nav-menu li.active {
  color: #fff;
  font-weight: 500;
  background: var(--gradient-main);
  box-shadow: 0 4px 14px rgba(26, 77, 62, 0.3);
}

/* ===== 搜索框 ===== */
.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.search-box {
  position: relative;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid rgba(254, 205, 211, 0.9);
  border-radius: 999px;
  overflow: hidden;
  background-color: rgba(240, 249, 255, 0.8);
  transition: var(--transition);
  padding-right: 3px;
}

.search-input-wrapper:focus-within {
  border-color: var(--primary-light);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.1);
}

.search-input {
  border: none;
  outline: none;
  padding: 9px 14px;
  background: transparent;
  font-size: 13.5px;
  width: 178px;
  color: var(--text-color);
}

.search-input::placeholder {
  color: var(--text-light);
}

.search-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-main);
  color: #fff;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
}

.search-btn:hover {
  box-shadow: 0 4px 12px rgba(201, 162, 39, 0.4);
}

/* ===== 用户区域 ===== */
.user-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-btn {
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  padding: 6px 4px;
  transition: var(--transition);
}

.login-btn:hover {
  color: var(--primary-color);
}

.register-btn {
  background: var(--gradient-main);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(26, 77, 62, 0.28);
  transition: var(--transition);
}

.register-btn:hover {
  box-shadow: 0 6px 18px rgba(201, 162, 39, 0.4);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.username {
  font-size: 14px;
  color: var(--text-color);
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vip-tag {
  background-color: var(--primary-color);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
}

.user-dropdown-wrapper {
  position: relative;
}

.user-dropdown {
  display: flex;
  align-items: center;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  z-index: 1001;
  padding: 6px 0;
}

.dropdown-item {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-color);
  cursor: pointer;
  transition: var(--transition);
}

.dropdown-item:hover {
  background-color: var(--primary-bg);
  color: var(--primary-color);
}

.dropdown-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 6px 0;
}

/* ===== 通用区块 ===== */
.section-container {
  max-width: var(--section-width);
  margin: 0 auto 14px auto;
  padding: 0 20px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-color);
  position: relative;
  padding-left: 14px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: var(--gradient-main);
}



/* ===== 横幅展示区（高度自适应，比例由素材决定，整条完整显示） ===== */
.banner-section {
  padding-top: 0;
}

.banner-stage {
  position: relative;
  width: 100%;
  aspect-ratio: var(--banner-ratio, 16 / 5);
  max-height: 420px;
  border-radius: 14px;
  /* 恢复原始背景；不加外边框与外阴影，避免出现超出横幅的框 */
  background: var(--bg-subtle, #eef2f7);
  /* 裁切一切越界内容（衬底、圆点等都不允许漏到容器外） */
  overflow: hidden;
}

/* 内层只用于圆角裁切，不再绘制任何描边（否则会形成一圈框） */
.banner-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
}

/* 全部 slide 铺满容器，用 opacity 切换，保证不裁切 */
.banner-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  border-radius: 13px;
}

.banner-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

/* 衬底：取同一张图铺满内部做柔化填充，尺寸严格等于横幅，
   不向外扩（外扩会形成超出横幅的框） */
.banner-media-bg {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  filter: blur(16px) saturate(1.1);
  opacity: 0.45;
  z-index: 0;
  pointer-events: none;
}

.banner-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* 素材一律 contain：完整显示，不裁切 */
.banner-slide img.banner-media,
.banner-slide video {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: transparent;
  z-index: 1;
}

.banner-link {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.banner-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-light);
  font-size: 14px;
}

.banner-placeholder-icon {
  font-size: 34px;
  opacity: 0.5;
}

/* ===== 轮播控件：箭头固定左右，圆点贴横幅下沿（不另起一行） ===== */

/* 左右箭头：回到图片左右两侧正中，悬停显现 */
.banner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 23, 42, 0.35);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  opacity: 0;
  transition: var(--transition);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.banner-stage:hover .banner-nav {
  opacity: 1;
}

.banner-nav:hover {
  background: rgba(26, 77, 62, 0.9);
}

.banner-nav.prev { left: 12px; }
.banner-nav.next { right: 12px; }

/* 圆点导航：半悬在横幅下沿外 */
.banner-dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(6, 30, 48, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.18);
  z-index: 5;
}

.banner-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: var(--transition);
}

.banner-dot:hover {
  background: #fff;
}

.banner-dot.active {
  width: 18px;
  border-radius: 4px;
  background: #fff;
}

/* 超过 8 条时的数字计数，同样贴下沿 */
.banner-counter {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(6, 30, 48, 0.38);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.5px;
  pointer-events: none;
  z-index: 5;
}

.banner-counter-cur {
  color: #fff;
  font-weight: 600;
}

/* ===== 横幅墙（轮播下方的多条展示，一行一条，最多 15 条） ===== */
.banner-wall {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.banner-wall:empty {
  display: none;
}

/* 每条横幅：图片按原始比例等比缩放，宽高都不超上限，永不变形 */
.banner-wall-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: opacity 0.25s ease;
  line-height: 0;
}

.banner-wall-item:hover {
  opacity: 0.88;
}

/* 核心：宽度统一撑满，高度按原比例算；超高图由 max-height 兜底，
   object-fit:contain 保证内容按原比例居中绘制 —— 无论原图多大都不变形、不裁切 */
.banner-wall-item img,
.banner-wall-item video {
  display: block;
  width: 100%;
  height: auto;
  max-height: var(--wall-max-h, 260px);
  object-fit: contain;
}

/* ===== 筛选区域 ===== */
.filter-section {
  background-color: var(--bg-white);
  padding: 16px 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.filter-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-color);
}

.filter-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.filter-label {
  color: var(--text-secondary);
  font-size: 13px;
  flex-shrink: 0;
  padding-top: 4px;
  width: 50px;
}

.filter-list {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-item {
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
}

.filter-item:hover {
  color: var(--primary-color);
}

.filter-item.active {
  color: var(--primary-color);
  background-color: var(--primary-bg);
}

/* ===== 热门推荐 Tab ===== */
.hot-tabs {
  display: flex;
  gap: 4px;
  background-color: var(--bg-white);
  padding: 8px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  width: fit-content;
}

.hot-tab {
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
}

.hot-tab:hover {
  color: var(--primary-color);
}

.hot-tab.active {
  background: var(--gradient-main);
  color: #fff;
  font-weight: 500;
}

/* ===== 我的留言 ===== */
.my-message-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 60vh;
  overflow-y: auto;
}

.my-message-item {
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-white);
}

.my-message-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.my-message-type {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--primary-color);
  background: var(--primary-bg);
}

.my-message-time {
  font-size: 12px;
  color: var(--text-light);
}

.my-message-content {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-color);
  white-space: pre-wrap;
  word-break: break-word;
}

.my-message-reply {
  margin-top: 10px;
  padding: 10px 12px;
  border-left: 3px solid var(--primary-color);
  background: var(--primary-bg);
  border-radius: 0 6px 6px 0;
}

.my-message-reply-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.my-message-reply-head span {
  font-weight: 400;
  color: var(--text-light);
}

.my-message-reply-text {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  word-break: break-word;
}

.my-message-pending {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-light);
}

/* ===== 留言往来对话 ===== */
.my-message-thread {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.thread-item {
  display: flex;
}

.thread-item.from-admin {
  justify-content: flex-start;
}

.thread-item.from-user {
  justify-content: flex-end;
}

.thread-bubble {
  max-width: 82%;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.65;
}

.thread-item.from-admin .thread-bubble {
  background: var(--primary-bg);
  border-left: 3px solid var(--primary-color);
  border-radius: 0 10px 10px 0;
}

.thread-item.from-user .thread-bubble {
  background: #f1f5f9;
  border-right: 3px solid var(--text-light);
  border-radius: 10px 0 0 10px;
}

.thread-meta {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 3px;
}

.thread-item.from-user .thread-meta {
  color: var(--text-secondary);
  text-align: right;
}

.thread-meta span {
  font-weight: 400;
  color: var(--text-light);
  margin-left: 6px;
}

.thread-text {
  color: var(--text-color);
  word-break: break-word;
}

/* ===== 留言回复按钮与输入框 ===== */
.my-message-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.btn-reply-toggle {
  padding: 5px 16px;
  font-size: 12px;
  color: var(--primary-color);
  background: var(--bg-white);
  border: 1px solid var(--primary-border);
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-reply-toggle:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

.my-message-reply-form {
  margin-top: 10px;
  padding: 10px;
  background: #fafafa;
  border: 1px solid var(--border-color);
  border-radius: 10px;
}

.my-message-reply-form .reply-input {
  width: 100%;
  padding: 9px 12px;
  font-size: 13px;
  line-height: 1.6;
  font-family: inherit;
  color: var(--text-color);
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.my-message-reply-form .reply-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1);
}

.reply-form-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.reply-counter {
  margin-right: auto;
  font-size: 11px;
  color: var(--text-light);
}

.btn-cancel-reply,
.btn-send-reply {
  padding: 6px 16px;
  font-size: 12px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: var(--bg-white);
  color: var(--text-secondary);
  transition: var(--transition);
}

.btn-send-reply {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

.btn-send-reply:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-send-reply:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===== 信息卡片网格 ===== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.info-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  height: 200px; /* 固定高度 */
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}

.info-image-wrapper {
  width: 40%;
  min-width: 200px;
  height: 100%;
  position: relative;
  overflow: hidden;
  background-color: #f5f5f5;
  flex-shrink: 0;
}

.info-image-wrapper img,
.info-image-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
}

.favorite-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  color: #ccc;
}

.favorite-btn:hover {
  transform: scale(1.1);
}

.favorite-btn.active {
  color: var(--primary-color);
}

.info-content {
  padding: 16px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  background-color: #fff;
}

.info-header {
  margin-bottom: 10px;
}

.info-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 8px;
  line-height: 1.4;
}

.info-top-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-light);
}

.info-date {
  display: flex;
  align-items: center;
  gap: 4px;
}

.info-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
  flex: 1;
}

.info-meta {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-size: 13px;
  color: var(--primary-color);
}

.info-city {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.info-views {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* ===== 骨架屏 ===== */
.info-skeleton {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--text-light);
  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; }
}

/* ===== 分页 ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 20px 0;
}

.page-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-white);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  box-sizing: border-box;
}

.page-btn:hover:not(:disabled) {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-btn.active {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-info {
  font-size: 13px;
  color: var(--text-light);
  margin: 0 12px;
}

/* ===== 弹窗通用样式 ===== */
.dialog-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.2s ease;
}

.dialog {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  width: 440px;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.dialog-small {
  width: 360px;
}

.dialog-large {
  width: 800px;
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.dialog-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
}

.dialog-close {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  font-size: 20px;
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.dialog-close:hover {
  background-color: var(--bg-color);
  color: var(--text-color);
}

.dialog-close .ui-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.dialog-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== 表单 ===== */
.form-item {
  margin-bottom: 16px;
}

/* 表单网格：桌面端多列，窄屏自动堆叠 */
.form-grid {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.form-grid-2 {
  grid-template-columns: 1fr 1fr;
}

.form-grid-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.form-grid > .form-item {
  margin-bottom: 0;
  min-width: 0;
}

.form-item label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.form-item input[type="text"],
.form-item input[type="password"],
.form-item input[type="email"],
.form-item input[type="number"],
.form-item input[type="tel"],
.form-item input[type="url"],
.form-item select,
.form-item textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  background-color: var(--bg-white);
  color: var(--text-color);
  transition: var(--transition);
  outline: none;
  box-sizing: border-box;
}

.form-item input:focus,
.form-item select:focus,
.form-item textarea:focus {
  border-color: var(--primary-color);
}

.form-footer {
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
  margin-top: 8px;
}

.link {
  color: var(--primary-color);
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

.form-tip {
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}

.radio-group {
  display: flex;
  gap: 20px;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}

.contact-input-group {
  display: flex;
  gap: 10px;
  width: 100%;
}

.contact-input-group select {
  width: 100px;
  padding: 10px 8px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: var(--bg-white);
  color: var(--text-color);
}

/* ===== 底部 ===== */
.footer {
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-color);
  padding: 24px 20px;
  margin-top: 40px;
}

.footer-content {
  max-width: var(--section-width);
  margin: 0 auto;
  text-align: center;
}

.footer-content p {
  color: var(--text-light);
  font-size: 12px;
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--primary-color);
}

/* ===== 回到顶部 ===== */
.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 60px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ===== Toast ===== */
.toast-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.toast {
  padding: 10px 20px;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.toast.show {
  opacity: 1;
}

.toast.hide {
  opacity: 0;
}

.toast-success { background-color: #67c23a; }
.toast-error { background-color: #f56c6c; }
.toast-warning { background-color: #e6a23c; }
.toast-info { background-color: #909399; }

/* ===== Confirm 确认框 ===== */
.confirm-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.confirm-mask.show {
  opacity: 1;
}

.confirm-box {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  width: 360px;
  padding: 20px;
  animation: slideUp 0.3s ease;
}

.confirm-header {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-color);
}

.confirm-content {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.confirm-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ===== 全局 Loading ===== */
.global-loading {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--primary-border);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ===== VIP 套餐 ===== */
.vip-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.vip-plan {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 20px 16px;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.vip-plan.featured {
  border-color: var(--primary-color);
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

.plan-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-main);
  color: #fff;
  font-size: 12px;
  padding: 2px 12px;
  border-radius: 10px;
}

.plan-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 12px;
}

.plan-price {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 16px;
}

.plan-price span {
  font-size: 13px;
  font-weight: normal;
  color: var(--text-light);
}

.plan-features {
  text-align: left;
  margin-bottom: 16px;
  min-height: 100px;
}

.plan-features li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
}

.plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #67c23a;
}

/* ===== 帮助中心 ===== */
.help-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.help-item {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.help-question {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color);
  background-color: var(--bg-color);
  cursor: pointer;
}

.help-answer {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== 个人中心 ===== */
.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.profile-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-change-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: var(--primary-color);
  color: #fff;
  border: 2px solid var(--bg-white);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.profile-info {
  flex: 1;
}

.profile-username {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 8px;
}

.profile-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.tag {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  background-color: var(--bg-color);
  color: var(--text-secondary);
}

.tag.vip-tag {
  background-color: var(--primary-color);
  color: #fff;
}

.profile-register-time {
  font-size: 12px;
  color: var(--text-light);
}

.profile-stats {
  display: flex;
  gap: 20px;
  margin: 20px 0;
  padding: 16px;
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
}

.stat-item {
  flex: 1;
  text-align: center;
}

.stat-value {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-light);
}

.profile-section {
  margin-bottom: 20px;
}

.profile-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.integral-log-list {
  max-height: 200px;
  overflow-y: auto;
}

.integral-log-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
}

.integral-log-item:last-child {
  border-bottom: none;
}

.log-type {
  font-weight: 500;
  color: var(--text-color);
  min-width: 80px;
}

.log-remark {
  flex: 1;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0 12px;
}

.log-value {
  font-weight: bold;
  min-width: 60px;
  text-align: right;
}

.log-value.positive {
  color: #67c23a;
}

.log-value.negative {
  color: #f56c6c;
}

.log-time {
  color: var(--text-light);
  min-width: 80px;
  text-align: right;
  margin-left: 12px;
}

/* ===== 头像选择 ===== */
.avatar-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
}

.avatar-tab {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.avatar-tab.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  font-weight: 500;
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.avatar-item {
  cursor: pointer;
  display: flex;
  justify-content: center;
  padding: 5px;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all 0.3s;
}

.avatar-item:hover {
  border-color: var(--primary-color);
}

.avatar-item.active {
  border-color: var(--primary-color);
  background-color: var(--primary-bg);
}

.avatar-item img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--bg-color);
}

.avatar-upload {
  text-align: center;
}

.upload-area {
  display: block;
  padding: 40px 20px;
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 16px;
}

.upload-area:hover {
  border-color: var(--primary-color);
  background-color: var(--primary-bg);
}

.upload-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.upload-area p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.upload-tip {
  font-size: 12px !important;
  color: var(--text-light) !important;
}

.upload-preview {
  text-align: center;
}

.upload-preview img {
  max-width: 150px;
  max-height: 150px;
  border-radius: 8px;
  margin-bottom: 12px;
}

/* ===== 我的收藏 / 发布 ===== */
.favorite-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 8px 0;
  min-height: 400px;
}

.favorite-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.favorite-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-color);
}

.favorite-card-img {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
  flex-shrink: 0;
}

.favorite-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.favorite-remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: #666;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.favorite-remove-btn:hover {
  background: var(--primary-color);
  color: #fff;
}

.favorite-card-info {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.favorite-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.favorite-card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.favorite-card-location,
.favorite-card-time {
  font-size: 12px;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 收藏分页 */
.favorite-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.favorite-pagination-btn {
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-color);
  transition: all 0.2s ease;
}

.favorite-pagination-btn:hover:not(:disabled) {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.favorite-pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.favorite-pagination-info {
  font-size: 14px;
  color: var(--text-secondary);
}

.publish-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.publish-tab {
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.publish-tab:hover {
  color: var(--primary-color);
}

.publish-tab.active {
  background-color: var(--primary-color);
  color: #fff;
}

.publish-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.publish-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

.publish-thumb {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  background-color: var(--bg-color);
  overflow: hidden;
  flex-shrink: 0;
}

.publish-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.publish-info {
  flex: 1;
  min-width: 0;
}

.publish-title {
  font-size: 14px;
  color: var(--text-color);
  margin-bottom: 6px;
  font-weight: 500;
}

.publish-desc {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.publish-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.publish-time {
  font-size: 12px;
  color: var(--text-light);
}

.status-tag {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
}

.status-approved { background-color: #f0f9eb; color: #67c23a; }
.status-pending { background-color: #fdf6ec; color: #e6a23c; }
.status-rejected { background-color: #fef0f0; color: #f56c6c; }

.publish-actions {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
}

.publish-delete {
  color: #f56c6c;
  font-size: 13px;
  cursor: pointer;
  background: none;
  border: none;
}

/* ===== 空状态 ===== */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.empty-state p {
  font-size: 14px;
  margin-bottom: 4px;
}

.empty-tip {
  font-size: 12px !important;
  color: var(--text-light);
}

/* ===== 图片预览 ===== */
.image-viewer-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

/* ===== 搜索结果 ===== */
.search-results-container {
  max-width: var(--section-width);
  margin: 0 auto;
  padding: 20px;
}

.search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: var(--bg-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.search-header h2 {
  margin: 0;
  font-size: 20px;
  color: var(--text-color);
}

.search-stats {
  display: flex;
  gap: 10px;
  flex: 1;
  margin: 0 20px;
}

.stat-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: var(--primary-bg);
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

.btn-clear-search {
  padding: 8px 16px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-clear-search:hover {
  background: var(--primary-dark);
}

.search-section {
  margin-bottom: 32px;
}

.search-section .section-title {
  margin-bottom: 16px;
  padding-left: 8px;
}

.search-section .section-title h3 {
  margin: 0;
  font-size: 16px;
  color: var(--text-color);
  font-weight: 600;
}

/* ===== 图片预览 ===== */
.viewer-close {
  position: absolute;
  top: 20px;
  right: 30px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  z-index: 10;
}

.viewer-prev,
.viewer-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.viewer-prev:hover,
.viewer-next:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.viewer-prev { left: 30px; }
.viewer-next { right: 30px; }

.viewer-image-wrapper {
  max-width: 85vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.viewer-image-wrapper img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
}

.viewer-counter {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  opacity: 0.8;
}

/* ===== 视频预览 ===== */
.viewer-video-wrapper {
  width: 80vw;
  max-width: 900px;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#videoViewerVideo {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  background-color: #000;
  border-radius: 4px;
}

/* ===== 详情页 ===== */
.detail-body {
  display: flex;
  gap: 24px;
}

.detail-images {
  width: 340px;
  flex-shrink: 0;
}

.detail-main-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 16px;
  background-color: #f5f5f5;
  cursor: pointer;
  position: relative;
}

.detail-main-image img,
.detail-main-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info {
  flex: 1;
  min-width: 0;
}

.detail-name {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 8px;
}

.detail-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.detail-tag {
  padding: 3px 10px;
  border-radius: 4px;
  background-color: var(--primary-bg);
  color: var(--primary-color);
  font-size: 12px;
}

.detail-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  padding: 16px;
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
}

.detail-meta-item {
  display: flex;
  font-size: 13px;
  color: var(--text-secondary);
}

.detail-meta-label {
  width: 60px;
  flex-shrink: 0;
}

.detail-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 8px;
}

.detail-price {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 16px;
  padding: 12px;
  background: var(--gradient-soft);
  border-radius: var(--border-radius);
  display: inline-block;
}

.detail-section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-color);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.detail-album {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.detail-album-item {
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background-color: #f5f5f5;
  transition: var(--transition);
}

.detail-album-item:hover {
  transform: scale(1.02);
}

.detail-album-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-videos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.detail-video-item {
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background-color: #f5f5f5;
  transition: var(--transition);
}

.detail-video-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.detail-video-cover {
  position: relative;
  aspect-ratio: 4 / 3;
}

.detail-video-cover img,
.detail-video-cover video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
}

.detail-video-name {
  padding: 8px;
  font-size: 13px;
  color: var(--text-color);
  text-align: center;
}

.detail-actions {
  display: flex;
  gap: 12px;
}

/* ===== 联系方式弹窗 ===== */
.contact-content {
  text-align: center;
}

.contact-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 36px;
}

.contact-label {
  color: var(--text-light);
  font-size: 14px;
  margin: 0 0 15px 0;
}

.contact-list {
  text-align: left;
  margin-bottom: 15px;
}

.contact-item {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background-color: var(--bg-color);
  border-radius: 8px;
  margin-bottom: 8px;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-type {
  width: 70px;
  color: var(--text-secondary);
  font-size: 13px;
}

.contact-value {
  flex: 1;
  color: var(--text-color);
  font-size: 14px;
  font-weight: 500;
}

.contact-tip {
  color: #ff9800;
  font-size: 12px;
  margin: 0;
  padding: 10px;
  background-color: #fff7e6;
  border-radius: 6px;
  text-align: left;
}

/* ===== 响应式 ===== */
@media (max-width: 1400px) {
  .info-grid,
  .favorite-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .info-image-wrapper {
    min-width: 160px;
  }

  .info-content {
    padding: 12px 16px;
  }

  .info-title {
    font-size: 16px;
  }

  .info-desc {
    font-size: 13px;
    -webkit-line-clamp: 2;
  }
}

@media (max-width: 1024px) {
  :root {
    --section-width: 100%;
  }

  .info-grid,
  .favorite-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-menu ul {
    gap: 4px;
  }

  .nav-menu li {
    padding: 8px 10px;
    font-size: 13px;
  }

  .search-input {
    width: 140px;
  }
}

@media (max-width: 768px) {
  /* 手机端头部胶囊：随页面滚动离开视口，不做固定悬浮 */
  .header {
    position: absolute;
    top: 10px;
    width: calc(100% - 20px);
    height: 58px;
    border-radius: 18px;
  }

  .header-content {
    gap: 8px;
    padding: 0 10px;
    position: relative;
  }

  :root {
    --header-height: 58px;
  }

  /* 头部 58 + 间距 6 + 单行快捷条 57 + 8px 间隙 = 129，取 140 保险 */
  .main {
    padding-top: 140px;
  }

  .logo {
    margin-right: 0;
    gap: 7px;
  }

  .site-logo {
    height: 40px;
  }

  .logo-brand-main {
    font-size: 17px;
    letter-spacing: 1px;
  }

  .logo-svg {
    width: 128px;
    height: auto;
  }

  .logo-text {
    font-size: 18px;
  }

  .logo-sub {
    display: none;
  }

  /* 移动端不显示搜索框，避免挤压导航 */
  .search-box {
    display: none;
  }

  /* 导航独立成行，贴在胶囊下方，横向滑动 */
  .nav-menu {
    /* 移动端：快捷图标功能区，随页面滚动而离开视口（不做固定悬浮）
       定位基准是 .header-content（其顶部在 11px），
       top:63 => 实际 74px，紧贴头部胶囊下方 6px 行距 */
    position: absolute;
    top: 63px;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    max-width: 100%;
    display: block;
    overflow: visible;
    padding: 0 10px;
    margin: 0;
    z-index: 5;
    box-sizing: border-box;
  }

  .nav-menu ul {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 4px 2px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(201, 162, 39, 0.07);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
  }

  .nav-menu li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 0 7px;
    margin: 0;
    border-radius: 8px;
    font-size: 10.5px;
    line-height: 1.1;
    color: var(--text-secondary);
    background: transparent;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
    min-width: 0;
    overflow: hidden;
  }

  /* 选项卡式指示条：选中项底部一条主色横条 */
  .nav-menu li::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 2px;
    transform: translateX(-50%) scaleX(0);
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary-color);
    transition: transform 0.22s ease;
  }

  .nav-menu li.active::after {
    transform: translateX(-50%) scaleX(1);
  }

  .nav-menu li:active {
    background: rgba(201, 162, 39, 0.06);
  }

  .nav-menu li.active {
    color: var(--primary-color);
    background: transparent;
    font-weight: 500;
  }

  .nav-menu li.active .nav-ico {
    color: var(--primary-color);
  }

  .nav-ico-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-ico {
    display: block;
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
  }

  .nav-txt-full {
    display: none;
  }

  .nav-txt-short {
    display: block;
  }

  /* 导航条为随页面滚动的普通元素，占位由 .main 的上内边距预留；
     具体数值见本断点开头的 .main 规则 */
  .header-right {
    gap: 8px;
    margin-left: auto;
  }

  .login-btn {
    display: inline-block;
    font-size: 13px;
  }

  .register-btn {
    padding: 7px 13px;
    font-size: 12.5px;
  }

  .info-grid,
  .favorite-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* 手机端卡片：图片在左、文字在右，一行一张 */
  .info-card {
    flex-direction: row;
    align-items: stretch;
    min-height: auto;
    height: auto;
  }

  .info-image-wrapper {
    width: 118px;
    min-width: 118px;
    height: auto;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
  }

  /* 方形缩略图：cover 裁切填满，不用模糊衬底 */
  .info-image-wrapper > img,
  .info-image-wrapper > video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .info-image-wrapper .banner-media-bg,
  .info-image-wrapper .info-media-bg {
    display: none;
  }

  /* 手机端卡片缩略图较小，收藏按钮会压住封面主体，隐藏 */
  .info-card .favorite-btn {
    display: none;
  }

  .info-content {
    padding: 10px 12px;
    flex: 1;
    min-width: 0;
    justify-content: flex-start;
    gap: 4px;
  }

  .info-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .info-title {
    font-size: 15px;
    margin-bottom: 0;
    line-height: 1.3;
  }

  .info-top-meta {
    font-size: 11px;
    gap: 8px;
    margin-bottom: 0;
    flex-wrap: wrap;
  }

  .info-desc {
    font-size: 12.5px;
    line-height: 1.45;
    margin-top: 2px;
    -webkit-line-clamp: 3;
  }

  .info-meta {
    font-size: 12px;
    margin-top: auto;
    padding-top: 4px;
  }

  .info-city {
    white-space: normal;
    word-break: break-all;
  }

  /* 分页：窄屏收紧间距，保持单行 */
  .pagination {
    flex-wrap: wrap;
    gap: 6px;
    padding: 14px 0 18px;
  }

  .page-btn {
    height: 30px;
    min-width: 30px;
    padding: 0 9px;
    font-size: 12.5px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .page-info {
    font-size: 12px;
    margin: 0 4px;
    white-space: nowrap;
    flex-basis: 100%;
    text-align: center;
  }

  /* 发布/编辑表单：窄屏单列堆叠，避免输入框被挤爆 */
  .form-grid-2,
  .form-grid-3 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .form-grid > .form-item {
    margin-bottom: 0;
  }

  .section-container {
    padding: 0 12px;
  }

  .vip-plans {
    grid-template-columns: 1fr;
  }

  .dialog {
    width: 92vw;
  }

  .detail-body {
    flex-direction: column;
  }

  .detail-images {
    width: 100%;
  }

  .detail-album {
    grid-template-columns: repeat(4, 1fr);
  }

  .detail-videos {
    grid-template-columns: 1fr;
  }

  .avatar-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .back-to-top {
    right: 15px;
    bottom: 40px;
    width: 40px;
    height: 40px;
  }

  .viewer-prev { left: 10px; }
  .viewer-next { right: 10px; }
}

/* 窄屏：不覆盖动态比例，只保证一个最小高度（不足时用模糊衬底填充） */
@media (max-width: 1024px) {
  .banner-stage {
    /* 同理：不强制最小高度，由素材比例决定 */
    min-height: 0;
  }
}

@media (max-width: 768px) {
  .banner-stage {
    /* 去掉最小高度：容器高度完全由素材比例决定，
       避免素材较扁时容器被撑高、露出多余底色形成「外框」 */
    min-height: 0;
    max-height: 240px;
    /* 手机端轮播横幅改为直角 */
    border-radius: 0;
  }

  /* slide 与外层保持同一直角，避免内层圆角露出白边 */
  .banner-slide {
    border-radius: 0;
  }

  .banner-wall {
    gap: 4px;
    margin-top: 2px;
    --wall-max-h: 240px;
  }

  /* 手机端去掉中间的圆点指示器与计数，只保留左右翻页箭头 */
  .banner-dots,
  .banner-counter {
    display: none;
  }

  /* 触屏没有 hover，箭头必须常显，否则轮播无翻页控件 */
  .banner-nav {
    width: 28px;
    height: 28px;
    font-size: 13px;
    opacity: 0.92;
  }

  .banner-stage .banner-nav {
    opacity: 0.92;
  }

  .banner-nav:active {
    opacity: 1;
    background: rgba(26, 77, 62, 0.9);
  }

  .banner-nav.prev { left: 8px; }
  .banner-nav.next { right: 8px; }

  .banner-dot {
    width: 6px;
    height: 6px;
  }

  .banner-dot.active {
    width: 14px;
  }
}

@media (max-width: 480px) {
  .banner-wall {
    --wall-max-h: 180px;
  }

  .info-grid,
  .favorite-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .info-card {
    flex-direction: row;
    align-items: stretch;
    min-height: auto;
    height: auto;
  }

  .info-image-wrapper {
    width: 108px;
    min-width: 108px;
    height: auto;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
  }

  .info-image-wrapper > img,
  .info-image-wrapper > video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .info-image-wrapper .banner-media-bg,
  .info-image-wrapper .info-media-bg {
    display: none;
  }

  /* 手机端卡片缩略图较小，收藏按钮会压住封面主体，隐藏 */
  .info-card .favorite-btn {
    display: none;
  }

  .info-content {
    padding: 9px 11px;
    flex: 1;
    min-width: 0;
    justify-content: flex-start;
    gap: 3px;
  }

  .info-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .info-title {
    font-size: 14px;
    margin-bottom: 0;
    line-height: 1.3;
  }

  .info-top-meta {
    font-size: 11px;
    gap: 8px;
    margin-bottom: 0;
    flex-wrap: wrap;
  }

  .info-desc {
    font-size: 12px;
    line-height: 1.4;
    margin-top: 2px;
    margin-bottom: 0;
    -webkit-line-clamp: 3;
  }

  .info-meta {
    font-size: 11px;
    margin-top: auto;
    padding-top: 4px;
  }

  .info-city {
    white-space: normal;
    word-break: break-all;
  }

  .section-title {
    font-size: 17px;
  }

  .hot-tabs {
    overflow-x: auto;
    border-radius: 999px;
    scrollbar-width: none;
    max-width: 100%;
  }

  .hot-tabs::-webkit-scrollbar {
    display: none;
  }

  .hot-tab {
    padding: 7px 14px;
  }
}
