/* 首页按参考图校准；栏目使用真实接口，演示内容在页面标明。 */
#search-form{display:flex;align-items:center;width:236px;height:34px;border:1px solid #d8b6a6;border-radius:20px;overflow:hidden;background:#fffaf7;margin:0}
#search-form input{min-width:0;width:100%;height:32px;padding:5px 14px;border:0;outline:0;background:transparent;font-size:12px}
#search-form button{width:38px;flex:0 0 38px;height:32px;border:0;background:none;color:var(--red);font-size:26px;cursor:pointer;line-height:28px}
.demo-label{color:#8b6b48;font-size:11px;white-space:nowrap}.demo-label[hidden]{display:none}
.stat-symbol{display:none}.qr-card .qr-description{color:#42372d;font-size:12px;margin-top:12px}
.activity-strip{min-width:0}
.rank-num.rank-1{background:linear-gradient(135deg,#ffe99a,#dba927);color:#fff;border:2px solid #e9c75c}
.rank-num.rank-2{background:linear-gradient(135deg,#edf3f6,#94a6b5);color:#fff;border:2px solid #ccd5dd}
.rank-num.rank-3{background:linear-gradient(135deg,#f8d9b7,#b78060);color:#fff;border:2px solid #dbb292}
body[data-screen=home] .hero{
  --hero-image:url('/assets/party-hero-v2.webp');
  background-image:var(--hero-image);
}
/* 桌面默认图按宽度等比铺满，画面上下预留的天空和红绸适应窗口高度。 */
@media(min-width:1001px){
  body[data-screen=home] .hero{
    --hero-height:clamp(228px,calc(24vh + 42px),280px);
    height:var(--hero-height);
    background-size:100% auto;
    background-position:center 62.5%;
  }
  body[data-screen=home] .hero:not(.hero-custom){
    --hero-image:url('/assets/party-hero-desktop-v3.webp');
    height:max(var(--hero-height),14.5vw);
  }
  body[data-screen=home] .hero-custom{
    padding-bottom:26px;
    background-image:var(--hero-image),linear-gradient(180deg,#fbefdc,#f4dac0);
    background-origin:content-box,padding-box;
    background-clip:content-box,border-box;
    background-size:contain,cover;
    background-position:center;
  }
  body[data-screen=home] .hero .wrap{padding-bottom:54px}
  body[data-screen=home] .hero-custom .wrap{padding-bottom:24px}
  body[data-screen=home] .hero h1{font-size:clamp(46px,calc(var(--hero-height) * .215),62px)}
  body[data-screen=home] .portal-main{margin-top:-26px}
}
@media(min-width:1251px){
  body[data-screen=home] .wrap{max-width:1536px;padding-left:46px;padding-right:40px}
  body[data-screen=home] .header{height:112px;position:relative;align-items:center}
  body[data-screen=home] .brand{font-size:34px;letter-spacing:0;gap:14px;font-weight:700}
  body[data-screen=home] .brand-symbol,body[data-screen=home] .brand-symbol svg{width:70px;height:74px}
  body[data-screen=home] .brand small{font-size:13px;letter-spacing:5px;margin-top:4px;text-align:center}
  body[data-screen=home] .header-tools{position:absolute;right:40px;top:22px;gap:26px}
  body[data-screen=home] .nav{position:absolute;left:calc(50% - 252px);top:67px}
  body[data-screen=home] .nav #nav{gap:12px}
  body[data-screen=home] .nav a{padding:7px 20px;font-size:17px;line-height:24px}
  body[data-screen=home] .hero h1{line-height:1.13;margin-bottom:12px;letter-spacing:4px}
  body[data-screen=home] .hero p{font-size:22px;line-height:32px;font-weight:600;letter-spacing:0}
  body[data-screen=home] .hero-stars{margin-top:8px}
  body[data-screen=home] .hero-stars .ui-icon{width:20px;height:20px}
  body[data-screen=home] .portal-main{padding-bottom:14px}
  body[data-screen=home] .portal-overview{grid-template-columns:1.04fr 1fr 1.42fr .57fr;gap:14px;height:234px;align-items:start}
  body[data-screen=home] .portal-main .panel{padding:12px 18px;border-radius:7px}
  body[data-screen=home] .portal-heading{margin:0 0 10px;height:24px}
  body[data-screen=home] .portal-main h2{font-size:16px;line-height:24px;font-weight:600}
  body[data-screen=home] .red-line:before{display:none}
  body[data-screen=home] .intro-card{height:234px;padding:12px 18px}
  body[data-screen=home] .intro-layout{grid-template-columns:128px minmax(0,1fr);gap:14px}
  body[data-screen=home] .intro-visual.media-figure{height:160px}
  body[data-screen=home] .intro-copy{font-size:13px;line-height:22px}
  body[data-screen=home] .intro-copy p{-webkit-line-clamp:5}
  body[data-screen=home] .intro-copy .more{margin-top:12px;font-size:12px;line-height:20px;padding:0 12px}
  body[data-screen=home] .stats-card{height:234px}
  body[data-screen=home] .stats-card .stats{height:54px;padding:0 0 6px;gap:8px}
  body[data-screen=home] .stats-card .stat{display:flex;gap:10px;align-items:center;text-align:left;justify-content:center}
  body[data-screen=home] .stat-symbol{display:flex;color:#d43228;align-items:center}
  body[data-screen=home] .stat-symbol .ui-icon{width:32px;height:36px;fill:currentColor;stroke-width:.6}
  body[data-screen=home] .stat:last-child .stat-symbol{color:#ecaa23}
  body[data-screen=home] .stat span{font-size:12px;line-height:18px}
  body[data-screen=home] .stat strong{font-size:21px;line-height:24px;font-weight:600}
  body[data-screen=home] .stat strong small{font-size:12px;color:#3e3932}
  body[data-screen=home] .stats-card h3{font-size:15px;line-height:22px;margin:6px 0 6px;font-weight:600}
  body[data-screen=home] .showcase{gap:12px;justify-content:space-between;flex-wrap:nowrap}
  body[data-screen=home] .showcase div{max-width:62px;font-size:11px;line-height:20px}
  body[data-screen=home] .showcase .avatar,body[data-screen=home] .showcase b{width:62px;height:66px;border-radius:5px;object-fit:cover;object-position:50% 32%}
  body[data-screen=home] .qr-card{height:264px;min-height:264px;padding:16px 12px;display:flex;grid-column:auto;flex-direction:column;gap:0;text-align:center}
  body[data-screen=home] .qr-card h2{font-size:15px;flex-shrink:0}
  body[data-screen=home] .qr-card .qrcode{height:132px;width:132px;margin:8px 0 4px}
  body[data-screen=home] .qr-card p{font-size:11px;line-height:20px;margin:4px 0}
  body[data-screen=home] .qr-card .qr-description{margin-top:12px;font-size:12px}
  body[data-screen=home] .portal-services{height:140px;margin-top:12px;padding:10px 18px 12px}
  body[data-screen=home] .portal-services .section-head{height:22px;margin:0 0 10px;width:80%}
  body[data-screen=home] .portal-services h2{line-height:22px;font-weight:600;color:#bd171b}
  body[data-screen=home] .services{grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}
  body[data-screen=home] .service{height:84px;min-height:84px;padding:10px 18px;gap:16px}
  body[data-screen=home] .service-icon .ui-icon{width:42px;height:46px;stroke-width:1.6;filter:drop-shadow(1px 1px 0 #edac71)}
  body[data-screen=home] .service b{font-size:16px;font-weight:600;line-height:24px}
  body[data-screen=home] .service small{font-size:12px;line-height:20px;color:#5f5147}
  body[data-screen=home] .portal-bottom{grid-template-columns:1fr 1.22fr 1.05fr .7fr;margin-top:12px;gap:14px}
  body[data-screen=home] .portal-bottom .panel{height:176px;min-height:176px}
  body[data-screen=home] .portal-bottom h2{color:#a91620;font-weight:600}
  body[data-screen=home] .portal-bottom .portal-heading{margin-bottom:5px}
  body[data-screen=home] .row{font-size:12px;line-height:20px;padding:4px 0;min-height:28px;gap:8px}
  body[data-screen=home] .row time{font-size:11px}
  body[data-screen=home] .activity-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
  body[data-screen=home] .activity-mini{display:block;min-width:0;padding:0;text-align:center}
  body[data-screen=home] .activity-thumb{width:100%;height:80px;max-width:none}
  body[data-screen=home] .activity-mini b{font-size:12px;font-weight:400;margin-top:5px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body[data-screen=home] .activity-mini p{font-size:10px;line-height:14px;margin:0}
  body[data-screen=home] .activity-location{display:none}
  body[data-screen=home] .activity-thumb figcaption{font-size:8px;line-height:12px}
  body[data-screen=home] .rank-row{height:38px;padding:6px 0;gap:10px}
  body[data-screen=home] .rank-num{height:25px;width:25px;font-size:13px;margin-right:12px}
  body[data-screen=home] .rank-row .rank-time{font-size:11px;white-space:nowrap}
  body[data-screen=home] .points{font-size:12px;white-space:nowrap}
  body[data-screen=home] .fee-card{display:block;grid-column:auto}
  body[data-screen=home] .fee-card p{font-size:12px;line-height:22px;margin:14px 0 14px}
  body[data-screen=home] .fee-decoration{position:absolute;right:14px;bottom:20px}
  body[data-screen=home] .fee-decoration .ui-icon{width:68px;height:68px}
  body[data-screen=home] footer{height:71px;padding:12px 0}
  body[data-screen=home] footer p{font-size:11px;margin-top:8px}
}
@media(min-width:1251px) and (max-height:950px){
  body[data-screen=home]{
    --portal-services-min-height:128px;
    --portal-service-min-height:74px;
    --portal-service-padding:5px;
  }
  body[data-screen=home] .portal-overview,
  body[data-screen=home] .intro-card,
  body[data-screen=home] .stats-card{height:222px}
  body[data-screen=home] .intro-card{min-height:222px}
  body[data-screen=home] .intro-visual.media-figure{height:150px}
  body[data-screen=home] .showcase .avatar,
  body[data-screen=home] .showcase b{height:60px}
  body[data-screen=home] .qr-card{height:238px;min-height:238px;padding-block:12px}
  body[data-screen=home] .qr-card .qr-description{margin-top:8px}
  body[data-screen=home] .qr-card .qrcode{width:120px;height:120px}
  body[data-screen=home] .portal-services{margin-top:8px}
  body[data-screen=home] .portal-services .section-head{margin-bottom:8px}
  body[data-screen=home] .service small{line-height:17px}
  body[data-screen=home] .portal-bottom{margin-top:8px}
  body[data-screen=home] .portal-bottom .panel{height:168px;min-height:168px}
}
@media(min-width:1251px) and (max-height:820px){
  body[data-screen=home]{
    --portal-services-min-height:112px;
    --portal-service-min-height:64px;
    --portal-service-padding:5px;
  }
  body[data-screen=home] .header{height:94px}
  body[data-screen=home] .header-tools{top:14px}
  body[data-screen=home] .nav{top:51px}
  body[data-screen=home] .hero{--hero-height:216px}
  body[data-screen=home] .hero h1{font-size:42px;letter-spacing:2px}
  body[data-screen=home] .portal-overview,
  body[data-screen=home] .intro-card,
  body[data-screen=home] .stats-card{height:192px}
  body[data-screen=home] .intro-card{min-height:192px}
  body[data-screen=home] .portal-overview .portal-heading{margin-bottom:6px}
  body[data-screen=home] .intro-visual.media-figure{height:130px}
  body[data-screen=home] .intro-copy p{-webkit-line-clamp:4}
  body[data-screen=home] .stats-card .stats{height:44px}
  body[data-screen=home] .stats-card h3{margin:4px 0;line-height:18px}
  body[data-screen=home] .showcase .avatar,
  body[data-screen=home] .showcase b{height:50px}
  body[data-screen=home] .qr-card{height:204px;min-height:204px;padding-block:8px}
  body[data-screen=home] .qr-card .qr-description{margin-top:6px}
  body[data-screen=home] .qr-card .qrcode{width:96px;height:96px}
  body[data-screen=home] .portal-services{margin-top:8px}
  body[data-screen=home] .portal-services .section-head{margin-bottom:6px}
  body[data-screen=home] .service small{line-height:16px}
  body[data-screen=home] .portal-bottom{margin-top:8px}
  body[data-screen=home] .portal-bottom .panel{height:152px;min-height:152px;padding-block:9px}
  body[data-screen=home] .portal-bottom .row{min-height:26px;padding-block:3px;line-height:19px}
  body[data-screen=home] .portal-bottom .rank-row{height:32px}
  body[data-screen=home] .activity-thumb{height:70px}
}
@media(min-width:1251px) and (max-width:1430px) and (max-height:820px){
  body[data-screen=home] .hero:not(.hero-custom){background-position:center 69%}
}
@media(min-width:1251px) and (max-width:1430px){
  body[data-screen=home] .brand{font-size:28px}
  body[data-screen=home] .intro-layout{grid-template-columns:105px minmax(0,1fr);gap:10px}
  body[data-screen=home] .showcase{gap:7px}
  body[data-screen=home] .showcase .avatar,body[data-screen=home] .showcase b{width:50px}
  body[data-screen=home] .service{padding:8px 10px;gap:8px}
  body[data-screen=home] .service b{font-size:14px}
  body[data-screen=home] .service small{font-size:11px}
  body[data-screen=home] .rank-row{gap:6px}
  body[data-screen=home] .rank-row .rank-time{font-size:10px}
  body[data-screen=home] .rank-num{margin-right:6px}
}
@media(max-width:1250px){#search-form{width:200px}.demo-label{display:none}.stats-card .stat>div{display:flex;flex-direction:column}.showcase{justify-content:space-between}.showcase div{flex-shrink:0}.showcase .avatar{object-fit:cover;object-position:center 32%}}
@media(max-width:760px){#search-form{display:none}.qr-card .qr-description{margin:4px 0}.qr-card .qrcode{grid-row:1/4}.activity-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.activity-mini{display:block;min-width:0;text-align:center;padding-top:4px}.activity-thumb{width:100%;height:74px}.activity-mini .activity-location{display:none}.activity-mini b{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.activity-mini p{font-size:10px}.portal-bottom .activity-panel{grid-column:1/-1}.qr-card p{max-width:100%}}
body[data-screen=admin] #search-form,body[data-screen=admin] .demo-label{display:none}
