@import url(theme.css);

/* =========================================================
   SMZDM 风格 · 现代设计系统（消费 theme.css 变量，支持明/暗）
   - 主色：亮眼红橙渐变，圆润、轻阴影、现代时尚
   ========================================================= */
.smz-app {
  background: var(--smz-bg);
  color: var(--smz-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  min-height: 100vh;
  transition: var(--smz-tr);
}
.smz-app * { box-sizing: border-box; }
.smz-app a { color: inherit; text-decoration: none; }
.smz-app img { display: block; }

/* ---------- 顶部吸顶 Header ---------- */
.smz-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--smz-surface);
  box-shadow: var(--smz-shadow-sm);
  transition: var(--smz-tr);
}
.smz-header::before { content: ""; display: block; height: 3px; background: var(--smz-grad); }
.smz-header-inner {
  max-width: var(--smz-maxw); margin: 0 auto;
  height: var(--smz-header-h); display: flex; align-items: center; gap: 20px; padding: 0 16px;
}
.smz-logo { display: flex; align-items: center; gap: 8px; white-space: nowrap; flex: none; }
.smz-logo-img { height: 36px; width: auto; border-radius: var(--smz-radius-sm); }
.smz-logo-text { font-size: 20px; font-weight: 800; color: var(--smz-accent); letter-spacing: .5px; }
.smz-search {
  flex: 1; display: flex; max-width: 560px; height: 42px;
  border: 2px solid var(--smz-accent); border-radius: var(--smz-radius-pill);
  overflow: hidden; background: var(--smz-surface);
}
.smz-search input { flex: 1; border: 0; outline: 0; padding: 0 18px; font-size: 14px; background: transparent; color: var(--smz-text); }
.smz-search input::placeholder { color: var(--smz-sub); }
.smz-search button { border: 0; background: var(--smz-accent); color: #fff; padding: 0 24px; font-size: 15px; cursor: pointer; font-weight: 600; white-space: nowrap; transition: filter .15s; }
.smz-search button:hover { filter: brightness(1.06); }
.smz-topnav { display: flex; gap: 20px; align-items: center; white-space: nowrap; }
.smz-topnav a { font-size: 15px; color: var(--smz-text-2); transition: color .15s; }
.smz-topnav a:hover { color: var(--smz-accent); }

/* 主题切换按钮 */
.smz-theme-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--smz-line); background: var(--smz-surface-2);
  color: var(--smz-text-2); border-radius: var(--smz-radius-pill);
  padding: 6px 12px; font-size: 13px; cursor: pointer; user-select: none;
  transition: border-color .15s, color .15s;
}
.smz-theme-toggle:hover { border-color: var(--smz-accent); color: var(--smz-accent); }
.smz-theme-toggle .theme-ico { font-size: 15px; line-height: 1; }

/* ---------- 分类导航条 ---------- */
.smz-catebar { background: var(--smz-surface); border-bottom: 1px solid var(--smz-line); position: sticky; top: var(--smz-header-h); z-index: 40; transition: var(--smz-tr); }
.smz-catebar-inner { max-width: var(--smz-maxw); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 10px; padding: 12px 16px; }
.smz-cate { display: inline-block; padding: 6px 16px; border-radius: var(--smz-radius-pill); font-size: 14px; color: var(--smz-text-2); background: var(--smz-surface-2); transition: .15s; }
.smz-cate:hover { color: var(--smz-accent); }
.smz-cate.active { background: var(--smz-grad); color: #fff; font-weight: 600; }

/* ---------- 30分钟实时热榜 ---------- */
.smz-hotbar {
  max-width: var(--smz-maxw); margin: 14px auto 0;
  background: var(--smz-surface); border-radius: var(--smz-radius); padding: 12px 18px;
  display: flex; align-items: center; gap: 16px; overflow: hidden; box-shadow: var(--smz-shadow);
}
.smz-hotbar-label { flex: none; font-weight: 700; color: var(--smz-accent); font-size: 14px; display: flex; align-items: center; gap: 6px; }
.smz-hotbar-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--smz-accent); box-shadow: 0 0 0 4px var(--smz-accent-weak); }
.smz-hotbar-list { display: flex; gap: 24px; overflow-x: auto; flex: 1; }
.smz-hotbar-item { white-space: nowrap; font-size: 13px; color: var(--smz-text-2); }
.smz-hotbar-item b { color: var(--smz-accent); margin-right: 5px; font-style: normal; }

