/* ============================================================
   户外玩家导购社区 - 顶部导航布局
   PC 横向导航 + 移动折叠下拉
   ============================================================ */
:root {
  --brand: #ff2e4d;
  --brand-light: #ffedf0;
  --brand-dark: #e5002b;
  --text: #333333;
  --text-60: rgba(51, 51, 51, 0.6);
  --text-80: rgba(51, 51, 51, 0.8);
  --text-3: #999999;
  --line: #f0f0f0;
  --line-2: rgba(0, 0, 0, 0.08);
  --bg: #ffffff;
  --fill: rgba(0, 0, 0, 0.03);
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 8px 24px rgba(255, 46, 77, 0.14);
  --header-h: 72px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.6;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; background: none; }
ul { margin: 0; padding: 0; list-style: none; }
input, textarea { font-family: inherit; }

/* ============================================================
   布局骨架
   ============================================================ */
.layout.limit {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
}

/* ---------- 顶部导航（通栏铺满，浅灰背景，内容 1080 居中） ---------- */
.header-container {
  position: sticky;
  top: 0;
  z-index: 130;
  background: #f5f6f8;
}
.top-header {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 24px;
}

/* LOGO */
.brand-link {
  flex: none;
  display: inline-flex;
  align-items: center;
}
.brand-logo { display: block; width: 134px; height: 48px; }

/* 主导航 */
.top-nav {
  flex: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.tn-item {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--text);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.tn-item:hover { background: #fff; }
.tn-item.on { background: #fff; font-weight: 700; }

/* ---------- 户外好物 下拉菜单（HOVER 卡片） ---------- */
.nav-menu { position: relative; display: inline-flex; }
.nav-menu .nm-trigger { gap: 3px; cursor: pointer; }
.nav-menu .nm-caret { transition: transform 0.18s; }
.nav-menu:hover .nm-caret { transform: rotate(180deg); }
.nav-menu:hover .nm-trigger,
.nav-menu.on .nm-trigger { background: #fff; font-weight: 700; }
.nm-card {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 218px;
  padding: 8px;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  z-index: 200;
}
/* 触发项与卡片之间的桥接区，避免移动时断开 hover */
.nm-card::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
.nav-menu:hover .nm-card,
.nav-menu:focus-within .nm-card {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nm-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  transition: background 0.15s;
}
.nm-option:hover { background: #f6f7f9; }
.nm-option .nmo-ico {
  flex: none;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: #f5f6f8;
  border-radius: 50%;
}
.nm-option .nmo-text { display: flex; flex-direction: column; gap: 2px; }
.nm-option .nmo-text b { font-size: 14px; color: #1f2937; }
.nm-option .nmo-text small { font-size: 12px; color: #9ca3af; }

/* 搜索框 */
.input-box {
  position: relative;
  flex: 1;
  min-width: 120px;
  height: 40px;
  margin-left: auto;
}
.search-input {
  width: 100%;
  height: 40px;
  background: #fff;
  border: 1px solid #e8eaee;
  border-radius: 999px;
  padding: 0 48px 0 16px;
  font-size: 15px;
  outline: none;
  color: var(--text);
}
.search-input:focus { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 2px rgba(255,46,77,.12); }
.input-button {
  position: absolute;
  right: 4px; top: 4px;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-60);
}
.input-button:hover { color: var(--brand); }

.right {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
.top-pub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border: none;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  line-height: 15px;
  font-weight: 600;
  cursor: pointer;
}
.top-pub-btn svg { flex: none; display: block; }
.top-pub-btn .pub-label { margin: 0; }
.top-pub-btn:hover { background: var(--brand-dark); }

/* 发布下拉卡片 */
.pub-dropdown { position: relative; flex: none; }
.top-pub-btn .pub-caret { transition: transform .2s ease; opacity: .9; }
.pub-dropdown.open .top-pub-btn { background: var(--brand-dark); }
.pub-dropdown.open .pub-caret { transform: rotate(180deg); }
.pub-card {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 200;
  width: 220px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0,0,0,.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.pub-dropdown.open .pub-card {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.pub-card::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 26px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: rotate(45deg);
}
.pub-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--text);
}
.pub-item:hover { background: #f5f8ff; }
.pi-ico {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f0f4ff;
  color: var(--brand);
}
.pub-item:hover .pi-ico { background: #e3ecff; }
.pi-text { display: flex; flex-direction: column; gap: 1px; }
.pi-text b { font-size: 14px; font-weight: 600; color: #222; }
.pi-text small { font-size: 12px; color: #999; }
.top-login-btn {
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.top-login-btn:hover { background: var(--brand-dark); }
.top-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border: none;
  border-radius: 999px;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}
.top-user:hover { background: #f5f8ff; }
.top-user-avatar { border-radius: 50%; object-fit: cover; }
.top-user .user-caret { flex: none; color: var(--text-3); transition: transform .2s ease; }
.user-dropdown { position: relative; flex: none; }
.user-dropdown.open .user-caret,
.user-dropdown:hover .user-caret,
.user-dropdown:has(#userTrigger:hover) .user-caret { transform: rotate(180deg); }

/* 桥接 hover 间隙，避免鼠标移到卡片时卡片收起 */
.user-card::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 10px;
}
.user-card {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 200;
  width: 250px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0,0,0,.14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: transform .16s ease;
}
.user-dropdown.open .user-card,
.user-dropdown:hover .user-card,
.user-dropdown:has(#userTrigger:hover) .user-card {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.user-card::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 24px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: rotate(45deg);
}

/* 第一行：头像 + 昵称 */
.uc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 2px 12px;
  color: var(--text);
}
.uc-avatar { flex: none; border-radius: 50%; object-fit: cover; }
.uc-name {
  font-size: 15px;
  font-weight: 700;
  color: #222;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 第二行：关注 / 粉丝 / 笔记 */
.uc-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.uc-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-3);
}
.uc-stat b { font-size: 16px; font-weight: 700; color: #222; }
.uc-stat span { font-size: 12px; }
.uc-stat:hover b { color: var(--brand); }

/* 菜单栏 */
.uc-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0;
}
.uc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text);
}
.uc-item svg { flex: none; color: var(--text-3); }
.uc-item:hover { background: #f5f8ff; color: var(--brand); }
.uc-item:hover svg { color: var(--brand); }

/* 头像未读消息角标 + 下拉菜单消息数 */
.top-user-wrap { position: relative; display: inline-flex; }
.top-msg-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border: 1.5px solid #fff;
  border-radius: 999px;
  box-sizing: content-box;
  background: #ff2e4d;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
}
.uc-item-badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff2e4d;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
}
.uc-item:hover .uc-item-badge { color: #fff; }

/* 底部横条：退出 */
.uc-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 -14px -14px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 16px 16px;
  font-size: 14px;
  color: var(--text-3);
}
.uc-logout:hover { background: #fff1f3; color: var(--brand); }
.nav-toggle { display: none; padding: 6px; color: var(--text); }

/* ---------- 内容主区 ---------- */
.main-container { flex: 1 0 auto; min-width: 0; }
.layout-main { display: block; padding: 0 24px 16px; min-width: 0; }

/* ---------- 通用按钮（内容页沿用） ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 22px;
  padding: 8px 18px;
  font-size: 13px;
  transition: all 0.18s;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { background: #fff; color: var(--brand); border: 1px solid var(--brand); }
.btn-outline:hover { background: var(--brand-light); }
.btn-ghost { background: var(--bg); color: var(--text-2, var(--text-60)); }
.btn-block { width: 100%; }
.btn-lg { padding: 12px 24px; font-size: 15px; }

/* 页脚（通栏铺满，内容 1200 居中） */
.footer { width: 100%; background: #fff; border-top: 1px solid var(--line); margin-top: auto; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 24px; color: var(--text-3); font-size: 12px; }
.footer-copy { margin: 8px 0 0; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }
.footer-links a:hover { color: var(--brand); }
.disclaimer { max-width: 820px; line-height: 1.8; margin: 0; }

/* ============================================================
   首页
   ============================================================ */
.feeds-page { padding-top: 0; }

/* Banner */
.hero-banner { margin: 16px 0; border-radius: 16px; overflow: hidden; position: relative; }
.banner-slide { position: relative; aspect-ratio: 16/5; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-caption {
  position: absolute;
  left: 26px; bottom: 24px;
  color: #fff;
  font-size: 21px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.banner-dots { position: absolute; right: 20px; bottom: 16px; display: flex; gap: 6px; }
.banner-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.5); }
.banner-dots span.on { background: #fff; width: 18px; border-radius: 4px; }

/* ============================================================
   首页顶部三栏区域
   ============================================================ */
.hero {
  display: flex;
  gap: 12px;
  margin: 12px 0 4px;
  align-items: stretch;
}
.mask-paper { background: #fff; border-radius: 14px; }

/* 左：品类 / 场景 / 季节 */
.hero-filter {
  flex: 0 0 9%;
  padding: 16px 18px;
  font-size: 14px;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
}
.hf-head { margin: 0 0 12px; font-size: 16px; font-weight: 700; color: #222; text-align: left; }
.hf-block + .hf-block { margin-top: 12px; }
.hf-title { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: #9aa0ab; text-align: left; }
.hf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 8px;
  text-align: left;
}
.hf-opt {
  display: block;
  padding: 2px 4px;
  font-size: 14px;
  color: var(--text);
  border-radius: 6px;
  white-space: nowrap;
  transition: color .15s;
}
.hf-opt:hover { color: var(--brand); }
.hf-opt.on { color: var(--brand); font-weight: 600; background: none; }

/* 中：轮播 */
.hero-swiper {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
.hs-track {
  display: flex;
  height: 100%;
  transition: transform .5s ease;
}
.hs-slide {
  position: relative;
  flex: 0 0 100%;
  display: block;
  height: 100%;
}
.hs-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hs-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 16px 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
}
.hs-dots {
  position: absolute;
  right: 14px; bottom: 12px;
  display: flex; gap: 6px;
}
.hs-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: all .2s;
}
.hs-dot.on { background: #fff; width: 18px; border-radius: 4px; }

/* 右：登录福利 */
.hero-side {
  flex: 0 0 26%;
  padding: 16px 16px 12px;
  display: flex;
  flex-direction: column;
  text-align: center;
  overflow: hidden;
  font-size: 14px;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
}
.rs-planet { display: flex; justify-content: center; margin-bottom: 2px; }
.rs-planet svg { width: 64px; height: 64px; }
.rs-hi { margin: 0; font-size: 14px; color: var(--text); font-weight: 600; }
.rs-login { color: #4a90d9; font-weight: 700; }
.rs-links {
  margin-top: 10px;
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.rs-links a { color: var(--text); }
.rs-links a:hover { color: #4a90d9; }
.rs-sep { color: #d8d8d8; }
.rs-links .rs-red { color: var(--brand); font-weight: 600; }
.rs-signbtn {
  margin-top: 12px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #ff5a3c, var(--brand));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(255, 63, 52, .28);
  transition: opacity .15s;
}
.rs-signbtn:hover { opacity: .92; }
.rs-signbtn.done { background: #d8d8d8; box-shadow: none; font-size: 14px; }
.rs-news-head {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rs-news-title { font-size: 14px; font-weight: 800; color: var(--text); }
.rs-news-dots { display: flex; gap: 5px; }
.rs-news-dots i { width: 6px; height: 6px; border-radius: 50%; background: #ddd; }
.rs-news-dots i.on { background: var(--brand); width: 14px; border-radius: 3px; }
.rs-news-first {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  text-align: left;
  align-items: flex-start;
}
.rs-coupon {
  flex: none;
  width: 56px; height: 56px;
  border-radius: 6px;
  background: linear-gradient(160deg, #ffe3cc, #ffc79a);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.rc-brand { font-size: 12px; font-weight: 700; color: #ff7a1a; }
.rc-tag {
  font-size: 9px; color: #fff;
  background: #ff9a4d;
  border-radius: 3px;
  padding: 1px 4px;
  white-space: nowrap;
}
.rs-news-text { margin: 0; font-size: 14px; line-height: 1.4; color: var(--text); }
.rs-news-red { color: var(--brand); font-size: 14px; }
.rs-news-line {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--text);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
a.rs-news-line { display: block; text-decoration: none; }
a.rs-news-line:hover { color: var(--brand); }
a.rs-news-first { text-decoration: none; }
.rs-news-more { font-size: 12px; color: var(--text-3); text-decoration: none; }
.rs-news-more:hover { color: var(--brand); }

/* 封面图 + 文字 列表（装备清单 / 好券快报） */
.rs-cv-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  text-decoration: none;
  text-align: left;
}
.rs-cv-img {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}
.rs-cv-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: var(--fill);
}
.rs-cv-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rs-cv-title {
  font-size: 14px;
  color: var(--text);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rs-cv-sub { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-cv-item:hover .rs-cv-title { color: var(--brand); }
.rs-cv-item.first .rs-cv-img { width: 54px; height: 54px; }

/* 右侧列表轮播：每页 3 条 */
.side-carousel { margin-top: 10px; }
.sc-viewport { overflow: hidden; }
.sc-track { display: flex; transition: transform .35s ease; }
.sc-page { flex: 0 0 100%; min-width: 0; }
.sc-page .rs-cv-item:first-child { margin-top: 0; }
.sc-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.sc-dot { width: 7px; height: 7px; border-radius: 50%; background: #d7dae1; cursor: pointer; transition: background .2s, width .2s; }
.sc-dot.on { background: var(--brand); width: 18px; border-radius: 4px; }

/* ---------- TAB：圈子名切换（浅灰胶囊） ---------- */
.channel-container,
.feed-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 72px;
  overflow-x: auto;
  scrollbar-width: none;
}
.channel-container::-webkit-scrollbar,
.feed-tabs::-webkit-scrollbar { display: none; }
.feed-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--text);
  font-size: 16px;
  white-space: nowrap;
  transition: background 0.15s, font-weight 0.15s;
}
.feed-tab .ft-ico { font-size: 15px; }
.feed-tab:hover { background: var(--fill); }
.feed-tab.on {
  background: var(--fill);
  font-weight: 600;
}

/* 游记筛选行 */
.feed-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding: 12px 0 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
.feed-filter .ff-group { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.feed-filter .ff-label { font-size: 13px; color: var(--text-3); margin-right: 4px; }
.feed-filter .ff-opt {
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-60);
  background: var(--bg);
  white-space: nowrap;
  transition: all .16s;
}
.feed-filter .ff-opt:hover { color: var(--brand); }
.feed-filter .ff-opt.on { background: var(--brand); color: #fff; }

.feed-status { text-align: center; padding: 14px 0 8px; }
.feed-status span { font-size: 12px; color: var(--text-3); }

/* ---------- 瀑布流（CSS 原生多列，首帧即多列、无 JS 闪动） ---------- */
.cwater {
  column-count: 4;
  column-gap: 24px;
}
.cwater .note-item {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: 24px;
  display: inline-block;
  width: 100%;
}

/* ---------- 瀑布流（JS 分列，发现页沿用） ---------- */
.waterfall {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
  padding-left: 0;
}
/* JS 分列前，服务端直出的卡片先隐藏，避免横排闪烁；分列后卡片移入 .wf-col 即正常显示 */
.waterfall > .note-item {
  display: none;
}
.wf-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.note-item {
  cursor: pointer;
  display: block;
  width: 100%;
}
.note-item .cover {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: var(--line);
}
.note-item .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.note-item:hover .cover img { transform: scale(1.03); }
.note-item .cover video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.note-item .video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.note-item .top-tag {
  position: absolute;
  left: 8px; top: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  padding: 4px 7px;
  border-radius: 8px;
}
.note-item .footer { padding: 10px 8px 4px; background: transparent; }
.note-item .title { margin: 0; }
.note-item .title span {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.note-item .author {
  display: flex;
  align-items: center;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-80);
}
.note-item .author .name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.note-item .author .avatar {
  width: 20px; height: 20px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 5px;
  flex: none;
}
.note-item .like-wrapper {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--text-80);
  flex: none;
}
.note-item .like-wrapper svg { color: var(--text-80); }
.note-item .like-wrapper.on svg { color: var(--brand); fill: var(--brand); }

/* ============================================================
   弹窗灯箱：笔记详情
   ============================================================ */
.reds-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
}
.reds-modal.reds-modal-open { display: block; }
.reds-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.note-modal .note-container {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 48px);
  max-width: 1040px;
  height: calc(100vh - 96px);
  max-height: 840px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
}

/* 左侧媒体 */
.media-container {
  position: relative;
  flex: 0 0 58%;
  background: #000;
  overflow: hidden;
}
.media-scroller {
  display: flex;
  height: 100%;
  transition: transform 0.28s ease;
}
.media-slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.media-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.media-count {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
}
.media-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #333;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.media-arrow.left { left: 12px; }
.media-arrow.right { right: 12px; }
.media-arrow.disabled { opacity: 0.35; pointer-events: none; }

/* 右侧互动栏 */
.interaction-container {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.author-container { flex: none; border-bottom: 1px solid var(--line); }
.author-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
}
.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.author-info { flex: 1; min-width: 0; }
.author-name { font-size: 15px; font-weight: 600; }
.author-desc {
  font-size: 12px;
  color: var(--text-60);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.follow-btn {
  flex: none;
  border: 1px solid var(--brand);
  color: var(--brand);
  background: #fff;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  transition: all 0.15s;
}
.follow-btn:hover { background: var(--brand-light); }
.follow-btn.followed { color: var(--text-60); border-color: var(--line-2); }

/* 内容 + 评论滚动区 */
.note-scroller {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  /* Firefox：默认细透明滚动条 */
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  transition: scrollbar-color .3s ease;
}
/* WebKit：默认隐藏（占轨道但滑块透明），悬停/滚动时淡入 */
.note-scroller::-webkit-scrollbar { width: 8px; }
.note-scroller::-webkit-scrollbar-track {
  background: transparent;
  margin: 6px 0;
}
.note-scroller::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: background .3s ease;
}
.note-scroller:hover,
.note-scroller.scrolling {
  scrollbar-color: rgba(0,0,0,.18) transparent;
}
.note-scroller:hover::-webkit-scrollbar-thumb,
.note-scroller.scrolling::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,.18);
  background-clip: padding-box;
  border: 2px solid transparent;
}
.note-scroller::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,.3);
  background-clip: padding-box;
  border: 2px solid transparent;
}
.note-scroller > .note-content { padding: 16px 16px 0; }
#detail-title {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--text);
}
.note-scroller .desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
}
.note-scroller .date { margin-top: 10px; font-size: 14px; color: var(--text-60); }
.divider { height: 1px; background: var(--line); margin: 14px 16px 0; }

/* 评论 */
.comments-container { padding: 8px 8px 16px; }
.comments-container .total { padding: 8px; font-size: 14px; color: var(--text); }
.parent-comment {
  display: flex;
  gap: 10px;
  padding: 12px 8px;
}
.comment-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.comment-body { flex: 1; min-width: 0; }
.comment-body .name { font-size: 14px; color: var(--text-80); }
.comment-body .content {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text);
  word-break: break-word;
}
.comment-body .info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 6px;
  font-size: 12px;
}
.comment-body .info .date { color: var(--text-60); }
/* 互动操作（喜欢/回复）与评论正文内容左边缘对齐 */
.comment-body > .info .info-right {
  margin: 4px 0 0 0;
  display: flex;
  align-items: center;
  gap: 14px;
}
.cmt-like {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--text-60);
  font-style: normal;
}
.cmt-like em { font-style: normal; font-size: 12px; }
.reply-link { color: var(--text-60); cursor: pointer; }
.reply-link:hover { color: var(--brand); }

/* 评论中的装备卡 */
.cmt-gear {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  background: var(--bg);
  border-radius: 10px;
  padding: 6px 10px;
}
.cmt-gear img { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; }
.cmt-gear span { font-size: 12px; color: var(--text-80); }

/* 子回复（无背景色区分） */
.sub-replies {
  margin-top: 4px;
}
/* 回复折叠/展开开关 */
.sub-replies-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-60);
  cursor: pointer;
  user-select: none;
}
.sub-replies-toggle:hover { color: var(--brand); }
.sub-replies-toggle svg { transition: transform .2s ease; }
.sub-replies.is-expanded .sub-replies-toggle svg { transform: rotate(180deg); }
.comment-item-sub {
  display: flex;
  gap: 8px;
  padding: 8px 0;
}
.sub-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.sub-body {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  word-break: break-word;
}
.sub-body .name { color: var(--text-80); font-size: 13px; }
.sub-body .info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-60);
}
.sub-body .info .info-right {
  margin: 2px 0 0 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sub-info {
  margin-top: 2px; font-size: 12px; color: var(--text-60);
  display: flex; align-items: center; gap: 12px;
}
.sub-info .info-right { gap: 12px; }
.sub-info .cmt-like em { font-size: 12px; }
/* 多层回复逐层缩进，无背景 */
.sub-body .sub-replies { margin-top: 2px; }
.cmt-empty { padding: 30px 8px; text-align: center; color: var(--text-3); font-size: 13px; }

/* 底部评论输入条 */
.engage-bar {
  flex: none;
  border-top: 1px solid var(--line-2);
  padding: 14px 16px 12px;
}
.engage-input {
  display: flex;
  align-items: center;
  gap: 10px;
}
.engage-input-field {
  flex: 1;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: #f0f0f0;
  padding: 0 16px;
  font-size: 14px;
  outline: none;
}
.engage-send {
  flex: none;
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  background: #2966ff;
  color: #fff;
  font-size: 14px;
}
.engage-send:hover { opacity: 0.9; }
.engage-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 10px;
}
.engage-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-60);
  padding: 2px;
}
.engage-btn .eng-count { font-size: 13px; }
.engage-btn:hover { color: var(--brand); }
.engage-btn.on { color: var(--brand); }
.engage-btn.on .eng-icon { fill: var(--brand); }
.engage-share { margin-left: auto; }

