/* =====================================================================
   文集/作品集主页（home.html）优化样式 v2.00
   作用域：body.rzzw —— 只影响本页面，不触碰任何公用文件
   公用依赖：redian.css（列表条目）、pintuer.css（tab）、dashang.css（赞赏）
   ===================================================================== */

/* ---------- 页面基调 ---------- */
.rzzw { background: #fafbfc; }

/* ---------- 顶部标题（压在模糊背景图上） ---------- */
.rzzw .tt-font-11 {
  text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
  letter-spacing: .5px;
  font-size: .5rem;
  margin-top: 1.1rem;
  max-height: 1.6rem;
}

/* ---------- 数据行：文章数 / 点击数 ----------
   修复 home1.9.css 中 `.mat-top span{rgba(...);}` 缺少属性名的无效规则；
   数据行位于白底区域：数字用全站主色绿，标签浅灰，整体居中 */
.rzzw .mt-head {
  justify-content: center;
  gap: 3rem;
  padding-left: 0;
  padding-right: 0;
  padding-top: 22px;
  padding-bottom: 14px;
  margin-top: 0;
}
.rzzw .mt-head .mat-top {
  text-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}
.rzzw .mt-head .mat-top em {
  display: block;
  padding-top: 0;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .5px;
  color: #3a9e46;
  line-height: 1.1;
}
.rzzw .mt-head .mat-top span {
  color: #8a8f99;
  font-size: .33rem;
  margin-left: 0;
  margin-top: 4px;
  line-height: 1;
}

/* ---------- 头像与操作图标 ---------- */
.rzzw .wenji-head > #lookImgss > img {
  box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}
.rzzw .wenji-head .float-r img {
  width: 23px;
  height: 23px;
  object-fit: contain;
  opacity: .92;
}
/* ---------- 头像右侧操作区：私信 / 阅读 / 收藏 / 分享 ----------
   原状：23px 裸图标贴右边、绿色按钮 30px 高，四个元素间距 8/12/15 不等。
   统一：圆形玻璃底按钮 32px + 等距 8px，阅读为同高空心玻璃胶囊（淡边框 + 白字） */
.rzzw .wenji-head { padding-right: 12px; }
.rzzw .wenji-head #fen,
.rzzw .wenji-head #col,
.rzzw .wenji-head #cols,
.rzzw .wenji-head #sixin {
  width: 32px;
  height: 32px;
  padding: 0;
  margin: 0 0 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .38);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.rzzw .wenji-head #fen img,
.rzzw .wenji-head #col img,
.rzzw .wenji-head #cols img,
.rzzw .wenji-head #sixin img {
  width: 17px;
  height: 17px;
  margin: 0;
  object-fit: contain;
  opacity: .95;
}
.rzzw .wenji-head #yuedu {
  float: right;
  margin: 0 0 0 8px;
  padding: 0;
}
.rzzw .wenji-head #yuedu button {
  height: 32px;
  line-height: 30px;
  padding: 0 16px;
  margin: 0;
  border: 1px solid rgba(58, 158, 70, .4);
  border-radius: 999px;
  background: rgba(255, 255, 255, .5) !important;
  color: #3a9e46 !important;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: none;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.rzzw .wenji-head #yuedu button:active { background: rgba(58, 158, 70, .12) !important; }
/* 头像右侧被注释遗留的空作者块，占位但无内容 —— 隐藏 */
.rzzw .wenji-head > div:last-child { display: none; }

/* ---------- Tab 选项卡：红色系 → 全站绿色系 ----------
   去掉外层白色卡片框（避免把右侧「搜索」误读成 tab 的一部分），
   改为无框平铺 + 底部细分隔线；搜索图标用左侧竖线单独区分 */
.rzzw .tab-all-style > .tab-head {
  margin: 10px 12px 0;
  padding-bottom: 2px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border-bottom: 1px solid #f0f1f3;
}
.rzzw .tab .tab-nav li { padding: 0 .62rem; }
.rzzw .tab .tab-nav li:first-child { padding-left: .2rem; }
.rzzw .tab .tab-nav li a {
  font-size: 15px;
  color: #595757;
}
.rzzw .tab .tab-nav li { position: relative; }
.rzzw .tab .tab-nav .active a {
  color: #3a9e46;
  border-bottom: 0;
}
.rzzw .tab .tab-nav .active a::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 3px;
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: #3a9e46;
}
/* 搜索：独立控件，左侧加竖线分隔 */
.rzzw .tab-all-style > .tab-head > .lii {
  border-left: 1px solid #eceef1;
  margin-left: 10px;
  padding-left: 12px;
  margin-right: 2px;
}