/* ---------- 主体：信息流 + 侧栏 ---------- */
.smz-main { max-width: var(--smz-maxw); margin: 16px auto; display: flex; gap: var(--smz-gap-lg); padding: 0 16px; align-items: flex-start; }
.smz-feed { flex: 1; min-width: 0; }

/* 折扣卡片 */
.smz-card { background: var(--smz-surface); border-radius: var(--smz-radius-lg); box-shadow: var(--smz-shadow); display: flex; gap: 18px; padding: 16px; margin-bottom: var(--smz-gap); transition: transform .18s, box-shadow .18s; }
.smz-card:hover { box-shadow: var(--smz-shadow-lg); transform: translateY(-3px); }
.smz-card-img { width: 210px; flex: none; }
.smz-card-img img { width: 210px; height: 210px; object-fit: cover; border-radius: var(--smz-radius); background: var(--smz-surface-2); }
.smz-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.smz-card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.smz-tag-mini { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; color: var(--smz-accent); background: var(--smz-accent-weak); padding: 3px 11px; border-radius: var(--smz-radius-pill); }
.smz-tag-mini.gray { color: var(--smz-sub); background: var(--smz-surface-2); }
.smz-tag-mini:empty { display: none; }
.smz-card-tags:empty { display: none; margin: 0; }
.smz-card-title { font-size: 18px; font-weight: 700; line-height: 1.45; margin: 0 0 8px; }
.smz-card-title a:hover { color: var(--smz-accent); }
.smz-card-abs { font-size: 13px; color: var(--smz-text-2); line-height: 1.6; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.smz-card-abs a { color: var(--smz-accent); }
.smz-card-meta { display: flex; flex-wrap: wrap; gap: 6px 0; font-size: 12px; color: var(--smz-sub); align-items: center; }
.smz-card-meta .smz-dot::before { content: "·"; margin: 0 8px; color: var(--smz-sub); }
.smz-card-cate { color: var(--smz-accent); }
.smz-card-btn { align-self: flex-start; margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; background: var(--smz-grad); color: #fff; padding: 9px 22px; border-radius: var(--smz-radius-pill); font-size: 14px; font-weight: 700; box-shadow: var(--smz-shadow-sm); transition: .15s; }
.smz-card-btn:hover { opacity: .92; transform: translateY(-1px); box-shadow: var(--smz-shadow); }
.smz-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; }
.smz-card-foot .smz-card-meta { margin: 0; }

/* ---------- 侧栏模块 ---------- */
.smz-side { width: 300px; flex: none; display: flex; flex-direction: column; gap: var(--smz-gap); position: sticky; top: 128px; }
.smz-side-mod { background: var(--smz-surface); border-radius: var(--smz-radius-lg); box-shadow: var(--smz-shadow); padding: 16px; }
.smz-side-title { font-size: 16px; font-weight: 700; margin: 0 0 12px; padding-left: 11px; position: relative; }
.smz-side-title:before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 4px; border-radius: 2px; background: var(--smz-grad); }
.smz-rank { list-style: none; margin: 0; padding: 0; counter-reset: rk; }
.smz-rank li { counter-increment: rk; display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px dashed var(--smz-line); font-size: 13px; color: var(--smz-text-2); line-height: 1.5; }
.smz-rank li:before { content: counter(rk); flex: none; width: 20px; height: 20px; line-height: 20px; text-align: center; border-radius: 50%; background: var(--smz-surface-hover); color: var(--smz-sub); font-size: 12px; font-weight: 700; margin-top: 1px; }
.smz-rank li:nth-child(1):before, .smz-rank li:nth-child(2):before, .smz-rank li:nth-child(3):before { background: var(--smz-accent); color: #fff; }
.smz-rank a { color: var(--smz-text); }
.smz-rank a:hover { color: var(--smz-accent); }
.smz-mini-list { list-style: none; margin: 0; padding: 0; }
.smz-mini-list li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--smz-line); font-size: 13px; color: var(--smz-text-2); }
.smz-mini-list img { width: 42px; height: 42px; border-radius: var(--smz-radius-sm); object-fit: cover; flex: none; background: var(--smz-surface-2); }
.smz-mini-list a { color: var(--smz-text); }
.smz-mini-list a:hover { color: var(--smz-accent); }
.smz-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.smz-tag { background: var(--smz-surface-2); color: var(--smz-text-2); padding: 5px 12px; border-radius: var(--smz-radius-pill); font-size: 13px; transition: .15s; }
.smz-tag:hover { background: var(--smz-accent-weak); color: var(--smz-accent); }

