/* ============================================================
   壁纸站改造版 v2.0-DB  前台样式（自适应PC/手机）
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif; background: #f4f5f7; color: #2b2f36; font-size: 14px; }
a { color: #2f6fed; text-decoration: none; }
img { border: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 12px; }

/* ---------- 顶栏 ---------- */
.topbar { background: #23272e; color: #fff; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.topbar .wrap { display: flex; align-items: center; height: 54px; }
.logo { font-size: 20px; font-weight: 700; color: #fff; margin-right: 28px; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; flex: 1; }
.nav > a { color: #d7dbe0; padding: 8px 14px; border-radius: 6px; }
.nav > a:hover, .nav > a.active { color: #fff; background: rgba(255,255,255,.12); }
.nav-drop { position: relative; }
.nav-drop > a { color: #d7dbe0; padding: 8px 14px; border-radius: 6px; display: inline-block; cursor: pointer; }
.nav-drop:hover > a { color: #fff; background: rgba(255,255,255,.12); }
.drop-list { display: none; position: absolute; top: 100%; left: 0; min-width: 150px; max-height: 420px; overflow: auto; background: #fff; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.18); padding: 6px 0; }
.nav-drop:hover .drop-list { display: block; }
.drop-list a { display: block; padding: 8px 16px; color: #333; font-size: 13px; }
.drop-list a:hover { background: #f0f4ff; color: #2f6fed; }
.search { display: flex; margin-left: auto; gap: 6px; }
.search input { width: 170px; padding: 7px 12px; border: 1px solid #3a4048; background: #2d323a; color: #fff; border-radius: 6px; outline: none; font-size: 13px; }
.search input::placeholder { color: #8a919c; }
.search button { padding: 7px 16px; border: 0; background: #2f6fed; color: #fff; border-radius: 6px; cursor: pointer; font-size: 13px; }
.search button:hover { background: #1f5fd8; }

/* ---------- 面包屑 ---------- */
.crumbs { padding: 14px 0 8px; color: #7a828c; font-size: 13px; }
.crumbs a { color: #7a828c; }
.crumbs a:hover { color: #2f6fed; }

/* ---------- 瀑布流 ---------- */
.grid { column-count: 4; column-gap: 12px; }
.card { break-inside: avoid; display: block; margin-bottom: 12px; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.08); transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,.14); }
.thumb img { width: 100%; display: block; }
.it-title { padding: 9px 10px 2px; font-size: 14px; color: #2b2f36; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.it-cat { padding: 2px 10px 9px; font-size: 12px; color: #9aa2ad; }

/* ---------- 分页 ---------- */
.pages { text-align: center; padding: 22px 0 10px; }
.pages a, .pages span { display: inline-block; min-width: 34px; padding: 7px 11px; margin: 0 3px 6px; background: #fff; border-radius: 6px; color: #444; font-size: 13px; box-shadow: 0 1px 3px rgba(0,0,0,.07); }
.pages a:hover { color: #2f6fed; }
.pages span.cur { background: #2f6fed; color: #fff; }

/* ---------- 分类标签条 ---------- */
.tags { padding: 4px 0 14px; }
.tags a { display: inline-block; padding: 6px 14px; margin: 0 6px 8px 0; background: #fff; border-radius: 16px; color: #555; font-size: 13px; box-shadow: 0 1px 3px rgba(0,0,0,.07); }
.tags a:hover, .tags a.cur { background: #2f6fed; color: #fff; }

/* ---------- 详情页 ---------- */
.detail-box { background: #fff; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.08); padding: 18px; }
.detail-box h1 { font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.detail-img { text-align: center; background: #14161a; border-radius: 8px; overflow: hidden; }
.detail-img img { max-width: 100%; display: inline-block; }
.detail-meta { padding: 14px 2px 0; }
.detail-meta table { border-collapse: collapse; width: 100%; max-width: 560px; }
.detail-meta table td { padding: 5px 12px 5px 0; font-size: 14px; vertical-align: top; }
.detail-meta table td:first-child { color: #9aa2ad; width: 76px; white-space: nowrap; }
.kw { margin-top: 12px; font-size: 13px; color: #666; }
.kw a { display: inline-block; padding: 3px 10px; margin: 0 6px 6px 0; background: #f0f4ff; color: #2f6fed; border-radius: 12px; font-size: 12px; }
.kw a:hover { background: #2f6fed; color: #fff; }
.detail-actions { margin-top: 16px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn-download { display: inline-block; padding: 10px 30px; background: #2f6fed; color: #fff; border-radius: 6px; font-size: 15px; }
.btn-download:hover { background: #1f5fd8; }
.btn-back { display: inline-block; padding: 10px 22px; background: #eef0f3; color: #555; border-radius: 6px; font-size: 14px; }
.btn-back:hover { background: #e0e3e8; }
.tip { margin-top: 10px; font-size: 12px; color: #9aa2ad; }
.detail-pn { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 12px; border-top: 1px dashed #e5e7eb; font-size: 13px; }
.detail-pn a { color: #555; max-width: 48%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.detail-pn a:hover { color: #2f6fed; }
.rel-title { font-size: 16px; font-weight: 700; margin: 22px 0 10px; }

/* ---------- 其他 ---------- */
.empty { text-align: center; padding: 60px 0; color: #9aa2ad; font-size: 15px; }
.footer { text-align: center; padding: 26px 0 34px; color: #9aa2ad; font-size: 12px; }

/* ---------- 响应式 ---------- */
@media (max-width: 992px) { .grid { column-count: 3; } }
@media (max-width: 768px) {
    .grid { column-count: 2; }
    .search input { width: 120px; }
    .logo { margin-right: 12px; font-size: 17px; }
    .detail-box h1 { font-size: 17px; }
}
@media (max-width: 420px) { .grid { column-count: 1; } }

/* 详情描述(SEO正文) */
.detail-desc {
  margin: 14px 0;
  padding: 12px 16px;
  background: #f8f9fa;
  border-left: 3px solid #3b82f6;
  border-radius: 4px;
}
.detail-desc p {
  margin: 0;
  color: #555;
  font-size: 14px;
  line-height: 1.9;
}