/* ---------- 搜索展开区 ---------- */
.rzzw .stage-search { padding: 8px 6px 8px 12px; }
.rzzw .stage-search .forSearch {
  background: #f2f3f5;
  border-radius: 999px;
  padding: 4px 14px;
  height: .85rem;
  width: calc(100% - 56px);
}
.rzzw .stage-search > a {
  width: 56px;
  padding-right: 6px;
  text-align: right;
  line-height: .85rem;
  color: #3a9e46;
  border-bottom: 0;
  font-weight: 500;
}

/* ---------- 文章列表（覆盖公用 redian.css 的 #hot_content 规则） ---------- */
.rzzw #hot_content { padding-bottom: 2.6rem; }
.rzzw #hot_content section .yiyun_article { padding: .3rem 0; }
.rzzw #hot_content section .yiyun_article h4 {
  font-weight: 500;
  color: #1a1a1a;
  font-size: 16.5px;
  line-height: 24px;
}
/* 分类小标签：刺眼纯红 → 柔和浅红药丸 */
.rzzw #hot_content section .content_lei2 span.smallIcon {
  color: #e0695e;
  background: #fdf0ef;
  border-radius: 999px;
  padding: 0 .22rem;
  font-size: .34rem;
}
.rzzw #hot_content section .content_lei2 { color: #a0a4ab; }
.rzzw #hot_content section .content_lei2 span { color: #a0a4ab; }
/* 缩略图统一圆角 */
.rzzw #hot_content section .content_top li img,
.rzzw #hot_content section .content_right img {
  border-radius: 8px;
}
/* 分隔线更轻 */
.rzzw #hot_content .one-px-border { border-top: 1px solid #f2f3f5; }

/* ---------- 右侧悬浮「目录」按钮：贴边半透明 → 白底绿字胶囊 ---------- */
.rzzw .wenji_index {
  top: auto;
  bottom: 18%;
  right: -1.75rem;
  width: 2.8rem;
  height: 1.7rem;
  padding: .18rem .2rem .18rem .4rem;
  line-height: .65rem;
  background: rgba(255, 255, 255, .92);
  color: #3a9e46;
  font-size: .42rem;
  font-weight: 600;
  border-radius: 1rem 0 0 1rem;
  box-shadow: 0 2px 12px rgba(16, 24, 40, .14);
  backdrop-filter: blur(6px);
}

/* ---------- 底部「赞赏」按钮：居中 + 安全区 + 投影 ---------- */
.rzzw .zanshanghome {
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(.4rem + env(safe-area-inset-bottom));
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(229, 72, 77, .35);
}

/* =====================================================================
   v2.01 小幅打磨（20261031）
   ===================================================================== */

/* 时间与浏览数：数字用 din 排印，更轻、更有质感 */
.rzzw #list .time,
.rzzw #list .browse {
  font-family: din, 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: .2px;
}

/* tab 激活态：补一枚与激活色一致的红色短下划线 */
.rzzw .tab-nav li.active a { position: relative; }
.rzzw .tab-nav li.active a:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  margin-left: -9px;
  width: 18px;
  height: 3px;
  border-radius: 3px;
  background: #3a9e46 !important;
}

/* 「目录」悬浮：由半藏把手改为右下角完整小胶囊，可发现性更好 */
.rzzw .wenji_index {
  top: auto;
  bottom: 2.2rem;
  right: .3rem;
  width: auto;
  height: auto;
  min-width: .9rem;
  padding: .24rem .17rem;
  line-height: 1.15;
  font-size: .37rem;
  text-align: center;
  border-radius: .5rem;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
  border: 1px solid rgba(0, 0, 0, .05);
}
.rzzw .wenji_index:active { opacity: .8; }