/* ---------- 新消息提醒 ---------- */
.smz-feednotify { display: none; max-width: var(--smz-maxw); margin: 0 auto 14px; background: var(--smz-accent-weak); color: var(--smz-accent); border-radius: var(--smz-radius); padding: 10px 16px; font-size: 14px; text-align: center; cursor: pointer; }
.smz-feednotify.show { display: block; }

/* ---------- 分页（圆润、时尚） ---------- */
.smz-pager { text-align: center; padding: 10px 0 36px; }
.smz-pager a, .smz-pager span { display: inline-block; margin: 0 4px; padding: 8px 16px; border-radius: var(--smz-radius-pill); background: var(--smz-surface); color: var(--smz-text-2); font-size: 14px; box-shadow: var(--smz-shadow-sm); transition: .15s; min-width: 40px; }
.smz-pager a:hover { color: var(--smz-accent); transform: translateY(-1px); box-shadow: var(--smz-shadow); }
.smz-pager .cur { background: var(--smz-grad); color: #fff; border: 0; font-weight: 700; box-shadow: var(--smz-shadow); }

/* =========================================================
   响应式断点
   ========================================================= */

/* 平板：侧栏移到下方并横向铺开 */
@media (max-width: 980px) {
  .smz-main { flex-direction: column; }
  .smz-side { width: 100%; position: static; flex-direction: row; flex-wrap: wrap; }
  .smz-side-mod { flex: 1; min-width: 260px; }
}

/* 移动端：单栏信息流 + 红橙品牌色 */
@media (max-width: 768px) {
  :root {
    --smz-accent: #fe3a3f;
    --smz-accent-2: #faa450;
    --smz-grad: linear-gradient(90deg, #faa350, #fe3d3f);
    --smz-accent-weak: #fff0f2;
  }
  [data-theme="dark"] {
    --smz-accent: #ff5a5f;
    --smz-accent-2: #faa450;
    --smz-grad: linear-gradient(90deg, #faa350, #ff5a5f);
    --smz-accent-weak: #2a1517;
  }
  .smz-header-inner { height: 54px; gap: 10px; padding: 0 12px; }
  .smz-logo-text { font-size: 17px; }
  .smz-logo-img { height: 30px; }
  .smz-topnav { display: none; }
  .smz-search { height: 38px; border-radius: var(--smz-radius-pill); }
  .smz-search input { padding: 0 14px; font-size: 13px; }
  .smz-search button { padding: 0 16px; font-size: 14px; }
  .smz-catebar { top: 54px; }
  .smz-catebar-inner { flex-wrap: nowrap; overflow-x: auto; padding: 10px 12px; gap: 8px; }
  .smz-cate { white-space: nowrap; padding: 6px 14px; font-size: 13px; }
  .smz-hotbar { margin: 10px 12px 0; border-radius: var(--smz-radius); padding: 10px 14px; }
  .smz-main { padding: 0 12px; margin: 12px auto; gap: 12px; }
  .smz-card { flex-direction: column; padding: 12px; gap: 10px; margin-bottom: 12px; }
  .smz-card-img { width: 100%; }
  .smz-card-img img { width: 100%; height: 180px; }
  .smz-card-title { font-size: 16px; }
  .smz-card-btn { display: block; text-align: center; width: 100%; }
  .smz-side { display: none; }
  .smz-pager a, .smz-pager span { padding: 6px 12px; margin: 0 3px; min-width: 34px; }
}

/* ---------- 商品卡（优惠券/风云榜/搜索列表复用） ---------- */
.smz-card { position: relative; }
.smz-card-price { margin-top: auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.smz-price { color: var(--smz-price); font-weight: 800; font-size: 20px; }
.smz-price small { font-size: 12px; font-weight: 600; margin-right: 2px; }
.smz-coupon { background: var(--smz-accent-weak); color: var(--smz-accent); border: 1px dashed var(--smz-accent); padding: 4px 10px; border-radius: var(--smz-radius-pill); font-size: 12px; font-weight: 600; }
.smz-ranknum { position: absolute; left: -10px; top: -10px; width: 30px; height: 30px; line-height: 30px; text-align: center; border-radius: 50%; background: var(--smz-grad); color: #fff; font-weight: 800; font-size: 14px; box-shadow: var(--smz-shadow-sm); z-index: 2; }

/* ---------- 品牌卡 ---------- */
.smz-brand { display: flex; gap: 18px; align-items: center; background: var(--smz-surface); border-radius: var(--smz-radius-lg); box-shadow: var(--smz-shadow); padding: 16px; margin-bottom: var(--smz-gap); transition: transform .18s, box-shadow .18s; }
.smz-brand:hover { box-shadow: var(--smz-shadow-lg); transform: translateY(-3px); }
.smz-brand-img { width: 140px; height: 140px; flex: none; border-radius: var(--smz-radius); object-fit: contain; background: var(--smz-surface-2); padding: 8px; }
.smz-brand-body { flex: 1; min-width: 0; }
.smz-brand-name { font-size: 18px; font-weight: 800; margin: 0 0 6px; color: var(--smz-text); }
.smz-brand-feat { font-size: 13px; color: var(--smz-text-2); line-height: 1.6; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.smz-brand-meta { display: flex; gap: 16px; font-size: 13px; color: var(--smz-sub); margin-bottom: 12px; flex-wrap: wrap; }
.smz-brand-meta b { color: var(--smz-accent); }

/* ---------- 详情页 ---------- */
.smz-crumb { font-size: 13px; color: var(--smz-sub); margin-bottom: 12px; }
.smz-crumb a:hover { color: var(--smz-accent); }
.smz-detail { background: var(--smz-surface); border-radius: var(--smz-radius-lg); box-shadow: var(--smz-shadow); padding: 24px; margin-bottom: var(--smz-gap); }
.smz-detail-title { font-size: 24px; font-weight: 800; line-height: 1.4; margin: 0 0 12px; color: var(--smz-text); }
.smz-detail-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--smz-sub); margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--smz-line); }
.smz-detail-meta b { color: var(--smz-accent); font-weight: 600; }
.smz-detail-text { font-size: 15px; color: var(--smz-text-2); line-height: 1.9; }
.smz-detail-text img { max-width: 100%; border-radius: var(--smz-radius); margin: 10px 0; }
.smz-detail-text a { color: var(--smz-accent); }
.smz-detail-buy { margin-top: 22px; display: inline-flex; align-items: center; gap: 6px; background: var(--smz-grad); color: #fff; padding: 12px 34px; border-radius: var(--smz-radius-pill); font-size: 16px; font-weight: 700; box-shadow: var(--smz-shadow-sm); transition: .15s; }
.smz-detail-buy:hover { opacity: .92; transform: translateY(-1px); box-shadow: var(--smz-shadow); }

/* 相关推荐 */
.smz-related { background: var(--smz-surface); border-radius: var(--smz-radius-lg); box-shadow: var(--smz-shadow); padding: 18px; }
.smz-related-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 14px; }
.smz-related-card { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: var(--smz-radius); transition: .15s; }
.smz-related-card:hover { background: var(--smz-surface-2); }
.smz-related-card img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--smz-radius-sm); flex: none; background: var(--smz-surface-2); }
.smz-related-card .rt { font-size: 13px; color: var(--smz-text); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.smz-related-card:hover .rt { color: var(--smz-accent); }

/* ---------- 单页内容（APP/插件介绍） ---------- */
.smz-page { background: var(--smz-surface); border-radius: var(--smz-radius-lg); box-shadow: var(--smz-shadow); padding: 28px; line-height: 1.9; color: var(--smz-text-2); }
.smz-page h1 { color: var(--smz-text); font-size: 24px; margin: 0 0 14px; }

/* ---------- 页脚 ---------- */
.smz-footer { background: var(--smz-surface); border-top: 1px solid var(--smz-line); margin-top: 10px; transition: var(--smz-tr); }
.smz-footer-inner { max-width: var(--smz-maxw); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 30px; padding: 28px 16px; }
.smz-foot-group { min-width: 160px; }
.smz-foot-title { font-size: 15px; font-weight: 700; margin: 0 0 10px; color: var(--smz-text); }
.smz-foot-text { font-size: 13px; color: var(--smz-sub); line-height: 1.7; }
.smz-foot-text a { color: var(--smz-accent); }
.smz-foot-bar { border-top: 1px solid var(--smz-line); text-align: center; padding: 14px; font-size: 12px; color: var(--smz-sub); }

@media (max-width: 768px) {
  .smz-detail { padding: 16px; }
  .smz-detail-title { font-size: 20px; }
  .smz-detail-buy { display: block; text-align: center; width: 100%; }
  .smz-related-list { grid-template-columns: 1fr; }
  .smz-brand { flex-direction: column; text-align: center; }
  .smz-brand-img { width: 120px; height: 120px; }
  .smz-brand-meta { justify-content: center; }
}

/* ---------- 下拉加载提示 ---------- */
.smz-feed-tip { text-align: center; color: var(--smz-sub); font-size: 13px; padding: 16px 0 8px; }

/* ---------- 搜索框淘宝联想下拉（jQuery UI autocomplete） ---------- */
.ui-autocomplete {
  position: absolute;
  z-index: 99999;
  background: var(--smz-surface);
  border: 1px solid var(--smz-line);
  border-top: 0;
  border-radius: 0 0 var(--smz-radius) var(--smz-radius);
  box-shadow: var(--smz-shadow-pop);
  max-width: 420px;
  padding: 4px 0;
  list-style: none;
}
.ui-autocomplete .ui-menu-item { list-style: none; }
.ui-autocomplete .ui-menu-item-wrapper {
  padding: 9px 16px; font-size: 14px; color: var(--smz-text); cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ui-autocomplete .ui-menu-item-wrapper.ui-state-active { background: var(--smz-accent-weak); color: var(--smz-accent); }
.headsuggestitem { display: block; }

/* ---------- Vue 外观模式面板 ---------- */
.smz-theme-switch { position: relative; }
.smz-theme-panel {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: 168px; background: var(--smz-surface);
  border: 1px solid var(--smz-line); border-radius: var(--smz-radius);
  box-shadow: var(--smz-shadow-pop); padding: 8px; z-index: 60;
}
.tp-title { font-size: 12px; color: var(--smz-sub); padding: 4px 8px 6px; }
.tp-opt {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: var(--smz-radius-sm);
  font-size: 14px; color: var(--smz-text-2); cursor: pointer; transition: .15s;
}
.tp-opt:hover { background: var(--smz-surface-hover); }
.tp-opt.on { color: var(--smz-accent); font-weight: 600; }
.tp-opt input { accent-color: var(--smz-accent); }
.tp-enter-active, .tp-leave-active { transition: opacity .18s ease, transform .18s ease; }
.tp-enter-from, .tp-leave-to { opacity: 0; transform: translateY(-6px); }

/* =========================================================
   详情页增强 + 评论区 #hfeeds + 首页翻页隐藏
   ========================================================= */

/* 首页：隐藏翻页按钮（已有无限加载，保留元素供 JS 取下一页） */
.smz-feed .smz-pager { display: none; }

/* 详情头部 */
.smz-detail { padding: 28px 30px; }
.smz-detail-title { font-size: 26px; line-height: 1.35; }
.smz-detail-meta { gap: 6px 0; align-items: center; }
.smz-detail-meta .smz-dm { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--smz-sub); }
.smz-detail-meta .smz-dot::before { content: "·"; margin: 0 10px; color: var(--smz-sub); }
.smz-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--smz-grad); color: #fff;
  font-size: 12px; font-style: normal;
  display: inline-flex; align-items: center; justify-content: center;
}

