/* 导航站群 CMS - 默认模板样式（深色玻璃风 · 自适应） */
:root{
  --bg:#080a14;
  --card:#121727cc;
  --line:#ffffff14;
  --text:#e8eaf2;
  --muted:#8b91a6;
  --brand:#818cf8;
  --brand2:#c084fc;
  --ok:#34d399;
  --warn:#fbbf24;
  --err:#f87171;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  background:var(--bg);
  color:var(--text);
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,"PingFang SC","Microsoft YaHei",sans-serif;
  line-height:1.6;
  min-height:100vh;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}

/* 背景光球 */
.bg-orb{position:fixed;border-radius:50%;filter:blur(80px);opacity:.5;z-index:0;pointer-events:none;animation:float 18s ease-in-out infinite}
.orb1{width:420px;height:420px;background:#6366f1;top:-120px;left:-100px}
.orb2{width:360px;height:360px;background:#8b5cf6;bottom:10%;right:-80px;animation-delay:-6s}
.orb3{width:300px;height:300px;background:#ec4899;top:40%;left:60%;animation-delay:-10s;opacity:.25}
@keyframes float{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(30px,-40px) scale(1.1)}}

/* 玻璃容器 */
.glass{background:var(--card);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border:1px solid var(--line);border-radius:18px}

/* 导航 */
.hero{position:relative;z-index:2;padding:0 0 40px}
.hero.small{padding-bottom:0}
.nav{max-width:1200px;margin:0 auto;padding:18px 20px;display:flex;align-items:center;gap:16px}
.brand{font-size:20px;font-weight:800;background:linear-gradient(90deg,var(--brand),var(--brand2));-webkit-background-clip:text;background-clip:text;color:transparent}
.nav-links{margin-left:auto;display:flex;gap:6px}
.nav-links a{padding:7px 14px;border-radius:99px;border:1px solid var(--line);font-size:14px;transition:.2s}
.nav-links a:hover{background:#fff1;transform:translateY(-1px)}

.hero-inner{max-width:1200px;margin:0 auto;padding:60px 20px 20px;text-align:center}
.hero h1{font-size:clamp(28px,5vw,52px);font-weight:800;line-height:1.2;margin-bottom:12px;background:linear-gradient(90deg,#fff,#c7d2fe);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero p{color:var(--muted);font-size:clamp(14px,2vw,17px)}

.search-box{max-width:560px;margin:26px auto 0;display:flex;gap:8px;background:#0f1322aa;backdrop-filter:blur(14px);border:1px solid var(--line);border-radius:99px;padding:6px;box-shadow:0 20px 60px #0006}
.search-box input{flex:1;background:transparent;border:0;outline:none;color:var(--text);padding:10px 16px;font-size:15px}
.search-box button{background:linear-gradient(135deg,var(--brand),var(--brand2));border:0;border-radius:99px;color:#fff;padding:10px 22px;cursor:pointer;font-weight:600;transition:.2s}
.search-box button:hover{transform:scale(1.04)}

/* 主体 */
.container{max-width:1200px;margin:0 auto;padding:24px 20px 60px;position:relative;z-index:2}
.container.narrow{max-width:680px}

.cat{margin-bottom:34px}
.cat-title{display:flex;align-items:center;gap:10px;font-size:18px;margin-bottom:14px;color:#fff}
.cat-title .dot{width:10px;height:10px;border-radius:50%;background:linear-gradient(135deg,var(--brand),var(--brand2));box-shadow:0 0 12px var(--brand)}
.cat-title em{font-style:normal;font-size:12px;color:var(--muted);background:#ffffff10;border-radius:99px;padding:1px 9px}

.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}

.card{display:block;padding:16px;transition:.22s;position:relative;overflow:hidden}
.card::before{content:'';position:absolute;inset:0;background:linear-gradient(135deg,rgba(99,102,241,.12),rgba(192,132,252,.08));opacity:0;transition:.22s}
.card:hover{transform:translateY(-4px);border-color:#818cf855;box-shadow:0 18px 50px #0008}
.card:hover::before{opacity:1}
.card>*{position:relative}
.card-head{display:flex;gap:12px;align-items:flex-start}
.favicon{width:40px;height:40px;border-radius:12px;background:linear-gradient(135deg,var(--brand),var(--brand2));display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:800;color:#fff;flex-shrink:0}
.meta h3{font-size:15px;font-weight:600;margin-bottom:2px}
.meta .url{font-size:12px;color:var(--muted);word-break:break-all}
.desc{margin-top:10px;font-size:13px;color:#b4b9c9}
.card-foot{margin-top:12px;display:flex;gap:8px;flex-wrap:wrap}
.badge{font-size:12px;padding:2px 9px;border-radius:99px;background:#ffffff0d}
.badge.gray{color:var(--muted)}

.empty{padding:40px;text-align:center;color:var(--muted)}
.empty a{color:var(--brand);text-decoration:underline}

/* 表单 */
.form-wrap{padding:28px}
.form-wrap h1{font-size:24px;margin-bottom:6px}
.muted{color:var(--muted);font-size:14px;margin-bottom:20px}
label{display:block;font-size:13px;color:var(--muted);margin:14px 0 6px}
input{width:100%;padding:12px 14px;border-radius:11px;border:1px solid var(--line);background:#0d111f;color:var(--text);font-size:15px;outline:none;transition:.2s}
input:focus{border-color:var(--brand);box-shadow:0 0 0 3px #818cf833}
.btn-primary{width:100%;margin-top:22px;padding:13px;border:0;border-radius:11px;background:linear-gradient(135deg,var(--brand),var(--brand2));color:#fff;font-size:16px;font-weight:700;cursor:pointer;transition:.2s}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 12px 30px #6366f155}
.alert{padding:11px 14px;border-radius:10px;font-size:14px;margin-bottom:16px}
.alert-err{background:#7f1d1d55;border:1px solid #ef444455;color:#fecaca}
.alert-ok{background:#065f4655;border:1px solid #34d39955;color:#a7f3d0}
.rule-box{margin-top:22px;padding:16px;border-radius:12px;background:#ffffff08;border:1px dashed var(--line)}
.rule-box h3{font-size:15px;margin-bottom:8px}
.rule-box ul{list-style:none;font-size:13px;color:#c7cbd8;line-height:2}
.rule-box b{color:var(--warn)}

/* 进度页 */
.search-row{display:flex;gap:8px;margin-bottom:20px}
.search-row input{background:#0d111f}
.search-row button{padding:12px 20px;border:0;border-radius:11px;background:linear-gradient(135deg,var(--brand),var(--brand2));color:#fff;cursor:pointer;font-weight:600}
.progress-list{list-style:none}
.progress-list li{padding:16px;border-bottom:1px solid var(--line)}
.progress-list li:last-child{border-bottom:0}
.p-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.p-head h3{font-size:15px}
.p-head .url{font-size:12px;color:var(--muted)}
.p-foot{display:flex;gap:14px;flex-wrap:wrap;font-size:12px;color:var(--muted);margin-top:8px}
.bar{height:8px;border-radius:99px;background:#ffffff12;margin-top:10px;overflow:hidden}
.bar i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,var(--brand),var(--brand2));transition:width .6s}
.chip{font-size:12px;padding:3px 11px;border-radius:99px;white-space:nowrap}
.chip.on{background:#065f4655;color:#6ee7b7}
.chip.wait{background:#78350f66;color:#fcd34d}
.chip.off{background:#7f1d1d55;color:#fca5a5}

.foot{max-width:1200px;margin:0 auto;padding:26px 20px;text-align:center;color:var(--muted);font-size:13px;border-top:1px solid var(--line);position:relative;z-index:2}
.foot b{color:var(--brand)}

@media(max-width:600px){
  .hero-inner{padding-top:30px}
  .grid{grid-template-columns:1fr}
  .card-foot .badge{font-size:11px}
  .nav-links a{padding:6px 10px;font-size:13px}
  .form-wrap{padding:20px}
  .p-head{flex-direction:column}
}

/* ===== 广告基础 ===== */
.ad-box { margin: 12px 0; }
.ad-item { margin-bottom: 8px; }
.ad-item:last-child { margin-bottom: 0; }
.ad-item img,
.ad-slide img,
.ad-double-item img,
.ad-popup-box img,
.ad-float img { display: block; width: 100%; height: auto; border-radius: 10px; }
.ad-text { display: inline-block; padding: 8px 14px; border-radius: 6px; text-decoration: none; margin: 4px;
  background: rgba(129,140,248,.15); color: #c7d2fe; }

/* ===== 双排广告 ===== */
.ad-double { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
@media (max-width: 640px) { .ad-double { grid-template-columns: 1fr; } }

/* ===== 轮播广告 ===== */
.ad-slider { position: relative; overflow: hidden; border-radius: 12px; margin: 14px 0; }
.ad-slider-track { display: flex; transition: transform 0.4s ease; }
.ad-slide { flex: 0 0 100%; min-width: 100%; }
.ad-slide img { width: 100%; display: block; }
.ad-prev, .ad-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.45); color: #fff; border: 0; font-size: 22px; line-height: 1;
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer; transition: .2s;
}
.ad-prev:hover, .ad-next:hover { background: rgba(129,140,248,.85); }
.ad-prev { left: 8px; } .ad-next { right: 8px; }
.ad-dots { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; }
.ad-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); margin: 0 3px; cursor: pointer; transition: .2s; }
.ad-dot.active { background: #fff; width: 20px; border-radius: 4px; }

/* ===== 弹窗 ===== */
.ad-popup {
  position: fixed; inset: 0; z-index: 9999;
  display: none; align-items: center; justify-content: center;
}
.ad-popup-mask { position: absolute; inset: 0; background: rgba(0,0,0,.7); }
.ad-popup-box { position: relative; z-index: 2; max-width: 90%; width: 520px; padding: 14px;
  background: #121727; border-radius: 14px; box-shadow: 0 20px 80px rgba(0,0,0,.5); }
.ad-popup-box img { border-radius: 10px; }
.ad-popup-close {
  position: absolute; top: -12px; right: -12px; width: 30px; height: 30px;
  background: #fff; border: 0; border-radius: 50%; cursor: pointer; font-size: 18px; line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,.3); z-index: 3;
}

/* ===== 悬浮 ===== */
.ad-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 999;
  background: #121727; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.4);
  padding: 8px; display: none;
}
.ad-float img { max-width: 200px; border-radius: 8px; }
.ad-float-close {
  position: absolute; top: -8px; right: -8px; width: 24px; height: 24px;
  background: #333; color: #fff; border: 0; border-radius: 50%; cursor: pointer;
  font-size: 14px; line-height: 24px;
}
@media (max-width: 640px) { .ad-float img { max-width: 140px; } }
/* 榜单首字小图标 */
.fav-mini{width:20px;height:20px;border-radius:6px;display:flex;align-items:center;justify-content:center;
  font-size:11px;font-weight:800;color:#fff;background:var(--c);flex-shrink:0}
/* 左侧分类首字图标 */
.cat-nav a{display:flex;align-items:center;gap:8px}
.cat-ico{width:20px;height:20px;border-radius:6px;display:flex;align-items:center;justify-content:center;
  font-size:11px;font-weight:800;color:#fff;background:var(--c);flex-shrink:0}