:root{--paper:#fff8ef;--paper-deep:#f1e4d3;--ink:#364e53;--muted:#786d65;--navy:#294b59;--rose:#b96f65;--gold:#b9834e;--line:rgba(75,82,75,.14);font-family:"Noto Sans TC","Microsoft JhengHei","PingFang TC",sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}html,body{height:100%;margin:0}body{min-height:100dvh;display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden;background:radial-gradient(circle at 8% 0,rgba(236,191,181,.28),transparent 24%),linear-gradient(145deg,#fffaf3,#efe5d7)}a{color:inherit;text-decoration:none}button,select{font:inherit}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.portal-skip{position:fixed;z-index:999;left:16px;top:-60px;padding:10px 15px;border-radius:999px;color:#fff;background:var(--navy);transition:top .2s}.portal-skip:focus{top:10px}
.portal-header{position:relative;z-index:20;min-height:76px;display:grid;grid-template-columns:auto auto minmax(340px,1fr) auto;align-items:center;gap:18px;padding:10px clamp(16px,3vw,42px);border-bottom:1px solid var(--line);background:rgba(255,250,243,.96);box-shadow:0 8px 26px rgba(67,54,43,.09);backdrop-filter:blur(16px)}.portal-brand{display:flex;align-items:center;gap:10px;min-width:0}.portal-brand img{width:46px;height:46px;border-radius:15px 9px;object-fit:cover;box-shadow:0 5px 13px rgba(54,66,65,.14)}.portal-brand span{display:grid;gap:1px;line-height:1.2;white-space:nowrap}.portal-brand strong{font-family:"Noto Serif TC","Songti TC",serif;font-size:15px;letter-spacing:.08em}.portal-brand small{color:#9a8778;font:700 7px/1.3 Georgia,serif;letter-spacing:.11em}.portal-identity{display:grid;gap:2px;padding-left:15px;border-left:1px solid var(--line);white-space:nowrap}.portal-identity>span{width:max-content;padding:2px 7px;border-radius:999px;color:#8a6044;background:#f1dfc5;font-size:8px;font-weight:900;letter-spacing:.08em}.portal-identity>strong{font-family:"Noto Serif TC","Songti TC",serif;font-size:16px;letter-spacing:.04em}.portal-nav{min-width:0;display:flex;align-items:center;justify-content:center;gap:6px;overflow-x:auto;scrollbar-width:none}.portal-nav::-webkit-scrollbar{display:none}.portal-nav a,.portal-nav button{flex:0 0 auto;min-height:38px;padding:0 12px;border:1px solid transparent;border-radius:999px;color:#536361;background:transparent;cursor:pointer;font-size:13px;font-weight:850;white-space:nowrap}.portal-nav a:hover,.portal-nav a:focus-visible,.portal-nav button:hover,.portal-nav button:focus-visible,.portal-nav button[aria-current=true]{border-color:rgba(164,113,70,.22);color:#664b3c;background:#f5e3ce;outline:2px solid rgba(185,131,78,.16);outline-offset:1px}.portal-tools{display:flex;align-items:center;gap:7px}.portal-tools select{min-height:38px;padding:0 28px 0 10px;border:1px solid var(--line);border-radius:999px;color:var(--ink);background:#fffaf3;cursor:pointer;font-size:12px;font-weight:800}.portal-external{min-height:38px;display:inline-flex;align-items:center;gap:6px;padding:0 12px;border-radius:999px;color:#fffaf0;background:var(--navy);box-shadow:0 5px 12px rgba(41,75,89,.18);font-size:12px;font-weight:850;white-space:nowrap}.portal-external:hover,.portal-external:focus-visible{background:#3b6370;outline:3px solid rgba(57,93,104,.2);outline-offset:2px}.portal-external b{color:#f1c879}
.portal-main{min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);padding:0 clamp(7px,1.3vw,18px) clamp(7px,1.3vw,18px)}.portal-status{min-height:45px;display:flex;align-items:center;gap:10px;padding:7px 12px;color:var(--muted);font-size:11px}.portal-live-dot{width:9px;height:9px;flex:0 0 auto;border-radius:50%;background:#5c907d;box-shadow:0 0 0 5px rgba(92,144,125,.14);animation:portal-pulse 2.2s ease-in-out infinite}.portal-status p{display:flex;align-items:baseline;gap:8px;margin:0}.portal-status strong{color:#48665f;font-size:12px}.portal-status small{margin-left:auto;color:#927e6f}.portal-frame-shell{position:relative;min-height:0;overflow:hidden;border:1px solid rgba(72,87,82,.16);border-radius:22px 11px 24px 13px;background:#f7f2e7;box-shadow:0 17px 44px rgba(52,61,58,.14),inset 0 0 0 4px rgba(255,255,255,.36)}.portal-frame-shell iframe{position:absolute;z-index:2;inset:0;width:100%;height:100%;border:0;background:#f7f2e7}.portal-loader{position:absolute;z-index:3;inset:0;display:grid;place-content:center;justify-items:center;gap:12px;color:#637773;background:linear-gradient(145deg,#fffaf2,#eee5d8);transition:opacity .35s ease,visibility .35s}.portal-loader.is-complete{opacity:0;visibility:hidden;pointer-events:none}.portal-loader>span{width:58px;height:58px;display:grid;place-items:center;border-radius:21px 11px;color:#fff2df;background:var(--rose);box-shadow:0 7px 0 #92564f;font-size:25px;animation:portal-heart 1.5s ease-in-out infinite}.portal-loader strong{font-family:"Noto Serif TC","Songti TC",serif;font-size:16px}.portal-noscript{position:fixed;z-index:30;inset:auto 12px 12px;padding:12px;border-radius:12px;background:#fff}
@keyframes portal-pulse{50%{opacity:.5;transform:scale(.82)}}@keyframes portal-heart{50%{transform:translateY(-5px) rotate(-2deg)}}
@media(max-width:1180px){.portal-header{grid-template-columns:auto minmax(0,1fr) auto;gap:10px}.portal-identity{display:none}.portal-nav{justify-content:flex-start}.portal-brand small{display:none}.portal-external span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}}
@media(max-width:760px){.portal-header{min-height:116px;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"brand tools" "nav nav";align-content:center;padding:9px 10px 8px;gap:7px}.portal-brand{grid-area:brand}.portal-brand img{width:40px;height:40px}.portal-brand strong{font-size:14px}.portal-tools{grid-area:tools}.portal-tools select{min-height:36px}.portal-external{width:36px;min-height:36px;padding:0;justify-content:center}.portal-nav{grid-area:nav;justify-content:flex-start;padding:2px 0}.portal-nav a,.portal-nav button{min-height:36px;padding:0 11px;font-size:12px}.portal-main{padding:0 5px 5px}.portal-status{min-height:38px;padding:5px 9px}.portal-status p{display:grid;gap:0}.portal-status p span{font-size:9px}.portal-status small{display:none}.portal-frame-shell{border-radius:16px 8px 17px 9px}}
@media(max-width:390px){.portal-brand strong{font-size:13px}.portal-brand img{width:37px;height:37px}.portal-tools select{max-width:88px;padding-left:8px}.portal-status p span{display:none}}
@media(prefers-reduced-motion:reduce){.portal-live-dot,.portal-loader>span{animation:none}}