/* 操作栏 */
.smz-detail-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 20px 0; }
.smz-act {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--smz-line); background: var(--smz-surface-2);
  color: var(--smz-text); border-radius: var(--smz-radius-pill);
  padding: 8px 16px; font-size: 14px; cursor: pointer; transition: var(--smz-tr);
}
.smz-act:hover { border-color: var(--smz-accent); color: var(--smz-accent); }
.smz-act b { color: var(--smz-accent); }
.smz-act-on { border-color: var(--smz-accent); color: var(--smz-accent); background: var(--smz-accent-weak); }
.smz-detail-buy { margin: 0 0 0 auto; display: inline-flex; padding: 10px 24px; font-size: 15px; }

/* 正文 */
.smz-detail-text { font-size: 16px; color: var(--smz-text); }
.smz-detail-text p { margin: 0 0 14px; }

/* 评论区 #hfeeds */
.smz-comments { background: var(--smz-surface); border-radius: var(--smz-radius-lg); box-shadow: var(--smz-shadow); padding: 24px 30px; margin-top: 18px; }
.smz-comment-count { color: var(--smz-accent); }
.smz-comment-form { margin: 14px 0 18px; }
.smz-comment-tip { color: var(--smz-accent); font-size: 13px; min-height: 18px; margin-bottom: 6px; }
.smz-comment-form textarea {
  width: 100%; min-height: 92px; resize: vertical;
  border: 1px solid var(--smz-line); border-radius: var(--smz-radius);
  padding: 12px; font-size: 14px; line-height: 1.6;
  background: var(--smz-surface-2); color: var(--smz-text); font-family: inherit;
}
.smz-comment-form textarea:focus { outline: none; border-color: var(--smz-accent); }
.smz-comment-form button {
  margin-top: 10px; float: right;
  background: var(--smz-grad); color: #fff; border: none;
  border-radius: var(--smz-radius-pill); padding: 9px 24px; font-weight: 700; cursor: pointer;
}
.smz-comment-form:after { content: ""; display: block; clear: both; }
.smz-comment-login {
  background: var(--smz-surface-2); border: 1px dashed var(--smz-line);
  border-radius: var(--smz-radius); padding: 14px; text-align: center;
  color: var(--smz-sub); font-size: 14px; margin: 14px 0 18px;
}
.smz-comment-login a { color: var(--smz-accent); font-weight: 700; }
.smz-comments-list { list-style: none; margin: 0; padding: 0; }
.smz-comment-item { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--smz-line); }
.smz-c-avatar {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: var(--smz-grad); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.smz-c-body { flex: 1; min-width: 0; }
.smz-c-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.smz-c-name { font-weight: 700; color: var(--smz-text); font-size: 14px; }
.smz-c-time { font-size: 12px; color: var(--smz-sub); }
.smz-c-text { font-size: 14px; line-height: 1.7; color: var(--smz-text); white-space: pre-wrap; word-break: break-word; }
.smz-comment-empty { text-align: center; color: var(--smz-sub); padding: 20px 0; font-size: 14px; }

@media (max-width: 768px) {
  .smz-detail { padding: 16px; }
  .smz-detail-title { font-size: 21px; }
  .smz-detail-actions { gap: 8px; }
  .smz-detail-buy { margin-left: 0; width: 100%; justify-content: center; order: 5; }

/* ---------- 搜索结果：平台切换 + 商品卡 ---------- */
.sres-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 0 0 16px; }
.sres-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.sres-tab { display: inline-block; padding: 7px 16px; border-radius: var(--smz-radius-pill); background: var(--smz-surface); color: var(--smz-text-2); font-size: 14px; box-shadow: var(--smz-shadow-sm); transition: .15s; }
.sres-tab:hover { color: var(--smz-accent); transform: translateY(-1px); }
.sres-tab.active { background: var(--smz-grad); color: #fff; font-weight: 700; box-shadow: var(--smz-shadow); }
.sres-card { position: relative; }
.sres-card .sres-badge { position: absolute; top: 10px; left: 10px; z-index: 2; }
.sres-badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px; font-weight: 700; color: #fff; line-height: 1.7; }
.sres-badge.sres-taobao { background: #ff5000; }
.sres-badge.sres-jd { background: #e1251b; }
.sres-badge.sres-pdd { background: #e02e24; }
.sres-badge.sres-vip { background: #cd2e6b; }
.sres-empty { text-align: center; padding: 60px 16px; color: var(--smz-sub); font-size: 15px; background: var(--smz-surface); border-radius: var(--smz-radius-lg); box-shadow: var(--smz-shadow-sm); }

/* ---------- TJK 商品详情页 ---------- */
.sres-detail { display: flex; gap: 28px; flex-wrap: wrap; }
.sres-detail-img { flex: 0 0 320px; max-width: 100%; }
.sres-detail-img img { width: 100%; border-radius: var(--smz-radius); box-shadow: var(--smz-shadow-sm); }
.sres-detail-body { flex: 1; min-width: 260px; }
.sres-detail-title { font-size: 24px; font-weight: 800; line-height: 1.4; margin: 6px 0 16px; color: var(--smz-text); }
.sres-detail-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 14px; }
.sres-detail-origin { color: var(--smz-sub); text-decoration: line-through; font-size: 14px; }
.sres-detail-meta { font-size: 13px; color: var(--smz-sub); margin-bottom: 8px; }
.sres-detail-nolink { font-size: 14px; color: var(--smz-sub); }
.sres-detail-back { display: inline-flex; align-items: center; padding: 10px 24px; border-radius: var(--smz-radius-pill); background: var(--smz-surface); color: var(--smz-text-2); font-size: 14px; box-shadow: var(--smz-shadow-sm); transition: .15s; }
.sres-detail-back:hover { color: var(--smz-accent); transform: translateY(-1px); }
@media (max-width: 600px) {
  .sres-detail { padding: 16px; gap: 16px; }
  .sres-detail-img { flex-basis: 100%; }
  .sres-detail-title { font-size: 20px; }
}
  .smz-comments { padding: 16px; }

/* ========================== 优惠券商城页面 ========================== */

/* 页面英雄区域 */
.smz-hero {
  background: linear-gradient(135deg, var(--smz-accent) 0%, var(--smz-accent-2) 100%);
  color: #fff;
  padding: 60px 0 40px;
  position: relative;
  overflow: hidden;
}

.smz-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}

.smz-hero-inner {
  max-width: var(--smz-maxw);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  text-align: center;
}

.smz-hero-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.smz-hero-subtitle {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* 大号搜索框 */
.smz-search-large {
  max-width: 560px;
  margin: 0 auto;
}

.smz-search-form {
  width: 100%;
}

.smz-search-box {
  display: flex;
  height: 48px;
  border: 0;
  border-radius: var(--smz-radius-pill);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.smz-search-input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 24px;
  font-size: 15px;
  background: transparent;
  color: #333;
}

.smz-search-input::placeholder {
  color: #999;
}

.smz-search-btn {
  border: 0;
  background: var(--smz-surface);
  color: var(--smz-accent);
  padding: 0 28px;
  font-size: 15px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.smz-search-btn:hover {
  background: var(--smz-accent);
  color: #fff;
  transform: translateY(-2px);
}

/* 分类导航 */
.smz-catebar {
  background: var(--smz-surface);
  border-bottom: 1px solid var(--smz-line);
  position: sticky;
  top: var(--smz-header-h);
  z-index: 40;
  box-shadow: var(--smz-shadow-sm);
}

.smz-catebar-inner {
  max-width: var(--smz-maxw);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.smz-catebar-inner::-webkit-scrollbar {
  display: none;
}

.smz-cate-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border: 2px solid transparent;
  border-radius: var(--smz-radius-pill);
  background: var(--smz-surface-2);
  color: var(--smz-text-2);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
  cursor: pointer;
}

.smz-cate-btn:hover {
  border-color: var(--smz-accent);
  color: var(--smz-accent);
  transform: translateY(-2px);
  box-shadow: var(--smz-shadow-sm);
}

.smz-cate-btn-active {
  background: var(--smz-accent);
  color: #fff;
  border-color: var(--smz-accent);
}

/* 统计信息 */
.smz-stats {
  background: var(--smz-bg);
  border-bottom: 1px solid var(--smz-line);
}

.smz-stats-inner {
  max-width: var(--smz-maxw);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--smz-sub);
}

.smz-stats-item strong {
  color: var(--smz-accent);
  font-weight: 700;
}

.smz-main {
  max-width: var(--smz-maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* 优惠券网格 */
.smz-feed {
  padding: 24px 0;
}

.smz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

/* 优惠券卡片 */
.smz-coupon-card {
  background: #fff;
  border: 0;
  border-radius: var(--smz-radius-lg);
  box-shadow: var(--smz-shadow-sm);
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
}

.smz-coupon-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--smz-shadow-md);
}

.smz-coupon-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* 优惠券图片 */
.smz-coupon-image {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--smz-bg);
  overflow: hidden;
}

.smz-coupon-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.smz-coupon-card:hover .smz-coupon-image img {
  transform: scale(1.05);
}

.smz-coupon-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 48px;
  color: var(--smz-sub);
}

.smz-coupon-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #ff4757 0%, #ff6b35 100%);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--smz-radius-pill);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(255,71,87,0.3);
  z-index: 2;
}

.smz-coupon-amount {
  font-size: 14px;
}

.smz-coupon-text {
  font-size: 10px;
  opacity: 0.9;
}

/* 优惠券内容 */
.smz-coupon-content {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.smz-coupon-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--smz-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.smz-coupon-title a {
  color: inherit;
  text-decoration: none;
}

.smz-coupon-title a:hover {
  color: var(--smz-accent);
}

.smz-coupon-prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.smz-coupon-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--smz-price);
}

.smz-coupon-origin {
  font-size: 13px;
  color: var(--smz-sub);
  text-decoration: line-through;
}

.smz-coupon-shop {
  font-size: 13px;
  color: var(--smz-sub);
  margin-bottom: 6px;
}

.smz-coupon-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--smz-sub);
}

