:root{
  --bg:#f4f6f8;
  --bg-soft:#fafbfc;
  --surface:#ffffff;
  --surface-strong:#f7f8fa;
  --surface-dark:#241f14;
  --ink:#1f2329;
  --ink-soft:#66707f;
  --line:#e5e8eb;
  --accent:#ffd100;
  --accent-strong:#ffbf00;
  --accent-deep:#e5a900;
  --green:#2f7a3e;
  --shadow:0 18px 42px rgba(17,24,39,.08);
  --radius:18px;
}
*{box-sizing:border-box}
html{min-width:320px;scroll-behavior:smooth}
body{
  margin:0;
  color:var(--ink);
  font-family:"PingFang SC","Microsoft YaHei","Helvetica Neue",Arial,sans-serif;
  font-size:15px;
  letter-spacing:.01em;
  padding-bottom:96px;
  background:
    radial-gradient(circle at top right, rgba(255,209,0,.12), transparent 22%),
    linear-gradient(180deg,#f7f8fa 0%, #f4f6f8 22%, #fbfcfd 100%);
}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
button{
  border:1px solid rgba(34,27,15,.1);
  background:#fff;
  color:var(--ink);
  border-radius:14px;
  min-height:42px;
  padding:10px 14px;
  font-weight:800;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  line-height:1;
  transition:.18s ease;
}
button:hover,a:hover{border-color:#c9ced6;color:#111827;transform:translateY(-1px)}
button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid rgba(255,209,0,.35);outline-offset:2px}
button:disabled{opacity:.48;cursor:not-allowed}
.icon{width:18px;height:18px;flex:0 0 auto}

.page-bg{
  position:fixed;
  inset:0;
  z-index:-1;
  background:
    linear-gradient(120deg, rgba(255,255,255,.34) 0, rgba(255,255,255,0) 28%),
    radial-gradient(circle at 12% 24%, rgba(255,209,0,.12) 0 10px, transparent 11px),
    radial-gradient(circle at 82% 18%, rgba(255,209,0,.08) 0 9px, transparent 10px),
    linear-gradient(90deg, rgba(31,35,41,.04) 1px, transparent 1px),
    linear-gradient(rgba(31,35,41,.04) 1px, transparent 1px);
  background-size:auto,auto,auto,26px 26px,26px 26px;
  opacity:.8;
  pointer-events:none;
}

.site-header{
  position:sticky;
  top:0;
  z-index:20;
  min-height:78px;
  backdrop-filter:blur(14px);
  background:rgba(255,255,255,.88);
  border-bottom:1px solid rgba(17,24,39,.06);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px max(16px,calc((100vw - 1440px)/2 + 24px));
}
.brand{display:flex;align-items:center;gap:14px;min-width:0}
.brand-mark{
  width:50px;
  height:50px;
  border-radius:16px;
  background:linear-gradient(180deg,#ffe16b 0%, #ffd100 58%, #f0b700 100%);
  color:#1a1407;
  display:grid;
  place-items:center;
  font-weight:950;
  box-shadow:0 12px 28px rgba(207,156,0,.28), inset 0 -12px 24px rgba(138,101,0,.18);
}
.brand strong{display:block;font-size:20px;white-space:nowrap}
.brand em{display:block;color:var(--ink-soft);font-style:normal;font-size:12px;margin-top:3px}
.header-tags{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.header-tags span{
  border-radius:999px;
  background:rgba(34,27,15,.92);
  color:#ffe48a;
  padding:7px 12px;
  font-size:12px;
  font-weight:900;
  letter-spacing:.04em;
}

.page-shell{max-width:1440px;margin:0 auto;padding:24px}
.hero{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);
  gap:20px;
  align-items:stretch;
  background:
    linear-gradient(135deg, rgba(255,209,0,.12), rgba(255,255,255,.96) 34%),
    #fff;
  border:1px solid rgba(17,24,39,.06);
  border-radius:28px;
  padding:26px;
  box-shadow:var(--shadow);
  overflow:hidden;
  position:relative;
}
.hero::after{
  content:"";
  position:absolute;
  right:-70px;
  top:-54px;
  width:240px;
  height:240px;
  border-radius:999px;
  background:radial-gradient(circle, rgba(255,209,0,.22) 0%, rgba(255,209,0,0) 68%);
}
.hero-copy{position:relative;z-index:1}
.eyebrow{
  margin:0 0 8px;
  color:#9a6b00;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.09em;
}
.hero h1{margin:0;font-size:38px;line-height:1.14;letter-spacing:-.02em}
.hero p{margin:12px 0 0;color:var(--ink-soft);line-height:1.72;max-width:760px}
.hero-stats{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.hero-stats span{
  background:#ffffff;
  border:1px solid rgba(17,24,39,.08);
  border-radius:999px;
  padding:9px 12px;
  color:#434c5a;
  font-weight:900;
}
.hero-stats strong{color:#111827;margin-right:4px}
.hero-notes{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.hero-notes span{
  background:#1f2329;
  color:#ffffff;
  border-radius:999px;
  padding:8px 11px;
  font-size:12px;
  font-weight:850;
}
.hero-side{
  position:relative;
  z-index:1;
  display:grid;
  gap:14px;
  align-content:end;
}
.search-box{
  display:grid;
  grid-template-columns:minmax(0,1fr) 92px;
  gap:8px;
  background:#f7f8fa;
  border:1px solid rgba(17,24,39,.08);
  border-radius:20px;
  padding:10px;
}
.search-box label{
  height:46px;
  background:#fff;
  border:1px solid rgba(17,24,39,.08);
  border-radius:14px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 12px;
  min-width:0;
}
.search-box input{border:0;outline:0;min-width:0;width:100%;background:transparent}
.search-box button{
  background:linear-gradient(180deg,#ffd83b 0%, #ffc800 100%);
  border-color:#f0b300;
  color:#1e170a;
  box-shadow:inset 0 -8px 14px rgba(150,102,0,.12);
}
.merchant-panel{
  background:linear-gradient(180deg,#2f2819 0%, #1d170c 100%);
  color:#fff4c1;
  border-radius:22px;
  padding:18px;
  box-shadow:0 20px 36px rgba(43,31,0,.18);
}
.merchant-panel-head{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.merchant-dot{
  width:12px;
  height:12px;
  border-radius:999px;
  background:#ffd100;
  box-shadow:0 0 0 6px rgba(255,209,0,.12);
}
.merchant-panel strong{font-size:16px}
.merchant-panel ul{margin:0;padding-left:18px;color:#f6e8ae;line-height:1.7}
.merchant-panel li+li{margin-top:6px}

.category-tabs{
  display:flex;
  gap:10px;
  overflow:auto;
  padding:18px 2px 6px;
  margin:0 -2px;
  scrollbar-width:thin;
}
.category-tab{
  flex:0 0 auto;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(17,24,39,.08);
  border-radius:16px;
  padding:11px 14px;
  display:inline-flex;
  align-items:center;
  gap:9px;
  font-weight:900;
  box-shadow:0 8px 18px rgba(61,44,0,.05);
}
.category-tab em{
  font-style:normal;
  color:#5d6775;
  background:#f2f4f7;
  border-radius:999px;
  padding:4px 8px;
  font-size:12px;
}
.category-tab.active{
  background:linear-gradient(180deg,#272014 0%, #19140a 100%);
  color:#ffe48a;
  border-color:#272014;
}
.category-tab.active em{background:#ffd100;color:#241d11}

.result-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin:18px 0 14px;
}
.result-head h2{margin:0;font-size:24px;line-height:1.22}
.result-head span{
  background:#fff;
  border:1px solid rgba(17,24,39,.08);
  border-radius:999px;
  padding:8px 12px;
  color:#5a6472;
  font-size:13px;
  font-weight:900;
}

.avatar-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(238px,1fr));gap:16px}
.avatar-card{
  background:linear-gradient(180deg,#ffffff 0%, #fbfcfd 100%);
  border:1px solid rgba(17,24,39,.08);
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 8px 24px rgba(61,44,0,.07);
  display:flex;
  flex-direction:column;
  min-width:0;
  transition:.18s ease;
}
.avatar-card:hover{border-color:#cfd6dd;box-shadow:0 20px 40px rgba(17,24,39,.12);transform:translateY(-2px)}
.avatar-card.selected{border-color:#1f2329;box-shadow:0 0 0 3px rgba(255,209,0,.2),0 20px 40px rgba(17,24,39,.12)}
.avatar-preview{
  position:relative;
  display:block;
  width:100%;
  padding:0;
  border:0;
  border-radius:0;
  background:#eef1f4;
  overflow:hidden;
  min-height:0;
}
.avatar-preview::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,0) 48%, rgba(0,0,0,.22) 100%);
  pointer-events:none;
}
.avatar-preview img{display:block;width:100%;aspect-ratio:3/4;object-fit:cover;background:#eef1f4}
.play-badge{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:58px;
  height:58px;
  border-radius:999px;
  background:rgba(255,255,255,.96);
  color:#111827;
  display:grid;
  place-items:center;
  box-shadow:0 16px 30px rgba(0,0,0,.18);
  z-index:1;
}
.play-badge .icon{width:24px;height:24px}
.avatar-body{padding:13px 13px 6px;display:grid;gap:8px}
.avatar-badges{display:flex;gap:6px;flex-wrap:wrap;min-height:23px}
.avatar-badges span{
  background:#f4f6f8;
  color:#5d6775;
  border:1px solid rgba(17,24,39,.06);
  border-radius:999px;
  padding:4px 8px;
  font-size:12px;
  font-weight:850;
}
.avatar-badges span:first-child{background:#1f2329;color:#ffffff;border-color:#1f2329}
.avatar-body h2{font-size:18px;line-height:1.3;margin:0;overflow-wrap:anywhere}
.avatar-body p{margin:0;color:#7b8592;font-size:12px;line-height:1.45;overflow-wrap:anywhere}
.avatar-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:11px 13px 13px;margin-top:auto}
.avatar-actions button{min-height:39px;padding:8px 10px;font-size:13px}
.avatar-actions button:last-child{grid-column:1/-1}
.avatar-actions button[data-copy-confirm]{
  background:linear-gradient(180deg,#ffd83b 0%, #ffc800 100%);
  border-color:#f0b300;
  color:#241d11;
}
.avatar-actions button[data-copy-confirm]:hover{background:linear-gradient(180deg,#ffd100 0%, #f4be00 100%);border-color:#e1ab00;color:#1b160d}
.ghost{background:#fff;color:var(--ink)}

.pagination{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin:20px 0}
.pagination a,.pagination span{
  background:#fff;
  border:1px solid rgba(17,24,39,.08);
  border-radius:12px;
  padding:9px 12px;
  font-weight:850;
  color:#5d6775;
}
.pagination a.active{background:#241d11;border-color:#241d11;color:#ffe48a}

.notice{
  background:linear-gradient(180deg,#ffffff 0%, #fafbfc 100%);
  border:1px solid rgba(17,24,39,.08);
  border-radius:22px;
  padding:18px;
  margin:20px 0 0;
  color:#66707f;
  line-height:1.7;
}
.notice strong{display:block;color:#241d11;margin-bottom:5px}
.notice p{margin:5px 0}
.empty{
  grid-column:1/-1;
  background:rgba(255,255,255,.86);
  border:1px dashed rgba(17,24,39,.16);
  border-radius:20px;
  padding:28px;
  color:#66707f;
  text-align:center;
}

.selected-panel{
  position:fixed;
  left:50%;
  bottom:16px;
  z-index:25;
  transform:translateX(-50%);
  width:min(960px,calc(100vw - 28px));
  background:linear-gradient(180deg,#221b10 0%, #151006 100%);
  color:#fff9dc;
  border:1px solid rgba(255,209,0,.16);
  box-shadow:0 18px 46px rgba(0,0,0,.24);
  border-radius:22px;
  padding:13px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
}
.selected-panel span{display:block;color:#ccb56b;font-size:12px;font-weight:850}
.selected-panel strong{display:block;font-size:18px;line-height:1.25;overflow-wrap:anywhere;margin-top:2px}
.selected-panel em{display:block;color:#f0df9f;font-size:12px;font-style:normal;margin-top:3px;overflow-wrap:anywhere}
.selected-panel textarea{
  display:none;
  width:100%;
  min-height:40px;
  margin-top:8px;
  border:1px solid rgba(255,209,0,.18);
  border-radius:12px;
  background:rgba(255,255,255,.06);
  color:#fff;
  padding:8px 10px;
  resize:none;
  line-height:1.45;
}
.selected-panel.has-selection textarea{display:block}
.selected-panel button{
  background:linear-gradient(180deg,#ffd83b 0%, #ffc800 100%);
  color:#241d11;
  border-color:#f0b300;
}
body.video-open .selected-panel{display:none}

.modal{
  position:fixed;
  inset:0;
  z-index:40;
  background:rgba(13,10,4,.92);
  padding:18px;
  display:grid;
  grid-template-rows:48px minmax(0,1fr) auto;
  gap:12px;
}
.modal[hidden]{display:none!important}
.modal-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#fff4c8}
.modal-bar strong{font-size:17px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.modal-bar button{width:42px;height:42px;padding:0;background:#ffffff;color:#241d11}
.modal video{
  width:min(1100px,100%);
  max-height:calc(100vh - 150px);
  align-self:center;
  justify-self:center;
  background:#05070d;
  border-radius:22px;
  box-shadow:0 24px 56px rgba(0,0,0,.3);
}
.modal-nav{
  position:absolute;
  top:50%;
  z-index:42;
  width:76px;
  height:76px;
  min-height:76px;
  padding:0;
  border-radius:999px;
  background:rgba(255,255,255,.96);
  color:#111827;
  border-color:rgba(255,255,255,.82);
  box-shadow:0 18px 38px rgba(0,0,0,.26);
  transform:translateY(-50%);
}
.modal-nav:hover{background:#ffffff;color:#111827;border-color:#ffffff}
.modal-nav:disabled{opacity:.38;cursor:not-allowed}
.modal-nav .icon{width:34px;height:34px}
.modal-prev{left:18px}
.modal-next{right:18px}
.modal-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}
.modal-actions button:first-child{
  background:linear-gradient(180deg,#ffd83b 0%, #ffc800 100%);
  border-color:#f0b300;
  color:#241d11;
}
.modal-actions .ghost{background:#fff;color:#111827}

.toast{
  position:fixed;
  left:50%;
  bottom:110px;
  z-index:60;
  transform:translateX(-50%) translateY(8px);
  background:#221b10;
  color:#ffe48a;
  border-radius:14px;
  padding:11px 14px;
  opacity:0;
  pointer-events:none;
  transition:.2s;
  box-shadow:0 16px 36px rgba(0,0,0,.22);
  font-weight:850;
}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}

@media(max-width:980px){
  .site-header{align-items:flex-start;flex-direction:column}
  .header-tags{justify-content:flex-start}
  .hero{grid-template-columns:1fr}
  .hero h1{font-size:32px}
  .avatar-grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}
}
@media(max-width:640px){
  body{padding-bottom:128px}
  .site-header{padding:12px}
  .brand-mark{width:42px;height:42px;border-radius:14px}
  .brand strong{font-size:16px}
  .page-shell{padding:14px}
  .hero{padding:18px;border-radius:24px}
  .hero h1{font-size:27px}
  .hero p{font-size:14px}
  .hero-stats span,.hero-notes span{font-size:13px}
  .search-box{grid-template-columns:1fr}
  .category-tabs{padding-top:14px}
  .category-tab{padding:10px 11px}
  .avatar-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .avatar-body{padding:10px 10px 5px}
  .avatar-body h2{font-size:16px}
  .avatar-actions{grid-template-columns:1fr;padding:8px 10px 10px}
  .avatar-actions button:last-child{grid-column:auto}
  .avatar-actions button{font-size:12px;min-height:36px}
  .avatar-actions .icon{width:16px;height:16px}
  .play-badge{width:48px;height:48px}
  .result-head{align-items:flex-start}
  .selected-panel{bottom:10px;width:calc(100vw - 20px);grid-template-columns:1fr;padding:10px;border-radius:18px}
  .selected-panel button{width:100%}
  .modal{padding:10px;grid-template-rows:44px minmax(0,1fr) auto}
  .modal video{max-height:calc(100vh - 136px);border-radius:18px}
  .modal-prev{left:10px}
  .modal-next{right:10px}
  .modal-nav{width:58px;height:58px;min-height:58px}
  .modal-nav .icon{width:28px;height:28px}
  .toast{bottom:142px}
}
@media(max-width:410px){
  .avatar-grid{grid-template-columns:1fr}
}
