/*
Theme Name: 买必省 2.1.9（2026-10-21）
Theme URI: https://maibisheng.cn
Author: 买必省
Description: 导购站轻主题。问答在前、商品在后：首页只放问题，商品只在文章正文之后出现。无依赖、无框架，移动优先。
Version: 2.2.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: anyu-blank
*/

/* ========== 1. 变量与基础 ========== */
:root {
  --anyu-primary: #d94f2b;
  --anyu-primary-dark: #b83e1e;
  --anyu-primary-soft: #fdf1ed;
  --anyu-text: #1f1f1f;
  --anyu-text-2: #5c5c58;
  --anyu-muted: #8f8f89;
  --anyu-line: #e8e6e1;
  --anyu-bg: #f6f5f2;
  --anyu-card: #ffffff;
  --anyu-radius: 12px;
  --anyu-radius-lg: 16px;
  --anyu-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--anyu-bg);
  color: var(--anyu-text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.4; }

p { margin: 0 0 1em; }

button, input, select, textarea { font: inherit; color: inherit; }

.anyu-sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.anyu-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ========== 2. 顶部栏 ========== */
.anyu-home-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 720px;
  margin: 0 auto;
  padding: 14px 16px 6px;
}

.anyu-home-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .3px;
}

.anyu-home-login {
  font-size: 13px;
  color: var(--anyu-muted);
  padding: 6px 12px;
  border: 1px solid var(--anyu-line);
  border-radius: 999px;
  background: var(--anyu-card);
  white-space: nowrap;
}

.anyu-home-login:hover { color: var(--anyu-primary); border-color: var(--anyu-primary); }

/* ========== 3. 首页搜索 ========== */
.anyu-home-search {
  max-width: 720px;
  margin: 0 auto;
  padding: 10px 16px 0;
}

.anyu-home-search-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--anyu-card);
  border: 1px solid var(--anyu-line);
  border-radius: 999px;
  padding: 6px 6px 6px 16px;
  box-shadow: var(--anyu-shadow);
}

.anyu-home-search-icon { font-size: 15px; opacity: .5; line-height: 1; }

.anyu-home-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
  padding: 8px 0;
}

.anyu-home-search-input::placeholder { color: #b3b3ae; }

.anyu-home-search-btn {
  flex: 0 0 auto;
  border: 0;
  background: var(--anyu-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s;
}

.anyu-home-search-btn:hover { background: var(--anyu-primary-dark); }

/* ========== 4. 价格透视入口 ========== */
/* ========== 4b. 首页开场（问答优先，商品在后） ========== */
.anyu-home-hero {
  max-width: 720px;
  margin: 20px auto 0;
  padding: 0 16px;
}

.anyu-home-hero h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--anyu-text);
}

.anyu-home-hero p {
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--anyu-muted);
}

/* 兜底出口：没答案才去问 AI / 比价 */
.anyu-home-tools {
  max-width: 720px;
  margin: 22px auto 0;
  padding: 0 16px 8px;
  display: grid;
  gap: 10px;
}

.anyu-home-tool {
  display: block;
  padding: 14px 16px;
  background: var(--anyu-card);
  border: 1px solid var(--anyu-line);
  border-radius: var(--anyu-radius);
  text-decoration: none;
  color: inherit;
}

.anyu-home-tool-t {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 3px;
  color: var(--anyu-text);
}

.anyu-home-tool-s {
  display: block;
  font-size: 12px;
  line-height: 1.55;
  color: var(--anyu-muted);
}

.anyu-home-tool:last-child {
  background: transparent;
  border-style: dashed;
}

.anyu-home-lens {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 688px;
  margin: 12px auto 0;
  padding: 14px 16px;
  background: linear-gradient(135deg, #2b2b28 0%, #454540 100%);
  border-radius: var(--anyu-radius);
  color: #fff;
}

.anyu-home-lens-icon {
  flex: 0 0 34px;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .14);
  border-radius: 10px;
  font-size: 16px;
}

.anyu-home-lens-body { flex: 1; min-width: 0; }

.anyu-home-lens-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.anyu-home-lens-sub {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, .62);
  line-height: 1.5;
}

.anyu-home-lens-arrow { font-size: 18px; opacity: .45; }

/* ========== 5. 分类横滑 ========== */
.anyu-home-cats {
  display: flex;
  gap: 8px;
  max-width: 720px;
  margin: 14px auto 0;
  padding: 0 16px 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.anyu-home-cats::-webkit-scrollbar { display: none; }

.anyu-home-cat-tab {
  flex: 0 0 auto;
  font-size: 14px;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--anyu-card);
  border: 1px solid var(--anyu-line);
  color: var(--anyu-text-2);
  white-space: nowrap;
  transition: all .15s;
}

.anyu-home-cat-tab:hover { border-color: #d5d2cc; }

.anyu-home-cat-tab.is-active {
  background: var(--anyu-text);
  border-color: var(--anyu-text);
  color: #fff;
  font-weight: 500;
}


/* ========== 6. 首页分区 ========== */
.anyu-home-featured {
  max-width: 720px;
  margin: 22px auto 0;
  padding: 0 16px;
}

.anyu-home-featured-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.anyu-home-featured-head h2,
.anyu-home-featured-head h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 16px;
  font-weight: 600;
}

.anyu-home-featured-more {
  font-size: 13px;
  color: var(--anyu-muted);
}

