/* PanShare — 静态站样式（参考 panshare.me 风格，纯本地无外链） */
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;background:#f9fafb;color:#1f2937;line-height:1.6;-webkit-font-smoothing:antialiased}
a{color:#2563eb;text-decoration:none}
a:hover{color:#1d4ed8}
.wrap{max-width:1200px;margin:0 auto;padding:0 24px}

/* ========== 顶栏 ========== */
.topbar{background:#fff;border-bottom:1px solid #e5e7eb;position:sticky;top:0;z-index:50}
.topbar .wrap{display:flex;align-items:center;justify-content:space-between;height:64px}
.brand{display:flex;align-items:center;gap:10px;font-weight:700;color:#111}
.logo{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:8px;background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff;font-size:18px}
.brand-name{font-size:18px}
.brand-name em{font-style:normal;color:#9ca3af;font-weight:500;font-size:13px;margin-left:2px}
.nav{display:flex;gap:28px;align-items:center}
.nav a{color:#4b5563;font-size:14px;font-weight:500;display:flex;align-items:center}
.nav a.active,.nav a:hover{color:#2563eb}

/* ========== Hero ========== */
.hero{padding:80px 0 60px;text-align:center;background:radial-gradient(ellipse at top,#eff6ff 0%,#f9fafb 60%);}
.badge{display:inline-flex;align-items:center;gap:8px;padding:6px 14px;background:#fff;border:1px solid #e5e7eb;border-radius:999px;font-size:13px;color:#6b7280;margin-bottom:24px}
.dot{width:6px;height:6px;border-radius:50%;background:#3b82f6;box-shadow:0 0 0 4px rgba(59,130,246,.18);animation:pulse 2s infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.5}}
.hero h1{font-size:clamp(28px,4.5vw,52px);font-weight:800;line-height:1.2;color:#111;margin-bottom:20px}
.accent{color:#2563eb}
.hero .sub{font-size:clamp(14px,1.6vw,16px);color:#6b7280;max-width:680px;margin:0 auto 32px}

.searchbox{display:flex;align-items:center;max-width:680px;margin:0 auto;background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:6px 6px 6px 18px;box-shadow:0 8px 24px rgba(15,23,42,.06);transition:.2s}
.searchbox:focus-within{border-color:#93c5fd;box-shadow:0 8px 28px rgba(37,99,235,.12)}
.searchbox .si{flex-shrink:0}
.searchbox input{flex:1;border:0;outline:0;font-size:15px;padding:10px 12px;background:transparent;color:#111}
.searchbox input::placeholder{color:#9ca3af}
#searchBtn{background:#2563eb;color:#fff;border:0;border-radius:10px;padding:10px 22px;font-size:14px;font-weight:600;cursor:pointer;transition:.2s}
#searchBtn:hover{background:#1d4ed8}

.cats-row{display:flex;flex-wrap:wrap;justify-content:center;margin-top:24px;gap:10px}
.chip{padding:7px 14px;background:#fff;border:1px solid #e5e7eb;border-radius:999px;font-size:13px;color:#4b5563;cursor:pointer;transition:.15s}
.chip:hover{border-color:#93c5fd;color:#2563eb}
.chip.active{background:#2563eb;color:#fff;border-color:#2563eb}

/* ========== 主体 ========== */
.content{padding:30px 0 80px}
.grid{display:grid;grid-template-columns:240px 1fr;gap:24px}

/* 侧栏 */
.sidebar{position:sticky;top:84px;align-self:start}
.card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:18px}
.card.mt{margin-top:16px}
.card-head{font-weight:700;font-size:15px;margin-bottom:14px;display:flex;align-items:center;gap:8px;color:#111}
.card-head .ic{font-size:18px}
#catList{list-style:none}
#catList li{display:flex;align-items:center;justify-content:space-between;padding:8px 10px;border-radius:8px;cursor:pointer;font-size:14px;color:#374151;transition:.12s}
#catList li:hover{background:#f3f4f6}
#catList li.active{background:#eff6ff;color:#2563eb;font-weight:600}
#catList li span.count{background:#f3f4f6;color:#6b7280;font-size:12px;padding:1px 8px;border-radius:10px;font-weight:500}
#catList li.active span.count{background:#dbeafe;color:#2563eb}

.stats{display:grid;grid-template-columns:1fr;gap:10px}
.stats > div{display:flex;justify-content:space-between;align-items:baseline;padding:8px 10px;background:#f9fafb;border-radius:8px}
.stats strong{font-size:18px;color:#2563eb;font-weight:700}
.stats span{font-size:12px;color:#6b7280}

.tips{padding-left:20px;font-size:13px;color:#4b5563;line-height:1.9}
.tips li{margin-bottom:4px}

/* 列表区 */
.main-bar{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}
.main-bar h2{font-size:20px;font-weight:700;color:#111}
.bar-tools select{padding:6px 10px;border:1px solid #d1d5db;border-radius:8px;font-size:13px;background:#fff;cursor:pointer;color:#374151}

.grid-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:18px}
.card-r{background:#fff;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;transition:.2s;display:flex;flex-direction:column}
.card-r:hover{border-color:#93c5fd;transform:translateY(-2px);box-shadow:0 10px 28px rgba(15,23,42,.08)}
.cover{height:140px;background:linear-gradient(135deg,#dbeafe,#bfdbfe);display:flex;align-items:center;justify-content:center;font-size:42px;color:#2563eb;position:relative;overflow:hidden}
.cover::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 30% 20%,rgba(255,255,255,.5),transparent 50%)}
.cat-badge{position:absolute;top:10px;left:10px;background:rgba(255,255,255,.92);color:#1f2937;font-size:11px;padding:3px 8px;border-radius:6px;font-weight:600;backdrop-filter:blur(4px)}
.body-r{padding:14px 16px 16px;flex:1;display:flex;flex-direction:column}
.body-r h3{font-size:14.5px;font-weight:700;color:#111;line-height:1.45;margin-bottom:8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.meta{display:flex;justify-content:space-between;color:#6b7280;font-size:12px;margin-bottom:12px}
.meta .size{color:#2563eb;font-weight:600}
.btns{display:flex;gap:8px;margin-top:auto}
.btn-c{flex:1;padding:8px 0;border-radius:8px;border:0;font-size:13px;font-weight:600;cursor:pointer;transition:.15s;text-align:center}
.btn-copy{background:#eff6ff;color:#2563eb;border:1px solid #bfdbfe}
.btn-copy:hover{background:#dbeafe}
.btn-go{background:#2563eb;color:#fff}
.btn-go:hover{background:#1d4ed8}
.btn-copy.copied{background:#dcfce7;color:#16a34a;border-color:#86efac}

.no-results{text-align:center;color:#9ca3af;padding:60px 0;font-size:14px}

/* ========== 页脚 ========== */
footer{background:#fff;border-top:1px solid #e5e7eb;padding:32px 0;text-align:center;font-size:13px;color:#6b7280}
footer p{margin:6px 0}
footer .links a{color:#2563eb}
#backTop{position:fixed;right:24px;bottom:24px;width:42px;height:42px;border-radius:50%;background:#2563eb;color:#fff;border:0;font-size:18px;cursor:pointer;box-shadow:0 6px 18px rgba(37,99,235,.32);opacity:0;pointer-events:none;transition:.2s;z-index:40}
#backTop.show{opacity:1;pointer-events:auto}

/* ========== 响应式 ========== */
@media (max-width:880px){
  .grid{grid-template-columns:1fr}
  .sidebar{position:static}
  .stats{grid-template-columns:1fr 1fr 1fr}
  .stats > div{flex-direction:column;align-items:flex-start;gap:2px}
  .hero{padding:48px 0 36px}
  .nav a{font-size:13px}
  .brand-name{display:none}
}
@media (max-width:480px){
  .wrap{padding:0 16px}
  .grid-cards{grid-template-columns:1fr 1fr;gap:12px}
  .cover{height:110px;font-size:32px}
  .body-r{padding:10px 12px 12px}
  .body-r h3{font-size:13.5px}
  .btn-c{padding:7px 0;font-size:12px}
}