/* =========================================================================
 * 网址导航 · 爆款文案捕手
 * ========================================================================= */
:root {
  /* 暗色 v5 体系（与主站统一） */
  --bg: #08090f;
  --bg-soft: #10121a;
  --card: #14161f;
  --ink: #eef1f8;
  --ink-2: #c3cad9;
  --ink-3: #8b93a8;
  --ink-4: #6b7488;
  --line: #232838;
  --line-strong: #333a4d;
  --accent: #7c6cff;
  --accent-deep: #6a58f5;
  --accent-soft: rgba(124, 108, 255, .14);
  --purple: #a78bfa;
  --blue: #60a5fa;
  --green: #4ade80;
  --radius: 16px;
  --shadow-sm: 0 2px 8px -4px rgba(0, 0, 0, .6);
  --shadow-md: 0 18px 44px -28px rgba(0, 0, 0, .85);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Consolas, "SFMono-Regular", monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(1100px 460px at 8% -8%, rgba(124, 92, 255, .13), transparent 60%),
    radial-gradient(900px 420px at 100% 0%, rgba(34, 211, 238, .07), transparent 55%),
    var(--bg);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select, textarea { font-family: inherit; }
.svg-sprite { position: absolute; overflow: hidden; }
.icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }

/* ---------------- 顶部 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 28px;
  background: rgba(255, 253, 249, .9);
  border-bottom: 1px solid rgba(228, 87, 46, .12);
  backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(145deg, #f0805a, #d94718);
  box-shadow: 0 8px 18px -10px rgba(228, 87, 46, .8);
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.2; }
.brand-copy b { font-size: 16px; letter-spacing: .2px; }
.brand-copy small { margin-top: 3px; font-size: 10.5px; color: var(--ink-3); letter-spacing: .2px; }
.search-box {
  flex: 1;
  max-width: 520px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.search-box:focus-within { border-color: rgba(228, 87, 46, .55); box-shadow: 0 0 0 4px rgba(228, 87, 46, .08); }
.search-box .icon { width: 17px; height: 17px; color: var(--ink-4); }
.search-box input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-size: 13px; color: var(--ink); }
.search-box input::placeholder { color: var(--ink-4); }
.search-count { flex: none; font-size: 10.5px; color: var(--ink-3); white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn:hover { border-color: #cfc0af; background: #fffdfa; transform: translateY(-1px); }
.btn.primary { color: #fff; border-color: #cf4a20; background: linear-gradient(180deg, #e96a3f, #dd4f22); box-shadow: 0 8px 18px -12px rgba(228, 87, 46, .8); }
.btn.primary:hover { background: linear-gradient(180deg, #e15c2f, #d34718); }
.btn.ghost { background: #faf7f2; }
.btn.ad-btn { color: var(--accent-deep); border-color: rgba(228, 87, 46, .3); background: rgba(228, 87, 46, .07); }
.btn.ad-btn:hover { background: rgba(228, 87, 46, .12); }
.btn.small { height: 30px; padding: 0 9px; font-size: 11px; }
.btn.block { width: 100%; }
.icon-btn {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
}
.icon-btn:hover { background: #f6f0e8; color: var(--ink); }

/* ---------------- 页面 ---------------- */
.page { width: min(1480px, calc(100% - 48px)); margin: 22px auto 40px; }
.eyebrow { font-size: 9px; font-weight: 800; letter-spacing: 2px; color: var(--accent); opacity: .85; }
.top-banner { margin-bottom: 18px; min-height: 126px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 272px; gap: 20px; align-items: start; }
.content { min-width: 0; }
.content-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 2px 2px 15px; }
.content-head h1 { margin: 4px 0 5px; font-size: 26px; letter-spacing: .4px; }
.content-head p { margin: 0; color: var(--ink-3); font-size: 12px; line-height: 1.6; }
.content-meta { display: flex; align-items: center; gap: 8px; flex: none; padding-bottom: 2px; }
.updated-at { font-size: 10px; color: var(--ink-4); white-space: nowrap; }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 10px; font-weight: 600; white-space: nowrap; }
.badge.mock { color: #b45309; border: 1px solid rgba(180, 83, 9, .2); background: rgba(245, 158, 11, .1); }
.badge.green { color: #047857; border: 1px solid rgba(4, 120, 87, .2); background: rgba(4, 120, 87, .07); }
.badge.gray { color: var(--ink-3); border: 1px solid var(--line); background: var(--bg-soft); }
.badge.orange { color: var(--accent-deep); border: 1px solid rgba(228, 87, 46, .22); background: var(--accent-soft); }

/* ---------------- 分类 / 站点 ---------------- */
.category-list { display: flex; flex-direction: column; gap: 16px; }
.category {
  padding: 16px 18px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(6px);
}
.category-head { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; }
.category-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 16px;
  background: linear-gradient(150deg, #fff3e9, #ffe3d2);
  border: 1px solid rgba(228, 87, 46, .12);
}
.category-head h2 { margin: 0; font-size: 16px; letter-spacing: .3px; }
.category-head .cat-count { font-size: 10.5px; color: var(--ink-4); padding: 1px 7px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); }
.site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 10px; }
.site-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 11px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .028);
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.site-card:hover { transform: translateY(-2px); border-color: rgba(228, 87, 46, .32); box-shadow: 0 16px 26px -24px rgba(33, 29, 24, .55); }
.site-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  flex: none;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, #f0e5d7, #e8d7c4);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  position: relative;
}
.site-logo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.site-logo span { position: absolute; inset: 0; display: grid; place-items: center; z-index: 0; }
.site-logo.tone-0 { background: linear-gradient(145deg, #f59e0b, #b45309); }
.site-logo.tone-1 { background: linear-gradient(145deg, #38bdf8, #0369a1); }
.site-logo.tone-2 { background: linear-gradient(145deg, #a78bfa, #5b21b6); }
.site-logo.tone-3 { background: linear-gradient(145deg, #34d399, #047857); }
.site-logo.tone-4 { background: linear-gradient(145deg, #fb7185, #9f1239); }
.site-logo.tone-5 { background: linear-gradient(145deg, #64748b, #1e293b); }
.site-copy { min-width: 0; flex: 1; }
.site-copy b { display: flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; letter-spacing: .1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-copy b .icon { width: 11px; height: 11px; color: var(--ink-4); opacity: 0; transition: opacity .15s ease; }
.site-card:hover .site-copy b .icon { opacity: 1; }
.site-copy em { display: block; margin-top: 2px; color: var(--ink-3); font-size: 10px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-style: normal; }
.site-tags { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; }
.site-tag { font-size: 8.5px; line-height: 1.5; padding: 0 5px; border-radius: 4px; color: var(--ink-3); border: 1px solid var(--line); background: var(--bg-soft); }
.site-tag.is-hot { color: var(--accent-deep); border-color: rgba(228, 87, 46, .18); background: var(--accent-soft); }
.search-empty { margin-top: 16px; padding: 34px; border: 1px dashed var(--line-strong); border-radius: var(--radius); text-align: center; background: rgba(255, 255, 255, .55); }
.search-empty b { font-size: 15px; }
.search-empty p { margin: 6px 0 0; color: var(--ink-3); font-size: 12px; }

/* ---------------- 广告位 ---------------- */
.ad-slot {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.ad-kicker { display: inline-flex; align-items: center; gap: 5px; font-size: 9px; font-weight: 800; letter-spacing: 1.6px; color: var(--ink-4); text-transform: uppercase; }
.top-ad {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 126px;
  padding: 20px 24px;
  border: 1px solid rgba(124, 92, 255, .2);
  border-radius: var(--radius);
  background:
    radial-gradient(600px 220px at 90% 0%, rgba(124, 92, 255, .18), transparent 70%),
    radial-gradient(500px 200px at 0% 100%, rgba(228, 87, 46, .13), transparent 65%),
    linear-gradient(135deg, #151a2e, #1d1830);
  color: #fff;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
}
.top-ad.is-rent { border-color: rgba(228, 87, 46, .24); background: linear-gradient(135deg, #fff8f1, #fff2e7); color: var(--ink); }
.top-ad img { width: 240px; height: 110px; object-fit: contain; border-radius: 10px; flex: none; background: rgba(255, 255, 255, .06); }
.top-ad-copy { flex: 1; min-width: 0; }
.top-ad-copy .ad-kicker { color: rgba(255, 255, 255, .55); }
.top-ad.is-rent .top-ad-copy .ad-kicker { color: var(--accent); }
.top-ad-copy b { display: block; margin: 5px 0 4px; font-size: 19px; letter-spacing: .3px; }
.top-ad-copy p { margin: 0; color: rgba(255, 255, 255, .68); font-size: 11.5px; line-height: 1.6; }
.top-ad.is-rent .top-ad-copy p { color: var(--ink-3); }
.top-ad-price { flex: none; text-align: right; }
.top-ad-price b { display: block; font-size: 28px; letter-spacing: -.5px; color: #ffd9a8; }
.top-ad.is-rent .top-ad-price b { color: var(--accent-deep); }
.top-ad-price em { font-style: normal; font-size: 10px; color: rgba(255, 255, 255, .55); }
.top-ad.is-rent .top-ad-price em { color: var(--ink-3); }
.top-ad .btn { margin-top: 9px; }
.top-ad.is-rent .btn.primary { box-shadow: 0 8px 18px -14px rgba(228, 87, 46, .8); }
.side-ad {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, #fff, #fff8f1);
  box-shadow: var(--shadow-sm);
}
.side-ad-image { width: 100%; height: 150px; object-fit: contain; border-radius: 10px; background: #faf5ee; margin-bottom: 10px; display: block; }
.side-ad h3 { margin: 0 0 5px; font-size: 14px; }
.side-ad p { margin: 0 0 10px; color: var(--ink-3); font-size: 10.5px; line-height: 1.6; }
.side-rent { text-align: left; }
.side-rent .rent-price { display: flex; align-items: baseline; gap: 4px; margin: 9px 0 4px; color: var(--accent-deep); }
.side-rent .rent-price b { font-size: 26px; }
.side-rent .rent-price em { font-style: normal; font-size: 10px; color: var(--ink-3); }
.sidebar { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 82px; align-self: start; }
.sidebar-note { padding: 15px 16px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: rgba(255, 255, 255, .6); }
.sidebar-note b { font-size: 12px; }
.sidebar-note p { margin: 5px 0 11px; color: var(--ink-3); font-size: 10.5px; line-height: 1.65; }
.bottom-ad { margin-top: 20px; }
.bottom-ad-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 20px;
  border: 1px solid rgba(47, 124, 246, .18);
  border-radius: var(--radius);
  background: linear-gradient(120deg, #eef5ff, #f7fbff);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.bottom-ad-inner.is-rent { border-color: rgba(228, 87, 46, .2); background: linear-gradient(120deg, #fff8f1, #fffdf9); }
.bottom-ad-inner img { width: 140px; height: 58px; object-fit: contain; border-radius: 8px; flex: none; background: #fff; }
.bottom-ad-copy { flex: 1; min-width: 0; }
.bottom-ad-copy b { font-size: 14px; }
.bottom-ad-copy p { margin: 3px 0 0; color: var(--ink-3); font-size: 10.5px; }
.bottom-ad .btn { flex: none; }
.ad-label { position: absolute; top: 9px; right: 10px; font-size: 8.5px; letter-spacing: 1px; color: var(--ink-4); border: 1px solid var(--line); background: rgba(255, 255, 255, .75); padding: 1px 5px; border-radius: 4px; }
.side-ad { position: relative; }

/* ---------------- 页脚 ---------------- */
.site-footer {
  width: min(1480px, calc(100% - 48px));
  margin: 26px auto 30px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--ink-4);
  font-size: 10.5px;
}
.site-footer b { color: var(--ink-2); }

/* ---------------- 弹窗 ---------------- */
.modal { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(24, 19, 14, .52); backdrop-filter: blur(5px); }
.modal-card {
  position: relative;
  width: min(720px, 94vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 50px 100px -40px rgba(24, 19, 14, .6);
  overflow: hidden;
  animation: modalIn .18s ease;
}
.modal-card.small { width: min(440px, 94vw); }
@keyframes modalIn { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 19px 22px 14px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 4px 0 0; font-size: 20px; }
.modal-body { padding: 17px 22px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 13px 22px 16px; border-top: 1px solid var(--line); background: #fffdfb; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.field > span { font-size: 11px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 12.5px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { height: 62px; padding: 8px 10px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(228, 87, 46, .55); box-shadow: 0 0 0 3px rgba(228, 87, 46, .08); }
.field-hint { font-style: normal; font-size: 10px; color: var(--ink-4); line-height: 1.5; }
.form-hint { margin: 0; color: var(--ink-4); font-size: 10px; line-height: 1.65; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ad-form .field { margin-bottom: 10px; }
.logo-picker { display: flex; align-items: center; gap: 9px; }
.image-preview {
  flex: 1;
  min-width: 0;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--ink-4);
  font-size: 10.5px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  background: var(--bg-soft);
}
.image-preview.has-image { border-style: solid; background: #fff; padding: 3px; }
.image-preview img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 5px; }
.upload-label { position: relative; cursor: pointer; }
.upload-label input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ---------------- 编辑模式 ---------------- */
.editor-overlay { position: fixed; inset: 0; z-index: 130; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(20, 16, 12, .55); backdrop-filter: blur(6px); }
.editor-card { width: min(1180px, 96vw); height: min(880px, 94vh); display: flex; flex-direction: column; background: #fbf8f3; border-radius: 18px; box-shadow: 0 50px 100px -40px rgba(24, 19, 14, .7); overflow: hidden; }
.editor-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 17px 22px 13px; background: #fff; border-bottom: 1px solid var(--line); }
.editor-head h2 { margin: 4px 0 0; font-size: 21px; }
.editor-head-actions { display: flex; align-items: center; gap: 8px; }
.editor-tabs { display: flex; gap: 4px; padding: 9px 20px 0; background: #fff; border-bottom: 1px solid var(--line); overflow-x: auto; }
.editor-tab { position: relative; height: 37px; padding: 0 12px; border: none; border-bottom: 2px solid transparent; background: transparent; color: var(--ink-3); font-size: 12px; cursor: pointer; white-space: nowrap; }
.editor-tab:hover { color: var(--ink); }
.editor-tab.is-active { color: var(--accent-deep); border-bottom-color: var(--accent); font-weight: 600; }
.tab-count { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-deep); font-size: 9px; }
.editor-body { flex: 1; overflow-y: auto; padding: 16px 20px 22px; }
.editor-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 20px; background: #fff; border-top: 1px solid var(--line); }
.editor-foot-actions { display: flex; gap: 8px; flex: none; }
.editor-section { margin-bottom: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.editor-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.editor-section-head h3 { margin: 0; font-size: 14px; }
.cat-editor-head { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.cat-editor-head input.icon-input { width: 44px; text-align: center; }
.cat-editor-head input.name-input { width: 190px; font-weight: 600; }
.cat-editor-head .cat-count { color: var(--ink-4); font-size: 10px; }
.cat-editor-head .spacer { flex: 1; }
.site-editor-list { display: flex; flex-direction: column; gap: 6px; }
.site-editor-row { display: grid; grid-template-columns: 34px 140px 1.5fr 1fr 130px 108px 30px; gap: 6px; align-items: center; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-soft); }
.site-editor-row input { height: 31px; border: 1px solid var(--line-strong); border-radius: 6px; padding: 0 7px; font-size: 11px; background: #fff; min-width: 0; }
.site-editor-row .logo-cell { display: flex; align-items: center; gap: 4px; min-width: 0; }
.site-editor-row .logo-cell .site-logo { width: 28px; height: 28px; font-size: 12px; border-radius: 7px; }
.site-editor-row .logo-cell .btn { height: 27px; padding: 0 6px; font-size: 9.5px; }
.site-editor-row .del-btn { width: 28px; height: 28px; }
.editor-empty { padding: 24px; text-align: center; color: var(--ink-4); font-size: 11px; }
.editor-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.editor-toolbar .form-hint { margin: 0; }
.banner-editor { display: flex; flex-direction: column; gap: 8px; }
.banner-editor .logo-picker { align-items: stretch; }
.banner-editor .image-preview { height: 64px; }
.slot-editor { display: grid; grid-template-columns: 1.2fr 1fr 120px 1fr; gap: 9px; align-items: end; padding: 10px; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 8px; background: var(--bg-soft); }
.slot-editor .field { margin: 0; }
.slot-editor .slot-status { font-size: 10px; color: var(--ink-4); padding-bottom: 10px; }
.app-list { display: flex; flex-direction: column; gap: 8px; }
.app-card { display: flex; align-items: flex-start; gap: 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); }
.app-thumb { width: 64px; height: 42px; flex: none; border-radius: 6px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; font-size: 9px; color: var(--ink-4); }
.app-thumb img { width: 100%; height: 100%; object-fit: contain; }
.app-copy { flex: 1; min-width: 0; }
.app-copy b { font-size: 12px; }
.app-copy p { margin: 3px 0 0; color: var(--ink-3); font-size: 10px; line-height: 1.55; word-break: break-all; }
.app-copy .app-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.app-actions { display: flex; gap: 6px; flex: none; align-self: center; }

/* ---------------- Toast ---------------- */
.toast-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; }
.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(380px, 84vw);
  padding: 10px 14px;
  border-radius: 9px;
  background: #1f2937;
  color: #fff;
  font-size: 11.5px;
  line-height: 1.5;
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .5);
  pointer-events: auto;
  animation: toastIn .18s ease;
}
.toast.is-success { background: #065f46; }
.toast.is-error { background: #991b1b; }
.toast.is-info { background: #1f2937; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1100px) {
  .site-header { padding: 10px 18px; gap: 12px; flex-wrap: wrap; }
  .brand-copy small { display: none; }
  .search-box { max-width: none; order: 3; flex-basis: 100%; }
  .header-actions { margin-left: auto; }
  .page { width: calc(100% - 28px); }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .sidebar > * { flex: 1 1 280px; }
  .sidebar-note { display: none; }
  .site-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .site-editor-row { grid-template-columns: 34px 1.2fr 1.5fr 1fr 30px; }
  .site-editor-row .tags-input, .site-editor-row .logo-cell { grid-column: span 2; }
  .site-editor-row .logo-cell { grid-column: span 2; }
}
@media (max-width: 720px) {
  body { font-size: 13px; }
  .site-header { padding: 9px 12px; gap: 8px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 10px; font-size: 16px; }
  .brand-copy b { font-size: 14px; }
  .search-box { height: 40px; }
  .header-actions { gap: 5px; flex-wrap: wrap; width: 100%; }
  .header-actions .btn { flex: 1; height: 36px; padding: 0 8px; font-size: 11px; }
  .page { width: calc(100% - 20px); margin-top: 14px; }
  .top-ad { padding: 14px; gap: 10px; flex-wrap: wrap; min-height: 0; }
  .top-ad img { width: 100%; height: 100px; }
  .top-ad-copy b { font-size: 16px; }
  .top-ad-price { text-align: left; width: 100%; display: flex; align-items: center; gap: 8px; }
  .top-ad-price b { font-size: 22px; }
  .content-head { align-items: flex-start; flex-direction: column; gap: 6px; }
  .content-head h1 { font-size: 22px; }
  .content-meta { padding: 0; }
  .category { padding: 12px 12px 14px; }
  .category-head h2 { font-size: 14px; }
  .site-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .site-card { padding: 9px; gap: 7px; }
  .site-logo { width: 30px; height: 30px; font-size: 13px; border-radius: 7px; }
  .site-copy b { font-size: 11.5px; }
  .site-copy em { font-size: 9px; }
  .site-tag { font-size: 8px; }
  .bottom-ad-inner { flex-wrap: wrap; padding: 12px; }
  .bottom-ad-inner img { width: 100%; height: 80px; }
  .bottom-ad .btn { width: 100%; }
  .site-footer { width: calc(100% - 20px); flex-direction: column; align-items: flex-start; font-size: 10px; }
  .modal { padding: 10px; align-items: flex-end; }
  .modal-card { width: 100%; max-height: 92vh; border-radius: 16px 16px 0 0; }
  .form-grid { grid-template-columns: 1fr; }
  .editor-overlay { padding: 0; align-items: stretch; }
  .editor-card { width: 100%; height: 100vh; border-radius: 0; }
  .editor-head { padding: 12px 14px; }
  .editor-tabs { padding: 7px 12px 0; }
  .editor-body { padding: 11px 12px 16px; }
  .editor-foot { padding: 10px 12px; flex-direction: column; align-items: stretch; gap: 7px; }
  .editor-foot-actions .btn { flex: 1; }
  .site-editor-row { grid-template-columns: 30px 1fr 1fr 28px; }
  .site-editor-row .tags-input { grid-column: span 4; }
  .site-editor-row .url-input { grid-column: span 3; }
  .site-editor-row .desc-input { grid-column: span 4; }
  .site-editor-row .logo-cell { grid-column: span 3; }
  .slot-editor { grid-template-columns: 1fr 1fr; }
  .app-card { flex-wrap: wrap; }
  .app-actions { width: 100%; }
  .app-actions .btn { flex: 1; }
  .toast-wrap { right: 10px; bottom: 10px; left: 10px; align-items: stretch; }
  .toast { max-width: none; }
}

/* =========================================================================
 * v4.1：主推荐 / 热门排行 / 文字·图片·视频广告
 * ========================================================================= */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0 2px 11px; }
.section-head h2 { margin: 3px 0 0; font-size: 20px; letter-spacing: .3px; }
.section-head p { margin: 3px 0 0; font-size: 10.5px; color: var(--ink-3); }
.main-ads { display: flex; flex-direction: column; gap: 8px; margin-bottom: 13px; }
.main-ad {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 9px 16px;
  border-radius: 12px;
  border: 1px solid rgba(124, 92, 255, .18);
  background: linear-gradient(120deg, #eef4ff, #f8fbff);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
}
.main-ad-type-text { border-color: rgba(245, 158, 11, .24); background: linear-gradient(120deg, #fffaf0, #fffdf8); }
.main-ad:hover { border-color: rgba(124, 92, 255, .35); }
.main-ad .ad-label { position: static; flex: none; }
.main-ad-copy { flex: 1; min-width: 0; }
.main-ad-copy b { display: block; font-size: 13px; }
.main-ad-copy p { margin: 2px 0 0; font-size: 10.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main-ad-cta { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; color: var(--blue); }
.main-ad-cta .icon { width: 11px; height: 11px; }
.main-ad-video { flex: none; width: 118px; height: 64px; border-radius: 8px; overflow: hidden; background: #111827; position: relative; }
.main-ad-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.main-ad-video-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.7); font-size: 9px; z-index: 0; }
.main-ad-type-video { background: linear-gradient(120deg, #1e1b4b, #111827); color: #fff; border-color: rgba(124, 92, 255, .35); }
.main-ad-type-video .main-ad-copy p { color: rgba(255,255,255,.62); }
.main-ad-type-video .main-ad-cta { color: #c4b5fd; }

.recommend-section { margin-bottom: 15px; padding: 15px 17px 17px; border: 1px solid rgba(228, 87, 46, .16); border-radius: var(--radius); background: linear-gradient(160deg, #fffaf5, #fff); box-shadow: var(--shadow-sm); }
.recommend-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.recommend-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  text-decoration: none;
  position: relative;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.recommend-card:hover { transform: translateY(-2px); border-color: rgba(228, 87, 46, .35); box-shadow: 0 18px 28px -26px rgba(33, 29, 24, .55); }
.recommend-logo { width: 42px; height: 42px; border-radius: 10px; flex: none; display: grid; place-items: center; overflow: hidden; position: relative; color: #fff; font-size: 17px; font-weight: 800; }
.recommend-logo.tone-0 { background: linear-gradient(145deg, #f59e0b, #b45309); }
.recommend-logo.tone-1 { background: linear-gradient(145deg, #38bdf8, #0369a1); }
.recommend-logo.tone-2 { background: linear-gradient(145deg, #a78bfa, #5b21b6); }
.recommend-logo.tone-3 { background: linear-gradient(145deg, #34d399, #047857); }
.recommend-logo.tone-4 { background: linear-gradient(145deg, #fb7185, #9f1239); }
.recommend-logo.tone-5 { background: linear-gradient(145deg, #64748b, #1e293b); }
.recommend-logo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.recommend-copy { flex: 1; min-width: 0; }
.recommend-copy b { display: block; font-size: 12.5px; }
.recommend-copy p { margin: 3px 0 0; font-size: 9.5px; color: var(--ink-3); line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recommend-tags { display: flex; gap: 3px; margin-top: 5px; flex-wrap: wrap; }
.recommend-arrow { position: absolute; top: 9px; right: 9px; width: 11px; height: 11px; color: var(--ink-4); opacity: 0; transition: opacity .15s ease; }
.recommend-card:hover .recommend-arrow { opacity: 1; }

.ranking-section { margin-bottom: 15px; padding: 15px 17px 17px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.88); box-shadow: var(--shadow-sm); }
.rank-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; }
.rank-item { display: flex; align-items: center; gap: 9px; padding: 6px 7px; border-radius: 7px; text-decoration: none; border: 1px solid transparent; }
.rank-item:hover { background: #fffaf5; border-color: rgba(228, 87, 46, .18); }
.rank-num { flex: none; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; background: #f5efe7; color: var(--ink-3); font-size: 10px; font-weight: 700; }
.rank-num.is-top { color: #fff; background: linear-gradient(145deg, #f59e0b, #d97706); }
.rank-copy { flex: 1; min-width: 0; }
.rank-copy b { display: block; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-copy em { display: block; margin-top: 1px; font-style: normal; font-size: 9px; color: var(--ink-4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-clicks { flex: none; text-align: right; min-width: 48px; }
.rank-clicks b { display: block; font-size: 11px; color: var(--accent-deep); }
.rank-clicks em { font-style: normal; font-size: 8px; color: var(--ink-4); }

/* 广告媒体类型 */
.top-ad-media { flex: none; width: 240px; height: 110px; object-fit: contain; border-radius: 10px; background: rgba(255, 255, 255, .06); }
.top-ad-media.ad-media-video video { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; }
.side-ad-media { display: block; width: 100%; height: 150px; object-fit: contain; border-radius: 10px; background: #faf5ee; margin-bottom: 10px; }
.side-ad-media.ad-media-video { position: relative; background: #0f172a; overflow: hidden; }
.side-ad-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.bottom-ad-media { flex: none; width: 140px; height: 58px; object-fit: contain; border-radius: 8px; background: #fff; }
.bottom-ad-media.ad-media-video { position: relative; overflow: hidden; background: #0f172a; }
.bottom-ad-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-video-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.6); font-size: 9px; z-index: 0; }
.top-ad-type-video { background: radial-gradient(600px 220px at 90% 0%, rgba(124, 92, 255, .25), transparent 70%), linear-gradient(135deg, #151a2e, #1d1830); }
.side-ad-type-video h3, .side-ad-type-text h3 { margin-top: 2px; }
.bottom-ad-type-text .bottom-ad-copy b { color: var(--accent-deep); }

/* 多类型素材预览 / 编辑 */
.image-preview video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 5px; }
.slot-editor { grid-template-columns: 1.1fr .65fr .7fr 1.1fr; }
.banner-editor .image-preview { height: 74px; }

@media (max-width: 1100px) {
  .recommend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rank-list { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .section-head h2 { font-size: 18px; }
  .recommend-section, .ranking-section { padding: 12px 12px 13px; }
  .recommend-grid { grid-template-columns: 1fr 1fr; gap: 7px; }
  .recommend-card { padding: 9px; gap: 7px; }
  .recommend-logo { width: 34px; height: 34px; font-size: 14px; border-radius: 8px; }
  .recommend-copy b { font-size: 11.5px; }
  .rank-list { gap: 2px; }
  .rank-item { padding: 6px 4px; }
  .main-ad { padding: 8px 11px; gap: 9px; }
  .main-ad-video { width: 82px; height: 52px; }
  .main-ad-copy b { font-size: 12px; }
  .main-ad-copy p { font-size: 9.5px; }
  .main-ad-cta { display: none; }
  .top-ad-media { width: 100%; height: 110px; }
  .side-ad-media { height: 130px; }
  .slot-editor { grid-template-columns: 1fr 1fr; }
}

/* v5：排行榜真实 LOGO */
.rank-logo { position: relative; width: 22px; height: 22px; flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 6px; color: #fff; font-size: 9px; font-weight: 700; background: linear-gradient(145deg, #7c5cff, #4f8bff); }
.rank-logo img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; background: #fff; }

/* =========================================================================
 * v5 · 暗色即梦风覆盖（网址导航）
 * ========================================================================= */

body {
  background:
    radial-gradient(1000px 520px at 85% -10%, rgba(124,92,255,.14), transparent 60%),
    radial-gradient(760px 420px at -8% 100%, rgba(34,211,238,.05), transparent 55%),
    #0b0d12 !important;
  color: var(--ink) !important;
}
.site-header { background: rgba(11,13,18,.86) !important; border-bottom-color: var(--line) !important; }
.brand-copy b { color: #f3f6fc; }
.brand-copy small { color: var(--ink-3) !important; }
.brand-mark { background: linear-gradient(145deg, #7c5cff, #4f8cff 55%, #22d3ee) !important; box-shadow: 0 8px 22px -10px rgba(124,92,255,.8) !important; }
.search-box { background: rgba(255,255,255,.035) !important; border-color: var(--line) !important; box-shadow: none !important; }
.search-box input { color: var(--ink) !important; }
.search-box input::placeholder { color: #5d667b !important; }
.header-stat, .site-count { color: var(--ink-3) !important; }
.btn { border-color: var(--line-strong) !important; }
.btn.ghost, .btn:not(.primary) { background: rgba(255,255,255,.035) !important; color: var(--ink-2) !important; }
.btn.primary { background: linear-gradient(135deg, #7c5cff, #4f8cff) !important; border-color: transparent !important; color: #fff !important; box-shadow: 0 10px 28px -16px rgba(124,92,255,.8) !important; }
.content-head h1, .content-head h2, .content-head b { color: #f3f6fc !important; }
.content-head p, .content-head span { color: var(--ink-3) !important; }
.eyebrow { color: #8b93a7 !important; }
.site-card { background: rgba(255,255,255,.028) !important; border-color: var(--line) !important; color: var(--ink) !important; box-shadow: none !important; }
.site-card:hover { background: rgba(124,92,255,.09) !important; border-color: rgba(124,92,255,.36) !important; box-shadow: 0 18px 34px -30px rgba(124,92,255,.6) !important; }
.site-copy b { color: #ecf0f8 !important; }
.site-copy b .icon { color: #6f7890 !important; }
.site-copy em { color: var(--ink-3) !important; }
.site-tag { background: rgba(255,255,255,.05) !important; color: #9aa3b8 !important; border-color: transparent !important; }
.site-tag.is-hot { background: rgba(249,115,22,.12) !important; color: #fdba74 !important; }
.site-logo { box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.site-logo img { background: #fff; border-radius: 8px; }
.category-card, .recommend-section, .ranking-section, .side-ad, .bottom-ad, .main-ad, .content-card { background: rgba(255,255,255,.025) !important; border-color: var(--line) !important; color: var(--ink) !important; box-shadow: none !important; }
.category-head h2, .category-head b { color: #ecf0f8 !important; }
.category-count, .category-hint, .rank-copy em, .recommend-copy p { color: var(--ink-3) !important; }
.recommend-copy b { color: #eef1f8 !important; }
.recommend-card { background: rgba(255,255,255,.028) !important; border-color: var(--line) !important; }
.recommend-card:hover { background: rgba(124,92,255,.08) !important; border-color: rgba(124,92,255,.35) !important; }
.recommend-logo img { background: #fff; }
.rank-item:hover { background: rgba(255,255,255,.035) !important; }
.rank-num { background: rgba(255,255,255,.06) !important; color: var(--ink-3) !important; }
.rank-num.is-top { color: #fff !important; background: linear-gradient(145deg, #f59e0b, #d97706) !important; }
.rank-copy b { color: #e8ecf6 !important; }
.rank-logo img { background: #fff; }
.rank-clicks b { color: #c4b5fd !important; }
.rank-clicks em { color: var(--ink-4) !important; }
.top-ad { background: radial-gradient(680px 280px at 88% -20%, rgba(124,92,255,.28), transparent 62%), linear-gradient(135deg, #151a2b, #10131d) !important; border: 1px solid rgba(124,92,255,.2) !important; color: var(--ink) !important; }
.top-ad b { color: #f5f7fc !important; }
.top-ad p { color: #9aa3b8 !important; }
.top-ad-price b { color: #fff !important; }
.top-ad.is-rent { background: radial-gradient(660px 260px at 88% -20%, rgba(249,115,22,.18), transparent 65%), linear-gradient(135deg, #1b1715, #12141c) !important; }
.top-ad.is-rent b { color: #fff !important; }
.side-ad, .side-ad.side-rent { background: rgba(255,255,255,.025) !important; border-color: var(--line) !important; }
.side-ad h3 { color: #eef1f8 !important; }
.side-ad p, .side-ad .ad-kicker { color: var(--ink-3) !important; }
.side-ad .rent-price b { color: #fff !important; }
.bottom-ad-inner { background: rgba(255,255,255,.025) !important; border-color: var(--line) !important; }
.bottom-ad-copy b { color: #eef1f8 !important; }
.bottom-ad-copy p { color: var(--ink-3) !important; }
.ad-label { background: rgba(255,255,255,.09) !important; color: #c7ccda !important; }
.main-ad { background: linear-gradient(120deg, rgba(124,92,255,.10), rgba(59,130,246,.06)) !important; border-color: rgba(124,92,255,.22) !important; }
.main-ad-type-text { background: linear-gradient(120deg, rgba(249,115,22,.10), rgba(255,255,255,.025)) !important; border-color: rgba(249,115,22,.2) !important; }
.main-ad-copy b { color: #eef1f8 !important; }
.main-ad-copy p { color: #9aa3b8 !important; }
.editor-overlay, .modal-mask { background: rgba(0,0,0,.68) !important; backdrop-filter: blur(6px); }
.editor-card, .modal-card { background: #12151e !important; border-color: var(--line-strong) !important; color: var(--ink) !important; }
.editor-head, .editor-tabs, .editor-foot { background: #12151e !important; border-color: var(--line) !important; }
.editor-tab { color: #8b93a7 !important; }
.editor-tab.is-active { color: #fff !important; background: rgba(124,92,255,.16) !important; }
.editor-body, .editor-section, .banner-editor, .slot-editor, .site-editor-row, .app-card { background: transparent !important; border-color: var(--line) !important; color: var(--ink) !important; }
.editor-section-head h3, .slot-editor b, .site-editor-row b { color: #eef1f8 !important; }
.field span, .field-hint, .form-hint, .editor-note { color: #8b93a7 !important; }
.field input, .field select, .field textarea, .editor-modal input, .editor-modal select, .editor-modal textarea { background: #0c0f16 !important; border-color: var(--line-strong) !important; color: var(--ink) !important; }
.site-footer { background: #0b0d12 !important; border-color: var(--line) !important; color: #596176 !important; }
.site-footer b, .site-footer strong { color: #8b93a7 !important; }
.toast { background: #1b1f2b !important; border-color: var(--line-strong) !important; color: var(--ink) !important; }
.footer-link { color: var(--ink-3) !important; }

.sidebar-note { background: rgba(255,255,255,.025) !important; border-color: var(--line) !important; box-shadow: none !important; }
.sidebar-note b { color: #eef1f8 !important; }
.sidebar-note p { color: var(--ink-3) !important; }
.sidebar-note .btn { background: rgba(124,92,255,.12) !important; border-color: rgba(124,92,255,.26) !important; color: #c4b5fd !important; }

/* v5.3 主推荐/排行 LOGO 覆盖显示 */
.recommend-logo, .rank-logo { position: relative !important; display: grid !important; place-items: center; }
.recommend-logo > span:first-child, .rank-logo > span:first-child { position: absolute; inset: 0; display: grid; place-items: center; }
.recommend-logo img, .rank-logo img { position: absolute !important; inset: 0 !important; z-index: 2 !important; width: 100% !important; height: 100% !important; object-fit: contain !important; background: #fff !important; padding: 3px; }


/* =========================================================================
 * v6.0 · 发现 AI 风格重构：顶部分类导航 + 大搜索条 + 左侧分类栏 + 紧凑卡片网格
 * 暗色主题不变，只改信息层级与密度
 * ========================================================================= */

/* ---- 顶部分类导航 ---- */
.top-cats {
  display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0;
  overflow-x: auto; scrollbar-width: none; margin-left: 6px;
}
.top-cats::-webkit-scrollbar { display: none; }
.top-cat {
  flex: none; height: 30px; padding: 0 11px; border: 0; border-radius: 8px;
  background: transparent; color: var(--ink-3); font-size: 12.5px; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: background .15s, color .15s;
}
.top-cat:hover { background: rgba(124, 92, 255, .14); color: var(--ink); }

/* ---- 独立大搜索条 ---- */
.search-bar {
  width: min(1480px, calc(100% - 48px)); margin: 12px auto 0;
  position: sticky; top: 62px; z-index: 20;
}
.search-box-lg {
  height: 46px; padding: 0 16px; border-radius: 13px;
  background: var(--bg-soft); border-color: var(--line-strong);
  box-shadow: 0 12px 30px -22px rgba(0, 0, 0, .6);
}
.search-box-lg input { font-size: 13.5px; }
.search-box-lg .search-count { font-size: 11.5px; }

/* ---- 左侧分类栏 ---- */
.layout { grid-template-columns: 186px minmax(0, 1fr) 272px; gap: 18px; }
.cat-rail {
  position: sticky; top: 122px; align-self: start;
  display: flex; flex-direction: column; gap: 2px;
  max-height: calc(100vh - 140px); overflow-y: auto;
  padding: 10px 8px; border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(255, 255, 255, .035);
}
.cat-rail-list { display: flex; flex-direction: column; gap: 2px; }
.cat-rail-item {
  display: flex; align-items: center; gap: 8px; width: 100%;
  height: 34px; padding: 0 9px; border: 0; border-radius: 9px;
  background: transparent; color: var(--ink-3); font-size: 12.5px; font-weight: 600;
  cursor: pointer; text-align: left; transition: background .15s, color .15s;
}
.cat-rail-item:hover { background: rgba(124, 92, 255, .13); color: var(--ink); }
.cat-rail-item.is-active { background: linear-gradient(135deg, rgba(124, 92, 255, .28), rgba(76, 141, 255, .18)); color: #fff; }
.cat-rail-ico { flex: none; width: 18px; font-size: 13px; text-align: center; }
.cat-rail-item > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-rail-item em { flex: none; font-style: normal; font-size: 10px; color: var(--ink-4); }
.cat-rail-item.is-active em { color: rgba(255, 255, 255, .7); }

/* ---- 区块 ---- */
.nav-block { margin-bottom: 26px; }
.nav-block .section-head { margin-bottom: 12px; }
.nav-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 9px; }

/* ---- 紧凑导航卡（发现 AI 风格） ---- */
.nav-tile {
  position: relative; display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 12px; min-height: 74px; text-decoration: none;
  border: 1px solid var(--line); border-radius: 12px;
  background: linear-gradient(150deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.nav-tile:hover {
  transform: translateY(-2px); border-color: rgba(124, 92, 255, .40);
  box-shadow: 0 16px 30px -24px rgba(124, 92, 255, .8);
}
.nav-tile-logo {
  width: 32px; height: 32px; flex: none; border-radius: 9px; overflow: hidden;
  display: grid; place-items: center; font-size: 14px; font-weight: 700;
  color: #fff; background: linear-gradient(135deg, rgba(124, 92, 255, .55), rgba(76, 141, 255, .40));
  border: 1px solid rgba(255, 255, 255, .10);
}
.nav-tile-logo img { width: 100%; height: 100%; object-fit: cover; }
.nav-tile-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nav-tile-copy b {
  font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav-tile-copy em {
  font-style: normal; font-size: 11px; line-height: 1.5; color: var(--ink-4);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nav-tile-tags { display: flex; gap: 4px; margin-top: 3px; flex-wrap: wrap; }
.nav-tile-tag {
  font-size: 9.5px; line-height: 1.6; padding: 0 6px; border-radius: 999px;
  background: rgba(124, 92, 255, .16); color: #b9a8ff; border: 1px solid rgba(124, 92, 255, .22);
}
.nav-tile-rank {
  position: absolute; top: 9px; right: 10px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 6px;
  display: grid; place-items: center; font-size: 10px; font-weight: 700;
  background: rgba(255, 255, 255, .07); color: var(--ink-4);
}
.nav-tile-rank.is-top { background: linear-gradient(135deg, #7c6cff, #4c8dff); color: #fff; }

/* ---- 分类区块：卡片网格更密 ---- */
.category { scroll-margin-top: 130px; }
.site-grid { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); }
.site-card { min-height: 74px; }

/* ---- 响应式 ---- */
@media (max-width: 1280px) {
  .layout { grid-template-columns: 168px minmax(0, 1fr) 240px; }
}
@media (max-width: 1100px) {
  .layout { grid-template-columns: 168px minmax(0, 1fr); }
  .layout > .sidebar { display: none; }
}
@media (max-width: 820px) {
  .search-bar { width: calc(100% - 28px); position: static; }
  .layout { grid-template-columns: 1fr; }
  .cat-rail { position: static; max-height: none; flex-direction: row; overflow-x: auto; }
  .cat-rail-list { flex-direction: row; }
  .cat-rail-item { width: auto; flex: none; }
  .cat-rail-item em { display: none; }
  .top-cats { display: none; }
}

/* =========================================================================
 * v6.0 · 暗色统一补全：分类区 / 网格 / 收藏区等此前未被覆盖的元素
 * ========================================================================= */
.category, .category-list, .content, .page, .layout { background: transparent !important; }
.category {
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  background: rgba(255, 255, 255, .022) !important;
  padding: 16px 18px 18px !important;
  margin: 0 0 14px !important;
}
.category-head { border-bottom: 1px solid var(--line) !important; padding-bottom: 11px !important; }
.category-icon {
  background: rgba(124, 92, 255, .16) !important;
  border: 1px solid rgba(124, 92, 255, .26) !important;
}
.category-head h2 { color: #ecf0f8 !important; }
.category-head .cat-count { background: rgba(255, 255, 255, .05) !important; color: var(--ink-3) !important; border-color: var(--line) !important; }
.site-grid { gap: 10px !important; }
.site-card { box-shadow: none !important; }
.site-card:hover { background: rgba(124, 92, 255, .10) !important; border-color: rgba(124, 92, 255, .38) !important; }
.site-copy b { color: #eef1f8 !important; }
.site-copy em { color: var(--ink-3) !important; }
.site-tag { background: rgba(255, 255, 255, .05) !important; color: #9aa3b8 !important; }
.site-tag.is-hot { background: rgba(255, 196, 79, .14) !important; color: #ffd479 !important; }

/* 热门推荐 / 主推荐 / 排行 三个区块 */
.nav-block { margin-bottom: 24px !important; }
.nav-block .section-head { margin-bottom: 12px !important; }
.nav-block .section-head h2 { color: #f3f6fc !important; }
.nav-block .section-head p { color: var(--ink-3) !important; }
.nav-tile { background: rgba(255, 255, 255, .028) !important; }
.nav-tile:hover { background: rgba(124, 92, 255, .10) !important; }
.nav-tile-copy b { color: #eef1f8 !important; }
.nav-tile-copy em { color: var(--ink-3) !important; }
.nav-tile-tag { background: rgba(124, 92, 255, .16) !important; color: #b9a8ff !important; }
.nav-tile-rank { background: rgba(255, 255, 255, .07) !important; color: var(--ink-3) !important; }
.nav-tile-rank.is-top { background: linear-gradient(135deg, #7c6cff, #4c8dff) !important; color: #fff !important; }

/* 左侧分类栏 */
.cat-rail { background: rgba(255, 255, 255, .028) !important; border-color: var(--line) !important; }
.cat-rail-item { color: var(--ink-3) !important; }
.cat-rail-item:hover { background: rgba(124, 92, 255, .14) !important; color: var(--ink) !important; }
.cat-rail-item.is-active {
  background: linear-gradient(135deg, rgba(124, 92, 255, .30), rgba(76, 141, 255, .20)) !important;
  color: #fff !important;
}

/* 顶部 */
.top-cat { color: var(--ink-3) !important; }
.top-cat:hover { background: rgba(124, 92, 255, .14) !important; color: var(--ink) !important; }
.search-box-lg { background: rgba(255, 255, 255, .04) !important; border-color: var(--line-strong) !important; }
.search-box-lg input { color: var(--ink) !important; }
.search-box-lg input::placeholder { color: var(--ink-4) !important; }
.site-footer { border-top-color: var(--line) !important; color: var(--ink-3) !important; }
.content-head h1 { color: #f3f6fc !important; }
.content-head p { color: var(--ink-3) !important; }

/* =========================================================================
 * v6.0 · LOGO 组件重新设计（统一暗色 + 正确缩放 + 加载中骨架）
 * ========================================================================= */
/* 1) 统一 LOGO 容器：暗色底 + 细边 + 内边距，图标不撑满 */
.site-logo,
.nav-tile-logo,
.recommend-logo,
.rank-logo {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255, 255, 255, .05) !important;
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: none !important;
  display: grid;
  place-items: center;
}
/* 2) 图标：contain 缩放 + 留白 + 圆角，绝不裁切 */
.site-logo img,
.nav-tile-logo img,
.recommend-logo img,
.rank-logo img {
  position: relative;
  z-index: 2;
  width: 78%;
  height: 78%;
  object-fit: contain !important;
  object-position: center;
  background: transparent !important;
  border-radius: 6px;
  padding: 0;
  animation: navLogoIn .28s ease;
}
@keyframes navLogoIn { from { opacity: 0; transform: scale(.86); } to { opacity: 1; transform: scale(1); } }
/* 3) 字母兜底：加载中显示，加载成功后淡出 */
.site-logo > span,
.nav-tile-logo > span,
.recommend-logo > span,
.rank-logo > span {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}
.site-logo.tone-0, .nav-tile-logo.tone-0 { background: linear-gradient(145deg, rgba(245, 158, 11, .30), rgba(180, 83, 9, .22)) !important; }
.site-logo.tone-1, .nav-tile-logo.tone-1 { background: linear-gradient(145deg, rgba(56, 189, 248, .30), rgba(3, 105, 161, .22)) !important; }
.site-logo.tone-2, .nav-tile-logo.tone-2 { background: linear-gradient(145deg, rgba(167, 139, 250, .30), rgba(91, 33, 182, .22)) !important; }
.site-logo.tone-3, .nav-tile-logo.tone-3 { background: linear-gradient(145deg, rgba(52, 211, 153, .30), rgba(4, 120, 87, .22)) !important; }
.site-logo.tone-4, .nav-tile-logo.tone-4 { background: linear-gradient(145deg, rgba(251, 113, 133, .30), rgba(159, 18, 57, .22)) !important; }
.site-logo.tone-5, .nav-tile-logo.tone-5 { background: linear-gradient(145deg, rgba(100, 116, 139, .32), rgba(30, 41, 59, .24)) !important; }
.site-logo { width: 34px !important; height: 34px !important; }
.nav-tile-logo { width: 30px !important; height: 30px !important; }
.recommend-logo, .rank-logo { width: 32px !important; height: 32px !important; }

/* =========================================================================
 * v6.0 · 收藏夹标签页 + 收藏卡片 + 星标按钮（夸克收藏夹样式）
 * ========================================================================= */
.fav-tabs-bar {
  width: min(1480px, calc(100% - 48px)); margin: 12px auto 0;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.fav-tabs {
  display: flex; align-items: center; gap: 4px; padding: 4px;
  border: 1px solid var(--line); border-radius: 13px;
  background: rgba(255, 255, 255, .035);
  max-width: 100%; overflow-x: auto;
}
.fav-tab {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 13px; border: 0; border-radius: 10px;
  background: transparent; color: var(--ink-3); font-size: 12.5px; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: background .15s, color .15s;
}
.fav-tab .icon { width: 14px; height: 14px; }
.fav-tab:hover { background: rgba(124, 92, 255, .14); color: var(--ink); }
.fav-tab.is-active {
  background: linear-gradient(135deg, #7c6cff, #4c8dff); color: #fff;
  box-shadow: 0 8px 20px -10px rgba(124, 108, 255, .95);
}
.fav-tab em {
  font-style: normal; font-size: 10.5px; min-width: 17px; height: 17px;
  padding: 0 5px; border-radius: 999px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .10); color: var(--ink-2);
}
.fav-tab.is-active em { background: rgba(255, 255, 255, .22); color: #fff; }
.fav-add-btn {
  display: inline-flex; align-items: center; gap: 5px;
  height: 32px; padding: 0 13px; border-radius: 10px; cursor: pointer;
  border: 1px dashed rgba(124, 92, 255, .45); background: rgba(124, 92, 255, .10);
  color: #b9a8ff; font-size: 12.5px; font-weight: 600; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.fav-add-btn:hover { background: rgba(124, 92, 255, .20); border-color: rgba(124, 92, 255, .70); color: #d6cdff; }
.fav-add-btn .icon { width: 13px; height: 13px; }
.fav-hint { margin: 0; font-size: 11.5px; color: var(--ink-4); }

/* 收藏卡片 */
.fav-tile { position: relative; }
.fav-tile .fav-open {
  display: flex; align-items: flex-start; gap: 10px;
  text-decoration: none; color: inherit; flex: 1; min-width: 0;
}
.fav-actions {
  position: absolute; top: 6px; right: 6px; display: flex; gap: 3px;
  opacity: 0; transition: opacity .15s ease;
}
.fav-tile:hover .fav-actions { opacity: 1; }
.fav-act {
  width: 24px; height: 24px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 7px; cursor: pointer;
  background: rgba(12, 14, 20, .90); color: var(--ink-3); padding: 0;
  transition: background .15s, color .15s, border-color .15s;
}
.fav-act .icon { width: 12px; height: 12px; }
.fav-act:hover { background: rgba(124, 92, 255, .30); color: #d6cdff; border-color: rgba(124, 92, 255, .5); }
.fav-act.is-on { background: rgba(124, 92, 255, .30); color: #cfc6ff; border-color: rgba(124, 92, 255, .55); }
.fav-act.is-danger:hover { background: rgba(239, 68, 68, .28); color: #ff9a9a; border-color: rgba(239, 68, 68, .5); }
.fav-empty {
  grid-column: 1 / -1; padding: 30px 22px; text-align: center;
  border: 1px dashed var(--line-strong); border-radius: 14px; background: rgba(255, 255, 255, .02);
}
.fav-empty .icon { width: 30px; height: 30px; color: var(--ink-4); margin-bottom: 8px; }
.fav-empty b { display: block; font-size: 13.5px; color: var(--ink-2); margin-bottom: 5px; }
.fav-empty p { margin: 0 0 12px; font-size: 12px; color: var(--ink-4); }

/* 站点卡片的星标按钮 */
.site-card-wrap, .nav-tile-wrap { position: relative; display: block; min-width: 0; }
.site-card-wrap .site-card, .nav-tile-wrap .nav-tile { width: 100%; }
.site-fav-btn {
  position: absolute; top: 7px; right: 7px; z-index: 3;
  width: 24px; height: 24px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 7px; cursor: pointer; padding: 0;
  background: rgba(12, 14, 20, .88); color: var(--ink-4);
  opacity: 0; transition: opacity .15s, background .15s, color .15s;
}
.site-card-wrap:hover .site-fav-btn,
.nav-tile-wrap:hover .site-fav-btn,
.site-fav-btn.is-on { opacity: 1; }
.site-fav-btn .icon { width: 13px; height: 13px; }
.site-fav-btn:hover { background: rgba(124, 92, 255, .30); color: #d6cdff; border-color: rgba(124, 92, 255, .5); }
.site-fav-btn.is-on { color: #ffd479; border-color: rgba(255, 196, 79, .45); background: rgba(255, 196, 79, .16); }

/* 弹窗里的复选行 */
.check-line { display: flex; align-items: center; gap: 7px; margin: 10px 0; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.check-line input { width: 15px; height: 15px; accent-color: #7c6cff; }

@media (max-width: 820px) {
  .fav-tabs-bar { width: calc(100% - 28px); }
  .fav-hint { display: none; }
}

/* ===== v6.0 · 收藏夹标签页与搜索条一起吸顶，层级不打架 ===== */
.fav-tabs-bar {
  position: sticky;
  top: 112px;
  z-index: 19;
  padding: 8px 0 12px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--bg) 70%, rgba(8, 9, 15, 0));
  backdrop-filter: blur(8px);
}
/* 收藏区标题不被吸顶条盖住 */
#favBlock { scroll-margin-top: 190px; }
.nav-block { scroll-margin-top: 190px; }
.search-bar { z-index: 20; }
.site-header { z-index: 50; }
@media (max-width: 820px) {
  .fav-tabs-bar { position: static; backdrop-filter: none; }
}

/* ===== v6.1 · 吸顶层与内容层不打架：给吸顶条留出实际占位高度 ===== */
.fav-tabs-bar {
  top: 58px;                       /* 紧贴 header 下沿 */
  background: var(--bg);
  padding-bottom: 10px;
}
.search-bar {
  top: 0;
  background: var(--bg);
  padding-bottom: 8px;
  z-index: 18;
}
/* 吸顶条之后的第一个内容块（广告横幅 / 主内容）留出间距 */
.page > .top-banner:first-child { margin-top: 8px; }
/* 收藏标签页下方不要再紧贴，给内容一点呼吸 */
.fav-tabs-bar + .page { margin-top: 14px; }