.anyu-home-featured-more:hover { color: var(--anyu-primary); }



.anyu-home-featured-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.anyu-home-featured-scroll::-webkit-scrollbar { display: none; }

.anyu-home-featured-card {
  flex: 0 0 136px;
  background: var(--anyu-card);
  border-radius: var(--anyu-radius);
  overflow: hidden;
  border: 1px solid var(--anyu-line);
  transition: transform .15s, box-shadow .15s;
}

.anyu-home-featured-card:active { transform: scale(.98); }

.anyu-home-featured-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #efede8;
  overflow: hidden;
}

.anyu-home-featured-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.anyu-home-featured-title {
  font-size: 13px;
  line-height: 1.5;
  padding: 9px 10px 11px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 54px;
}

/* 图文卡：上面一张图，下面标题
   两列网格，不用横向滚动（横滚会露出半张卡，看着像没对齐） */
.anyu-home-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  overflow: visible;
  padding-bottom: 0;
}

.anyu-home-post-card {
  display: block;
  overflow: hidden;
  background: var(--anyu-card);
  border: 1px solid var(--anyu-line);
  border-radius: var(--anyu-radius);
  box-shadow: var(--anyu-shadow);
  transition: transform .15s, border-color .15s;
}

.anyu-home-post-card:active { transform: scale(.98); }
.anyu-home-post-card:hover { border-color: var(--anyu-primary); }

.anyu-home-post-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #efede8;
  overflow: hidden;
}

.anyu-home-post-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 没有配图的文章：按分类型上色 + 购物袋图标 + 品类名
   以前只印一个 13px 的品类名，四周全空，看起来像图片加载失败。
   现在做成一张"有设计的封面"，跟有图的卡片并排放不违和。 */
.anyu-home-post-thumb.is-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: linear-gradient(135deg, #f5f3ee, #e7e4dd);
  color: #7d7a72;
}

/* 中间已经写了品类名，角标就不再重复 */
.anyu-home-post-thumb.is-empty .anyu-home-post-cat { display: none; }

.anyu-ph-icon {
  display: block;
  width: 25px;
  height: 25px;
  opacity: .5;
}

.anyu-ph-icon svg { display: block; width: 100%; height: 100%; }

.anyu-ph-label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .1em;
  opacity: .8;
}

