/* 皮皮 AI 导航 —— 参考 naobang.com 的首页视觉（独立样式，不改动原版 CSS） */
:root {
  --accent: #ff4d5a;
  --accent-soft: #fff0f1;
  --ink: #1f2430;
  --ink-2: #4a5266;
  --muted: #8a93a6;
  --line: #e9edf4;
  --bg: #f5f7fb;
  --card: #ffffff;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(23, 32, 61, .05);
  --shadow-hover: 0 10px 26px rgba(23, 32, 61, .13);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
button, input { font: inherit; }

/* ---------- 顶部胶囊导航 ---------- */
.topbar-wrap { position: relative; z-index: 20; padding: 12px 20px 0; }
.topbar {
  max-width: 1400px; margin: 0 auto; height: 46px; padding: 0 8px 0 14px;
  display: flex; align-items: center; gap: 18px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 24px; backdrop-filter: blur(12px); color: #eef1ff;
}
.topbar .brand { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.topbar .brand img { width: 26px; height: 26px; display: block; border-radius: 7px; object-fit: contain; }
.topbar .brand b { font-size: 15px; letter-spacing: .3px; color: #fff; }
.topbar .brand em { font-style: normal; font-size: 11px; color: #ffd9a8; background: rgba(255, 170, 60, .18); padding: 1px 6px; border-radius: 4px; }
.topbar .navs { display: flex; align-items: center; gap: 20px; flex: 1 1 auto; overflow: hidden; }
.topbar .navs a { font-size: 13px; color: #d9def5; white-space: nowrap; transition: color .2s; }
.topbar .navs a:hover { color: #fff; }
.topbar .navs a.hot { color: #ffd76a; }
.topbar .slogan { font-size: 12px; color: #b7c0e0; white-space: nowrap; }
.topbar .tools { display: flex; gap: 6px; flex: 0 0 auto; }
.topbar .tools a {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  color: #e9edff; font-size: 15px; transition: background .2s;
}
.topbar .tools a:hover { background: rgba(255, 255, 255, .18); }

/* ---------- 星空 Hero ---------- */
.hero {
  position: relative; margin-top: -58px; padding: 92px 20px 26px;
  background:
    radial-gradient(ellipse 60% 55% at 50% 12%, rgba(90, 82, 190, .55), transparent 70%),
    linear-gradient(180deg, #0b1030 0%, #131a44 58%, #222a52 100%);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 18%, #fff 99%, transparent),
    radial-gradient(1px 1px at 18% 62%, #cdd8ff 99%, transparent),
    radial-gradient(2px 2px at 27% 28%, #fff 99%, transparent),
    radial-gradient(1px 1px at 36% 76%, #ffe4a3 99%, transparent),
    radial-gradient(1.5px 1.5px at 44% 14%, #fff 99%, transparent),
    radial-gradient(1px 1px at 55% 55%, #cdd8ff 99%, transparent),
    radial-gradient(2px 2px at 63% 30%, #fff 99%, transparent),
    radial-gradient(1px 1px at 71% 70%, #ffd8a8 99%, transparent),
    radial-gradient(1.5px 1.5px at 80% 20%, #fff 99%, transparent),
    radial-gradient(1px 1px at 88% 58%, #cdd8ff 99%, transparent),
    radial-gradient(2px 2px at 94% 34%, #fff 99%, transparent),
    radial-gradient(1px 1px at 12% 88%, #fff 99%, transparent),
    radial-gradient(1px 1px at 48% 84%, #fff 99%, transparent),
    radial-gradient(1px 1px at 76% 90%, #fff 99%, transparent);
  opacity: .8;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 42%, rgba(120, 110, 255, .16), transparent 60%);
}
.hero-inner { position: relative; z-index: 2; max-width: 1400px; margin: 0 auto; text-align: center; }
.hero h1 {
  margin: 0 0 18px; color: #fff; font-size: 38px; font-weight: 700; letter-spacing: 2px;
  text-shadow: 0 4px 24px rgba(90, 100, 255, .45);
}
.hero h1 span { color: #ffd76a; }
.engine-tabs { display: flex; justify-content: center; gap: 28px; margin-bottom: 16px; }
.engine-tabs span {
  position: relative; padding: 4px 2px 9px; font-size: 14px; color: #c3cbe8;
  cursor: pointer; transition: color .2s;
}
.engine-tabs span:hover, .engine-tabs span.act { color: #fff; }
.engine-tabs span.act::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%);
  width: 18px; height: 2px; border-radius: 2px; background: #fff;
}
.hero-search {
  width: min(560px, 92%); height: 48px; margin: 0 auto; display: flex;
  background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: 0 12px 34px rgba(5, 10, 40, .32);
}
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 18px; color: var(--ink); background: transparent; }
.hero-search input::placeholder { color: #a4abc0; }
.hero-search button {
  width: 58px; border: 0; background: var(--accent); color: #fff; cursor: pointer;
  font-size: 17px; transition: background .2s;
}
.hero-search button:hover { background: #e83b49; }
.hotwords { margin-top: 12px; color: #b9c2e4; font-size: 12px; }
.hotwords a { color: #dbe1ff; margin: 0 8px; }
.hotwords a:hover { color: #ffd76a; }
.notice {
  width: min(620px, 94%); margin: 22px auto 0; padding: 9px 16px;
  display: flex; align-items: center; gap: 9px; justify-content: center;
  background: rgba(255, 255, 255, .94); border-radius: 22px; color: #4a5266;
  font-size: 12px; box-shadow: 0 6px 20px rgba(5, 10, 40, .18);
}
.notice .ico { font-size: 14px; }
.notice .txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 精选推荐快链 ---------- */
.quick {
  position: relative; z-index: 3; max-width: 1400px; margin: -8px auto 0; padding: 0 20px;
}
.quick-box {
  background: rgba(255, 255, 255, .82); border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 14px; padding: 13px 16px; box-shadow: 0 8px 26px rgba(23, 32, 61, .09);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.quick-box .qh { font-size: 12px; color: var(--ink-2); font-weight: 600; margin-right: 4px; white-space: nowrap; }
.quick-box .qh b { color: var(--accent); }
.quick-box a {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 5px;
  background: #f6f8fd; border: 1px solid #eef1f8; border-radius: 20px;
  font-size: 12px; color: var(--ink-2); white-space: nowrap; transition: all .2s;
}
.quick-box a:hover { background: #fff; border-color: #ffd0d5; color: var(--accent); transform: translateY(-1px); }
.quick-box a img { width: 18px; height: 18px; border-radius: 50%; object-fit: contain; }
.quick-box .qmore { margin-left: auto; font-size: 12px; color: var(--accent); border: 1px solid #ffd0d5; background: var(--accent-soft); padding: 3px 10px; border-radius: 16px; }

/* ---------- 本期新收录 ---------- */
.newpick { position: relative; z-index: 2; max-width: 1400px; margin: 14px auto 0; padding: 0 20px; }
.np-box { background: rgba(255, 255, 255, .9); border: 1px solid #edf0f6; border-radius: 14px; padding: 13px 16px 16px; box-shadow: 0 8px 26px rgba(23, 32, 61, .06); }
.np-hd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 11px; }
.np-hd b { font-size: 15px; color: var(--ink); }
.np-hd span { font-size: 12px; color: var(--ink-2); }
.np-hd a { margin-left: auto; font-size: 12px; color: var(--accent); font-weight: 600; white-space: nowrap; }
.np-hd a:hover { text-decoration: underline; }
.np-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.np-card { position: relative; display: flex; align-items: center; gap: 9px; min-width: 0; padding: 9px 10px; background: #f8faff; border: 1px solid #eef1f8; border-radius: 10px; transition: transform .18s, border-color .18s, background .18s; }
.np-card:hover { transform: translateY(-2px); border-color: #ffd0d5; background: #fff; }
.np-card img { width: 30px; height: 30px; border-radius: 8px; object-fit: contain; flex: 0 0 auto; }
.np-t { min-width: 0; display: flex; flex-direction: column; gap: 2px; padding-right: 26px; }
.np-t b { font-size: 12.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-t span { font-size: 11px; color: var(--ink-3, #98a1b5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-card em { position: absolute; top: 5px; right: 6px; font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: .4px; color: #fff; background: var(--accent); border-radius: 4px; padding: 1px 4px; }
@media (max-width: 1100px) { .np-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .np-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .np-t { padding-right: 0; }
  .np-t span { padding-right: 30px; }
  .np-card em { top: auto; bottom: 5px; right: 6px; font-size: 8px; padding: 0 3px; }
}
@media (max-width: 420px) { .np-hd span { display: none; } .np-card img { width: 26px; height: 26px; } }

/* ---------- 主体三栏 ---------- */
.layout {
  max-width: 1400px; margin: 22px auto 0; padding: 0 20px 40px;
  display: grid; grid-template-columns: 164px minmax(0, 1fr) 236px; gap: 18px; align-items: start;
}
.side {
  position: sticky; top: 16px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 8px; box-shadow: var(--shadow);
}
.side .sh { font-size: 12px; color: var(--muted); padding: 2px 10px 10px; }
.side a {
  display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 8px;
  font-size: 12.5px; color: var(--ink-2); transition: all .18s;
}
.side a:hover, .side a.act { background: #f3f5ff; color: #4b4fd6; }
.side a .ci { width: 16px; text-align: center; font-size: 13px; }
.side a .cn2 { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side a i { margin-left: auto; flex: 0 0 auto; font-style: normal; font-size: 11px; color: #b3bacb; }
.side .collapse { display: block; margin: 8px auto 0; padding: 5px 0 0; border-top: 1px solid var(--line); text-align: center; font-size: 11px; color: var(--muted); cursor: pointer; }

.main-col { min-width: 0; }
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px 18px 18px; margin-bottom: 16px;
}
.panel-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.panel-hd h2 { margin: 0; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.panel-hd h2 .fire { color: var(--accent); font-size: 16px; }
.panel-hd .sub { font-size: 11px; color: var(--muted); }
.panel-hd .right { margin-left: auto; font-size: 12px; color: var(--muted); }
.badge {
  font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 5px;
  background: var(--accent-soft); color: var(--accent); border: 1px solid #ffdade;
}
.badge.blue { background: #eef2ff; color: #4b56c9; border-color: #dfe5ff; }
.grp-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.grp-tags span { font-size: 11px; color: var(--muted); background: #f5f7fb; border-radius: 5px; padding: 2px 8px; }

.cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.card {
  position: relative;
  display: flex; align-items: center; gap: 9px; min-width: 0; padding: 10px;
  background: #fff; border: 1px solid #edf0f6; border-radius: 10px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card[hidden] { display: none !important; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: #dfe4f5; }
.card > img { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; object-fit: contain; background: #f7f9fd; }
.card .ct { min-width: 0; }
.card .cn { font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .cd { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.loadMore { display: block; margin: 14px auto 0; padding: 5px 18px; border: 1px solid var(--line); border-radius: 16px; background: #fafbfe; color: var(--muted); font-size: 12px; cursor: pointer; }
.loadMore:hover { color: var(--accent); border-color: #ffd0d5; }

/* 卡片收费角标 + 分类说明（2026-11-07 信息扩充） */
.card .cd { padding-right: 32px; }
.cbadge {
  position: absolute; right: 7px; bottom: 8px; font-size: 9px; line-height: 1.2;
  padding: 2px 4px; border-radius: 4px; white-space: nowrap;
  background: #edf9f2; color: #1e9e63; border: 1px solid #d6efe2;
}
.cbadge.pay { background: #fff7ed; color: #d97d20; border-color: #ffe3c2; }
.cate-intro {
  font-size: 12px; line-height: 1.7; color: var(--muted);
  margin: -4px 0 12px; padding-left: 2px;
}

/* ---------- 右侧榜单 ---------- */
.rank { position: sticky; top: 16px; }
.rank-panel { background: linear-gradient(180deg, #fff3f4 0%, #fff 90px); border: 1px solid #ffe0e3; border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.rank-hd { display: flex; justify-content: center; gap: 22px; border-bottom: 1px solid #ffe6e8; padding-bottom: 10px; }
.rank-hd span { font-size: 13px; color: #9a8e93; cursor: pointer; position: relative; }
.rank-hd span.act { color: var(--accent); font-weight: 700; }
.rank-hd span.act::after { content: ""; position: absolute; left: 50%; bottom: -11px; transform: translateX(-50%); width: 18px; height: 2px; background: var(--accent); border-radius: 2px; }
.rank-list { padding-top: 8px; }
.rank-item { display: flex; align-items: center; gap: 8px; padding: 8px 6px; border-radius: 8px; transition: background .2s; }
.rank-item:hover { background: #fff5f6; }
.rank-item .no { width: 16px; flex: 0 0 16px; text-align: center; font-size: 12px; font-weight: 700; color: #c2a7ad; font-style: italic; }
.rank-item:nth-child(-n+3) .no { color: var(--accent); }
.rank-item > img { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 8px; object-fit: contain; background: #fff; }
.rank-item .rt { min-width: 0; }
.rank-item .rn { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-item .rd { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-more { display: block; text-align: center; margin-top: 8px; padding: 7px; background: var(--accent-soft); color: var(--accent); border-radius: 8px; font-size: 12px; }
.rank-more:hover { background: #ffe3e6; }
.rank-ad { margin-top: 12px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.rank-ad .adbox { background: linear-gradient(135deg, #4b56c9, #7c5ce0); color: #fff; padding: 18px 14px; }
.rank-ad .adbox b { font-size: 15px; }
.rank-ad .adbox p { margin: 6px 0 0; font-size: 11px; opacity: .85; line-height: 1.7; }

/* ---------- 页脚 ---------- */
.footer { background: #fff; border-top: 1px solid var(--line); padding: 26px 20px 30px; text-align: center; }
.footer .fbrand { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; }
.footer .fbrand img { width: 24px; height: 24px; border-radius: 6px; }
.footer .flinks { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin: 12px 0; font-size: 12px; color: var(--ink-2); }
.footer .flinks a:hover { color: var(--accent); }
.footer .copy { font-size: 11.5px; color: var(--muted); }

/* ---------- 回到顶部 ---------- */
.toTop {
  position: fixed; right: 22px; bottom: 26px; width: 38px; height: 38px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(23, 32, 61, .14);
  display: grid; place-items: center; color: var(--ink-2); cursor: pointer; opacity: 0;
  pointer-events: none; transition: opacity .2s; z-index: 30;
}
.toTop.show { opacity: 1; pointer-events: auto; }

/* ---------- 响应式 ---------- */
@media (max-width: 1240px) {
  .layout { grid-template-columns: 156px minmax(0, 1fr); }
  .rank { position: static; grid-column: 1 / -1; }
  .rank-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .rank-hd, .rank-more { grid-column: 1 / -1; }
  .rank-ad { grid-column: 1 / -1; }
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .topbar .slogan, .topbar .navs a:nth-child(n+4) { display: none; }
  .hero { padding-top: 86px; }
  .hero h1 { font-size: 30px; }
  .layout { grid-template-columns: 1fr; }
  .side { position: static; display: flex; flex-wrap: wrap; gap: 4px; padding: 10px; }
  .side .sh { width: 100%; padding: 0 4px 6px; }
  .side a { padding: 5px 9px; border: 1px solid var(--line); }
  .side a i, .side .collapse { display: none; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .topbar-wrap { padding: 10px 12px 0; }
  .topbar { gap: 10px; }
  .topbar .brand em, .topbar .navs a:nth-child(n+3) { display: none; }
  .hero { padding: 78px 14px 24px; margin-top: -56px; }
  .hero h1 { font-size: 23px; letter-spacing: 0; }
  .engine-tabs { gap: 16px; }
  .engine-tabs span { font-size: 12px; }
  .hero-search { width: 100%; height: 44px; }
  .notice { margin-top: 16px; font-size: 11px; }
  .quick { padding: 0 12px; }
  .quick-box { padding: 10px; }
  .quick-box .qh { width: 100%; }
  .quick-box a:nth-child(n+8) { display: none; }
  .layout { padding: 0 12px 28px; margin-top: 16px; gap: 12px; }
  .panel { padding: 13px 12px 15px; }
  .panel-hd { flex-wrap: nowrap; gap: 8px; }
  .panel-hd .sub, .panel-hd .right { display: none; }
  .panel-hd h2 { font-size: 15px; white-space: nowrap; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .card { padding: 8px; gap: 7px; }
  .card > img { width: 30px; height: 30px; flex-basis: 30px; }
  .card .cn { font-size: 12px; }
  .rank-panel { display: block; }
  .grp-tags { display: none; }
  .card .cd { padding-right: 26px; }
  .cbadge { right: 5px; bottom: 6px; font-size: 8px; padding: 1px 3px; }
  .cate-intro { font-size: 11px; margin-bottom: 10px; }
}