.smz-coupon-sales {
  background: var(--smz-badge);
  color: var(--smz-badge-text);
  padding: 2px 6px;
  border-radius: var(--smz-radius-sm);
}

/* 领券按钮 */
.smz-coupon-action {
  padding: 0 18px 18px;
}

.smz-coupon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: var(--smz-grad);
  color: #fff !important;
  border: 0;
  border-radius: var(--smz-radius);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255,71,87,0.2);
}

.smz-coupon-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255,71,87,0.3);
  color: #fff !important;
}

/* 分页 */
.smz-pager {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.smz-pager-inner {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.smz-pager a,
.smz-pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--smz-line);
  border-radius: var(--smz-radius-sm);
  background: var(--smz-surface);
  color: var(--smz-text-2);
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.smz-pager a:hover {
  border-color: var(--smz-accent);
  color: var(--smz-accent);
  transform: translateY(-1px);
}

.smz-pager .current,
.smz-pager .active {
  background: var(--smz-accent);
  color: #fff;
  border-color: var(--smz-accent);
}

/* 空状态 */
.smz-empty {
  text-align: center;
  padding: 80px 20px;
  background: var(--smz-surface);
  border-radius: var(--smz-radius-lg);
  box-shadow: var(--smz-shadow-sm);
}

.smz-empty-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.smz-empty-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--smz-text);
  margin-bottom: 12px;
}