/* 灯箱关闭圆钮 */
.close-circle {
  position: absolute;
  top: -42px; right: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.close-circle:hover { background: rgba(255, 255, 255, 0.35); }

/* ============================================================
   笔记详情页（左图右栏卡片，非弹窗）
   ============================================================ */
.detail-view { padding-top: 8px; }
.detail-container {
  position: relative;
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  height: calc(100vh - 96px);
  min-height: 460px;
}
.detail-container .media-container { flex: 0 0 50%; height: 100%; }
/* 日常分类无图：右侧内容撑满 */
.detail-container.no-media .detail-interaction { flex: 1 1 auto; min-width: 0; }
.detail-container .engage-actions .rw-stack { margin-left: -4px; }
.detail-container .engage-actions .rw-btn { height: 30px; padding: 0 12px; }
/* 左侧图片自适应宽高撑满区域，不留黑边 */
.detail-container .media-slide { display: block; }
.detail-container .media-slide img {
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  object-fit: cover;
}
/* 视频笔记：播放器铺满左侧区域，隐藏翻页箭头与计数 */
.detail-container .media-slide-video { background: #000; }
.detail-container .media-slide-video video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.detail-media:has(.media-slide-video) .media-arrow,
.detail-media:has(.media-slide-video) .media-count { display: none; }
/* AI 内容角标：媒体区左上角 */
.detail-media .ai-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 8px;
  pointer-events: none;
}
/* 昵称行最右的关注按钮 */
.detail-container .author-wrapper .detail-author-actions {
  margin-left: auto;
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dm-btn {
  border: 1px solid var(--line-2);
  color: var(--text-1);
  background: #fff;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}
.dm-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }
.detail-container .note-scroller .desc { white-space: normal; font-size: 16px; }
.detail-container #d-title { font-size: 16px; font-weight: 700; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dt-tag {
  font-size: 14px;
  color: var(--brand);
  background: rgba(255, 46, 77, 0.08);
  border-radius: 6px;
  padding: 4px 10px;
}
.dt-tag:hover { background: var(--brand-light); }
.cmt-end { padding: 40px 8px; text-align: center; color: var(--text-3); font-size: 13px; }

/* 本帖装备汇总（右侧内容区日期下方，一行两个） */
.detail-gears {
  margin: 16px 0 0;
  background: #fff;
  border: none;
  border-radius: 0;
  padding: 0;
}
.detail-gears h3 { margin: 0 0 12px; font-size: 15px; }
.dg-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.dg-row {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  background: #fff;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.dg-row img { width: 40px; height: 40px; border-radius: 8px; flex: 0 0 auto; }
.dg-row .dg-name {
  color: var(--text); font-size: 13px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  flex: 1; min-width: 0;
}
.dg-row .dg-price { color: var(--brand); font-size: 13px; margin-left: 8px; flex: 0 0 auto; }
@media (max-width: 960px) {
  .detail-container { flex-direction: column; min-height: 0; height: auto; }
  .detail-container .media-container { flex: none; min-height: 0; height: 360px; }
}

/* ============================================================
   装备清单详情页
   ============================================================ */
.cl-no-cover {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f6f7f9, #eceef2);
}
.cl-no-cover span { font-size: 96px; opacity: 0.7; }
.cl-desc { color: var(--text-80); }

/* 详细信息四宫格 */
.cl-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.cli-item {
  background: var(--fill);
  border-radius: 10px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.cli-k { font-size: 12px; color: var(--text-60); }
.cli-v { font-size: 15px; font-weight: 700; color: var(--text); }

/* 分类细则 */
.cl-group { margin-top: 20px; }
.cl-group-head {
  font-size: 15px;
  font-weight: 700;
  padding-left: 10px;
  border-left: 3px solid var(--brand);
  line-height: 1.2;
}
.cl-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px 10px 6px;
  border-bottom: 1px solid var(--line);
}
.cl-dot {
  flex: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--fill);
  color: var(--text-3);
  display: grid;
  place-items: center;
  font-size: 13px;
  line-height: 1;
}
.cl-row.done .cl-dot { background: var(--brand); color: #fff; }
.cl-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cl-name {
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.cl-name em { font-style: normal; color: var(--text-60); font-size: 13px; }
.cl-gear-link { font-size: 12px; color: var(--brand); }
.cl-row.done .cl-name { color: var(--text-60); }
.cl-remark { margin-top: 2px; font-size: 12px; color: var(--text-60); }
.cl-nums {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 12px;
  color: var(--text-60);
  line-height: 1.5;
}

/* 底部三按钮并排 */
.cl-engage-bar { padding-top: 10px; }
.cl-engage-actions {
  margin-top: 0;
  margin-bottom: 12px;
  gap: 0;
}
.cl-engage-actions .engage-btn {
  flex: 1;
  justify-content: center;
  gap: 6px;
  padding: 8px 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
}
.cl-engage-actions .engage-btn + .engage-btn { margin-left: 12px; }
.cl-engage-actions .engage-btn.on { border-color: var(--brand); background: var(--brand-light); }

@media (max-width: 640px) {
  .cl-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============================================================
   测评详情页（左主栏文章 + 右侧栏作者/榜单，参考 smzdm）
   ============================================================ */
.rv-detail { padding-top: 8px; }
.rv-layout {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.rv-main { flex: 1; min-width: 0; }
.rv-side { flex: 0 0 300px; width: 300px; }

/* 左侧文章卡 */
.rv-article {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 32px;
}
/* 测评/攻略金色斜角角标 */
.rv-article.has-ribbon { overflow: hidden; }
.rv-ribbon {
  position: absolute;
  top: 18px;
  right: -38px;
  width: 130px;
  text-align: center;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #f6d365 0%, #d4a017 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 26px;
  box-shadow: 0 2px 6px rgba(180, 140, 20, 0.35);
  z-index: 2;
  pointer-events: none;
}
.rv-title {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--text);
}
.rv-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-3);
  font-size: 13px;
  flex-wrap: wrap;
}
.rv-meta-author { display: flex; align-items: center; gap: 6px; color: var(--text-2); }
.rv-meta-author img { width: 24px; height: 24px; border-radius: 50%; }
.rv-meta-time::before { content: '·'; margin-right: 12px; color: var(--text-3); }
.rv-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.rv-tag {
  font-size: 12px;
  color: var(--brand);
  background: rgba(255, 46, 77, 0.08);
  border-radius: 6px;
  padding: 3px 10px;
}
.rv-content {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
}
.rv-content img { max-width: 100%; border-radius: 10px; margin: 12px 0; }
.rv-content p { margin: 0 0 14px; }
.rv-content h2, .rv-content h3 { margin: 24px 0 12px; }

/* 测评/游记/攻略详情：正文上方视频与图集 */
.rv-media {
  position: relative;
  margin-top: 22px;
}
.rv-media-video {
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}
.rv-media-video video {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  background: #000;
}
.rv-media-images img {
  display: block;
  width: 100%;
  border-radius: 12px;
  margin-bottom: 12px;
}
.rv-carousel {
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}
.rv-carousel-viewport {
  overflow: hidden;
}
.rv-carousel-track {
  display: flex;
  transition: transform 0.3s ease;
}
.rv-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
}
.rv-carousel-slide img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  background: #000;
}
.rv-carousel-count {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 4;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.2s;
}
.rv-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 38px;
  height: 38px;
  margin-top: -19px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.rv-carousel-arrow.left { left: 14px; }