/* 每个品类一个色系，卡片一屏扫过去不至于一片灰 */
.anyu-home-post-thumb.is-empty[data-cat="tea"]     { background: linear-gradient(135deg, #eef6e9, #d7e7c9); color: #4f6f3e; }
.anyu-home-post-thumb.is-empty[data-cat="kitchen"] { background: linear-gradient(135deg, #fdf0e7, #f8d9c5); color: #a8552f; }
.anyu-home-post-thumb.is-empty[data-cat="daily"]   { background: linear-gradient(135deg, #eef2f7, #d8e0eb); color: #4a5f7d; }
.anyu-home-post-thumb.is-empty[data-cat="baby"]    { background: linear-gradient(135deg, #fdeef5, #f7d7e5); color: #a34a6c; }
.anyu-home-post-thumb.is-empty[data-cat="pet"]     { background: linear-gradient(135deg, #f4effb, #e2d6f5); color: #6b4a9e; }
.anyu-home-post-thumb.is-empty[data-cat="health"]  { background: linear-gradient(135deg, #eaf6f2, #d2e9e1); color: #3c6b5a; }
.anyu-home-post-thumb.is-empty[data-cat="home"]    { background: linear-gradient(135deg, #f7f1e7, #e9dcc4); color: #7d6440; }
.anyu-home-post-thumb.is-empty[data-cat="wash"]    { background: linear-gradient(135deg, #e9f3f9, #d0e4f0); color: #3f6280; }
.anyu-home-post-thumb.is-empty[data-cat="fix"]     { background: linear-gradient(135deg, #f3f3f3, #dedede); color: #565656; }
.anyu-home-post-thumb.is-empty[data-cat="ai-qa"]   { background: linear-gradient(135deg, #eff1fd, #d8dcf7); color: #4a4f96; }

.anyu-home-post-cat {
  position: absolute;
  left: 8px;
  top: 8px;
  font-size: 11px;
  line-height: 1;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .5);
  color: #fff;
  font-weight: 500;
  backdrop-filter: blur(2px);
}

.anyu-home-post-title {
  padding: 9px 10px 11px;
  font-size: 13.5px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--anyu-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 快捷词 */
.anyu-home-tea-fast {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.anyu-home-tea-fast-label { font-size: 12px; color: var(--anyu-muted); }

.anyu-home-tea-chip {
  font-size: 12.5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #f0eeea;
  color: var(--anyu-text-2);
}

.anyu-home-tea-chip:hover { background: var(--anyu-primary-soft); color: var(--anyu-primary); }

/* ========== 7. 分类页 / 文章列表 ========== */
.anyu-cat-head {
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 16px 10px;
}

.anyu-cat-head h1 { font-size: 20px; }

.anyu-cat-head p { font-size: 13px; color: var(--anyu-muted); margin: 6px 0 0; }

.anyu-list {
  max-width: 720px;
  margin: 0 auto;
  padding: 4px 16px 24px;
}

.anyu-list-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--anyu-card);
  border: 1px solid var(--anyu-line);
  border-radius: var(--anyu-radius);
  margin-bottom: 10px;
}

.anyu-list-thumb {
  flex: 0 0 88px;
  width: 88px; height: 88px;
  border-radius: 10px;
  overflow: hidden;
  background: #efede8;
}

.anyu-list-thumb img { width: 100%; height: 100%; object-fit: cover; }

.anyu-list-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }

.anyu-list-title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.anyu-list-meta {
  font-size: 12px;
  color: var(--anyu-muted);
  margin-top: 6px;
  display: flex;
  gap: 10px;
}

/* 分页 */
.anyu-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 36px;
  font-size: 13px;
}

.anyu-pager a, .anyu-pager span {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 9px;
  background: var(--anyu-card);
  border: 1px solid var(--anyu-line);
  color: var(--anyu-text-2);
}

.anyu-pager .is-current {
  background: var(--anyu-text);
  border-color: var(--anyu-text);
  color: #fff;
}

/* ========== 8. 文章页 ========== */
.anyu-detail {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

.anyu-detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 10px;
}

.anyu-detail-logo {
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.anyu-detail-back {
  font-size: 13px;
  color: var(--anyu-muted);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--anyu-line);
  background: var(--anyu-card);
}

.anyu-detail-title {
  font-size: 22px;
  line-height: 1.45;
  margin: 6px 0 10px;
  letter-spacing: -.2px;
}

.anyu-detail-meta {
  font-size: 12px;
  color: var(--anyu-muted);
  display: flex;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--anyu-line);
  margin-bottom: 16px;
}

/* 顶部配图（特色图像 / 图集）
   左右各留 8px：-8px 负边距只吃掉 .anyu-detail 16px 内边距的一半，
   比满幅松一点，跟下方商品卡的位置对齐，也不会撑出横向滚动。 */
.anyu-detail-hero {
  /* 高度 200px 是站长实测定的（原来 160 太小，跟下方商品图比显挤）。
     想再高/再矮，只改这一个数字即可。 */
  --anyu-hero-h: 200px;
  margin: 0 -8px 12px;
  background: #eee9e2;
  overflow: hidden;
}

.anyu-detail-hero-img {
  display: block;
  width: 100%;
  height: var(--anyu-hero-h);
  object-fit: cover;
  object-position: center;
  margin: 0;
  border: 0;
  background: #eee9e2;
}

/* 多图：横向滑动 + 圆点 */
.anyu-detail-hero-track {
  display: flex;
  align-items: flex-start;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.anyu-detail-hero-track::-webkit-scrollbar { display: none; }

.anyu-detail-hero-item {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
}

.anyu-detail-hero-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 7px 0 8px;
  background: #fff;
}

.anyu-detail-hero-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #d8d4cd;
  transition: width .18s, background .18s;
}

.anyu-detail-hero-dot.is-active { width: 14px; background: var(--anyu-primary); }

/* 正文图片兜底：任何宽图都不撑破屏幕 */
.anyu-detail-content img { max-width: 100%; height: auto; }

/* AI 总结 */
.anyu-detail-ai {
  background: var(--anyu-primary-soft);
  border: 1px solid #f6dcd3;
  border-radius: var(--anyu-radius);
  padding: 14px 16px;
  margin-bottom: 20px;
}

.anyu-detail-ai-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
}

.anyu-detail-ai-icon { font-size: 15px; line-height: 1; }

.anyu-detail-ai-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--anyu-primary);
  letter-spacing: .4px;
}

.anyu-detail-ai-body { font-size: 14.5px; line-height: 1.75; color: #4a3b34; }

.anyu-detail-ai-body p { margin: 0; }

.anyu-detail-ai-body p + p { margin-top: 8px; }

/* 正文 */
.anyu-detail-content { font-size: 15.5px; line-height: 1.85; color: #2c2c2a; }

.anyu-detail-content h2 {
  font-size: 17px;
  margin: 26px 0 10px;
  padding-left: 11px;
  border-left: 3px solid var(--anyu-primary);
  line-height: 1.5;
}

.anyu-detail-content h3 { font-size: 16px; margin: 20px 0 8px; }

.anyu-detail-content p { margin: 0 0 14px; }

.anyu-detail-content ul, .anyu-detail-content ol { padding-left: 20px; margin: 0 0 14px; }

.anyu-detail-content li { margin-bottom: 6px; }

.anyu-detail-content figure { margin: 18px 0; text-align: center; }

.anyu-detail-content figure img { border-radius: 10px; margin: 0 auto; }

.anyu-detail-content figcaption { font-size: 12px; color: var(--anyu-muted); margin-top: 6px; }

.anyu-detail-content a { color: var(--anyu-primary); border-bottom: 1px solid rgba(217, 79, 43, .25); }

.anyu-detail-content blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  background: #faf9f6;
  border-left: 3px solid var(--anyu-line);
  color: var(--anyu-text-2);
  font-size: 14.5px;
}

/* 搜同款模块 */
.anyu-detail-goods {
  margin-top: 30px;
  padding: 16px;
  background: var(--anyu-card);
  border: 1px solid var(--anyu-line);
  border-radius: var(--anyu-radius-lg);
}

.anyu-detail-goods-hint {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--anyu-muted);
  margin: 0 0 10px;
}

.anyu-detail-goods-search { display: flex; gap: 8px; }

.anyu-detail-goods-input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--anyu-line);
  border-radius: 999px;
  outline: 0;
  font-size: 14.5px;
  background: #fbfaf8;
}

.anyu-detail-goods-input:focus { border-color: var(--anyu-primary); background: #fff; }

.anyu-detail-goods-btn {
  flex: 0 0 auto;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--anyu-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.anyu-detail-goods-btn:hover { background: var(--anyu-primary-dark); }

.anyu-detail-goods-btn:disabled { opacity: .55; cursor: default; }

.anyu-detail-goods-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.anyu-detail-goods-list:empty { margin-top: 0; }

.anyu-detail-goods-loading,
.anyu-detail-goods-empty {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 13px;
  color: var(--anyu-muted);
  padding: 18px 0;
}

/* 商品卡 */
.anyu-goods-card {
  display: block;
  background: #fff;
  border: 1px solid var(--anyu-line);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .15s;
}

.anyu-goods-card:hover { border-color: #d8d4cd; }

.anyu-goods-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f3f1ed;
  overflow: hidden;
}

.anyu-goods-card-img img { width: 100%; height: 100%; object-fit: cover; }

.anyu-goods-card-body { padding: 9px 10px 11px; }

.anyu-goods-card-title {
  font-size: 13px;
  line-height: 1.45;
  height: 2.9em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 7px;
  color: var(--anyu-text);
}

.anyu-goods-card-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: var(--anyu-primary);
  font-weight: 600;
  font-size: 16px;
}

.anyu-goods-card-price small { font-size: 11px; font-weight: 400; }

.anyu-goods-card-origin {
  font-size: 11px;
  color: var(--anyu-muted);
  text-decoration: line-through;
  font-weight: 400;
}

.anyu-goods-card-sales {
  font-size: 11px;
  color: var(--anyu-muted);
  margin-top: 3px;
}

/* 问问 AI 兜底 */
.anyu-detail-ask {
  margin-top: 22px;
  text-align: center;
  padding: 18px 16px;
  background: #faf9f6;
  border: 1px dashed #ddd9d2;
  border-radius: var(--anyu-radius);
}

.anyu-detail-ask p { font-size: 13.5px; color: var(--anyu-muted); margin-bottom: 10px; }

.anyu-detail-ask-btn {
  display: inline-block;
  padding: 9px 22px;
  border-radius: 999px;
  background: var(--anyu-text);
  color: #fff;
  font-size: 14px;
}

/* 评论 */
.anyu-detail-comments {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--anyu-line);
}

.anyu-detail-comments h3 { font-size: 15px; margin-bottom: 12px; }

.anyu-detail-comments .comment-body {
  font-size: 14px;
  color: var(--anyu-text-2);
  padding: 10px 0;
  border-bottom: 1px solid #f2f0ec;
}

.anyu-detail-comments .comment-meta { font-size: 12px; color: var(--anyu-muted); }

/* 相关阅读（内链） */
.anyu-rel {
  margin: 28px 0 8px;
  padding: 16px 18px;
  background: #faf9f6;
  border-radius: var(--anyu-radius);
}

.anyu-rel-t { font-size: 13px; color: var(--anyu-muted); margin-bottom: 10px; }

.anyu-rel ul { margin: 0; padding: 0; list-style: none; }

.anyu-rel li { position: relative; margin: 0 0 9px; padding-left: 14px; font-size: 14px; line-height: 1.6; }

.anyu-rel li:last-child { margin-bottom: 0; }

.anyu-rel li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 4px; height: 4px; border-radius: 50%; background: #c9c9c4;
}

.anyu-rel a { color: var(--anyu-text-2); }

.anyu-rel a:hover { color: var(--anyu-primary); }

/* ========== 9. 底部 ========== */
.anyu-footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  border-top: 1px solid var(--anyu-line);
  font-size: 12px;
  color: var(--anyu-muted);
  text-align: center;
  line-height: 1.9;
}

.anyu-footer a { color: var(--anyu-muted); }

.anyu-footer a:hover { color: var(--anyu-primary); }

.anyu-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 10px; }

/* ========== 10. 通用页面 ========== */
.anyu-page { max-width: 720px; margin: 0 auto; padding: 24px 16px 40px; }

.anyu-empty { text-align: center; padding: 60px 20px; color: var(--anyu-muted); font-size: 14px; }

/* ========== 11. AI 问答页 ========== */
.anyu-ask { max-width: 680px; margin: 0 auto; padding: 20px 16px 44px; }

.anyu-ask-title { font-size: 22px; line-height: 1.45; margin: 8px 0 8px; font-weight: 600; letter-spacing: -.01em; }

.anyu-ask-sub { font-size: 14px; color: var(--anyu-text-2); margin: 0 0 20px; }

.anyu-ask-box { background: var(--anyu-card); border: 1px solid var(--anyu-line); border-radius: var(--anyu-radius-lg); padding: 14px; box-shadow: var(--anyu-shadow); }

.anyu-ask-box textarea {
  width: 100%;
  border: 0;
  outline: 0;
  resize: vertical;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.7;
  color: var(--anyu-text);
  background: transparent;
  min-height: 84px;
}

.anyu-ask-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--anyu-line); }

.anyu-ask-tip { font-size: 12px; color: var(--anyu-muted); }

.anyu-ask-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 0; }

.anyu-ask-quick .anyu-home-tea-chip { border: 1px solid var(--anyu-line); background: var(--anyu-card); cursor: pointer; font-family: inherit; }

.anyu-ask-result { margin-top: 20px; background: var(--anyu-card); border: 1px solid var(--anyu-line); border-radius: var(--anyu-radius-lg); padding: 16px 16px 6px; }

.anyu-ask-a { font-size: 15px; line-height: 1.8; color: var(--anyu-text); }

.anyu-ask-more { margin: 14px 0 10px; font-size: 13px; }

.anyu-ask-more a { color: var(--anyu-primary); text-decoration: none; }

.anyu-ask-loading, .anyu-ask-err { color: var(--anyu-muted); font-size: 14px; margin: 0 0 12px; }

.anyu-ask-err { color: var(--anyu-primary-dark); }

.anyu-ask-off { background: var(--anyu-card); border: 1px solid var(--anyu-line); border-radius: var(--anyu-radius-lg); padding: 18px; font-size: 14px; color: var(--anyu-text-2); }

.anyu-ask-off-links { display: flex; gap: 16px; margin: 12px 0 0; }

.anyu-ask-off-links a { color: var(--anyu-primary); text-decoration: none; }

.anyu-ask-foot { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--anyu-line); font-size: 12px; color: var(--anyu-muted); line-height: 1.9; }

.anyu-ask-foot a { color: var(--anyu-muted); text-decoration: none; }

/* ========== 13. 旧插件渲染的页面（登录 / 投稿 / 我的）==========
   这几页由旧插件的模板输出，自带一份内联样式（红顶栏、灰底）。
   这里用 !important 把它们拉回本主题的白底风格，不动插件、不动登录逻辑。 */
.anyu-page-topbar {
  background: #fff !important;
  border-bottom: 1px solid var(--anyu-line);
  padding: 12px 16px !important;
  position: sticky;
  top: 0;
  z-index: 60;
}
.anyu-page-back { color: var(--anyu-text-2) !important; font-size: 14px !important; font-weight: 500 !important; }
.anyu-page-logo { color: var(--anyu-text) !important; font-size: 15px !important; font-weight: 600 !important; }

.anyu-page-body { max-width: 720px !important; padding: 18px 16px 20px !important; }
.anyu-page-footer {
  padding: 16px 16px 24px !important;
  background: transparent !important;
  color: var(--anyu-muted) !important;
  font-size: 12px !important;
  line-height: 1.8;
}
.anyu-page-footer a { color: var(--anyu-muted) !important; }

/* 投稿未登录的提示卡 + 「去登录」按钮 */
.anyu-submit-need-login {
  background: var(--anyu-card);
  border: 1px solid var(--anyu-line);
  border-radius: var(--anyu-radius-lg);
  padding: 26px 20px;
  text-align: center;
}
.anyu-submit-need-login p { margin: 0 0 14px; font-size: 15px; color: var(--anyu-text); }

.anyu-page-body .anyu-btn {
  display: inline-block;
  margin-top: 6px;
  padding: 10px 22px;
  border: none;
  border-radius: 999px;
  background: var(--anyu-primary);
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

/* ========== 14. 顶部：下载 APP ========== */
.anyu-home-topbar-act {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.anyu-home-app {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e2603a, #cf4526);
  color: #fff;
  font-size: 11.5px;
  line-height: 1;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(207, 69, 38, .22);
}

.anyu-home-app svg { width: 13px; height: 13px; flex-shrink: 0; }
.anyu-home-app:active { transform: scale(.97); }

/* 文章页顶栏里的那颗按钮：靠右，紧挨「返回」 */
.anyu-detail-app {
  margin-left: auto;
  margin-right: 8px;
  font-size: 11px;
  padding: 6px 9px;
}

/* ========== 15. 底部固定导航 ========== */
body {
  padding-bottom: 60px;
  padding-bottom: calc(60px + env(safe-area-inset-bottom));
}

.anyu-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9990;
  background: rgba(255, 255, 255, .97);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--anyu-line);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -1px 12px rgba(0, 0, 0, .04);
}

.anyu-tabbar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 720px;
  margin: 0 auto;
  height: 58px;
}

.anyu-tabbar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--anyu-muted);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.anyu-tabbar-icon { display: block; line-height: 0; }
.anyu-tabbar-icon svg { width: 23px; height: 23px; display: block; }

.anyu-tabbar-name {
  font-size: 11px;
  line-height: 1;
  letter-spacing: .2px;
}

.anyu-tabbar-item.is-active { color: var(--anyu-primary); }
.anyu-tabbar-item.is-active .anyu-tabbar-name { font-weight: 600; }
.anyu-tabbar-item:active { opacity: .6; }

/* 窄屏（320–359）：APP 按钮只留「下载APP」，不挤掉登录 */
@media (max-width: 359px) {
  .anyu-app-brand { display: none; }
  .anyu-home-app { padding: 7px 9px; font-size: 11px; }
  .anyu-home-login { padding: 6px 9px; font-size: 12px; }
}

/* 区块编辑器会把短代码包在 <p> 里，浏览器遇到 <div> 会把 <p> 截断成空标签 */
.anyu-detail-content > p:empty { display: none; }

/* ========== 13. 登录 / 我的 / 投稿（主题自带，不依赖插件） ========== */
.anyu-panel {
  background: var(--anyu-card);
  border: 1px solid var(--anyu-line);
  border-radius: var(--anyu-radius-lg);
  box-shadow: var(--anyu-shadow);
  padding: 20px 18px;
  margin: 0 0 14px;
}

.anyu-panel-title { font-size: 17px; margin-bottom: 16px; }

.anyu-panel-lead { font-size: 17px; font-weight: 600; color: var(--anyu-text); margin: 0 0 6px; }

.anyu-panel-sub { font-size: 13.5px; color: var(--anyu-muted); margin: 0 0 4px; }

.anyu-panel-center { text-align: center; padding: 34px 20px; }

.anyu-panel-actions {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin: 16px 0 0;
}

.anyu-btn-primary,
.anyu-btn-ghost {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  border: 1px solid transparent;
}

.anyu-btn-primary { background: linear-gradient(135deg, #e2603a, #cf4526); color: #fff; }

.anyu-btn-ghost { background: #fff; color: var(--anyu-text-2); border-color: var(--anyu-line); }

/* 正文里的 a 是橘色带下划线，会把橘色按钮上的白字吃掉，这里按优先级盖回来 */
.anyu-detail-content a.anyu-btn-primary,
.anyu-panel a.anyu-btn-primary {
  color: #fff;
  border-bottom: 0;
}

.anyu-detail-content a.anyu-btn-ghost,
.anyu-panel a.anyu-btn-ghost {
  color: var(--anyu-text-2);
  border-bottom: 0;
}

.anyu-detail-content a.anyu-form-submit { color: #fff; border-bottom: 0; }

.anyu-btn-primary:active,
.anyu-btn-ghost:active { opacity: .75; }

.anyu-panel-foot { font-size: 13px; color: var(--anyu-muted); margin: 12px 0 0; }

.anyu-panel-foot a { color: var(--anyu-primary); }

/* 登录表单（WP 核心 wp_login_form 的输出） */
#anyu-login-form p { margin: 0 0 14px; }

#anyu-login-form label { display: block; font-size: 13px; color: var(--anyu-text-2); margin-bottom: 5px; }

#anyu-login-form input[type="text"],
#anyu-login-form input[type="password"] {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--anyu-line);
  border-radius: 10px;
  background: #fbfaf8;
  font-size: 15px;
}

#anyu-login-form input[type="text"]:focus,
#anyu-login-form input[type="password"]:focus {
  outline: none;
  border-color: var(--anyu-primary);
  background: #fff;
}

#anyu-login-form .login-remember label {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--anyu-text-2); margin: 0;
}

#anyu-login-form input[type="submit"] {
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #e2603a, #cf4526);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

/* 我的 */
.anyu-me-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }

.anyu-me-avatar img { width: 52px; height: 52px; border-radius: 50%; display: block; }

.anyu-me-name { font-size: 16px; font-weight: 600; }

.anyu-me-meta { font-size: 12.5px; color: var(--anyu-muted); word-break: break-all; }

.anyu-me-stats { display: flex; gap: 10px; margin: 0 0 16px; }

.anyu-me-stat {
  flex: 1;
  text-align: center;
  background: #fbfaf8;
  border: 1px solid var(--anyu-line);
  border-radius: 10px;
  padding: 12px 8px;
}

.anyu-me-stat b { display: block; font-size: 18px; line-height: 1.5; }

.anyu-me-stat span { font-size: 12px; color: var(--anyu-muted); }

.anyu-me-sub { font-size: 14px; color: var(--anyu-text-2); margin: 4px 0 8px; }

.anyu-me-list { list-style: none; margin: 0 0 4px; padding: 0; }

.anyu-me-list li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 0;
  border-top: 1px solid #f2f0ec;
  font-size: 14px;
}

