*{box-sizing:border-box}html{font-family:Inter,'Segoe UI','Microsoft YaHei',Arial,sans-serif}body{margin:0;background:var(--bg);color:var(--text)}html[data-theme=ice]{--bg:#eef5fc;--surface:#fff;--text:#163c6d;--line:#dce8f6;--primary:#1778df;--badge:#ef4e37;--muted:#7b90ad;--shadow:#224f8a10}html[data-theme=obsidian]{--bg:#111722;--surface:#1d2633;--text:#f1e9db;--line:#384456;--primary:#b98b47;--badge:#bd663b;--muted:#bbc4cd;--shadow:#0003}html[data-theme=navy]{--bg:#111f36;--surface:#1a304e;--text:#f1f8ff;--line:#345170;--primary:#307bab;--badge:#c18446;--muted:#adc2d3;--shadow:#0002}html[data-theme=jade]{--bg:#f2f6f1;--surface:#fff;--text:#244a43;--line:#d5e4db;--primary:#247b6d;--badge:#cb9565;--muted:#708a83;--shadow:#143c2210}html[data-theme=violet]{--bg:#f3f1fb;--surface:#fff;--text:#302b57;--line:#e1dbf0;--primary:#7163bd;--badge:#db6f86;--muted:#8d87a9;--shadow:#45328410}a{color:inherit;text-decoration:none}.shell{width:min(1510px,calc(100% - 52px));margin:30px auto;display:grid;grid-template-columns:37% minmax(0,1fr);gap:20px;align-items:start}.poster{border-radius:18px;overflow:hidden;background:var(--surface);box-shadow:0 12px 32px var(--shadow);min-height:380px}.poster img{display:block;width:100%;height:auto;object-fit:var(--fit)}.poster-empty{min-height:730px;display:grid;place-items:center;background:linear-gradient(150deg,#258ee8,#0a336c);color:#fff;text-align:center;padding:35px}.right{display:grid;gap:12px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:17px;padding:23px;box-shadow:0 10px 30px var(--shadow)}h1{font-size:28px;margin:0 0 17px}h2{font-size:20px;margin:0 0 13px}.entries{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.entry{position:relative;display:flex;align-items:center;gap:13px;min-width:0;min-height:88px;padding:12px;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:0 6px 17px var(--shadow);transition:transform .15s}.entry:not(.disabled):hover{transform:translateY(-2px);border-color:var(--primary)}.entry.disabled{opacity:.45;pointer-events:none}.entry-icon{width:54px;height:54px;flex:none;border-radius:13px;background:color-mix(in srgb,var(--primary) 14%,var(--surface));display:grid;place-items:center;color:var(--primary);font-size:25px}.entry-icon img{max-width:88%;max-height:88%;object-fit:contain}.entry strong{font-size:16px;overflow-wrap:anywhere}.entry-arrow{margin-left:auto;color:var(--primary);font-size:19px}.ribbon{position:absolute;top:-9px;right:8px;border-radius:14px;background:var(--badge);color:#fff;padding:3px 9px;font-size:11px;white-space:nowrap;box-shadow:0 3px 10px #0001}.main-entry{margin-top:17px;background:var(--primary);color:#fff;min-height:98px;border-radius:13px;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px 27px;font-size:23px;font-weight:750}.main-entry b{background:rgba(255,255,255,0.88);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);color:#1665ad;padding:14px 24px;border-radius:100px;font-size:16px;white-space:nowrap}.features{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-top:15px}.feature{min-height:81px;display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:13px;padding:13px}.feature-icon{background:color-mix(in srgb,var(--primary) 12%,var(--surface));color:var(--primary);width:44px;height:44px;display:grid;place-items:center;flex:none;border-radius:50%;font-size:23px}.feature strong{display:block;font-size:15px}.feature small{display:block;font-size:12px;color:var(--muted);margin-top:5px;line-height:1.5}.links-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.links-grid a{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:8px;padding:8px 12px;font-size:13px;min-width:0}.links-grid a span,.links-grid a i{color:var(--primary)}.links-grid a i{margin-left:auto;font-style:normal}@media(max-width:1000px){.shell{grid-template-columns:1fr;max-width:740px}.poster{min-height:0}.poster img{width:100%;height:auto}.poster-empty{min-height:260px}}@media(max-width:600px){.shell{width:calc(100% - 22px);margin:11px auto;gap:12px}.panel{padding:16px;border-radius:14px}h1{font-size:23px}.entries{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.entry{min-height:72px;padding:8px;gap:8px}.entry-icon{height:38px;width:38px}.entry strong{font-size:13px}.entry-arrow{font-size:15px}.ribbon{font-size:9px;padding:2px 6px}.main-entry{min-height:78px;padding:13px;font-size:19px}.main-entry b{padding:10px 12px;font-size:13px}.feature{padding:9px;gap:7px}.feature-icon{width:32px;height:32px;font-size:17px}.feature strong{font-size:12px}.feature small{font-size:10px}.links-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* V2.2 compact desktop canvas, natural-height mobile */
@media(min-width:1101px){
.shell{width:min(1600px,calc(100% - 44px));grid-template-columns:minmax(0,40%) minmax(0,60%);gap:16px;margin:18px auto;align-items:start}
.panel{padding:16px 20px;border-radius:16px}.right{gap:10px}h1{font-size:25px;margin-bottom:14px}h2{font-size:17px;margin-bottom:9px}
.entries{gap:9px}.entry{min-height:68px;padding:8px 10px;gap:9px;border-radius:12px}.entry-icon{width:42px;height:42px;font-size:21px;border-radius:10px}.entry strong{font-size:14px}.ribbon{font-size:10px}
.main-entry{margin-top:13px;min-height:76px;padding:12px 20px;font-size:20px}.main-entry b{padding:10px 20px;font-size:14px}
.features{gap:8px;margin-top:12px}.feature{min-height:68px;padding:9px 11px;gap:10px}.feature-icon{width:44px;height:44px}.feature strong{font-size:14px}.feature small{font-size:11px;margin-top:3px}
.links-grid{gap:5px}.links-grid a{padding:6px 10px;font-size:12px}
}
.main-copy{display:flex;align-items:center;gap:14px;min-width:0}.main-custom-icon{width:48px;height:48px;object-fit:contain;flex:none}.main-icon-default{width:44px;height:44px;display:grid;place-items:center;background:#ffffff30;border-radius:50%;flex:none}.main-entry.has-photo{background-image:linear-gradient(90deg,rgba(0,0,0,.32),rgba(0,0,0,.12)),var(--main-bg);background-size:cover;background-position:center}.main-entry.has-photo b{color:#145995}.feature-icon img{display:block;width:100%;height:100%;object-fit:contain}
@media(max-width:600px){.main-custom-icon{width:34px;height:34px}.main-icon-default{width:32px;height:32px}.main-copy{gap:7px}.main-entry{gap:5px}.main-entry b{flex:none}.feature-icon{width:40px;height:40px}}

/* PORTAL_V23_4X3_LAYOUT */
/* PC and H5 share ONE activity image; preserve all poster text without cropping. */
.poster { aspect-ratio:4/3; min-height:0; position:relative; display:grid; place-items:center; overflow:hidden; }
.poster img { display:block; width:100%; height:100%; max-height:100%; object-fit:contain !important; object-position:center; }
.poster-empty { min-height:0; width:100%;height:100%; }
@media(min-width:1350px){
  .shell{width:min(1600px,calc(100% - 44px)); grid-template-columns:minmax(0,52%) minmax(0,1fr); gap:16px; margin:18px auto; align-items:start}
  .right{min-width:0;gap:8px}
  .panel{padding:12px 16px;border-radius:14px}
  h1{font-size:21px;margin:0 0 11px}
  h2{font-size:16px;margin:0 0 7px}
  .entries{gap:6px;max-height:174px;overflow-y:auto;overflow-x:visible;padding:5px 2px 1px;align-content:start;scrollbar-width:thin}
  .entry{min-height:48px;padding:5px 7px;gap:7px;border-radius:9px;box-shadow:none}
  .entry-icon{width:31px;height:31px;font-size:16px;border-radius:8px}
  .entry strong{font-size:12px;line-height:1.2}
  .entry-arrow{font-size:15px}
  .ribbon{top:-5px;right:3px;font-size:9px;padding:2px 5px;z-index:1}
  .main-entry{min-height:50px;margin-top:8px;padding:7px 13px;font-size:16px;gap:8px;border-radius:10px}
  .main-entry b{padding:7px 12px;font-size:12px}
  .main-custom-icon,.main-icon-default{width:34px;height:34px}
  .main-copy{gap:9px}
  .features{gap:6px;margin-top:9px}
  .feature{min-height:43px;padding:5px 7px;gap:7px;border-radius:9px}
  .feature-icon{width:31px;height:31px;font-size:16px}
  .feature strong{font-size:12px}
  .feature small{font-size:10px;line-height:1.3;margin-top:1px}
  .links-grid{gap:4px}
  .links-grid a{min-height:23px;padding:3px 7px;font-size:11px;border-radius:6px}
}
/* A narrow PC window cannot accommodate full 9 + CTA + features + links at readable sizes: stack panels. */
@media(min-width:1001px) and (max-width:1349px){
 .shell{width:min(980px,calc(100% - 32px));grid-template-columns:1fr;gap:14px;margin:16px auto}
 .poster{width:100%;}
}
@media(max-width:1000px){
 .poster{aspect-ratio:4/3;min-height:0}
 .poster img{height:100%;object-fit:contain}
 .poster-empty{min-height:0}
}

/* PORTAL_V231_ELASTIC_LAYOUT: optional links + flex-fit desktop. */
@media (min-width:1350px){
  .shell{align-items:stretch}
  .right{display:flex;flex-direction:column;min-height:0;gap:10px}
  .right>.panel:first-child{flex:1 1 auto;display:flex;flex-direction:column;min-height:0;justify-content:space-between}
  .right>.panel.links{flex:0 0 auto}
  .entries{max-height:initial;overflow:visible;flex:0 0 auto;grid-auto-rows:minmax(48px,auto)}
  .entry{min-height:52px}
  .main-entry{min-height:56px}
  .feature{min-height:47px}
  .right>.panel:first-child h1{flex:0 0 auto}
  .features{flex:0 0 auto}
}
/* Content-based link layout without fixed reserved rows. */
.links-grid{align-content:start}
@media(max-width:1349px){.right>.panel:first-child{min-height:0}}

/* V2.4.1: centered layout with optional full-viewport page background */
html{min-height:100%;}
body{min-height:100vh;min-height:100dvh;position:relative;background:var(--page-bg,#eef4fb);}
body.has-site-background{background-image:linear-gradient(rgba(0,0,0,var(--bg-overlay,.25)),rgba(0,0,0,var(--bg-overlay,.25))),var(--site-bg);background-position:center;background-size:cover;background-repeat:no-repeat;background-attachment:fixed;}
@media(min-width:1350px){
 body{display:flex;flex-direction:column;justify-content:center;align-items:stretch;}
 .shell{margin-block:18px;}
}
@media(max-width:1349px){body.has-site-background{background-attachment:scroll;} }
@media(prefers-reduced-motion:reduce){body{scroll-behavior:auto}}

/* V2.4.2 FINAL LAYOUT: no placeholder rows, predictable sizing, safe mobile widths */
html,body{width:100%;min-width:0;overflow-x:clip}
body{min-height:100vh;min-height:100dvh}
.shell,.shell>* ,.right,.panel,.entries,.entry,.feature,.main-entry,.main-copy{min-width:0}
.poster{display:block;aspect-ratio:auto!important;min-height:0!important;height:min(76dvh,720px);overflow:hidden;background:var(--surface)}
.poster img{width:100%!important;height:100%!important;max-height:none!important;object-fit:cover!important;object-position:center}
.poster-empty{height:100%;min-height:0}
.right{display:flex;flex-direction:column;gap:12px}
.right>.panel:first-child{display:block!important;flex:0 0 auto!important;min-height:0!important;justify-content:initial!important}
.entries{max-height:none!important;overflow:visible!important;align-content:start;grid-auto-rows:auto!important}
.entry{height:auto;min-width:0}
.entry strong{min-width:0;overflow-wrap:anywhere}
.main-entry{margin-top:18px}
.features{margin-top:16px}
@media (min-width:1101px){
  body{display:flex;flex-direction:column;justify-content:center;align-items:stretch}
  .shell{width:min(1600px,calc(100% - 64px));grid-template-columns:minmax(0,48%) minmax(0,1fr)!important;gap:20px;align-items:center!important;margin:24px auto!important}
  .poster{height:min(76dvh,720px)}
  .right>.panel:first-child{padding:22px!important}
  .entries{gap:10px}
  .entry{min-height:64px;padding:9px;gap:9px}
  .entry-icon{width:40px;height:40px}
  .entry strong{font-size:13px}
  .main-entry{min-height:68px;padding:12px 16px}
  .features{gap:10px}
  .feature{min-height:59px;padding:9px}
}
@media (max-width:1100px){
  body{display:block!important}
  .shell{width:min(740px,calc(100% - 28px))!important;max-width:740px!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px;margin:14px auto!important}
  .poster{width:100%;height:clamp(200px,53vw,390px)}
  .right{width:100%;min-width:0}
  .right>.panel:first-child{padding:18px!important}
  .entries{gap:10px}
  .entry{min-height:66px}
  .main-entry{min-height:68px}
  .features{gap:10px}
}
@media (max-width:600px){
  .shell{width:calc(100% - 24px)!important;margin:12px auto!important;gap:12px}
  .poster{height:clamp(155px,52vw,245px);border-radius:13px}
  .panel{padding:14px!important;border-radius:13px}
  h1{font-size:21px;margin-bottom:15px}
  .entries{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 8px}
  .entry{min-height:66px;padding:8px 6px;gap:6px;border-radius:10px}
  .entry-icon{width:34px;height:34px;flex-shrink:0;font-size:16px}
  .entry strong{font-size:12px;line-height:1.35}
  .entry-arrow{margin-left:auto;font-size:12px}
  .ribbon{right:3px;top:-8px;font-size:9px;padding:2px 5px}
  .main-entry{padding:10px;gap:8px;font-size:14px;flex-wrap:wrap}
  .main-copy{flex:1 1 145px;gap:7px}
  .main-entry b{font-size:11px;padding:8px 9px;max-width:100%}
  .features{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:14px}
  .feature{min-width:0;min-height:57px;padding:7px;gap:6px}
  .feature-icon{width:30px!important;height:30px!important;flex:none}
  .feature strong{font-size:11px;overflow-wrap:anywhere}
  .feature small{font-size:10px;overflow-wrap:anywhere}
  .links-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .links-grid a{min-width:0;overflow-wrap:anywhere}
}
@media (max-width:350px){.entry-icon{width:28px;height:28px}.entry strong{font-size:11px}.entry-arrow{display:none}.feature-icon{width:26px!important;height:26px!important}}
body .shell .right .panel{background:rgba(255,255,255,.60)!important;backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}
body .shell .right .panel .entry,body .shell .right .panel .feature{background:#fff!important;opacity:1!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}body .shell .right .panel .main-entry{opacity:1!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
body .shell .poster{overflow:hidden!important;background:#080b12!important}body .shell .poster img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;object-position:center center!important}
body .shell .poster{height:auto!important;min-height:0!important;aspect-ratio:auto!important;overflow:hidden!important;display:block!important;background:transparent!important}body .shell .poster img{display:block!important;width:100%!important;height:auto!important;max-height:none!important;object-fit:unset!important;object-position:center!important}@media(max-width:767px){body .shell{display:flex!important;flex-direction:column!important;gap:16px!important;align-items:stretch!important}body .shell .poster,body .shell .right{width:100%!important;min-width:0!important;flex:none!important}}
