*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  font-family:-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei','Helvetica Neue',sans-serif;
  min-height:100vh;overflow-x:hidden;color:#1f2430;
  background:
    radial-gradient(ellipse 42% 26% at 14% 16%,rgba(255,171,214,.26),transparent 64%),
    radial-gradient(ellipse 38% 24% at 86% 20%,rgba(158,187,255,.24),transparent 60%),
    linear-gradient(135deg,#fff2f8 0%,#f3edff 42%,#edf8ff 100%);
  background-attachment:fixed;
}
body::before{
  content:'';position:fixed;inset:0;pointer-events:none;opacity:.42;
  background-image:
    radial-gradient(circle at 12% 26%,rgba(255,255,255,.95) 0 1px,transparent 2px),
    radial-gradient(circle at 78% 18%,rgba(255,154,205,.45) 0 2px,transparent 3px),
    radial-gradient(circle at 88% 64%,rgba(120,164,255,.38) 0 1.5px,transparent 3px);
  background-size:130px 130px,190px 190px,170px 170px;
}
a{text-decoration:none;color:inherit}
.page{position:relative;z-index:1;max-width:920px;margin:0 auto;padding:18px 16px 44px}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.back{
  display:inline-flex;align-items:center;gap:6px;height:38px;padding:0 14px;border-radius:999px;
  background:rgba(255,255,255,.72);border:1px solid rgba(255,255,255,.82);
  box-shadow:0 8px 24px rgba(116,94,177,.08);font-size:13px;font-weight:700;color:#5c5d72;
}
.brand{font-size:12px;color:#9a91b8;font-weight:700;letter-spacing:1px}
.hero{
  border-radius:26px;padding:28px 20px 24px;overflow:hidden;position:relative;color:#fff;
  background:var(--hero-gradient);
  box-shadow:0 18px 48px var(--shadow-color),inset 0 1px 0 rgba(255,255,255,.38);
}
.hero::before{
  content:'';position:absolute;right:-44px;top:-48px;width:170px;height:170px;border-radius:50%;
  background:rgba(255,255,255,.17);
}
.hero::after{
  content:'';position:absolute;inset:0;
  background:
    radial-gradient(circle at 82% 22%,rgba(255,255,255,.25) 0 2px,transparent 3px),
    radial-gradient(circle at 18% 78%,rgba(255,255,255,.18) 0 1.5px,transparent 3px),
    linear-gradient(135deg,rgba(255,255,255,.18),transparent 50%);
  background-size:58px 58px,82px 82px,100% 100%;
}
.hero-inner{position:relative;z-index:1}
.hero-icon{
  width:64px;height:64px;border-radius:22px;display:flex;align-items:center;justify-content:center;
  background:
    radial-gradient(circle at 28% 22%,rgba(255,255,255,.58),transparent 28%),
    rgba(255,255,255,.24);
  border:1px solid rgba(255,255,255,.38);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.42),
    0 12px 28px rgba(40,30,80,.14),
    0 0 0 8px rgba(255,255,255,.08);
  font-size:30px;margin-bottom:14px;position:relative;
}
.hero-icon::before{
  content:'';position:absolute;inset:-9px;border-radius:29px;
  background:radial-gradient(circle at 50% 50%,rgba(255,255,255,.22),transparent 62%);
  z-index:-1;
}
.hero-icon::after{
  content:'✦';position:absolute;right:-5px;top:-7px;width:20px;height:20px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.88);color:var(--icon-accent,#8b5cf6);
  font-size:11px;font-weight:900;
  box-shadow:0 4px 12px rgba(60,45,110,.14);
}
.hero h1{font-size:28px;line-height:1.2;font-weight:900;letter-spacing:1px;margin-bottom:8px}
.hero p{font-size:14px;line-height:1.7;opacity:.94;font-weight:600;max-width:560px}
.section{
  margin-top:18px;border-radius:24px;padding:16px 14px 18px;
  background:linear-gradient(145deg,rgba(255,255,255,.70),rgba(255,248,253,.48));
  border:1px solid rgba(255,255,255,.78);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  box-shadow:0 14px 42px rgba(142,103,210,.10),inset 0 1px 0 rgba(255,255,255,.76);
}
.section-title{display:flex;align-items:center;justify-content:center;gap:10px;margin:2px 0 16px}
.section-title::before,.section-title::after{content:'';height:1px;flex:1;background:linear-gradient(90deg,transparent,rgba(139,92,246,.16),transparent)}
.section-title span{font-size:15px;font-weight:900;color:#332d45;white-space:nowrap}
.card-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.card,.card-featured{
  background:rgba(255,255,255,.88);border:1px solid rgba(255,255,255,.86);border-radius:16px;
  min-height:70px;padding:13px 12px;display:flex;align-items:center;gap:10px;
  box-shadow:0 5px 18px rgba(80,70,125,.05);transition:transform .25s,box-shadow .25s,background .25s;
}
.card:hover,.card-featured:hover{transform:translateY(-2px);background:rgba(255,255,255,.96);box-shadow:0 10px 28px rgba(103,92,170,.12)}
.ic{width:46px;height:46px;border-radius:13px;flex-shrink:0;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#f0e7ff;color:#8b5cf6;font-size:21px}
.ic img{width:100%;height:100%;object-fit:cover}
.card-text,.feat-info{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.name,.feat-name{font-size:14px;font-weight:800;color:#2d3436;line-height:1.3;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}
.sub,.feat-desc{font-size:11px;color:#8395a7;font-weight:600;line-height:1.35;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}
.tag,.extract{font-size:10px;font-weight:700;padding:2px 9px;border-radius:999px;align-self:flex-start}
.tag.r1{background:rgba(102,126,234,.10);color:#667eea}
.tag.r2,.extract{background:rgba(238,90,111,.10);color:#ee5a6f}
.feat-badge{flex-shrink:0;background:var(--hero-gradient);color:#fff;font-size:10px;font-weight:800;padding:5px 12px;border-radius:999px}
.empty{padding:34px 14px;text-align:center;color:#8a839b;font-size:13px;font-weight:700;line-height:1.8}
.loading{padding:30px 14px;text-align:center;color:#8a839b;font-size:13px;font-weight:700}
.key-overlay{
  position:fixed;inset:0;z-index:99;display:none;align-items:center;justify-content:center;padding:20px;
  background:rgba(48,34,74,.30);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
}
.key-overlay.active{display:flex}
.key-modal{
  width:min(82vw,390px);position:relative;padding:30px 22px 24px;text-align:center;border-radius:24px;
  background:linear-gradient(145deg,rgba(255,255,255,.94),rgba(255,241,249,.90));
  border:1px solid rgba(255,255,255,.92);box-shadow:0 22px 64px rgba(90,57,135,.22);
}
.key-modal::before{
  content:'';position:absolute;inset:0;pointer-events:none;border-radius:inherit;
  background:radial-gradient(circle at 82% 14%,rgba(255,168,214,.26),transparent 28%),radial-gradient(circle at 14% 84%,rgba(167,143,255,.20),transparent 28%);
}
.key-back{
  position:relative;z-index:1;display:inline-flex;align-items:center;gap:4px;border:0;background:transparent;
  color:#8b7d9d;font-size:12px;font-weight:700;cursor:pointer;margin-bottom:12px;
}
.key-icon{
  position:relative;z-index:1;width:66px;height:66px;margin:0 auto 14px;display:flex;align-items:center;justify-content:center;
  border-radius:22px;color:#fff;font-size:29px;background:linear-gradient(135deg,#ff6fae,#a16cff);
  box-shadow:0 12px 30px rgba(206,92,178,.28),0 0 0 8px rgba(255,143,199,.10);
}
.key-modal h2,.key-modal form,.key-error{position:relative;z-index:1}
.key-modal h2{font-size:20px;color:#3b304a;margin-bottom:16px}
.key-tip{
  position:relative;z-index:1;display:flex;align-items:center;justify-content:center;gap:7px;
  width:100%;appearance:none;-webkit-appearance:none;cursor:pointer;
  margin:-4px 0 14px;padding:10px 12px;border-radius:14px;
  background:linear-gradient(135deg,rgba(255,239,248,.92),rgba(242,231,255,.88));
  border:1px solid rgba(255,255,255,.82);color:#bd4f94;font-size:13px;font-weight:800;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.76),0 8px 20px rgba(182,102,190,.10);
  transition:transform .22s,box-shadow .22s;
}
.key-tip:hover{transform:translateY(-1px);box-shadow:inset 0 1px 0 rgba(255,255,255,.76),0 12px 24px rgba(182,102,190,.15)}
.key-tip i{font-size:17px;color:#a16cff}
.key-modal form{display:flex;flex-direction:column;gap:10px}
.key-modal input{
  width:100%;height:46px;padding:0 14px;border-radius:13px;border:1px solid rgba(197,172,218,.50);
  outline:0;background:rgba(255,255,255,.82);font-size:14px;color:#493d58;text-align:center;
}
.key-modal input:focus{border-color:#c574e8;box-shadow:0 0 0 3px rgba(197,116,232,.12)}
.key-modal form button{
  height:46px;border:0;border-radius:13px;color:#fff;font-weight:800;font-size:14px;cursor:pointer;
  background:linear-gradient(135deg,#ff6fae,#a16cff);box-shadow:0 10px 22px rgba(190,94,205,.20);
}
.key-error{min-height:18px;margin-top:9px;font-size:12px;font-weight:700;color:#e0567b}
.key-qr-overlay{
  position:fixed;inset:0;z-index:130;display:none;align-items:center;justify-content:center;padding:20px;
  background:rgba(48,34,74,.38);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
}
.key-qr-overlay.active{display:flex}
.key-qr-modal{
  width:min(86vw,330px);position:relative;text-align:center;border-radius:24px;padding:26px 20px 22px;
  background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(255,242,249,.94));
  border:1px solid rgba(255,255,255,.92);box-shadow:0 22px 62px rgba(90,57,135,.24);
}
.key-qr-close{
  position:absolute;right:12px;top:12px;width:30px;height:30px;border:0;border-radius:50%;cursor:pointer;
  display:flex;align-items:center;justify-content:center;background:rgba(139,92,246,.10);color:#8b5cf6;font-size:17px;
}
.key-qr-icon{
  width:48px;height:48px;margin:0 auto 10px;border-radius:17px;display:flex;align-items:center;justify-content:center;
  color:#fff;font-size:24px;background:linear-gradient(135deg,#20c66b,#a16cff);
  box-shadow:0 10px 24px rgba(87,143,179,.20);
}
.key-qr-modal h3{font-size:19px;color:#3b304a;margin-bottom:14px}
.key-qr-box{
  width:190px;height:190px;margin:0 auto 14px;padding:8px;border-radius:18px;
  background:#fff;border:1px solid rgba(197,172,218,.38);box-shadow:0 12px 28px rgba(90,57,135,.12);
}
.key-qr-box img{width:100%;height:100%;object-fit:contain;border-radius:12px}
.key-qr-placeholder{
  width:100%;height:100%;display:none;align-items:center;justify-content:center;border-radius:12px;
  background:rgba(139,92,246,.08);color:#8a7e97;font-size:13px;font-weight:800;
}
.key-qr-note{color:#7b6f8d;font-size:14px;font-weight:800;line-height:1.6}
.key-qr-note b{color:#bd4f94;font-size:16px}
@media(min-width:769px){
  .page{padding-top:26px}
  .card-grid{grid-template-columns:repeat(4,1fr);gap:14px}
  .card,.card-featured{min-height:82px;flex-direction:column;text-align:center;padding:16px 12px}
  .card-text,.feat-info{align-items:center}
  .tag,.extract{align-self:center}
}
@media(max-width:600px){
  .key-modal{width:min(82vw,320px)}
}
@media(max-width:400px){
  .page{padding-left:12px;padding-right:12px}
  .hero{padding:24px 18px 22px;border-radius:22px}
  .hero h1{font-size:24px}
  .section{padding:13px 10px 16px;border-radius:20px}
  .card-grid{gap:8px}
  .card,.card-featured{padding:11px 9px;border-radius:14px}
  .ic{width:42px;height:42px;border-radius:12px}
  .name,.feat-name{font-size:13px}
}
