:root{
  --bg:#fff6ee;
  --card:#ffffff;
  --ink:#403a42;
  --muted:#938a96;
  --line:#f3eaf2;
  --primary:#ff7a59;
  --primary-soft:#fff0e9;
  --accent:#19b3a6;
  /* 童趣多彩 */
  --pink:#ff8fab;
  --yellow:#ffce4f;
  --sky:#5ec5e8;
  --purple:#a78bfa;
}
*{box-sizing:border-box;margin:0;padding:0}
body{
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",Segoe UI,sans-serif;
  background:var(--bg);color:var(--ink);line-height:1.6;
}
a{color:inherit;text-decoration:none}

/* 装饰抬头 */
.hero{
  background:
    radial-gradient(circle at 18% 30%, rgba(255,255,255,.22) 0 12px, transparent 13px),
    radial-gradient(circle at 78% 22%, rgba(255,255,255,.18) 0 9px, transparent 10px),
    linear-gradient(120deg,#ffd56b 0%,#ff9a8b 26%,#ff8fab 50%,#a78bfa 74%,#5ec5e8 100%);
  color:#fff;padding:44px 20px 40px;text-align:center;position:relative;overflow:hidden;
  text-shadow:0 2px 10px rgba(120,40,90,.25);
}
.hero::before,.hero::after{
  content:"";position:absolute;border-radius:50%;background:rgba(255,255,255,.18);
}
.hero::before{width:220px;height:220px;top:-90px;left:-60px}
.hero::after{width:160px;height:160px;bottom:-70px;right:-40px}
.hero .badge{
  display:inline-block;font-size:13px;letter-spacing:2px;background:rgba(255,255,255,.28);
  padding:5px 15px;border-radius:999px;margin-bottom:14px;font-weight:600;
  backdrop-filter:blur(2px);
}
.hero h1{font-size:30px;font-weight:800;letter-spacing:1px}
.hero p{margin-top:10px;font-size:15px;opacity:.96}

.wrap{max-width:760px;margin:0 auto;padding:0 16px}
.section-title{
  display:flex;align-items:center;gap:10px;margin:28px 4px 14px;font-size:17px;font-weight:700;
}
.section-title .dot{width:8px;height:18px;border-radius:4px;background:var(--primary)}

/* 筛选 + 搜索 */
.toolbar{margin:20px 0 4px}
.search input{
  width:100%;border:1px solid var(--line);background:var(--card);
  border-radius:12px;padding:13px 16px;font-size:15px;outline:none;
  box-shadow:0 4px 18px rgba(20,20,40,.05);
}
.search input:focus{border-color:var(--primary)}
.cats{display:flex;gap:8px;overflow-x:auto;padding:12px 2px 4px;margin-top:8px;-webkit-overflow-scrolling:touch}
.cats::-webkit-scrollbar{display:none}
.chip{
  flex:none;border:1px solid var(--line);background:var(--card);color:var(--muted);
  font-size:13px;padding:7px 14px;border-radius:999px;cursor:pointer;white-space:nowrap;
  transition:all .15s;
}
.chip.active{background:var(--primary);border-color:var(--primary);color:#fff;font-weight:600}
.chip:hover{border-color:var(--primary)}
.count{font-size:13px;color:var(--muted);font-weight:400}
.empty{text-align:center;color:var(--muted);padding:40px 0;font-size:14px}

/* 列表（分类分组 + 可折叠） */
.list{display:flex;flex-direction:column;gap:12px}
.grp{background:var(--card);border-radius:14px;overflow:hidden;box-shadow:0 4px 18px rgba(20,20,40,.05)}
.grp-hd{
  display:flex;align-items:center;gap:9px;padding:13px 16px;cursor:pointer;user-select:none;
}
.grp-hd.static{cursor:default}
.grp-dot{width:11px;height:11px;border-radius:50%;flex:0 0 auto}
.grp-name{font-weight:800;font-size:15px;color:var(--ink)}
.grp-count{font-size:12px;color:var(--muted)}
.grp-fold{margin-left:auto;color:#cfc6d2;font-size:13px;transition:transform .2s}
.grp.collapsed .grp-fold{transform:rotate(-90deg)}
.grp-body .row{border-bottom:1px solid var(--line)}
.grp-body .row:last-child{border-bottom:none}
.grp.collapsed .grp-body{display:none}
.latest-grp{border:1px solid #cdeeea}
.row{
  display:flex;align-items:center;gap:14px;padding:16px 18px;border-bottom:1px solid var(--line);
  transition:background .15s;
}
.row:last-child{border-bottom:none}
.row:hover{background:var(--primary-soft)}
.row .main{flex:1;min-width:0}
.row .thumb{width:56px;height:56px;object-fit:cover;border-radius:10px;flex-shrink:0;background:var(--primary-soft)}
.detail .art-img{width:100%;height:auto;max-width:100%;margin:0 0 18px;display:block;border-radius:14px;box-shadow:0 4px 14px rgba(60,40,80,.08)}
.row .title{font-size:16px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.row .meta{margin-top:4px;font-size:12.5px;color:var(--muted)}
.row .tag{
  display:inline-block;background:var(--primary-soft);color:var(--primary);
  font-size:11px;padding:1px 8px;border-radius:6px;margin-right:8px;font-weight:600;
}
.row .go{
  flex:none;display:flex;align-items:center;gap:4px;color:var(--primary);font-size:13px;font-weight:600;
}
.row .go .arr{font-size:16px}

/* 详情页 */
.detail{max-width:760px;margin:0 auto;padding:22px 16px 40px}
.back{display:inline-block;color:var(--muted);font-size:14px;margin-bottom:14px}
.detail h1{font-size:23px;font-weight:800;line-height:1.4}
.detail .meta{margin:10px 0 18px;font-size:13px;color:var(--muted)}
.detail .desc{
  background:var(--card);border-radius:14px;padding:20px;box-shadow:0 4px 18px rgba(20,20,40,.05);
  font-size:15px;color:#374151;
}
.detail .desc p{margin-bottom:10px}
.btn-dl{
  display:block;text-align:center;background:var(--primary);color:#fff;font-weight:700;
  padding:15px;border-radius:12px;margin:20px 0;font-size:16px;box-shadow:0 6px 16px rgba(255,107,53,.3);
}
.btn-dl:active{transform:translateY(1px)}
.wx-card{
  background:var(--card);border:1px dashed #ffc7b0;border-radius:14px;padding:20px;
  display:flex;gap:16px;align-items:center;
}
.qr{
  width:96px;height:96px;border-radius:10px;background:#f1f3f5;flex:none;
  display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:11px;text-align:center;
}
.wx-card .txt b{color:var(--primary)}
.wx-card .txt p{font-size:13px;color:var(--muted);margin-top:4px}

footer{text-align:center;color:var(--muted);font-size:12px;padding:24px 16px 40px}
@media(max-width:520px){
  .hero h1{font-size:24px}
  .row .title{font-size:15px}
}

/* 论坛式「置顶」项：外观接近普通列表项，仅轻提示 */
.row.feat{
  background:#fffaf2;
  border-left:3px solid var(--primary);
}
.row.feat:hover{background:#fff3e2}
.badge-top{
  display:inline-block;background:var(--primary);color:#fff;
  font-size:11px;font-weight:700;line-height:1;
  padding:3px 7px;border-radius:5px;margin-right:8px;vertical-align:middle;
}

/* 详情页「在线生成」引导框（与微信领取卡区分：青绿色调） */
.gen-guide{
  background:linear-gradient(135deg,#e8f7f6 0%,#d6f0ef 100%);
  border:1px solid #b9e6e4;border-radius:14px;padding:18px;margin:20px 0;
}
.gen-guide .gg-tit{font-size:16px;font-weight:800;color:#0b7d7c}
.gen-guide .gg-desc{margin-top:8px;font-size:14px;color:#3a5a59;line-height:1.6}
.gen-guide .btn-gen{
  display:inline-block;background:var(--primary);color:#fff;font-weight:700;
  padding:13px 24px;border-radius:11px;margin:14px 0 0;font-size:15px;
  box-shadow:0 6px 16px rgba(255,107,53,.3);
}
.gen-guide .btn-gen:active{transform:translateY(1px)}

/* 微信卡引导小字 */
.wx-card .wx-tip{margin:7px 0 0;font-size:13px;color:var(--muted);line-height:1.5}