.rv-carousel-arrow.right { right: 14px; }
.rv-media .ai-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 8px;
  pointer-events: none;
}

/* 攻略关联旅途信息表 */
.trip-info-card {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, #fafbff, #fff);
}
.tic-head { padding: 15px 20px; border-bottom: 1px solid var(--line); background: #fff; }
.tic-title { font-size: 15px; font-weight: 700; color: var(--text-1); }
.tic-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.tic-item { display: flex; align-items: center; gap: 12px; padding: 15px 20px; border-bottom: 1px solid #f3f4f6; }
.tic-item:nth-last-child(-n+2):nth-child(odd),
.tic-grid .tic-item:nth-child(odd) { border-right: 1px solid #f3f4f6; }
.tic-item:last-child:nth-child(odd) { border-right: none; }
.tic-icon {
  flex: none; width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; font-size: 18px;
  background: var(--brand-light);
}
.tic-label { font-size: 12px; color: var(--text-3); margin-bottom: 2px; }
.tic-value { font-size: 14px; font-weight: 600; color: var(--text-1); }
@media (max-width: 640px) {
  .tic-grid { grid-template-columns: 1fr; }
  .tic-grid .tic-item { border-right: none !important; }
}

/* 测评装备 */
.rv-goods { margin-top: 28px; }
.rv-goods-head {
  font-size: 16px;
  font-weight: 700;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.rv-goods-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
  background: #fff;
}
.rv-goods-item img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; }
.rv-goods-item video { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; pointer-events: none; background: #000; }
.rv-goods-item .rgi-info { flex: 1; min-width: 0; }
.rv-goods-item .rgi-name {
  font-size: 14px; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rv-goods-item .rgi-price { font-size: 14px; color: var(--brand); font-weight: 700; margin-top: 4px; }
.rv-goods-item .rgi-go { font-size: 13px; color: var(--text-3); flex: 0 0 auto; }
.rv-goods-item:hover { border-color: var(--brand); }
.rv-goods-item:hover .rgi-go { color: var(--brand); }

/* 文中提及的酒店 */
.rv-hotels { margin-top: 28px; }
.rv-hotel-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
  background: #fff;
}
.rv-hotel-item img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; background: var(--fill); }
.rv-hotel-item .rhi-info { flex: 1; min-width: 0; }
.rv-hotel-item .rhi-name {
  font-size: 15px; font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rv-hotel-item .rhi-meta { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 12px; color: var(--text-3); }
.rv-hotel-item .rhi-score { color: var(--brand); font-weight: 600; }
.rv-hotel-item .rhi-right { flex: 0 0 auto; text-align: right; }
.rv-hotel-item .rhi-price { font-size: 18px; color: var(--brand); font-weight: 700; }
.rv-hotel-item .rhi-price i { font-size: 12px; font-weight: 400; font-style: normal; color: var(--text-3); margin-left: 2px; }
.rv-hotel-item .rhi-go { display: block; font-size: 12px; color: var(--text-3); margin-top: 4px; }
.rv-hotel-item:hover { border-color: var(--brand); }
.rv-hotel-item:hover .rhi-go { color: var(--brand); }

/* 文末互动 */
.rv-engage {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.rve-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: #fff;
  color: var(--text-2);
  font-size: 14px;
}
.rve-btn.on { color: var(--brand); border-color: var(--brand); background: rgba(255, 46, 77, 0.06); }

/* 评论区 */
.rv-comments {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 32px;
  margin-top: 20px;
}
.rv-cmt-head { font-size: 16px; font-weight: 700; margin-bottom: 18px; }
.rv-cmt-input {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.rv-cmt-input img { width: 36px; height: 36px; border-radius: 50%; flex: 0 0 auto; }
.rv-cmt-input input {
  flex: 1;
  min-width: 0;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0 16px;
  font-size: 14px;
  background: var(--bg, #f7f7f7);
}
.rv-cmt-input input:focus { border-color: var(--brand); background: #fff; outline: none; }
.rv-cmt-input button {
  height: 40px;
  padding: 0 20px;
  border: none;
  border-radius: 20px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  flex: 0 0 auto;
}

/* 右侧作者卡 */
.rv-author-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
}
.rac-avatar { display: block; }
.rac-avatar img { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto; }
.rac-name { display: block; font-size: 16px; font-weight: 700; margin-top: 10px; color: var(--text); }
.rac-bio {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rac-stats {
  display: flex;
  justify-content: space-around;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.rac-stats strong { display: block; font-size: 17px; color: var(--text); }
.rac-stats span { font-size: 12px; color: var(--text-3); }
.rac-follow {
  width: 100%;
  height: 38px;
  margin-top: 16px;
  border: none;
  border-radius: 19px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
}
.rac-follow.followed { background: #f2f2f2; color: var(--text-2); }

/* 右侧区块 */
.rv-side-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  margin-top: 20px;
}
.rsb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.rsb-title { font-size: 15px; font-weight: 700; }
.rsb-more { font-size: 12px; color: var(--text-3); }
.rsb-list { list-style: none; margin: 0; padding: 0; }
.rsb-list li + li { margin-top: 14px; }
.rsb-link { display: flex; gap: 10px; align-items: flex-start; }
.rsb-link img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; }
.rsb-text { flex: 1; min-width: 0; }
.rsb-text em {
  display: block;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rsb-sub { display: flex; gap: 12px; margin-top: 5px; font-size: 12px; color: var(--text-3); }
.rsb-like { color: var(--brand); }
.rsb-rank { list-style: none; margin: 0; padding: 0; }
.rsb-rank li { display: flex; align-items: center; gap: 10px; }
.rsb-rank li + li { margin-top: 12px; }
.rank-no {
  flex: 0 0 20px;
  width: 20px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-3);
}
.rank-no.top { color: var(--brand); }
.rsb-rank a {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (max-width: 960px) {
  .rv-layout { flex-direction: column; }
  .rv-side { flex: none; width: 100%; }
  .rv-article, .rv-comments { padding: 20px; }
}


/* ============================================================
   登录弹窗
   ============================================================ */
.login-modal .login-container {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 40px);
  max-width: 720px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
}
.login-left {
  flex: 0 0 300px;
  background: linear-gradient(160deg, #ff4d68, #ff2e4d);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 24px;
}
.ll-brand { font-size: 26px; font-weight: 800; margin-bottom: 26px; }
.ll-qr {
  width: 150px; height: 150px;
  background: #fff;
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.ll-tip { margin-top: 16px; font-size: 13px; opacity: 0.95; }
.ll-tutorial { margin-top: 10px; font-size: 13px; cursor: pointer; opacity: 0.9; }
.login-right { flex: 1; padding: 34px 34px 28px; position: relative; }
.lr-title { font-size: 20px; font-weight: 700; }
.lr-sub { font-size: 13px; color: var(--text-60); margin-top: 4px; }
.lr-input {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line-2);
  margin-top: 22px;
}
.lr-code { color: var(--text); font-size: 15px; padding-right: 12px; border-right: 1px solid var(--line-2); }
.lr-register-tip { margin-top: 14px; font-size: 13px; color: var(--text-60); text-align: center; }
.lr-register-tip a { color: var(--brand); }
.lr-register-tip a:hover { color: var(--brand-dark); }
.lr-input input {
  flex: 1;
  border: none;
  outline: none;
  padding: 11px 0 11px 12px;
  font-size: 15px;
  background: transparent;
}
.lr-code-row .lr-sendcode {
  flex: none;
  color: var(--brand);
  font-size: 13px;
  white-space: nowrap;
  padding-left: 10px;
}
.lr-code-row .lr-sendcode:disabled { color: var(--text-3); cursor: not-allowed; }
.lr-captcha-img {
  flex: none;
  width: 108px;
  height: 38px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  object-fit: cover;
  cursor: pointer;
  margin-left: 10px;
  background: #f3f4f6;
}
.lr-agree { margin-top: 18px; font-size: 12px; color: var(--text-60); display: flex; gap: 6px; }
.lr-agree a { color: var(--brand); }
.lr-submit {
  width: 100%;
  height: 46px;
  margin-top: 20px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 16px;
}
.lr-submit:hover { background: var(--brand-dark); }
.lr-third { margin-top: 18px; text-align: center; }
.lr-third-btn {
  display: inline-block;
  font-size: 13px;
  color: var(--text-60);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 7px 18px;
}
.lr-third-btn:hover { color: var(--brand); border-color: var(--brand); }
.login-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-60);
  z-index: 5;
}
.login-close:hover { background: var(--fill); color: var(--text); }

/* ============================================================
   下拉卡（通知 / 更多）
   ============================================================ */
.drop-pop {
  position: fixed;
  z-index: 250;
  min-width: 220px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.14);
  padding: 8px;
  display: none;
}
.drop-pop.show { display: block; animation: popIn 0.16s ease; }
@keyframes popIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.dp-head { padding: 8px 10px; font-size: 14px; font-weight: 600; }
.dp-body { padding: 0 4px 4px; }
.np-empty { padding: 20px 10px; font-size: 13px; color: var(--text-3); text-align: center; }
.more-pop a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text);
}
.more-pop a span { font-size: 15px; width: 20px; text-align: center; }
.more-pop a:hover { background: var(--fill); }

/* ============================================================
   以下为内容页沿用样式（圈子/装备/发布/个人中心等）
   ============================================================ */
.quick-entry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.quick-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px 12px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.2s;
}
.quick-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.quick-card .q-ico { font-size: 30px; }
.quick-card .q-name { margin-top: 6px; font-size: 14px; font-weight: 600; }
.quick-card .q-count { color: var(--text-3); font-size: 12px; }

.section-head { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 14px; }
.section-title { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ""; width: 4px; height: 18px; background: var(--brand); border-radius: 2px; }
.section-more { color: var(--text-3); font-size: 13px; }
.section-more:hover { color: var(--brand); }

.hscroll { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.hscroll::-webkit-scrollbar { height: 5px; }
.hscroll::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }
.gear-card-sm {
  flex: 0 0 170px;
  scroll-snap-align: start;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.gear-card-sm:hover { transform: translateY(-3px); }
.gear-card-sm img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gear-card-sm .gc-body { padding: 8px 10px 10px; }
.gear-brand { font-size: 11px; color: var(--text-3); }
.gear-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gear-price { color: var(--brand); font-weight: 700; font-size: 14px; margin-top: 3px; }
.gear-meta { font-size: 11px; color: var(--text-3); }

/* ============================================================
   圈子合集页（横向卡片列表）
   ============================================================ */
.circle-tabs {
  display: flex; align-items: center; gap: 32px;
  margin: 18px 0 20px;
  border-bottom: 1px solid var(--line);
}
.circle-tabs .ct-label {
  flex: none; font-size: 18px; font-weight: 700; color: var(--text);
  padding-bottom: 10px;
}
.circle-tabs .ct {
  position: relative; font-size: 16px; font-weight: 500;
  color: var(--text-3); cursor: pointer; padding-bottom: 10px;
}
.circle-tabs .ct.active { color: var(--text); font-weight: 600; }
.circle-tabs .ct.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 3px; border-radius: 2px; background: var(--brand);
}
.circle-list.tab-panel { display: none; }
.circle-list.tab-panel.active { display: flex; flex-direction: column; gap: 22px; }
.circle-empty {
  background: #fff; border-radius: 18px; padding: 60px 0;
  text-align: center; color: var(--text-3); font-size: 14px;
}

.circle-list { display: flex; flex-direction: column; gap: 22px; }
.circle-row {
  display: flex; align-items: center; gap: 24px;
  background: #fff; border-radius: 18px; padding: 22px 30px;
  box-shadow: 0 2px 14px rgba(0,0,0,.04);
}
.cr-icon {
  flex: none; width: 132px; height: 132px;
  border-radius: 22px; overflow: hidden; display: grid; place-items: center;
  background: var(--bg);
}
.cr-icon img { width: 100%; height: 100%; object-fit: cover; }
.cr-emoji { font-size: 60px; }
.cr-main { flex: 1; min-width: 0; }
.cr-head { display: flex; align-items: center; gap: 10px; }
.cr-name { font-size: 24px; font-weight: 700; color: var(--text); }
.cr-hot {
  flex: none; font-size: 12px; color: #fff; background: var(--brand);
  border-radius: 6px; padding: 2px 7px; font-weight: 500;
}
.cr-intro {
  margin-top: 12px; font-size: 15px; color: var(--text-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cr-members { margin-top: 14px; display: flex; align-items: center; }
.cr-members img {
  width: 30px; height: 30px; border-radius: 50%; object-fit: cover;
  border: 2px solid #fff; margin-left: -8px; background: var(--bg);
}
.cr-members img:first-child { margin-left: 0; }
.cr-member-num { margin-left: 10px; font-size: 14px; color: var(--text-2); }

.cr-stat {
  flex: none; width: 104px; padding: 14px 0;
  border: 1px solid var(--line); border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.cr-stat strong { font-size: 22px; font-weight: 700; }
.cr-stat span { font-size: 13px; color: var(--text-2); }
.cr-enter {
  flex: none; padding: 11px 26px; border-radius: 24px;
  border: 1px solid var(--brand); color: var(--brand); font-size: 15px;
  transition: all .18s;
}
.cr-enter:hover { background: var(--brand); color: #fff; }

/* ---------- 创建圈子按钮 + 付费标签 ---------- */
.circle-tabs { gap: 26px; }
.create-circle-btn {
  flex: none; margin-left: auto; margin-bottom: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  border: none; cursor: pointer;
  background: var(--brand); color: #fff;
  font-size: 14px; font-weight: 600;
  padding: 8px 16px; border-radius: 20px;
  box-shadow: 0 4px 12px rgba(255,90,46,.28);
  transition: all .18s;
}
.create-circle-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(255,90,46,.38); }
.cr-pay {
  flex: none; font-size: 12px; color: #ff5a2e;
  background: rgba(255,90,46,.1); border-radius: 6px;
  padding: 2px 7px; font-weight: 600;
}

/* ---------- 创建圈子灯箱 ---------- */
.create-circle-modal .cc-container {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 32px);
  max-width: 560px;
  max-height: calc(100vh - 64px);
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.cc-head {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid var(--line);
}
.cc-head h3 { margin: 0; font-size: 18px; font-weight: 700; }
.cc-close { cursor: pointer; color: var(--text-3); display: inline-flex; }
.cc-close:hover { color: var(--text); }
.cc-body {
  flex: 1; overflow-y: auto;
  padding: 20px 24px 8px;
}
.cc-label { font-size: 14px; font-weight: 600; color: var(--text); margin: 16px 0 10px; }
.cc-label:first-child { margin-top: 0; }
.cc-req { color: var(--brand); margin-right: 2px; }

.cc-upload {
  width: 120px; height: 120px; border-radius: 14px; overflow: hidden;
}
.cc-upload-add {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: var(--bg); color: var(--text-3);
  border: 1px dashed #cfd4dc; border-radius: 14px;
  font-size: 12px; cursor: pointer;
  transition: all .18s;
}
.cc-upload-add:hover { border-color: var(--brand); color: var(--brand); }
.cc-upload-preview { position: relative; width: 100%; height: 100%; }
.cc-upload-preview img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.cc-preview-del {
  position: absolute; top: -8px; right: -8px;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(0,0,0,.6); color: #fff;
  display: grid; place-items: center;
  font-size: 16px; line-height: 1; cursor: pointer;
}

.cc-input, .cc-textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 14px; font-size: 14px; color: var(--text);
  background: #fff; outline: none;
  transition: border-color .18s;
  font-family: inherit;
}
.cc-input:focus, .cc-textarea:focus { border-color: var(--brand); }
.cc-textarea { resize: vertical; min-height: 96px; }

.cc-cats { display: flex; flex-wrap: wrap; gap: 10px; }
.cc-cat {
  cursor: pointer; border: 1px solid var(--line); border-radius: 20px;
  padding: 7px 18px; font-size: 14px; color: var(--text-2);
  transition: all .18s;
}
.cc-cat input { display: none; }
.cc-cat.on, .cc-cat:hover { border-color: var(--brand); color: var(--brand); background: rgba(255,90,46,.06); }

.cc-perm { display: flex; gap: 12px; }
.cc-perm-item {
  flex: 1; cursor: pointer; text-align: center;
  border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 0; font-size: 14px; color: var(--text-2);
  transition: all .18s;
}
.cc-perm-item input { display: none; }
.cc-perm-item.on { border-color: var(--brand); color: var(--brand); background: rgba(255,90,46,.06); font-weight: 600; }

.cc-price-row { margin-top: 4px; }
.cc-price-input {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 12px;
  padding: 0 14px; width: 200px;
  transition: border-color .18s;
}
.cc-price-input:focus-within { border-color: var(--brand); }
.cc-price-input span { color: var(--text-2); font-size: 15px; }
.cc-price-input input {
  flex: 1; border: none; outline: none; padding: 11px 0;
  font-size: 14px; min-width: 0;
}
.cc-tip { margin: 8px 0 0; font-size: 12px; color: var(--text-3); }

.cc-foot {
  flex: none; display: flex; justify-content: flex-end; gap: 12px;
  padding: 14px 24px; border-top: 1px solid var(--line);
}
.cc-cancel, .cc-submit {
  cursor: pointer; border-radius: 22px; font-size: 14px; font-weight: 600;
  padding: 9px 24px; transition: all .18s;
}
.cc-cancel { background: var(--bg); color: var(--text-2); }
.cc-cancel:hover { background: #ececec; }
.cc-submit { border: none; background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(255,90,46,.28); }
.cc-submit:hover { box-shadow: 0 6px 16px rgba(255,90,46,.38); }
.cc-submit:disabled { opacity: .6; cursor: not-allowed; }

/* ---------- 付费入圈灯箱 ---------- */
.pay-modal .pm-container {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 32px);
  max-width: 420px;
  max-height: calc(100vh - 64px);
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.pm-head {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--line);
}
.pm-head h3 { margin: 0; font-size: 17px; font-weight: 700; }
.pm-close { cursor: pointer; color: var(--text-3); display: inline-flex; }
.pm-close:hover { color: var(--text); }
.pm-body { flex: 1; overflow-y: auto; padding: 20px 22px; }

.pm-order {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; color: var(--text-2);
}
.pm-order strong { font-size: 22px; color: var(--brand); font-weight: 800; }
.pm-label { font-size: 14px; font-weight: 600; margin: 20px 0 12px; }
.pm-channels { display: flex; flex-direction: column; gap: 10px; }
.pm-channel {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: 14px;
  padding: 13px 16px; cursor: pointer;
  transition: all .18s;
}
.pm-channel:hover { border-color: var(--brand); background: rgba(255,90,46,.04); }
.pm-ico {
  flex: none; width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; color: #fff;
}
.pm-ico-wechat { background: #09bb07; }
.pm-ico-alipay { background: #1677ff; }
.pm-ch-name { flex: 1; font-size: 15px; font-weight: 600; }
.pm-ch-arrow { color: var(--text-3); font-size: 20px; }
.pm-note { margin: 18px 0 0; text-align: center; font-size: 12px; color: var(--text-3); }

.pm-qr-tip { text-align: center; font-size: 15px; font-weight: 600; }
.pm-qr {
  width: 200px; height: 200px; margin: 18px auto 0;
  display: grid; place-items: center;
}
.pm-qr img, .pm-qr canvas { border-radius: 6px; }
.pm-qr-loading { color: var(--text-3); font-size: 13px; }
.pm-qr-amount { text-align: center; font-size: 22px; font-weight: 800; color: var(--brand); margin-top: 12px; }
.pm-qr-status { text-align: center; font-size: 13px; color: var(--text-2); margin-top: 8px; }
.pm-qr-status.paid { color: #09bb07; font-weight: 600; }
.pm-back {
  display: block; margin: 18px auto 0; cursor: pointer;
  background: none; border: none; color: var(--brand); font-size: 13px;
}

/* ============================================================
   圈子主页（头部 + 瀑布流）
   ============================================================ */
.circle-profile {
  display: flex; align-items: flex-start; gap: 22px;
  padding: 26px 4px 30px;
}
.cp-icon {
  flex: none; width: 108px; height: 108px; border-radius: 26px;
  overflow: hidden; display: grid; place-items: center; background: var(--bg);
}
.cp-icon img { width: 100%; height: 100%; object-fit: cover; }
.cp-emoji { font-size: 52px; }
.cp-info { flex: 1; min-width: 0; padding-top: 4px; }
.cp-name { margin: 0; font-size: 30px; font-weight: 800; }
.cp-meta { margin-top: 10px; font-size: 15px; color: var(--text-2); }
.cp-desc { margin: 14px 0 0; font-size: 15px; color: var(--text-2); }
.cp-join {
  flex: none; margin-top: 8px;
  border: none; border-radius: 26px; cursor: pointer;
  background: #2f7bff; color: #fff; font-size: 16px; font-weight: 600;
  padding: 13px 34px; box-shadow: 0 6px 16px rgba(47,123,255,.3);
  transition: all .18s;
}
.cp-join .jp-plus { font-size: 18px; font-weight: 700; margin-right: 2px; }
.cp-join.joined { background: var(--bg); color: var(--text-2); box-shadow: none; }

/* 加入 + 发布 操作区 */
.cp-actions { flex: none; display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.cp-actions .cp-join { margin-top: 0; }
.cp-publish {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 22px; border-radius: 26px;
  background: var(--brand); color: #fff; font-size: 15px; font-weight: 600;
  box-shadow: 0 6px 16px rgba(46,125,74,.28);
  transition: transform .18s, box-shadow .18s;
}
.cp-publish svg { flex: none; }
.cp-publish:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(46,125,74,.35); }

/* 内容分类 TAB（测评 / 游记） */
.cat-tabs { display: flex; align-items: center; gap: 10px; margin: 4px 0 22px; }
.cat-tab {
  padding: 7px 20px; border-radius: 20px;
  background: #fff; color: var(--text-60); font-size: 14px;
  box-shadow: var(--shadow); transition: all .18s;
}
.cat-tab:hover { color: var(--brand); }
.cat-tab.on { background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(46,125,74,.28); }

/* 卡片上的分类小标签 */
.note-item .note-cat {
  margin-left: auto; flex: none;
  padding: 1px 8px; border-radius: 6px;
  font-size: 11px; line-height: 18px; font-style: normal;
}
.note-item .note-cat + .like-wrapper { margin-left: 6px; }
.note-cat.nc-review { background: rgba(255,122,0,.12); color: #e86a00; }
.note-cat.nc-note { background: rgba(47,123,255,.12); color: #2f7bff; }
.note-cat.nc-travel { background: rgba(47,123,255,.12); color: #2f7bff; }

.filter-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.filter-tab { padding: 6px 15px; border-radius: 18px; background: #fff; color: var(--text-60); font-size: 13px; box-shadow: var(--shadow); }
.filter-tab.on { background: var(--brand); color: #fff; }
.filter-tab:hover:not(.on) { color: var(--brand); }

/* ---------- 笔记详情整页（/note/:id） ---------- */
.note-detail { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); gap: 22px; margin: 20px 0; }
.note-main { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.note-gallery { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin: 14px 0; }
.note-gallery .g-first { grid-column: span 2; }
.note-gallery img { width: 100%; border-radius: 10px; }
.note-detail-title { font-size: 22px; font-weight: 700; margin: 4px 0 10px; }
.note-meta-line { color: var(--text-3); font-size: 13px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.note-main .note-content { margin: 18px 0; font-size: 15px; line-height: 1.85; }
.note-main .note-content img { border-radius: 10px; margin: 12px 0; }
.note-main .note-content p { margin: 0 0 14px; }

.author-box { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.author-box img { width: 46px; height: 46px; border-radius: 50%; }
.author-box .ab-name { font-weight: 700; }
.author-box .ab-bio { font-size: 12px; color: var(--text-3); }
.author-box .btn { margin-left: auto; }

.action-row { display: flex; gap: 10px; margin: 16px 0; }
.action-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px; border-radius: 12px; background: var(--bg); color: var(--text-60); font-size: 14px;
  transition: all 0.18s;
}
.action-btn.on { background: var(--brand-light); color: var(--brand); }
.action-btn:hover { color: var(--brand); }

.note-side { display: flex; flex-direction: column; gap: 18px; }
.side-card { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.side-card h3 { margin: 0 0 12px; font-size: 15px; display: flex; align-items: center; gap: 7px; }
.side-card h3::before { content:""; width:3px;height:14px;background:var(--brand);border-radius:2px; }

.gear-row { display: flex; gap: 11px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.gear-row:last-child { border-bottom: none; }
.gear-row img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; }
.gear-row .gr-name { font-size: 13px; font-weight: 600; line-height: 1.35; }
.gear-row .gr-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.gear-row .gr-price { color: var(--brand); font-weight: 700; font-size: 13px; margin-top: 2px; }

/* 整页评论 */
.comment-input { display: flex; gap: 10px; margin-bottom: 18px; }
.comment-input img { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.comment-input .ci-box { flex: 1; }
.comment-input textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; resize: none; height: 70px; outline: none; font-size: 13px; }
.comment-input textarea:focus { border-color: var(--brand); }
.ci-tools { display: flex; align-items: center; margin-top: 7px; gap: 10px; }
.ci-tools .btn { margin-left: auto; }
.comment-item { display: flex; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment-item img { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.comment-item .c-name { font-size: 13px; font-weight: 600; }
.comment-item .c-time { font-size: 11px; color: var(--text-3); margin-left: 8px; }
.comment-item .c-text { font-size: 14px; margin-top: 3px; }
.comment-item .c-gear { margin-top:8px; }

/* ---------- 装备库列表 ---------- */
.gear-layout { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 20px; margin: 20px 0; }
.filter-panel { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); height: fit-content; position: sticky; top: 90px; }
.filter-group { margin-bottom: 18px; }
.filter-group h4 { margin: 0 0 9px; font-size: 13px; color: var(--text-60); }
.filter-opts { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-opts label { font-size: 12px; padding: 4px 11px; border-radius: 14px; background: var(--bg); cursor: pointer; color: var(--text-60); }
.filter-opts input { display: none; }
.filter-opts label.on, .filter-opts input:checked + span { background: var(--brand-light); color: var(--brand); }
.gear-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.gear-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: all .2s;
}
.gear-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.gear-card .gc-img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gear-card .gc-body { padding: 10px 12px 12px; }
.gear-card .gc-params { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.gear-card .gc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.gear-card .gc-rev { font-size: 11px; color: var(--text-3); }

/* ---------- 装备单品详情 ---------- */
.gear-detail-top { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 26px; background:#fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin: 20px 0; }
.gd-gallery .gd-main { border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--line); }
.gd-gallery .gd-main img { width: 100%; height: 100%; object-fit: cover; }
.gd-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.gd-thumbs img { width: 58px; height: 58px; border-radius: 9px; object-fit: cover; border: 2px solid transparent; }
.gd-thumbs img.on { border-color: var(--brand); }
.gd-actions { margin: 14px 0 0; }
/* 图片底部点赞/收藏：大图标扁平化 */
.gd-act { padding: 12px; gap: 8px; font-size: 15px; }
.gd-act-ico { flex: none; }
.gd-act-num { font-weight: 600; }
.gd-act.on .gd-act-ico { fill: currentColor; stroke: currentColor; }

/* 装备问答：喜欢 / 回复 */
.qa-body { min-width: 0; flex: 1; }
.qa-actions { display: flex; gap: 18px; margin-top: 8px; }
.qa-like, .qa-reply {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-3);
  cursor: pointer;
}
.qa-like em { font-style: normal; }
.qa-like.on { color: var(--red, #e5484d); }
.qa-like.on svg { fill: currentColor; stroke: currentColor; }
.qa-reply:hover, .qa-like:hover { color: var(--brand); }
.qa-replies { margin-top: 10px; padding-left: 12px; border-left: 2px solid var(--line); }
.qa-sub { display: flex; gap: 10px; margin-top: 10px; }
.qa-sub img { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.qa-item img { align-self: flex-start; }
.gd-brand { color: var(--text-3); font-size: 14px; }
.gd-name { font-size: 24px; font-weight: 800; margin: 3px 0 12px; }
.gd-price { color: var(--brand); font-size: 22px; font-weight: 800; display:inline-block; }
.gd-params { margin: 16px 0; }
.gd-params .gp-row { display: flex; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.gd-params .gp-k { width: 88px; color: var(--text-3); flex: none; }
.cps-box { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 9px; }
.cps-btn { display: inline-flex; align-items: center; gap: 4px; padding: 6px 14px; border-radius: 6px; background: #ff2442; color: #fff; font-size: 13px; font-weight: 500; transition: background 0.18s; }
.cps-btn:hover { background: #e61f3b; }
.cps-btn .cps-arrow { font-size: 15px; line-height: 1; font-weight: 400; }

.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; }
.pc-box { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.pc-box h3 { margin: 0 0 10px; font-size: 15px; }
.pc-box.pros h3 { color: #21a179; }
.pc-box.cons h3 { color: var(--brand); }
.pc-box li { padding: 5px 0; font-size: 13px; color: var(--text-60); }

/* ---------- 登录页 ---------- */
.auth-wrap { position:relative; z-index:1; display:flex; max-width:1200px; margin:40px auto; background:#fff; border-radius:20px; overflow:hidden; box-shadow:0 24px 70px rgba(214,30,60,.16), 0 6px 20px rgba(0,0,0,.06); }

/* 登录 / 注册页整页背景（仅作用于该页）：统一色调，不用白色 */
body:has(.auth-wrap) { background:#eef1f6; }
html:has(body .auth-wrap) { background:#eef1f6; }
.auth-bg { display:none; }
body:has(.auth-wrap) .header-container { background:rgba(238,241,246,.85); backdrop-filter:blur(10px); }
/* 页面背景统一：外层容器透明，露出整页渐变，不再有白底 */
body:has(.auth-wrap) .layout.limit { background:transparent; }

/* 左侧品牌视觉 */
.auth-wrap .auth-visual { position:relative; flex:1; min-height:560px; padding:38px 34px; color:#fff; display:flex; flex-direction:column; background:linear-gradient(155deg,#ff5a72 0%,#ff2e4d 48%,#d81236 100%); overflow:hidden; }
.auth-wrap .av-brand { position:relative; font-size:22px; font-weight:800; letter-spacing:.5px; }
.auth-wrap .av-scene { position:absolute; left:0; right:0; bottom:0; width:100%; height:auto; pointer-events:none; }
.auth-wrap .av-text { position:relative; margin:auto 0; }
.auth-wrap .av-text h2 { font-size:28px; font-weight:800; line-height:1.3; margin-bottom:12px; text-shadow:0 2px 10px rgba(0,0,0,.15); }
.auth-wrap .av-text p { font-size:14px; line-height:1.8; color:rgba(255,255,255,.92); margin-bottom:20px; }
.auth-wrap .av-points { position:relative; display:flex; flex-wrap:wrap; gap:8px; margin:0; list-style:none; }
.auth-wrap .av-points li { font-size:12px; padding:6px 12px; border-radius:999px; background:rgba(255,255,255,.18); border:1px solid rgba(255,255,255,.30); }

/* 右侧表单区 */
.auth-wrap .auth-side { width:420px; flex-shrink:0; padding:40px 38px; background:#fff; }
.auth-wrap .auth-logo { font-size: 24px; font-weight: 800; color: var(--brand); margin-bottom: 4px; }
.auth-wrap .auth-sub { color: var(--text-3); font-size: 13px; margin-bottom: 22px; }

.auth-switch {
  display: flex;
  gap: 4px;
  background: var(--bg);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 22px;
}
.auth-switch .asw {
  flex: 1;
  background: transparent;
  color: var(--text-60);
  font-size: 13px;
  padding: 8px 4px;
  border-radius: 9px;
  transition: all 0.16s;
  white-space: nowrap;
}
.auth-switch .asw.on { background: #fff; color: var(--brand); font-weight: 600; box-shadow: var(--shadow); }

.req-hint { color: var(--text-3); font-size: 11px; font-weight: 400; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; color: var(--text-60); margin-bottom: 6px; }
.auth-wrap .input-box { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; transition: border-color .18s; }
.auth-wrap .input-box:focus-within { border-color: var(--brand); }
.auth-wrap .input-box input { border: none; outline: none; flex: 1; padding: 12px 0; font-size: 15px; background: transparent; width: 100%; }
.auth-wrap .input-box .send-code { border-left: 1px solid var(--line); padding-left: 14px; color: var(--brand); font-size: 13px; white-space: nowrap; }
.auth-wrap .input-box .send-code:disabled { color: var(--text-3); cursor: not-allowed; }
.third-login { display: flex; justify-content: center; gap: 22px; margin-top: 24px; }
.third-login button { width: 44px; height: 44px; border-radius: 50%; background: var(--bg); font-size: 20px; }
.auth-tip { font-size: 11px; color: var(--text-3); text-align: center; margin-top: 18px; line-height: 1.7; }

@media (max-width: 860px) {
  .auth-wrap { max-width:440px; margin:24px auto; box-shadow:var(--shadow); }
  .auth-wrap .auth-visual { display:none; }
  .auth-wrap .auth-side { width:auto; flex:1; padding:32px 26px; }
}

/* ---------- 发布页 ---------- */
.publish-wrap { max-width: 760px; margin: 22px auto; background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.pub-label { font-size: 14px; font-weight: 600; margin: 18px 0 8px; }
.pub-label .req { color: var(--brand); }
.pub-title-input { width: 100%; border: none; border-bottom: 2px solid var(--line); padding: 10px 0; font-size: 19px; font-weight: 700; outline: none; }
.pub-title-input:focus { border-color: var(--brand); }
.circle-pick { display: flex; gap: 10px; flex-wrap: wrap; }
.circle-pick label { padding: 8px 18px; border-radius: 20px; background: var(--bg); font-size: 14px; cursor: pointer; }
.circle-pick input { display: none; }
.circle-pick input:checked + span { color: var(--brand); font-weight: 600; }
.circle-pick label:has(input:checked) { background: var(--brand-light); }
.pub-editor { width: 100%; min-height: 230px; border: 1px solid var(--line); border-radius: 12px; padding: 13px; outline: none; font-size: 14px; line-height: 1.8; resize: vertical; }
.pub-editor:focus { border-color: var(--brand); }

/* 分类选择卡片 */
.cat-select { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cat-opt {
  border: 2px solid var(--line); border-radius: 14px; padding: 18px 16px;
  cursor: pointer; text-align: center; transition: all .18s;
}
.cat-opt:hover { border-color: var(--brand); }
.cat-opt.on { border-color: var(--brand); background: var(--brand-light); }
.co-ico {
  width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 10px;
  display: grid; place-items: center;
}
.co-review { background: rgba(255,122,0,.12); color: #e86a00; }
.co-travel { background: rgba(47,123,255,.12); color: #2f7bff; }
.co-name { font-size: 16px; font-weight: 700; }
.co-desc { font-size: 12px; color: var(--text-3); margin-top: 3px; }

/* 测评：商品链接抓取 */
.product-fetch { display: flex; gap: 10px; }
.product-fetch input {
  flex: 1; border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 13px; font-size: 14px; outline: none;
}
.product-fetch input:focus { border-color: var(--brand); }
.product-fetch .btn { flex: none; }
.product-card {
  margin-top: 14px; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; background: var(--bg);
}
.pc-head { display: flex; align-items: center; gap: 8px; }
.pc-platform {
  font-size: 12px; font-weight: 600; color: var(--brand);
  background: var(--brand-light); padding: 2px 10px; border-radius: 6px;
}
.pc-mock { font-size: 11px; color: #b06a00; background: rgba(255,170,0,.15); padding: 2px 8px; border-radius: 6px; }
.pc-body { display: flex; gap: 12px; margin-top: 12px; }
.pc-thumb { flex: 0 0 84px; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.pc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pc-info .pc-title { font-size: 15px; font-weight: 700; margin-top: 0; line-height: 1.4; }
.pc-title { font-size: 15px; font-weight: 700; margin-top: 10px; }
.pc-price { font-size: 20px; font-weight: 800; color: #ff4d2e; margin-top: auto; padding-top: 6px; }
.pc-params { font-size: 12px; color: var(--text-2); margin-top: 8px; line-height: 1.7; }
.manual-product {
  margin-top: 14px; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; background: var(--bg);
}
.mp-row { display: flex; align-items: center; gap: 12px; }
.mp-row + .mp-row { margin-top: 12px; }
.mp-row label { flex: 0 0 88px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.mp-row input {
  flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font-size: 14px; outline: none; background: #fff;
}
.mp-row input:focus { border-color: var(--brand); }

/* 测评商品图（单张） */
.mp-cover { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; }
.mp-cover-box {
  position: relative; width: 96px; height: 96px; border-radius: 10px;
  border: 1px solid var(--line); overflow: hidden; background: #fff; flex: 0 0 auto;
}
.mpc-add {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--text-60); cursor: pointer;
}
.mpc-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mpc-del {
  position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 14px; line-height: 20px;
  text-align: center; cursor: pointer;
}
.mpc-mask {
  position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.mpc-bar { width: 60px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; }
.mpc-bar span { display: block; height: 100%; background: #fff; }
.mpc-mask em { font-style: normal; font-size: 11px; color: #fff; }
.mp-cover-pick {
  border: 1px solid var(--line); background: #fff; border-radius: 10px;
  padding: 8px 14px; font-size: 13px; color: var(--text-2); cursor: pointer;
}
.mp-cover-pick:hover { border-color: var(--brand); color: var(--brand); }
.mp-opt-row { display: flex; align-items: flex-start; gap: 12px; margin-top: 14px; }
.mp-opt-row > label {
  flex: 0 0 88px; font-size: 13px; font-weight: 600; color: var(--text-2);
  line-height: 30px;
}

/* 游记：地点 + chip */
.trip-place { margin-top: 16px; }
.tp-title { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.tp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.trip-place select, .trip-place input {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font-size: 14px; outline: none; background: #fff;
}
.trip-place input { margin-top: 10px; }
.trip-place select:focus, .trip-place input:focus { border-color: var(--brand); }

.chip-group { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 7px 18px; border-radius: 20px; font-size: 14px;
  background: var(--bg); color: var(--text-60); cursor: pointer;
  transition: all .16s;
}
.chip:hover { color: var(--brand); }
.chip.on { background: var(--brand); color: #fff; }

/* 测评商品：优缺点 / 参数明细 / 新手友好 */
.mp-area {
  flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font-size: 14px; outline: none; background: #fff;
  resize: vertical; font-family: inherit; line-height: 1.6;
}
.mp-area:focus { border-color: var(--brand); }
.mp-params { flex: 1; min-width: 0; }
.mp-param-row { display: flex; gap: 10px; margin-bottom: 10px; align-items: center; }
.mp-param-row input {
  flex: 1 1 0; min-width: 0; width: 50%; box-sizing: border-box;
  height: 38px; border: 1px solid var(--line); border-radius: 8px;
  padding: 0 12px; font-size: 14px; outline: none; background: #fff;
}
.mp-param-row .pk, .mp-param-row .pv { flex: 1 1 0; width: 50%; }
.mp-param-row input:focus { border-color: var(--brand); }
.mp-param-del {
  width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; color: #dc2626; cursor: pointer; font-size: 18px; flex-shrink: 0;
}
.mp-param-del:hover { background: #fef2f2; border-color: #dc2626; }
.mp-param-add {
  height: 36px; padding: 0 16px; border: 1px dashed var(--line); border-radius: 8px;
  background: #fff; color: var(--text-2); font-size: 13px; cursor: pointer;
}
.mp-param-add:hover { border-color: var(--brand); color: var(--brand); }
.mp-check {
  display: flex; align-items: center; gap: 8px; font-size: 14px;
  color: var(--text-2); cursor: pointer; line-height: 30px;
  white-space: nowrap; flex: 1 1 auto;
}
.mp-check input { width: 16px; height: 16px; accent-color: var(--brand); flex-shrink: 0; }

.pub-cost-input {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 13px; font-size: 15px; outline: none;
}
.pub-cost-input:focus { border-color: var(--brand); }

.upload-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; }
.upload-cell { aspect-ratio: 1; border: 1px solid #d5d8de; border-radius: 10px; background: var(--bg); display: grid; place-items: center; color: var(--text-3); font-size: 26px; overflow: hidden; cursor: pointer; position: relative; }
.upload-cell#uploadAdd { border-style: dashed; color: #9aa1ad; background: #fafbfc; transition: border-color .16s, color .16s, background .16s; }
.upload-cell#uploadAdd:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }
.upload-cell img { width: 100%; height: 100%; object-fit: cover; }
.upload-cell .del { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0,0,0,.55); color:#fff; font-size:12px; display:grid; place-items:center; cursor: pointer; z-index: 2; }

.sync-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.sync-switch input { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }
.sync-tip { margin-top: 8px; font-size: 13px; color: #e86a00; background: rgba(255,122,0,.08); border-radius: 8px; padding: 8px 12px; }

.selected-gears { display: flex; flex-direction: column; gap: 8px; }
.sel-gear { display: flex; align-items: center; gap: 10px; background: var(--bg); border-radius: 10px; padding: 8px 12px; }
.sel-gear img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.sel-gear .sg-name { font-size: 13px; font-weight: 600; }
.sel-gear .sg-sub { font-size: 11px; color: var(--text-3); }
.sel-gear .del { margin-left: auto; color: var(--text-3); font-size: 16px; }

.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-mask.show { display: flex; }
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 600px; max-height: 82vh; display: flex; flex-direction: column; overflow: hidden; }
.modal-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-head .close { margin-left: auto; font-size: 20px; color: var(--text-3); }
.modal-search { padding: 12px 20px; }
.modal-body { overflow-y: auto; padding: 8px 20px 18px; }
.pick-gear { display: flex; align-items: center; gap: 11px; padding: 10px; border-radius: 10px; cursor: pointer; }
.pick-gear:hover { background: var(--brand-light); }
.pick-gear img { width: 46px; height: 46px; border-radius: 9px; object-fit: cover; }
.pick-gear .pg-add { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color:#fff; font-size:17px; display:grid; place-items:center; }

/* ---------- 个人中心 ---------- */
.profile-head { background: linear-gradient(135deg,#ff2e4d,#ff6a8b); border-radius: var(--radius); padding: 28px; color: #fff; display: flex; align-items: center; gap: 20px; margin: 20px 0; }
.profile-head img { width: 78px; height: 78px; border-radius: 50%; border: 3px solid rgba(255,255,255,.7); }
.profile-head .ph-name { font-size: 22px; font-weight: 800; display:flex; align-items:center; gap:8px; }
.profile-head .ph-bio { font-size: 13px; opacity: .9; margin-top: 3px; }
.profile-head .ph-stats { display: flex; gap: 22px; margin-top: 8px; font-size: 13px; }
.profile-head .ph-stats b { font-size: 18px; display:block; }
.koc-badge { background: #ffd400; color:#8a5a00; font-size:11px; padding:2px 8px; border-radius:10px; font-weight:700; }

.empty { text-align: center; color: var(--text-3); padding: 60px 20px; font-size: 14px; }
.empty .e-ico { font-size: 46px; opacity: .4; }

.alert { padding: 10px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 14px; }
.alert-error { background: var(--brand-light); color: var(--brand); }
.alert-success { background: #e8f8f1; color: #21a179; }

.hot-item { display:flex; gap:9px; padding:8px 0; border-bottom:1px solid var(--line); align-items:center; }
.hot-item .rank { width:20px;height:20px;border-radius:6px;background:var(--brand-light);color:var(--brand);font-size:12px;font-weight:700;display:grid;place-items:center;flex:none;}
.hot-item:nth-child(-n+3) .rank{background:var(--brand);color:#fff;}
.hot-item .hi-title{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.hot-item .hi-hot{margin-left:auto;font-size:11px;color:var(--text-3);flex:none;}

/* ---------- 发布页：选择分类按钮 + 灯箱卡片 ---------- */
.cat-pick-btn {
  display: flex; align-items: center; width: 100%;
  border: 1px solid var(--line); border-radius: 12px;
  background: #fff; padding: 16px 18px; cursor: pointer;
  font-size: 15px; color: var(--text-3); transition: border-color .16s;
}
.cat-pick-btn:hover { border-color: var(--brand); }
.cat-pick-btn .cpb-text { flex: 1; text-align: left; }
.cat-pick-btn .cpb-arrow { font-size: 20px; line-height: 1; color: var(--text-3); }
.cat-pick-btn.picked { color: var(--text); font-weight: 600; border-color: var(--brand); }
.cat-pick-btn.picked .cpb-arrow { color: var(--brand); }

.cat-card-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; padding-top: 12px; }
.cat-card {
  display: flex; align-items: center; flex-wrap: nowrap; gap: 10px;
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  cursor: pointer; transition: all .16s; background: #fff;
}
.cat-card:hover { border-color: var(--brand); background: var(--brand-light); }
.cat-card.picked { border-color: var(--brand); background: var(--brand-light); box-shadow: 0 0 0 1px var(--brand) inset; }
.cat-card .cc-ico { flex: none; font-size: 26px; line-height: 1; }
.cat-card .cc-name { font-size: 15px; font-weight: 700; margin-top: 0; white-space: nowrap; }
.cat-card .cc-desc { display: none; }

/* ---------- 发布页：会员中心侧栏布局 ---------- */
.pub-layout { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 20px; margin: 18px 0 30px; align-items: start; }
.pub-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
/* 与顶部「发布」下拉菜单同名类，需在发布页作用域内重置其绝对定位/隐藏样式 */
.pub-main .pub-card,
.pub-main .cat-panel .pub-card {
  position: static; width: auto; display: block;
  opacity: 1; visibility: visible; transform: none;
  grid-template-columns: none; gap: 0; border: none;
}
.pub-main .pub-card::before { content: none; }
.pub-card { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.pub-card .pc-title { font-weight: 700; font-size: 15px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.pub-card .pc-title .pc-hint { font-weight: 400; font-size: 12px; color: var(--text-3); }
.pub-card input[type=text]:not(.pub-title-input), .pub-card select {
  width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 9px;
  padding: 0 12px; font-size: 14px; outline: none; box-sizing: border-box; background: #fff;
}
.pub-card input:focus, .pub-card select:focus { border-color: var(--brand); }
.pub-actions { display: flex; justify-content: flex-end; gap: 10px; }
@media (max-width: 900px) { .pub-layout { grid-template-columns: 1fr; } }

/* ---------- 发布页：话题标签（回车成块） ---------- */
.tag-editor {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; background: #fff; cursor: text;
}
.tag-editor:focus-within { border-color: var(--brand); }
.tag-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand-light); color: var(--brand);
  font-size: 13px; font-weight: 600; border-radius: 7px; padding: 4px 8px 4px 10px;
}
.tag-chip .tc-close { cursor: pointer; font-size: 14px; line-height: 1; font-weight: 700; opacity: .7; border: none; background: none; color: inherit; padding: 0; }
.tag-chip .tc-close:hover { opacity: 1; }
.tag-editor input { border: none !important; outline: none; flex: 1; min-width: 130px; height: 30px !important; padding: 0 !important; font-size: 14px; background: transparent !important; }

/* ---------- 发布页：关联旅途信息折叠面板 ---------- */
.trip-collapse { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.trip-collapse-head {
  display: flex; align-items: center; gap: 9px; padding: 14px 16px;
  font-size: 14px; font-weight: 600; cursor: pointer; user-select: none; background: #fafbfc;
}
.trip-collapse-head:hover { background: #f5f6f8; }
.trip-collapse-head .tch-arrow {
  margin-left: auto; width: 8px; height: 8px; border-right: 1.8px solid var(--text-3);
  border-bottom: 1.8px solid var(--text-3); transform: rotate(45deg); transition: transform .2s;
}
.trip-collapse.open .trip-collapse-head .tch-arrow { transform: rotate(-135deg); }
.trip-collapse-body { display: none; padding: 16px; }
.trip-collapse.open .trip-collapse-body { display: block; }
.trip-field { margin-bottom: 16px; }
.trip-field:last-child { margin-bottom: 0; }
.trip-field > label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--text-1); }
.trip-place-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.trip-place-addr { margin-bottom: 0 !important; }
.trip-sync { display: flex; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 14px; color: var(--text-2); cursor: pointer; }
.trip-sync input { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }

/* ---------- 发布页：编辑器图片按钮禁用（日常 / 笔记） ---------- */
.ai-editor-wrap.img-disabled aie-image.aie-menu-item,
.ai-editor-wrap.img-disabled aie-ai.aie-menu-item + aie-image.aie-menu-item {
  opacity: .4; pointer-events: none; filter: grayscale(1); cursor: not-allowed;
}

/* ---------- 好券快报列表页 ---------- */
.coupon-filter { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:18px; }
.cp-tab {
  padding:6px 16px; border-radius:16px; font-size:13px;
  background:#fff; border:1px solid var(--line); color:var(--text-3);
}
.cp-tab:hover { border-color:var(--brand); color:var(--brand); }
.cp-tab.on { background:var(--brand); border-color:var(--brand); color:#fff; }

.coupon-grid {
  display:grid; grid-template-columns:repeat(4,1fr); gap:14px;
}
.coupon-card {
  background:#fff; border:1px solid var(--line); border-radius:12px;
  padding:12px; display:flex; flex-direction:column; transition:box-shadow .16s;
}
.coupon-card:hover { box-shadow:0 6px 20px rgba(0,0,0,.07); }
.cc-thumb {
  display:block; width:100%; aspect-ratio:1; border-radius:8px;
  overflow:hidden; background:var(--fill); margin-bottom:10px;
}
.cc-thumb img { width:100%; height:100%; object-fit:cover; }
.cc-noimg {
  display:flex; align-items:center; justify-content:center; width:100%; height:100%;
  font-size:34px; color:var(--brand); background:var(--brand-light);
}
.cc-title {
  font-size:13px; line-height:1.4; color:var(--text);
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
  overflow:hidden; min-height:36px;
}
.cc-title:hover { color:var(--brand); }
.cc-price { display:flex; align-items:baseline; gap:6px; margin:8px 0 10px; }
.cc-now { color:var(--brand); font-size:18px; font-weight:700; }
.cc-origin { color:var(--text-3); font-size:12px; text-decoration:line-through; }
.cc-foot { margin-top:auto; display:flex; align-items:center; justify-content:space-between; }
.cc-badge {
  font-size:11px; font-weight:700; color:var(--brand); background:var(--brand-light);
  padding:2px 8px; border-radius:4px;
}
.cc-get {
  font-size:12px; color:#fff; background:var(--brand);
  padding:5px 12px; border-radius:14px;
}
.cc-get:hover { background:var(--brand-dark); }

.coupon-empty { text-align:center; color:var(--text-3); padding:60px 20px; font-size:14px; }
.coupon-pagination { margin-top:24px; }
.coupon-pagination ul { display:flex; justify-content:center; gap:6px; list-style:none; }
.coupon-pagination li a, .coupon-pagination li span {
  display:inline-block; min-width:34px; padding:7px 10px; text-align:center;
  border:1px solid var(--line); border-radius:8px; font-size:13px; color:var(--text-3); background:#fff;
}
.coupon-pagination li.active span { background:var(--brand); border-color:var(--brand); color:#fff; }
.coupon-pagination li.disabled span { opacity:.5; }

/* 通用分页（ThinkPHP 默认 Bootstrap 驱动渲染） */
.pagination { display:flex; flex-wrap:wrap; justify-content:center; gap:6px; list-style:none; margin:0; padding:0; }
.pagination li a, .pagination li span {
  display:inline-block; min-width:34px; padding:7px 10px; text-align:center;
  border:1px solid var(--line); border-radius:8px; font-size:13px; color:var(--text-3); background:#fff;
}
.pagination li a:hover { border-color:var(--brand); color:var(--brand); }
.pagination li.active span { background:var(--brand); border-color:var(--brand); color:#fff; }
.pagination li.disabled span { opacity:.5; }
.pagination li.disabled { pointer-events:none; }

@media (max-width: 900px) { .coupon-grid { grid-template-columns:repeat(3,1fr); } }
@media (max-width: 640px) { .coupon-grid { grid-template-columns:repeat(2,1fr); } }

/* ---------- 内页通栏渐变动画头图 ---------- */
.page-hero {
  position: relative;
  width: 100%;
  margin-left: 0;
  overflow: hidden;
}
.page-hero .ph-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.page-hero .ph-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px;
}
.page-hero .ph-title {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.page-hero .ph-sub {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,.92);
  text-shadow: 0 1px 8px rgba(0,0,0,.15);
  max-width: 640px;
}
@media (max-width: 640px) {
  .page-hero { width: 100%; margin-left: 0; }
  .page-hero .ph-inner { padding: 40px 20px; }
  .page-hero .ph-title { font-size: 26px; }
  .page-hero .ph-sub { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .page-hero svg animate,
  .page-hero svg animateTransform { display: none; }
}

/* ---------- 游记详情：正文上方信息条 ---------- */
.trip-summary {
  display: grid; grid-template-columns: repeat(4,1fr);
  background: var(--brand-light); border-radius: 16px;
  padding: 26px 36px; margin: 15px 0 24px;
}
.trip-summary .ts-col { min-width: 0; }
.trip-summary .ts-label { font-size: 14px; color: #9aa5b1; }
.trip-summary .ts-value { font-size: 18px; font-weight: 700; color: #15181d; margin-top: 8px; line-height: 1.15; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 960px) {
  /* 顶部三栏：只保留轮播，全宽 */
  .hero { margin-top: 10px; }
  .hero-filter, .hero-side { display: none; }
  .hero-swiper { flex: 1 1 100%; height: 200px; }
  .hs-cap { font-size: 14px; }

  /* 汉堡按钮显示，主导航折叠为下拉面板 */
  .nav-toggle { display: inline-flex; }
  .top-nav {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0,0,0,.12);
  }
  .top-nav.open { display: flex; }
  .top-nav .tn-item { height: 44px; padding: 0 14px; border-radius: 10px; }

  .note-item { width: 100%; }
  .cwater { column-count: 2; column-gap: 12px; }
  .cwater .note-item { margin-bottom: 12px; }
  .gear-grid { grid-template-columns: repeat(2,1fr); }
  .review-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .gear-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .note-detail { grid-template-columns: 1fr; }
  .login-modal .login-container { flex-direction: column; max-height: 90vh; overflow-y: auto; }
  .login-left { flex: none; padding: 26px 24px; }
  .ll-qr { width: 120px; height: 120px; }
  /* 灯箱纵向堆叠 */
  .note-modal .note-container { flex-direction: column; height: calc(100vh - 48px); }
  .media-container { flex: none; height: 42%; }
  .close-circle { top: 10px; right: 10px; background: rgba(0,0,0,.35); }
}
@media (max-width: 640px) {
  .hero-swiper { height: 160px; }
  .top-header { height: 60px; gap: 10px; padding: 0 12px; }
  .brand-logo { width: 100px; height: 40px; }
  .right { gap: 8px; }
  .top-pub-btn { padding: 0 12px; }
  .top-pub-btn .pub-caret { display: none; }
  .pub-card {
    width: calc(100vw - 24px);
    right: 0;
    max-height: 70vh;
    overflow-y: auto;
  }
  .top-login-btn { height: 34px; padding: 0 14px; }
  .top-user span { display: none; }
  .user-card { width: 240px; right: 0; max-height: 70vh; overflow-y: auto; }
  .layout-main { padding: 0 12px 12px; }
  .footer-inner { padding: 20px 16px 24px; }
  .waterfall { gap: 8px; }
  .wf-col { gap: 8px; }
  .review-grid { grid-template-columns: 1fr; gap: 12px; }
  .quick-entry { grid-template-columns: repeat(4,1fr); gap: 8px; }
  .quick-card { padding: 12px 6px; }
  .quick-card .q-ico { font-size: 24px; }
  .quick-card .q-name { font-size: 12px; }
  .quick-card .q-count { display: none; }
  .circle-row { flex-wrap: wrap; gap: 14px; padding: 18px; }
  .cr-icon { width: 84px; height: 84px; }
  .cr-emoji { font-size: 40px; }
  .cr-main { flex: 1 1 100%; order: 2; }
  .cr-stat { width: 80px; }
  .cr-enter { margin-left: auto; }
  .circle-profile { flex-wrap: wrap; }
  .cp-actions { width: 100%; }
  .cp-actions .cp-join { flex: 1; }
  .cp-publish { flex: 1; justify-content: center; }
  .gear-detail-top { grid-template-columns: 1fr; padding: 16px; }
  .proscons { grid-template-columns: 1fr; }
  .gear-grid { grid-template-columns: repeat(2,1fr); gap: 9px; }
  .banner-slide { aspect-ratio: 16/9; }
  .banner-caption { font-size: 16px; left: 16px; bottom: 16px; }
  .profile-head { flex-direction: column; text-align: center; gap: 12px; padding: 22px; }
  .profile-head .ph-stats { justify-content: center; }
  .upload-grid { grid-template-columns: repeat(4,1fr); }
  .login-right { padding: 26px 22px; }
  .engage-actions { gap: 14px; }
  .trip-summary { grid-template-columns: repeat(2,1fr); gap: 18px 16px; padding: 20px 22px; }
  .trip-summary .ts-value { font-size: 18px; }
  .cat-card-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   好物优选（户外好物 · 商品直购）
   ============================================================ */
.haowu-wrap { display: block; margin-top: 16px; }
.haowu-main { min-width: 0; }

/* 圆形分类条 */
.hw-cats {
  display: flex; gap: 14px; overflow-x: auto; padding: 16px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  scrollbar-width: none;
}
.hw-cats::-webkit-scrollbar { display: none; }
.hwc-item { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: none; text-decoration: none; }
.hwc-ico {
  width: 58px; height: 58px; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: #f6f7f9; color: #8a9099; border: 2px solid transparent;
  transition: border-color .15s, color .15s, background .15s;
}
.hwc-ico img { width: 100%; height: 100%; object-fit: cover; }
.hwc-item:hover .hwc-ico { color: var(--brand); }
.hwc-item.on .hwc-ico { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }
.hwc-name { font-size: 13px; color: var(--text); white-space: nowrap; }
.hwc-item.on .hwc-name { color: var(--brand); font-weight: 700; }

/* 排序栏 */
.hw-sortbar {
  display: flex; align-items: center; gap: 6px; margin-top: 14px; padding: 0 4px;
  border-bottom: 1px solid var(--line);
}
.hws-tab { padding: 10px 14px; font-size: 14px; color: var(--text-3); text-decoration: none; position: relative; }
.hws-tab:hover { color: var(--brand); }
.hws-tab.on { color: var(--brand); font-weight: 700; }
.hws-tab.on::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px;
  background: var(--brand); border-radius: 1px;
}
.hws-count { margin-left: auto; font-size: 13px; color: var(--text-3); }

/* 商品网格 */
.hw-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px;
}
.hw-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px; transition: box-shadow .18s, transform .18s;
}
.hw-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.hgc-thumb {
  position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 10px;
  overflow: hidden; background: #f6f7f9;
}
.hgc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.hw-card:hover .hgc-thumb img { transform: scale(1.04); }
.hgc-noimg { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #bbb; font-size: 14px; }
.hgc-tag {
  position: absolute; left: 0; top: 0; padding: 3px 8px; font-size: 11px; font-weight: 700;
  color: #fff; background: linear-gradient(135deg, #ff6a3c, var(--brand));
  border-bottom-right-radius: 8px;
}
.hgc-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin: 9px 2px 0; font-size: 13px; line-height: 1.45;
  color: var(--text); text-decoration: none; min-height: 38px;
}
.hgc-title:hover { color: var(--brand); }
.hgc-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-top: 8px; padding: 0 2px; }
.hgc-price { font-size: 19px; font-weight: 800; color: var(--brand); line-height: 1; }
.hgc-price small { font-size: 12px; font-weight: 600; margin-right: 1px; }
.hgc-origin { font-size: 12px; color: var(--text-3); text-decoration: line-through; }
.hgc-sales { margin-left: auto; font-size: 12px; color: var(--text-3); }
.hgc-btn {
  display: block; margin-top: 10px; height: 32px; line-height: 32px; text-align: center;
  border-radius: 8px; background: var(--brand-light); color: var(--brand);
  font-size: 13px; font-weight: 700; text-decoration: none; transition: background .15s, color .15s;
}
.hgc-btn:hover { background: var(--brand); color: #fff; }

@media (max-width: 960px) {
  .hw-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .hw-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .hw-card { padding: 8px; }
  .hwc-ico { width: 50px; height: 50px; }
  .hws-count { display: none; }
}

/* ============================================================
   好物详情页（淘宝导购式：主图+购买信息 / 推荐理由 / 店铺信息 / 可能喜欢）
   ============================================================ */
.pd-wrap { margin-top: 16px; }
.pd-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px;
  align-items: start;
}
.pd-main { min-width: 0; }

/* ---- 顶部主图+购买信息 ---- */
.pd-top {
  display: flex; gap: 18px; padding: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.pd-gallery { flex: none; width: 320px; }
.pd-big {
  width: 320px; height: 320px; border-radius: 10px; overflow: hidden; background: #f6f7f9;
}
.pd-big img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.pdt-item {
  width: 54px; height: 54px; border-radius: 7px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; background: #f6f7f9;
}
.pdt-item img { width: 100%; height: 100%; object-fit: cover; }
.pdt-item.on { border-color: var(--brand); }

.pd-buyinfo { flex: 1; min-width: 0; }
.pd-title {
  display: flex; align-items: flex-start; gap: 7px; margin: 0;
  font-size: 18px; line-height: 1.45; font-weight: 700; color: var(--text);
}
.pdt-tflag {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 19px; height: 19px; border-radius: 4px; margin-top: 3px;
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 800;
}
.pd-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin-top: 13px; font-size: 13px; color: var(--text-3);
}
.pdm-hot em { font-style: normal; color: var(--brand); font-weight: 700; }

/* 独家优惠 */
.pd-coupon {
  display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px;
}
.pdc-label { color: var(--text-3); }
.pdc-badge {
  padding: 2px 12px; border-radius: 4px; color: var(--brand); font-weight: 600;
  border: 1px solid var(--brand); background: var(--brand-light);
}
.pdc-none { color: #bbb; font-size: 12px; }

/* 热销排行 */
.pd-rank {
  display: flex; align-items: center; gap: 7px; margin-top: 12px;
  font-size: 13px; text-decoration: none;
}
.pdr-shield { color: var(--brand); font-size: 14px; }
.pdr-text { color: var(--brand); font-weight: 600; }

.pd-tags { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12px; }
.pd-label { color: var(--text-3); }
.pd-tag-red {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 12px; border-radius: 16px; color: var(--brand); font-weight: 600;
  border: 1px solid var(--brand); background: var(--brand-light);
}
.pdt-cart { font-style: normal; font-size: 12px; }
.pd-tag-gray {
  padding: 3px 14px; border-radius: 16px; color: var(--text-3); font-weight: 500;
  border: 1px solid #ddd; background: #fafafa;
}
.pd-price-row {
  display: flex; align-items: baseline; gap: 10px; margin-top: 16px;
  padding: 12px 14px; border-radius: 8px; background: var(--brand-light);
}
.pd-price { font-size: 28px; font-weight: 800; color: var(--brand); line-height: 1; }
.pd-price small { font-size: 15px; font-weight: 600; margin-right: 1px; }
.pd-origin { font-size: 13px; color: var(--text-3); text-decoration: line-through; }

/* 双按钮 */
.pd-actions { display: flex; gap: 12px; margin-top: 18px; }
.pd-buybtn, .pd-scan { flex: 1; }
.pd-buybtn, .pd-scanbtn {
  height: 42px; line-height: 40px; text-align: center; border-radius: 6px;
  font-size: 15px; font-weight: 700; cursor: pointer;
}
.pd-buybtn {
  background: var(--brand); color: #fff; text-decoration: none; border: 1px solid var(--brand);
}
.pd-buybtn:hover { opacity: .93; }
.pd-scan { position: relative; }
.pd-scanbtn {
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: #fff; color: #f08a24; border: 1px solid #f0a04c;
}
.pd-scanbtn:hover { background: #fff8f0; }
.pds-qr { font-style: normal; font-size: 16px; }

/* ---- 通用分块 ---- */
.pd-section {
  margin-top: 14px; padding: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.pds-title {
  display: flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 14px;
}
.pds-bar { width: 4px; height: 16px; border-radius: 2px; background: var(--brand); }
.pds-text { margin: 0 0 10px; font-size: 13px; line-height: 1.85; color: var(--text-2, #555); }
.pds-text strong { color: var(--brand); }
.pd-report { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 12px; }
.pdr-label { color: var(--text-3); }
.pd-report a {
  padding: 3px 13px; border-radius: 5px; background: #f5f6f8; color: var(--text-2, #555);
  text-decoration: none;
}
.pd-report a:hover { background: var(--brand-light); color: var(--brand); }

/* ---- 店铺信息 ---- */
.pd-shop { display: flex; align-items: center; gap: 16px; }
.pds-logo {
  flex: none; width: 64px; height: 64px; border-radius: 10px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ff6a3c, var(--brand)); color: #fff;
  font-size: 26px; font-weight: 800;
}
.pds-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.pds-info { min-width: 0; }
.pds-name { font-size: 15px; font-weight: 700; color: var(--text); }
.pds-sub { margin-top: 5px; font-size: 13px; color: var(--brand); font-weight: 600; }
.pds-scores { margin-left: auto; display: flex; gap: 40px; }
.pdscore { text-align: center; }
.pdscore span { display: block; font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
.pdscore strong { font-size: 17px; color: var(--text); font-weight: 700; }

/* ---- 右侧可能喜欢 ---- */
.pd-like {
  position: sticky; top: calc(var(--header-h) + 16px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
}
.pl-head {
  display: flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 12px;
}
.pl-head::before { content: ''; width: 4px; height: 15px; border-radius: 2px; background: var(--brand); }
.pl-item { display: flex; gap: 10px; padding: 9px 0; text-decoration: none; border-bottom: 1px solid var(--line); }
.pl-item:last-child { border-bottom: none; }
.pl-thumb { flex: none; width: 76px; height: 76px; border-radius: 8px; overflow: hidden; background: #f6f7f9; }
.pl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pl-info { flex: 1; min-width: 0; }
.pl-title {
  display: flex; align-items: flex-start; gap: 5px;
  font-size: 12px; line-height: 1.5; color: var(--text);
}
.plt-flag {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; border-radius: 4px; margin-top: 2px;
  background: var(--brand); color: #fff; font-size: 10px; font-weight: 800;
}
.pl-price { margin-top: 8px; display: flex; align-items: baseline; gap: 6px; }
.plp-now { font-size: 16px; font-weight: 800; color: var(--brand); line-height: 1; }
.plp-now small { font-size: 11px; font-weight: 600; margin-right: 1px; }
.plp-old { font-size: 11px; color: var(--text-3); text-decoration: line-through; }

/* ---- 扫码二维码弹层 ---- */
/* 扫码购买悬停二维码卡片 */
.qr-card {
  display: none; position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translateX(-50%);
  z-index: 100; width: 220px; padding: 16px 16px 14px; text-align: center;
  background: #fff; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.16);
}
.pd-scan.on .qr-card { display: block; }
.qr-title { font-size: 14px; font-weight: 700; color: var(--text); }
.qr-code {
  width: 170px; height: 170px; margin: 10px auto 0; display: flex;
  align-items: center; justify-content: center;
}
.qr-code img, .qr-code canvas { display: block; }
.qr-tip { margin: 10px 0 0; font-size: 11px; line-height: 1.6; color: var(--text-3); }
.qr-fail { color: var(--brand); font-size: 14px; }
.qr-arrow {
  position: absolute; left: 50%; top: 100%; transform: translateX(-50%);
  width: 12px; height: 12px; background: #fff;
  box-shadow: 3px 3px 8px rgba(0,0,0,.06);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

@media (max-width: 1024px) {
  .pd-grid { grid-template-columns: minmax(0, 1fr); }
  .pd-like { position: static; }
  .pl-item { width: 50%; box-sizing: border-box; }
  .pl-head { width: 100%; }
  .pd-like { display: flex; flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .pd-top { flex-direction: column; }
  .pd-gallery, .pd-big { width: 100%; height: auto; aspect-ratio: 1/1; }
  .pd-shop { flex-wrap: wrap; }
  .pds-scores { width: 100%; margin-left: 0; justify-content: space-between; gap: 10px; }
  .pl-item { width: 100%; }
  .pd-price { font-size: 26px; }
}

/* ---------- 好券快报：粉色渐变 Hero（分类 / 平台 / 人气爆款轮播） ---------- */
.ch-hero {
  width: 100%;
  background: linear-gradient(180deg, #ffe3ee 0%, #ffd2e3 42%, #fff2f7 100%);
  padding: 26px 0 30px;
}
.ch-hero-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* 平台切换 */
.ch-platforms {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.ch-pf {
  padding: 7px 22px; border-radius: 18px; font-size: 13px;
  background: rgba(255, 255, 255, .8); border: 1px solid rgba(255, 90, 134, .25);
  color: #b04a6d; transition: all .16s;
}
.ch-pf:hover { color: #ff2e63; border-color: #ff5a86; }
.ch-pf.on {
  color: #fff; background: linear-gradient(135deg, #ff5a86, #ff2e63);
  border-color: transparent; box-shadow: 0 6px 16px rgba(255, 46, 99, .3);
  font-weight: 700;
}

/* 第二区：人气爆款标题 */
.ch-hot-title {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  margin: 26px 0 18px;
}
.ch-hot-title svg { width: 26px; height: 26px; color: #ff6b00; }
.ch-hot-title h2 {
  margin: 0; font-size: 24px; font-weight: 800; letter-spacing: 1px;
  background: linear-gradient(90deg, #ff2e63, #ff6b00);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 第三区：3 个一组轮播 */
.ch-carousel { display: flex; align-items: center; gap: 12px; }
.ch-viewport { flex: 1; overflow: hidden; border-radius: 16px; }
.ch-track { display: flex; transition: transform .4s cubic-bezier(.22, .61, .36, 1); will-change: transform; }
.ch-slide { flex: 0 0 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; min-width: 0; }

.ch-arrow {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid rgba(255, 90, 134, .25);
  box-shadow: 0 4px 12px rgba(255, 46, 99, .15);
  cursor: pointer; transition: all .16s;
}
.ch-arrow svg { width: 20px; height: 20px; color: #ff2e63; }
.ch-arrow:hover { background: linear-gradient(135deg, #ff5a86, #ff2e63); border-color: transparent; transform: scale(1.06); }
.ch-arrow:hover svg { color: #fff; }
.ch-arrow:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.ch-arrow:disabled:hover { background: #fff; }
.ch-arrow:disabled:hover svg { color: #ff2e63; }

/* 爆款卡片 */
.hc-card {
  position: relative; background: #fff; border-radius: 14px;
  padding: 10px; box-shadow: 0 6px 18px rgba(255, 46, 99, .1);
  display: flex; flex-direction: column; transition: transform .16s, box-shadow .16s; min-width: 0;
}
.hc-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(255, 46, 99, .18); }
.hc-sold {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 9px; border-radius: 0 12px 12px 0;
  background: linear-gradient(90deg, #ff8a00, #ff5a00);
  color: #fff; font-size: 11px; font-weight: 700;
  box-shadow: 0 3px 8px rgba(255, 110, 0, .35);
}
.hc-sold svg { width: 11px; height: 11px; }
.hc-body { display: flex; gap: 10px; margin-top: 26px; }
.hc-thumb {
  flex: 0 0 92px; width: 92px; height: 92px; border-radius: 10px;
  overflow: hidden; background: var(--fill);
}
.hc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hc-noimg {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  font-size: 30px; color: var(--brand); background: var(--brand-light);
}
.hc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hc-title {
  font-size: 13px; line-height: 1.4; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hc-title:hover { color: var(--brand); }
.hc-promo { display: flex; align-items: center; gap: 7px; margin-top: 7px; }
.hc-promo-tag {
  padding: 2px 7px; border-radius: 4px; font-size: 11px; font-weight: 700;
  color: #fff; background: linear-gradient(135deg, #ff5a00, #ff2e63);
}
.hc-promo-price { color: var(--text-3); font-size: 12px; text-decoration: line-through; }
.hc-bottom { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.hc-after { font-size: 11px; color: var(--text-3); }
.hc-after b { color: var(--brand); font-size: 17px; font-weight: 800; }
.hc-coupon {
  flex: 0 0 auto; padding: 3px 9px; border-radius: 12px; font-size: 11px; font-weight: 700;
  color: #fff; background: linear-gradient(135deg, #ff5a86, #ff2e63);
}

/* 下方商品列表 */
.ch-list-wrap { max-width: 1200px; margin: 24px auto 40px; padding: 0 24px; }

/* 商品列表上方：分类横排纯文字（无图标、无圆形背景） */
.ch-catbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px;
  margin-bottom: 18px;
}
.ch-catlink {
  position: relative; padding: 4px 0; font-size: 15px; color: var(--text-3);
}
.ch-catlink:hover { color: var(--brand); }
.ch-catlink.on { color: var(--brand); font-weight: 700; }
.ch-catlink.on::after {
  content: ''; position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%);
  width: 18px; height: 3px; border-radius: 2px; background: var(--brand);
}

@media (max-width: 760px) {
  .ch-carousel { gap: 6px; }
  .ch-slide { grid-template-columns: 1fr; }
  /* 移动端每组只突出 1 个，卡片改为横向，与参考图卡形一致 */
  .ch-arrow { width: 32px; height: 32px; }
  .hc-thumb { flex-basis: 96px; width: 96px; height: 96px; }
  .ch-hot-title h2 { font-size: 20px; }
  .ch-catbar { gap: 6px 16px; }
  .ch-catlink { font-size: 14px; }
}

/* ---------- 视频封面选帧弹层 ---------- */
.vub-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.vub-cover-tip { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 13px; color: var(--text-2); }
.vub-cover-tip img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.vub-cover-clear { color: var(--brand); cursor: pointer; }
.vc-mask {
  position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.55);
  display: none; align-items: center; justify-content: center;
}
.vc-mask.show { display: flex; }
.vc-modal { width: 560px; max-width: calc(100vw - 32px); background: #fff; border-radius: 14px; overflow: hidden; }
.vc-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; font-size: 15px; font-weight: 700; }
.vc-close { font-size: 22px; color: var(--text-3); cursor: pointer; line-height: 1; }
.vc-body { padding: 0 18px; }
.vc-video { width: 100%; max-height: 320px; background: #000; border-radius: 10px; display: block; }
.vc-strip {
  display: flex; gap: 8px; padding: 14px 2px 16px;
  overflow-x: auto; overflow-y: hidden;
}
.vc-loading { font-size: 13px; color: var(--text-3); padding: 24px 0; text-align: center; width: 100%; }
.vc-frame {
  flex: 0 0 auto; width: 96px; height: 60px;
  border-radius: 8px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; background: #eee;
  transition: border-color .15s;
}
.vc-frame.active { border-color: var(--brand); }
.vc-frame.tainted {
  background: repeating-linear-gradient(45deg,#eee,#eee 6px,#e2e2e2 6px,#e2e2e2 12px);
  cursor: not-allowed;
}
.vc-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 18px; }
