/* ===========================================================
   theme-a  「众惠之家」复刻样式
   所有可配项通过 CSS 变量注入，后台改配置即改外观
   =========================================================== */

[v-cloak] { display: none; }

:root {
  --primary: #f04142;
  --nav-active: #f04142;
  --text: #222;
  --text-sub: #999;
  --link: #333;
  --bg: #fff;
  --header-bg: #fff;
  --border: #ebebeb;
  --radius: 4px;
  --max-width: 1200px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; border: 0; }
button { font-family: inherit; cursor: pointer; }

/* ---------------- 顶部巨幕 ---------------- */
.hero {
  position: relative;
  width: 100%;
  height: 330px;
  background:
    radial-gradient(circle at 16% 26%, rgba(255,255,255,.18), transparent 46%),
    radial-gradient(circle at 84% 18%, rgba(255,210,220,.22), transparent 42%),
    radial-gradient(circle at 70% 88%, rgba(90,20,35,.28), transparent 50%),
    linear-gradient(135deg, #7d1f30 0%, #a8324a 34%, #c9506a 66%, #8f2438 100%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.12));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin: 0 auto;
  padding-top: 62px;
  color: #fff;
}

.hero-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  position: relative;
}

.hero-tabs {
  display: flex;
  gap: 0;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.92);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}

.hero-tab {
  border: 0;
  background: transparent;
  color: #333;
  font-size: 13px;
  padding: 5px 12px;
  transition: all .15s;
}
.hero-tab.active { background: var(--primary); color: #fff; }

.hero-logo {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,.25);
  display: flex;
  align-items: center;
}
.hero-logo .lg-red {
  background: var(--primary);
  color: #fff;
  padding: 4px 10px 6px;
  border-radius: 3px;
}
.hero-logo .lg-black { color: #2b2b2b; padding-left: 8px; }

.hero-search {
  margin-top: 22px;
  display: flex;
  align-items: stretch;
  height: 46px;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,.16);
}

.hero-search input {
  flex: 1;
  border: 0;
  outline: none;
  padding: 0 18px;
  font-size: 15px;
  color: #333;
  background: transparent;
}
.hero-search input::placeholder { color: #bbb; }

.hero-search-btn {
  width: 78px;
  border: 0;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter .15s;
}
.hero-search-btn:hover { filter: brightness(1.08); }

.hero-hot {
  margin-top: 14px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: rgba(255,255,255,.92);
}
.hero-hot-label { opacity: .8; }
.hero-hot a { color: #fff; opacity: .92; }
.hero-hot a:hover { text-decoration: underline; }

.hero-corner {
  position: absolute;
  right: 26px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #fff;
  background: rgba(0,0,0,.32);
  border: 1px solid rgba(255,255,255,.45);
  padding: 5px 12px;
  border-radius: 14px;
  backdrop-filter: blur(4px);
}

/* ---------------- 导航 ---------------- */
.navbar {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand { display: flex; align-items: baseline; gap: 6px; flex-shrink: 0; }
.brand-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: .5px;
}
.brand-img { height: 30px; }
.brand em {
  font-style: normal;
  font-size: 11px;
  color: var(--text-sub);
  letter-spacing: 1px;
}

.nav-links { display: flex; align-items: center; gap: 30px; flex: 1; }

.nav-link {
  font-size: 16px;
  color: var(--link);
  padding: 4px 0;
  position: relative;
  transition: color .15s;
}
.nav-link:hover { color: var(--primary); }
.nav-link.active { font-weight: 600; }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--nav-active);
  border-radius: 2px;
}

.nav-login {
  flex-shrink: 0;
  font-size: 14px;
  color: #fff;
  background: #409eff;
  padding: 7px 26px;
  border-radius: var(--radius);
  transition: filter .15s;
}
.nav-login:hover { filter: brightness(1.08); }

/* ---------------- 主体栅格 ---------------- */
.wrap { background: var(--bg); }

.cols {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 34px 20px 60px;
  display: flex;
  gap: 46px;
  align-items: flex-start;
}

.col-main { flex: 1; min-width: 0; }
.col-side { width: 300px; flex-shrink: 0; }

/* ---------------- 列表 ---------------- */
.list-item { padding: 16px 0; border-bottom: 1px solid #f4f4f4; }
.list-item:first-child { padding-top: 0; }

.list-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.5;
}
.list-title a { color: var(--text); transition: color .15s; }
.list-title a:hover { color: var(--primary); }

.list-meta {
  font-size: 13px;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 10px;
}
.list-meta .dot { opacity: .55; }

.load-more {
  margin: 26px auto 0;
  width: 200px;
  text-align: center;
  font-size: 15px;
  color: #666;
  padding: 9px 0;
  border: 1px solid #e2e2e2;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .15s;
}
.load-more:hover { border-color: var(--primary); color: var(--primary); }

.empty { padding: 60px 0; text-align: center; color: var(--text-sub); }

/* ---------------- 右侧广告 ---------------- */
.ad-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 26px;
}
.ad-cell {
  display: block;
  border-radius: 2px;
  overflow: hidden;
  background: #f5f5f5;
  aspect-ratio: 190 / 92;
}
.ad-cell img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------- 热榜 ---------------- */
.hot-box { }

.hot-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  font-weight: 700;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 8px;
}
.hot-fire { font-size: 17px; }

.hot-list { list-style: none; margin: 0; padding: 0; }

.hot-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  font-size: 14px;
  line-height: 1.5;
}
.hot-list li .rank {
  flex-shrink: 0;
  width: 18px;
  font-size: 15px;
  font-weight: 600;
  color: #b4b4b4;
  text-align: center;
}
.hot-list li.rank-1 .rank { color: #f5222d; }
.hot-list li.rank-2 .rank { color: #fa8c16; }
.hot-list li.rank-3 .rank { color: #fadb14; }
.hot-list li a {
  color: #444;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.hot-list li a:hover { color: var(--primary); }

/* ---------------- 详情 ---------------- */
.crumb {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 18px;
  display: flex;
  gap: 8px;
}
.crumb a:hover { color: var(--primary); }

.detail-title {
  margin: 0 0 16px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
  color: #1a1a1a;
}

.detail-meta {
  font-size: 14px;
  color: var(--text-sub);
  display: flex;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 26px;
}
.detail-meta b { color: #666; font-weight: 500; }

.detail-body {
  font-size: 16px;
  line-height: 1.9;
  color: #333;
  word-break: break-word;
}
.detail-body img { max-width: 100%; height: auto; margin: 10px 0; }
.detail-body p { margin: 0 0 16px; }
.detail-body font, .detail-body span { font-size: inherit; }

/* ---------------- 页脚 ---------------- */
.footer {
  background: #fafafa;
  border-top: 1px solid var(--border);
  padding: 26px 20px;
  margin-top: 20px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  font-size: 13px;
  color: #9a9a9a;
  line-height: 1.9;
}
.footer-inner p { margin: 0; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 900px) {
  .cols { flex-direction: column; gap: 30px; }
  .col-side { width: 100%; }
  .hero { height: 240px; }
  .hero-inner { max-width: 92%; padding-top: 38px; }
  .hero-tabs { position: static; transform: none; margin-bottom: 10px; }
  .hero-bar { flex-direction: column; gap: 10px; }
  .hero-logo { font-size: 26px; }
  .nav-links { gap: 18px; overflow-x: auto; }
  .detail-title { font-size: 24px; }
}