.anyu-me-list li em { font-style: normal; font-size: 12px; color: var(--anyu-muted); flex: none; }

/* 投稿表单 */
.anyu-form-row { margin: 0 0 14px; }

.anyu-form-label { display: block; font-size: 13px; color: var(--anyu-text-2); margin-bottom: 6px; }

.anyu-form-input,
.anyu-form-textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--anyu-line);
  border-radius: 10px;
  background: #fbfaf8;
  font-size: 15px;
  line-height: 1.6;
}

.anyu-form-textarea { min-height: 130px; resize: vertical; }

.anyu-form-input:focus,
.anyu-form-textarea:focus {
  outline: none;
  border-color: var(--anyu-primary);
  background: #fff;
}

.anyu-form-submit {
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #e2603a, #cf4526);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.anyu-form-submit:active { opacity: .8; }

.anyu-form-note { font-size: 12px; color: var(--anyu-muted); margin: 10px 0 0; line-height: 1.7; }

.anyu-form-ok {
  background: #eef8f0;
  border: 1px solid #cfe8d5;
  color: #1e7e34;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  margin: 0 0 16px;
}

.anyu-form-err {
  background: #fdf1ed;
  border: 1px solid #f3d3c8;
  color: #b83e1e;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  margin: 0 0 16px;
}

.anyu-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ========== 14. 评论（主题 comments.php 的类名，之前漏了样式） ========== */
.anyu-comments { font-size: 14px; }

.anyu-comments-list .comment-body { font-size: 14px; color: var(--anyu-text-2); }

.anyu-comments-list .comment-author { display: flex; align-items: center; gap: 8px; }

.anyu-comments-list .comment-author img { border-radius: 50%; }

.anyu-comments-list .comment-author .fn { font-style: normal; font-weight: 600; color: var(--anyu-text); font-size: 13.5px; }

.anyu-comments-list .comment-metadata { font-size: 12px; color: var(--anyu-muted); margin: 2px 0 6px; }

.anyu-comments-list .comment-metadata a { color: var(--anyu-muted); }

.anyu-comments-list .reply a { font-size: 12px; color: var(--anyu-primary); }

.anyu-comments-list .children { list-style: none; margin: 0; padding-left: 16px; }

.anyu-comment-form,
.comment-form { font-size: 14px; }

.comment-form p { margin: 0 0 12px; }

.comment-form label { display: block; font-size: 13px; color: var(--anyu-text-2); margin-bottom: 5px; }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--anyu-line);
  border-radius: 10px;
  background: #fbfaf8;
  font-size: 14px;
}

