@charset "utf-8";
/* ============================================================
   趣站 · 重制版（2026-11-03）
   仅 quzhan.html 引用；其它共用 weblist.html 的栏目完全不受影响
   ============================================================ */

.qz-wrap { max-width: 1200px; margin: 0 auto; padding: 0 10px 46px; }

/* ---------- 头部 ---------- */
.qz-hero { position: relative; overflow: hidden; margin: 4px 0 14px; border-radius: 20px;
  background:
    radial-gradient(660px 260px at 90% -34%, rgba(139,92,246,.46), transparent 70%),
    radial-gradient(540px 230px at 2% 128%, rgba(91,141,239,.34), transparent 66%),
    linear-gradient(135deg, #1b2130 0%, #141821 60%, #171a24 100%);
  border: 1px solid var(--dk-border); box-shadow: 0 20px 48px rgba(0,0,0,.4); }
.qz-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(620px 240px at 76% 6%, #000, transparent 76%);
  mask-image: radial-gradient(620px 240px at 76% 6%, #000, transparent 76%); }
.qz-hero-main { position: relative; z-index: 2; display: flex; align-items: center;
  justify-content: space-between; gap: 26px; flex-wrap: wrap; padding: 32px 34px 30px; }

.qz-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .8px; color: #8fb2ff; background: rgba(91,141,239,.14);
  border: 1px solid rgba(91,141,239,.3); padding: 5px 12px; border-radius: 999px; }
.qz-eyebrow i { color: #f0b451; font-size: 11px; }
.qz-hero h1 { margin: 14px 0 9px; font-size: 30px; font-weight: 800; color: #fff;
  letter-spacing: .5px; line-height: 1.25; }
.qz-hero p { margin: 0; max-width: 560px; font-size: 13.5px; line-height: 1.72; color: #9aa3b5; }
.qz-stats { display: flex; align-items: center; gap: 12px; margin-top: 16px;
  font-size: 12.5px; color: #8b93a5; flex-wrap: wrap; }
.qz-stats b { font-size: 17px; font-weight: 800; color: #e9edf5; margin-right: 4px;
  font-variant-numeric: tabular-nums; }
.qz-stats > i { width: 1px; height: 13px; background: rgba(255,255,255,.14); }
.qz-stats span i { margin-right: 5px; color: #37d39b; }

.qz-hero-r { display: flex; flex-direction: column; gap: 10px; width: min(340px, 100%); }
.qz-search { position: relative; display: flex; align-items: center; }
.qz-search > i { position: absolute; left: 14px; font-size: 13px; color: #6b7386; pointer-events: none; }
.qz-search input { width: 100%; height: 42px; padding: 0 14px 0 36px; border-radius: 11px;
  font-size: 13px; font-family: inherit; color: #e6e8eb; background: rgba(12,15,20,.62);
  border: 1px solid rgba(255,255,255,.12);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.qz-search input::placeholder { color: #6b7386; }
.qz-search input:focus { outline: none; border-color: rgba(91,141,239,.6);
  background: rgba(12,15,20,.82); box-shadow: 0 0 0 3px rgba(91,141,239,.16); }

.qz-hero-btns { display: flex; gap: 10px; }
.qz-hero-btns .qz-submit { flex: 1 1 auto; }
.qz-random { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 42px; padding: 0 16px; border-radius: 11px; font-size: 13.5px; font-weight: 700;
  color: #c9d6f5; background: rgba(91,141,239,.12); border: 1px solid rgba(91,141,239,.34);
  white-space: nowrap; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.qz-random:hover { color: #fff; background: rgba(91,141,239,.24); border-color: rgba(91,141,239,.6);
  transform: translateY(-1px); }
.qz-random i { font-size: 12px; }

.qz-submit { display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 42px; border-radius: 11px; font-size: 13.5px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #5b8def, #7c5cf0);
  border: 1px solid rgba(122,160,255,.35); box-shadow: 0 10px 24px rgba(76,102,240,.3);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.qz-submit:hover { transform: translateY(-1px); filter: brightness(1.08);
  box-shadow: 0 14px 30px rgba(76,102,240,.42); color: #fff; }

/* ---------- 工具栏（吸顶） ---------- */
.qz-bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; margin: 0 0 14px; padding: 9px 12px; border-radius: 14px;
  background: rgba(20,24,32,.88); border: 1px solid var(--dk-border);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 10px 26px rgba(0,0,0,.28); }

.qz-tabs { display: flex; align-items: center; gap: 6px; flex: 1 1 auto; min-width: 0;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 1px; }
.qz-tabs::-webkit-scrollbar { display: none; width: 0; height: 0; }
.qz-tab { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 30px;
  padding: 0 12px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: #8b93a5;
  white-space: nowrap; transition: color .18s ease, background .18s ease, box-shadow .18s ease; }
.qz-tab:hover { color: #c9d1de; background: rgba(255,255,255,.06); }
.qz-tab.is-on { color: #fff; background: linear-gradient(135deg, #5b8def, #4a76e0);
  box-shadow: 0 6px 16px rgba(59,91,219,.32); }
.qz-tab.is-on:hover { color: #fff; }
.qz-tab-n { font-size: 10.5px; font-weight: 700; min-width: 16px; text-align: center;
  padding: 1px 5px; border-radius: 5px; background: rgba(255,255,255,.14); }

.qz-view { display: inline-flex; flex: none; padding: 2px; border-radius: 9px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); }
.qz-view button { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px;
  border: 0; border-radius: 7px; background: transparent; cursor: pointer; font-family: inherit;
  font-size: 12px; font-weight: 600; color: #8b93a5;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.qz-view button i { font-size: 11px; }
.qz-view button:hover { color: #c2c9d6; }
.qz-view button.is-on { color: #eef1f6; background: #2f3742;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 2px 6px rgba(0,0,0,.25); }

/* ---------- 卡片网格 ---------- */
.qz-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.qz-grid.is-small { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }

.qz-card { position: relative; display: flex; flex-direction: column; overflow: hidden;
  padding: 15px 16px 14px; border-radius: 14px; text-decoration: none;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.022));
  border: 1px solid var(--dk-border);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease; }
.qz-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; opacity: 0;
  background: linear-gradient(90deg, #5b8def, #8b5cf6 52%, rgba(139,92,246,0));
  transition: opacity .22s ease; }
.qz-card:hover { transform: translateY(-3px); border-color: rgba(91,141,239,.42);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  box-shadow: 0 18px 36px rgba(0,0,0,.42); }
.qz-card:hover::before { opacity: 1; }

.qz-card-hd { display: flex; align-items: center; gap: 11px; min-width: 0; }
.qz-ico { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, rgba(91,141,239,.30), rgba(91,141,239,.08));
  border: 1px solid rgba(255,255,255,.08); }
.qz-card:nth-child(5n+2) .qz-ico { background: linear-gradient(140deg, rgba(238,125,84,.30), rgba(238,125,84,.08)); }
.qz-card:nth-child(5n+3) .qz-ico { background: linear-gradient(140deg, rgba(139,92,246,.32), rgba(139,92,246,.08)); }
.qz-card:nth-child(5n+4) .qz-ico { background: linear-gradient(140deg, rgba(59,191,143,.28), rgba(59,191,143,.08)); }
.qz-card:nth-child(5n+5) .qz-ico { background: linear-gradient(140deg, rgba(224,92,120,.28), rgba(224,92,120,.08)); }
.qz-ico img { width: 100%; height: 100%; padding: 8px; object-fit: contain;
  transition: transform .3s ease; }
.qz-card:hover .qz-ico img { transform: scale(1.08); }
.qz-ico.is-noimg::after { content: '\f0c1'; font-family: FontAwesome; font-size: 16px; color: #8b93a5; }

.qz-hd-txt { display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; min-width: 0; }
.qz-name { font-size: 14.5px; font-weight: 700; color: #e9edf5; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .2s ease; }
.qz-card:hover .qz-name { color: #fff; }
.qz-host { font-size: 11.5px; color: #7b8496; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.qz-go { flex: none; width: 26px; height: 26px; border-radius: 8px; display: flex;
  align-items: center; justify-content: center; font-size: 10.5px; color: #8b93a5;
  background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.07);
  transition: color .22s ease, background .22s ease, border-color .22s ease, transform .22s ease; }
.qz-card:hover .qz-go { color: #fff; background: rgba(91,141,239,.26);
  border-color: rgba(91,141,239,.46); transform: translate(2px, -2px); }

.qz-desc { margin-top: 11px; font-size: 12.5px; line-height: 1.72; color: #8f97a8;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.qz-card-ft { margin-top: auto; padding-top: 12px; display: flex; align-items: center;
  justify-content: space-between; gap: 8px; }
.qz-tag { font-size: 11px; font-weight: 600; color: #8fb2ff; background: rgba(91,141,239,.12);
  border: 1px solid rgba(91,141,239,.24); padding: 3px 8px; border-radius: 6px;
  max-width: 68%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qz-visit { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: #6b7386;
  margin-left: auto; }

/* 小图模式：只留图标 + 名称 + 域名 */
.qz-grid.is-small .qz-card { padding: 10px 12px; border-radius: 11px; }
.qz-grid.is-small .qz-card:hover { transform: translateY(-2px); }
.qz-grid.is-small .qz-ico { flex-basis: 38px; width: 38px; height: 38px; border-radius: 10px; }
.qz-grid.is-small .qz-ico img { padding: 6px; }
.qz-grid.is-small .qz-name { font-size: 13px; }
.qz-grid.is-small .qz-host { font-size: 11px; }
.qz-grid.is-small .qz-desc,
.qz-grid.is-small .qz-card-ft,
.qz-grid.is-small .qz-go { display: none; }

/* 末尾「推荐好站」占位卡 */
.qz-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 18px 16px; border-radius: 14px; text-align: center;
  background: rgba(255,255,255,.018); border: 1px dashed rgba(255,255,255,.14);
  transition: border-color .2s ease, background .2s ease; }
.qz-add:hover { border-color: rgba(91,141,239,.5); background: rgba(91,141,239,.06); }
.qz-add-ico { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 13px; color: #8fb2ff;
  background: rgba(91,141,239,.12); border: 1px solid rgba(91,141,239,.3); transition: .2s ease; }
.qz-add:hover .qz-add-ico { background: rgba(91,141,239,.24); color: #fff; transform: rotate(90deg); }
.qz-add-t { font-size: 13.5px; font-weight: 700; color: #c2ccdd; }
.qz-add-s { font-size: 11.5px; color: #6b7386; }
.qz-grid.is-small .qz-add { padding: 10px 12px; flex-direction: row; gap: 9px; text-align: left; }
.qz-grid.is-small .qz-add-ico { flex: none; width: 28px; height: 28px; font-size: 11px; }
.qz-grid.is-small .qz-add-s { display: none; }

/* ---------- 空态 / 无结果 ---------- */
.qz-nohit { display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 40px 20px; font-size: 13px; color: #7b8496; }
.qz-nohit i { font-size: 15px; color: #4a5260; }
.qz-empty { display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 56px 20px; text-align: center; border-radius: 16px;
  background: var(--dk-card); border: 1px solid var(--dk-border); }
.qz-empty i { font-size: 34px; color: #39404d; }
.qz-empty p { margin: 0; font-size: 14px; color: #7b8496; }
.qz-empty a { font-size: 13px; font-weight: 600; color: #8fb2ff; border-radius: 8px;
  padding: 8px 18px; border: 1px solid rgba(91,141,239,.35); transition: .2s ease; }
.qz-empty a:hover { background: rgba(91,141,239,.14); border-color: rgba(91,141,239,.6); color: #fff; }

/* ---------- 分页 ---------- */
.qz-wrap .pagebar { margin: 24px 0 0; padding: 0 !important; background: none !important;
  border: 0 !important; text-align: center; }
.qz-wrap .pagination { display: flex; align-items: center; justify-content: center;
  gap: 8px; flex-wrap: wrap; }
.qz-wrap .pagination a.page-item { min-width: 36px; height: 36px; padding: 0 12px;
  border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; color: #a8b0c0 !important; background: var(--dk-card);
  border: 1px solid var(--dk-border); transition: background .18s ease, color .18s ease, border-color .18s ease; }
.qz-wrap .pagination a.page-item:hover { background: var(--dk-card-h); color: #fff !important;
  border-color: rgba(255,255,255,.14); }
.qz-wrap .pagination a.page-item.active,
.qz-wrap .pagination a.page-item.cur,
.qz-wrap .pagination a.page-item:not([href]) { background: linear-gradient(135deg, #5b8def, #4a76e0);
  color: #fff !important; border-color: transparent; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .qz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qz-grid.is-small { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .qz-hero h1 { font-size: 26px; }
}
@media (max-width: 900px) {
  .qz-hero-main { padding: 24px 22px 22px; align-items: flex-start; }
  .qz-hero-r { width: 100%; flex-direction: column; align-items: stretch; }
  .qz-grid.is-small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .qz-wrap { padding: 0 10px 34px; }
  .qz-hero { border-radius: 15px; }
  .qz-hero-main { padding: 20px 18px 18px; gap: 18px; }
  .qz-hero h1 { font-size: 22px; margin: 11px 0 7px; }
  .qz-hero p { font-size: 12.5px; }
  .qz-stats { margin-top: 12px; font-size: 12px; gap: 9px; }
  .qz-stats b { font-size: 15px; }
  .qz-hero-r { flex-direction: column; align-items: stretch; }
  .qz-bar { padding: 7px 8px; border-radius: 12px; gap: 8px; }
  .qz-view button { padding: 4px 8px; font-size: 11.5px; }
  .qz-view button i { display: none; }
  .qz-grid,
  .qz-grid.is-small { grid-template-columns: 1fr; gap: 9px; }
  .qz-card { padding: 12px 13px; }
  .qz-ico { flex-basis: 40px; width: 40px; height: 40px; }
  .qz-desc { font-size: 12px; }
  .qz-wrap .pagination a.page-item { min-width: 32px; height: 32px; padding: 0 10px; font-size: 12px; }
}
