/* =========================================================
   荣菁副业网 · 视觉复刻 (原创实现)
   设计参数参考自目标站点渲染结果:容器 1200px / 主绿 #36af18
   卡片圆角 8px / 背景 #f5f6f7 / 卡片阴影 0 0 10px rgba(116,116,116,.08)
   ========================================================= */

:root {
  color-scheme: light;
  --green: #36af18;
  --green-dark: #2d9414;
  --blue: #2196f3;
  --orange: #ff7c2b;
  --red: #fc5d5d;
  --gold: #ffb800;

  --key-color: #333;
  --main-color: #4e5358;
  --muted-color: #777;
  --muted-2-color: #999;
  --muted-3-color: #b1b1b1;
  --muted-4-color: #d2d2d2;

  --body-bg: #f5f6f7;
  --main-bg: #fff;
  --muted-bg: #eee;
  --main-border: rgba(50, 50, 50, .06);

  --radius: 8px;
  --mini-radius: 6px;
  --card-shadow: 0 0 10px rgba(116, 116, 116, .08);
  --max-w: 1200px;
  --header-h: 60px;
}

html.dark {
  color-scheme: dark;
  --key-color: #f8fafc;
  --main-color: #e5eef7;
  --muted-color: #b4b6bb;
  --muted-2-color: #9598a0;
  --muted-3-color: #84878d;
  --muted-4-color: #43454a;

  --body-bg: #292a2d;
  --main-bg: #323335;
  --muted-bg: #3d3f44;
  --main-border: rgba(114, 114, 114, .1);
  --card-shadow: 0 0 10px rgba(24, 24, 24, .1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font: 14px/1.6 "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", Arial, sans-serif;
  color: var(--main-color);
  background: var(--body-bg);
  transition: background .3s, color .3s;
}

a { color: inherit; text-decoration: none; transition: color .2s, background .2s, opacity .2s; }
a:hover { color: var(--green); }
ul, ol { list-style: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
input, select { font: inherit; border: 0; outline: none; background: transparent; color: inherit; }

.icon {
  width: 1em; height: 1em;
  fill: currentColor;
  vertical-align: -.125em;
  display: inline-block;
  flex: none;
}

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 15px; }

/* ---------------------------------------------------------
   顶部导航
   --------------------------------------------------------- */
.header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  color: #fff;
  transition: transform .35s ease, background .3s, color .3s, box-shadow .3s;
}
.header.solid {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--main-bg);
  color: var(--key-color);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .05);
}
.header.fixed {
  position: fixed;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--key-color);
  box-shadow: 0 1px 8px rgba(0, 0, 0, .06);
}
html.dark .header.fixed { background: rgba(50, 51, 53, .86); }
.header.hide { transform: translateY(-100%); }

.navbar {
  display: flex;
  align-items: center;
  height: var(--header-h);
  padding: 0 20px;
  gap: 6px;
}

.navbar-logo {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #5cb968;
  position: relative;
  white-space: nowrap;
  margin-right: 26px;
  line-height: 1;
}
.navbar-logo i {
  position: absolute;
  top: -6px; left: -9px;
  width: 13px; height: 13px;
  background: #fc5d8a;
  border-radius: 0 100% 0 100%;
  transform: rotate(12deg);
  opacity: .9;
}
.navbar-logo::after {
  content: "";
  position: absolute;
  right: -13px; bottom: -3px;
  width: 22px; height: 13px;
  background: #a99bf0;
  transform: skewX(-18deg) rotate(-10deg);
  border-radius: 2px;
  opacity: .85;
  z-index: -1;
}
.navbar-logo:hover { color: #5cb968; }

.nav-menu { display: flex; align-items: center; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 13px;
  height: var(--header-h);
  font-size: 15px;
  white-space: nowrap;
}
.nav-menu > li > a .icon { font-size: 10px; opacity: .7; transition: transform .25s; }
.nav-menu > li:hover > a .icon { transform: rotate(180deg); }

.sub-menu {
  position: absolute;
  top: calc(100% - 8px);
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 128px;
  max-height: 396px;
  overflow-y: auto;
  background: var(--main-bg);
  color: var(--main-color);
  border-radius: var(--radius);
  box-shadow: 0 5px 25px rgba(0, 0, 0, .1);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transition: all .25s;
  z-index: 101;
}
.nav-menu li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.sub-menu a {
  display: block;
  padding: 7px 14px;
  border-radius: var(--mini-radius);
  font-size: 14px;
  text-align: center;
  white-space: nowrap;
}
.sub-menu a:hover { background: var(--body-bg); color: var(--green); }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.nav-divider {
  width: 1px; height: 16px;
  background: currentColor;
  opacity: .22;
  margin: 0 6px;
}

.nav-icon-btn {
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 16px;
  opacity: .9;
}
.nav-icon-btn:hover { background: rgba(128, 128, 128, .18); color: inherit; }
.nav-icon-btn.circled {
  width: 32px; height: 32px;
  background: var(--muted-bg);
  font-size: 14px;
  color: var(--muted-color);
}
.nav-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #eceef1;
  flex: none;
}
html.dark .nav-avatar { background: var(--muted-bg); }