.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: var(--anyu-primary); background: #fff; }

.comment-form .form-submit { margin-bottom: 0; }

.comment-form .submit {
  padding: 10px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--anyu-text);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.comment-form .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 6px; font-size: 12.5px; color: var(--anyu-muted); }

.comment-form .comment-form-cookies-consent label { margin: 0; }

/* ========== 12. 响应式 ========== */
@media (min-width: 560px) {
  .anyu-detail-goods-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .anyu-detail-title { font-size: 26px; }
  .anyu-home-featured-card { flex: 0 0 156px; }
  /* 桌面端配图略高一点，但仍然只占一条横幅，不铺满首屏 */
  .anyu-detail-hero { border-radius: 14px; --anyu-hero-h: 240px; }
}

/* 360dp 是国内安卓最常见的宽度：这里必须保持两列。
   原来的断点写在 360，正好把 360 的手机也套进单列 → 商品图变成整屏大图。 */
@media (max-width: 340px) {
  .anyu-home-search-btn { padding: 9px 15px; }
  .anyu-detail-goods-list { grid-template-columns: 1fr; }
}

/* ========== 14. 手机验证码登录（inc/auth.php） ========== */
.anyu-auth { padding: 22px 18px 18px; }

.anyu-auth-head { margin-bottom: 18px; }

