/* ==========================================================
   大力工具 - 方案 4C 宽幅横排主图画册风样式
   后续如需调整整站配色、圆角或字体，直接改下方 :root 变量即可
   ========================================================== */
:root {
  --sand: #f4f1ea;
  --paper: #fcfbf8;
  --ink: #16181d;
  --ink-soft: #525866;
  --ink-dim: #848a96;
  --line: #e4dfd4;
  --line-hover: #c9c0b0;
  --copper: #c96a2b;
  --copper-bg: #fdf0e6;
  --teal: #0f766e;
  --teal-bg: #e6f6f4;
  --radius-lg: 22px;
  --radius-md: 14px;
  --max-width: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

body {
  font-family: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  background: var(--sand);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* 顶部可选公告栏 */
.notice-bar {
  background: var(--ink);
  color: #f3f4f6;
  font-size: 12.5px;
  padding: 8px 0;
}
.notice-inner { display: flex; align-items: center; gap: 10px; }
.notice-tag {
  background: var(--copper);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* 顶栏导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(244, 241, 234, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.logo-bar {
  width: 5px;
  height: 26px;
  border-radius: 3px;
  background: var(--copper);
}
.logo-domain {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-dim);
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-ghost {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  transition: border-color .15s, color .15s;
}
.nav-ghost:hover { border-color: var(--ink); color: var(--ink); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 19px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  transition: opacity .15s, transform .15s;
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }
.qq-icon { flex-shrink: 0; display: block; }

/* 首屏杂志标题 + 黑色底线承诺卡 */
.hero {
  padding: 40px 0 30px;
  display: grid;
  grid-template-columns: 1.32fr 1fr;
  gap: 28px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  font-size: clamp(27px, 3.8vw, 42px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.hero h1 em { font-style: normal; color: var(--copper); }
.hero-sub { font-size: 14.5px; color: var(--ink-soft); margin-top: 10px; }

.promise-card {
  background: var(--ink);
  color: #f8fafc;
  border-radius: 16px;
  padding: 18px 20px;
  display: grid;
  gap: 9px;
  box-shadow: 0 12px 28px rgba(22, 24, 29, 0.12);
}
.promise-title { font-size: 13.5px; font-weight: 800; color: #ffbe8f; letter-spacing: .02em; }
.promise-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 14px;
  font-size: 12.5px;
  color: #e2e8f0;
}

/* 筛选条 */
.filter-bar {
  padding: 22px 0 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tab {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-soft);
  transition: all .15s;
}
.tab:hover { background: rgba(22, 24, 29, 0.05); color: var(--ink); }
.tab.active { background: var(--ink); color: #fff; font-weight: 600; }

.bar-right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.seg { display: inline-flex; background: #eae5da; padding: 3px; border-radius: 999px; }
.seg button {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-soft);
}
.seg button.active {
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}
.search-input {
  height: 34px;
  width: 210px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 12.5px;
  color: var(--ink);
  outline: none;
}
.search-input:focus { border-color: var(--ink); }

/* 方案 4C 宽幅横排主图大卡片 */
.stack { display: grid; gap: 22px; padding-bottom: 56px; }
.loading-box, .empty-box {
  text-align: center;
  padding: 64px 20px;
  color: var(--ink-dim);
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
}

.wide-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 26px;
  align-items: center;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.wide-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-hover);
  box-shadow: 0 18px 40px rgba(22, 24, 29, 0.08);
}

.wide-cover {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(22, 24, 29, 0.08);
  background: #14171f;
  position: relative;
}
.wide-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.wide-card:hover .wide-cover img { transform: scale(1.025); }

/* 未上传主图时的精致默认封面 */
.fallback-cover {
  width: 100%;
  height: 100%;
  padding: 20px 22px;
  background: radial-gradient(circle at 88% 18%, rgba(201, 106, 43, 0.25), transparent 46%), linear-gradient(135deg, #1b1e26 0%, #111319 100%);
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.fallback-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: rgba(255, 255, 255, .55);
  font-family: Consolas, monospace;
}
.fallback-mid {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 14px 16px;
}
.fallback-mid strong { display: block; font-size: 17px; margin-bottom: 5px; }
.fallback-mid span { font-size: 12px; color: #9ca3af; }
.fallback-foot {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #ffbe8f;
}

.wide-info {
  padding: 10px 12px 10px 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}
.tag-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge.offline { background: #ece8de; color: var(--ink); }
.badge.free { background: var(--teal-bg); color: var(--teal); }
.badge.paid { background: var(--copper-bg); color: var(--copper); }

.wide-info h2 {
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.25;
}
.wide-desc { font-size: 14px; color: var(--ink-soft); margin-bottom: 14px; }
.bullets { list-style: none; display: grid; gap: 6px; margin-bottom: 18px; }
.bullets li {
  font-size: 13px;
  color: var(--ink-soft);
  padding-left: 15px;
  position: relative;
}
.bullets li::before {
  content: "·";
  position: absolute;
  left: 3px;
  color: var(--copper);
  font-weight: 900;
}

.wide-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.wide-meta { font-size: 12px; color: var(--ink-dim); font-family: Consolas, monospace; }
.wide-btn {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: var(--ink);
  color: #fff;
  white-space: nowrap;
}
.wide-card.is-paid .wide-btn { background: var(--copper); }

/* 底部定制横幅 */
.custom-banner {
  margin: 0 0 56px;
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.custom-banner h3 { font-size: 20px; font-weight: 800; margin-bottom: 5px; }
.custom-banner p { font-size: 13.5px; color: #9ca3af; max-width: 560px; }
.btn-copper {
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--copper);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
}

/* 页脚 */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  font-size: 12.5px;
  color: var(--ink-dim);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.footer-links { display: flex; gap: 16px; align-items: center; }
.link-btn, .admin-link { color: var(--ink-soft); font-size: 12.5px; }
.link-btn:hover, .admin-link:hover { color: var(--ink); text-decoration: underline; }

/* 详情弹窗 & 联系弹窗 */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(22, 24, 29, 0.58);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.modal-mask.open { display: flex; }
.modal-card {
  width: 100%;
  max-width: 940px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .3);
}
.contact-card {
  width: 100%;
  max-width: 460px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
}
.modal-head {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(252, 251, 248, 0.95);
  backdrop-filter: blur(8px);
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.modal-head-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.modal-head-left strong { font-size: 19px; }
.btn-close {
  padding: 6px 13px;
  border-radius: 8px;
  border: 1px solid #dcd6c8;
  background: #fff;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-close:hover { border-color: var(--ink); }

.modal-body {
  padding: 24px;
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 24px;
}

.detail-stage {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #14171f;
  cursor: zoom-in;
}
.detail-stage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.thumb-btn {
  width: 78px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.72;
}
.thumb-btn.active { border-color: var(--copper); opacity: 1; }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }

.offline-trust {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 11px;
  background: var(--ink);
  color: #f8fafc;
  font-size: 12.5px;
  line-height: 1.55;
}
.offline-trust .ot-tag {
  flex-shrink: 0;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--copper);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  margin-top: 1px;
}

.detail-sec h4 { font-size: 14px; font-weight: 800; margin-bottom: 8px; }
.detail-text { font-size: 13.5px; color: var(--ink-soft); white-space: pre-line; }
.detail-list { padding-left: 18px; font-size: 13.5px; color: var(--ink-soft); display: grid; gap: 6px; }
.log-box {
  background: var(--sand);
  padding: 10px 12px;
  border-radius: 9px;
  margin-bottom: 8px;
  font-size: 13px;
}

.side-panel {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  height: fit-content;
}
.act-btn {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 9px;
  text-align: center;
}
.act-btn.teal { background: var(--teal); color: #fff; }
.act-btn.copper { background: var(--copper); color: #fff; }
.act-btn.white { background: #fff; border: 1px solid #dcd6c8; color: var(--ink); font-weight: 600; }
.act-btn:hover { filter: brightness(1.04); }

.meta-kv {
  font-size: 12.5px;
  color: var(--ink-soft);
  display: grid;
  gap: 6px;
  margin-top: 8px;
  font-family: Consolas, monospace;
  word-break: break-all;
}
.pkg-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  margin-bottom: 9px;
}
.pkg-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pkg-price { font-size: 16.5px; font-weight: 800; color: var(--copper); font-family: Consolas, monospace; }
.av-note {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: #6b7280;
  line-height: 1.6;
}

.contact-body { padding: 20px 24px 24px; display: grid; gap: 12px; }
.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--sand);
  border: 1px solid var(--line);
  font-size: 13.5px;
}
.qr-wrap { text-align: center; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.qr-wrap img { max-width: 190px; max-height: 190px; border-radius: 8px; display: block; margin: 0 auto 6px; }

/* 灯箱 */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .86);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 95vw; max-height: 92vh; border-radius: 10px; }

/* Toast */
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(14px);
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: all .2s ease;
  z-index: 300;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .3);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 840px) {
  .hero { grid-template-columns: 1fr; }
  .wide-card { grid-template-columns: 1fr; gap: 16px; }
  .wide-info { padding: 4px 8px 10px; }
  .modal-body { grid-template-columns: 1fr; }
  .logo-domain { display: none; }
}
@media (max-width: 520px) {
  .promise-items { grid-template-columns: 1fr; }
  .search-input { width: 100%; }
}