.but {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 15px;
  border-radius: 30px;
  font-size: 13px;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
}
.but:hover { color: #fff; opacity: .88; }
.jb-blue { background: linear-gradient(135deg, #29a2f9 0%, #2196f3 100%); box-shadow: 0 3px 8px rgba(33, 150, 243, .3); }
.jb-vip {
  background: linear-gradient(135deg, #4a4d52 0%, #33363b 100%);
  color: #ffd889;
}
.jb-vip:hover { color: #ffd889; }
.jb-vip .icon { color: #ff7a45; }
.vip-flat {
  background: linear-gradient(180deg, #3a3d42 0%, #17181a 100%);
  color: #fff;
}
.vip-flat:hover { color: #fff; }

.mobile-nav-btn { display: none; font-size: 22px; }

/* 移动端抽屉 */
.drawer-mask {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .45);
  opacity: 0; visibility: hidden;
  transition: all .3s;
  z-index: 190;
}
.drawer {
  position: fixed;
  top: 0; bottom: 0; left: 0;
  width: 270px;
  background: var(--main-bg);
  color: var(--main-color);
  z-index: 200;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform .3s, visibility 0s .3s;
  padding: 20px;
  overflow-y: auto;
}
body.drawer-open .drawer { transform: none; visibility: visible; transition: transform .3s; }
body.drawer-open .drawer-mask { opacity: 1; visibility: visible; }
.drawer .navbar-logo { font-size: 20px; margin: 0; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.drawer-menu > li > a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--mini-radius);
  font-size: 15px;
  font-weight: 600;
  color: var(--key-color);
}
.drawer-menu > li > a:hover { background: var(--body-bg); }
.drawer-menu .drawer-sub { display: flex; flex-wrap: wrap; padding: 0 6px 6px; }
.drawer-menu .drawer-sub a { padding: 5px 10px; font-size: 13px; color: var(--muted-color); }

/* ---------------------------------------------------------
   首页大图区(轮播 + 搜索)
   --------------------------------------------------------- */
.hero {
  position: relative;
  height: 590px;
  overflow: hidden;
  margin-bottom: 20px;
  color: #fff;
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }

/* 手绘渐变海浪 / 星空背景(纯 CSS,替代原站摄影图) */
.hero-bg-1 {
  background:
    radial-gradient(80% 60% at 80% 95%, rgba(96, 156, 166, .38) 0%, rgba(30, 72, 84, .25) 40%, transparent 68%),
    radial-gradient(90% 70% at 12% 30%, rgba(5, 13, 18, .95) 0%, transparent 70%),
    linear-gradient(160deg, #04070a 0%, #08161d 40%, #0e2b34 70%, #164450 100%);
}
.hero-bg-1::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(45% 12% at 70% 78%, rgba(255, 255, 255, .28) 0%, transparent 100%),
    radial-gradient(30% 8% at 55% 88%, rgba(255, 255, 255, .18) 0%, transparent 100%),
    radial-gradient(24% 6% at 84% 66%, rgba(255, 255, 255, .22) 0%, transparent 100%);
  filter: blur(6px);
}
.hero-bg-2 {
  background:
    radial-gradient(70% 55% at 50% 108%, rgba(90, 130, 200, .55) 0%, transparent 65%),
    radial-gradient(2px 2px at 20% 30%, #fff 40%, transparent 60%),
    radial-gradient(1.5px 1.5px at 65% 18%, #fff 40%, transparent 60%),
    radial-gradient(2px 2px at 82% 42%, rgba(255,255,255,.9) 40%, transparent 60%),
    radial-gradient(1.5px 1.5px at 38% 12%, rgba(255,255,255,.8) 40%, transparent 60%),
    radial-gradient(1px 1px at 50% 50%, rgba(255,255,255,.7) 40%, transparent 60%),
    radial-gradient(1.5px 1.5px at 10% 60%, rgba(255,255,255,.7) 40%, transparent 60%),
    radial-gradient(1px 1px at 90% 25%, rgba(255,255,255,.8) 40%, transparent 60%),
    linear-gradient(180deg, #0a1024 0%, #16214a 55%, #2c3a6b 100%);
}
.hero-bg-3 {
  background:
    radial-gradient(80% 60% at 80% 20%, rgba(54, 175, 24, .25) 0%, transparent 60%),
    radial-gradient(70% 70% at 15% 85%, rgba(33, 150, 243, .3) 0%, transparent 60%),
    linear-gradient(150deg, #0d1117 0%, #14202b 60%, #1d3140 100%);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0) 5%, rgba(0, 0, 0, .25) 85%);
  pointer-events: none;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 40px;
  text-align: center;
}
.hero-title { font-size: 24px; font-weight: 700; text-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
.hero-sub { margin-top: 14px; font-size: 15px; opacity: .92; text-shadow: 0 1px 6px rgba(0, 0, 0, .3); }

.search-box {
  margin-top: 30px;
  width: 800px;
  max-width: calc(100vw - 40px);
  height: 62px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 34px;
  color: #555;
  padding: 0 8px 0 22px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, .12);
}
.search-type {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 16px;
  color: #444;
  padding-right: 16px;
  border-right: 1px solid rgba(0, 0, 0, .1);
  white-space: nowrap;
  cursor: pointer;
}
.search-type .icon { font-size: 12px; opacity: .55; }
.search-box input {
  flex: 1;
  padding: 0 18px;
  font-size: 17px;
  color: #333;
}
.search-box input::placeholder { color: #9a9a9a; }
.search-go {
  width: 74px; height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  color: #666;
  border-radius: 26px;
}
.search-go:hover { background: rgba(0, 0, 0, .06); }

.search-keywords {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.search-keywords a {
  background: rgba(255, 255, 255, .8);
  color: #888;
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 4px;
  line-height: 1.5;
}
.search-keywords a:hover { color: var(--green); }

.hero-arrow {
  position: absolute;
  top: 42%;
  z-index: 3;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .7);
  font-size: 22px;
  opacity: 0;
  transition: opacity .3s;
  cursor: pointer;
}
.hero:hover .hero-arrow, .hero-arrow:focus-visible { opacity: 1; }
.hero-arrow:hover { color: #fff; }
.hero-arrow.prev { left: 18px; }
.hero-arrow.next { right: 18px; }

/* 首页特色入口卡片(压在大图底部) */
.feature-cards {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 4;
  padding-bottom: 24px;
}
.feature-cards .row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.feature-card {
  background: var(--main-bg);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 15px 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--main-color);
  transition: transform .25s, box-shadow .25s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0, 0, 0, .1); color: var(--main-color); }
.feature-ico {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  flex: none;
}
.fi-1 { background: #efecfe; color: #8a6cf6; }
.fi-2 { background: #e8f3fe; color: #3b8af8; }
.fi-3 { background: #2f54c5; border-radius: 50%; }
.fi-4 { background: linear-gradient(135deg, #ff7854, #fd4141); border-radius: 50%; }
.feature-card .ft { flex: 1; min-width: 0; }
.feature-card .ft b { display: block; font-size: 15px; color: var(--key-color); white-space: nowrap; }
.feature-card .ft span { display: block; font-size: 13px; color: var(--muted-2-color); margin-top: 3px; white-space: nowrap; }

/* ---------------------------------------------------------
   模块通用
   --------------------------------------------------------- */
.module { margin-bottom: 20px; }

.module-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 26px 2px 16px;
}
.module-head::before {
  content: "";
  width: 4px; height: 15px;
  background: var(--green);
  border-radius: 2px;
  align-self: center;
}
.module-head b { font-size: 16px; color: var(--key-color); }
.module-head span { font-size: 12px; color: var(--muted-3-color); }

/* 首页 tabs */
.home-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 2px 16px;
}
.home-tabs a {
  font-size: 15px;
  color: var(--muted-color);
  padding: 4px 12px;
  border-radius: 15px;
  line-height: 1.5;
  white-space: nowrap;
}
.home-tabs a.on {
  background: var(--green);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}
.home-tabs a:not(.on):hover { color: var(--green); }

/* ---------------------------------------------------------
   文章卡片(四列网格)
   --------------------------------------------------------- */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  transition: opacity .35s;
}
.post-card {
  background: var(--main-bg);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 10px;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0, 0, 0, .09); }

.thumb {
  position: relative;
  border-radius: var(--mini-radius);
  overflow: hidden;
  aspect-ratio: 10 / 7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 14px;
  color: #fff;
}
.thumb b {
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.thumb span {
  margin-top: 8px;
  font-size: 12px;
  opacity: .85;
  letter-spacing: 2px;
}
.thumb em {
  font-style: normal;
  margin-top: 10px;
  font-size: 12px;
  padding: 3px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.post-card .thumb { transition: filter .3s; }
.post-card:hover .thumb { filter: brightness(1.06); }

/* 海报渐变皮肤 */
.g1 { background: linear-gradient(150deg, #ffe9e3 0%, #ffd4cc 55%, #ffc7bd 100%); color: #e04646; }
.g1 b, .g1 span { text-shadow: none; }
.g1 em { background: #fff; color: #e04646; }
.g2 { background: linear-gradient(140deg, #d9f0ff 0%, #aedcff 60%, #8ecbff 100%); color: #1466b8; }
.g2 b, .g2 span { text-shadow: none; }
.g2 em { background: rgba(255, 255, 255, .75); color: #1466b8; }
.g3 { background: linear-gradient(145deg, #0c1420 0%, #12283c 55%, #0d3a4a 100%); }
.g3 b { color: #7fe3ff; }
.g4 { background: linear-gradient(140deg, #fff0f4 0%, #ffd9e5 60%, #ffc3d8 100%); color: #d63384; }
.g4 b, .g4 span { text-shadow: none; }
.g4 em { background: #fff; color: #d63384; }
.g5 { background: linear-gradient(145deg, #171129 0%, #2b1a52 55%, #45247d 100%); }
.g5 b { color: #c9b6ff; }
.g6 { background: linear-gradient(145deg, #1b1b1f 0%, #2c2933 60%, #3a3345 100%); }
.g6 b { color: #ffd889; }
.g7 { background: linear-gradient(140deg, #b31f1f 0%, #d92f14 55%, #f2600c 100%); }
.g8 { background: linear-gradient(140deg, #dff2ff 0%, #b8e0ff 50%, #96ccff 100%); color: #0f5aa8; }
.g8 b, .g8 span { text-shadow: none; }
.g8 em { background: rgba(255, 255, 255, .8); color: #0f5aa8; }

.post-title {
  margin: 10px 2px 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--key-color);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 46px;
}
a.post-title:hover, .post-title a:hover { color: var(--green); }

.post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 2px 10px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  padding: 2px 7px;
  border-radius: 4px;
  line-height: 1.6;
}
.tag .icon { font-size: 11px; }
.tag-blue, .tag-blue:hover { color: #1e80ff; background: rgba(30, 128, 255, .09); }
.tag-orange, .tag-orange:hover { color: #ff8f1f; background: rgba(255, 143, 31, .1); }
.tag-red, .tag-red:hover { color: #fc5d5d; background: rgba(252, 93, 93, .1); }
.tag-pink, .tag-pink:hover { color: #f56599; background: rgba(245, 101, 153, .1); }
.tag-cyan, .tag-cyan:hover { color: #00b3a1; background: rgba(0, 179, 161, .09); }
.tag:hover { opacity: .8; }
.tag-solid-red { color: #fff; background: #fc5d5d; padding: 4px 10px; border-radius: 14px; }
.tag-solid-orange { color: #fff; background: #ffa21f; padding: 4px 10px; border-radius: 14px; }
.tag-solid-red:hover, .tag-solid-orange:hover { color: #fff; opacity: .85; }

.post-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted-3-color);
  padding: 0 2px;
}
.post-meta .meta { display: inline-flex; align-items: center; gap: 3px; }
.post-meta .right { margin-left: auto; display: inline-flex; gap: 10px; }

/* ---------------------------------------------------------
   分页
   --------------------------------------------------------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 26px 0 6px;
}
.pagination a, .pagination span {
  min-width: 31px;
  height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  background: var(--muted-bg);
  border-radius: 3px;
  font-size: 14px;
  color: var(--main-color);
}
.pagination a:hover { color: var(--green); }
.pagination .current { background: var(--green); color: #fff; }
.pagination .dots { color: var(--muted-2-color); }

/* ---------------------------------------------------------
   广告位(中性占位)
   --------------------------------------------------------- */
.ad-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  height: 104px;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 24px 0;
  background:
    radial-gradient(60% 120% at 85% 20%, rgba(126, 87, 255, .55) 0%, transparent 60%),
    radial-gradient(50% 110% at 12% 80%, rgba(64, 43, 165, .8) 0%, transparent 65%),
    linear-gradient(100deg, #3b2b8f 0%, #5636b8 55%, #6d3fd6 100%);
  color: #fff;
}
.ad-banner .ad-brand {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 6px 18px;
  border: 2px solid rgba(255, 255, 255, .85);
  border-radius: 40px;
}
.ad-banner .ad-line b {
  display: block;
  font-size: 21px;
  letter-spacing: 1px;
  color: #ffe45c;
}
.ad-banner .ad-line span { display: block; font-size: 13px; opacity: .9; margin-top: 2px; letter-spacing: 3px; }
.ad-banner .ad-cta {
  font-size: 16px;
  font-weight: 700;
  padding: 8px 16px;
  background: #2ec95c;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
  transform: rotate(-3deg);
}
.ad-mark {
  position: absolute;
  top: 6px; right: 6px;
  font-size: 11px;
  padding: 1px 6px;
  background: rgba(0, 0, 0, .35);
  color: rgba(255, 255, 255, .85);
  border-radius: 3px;
}

/* 移动端专属:hero 与 tabs 之间的横幅(桌面端隐藏) */
.home-mobile-ad {
  display: none;
  height: auto;
  aspect-ratio: 1170 / 232;
  margin: 0 0 16px;
}

/* ---------------------------------------------------------
   图文列表模块(两列)
   --------------------------------------------------------- */
.list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.list-card {
  background: var(--main-bg);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 15px;
  display: flex;
  gap: 15px;
  transition: transform .25s, box-shadow .25s;
}
.list-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, .09); }
.list-card .thumb {
  width: 186px;
  aspect-ratio: 10 / 7;
  flex: none;
}
.list-card .thumb b { font-size: 15px; }
.list-card .thumb span { font-size: 10px; margin-top: 5px; }
.list-card .thumb em { font-size: 10px; margin-top: 6px; padding: 2px 9px; }
.list-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.list-body .post-title { margin: 0 0 6px; font-size: 16px; min-height: 0; }
.list-body .excerpt {
  font-size: 13px;
  color: var(--muted-2-color);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}
.list-body .post-tags { margin: 0 0 8px; }
.list-body .post-meta { padding: 0; }

/* 迷你列表模块(三列小图) */
.mini-wrap {
  background: var(--main-bg);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 6px 15px;
}
.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 30px;
}
.mini-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
}
.mini-item .thumb {
  width: 92px;
  aspect-ratio: 10 / 7;
  flex: none;
  padding: 4px;
}
.mini-item .thumb b { font-size: 10px; letter-spacing: 0; }
.mini-item .thumb span, .mini-item .thumb em { display: none; }
.mini-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mini-body .post-title {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  min-height: 0;
}
.mini-body .post-meta { padding: 0; }

/* 友情链接 */
.links-row { display: flex; flex-wrap: wrap; gap: 6px 0; margin: 0 2px 30px; font-size: 14px; }
.links-row a { color: var(--muted-color); }
.links-row a:hover { color: var(--green); }
.links-row i {
  font-style: normal;
  color: var(--muted-4-color);
  margin: 0 10px;
}

/* ---------------------------------------------------------
   页脚
   --------------------------------------------------------- */
.footer {
  background: var(--main-bg);
  color: var(--muted-2-color);
  padding: 30px 0;
  font-size: 13px;
}
.footer-inner {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.footer-left { width: 270px; flex: none; }
.footer-left .navbar-logo { font-size: 20px; display: inline-block; margin: 0 0 12px 10px; }
.footer-left .slogan { font-size: 13px; color: var(--muted-color); margin-bottom: 14px; }
.footer-left .slogan::after {
  content: "";
  display: block;
  width: 56px; height: 5px;
  border-radius: 3px;
  background: var(--green);
  margin-top: 8px;
}
.footer-left .desc { font-size: 12px; color: var(--muted-2-color); line-height: 1.7; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--muted-bg);
  color: var(--muted-4-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.footer-social a:hover { background: var(--green); color: #fff; }

.footer-mid { flex: 1; padding-top: 6px; }
.footer-mid .flinks { display: flex; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.footer-mid .flinks a { color: var(--muted-color); }
.footer-mid .flinks a:hover { color: var(--green); }
.footer-mid .flinks i { font-style: normal; color: var(--muted-4-color); margin: 0 9px; font-size: 10px; }
.footer-mid p { margin-bottom: 8px; }
.footer-mid .report { color: var(--orange); }
.footer-mid .report:hover { opacity: .8; color: var(--orange); }

.footer-right { display: flex; gap: 18px; flex: none; }
.qr-box { text-align: center; }
.qr-box svg { width: 92px; height: 92px; border-radius: 6px; display: block; }
.qr-box span { display: block; margin-top: 8px; font-size: 12px; color: var(--muted-2-color); }

/* ---------------------------------------------------------
   右侧悬浮按钮
   --------------------------------------------------------- */
.float-btns {
  position: fixed;
  right: 16px;
  bottom: 90px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.float-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(200, 200, 200, .4);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: var(--muted-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all .25s;
}
html.dark .float-btn { background: rgba(70, 70, 70, .4); }
.float-btn:hover { background: var(--green); color: #fff; }
.float-btn.vip { background: #3d4043; color: #ff7a45; }
.float-btn.vip:hover { background: #2e3033; color: #ff8c5a; }
.float-btn.top-btn { opacity: 0; visibility: hidden; }
.float-btn.top-btn.show { opacity: 1; visibility: visible; }

/* ---------------------------------------------------------
   文章页
   --------------------------------------------------------- */
.page-main { padding-top: 20px; }
body.single { padding-top: var(--header-h); }

.top-ad {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
  background:
    radial-gradient(70% 130% at 80% 10%, rgba(46, 201, 92, .25) 0%, transparent 55%),
    radial-gradient(60% 120% at 10% 90%, rgba(33, 150, 243, .3) 0%, transparent 60%),
    linear-gradient(115deg, #1c2532 0%, #24344a 60%, #2c4a62 100%);
  color: #fff;
}
.top-ad b { font-size: 34px; letter-spacing: 6px; opacity: .9; }
.top-ad span { font-size: 14px; opacity: .6; letter-spacing: 2px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted-2-color);
  margin-bottom: 14px;
}
.breadcrumb .icon { font-size: 13px; }
.breadcrumb i { font-style: normal; color: var(--muted-4-color); }
.breadcrumb a:hover { color: var(--green); }

.article-card {
  background: var(--main-bg);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 30px 40px;
  margin-bottom: 20px;
}
.article-title { font-size: 22px; color: var(--key-color); line-height: 1.5; }

.author-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 26px;
}
.avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #eef1f6;
  color: #c3cad4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex: none;
}
html.dark .avatar { background: var(--muted-bg); color: var(--muted-3-color); }
.author-row .a-name { font-size: 14px; color: var(--key-color); }
.author-row .a-time { font-size: 12px; color: var(--muted-3-color); margin-top: 2px; }
.author-row .spacer { flex: 1; }
.btn-follow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #fc5d5d;
  background: rgba(252, 93, 93, .08);
  padding: 5px 14px;
  border-radius: 4px;
}
.btn-follow:hover { background: #fc5d5d; color: #fff; }
.btn-msg {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #1e80ff;
  background: rgba(30, 128, 255, .08);
  padding: 5px 14px;
  border-radius: 4px;
}
.btn-msg:hover { background: #1e80ff; color: #fff; }
.article-stats {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 40px;
  background: var(--body-bg);
  border-radius: 20px;
  padding: 7px 26px;
  font-size: 14px;
  color: var(--muted-color);
  width: max-content;
  margin: -10px 0 26px auto;
}

.article-content { font-size: 15px; line-height: 2; color: var(--main-color); }
.article-content p { margin: 0 0 34px; }
.article-content p.tight { margin-bottom: 8px; }
.article-poster {
  width: 676px;
  max-width: 100%;
  margin: 6px auto 28px;
  aspect-ratio: 2 / 1;
  border-radius: var(--mini-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 20px;
}
.article-poster b { font-size: 26px; line-height: 1.6; text-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
.article-poster span { margin-top: 12px; font-size: 13px; opacity: .8; letter-spacing: 2px; }
.poster-dark {
  background:
    radial-gradient(60% 90% at 80% 15%, rgba(124, 77, 255, .5) 0%, transparent 60%),
    radial-gradient(55% 90% at 15% 85%, rgba(33, 150, 243, .45) 0%, transparent 60%),
    linear-gradient(135deg, #10131c 0%, #1a2030 55%, #232c42 100%);
}
.poster-phone {
  background: linear-gradient(160deg, #eef4fb 0%, #dbe9f7 100%);
  color: #333;
}
.poster-phone b { font-size: 20px; color: #2b6bd7; text-shadow: none; }
.poster-phone span { color: #7b8ba1; }

.hidden-box {
  border: 1px dashed var(--green);
  border-radius: var(--mini-radius);
  padding: 24px;
  text-align: center;
  color: var(--green);
  font-size: 14px;
  margin: 10px 0 26px;
}
.hidden-box p { margin: 0 0 10px !important; display: flex; align-items: center; justify-content: center; gap: 6px; }
.hidden-box p:last-child { margin-bottom: 0 !important; }
.hidden-box a { color: var(--green); text-decoration: none; }
.hidden-box a:hover { opacity: .8; }

.notice-list { margin: 0 0 26px; }
.notice-list li { margin-bottom: 2px; font-size: 14px; line-height: 2.1; }

.the-end {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--muted-3-color);
  font-size: 12px;
  letter-spacing: 2px;
  margin: 34px 0;
}
.the-end::before, .the-end::after {
  content: "";
  flex: 0 0 210px;
  height: 1px;
  background: var(--main-border);
}

.article-tags { display: flex; gap: 8px; margin-bottom: 30px; }

.support-row { text-align: center; margin: 10px 0 6px; }
.support-row .tip { font-size: 13px; color: var(--muted-2-color); }
.support-actions {
  display: flex;
  justify-content: center;
  gap: 56px;
  margin-top: 48px;
  font-size: 14px;
  color: #a7aaac;
}
.support-actions a { display: inline-flex; align-items: center; gap: 4px; }
.support-actions a:hover { color: var(--green); }
.support-actions .liked { color: var(--red); }

/* 评论 */
.comment-card {
  background: var(--main-bg);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 15px;
  margin-bottom: 20px;
}
.comment-login {
  background: var(--body-bg);
  border-radius: var(--radius);
  padding: 34px 20px;
  text-align: center;
}
.comment-login .t { font-size: 14px; color: var(--muted-3-color); margin-bottom: 16px; }
.btn-login, .btn-reg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  padding: 8px 22px;
  border-radius: var(--mini-radius);
  margin: 0 6px;
}
.btn-login { background: rgba(30, 128, 255, .1); color: #1e80ff; }
.btn-login:hover { background: #1e80ff; color: #fff; }
.btn-reg { background: rgba(255, 143, 31, .12); color: #ff8f1f; }
.btn-reg:hover { background: #ff8f1f; color: #fff; }
.social-sep {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 560px;
  margin: 22px auto 16px;
  color: var(--muted-3-color);
  font-size: 12px;
}
.social-sep::before, .social-sep::after { content: ""; flex: 1; height: 1px; background: var(--main-border); }
.social-login { display: flex; justify-content: center; gap: 14px; }
.social-login a {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 17px;
}
.social-login .qq { background: #12b7f5; }
.social-login .wx { background: #09bb07; }
.social-login a:hover { opacity: .85; color: #fff; }

.comment-empty { text-align: center; padding: 40px 0 30px; }
.comment-empty svg { width: 260px; height: 195px; }
.comment-empty p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--muted-3-color);
  font-size: 13px;
  margin-top: 14px;
}
.comment-empty p::before, .comment-empty p::after {
  content: "";
  flex: 0 0 210px;
  height: 1px;
  background: var(--main-border);
}

/* ---------------------------------------------------------
   响应式
   --------------------------------------------------------- */
@media (max-width: 1100px) {
  .posts-grid { grid-template-columns: repeat(3, 1fr); }
  .mini-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
  .nav-menu { display: none; }
  .mobile-nav-btn { display: inline-flex; }
  .nav-right .but span { display: none; }
  .feature-cards .row { grid-template-columns: repeat(2, 1fr); }
  .hero { height: 640px; }
  .hero-inner { padding-bottom: 230px; }
  .list-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 24px; }
  .article-card { padding: 22px; }
  .article-stats { display: none; }
}

@media (max-width: 640px) {
  .navbar {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    padding: 0 12px;
    gap: 0;
  }
  .mobile-nav-btn { justify-self: start; }
  .navbar-logo { margin: 0; justify-self: center; }
  .nav-right { margin: 0; justify-self: end; }
  .nav-right .nav-icon-btn:not(.keep), .nav-right .but, .nav-right .nav-divider, .nav-right .nav-avatar { display: none; }

  /* hero 改为内容撑高,功能卡片回到文档流 */
  .hero { height: auto; padding-bottom: 14px; }
  .hero-inner { padding: 84px 0 14px; }
  .feature-cards { position: relative; z-index: 4; padding: 0 0 4px; margin-top: 10px; }
  .search-keywords { padding: 0 24px; gap: 10px; }
  .search-keywords a { padding: 7px 13px; border-radius: 6px; font-size: 13px; }

  .home-mobile-ad { display: flex; }

  .home-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-right: 32px;
  }
  .home-tabs::-webkit-scrollbar { display: none; }

  .feature-card { padding: 12px; gap: 10px; }
  .feature-ico { width: 40px; height: 40px; font-size: 19px; }
  .feature-card .ft b { font-size: 14px; }
  .feature-card .ft span { font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
  .thumb b { font-size: 15px; }
  .thumb span { font-size: 11px; letter-spacing: 1px; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .post-title { font-size: 14px; min-height: 44px; }
  .the-end::before, .the-end::after, .comment-empty p::before, .comment-empty p::after { flex-basis: 70px; }
  .mini-grid { grid-template-columns: 1fr; }
  .search-box { height: 54px; }
  .hero-title { font-size: 20px; }
  .hero-sub { font-size: 13px; }
  .list-card .thumb { width: 130px; }
  .ad-banner { gap: 14px; padding: 0 12px; }
  .ad-banner .ad-brand { font-size: 16px; padding: 4px 10px; }
  .ad-banner .ad-line b { font-size: 15px; }
  .ad-banner .ad-line span { font-size: 11px; letter-spacing: 1px; }
  .ad-banner .ad-cta { font-size: 13px; padding: 6px 10px; }
  .top-ad { height: 140px; }
  .top-ad b { font-size: 22px; }
  .article-title { font-size: 18px; }
  .article-content { font-size: 14px; }
}

/* ---------------------------------------------------------
   功能层组件(登录弹窗 / Toast / 用户菜单 / 评论 / 会员 / 发布)
   --------------------------------------------------------- */

/* 弹窗 */
.z-modal-mask {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: all .25s;
  padding: 20px;
}
.z-modal-mask.show { opacity: 1; visibility: visible; }
.z-modal {
  position: relative;
  width: 360px;
  max-width: 100%;
  background: var(--main-bg);
  border-radius: 12px;
  padding: 28px 30px 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
  transform: translateY(14px) scale(.98);
  transition: transform .25s;
}
.z-modal-mask.show .z-modal { transform: none; }
.z-modal-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted-2-color);
  font-size: 14px;
}
.z-modal-close:hover { background: var(--muted-bg); }
.z-modal-tabs {
  display: flex;
  justify-content: center;
  gap: 34px;
  margin-bottom: 22px;
}
.z-modal-tabs a {
  font-size: 17px;
  color: var(--muted-2-color);
  padding-bottom: 8px;
  position: relative;
}
.z-modal-tabs a.on { color: var(--key-color); font-weight: 700; }
.z-modal-tabs a.on::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 24px; height: 3px;
  border-radius: 2px;
  background: var(--green);
}
.z-form { display: flex; flex-direction: column; gap: 12px; }
.z-input {
  height: 42px;
  background: var(--body-bg);
  border-radius: var(--mini-radius);
  padding: 0 14px;
  font-size: 14px;
  color: var(--key-color);
  border: 1px solid transparent;
  transition: border .2s;
}
.z-input:focus { border-color: var(--green); background: var(--main-bg); }
.z-input.hide { display: none; }
.z-submit {
  height: 42px;
  border-radius: var(--mini-radius);
  background: linear-gradient(135deg, #29a2f9, #2196f3);
  color: #fff;
  font-size: 15px;
  transition: opacity .2s;
}
.z-submit:hover { opacity: .88; }
.z-submit.small { height: 34px; padding: 0 20px; font-size: 13px; }
.z-form-foot { text-align: right; font-size: 12px; }
.z-form-foot a { color: var(--muted-2-color); }
.z-demo-note {
  margin-top: 14px;
  text-align: center;
  font-size: 11px;
  color: var(--muted-3-color);
}
.z-modal .social-sep { margin: 18px auto 12px; }

/* Toast */
.z-toast {
  position: fixed;
  left: 50%; bottom: 60px;
  transform: translate(-50%, 16px);
  background: rgba(30, 32, 36, .92);
  color: #fff;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 20px;
  z-index: 400;
  opacity: 0;
  visibility: hidden;
  transition: all .3s;
  max-width: 80vw;
  text-align: center;
}
.z-toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* 用户菜单 */
.user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6fcf5a, #36af18);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.user-avatar.big { width: 64px; height: 64px; font-size: 26px; }
.user-chip { position: relative; display: inline-flex; cursor: pointer; padding: 4px 0; }
.user-drop {
  position: absolute;
  top: 100%; right: -8px;
  min-width: 120px;
  background: var(--main-bg);
  border-radius: var(--radius);
  box-shadow: 0 5px 25px rgba(0, 0, 0, .12);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all .25s;
  z-index: 120;
}
.user-chip:hover .user-drop { opacity: 1; visibility: visible; transform: none; }
.user-drop a {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  border-radius: var(--mini-radius);
  text-align: center;
  white-space: nowrap;
  color: var(--main-color);
}
.user-drop a:hover { background: var(--body-bg); color: var(--green); }

/* 列表页头 */
.cat-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 6px 2px 14px;
}
.cat-head h1 { font-size: 20px; color: var(--key-color); }
.cat-head span { font-size: 13px; color: var(--muted-3-color); }
.sub-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 2px 18px; }
.sub-chips a {
  font-size: 13px;
  padding: 4px 14px;
  border-radius: 15px;
  background: var(--main-bg);
  color: var(--muted-color);
  box-shadow: var(--card-shadow);
}
.sub-chips a.on, .sub-chips a:hover { background: var(--green); color: #fff; }
.list-empty {
  grid-column: 1 / -1;
  background: var(--main-bg);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 70px 20px;
  text-align: center;
  color: var(--muted-2-color);
  font-size: 14px;
}
.list-empty a { color: var(--green); }

/* 搜索页 */
.search-page-bar {
  display: flex;
  gap: 10px;
  max-width: 640px;
  margin: 6px auto 8px;
}
.search-page-bar .z-input { flex: 1; height: 46px; background: var(--main-bg); box-shadow: var(--card-shadow); }
.search-page-bar .z-submit { width: 96px; height: 46px; flex: none; }
.search-tip { text-align: center; color: var(--muted-2-color); font-size: 13px; margin-bottom: 22px; }

/* 评论表单与列表 */
.comment-form { display: flex; gap: 12px; padding: 6px 4px 14px; }
.comment-form .cf-body { flex: 1; }
.comment-form textarea {
  width: 100%;
  background: var(--body-bg);
  border: 1px solid transparent;
  border-radius: var(--mini-radius);
  padding: 10px 12px;
  font: inherit;
  color: var(--key-color);
  resize: vertical;
  outline: none;
}
.comment-form textarea:focus { border-color: var(--green); }
.cf-foot { display: flex; justify-content: flex-end; margin-top: 10px; }
.comment-list { padding: 6px 4px; }
.comment-item { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--main-border); }
.comment-item .ci-body { flex: 1; min-width: 0; }
.ci-head { display: flex; align-items: baseline; gap: 10px; font-size: 12px; color: var(--muted-3-color); }
.ci-head b { font-size: 14px; color: var(--key-color); }
.ci-head a { color: var(--muted-3-color); margin-left: auto; }
.ci-head a:hover { color: var(--red); }
.comment-item p { margin-top: 6px; font-size: 14px; }

/* 隐藏内容框:解锁态 */
.hidden-box.unlocked { border-style: solid; background: rgba(54, 175, 24, .04); text-align: left; }
.hidden-box.unlocked .hb-title { font-weight: 700; justify-content: flex-start; }
.hidden-box.unlocked p { justify-content: flex-start; }
.hidden-box.unlocked .muted { color: var(--muted-3-color); font-size: 12px; }
.hidden-box.unlocked b { color: var(--key-color); }

/* 会员页 */
.vip-hero {
  text-align: center;
  padding: 44px 20px 30px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  background:
    radial-gradient(60% 120% at 80% 0%, rgba(255, 122, 69, .22) 0%, transparent 60%),
    radial-gradient(60% 120% at 15% 100%, rgba(255, 184, 0, .18) 0%, transparent 60%),
    linear-gradient(135deg, #23252b 0%, #33363e 100%);
  color: #fff;
}
.vip-hero h1 { font-size: 26px; letter-spacing: 2px; }
.vip-hero h1 .icon { color: #ff7a45; }
.vip-hero p { margin-top: 10px; opacity: .75; font-size: 14px; }
.vip-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .12);
}
.vip-status.is-vip { background: rgba(54, 175, 24, .25); color: #b7f3a5; }
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.price-card {
  position: relative;
  background: var(--main-bg);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 26px 24px;
  text-align: center;
  border: 2px solid transparent;
  transition: transform .25s, border-color .25s;
}
.price-card:hover { transform: translateY(-4px); }
.price-card.featured { border-color: #ff7a45; }
.price-card .pc-tag {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ff9a45, #ff5e3a);
  color: #fff;
  font-size: 12px;
  padding: 3px 12px;
  border-radius: 12px;
  white-space: nowrap;
}
.pc-name { font-size: 16px; font-weight: 700; color: var(--key-color); }
.pc-price { font-size: 34px; font-weight: 800; color: #ff5e3a; margin: 12px 0 2px; }
.pc-price small { font-size: 13px; font-weight: 400; color: var(--muted-2-color); }
.pc-origin { font-size: 12px; color: var(--muted-3-color); text-decoration: line-through; margin-bottom: 16px; }
.price-card ul { text-align: left; margin: 0 auto 20px; max-width: 200px; }
.price-card li {
  font-size: 13px;
  color: var(--muted-color);
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.price-card li .icon { color: var(--green); font-size: 12px; }
.price-card .z-submit { width: 100%; background: linear-gradient(135deg, #ff9a45, #ff5e3a); }
.vip-faq { background: var(--main-bg); border-radius: var(--radius); box-shadow: var(--card-shadow); padding: 24px 28px; margin-bottom: 24px; }
.vip-faq h3 { font-size: 15px; color: var(--key-color); margin-bottom: 6px; }
.vip-faq p { font-size: 13px; color: var(--muted-2-color); margin-bottom: 16px; }
.vip-faq p:last-child { margin-bottom: 0; }

/* 支付弹窗 */
.pay-modal { text-align: center; }
.pay-modal .pay-plan { font-size: 14px; color: var(--key-color); margin-bottom: 14px; }
.pay-modal svg.qr { width: 170px; height: 170px; border-radius: 8px; background: #fff; padding: 8px; box-shadow: 0 0 0 1px var(--main-border); }
.pay-modal .pay-tip { font-size: 12px; color: var(--muted-3-color); margin: 12px 0 16px; }
.pay-modal .z-submit { width: 100%; background: linear-gradient(135deg, #52c41a, #36af18); }

/* 发布页 / 单页 / 个人中心 */
.form-card, .page-card {
  background: var(--main-bg);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 30px 36px;
  margin-bottom: 20px;
}
.page-card h1 { font-size: 22px; color: var(--key-color); margin-bottom: 18px; }
.page-card p { font-size: 15px; line-height: 2; margin-bottom: 14px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 14px; color: var(--key-color); font-weight: 600; margin-bottom: 8px; }
.form-row .z-input, .form-row select, .form-row textarea {
  width: 100%;
  background: var(--body-bg);
  border: 1px solid transparent;
  border-radius: var(--mini-radius);
  padding: 10px 12px;
  font: inherit;
  color: var(--key-color);
  outline: none;
}
.form-row select { height: 42px; appearance: auto; -webkit-appearance: auto; }
.form-row textarea { resize: vertical; }
.form-row .z-input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--green); }
.skin-pick { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.skin-pick .thumb { aspect-ratio: 10/7; cursor: pointer; border: 2px solid transparent; padding: 4px; }
.skin-pick .thumb b { font-size: 10px; letter-spacing: 0; }
.skin-pick .thumb.on { border-color: var(--green); }
.form-submit-row { display: flex; justify-content: flex-end; gap: 12px; margin-top: 8px; }
.form-submit-row .z-submit { width: 140px; }

.user-hero { display: flex; align-items: center; gap: 18px; }
.user-hero h2 { font-size: 20px; color: var(--key-color); display: flex; align-items: center; gap: 10px; }
.user-hero .muted { font-size: 13px; color: var(--muted-2-color); margin-top: 4px; }
.user-actions { margin-left: auto; display: flex; gap: 10px; }
.btn-logout { background: var(--muted-bg); color: var(--muted-color); border-radius: 30px; padding: 7px 15px; font-size: 13px; }
.btn-logout:hover { background: var(--red); color: #fff; }
.vip-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 400;
  color: #ff7a45;
  background: rgba(255, 122, 69, .1);
  padding: 3px 10px;
  border-radius: 12px;
}
.my-posts-bar { display: flex; justify-content: flex-end; margin: -6px 2px 12px; }
.my-posts-bar a, .my-posts-bar button { font-size: 12px; color: var(--muted-3-color); }
.my-posts-bar button:hover { color: var(--red); }

@media (max-width: 992px) {
  .price-grid { grid-template-columns: 1fr; max-width: 380px; margin-left: auto; margin-right: auto; }
  .skin-pick { grid-template-columns: repeat(4, 1fr); }
  .form-card, .page-card { padding: 22px; }
  .user-hero { flex-wrap: wrap; }
  .user-actions { margin-left: 0; width: 100%; }
}

/* ---------------------------------------------------------
   暗色模式细节增强(评审确认项)
   --------------------------------------------------------- */
html.dark .z-input::placeholder,
html.dark .form-row textarea::placeholder,
html.dark .comment-form textarea::placeholder { color: var(--muted-2-color); }

html.dark .z-input,
html.dark .form-row select,
html.dark .form-row textarea,
html.dark .comment-form textarea { border-color: rgba(255, 255, 255, .12); }
html.dark .z-input:focus,
html.dark .form-row select:focus,
html.dark .form-row textarea:focus,
html.dark .comment-form textarea:focus { border-color: var(--green); }

html.dark .z-toast { background: rgba(238, 240, 244, .95); color: #26272a; }

/* ---------------------------------------------------------
   移动端细节增强(评审确认项)
   --------------------------------------------------------- */
@media (max-width: 640px) {
  .navbar { grid-template-columns: 44px 1fr minmax(44px, auto); }

  .post-meta { flex-wrap: wrap; gap: 4px 8px; }
  .post-meta .meta { white-space: nowrap; }
  .post-meta .right { gap: 8px; }

  .author-row { flex-wrap: wrap; }
  .btn-follow, .btn-msg { white-space: nowrap; flex: none; }
  .author-row .a-time { display: block; white-space: nowrap; }

  .float-btns { bottom: 12px; right: 8px; gap: 6px; }
  .float-btn { width: 32px; height: 32px; font-size: 14px; }
  .float-btn[data-act="qr"], .float-btn[aria-label="发布"] { display: none; }

  .support-actions { gap: 32px; }
  .support-actions a { padding: 10px 12px; margin: -10px -12px; }
  .sub-chips a { padding: 8px 14px; }
  .tag { padding: 4px 8px; }
  .z-modal-close { width: 40px; height: 40px; top: 6px; right: 6px; }
  .z-form-foot a { display: inline-block; padding: 8px 0 8px 12px; }

  .top-ad b { white-space: nowrap; letter-spacing: 4px; font-size: 20px; }
}

/* ---------------------------------------------------------
   课程商城 / 统一支付弹窗
   --------------------------------------------------------- */
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.course-card {
  background: var(--main-bg);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .25s, box-shadow .25s;
}
.course-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, .09); }
.course-card .tag { align-self: flex-start; }
.course-card h3 { font-size: 16px; color: var(--key-color); line-height: 1.5; }
.course-card p { font-size: 13px; color: var(--muted-2-color); line-height: 1.7; flex: 1; }
.cc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}
.cc-price { font-size: 20px; font-weight: 800; color: #ff5e3a; white-space: nowrap; }
.cc-price del { font-size: 12px; font-weight: 400; color: var(--muted-3-color); margin-left: 5px; }
.cc-foot .z-submit {
  height: 34px;
  padding: 0 16px;
  font-size: 13px;
  white-space: nowrap;
  background: linear-gradient(135deg, #ff9a45, #ff5e3a);
}
a.z-submit { display: inline-flex; align-items: center; justify-content: center; }
.z-submit.ghost { background: rgba(54, 175, 24, .1); color: var(--green); }
.z-submit.ghost:hover { background: var(--green); color: #fff; opacity: 1; }

.pay-modal img.qr, .pay-modal svg.qr {
  width: 170px; height: 170px;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 0 0 1px var(--main-border);
}
.pay-loading { padding: 66px 0; color: var(--muted-2-color); font-size: 13px; }

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