.smz-empty-desc {
  font-size: 15px;
  color: var(--smz-sub);
  margin-bottom: 24px;
  line-height: 1.6;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.smz-empty-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--smz-grad);
  color: #fff !important;
  border: 0;
  border-radius: var(--smz-radius-pill);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255,71,87,0.2);
}

.smz-empty-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255,71,87,0.3);
  color: #fff !important;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .smz-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

@media (max-width: 768px) {
  .smz-hero {
    padding: 40px 0 30px;
  }
  
  .smz-hero-title {
    font-size: 28px;
  }
  
  .smz-hero-subtitle {
    font-size: 14px;
  }
  
  .smz-search-large {
    max-width: 100%;
  }
  
  .smz-search-box {
    height: 44px;
  }
  
  .smz-search-input {
    padding: 0 16px;
  }
  
  .smz-search-btn {
    padding: 0 20px;
  }
  
  .smz-catebar-inner {
    padding: 10px 16px;
    gap: 8px;
  }
  
  .smz-cate-btn {
    padding: 6px 16px;
    font-size: 13px;
  }
  
  .smz-stats-inner {
    padding: 12px 16px;
    font-size: 13px;
    gap: 16px;
  }
  
  .smz-main {
    padding: 0 16px;
  }
  
  .smz-feed {
    padding: 20px 0;
  }
  
  .smz-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }
  
  .smz-empty {
    padding: 60px 16px;
  }
}

@media (max-width: 480px) {
  .smz-grid {
    grid-template-columns: 1fr;
  }
  
  .smz-coupon-image {
    aspect-ratio: 16/10;
  }
}