.anyu-auth-title { font-size: 19px; font-weight: 600; color: var(--anyu-text); letter-spacing: -.01em; }

.anyu-auth-sub { font-size: 13px; color: var(--anyu-muted); margin-top: 4px; }

.anyu-auth-field {
  display: flex; align-items: center; gap: 8px;
  height: 50px;
  padding: 0 8px 0 14px;
  border: 1px solid var(--anyu-line);
  border-radius: 10px;
  background: #fff;
  margin-bottom: 12px;
  transition: border-color .15s;
}

.anyu-auth-field:focus-within { border-color: var(--anyu-primary); }

.anyu-auth-prefix {
  font-size: 14px; color: var(--anyu-text-2); font-weight: 500;
  padding-right: 10px; border-right: 1px solid var(--anyu-line);
  flex: 0 0 auto;
}

.anyu-auth-field input {
  flex: 1 1 auto; min-width: 0;
  height: 100%;
  border: 0; outline: 0; background: transparent;
  font-size: 16px; color: var(--anyu-text);
  font-family: inherit;
  letter-spacing: .02em;
}

.anyu-auth-field input::placeholder { color: #b5b3ad; font-size: 14.5px; letter-spacing: 0; }

.anyu-auth-send {
  flex: 0 0 auto;
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: var(--anyu-primary-soft);
  color: var(--anyu-primary);
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.anyu-auth-send:disabled { background: #f2f1ee; color: #b5b3ad; cursor: default; }

.anyu-auth-send:not(:disabled):active { opacity: .7; }

.anyu-auth-submit {
  display: block; width: 100%;
  height: 48px;
  margin-top: 4px;
  border: 0; border-radius: 10px;
  background: linear-gradient(135deg, #e2603a, #cf4526);
  color: #fff;
  font-size: 15.5px; font-weight: 600; font-family: inherit;
  cursor: pointer;
}

.anyu-auth-submit:disabled { opacity: .6; cursor: default; }

.anyu-auth-submit:not(:disabled):active { opacity: .82; }

.anyu-auth-msg {
  font-size: 13px; line-height: 1.55;
  min-height: 0; margin: 0 0 4px;
  color: var(--anyu-muted);
  word-break: break-all;
}

.anyu-auth-msg:empty { display: none; }

.anyu-auth-msg.is-err { color: #c0392b; }

.anyu-auth-msg.is-ok { color: #3d7a3d; }

.anyu-auth-alt { font-size: 12px; color: #b5b3ad; margin: 10px 0 0; }

.anyu-auth-alt a { color: var(--anyu-muted); text-decoration: underline; }

/* 登录页正文里，短代码外面那层容器不要抢宽度 */
.anyu-detail-content .anyu-auth { margin-bottom: 0; }

/* ========== 15. 商品卡跳转（唤起拼多多 App） ========== */
/* 转链那一下会等 1-2 秒，给个"正在打开"的状态，别让人以为卡死了 */
.anyu-goods-card.is-loading { opacity: .55; pointer-events: none; position: relative; }

.anyu-goods-card.is-loading::after {
  content: '正在打开拼多多…';
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 6px 0 7px;
  background: rgba(255, 255, 255, .94);
  color: var(--anyu-primary);
  font-size: 12px; font-weight: 600; text-align: center;
  border-top: 1px solid var(--anyu-line);
}

/* 微信内跳不出去时的提示 */
.anyu-goods-wxtip {
  position: fixed; left: 50%; bottom: 24px;
  transform: translateX(-50%);
  z-index: 9999;
  width: calc(100% - 32px);
  max-width: 420px;
  padding: 13px 16px;
  border-radius: 12px;
  background: rgba(20, 24, 31, .94);
  color: #fff;
  font-size: 13.5px; line-height: 1.6;
  text-align: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .22);
  animation: anyu-tip-in .28s ease-out;
  transition: opacity .35s, transform .35s;
}

.anyu-goods-wxtip.is-out {
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
}

@keyframes anyu-tip-in {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* =====================================================
 * 安雨生态功能区 (SaaS/检测/虚拟小镇) - 新增
 * ===================================================== */
.anyu-eco-matrix {
  background: #fff;
  padding: 20px 16px;
  margin: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.anyu-eco-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--anyu-text);
  margin-bottom: 16px;
  text-align: center;
  position: relative;
}
.anyu-eco-title::after {
  content: "";
  display: block;
  width: 30px;
  height: 3px;
  background: var(--anyu-primary);
  margin: 6px auto 0;
  border-radius: 2px;
}
.anyu-eco-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.anyu-eco-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8f9fb;
  padding: 14px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid #f0f2f5;
  transition: transform 0.2s;
}
.anyu-eco-card:active {
  transform: scale(0.98);
}
.anyu-eco-card.highlight-card {
  background: linear-gradient(135deg, #f0f7ff, #e6f0ff);
  border-color: #cce0ff;
}
.eco-icon {
  font-size: 24px;
  background: #fff;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.eco-info {
  flex: 1;
}
.eco-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--anyu-text);
  margin-bottom: 4px;
}
.eco-desc {
  font-size: 12px;
  color: var(--anyu-muted);
}

/* =====================================================
 * 2.1.9 新增：右上角「更多」下拉 + 首页商品区
 * ===================================================== */

/* ---- 右上角「更多」---- */
.anyu-more { position: relative; flex-shrink: 0; }

.anyu-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 6px 10px;
  border: 1px solid var(--anyu-line, #e8e8e8);
  border-radius: 999px;
  background: var(--anyu-card, #fff);
  color: var(--anyu-muted, #8a8a8a);
  font-size: 12.5px;
  line-height: 1;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.anyu-more-btn b { font-weight: 400; font-size: 9px; transform: translateY(-1px); }

.anyu-more:focus-within .anyu-more-btn {
  color: var(--anyu-primary, #e2603a);
  border-color: var(--anyu-primary, #e2603a);
}

.anyu-more-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 152px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 13px;
  box-shadow: 0 12px 34px rgba(20, 20, 20, .14);
  padding: 6px;
  display: none;
  z-index: 90;
}

.anyu-more:focus-within .anyu-more-menu { display: block; }

.anyu-more-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 11px;
  border-radius: 9px;
  font-size: 13px;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
}

.anyu-more-menu a:hover,
.anyu-more-menu a:focus { background: #f7f7f7; color: var(--anyu-primary, #e2603a); }

.anyu-more-menu a i { font-style: normal; font-size: 14px; line-height: 1; }
.anyu-more-menu a em { font-style: normal; font-size: 10.5px; color: #bbb; margin-left: auto; }

/* ---- 首页商品区 ---- */
.anyu-home-goods-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 16px 8px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.anyu-home-goods-scroll::-webkit-scrollbar { display: none; }

.anyu-goods-card {
  flex: 0 0 136px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 13px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
  transition: transform .15s;
  -webkit-tap-highlight-color: transparent;
}

.anyu-goods-card:active { transform: scale(.975); }
.anyu-goods-card:hover { border-color: var(--anyu-primary, #e2603a); }

.anyu-goods-img { aspect-ratio: 1 / 1; background: #f5f5f5; overflow: hidden; }
.anyu-goods-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.anyu-goods-title {
  font-size: 12.5px;
  line-height: 1.42;
  color: #333;
  padding: 7px 9px 0;
  height: 43px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.anyu-goods-price {
  padding: 5px 9px 0;
  font-size: 15px;
  font-weight: 700;
  color: #e4393c;
  line-height: 1.1;
}

.anyu-goods-price s { font-size: 11px; font-weight: 400; color: #b0b0b0; margin-left: 4px; }
.anyu-goods-meta { padding: 3px 9px 10px; font-size: 11px; color: #a0a0a0; }

/* ---- 窄屏：顶栏多了「更多」，必须先把 APP 按钮的品牌名让出来，否则 360px 会溢出 ---- */
@media (max-width: 430px) {
  .anyu-app-brand { display: none; }
  .anyu-home-app { padding: 7px 9px; }
  .anyu-more-btn { padding: 6px 9px; font-size: 12px; gap: 2px; }
}

/* ---- 顶栏塞进「更多」之后，logo 不许换行；更窄的屏把 APP 按钮退化成图标 ---- */
.anyu-home-logo { white-space: nowrap; flex-shrink: 0; }

@media (max-width: 380px) {
  .anyu-home-app span { display: none; }
  .anyu-home-app { padding: 8px; }
  .anyu-home-login { padding: 6px 9px; font-size: 12px; }
  .anyu-more-btn { padding: 6px 8px; }
}
