*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 12% 10%,rgba(209,77,59,.08),transparent 30%),#fdf7f1;color:#111;font-family:"PingFang SC","Microsoft YaHei",sans-serif}.hub{width:min(calc(100% - 48px),1180px);min-height:calc(100svh - 90px);margin:auto;display:grid;align-content:center;padding:80px 0}.eyebrow{color:#c63d2b;font-size:14px;font-weight:700;letter-spacing:.14em}.hub h1{font-size:clamp(16px,2vw,24px);font-weight:500;color:#5f625f}.metric{font-size:clamp(36px,7vw,100px);font-weight:700;letter-spacing:-.06em;white-space:nowrap}.metric strong{font-size:.35em;color:#c63d2b}.footnote{text-align:right;color:#777;font-size:14px;line-height:1.7}.overlay{position:fixed;inset:0;z-index:2000;display:grid;place-items:center;padding:20px;background:#261d194d;backdrop-filter:blur(7px)}.dialog{width:min(100%,464px);padding:38px;background:#fffaf5;border:1px solid #e5dfd8;border-radius:24px;box-shadow:0 30px 95px #34231b2b}.dialog h2{font-size:32px;margin:0}.dialog>p:not(.eyebrow){color:#74726e;line-height:1.7;font-size:14px}.dialog form{display:grid;gap:10px;margin-top:25px}.dialog label{font-size:13px;font-weight:650;margin-top:8px}.dialog input{width:100%;height:50px;border:1px solid #e5dfd8;border-radius:11px;padding:0 15px;font:inherit}.dialog input:focus{outline:2px solid #c63d2b}.password{position:relative}.password input{padding-right:65px}.password button{position:absolute;right:8px;top:8px;height:34px;border:0;background:transparent;cursor:pointer}.submit{height:52px;margin-top:10px;border:0;border-radius:11px;background:#c63d2b;color:white;font:inherit;font-weight:700;cursor:pointer}#loginError{color:#a93127;background:#fff0ed;border-radius:9px;padding:11px;font-size:13px;margin:0}.register{text-align:center;border-top:1px solid #ece5dd;padding-top:22px;margin-top:26px}.register a{color:#c63d2b;font-weight:700}@media(max-width:600px){.hub{width:calc(100% - 40px)}.metric{white-space:normal}.metric strong{display:block;font-size:24px}.dialog{padding:30px 24px}}
[hidden]{display:none!important}.overlay{overflow-y:auto}.dialog{margin:auto}.hub[hidden]{display:none}body:has(.overlay:not([hidden])){overflow:hidden}@media(max-height:600px){.overlay{place-items:start center}.dialog{margin:0 auto}}

:root{--page-light:#fdf7f1;--hero-red:#c63d2b;--hero-max-width:1600px}
.site-footer{position:relative;z-index:100;min-height:clamp(660px,78vh,820px);overflow:hidden;background:var(--page-light);color:#111}
.site-footer__inner{position:relative;width:min(100% - 96px,var(--hero-max-width));min-height:clamp(660px,78vh,820px);margin:0 auto;padding:0}
.site-footer__top{position:absolute;top:clamp(52px,7vh,94px);left:50%;display:grid;grid-template-columns:repeat(3,minmax(110px,auto));justify-content:space-between;width:min(94%,1280px);gap:clamp(24px,3vw,46px);min-height:0;transform:translateX(-50%)}
.site-footer__nav{display:flex;flex-direction:column;align-items:center;gap:20px}
.site-footer__nav a{color:#303030;font-size:clamp(16px,1.15vw,21px);font-weight:560;line-height:1.25;text-decoration:none;transition:color 180ms ease,transform 180ms ease}
.site-footer__nav a:hover{color:var(--hero-red);transform:translateX(3px)}
.site-footer__nav--contact a:nth-child(2){white-space:normal;max-width:320px;text-align:center}
.site-footer__brand-row{position:absolute;left:50%;top:64%;display:flex;flex-direction:column;align-items:center;width:min(100%,1500px);margin:0;transform:translate(-50%,-50%)}
.site-footer__brand{display:flex;align-items:center;justify-content:center;width:auto;color:#111;text-decoration:none}
.site-footer__brand img{display:block;width:clamp(118px,11.5vw,218px);height:clamp(118px,11.5vw,218px);margin-right:clamp(22px,2.4vw,46px);object-fit:contain;opacity:0;transform:translateY(24px) scale(.92);transition:opacity 620ms ease,transform 820ms cubic-bezier(.16,1,.3,1)}
.site-footer__brand-word{display:block;flex:0 1 auto;font-size:clamp(108px,13.2vw,260px);font-weight:650;letter-spacing:-.065em;line-height:.9;white-space:nowrap}
.site-footer__brand-letter{display:inline-block;opacity:0;filter:blur(5px);transform:translateY(.42em);transition:opacity 520ms ease var(--letter-delay),filter 620ms ease var(--letter-delay),transform 820ms cubic-bezier(.16,1,.3,1) var(--letter-delay)}
.site-footer.is-brand-visible .site-footer__brand img,.site-footer.is-brand-visible .site-footer__brand-letter{opacity:1;filter:blur(0);transform:translateY(0) scale(1)}
.site-footer__bottom{position:absolute;right:0;bottom:clamp(24px,3.5vh,42px);left:0;display:flex;align-items:center;justify-content:space-between;gap:24px}
.site-footer__copyright,.site-footer__beian,.site-footer__icp{margin:0;color:#686868;font-size:clamp(14px,1vw,18px);font-weight:500;line-height:1.4;transition:color 180ms ease}
.site-footer__filings{display:flex;align-items:center;justify-content:flex-end;gap:20px}
.site-footer__beian{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;text-decoration:none}
.site-footer__beian img{width:18px;height:18px;object-fit:contain;flex:0 0 auto}
.site-footer__beian:hover,.site-footer__icp:hover{color:var(--hero-red)}
@media(max-width:860px){.site-footer,.site-footer__inner{min-height:650px}.site-footer__inner{width:min(100% - 40px,var(--hero-max-width))}.site-footer__top{top:44px;left:50%;width:100%;grid-template-columns:repeat(3,1fr);gap:14px;transform:translateX(-50%)}.site-footer__nav{align-items:center;gap:14px}.site-footer__brand-row{top:60%}.site-footer__brand img{width:clamp(72px,17vw,108px);height:clamp(72px,17vw,108px);margin-right:16px}.site-footer__brand-word{font-size:clamp(62px,17vw,120px)}.site-footer__bottom{bottom:24px;flex-direction:column;gap:8px;text-align:center}.site-footer__filings{justify-content:center;flex-wrap:wrap;gap:8px 16px}}
@media(max-width:560px){.site-footer,.site-footer__inner{min-height:560px}.site-footer__inner{width:calc(100% - 32px)}.site-footer__top{top:34px;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}.site-footer__nav{gap:10px}.site-footer__nav a{font-size:13px}.site-footer__brand-row{top:58%}.site-footer__brand img{width:62px;height:62px;margin-right:10px}.site-footer__brand-word{font-size:clamp(54px,16vw,82px)}.site-footer__bottom{bottom:18px;gap:6px}.site-footer__copyright,.site-footer__beian,.site-footer__icp{font-size:11px}.site-footer__top{grid-template-columns:1fr 1fr}.site-footer__top .site-footer__nav:nth-child(3){grid-column:1/-1;text-align:center;align-items:center}}
.metric strong{letter-spacing:0}.dialog{position:relative}.dialog-close{position:absolute;top:18px;right:18px;width:40px;height:40px;border:0;border-radius:50%;background:transparent;color:#444;font-size:26px;cursor:pointer}.dialog-close:hover{background:#f5e6dd}.dialog-close:focus-visible,.hub-logout:focus-visible{outline:2px solid #c63d2b;outline-offset:3px}.hub-logout{border:1px solid #ddd4cd;background:transparent;border-radius:999px;padding:9px 18px;font:inherit;cursor:pointer}.hub-logout:hover{background:#f5e6dd}



.embedded-login,.embedded-login body{background:transparent}.embedded-login .a9-nav,.embedded-login .site-footer{display:none}.embedded-login .overlay{background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none}
/* Star Hub reference layout */
body{font-family:Inter,Manrope,"SF Pro Display","PingFang SC","Microsoft YaHei",Arial,sans-serif;background:#fdf8f2}
.hub{width:min(1230px,calc(100% - 96px));min-height:900px;padding:112px 0 45px}.hub h1{font-size:17px;font-weight:520;color:#555853;margin:0 0 28px}.metric{margin:0;display:flex;align-items:baseline;gap:18px;font-size:clamp(55px,7.65vw,116px);line-height:1.13;letter-spacing:-.075em;font-weight:720;font-variant-numeric:tabular-nums}.metric strong{font-size:clamp(23px,2.45vw,39px);font-weight:590;letter-spacing:-.045em}.footnote{margin-top:38px;text-align:right;font-size:14px;line-height:2;color:#777975}.footnote p{margin:0}.hub-logout{margin-top:20px}
footer{border-top:1px solid #eae4dd;background:#fcf8f2;padding:64px 0 24px;color:#121212}footer .shell{width:min(1230px,calc(100% - 96px));margin:auto}.footer-top{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:52px;padding-bottom:70px}footer .brand{display:inline-flex;align-items:center;gap:9px;color:#111;text-decoration:none}footer .brand-mark{display:block;width:36px;height:42px;object-fit:contain}footer .brand-word{font-weight:730;font-size:25px;letter-spacing:-1.05px}footer .nine{color:#c63d2b}.footer-intro .brand{margin-bottom:18px}.footer-intro p{font-size:13px;color:#787772;line-height:2;max-width:300px;margin:0}.footer-title{font-size:14px;font-weight:700;margin:9px 0 24px}.footer-links{display:grid;grid-template-columns:repeat(2,max-content);gap:17px 38px}.footer-links a,.footer-contact{font-size:13px;color:#747672;text-decoration:none}.footer-contact{line-height:2.1}.footer-contact a,.footer-bottom a{color:inherit;text-decoration:none}.footer-bottom{border-top:1px solid #eae4dd;padding-top:24px;display:flex;flex-wrap:wrap;gap:13px 26px;justify-content:space-between;font-size:11px;color:#898984}.footer-legal{display:flex;flex-wrap:wrap;gap:10px 20px}
@media(max-width:1200px){.hub,footer .shell{width:calc(100% - 64px)}.metric{font-size:clamp(49px,7.15vw,92px)}}
@media(max-width:960px){.footer-top{grid-template-columns:1fr 1fr;gap:38px}.footer-intro{grid-column:1/-1}}
@media(max-width:650px){.hub,footer .shell{width:calc(100% - 40px)}.hub{min-height:680px;padding:105px 0 40px}.hub h1{font-size:12px;margin-bottom:20px}.metric{display:block;font-size:clamp(34px,8vw,54px)}.metric strong{display:block;font-size:25px;margin-top:8px}.footnote{font-size:11px}.footer-top{grid-template-columns:1fr;gap:28px;padding-bottom:42px}.footer-intro{grid-column:auto}footer{padding-top:44px}.footer-bottom{display:block;line-height:2.3}}
/* Fill short viewports and let taller content scroll without covering it. */
body{
  display:flex;
  flex-direction:column;
  min-height:100svh;
  min-height:100dvh;
}
.a9-nav,footer{flex-shrink:0}
.hub{
  flex:1 0 auto;
  min-height:0;
  margin:0 auto;
  padding-block:48px;
}
footer{margin-top:auto}
.embedded-login footer{display:none}
.hub-logout{position:absolute;right:32px;top:125px;font-size:12px;color:#777;border-color:#eae4dd}
@media(max-width:650px){.hub-logout{right:20px;top:95px}}

.metric{justify-content:center;text-align:center}.metric strong{letter-spacing:0}@media(max-width:650px){.metric{text-align:center}}
.hub h1{text-align:center}
.metric #tokenCount{display:inline-block;text-align:right;font-variant-numeric:tabular-nums}
/* Double the metric scale; wrap the unit when the viewport cannot fit both. */
.metric{font-size:clamp(98px,14.3vw,232px);flex-wrap:wrap;column-gap:18px;row-gap:0}
.metric strong{font-size:clamp(46px,4.9vw,78px)}
@media(max-width:650px){.metric{font-size:clamp(54px,15vw,108px)}.metric strong{font-size:50px}}
.hub{container-type:inline-size}
/* The loading message and the result use the same line of metric space. */
.metric-slot,.metric{font-size:clamp(32px,12cqw,232px)}
.metric-slot{display:grid;grid-template-columns:minmax(0,1fr);align-items:center;min-block-size:1.13em}
.metric-slot > *{grid-area:1/1}
.metric{display:flex;flex-wrap:nowrap;white-space:nowrap}
.metric-slot .metric{font-size:inherit}
.metric strong{display:inline;white-space:nowrap;font-size:clamp(18px,4cqw,78px);margin-top:0}
@media(max-width:650px){.metric-slot,.metric{font-size:clamp(28px,10cqw,108px)}.metric{gap:8px}.metric strong{font-size:clamp(16px,4cqw,50px)}}

/* Login extensions use the existing cream, red, border and radius palette. */
.dialog fieldset{display:grid;gap:10px;min-width:0;margin:0;padding:0;border:0}
.dialog fieldset label{display:block}
.login-tabs{display:flex;gap:4px;padding:4px;margin:0 0 14px;border:1px solid #e5dfd8;border-radius:12px;background:#f5eee6}
.login-tabs button{flex:1;min-width:0;min-height:40px;padding:8px 6px;border:0;border-radius:8px;background:transparent;color:#74726e;font:inherit;font-size:13px;font-weight:650;cursor:pointer}
.login-tabs button[aria-selected="true"],.login-tabs button[aria-pressed="true"]{background:#fffaf5;color:#c63d2b;box-shadow:0 2px 6px #34231b0d}
.dialog .login-agreement{display:flex;align-items:flex-start;gap:8px;margin-top:20px;font-size:12px;font-weight:400;line-height:1.8;color:#74726e}
.dialog .login-agreement input{flex:none;width:16px;height:16px;margin:3px 0 0;padding:0;accent-color:#c63d2b}
.login-agreement a{color:#a93127;text-underline-offset:3px;white-space:nowrap}
.code-row{display:flex;gap:8px;min-width:0}.code-row input{min-width:0;flex:1}
.dialog .secondary{flex:none;min-width:108px;padding:0 12px;border:1px solid #dfc8bb;border-radius:11px;background:#fffaf5;color:#a93127;font:inherit;font-size:13px;font-weight:650;cursor:pointer}
.dialog .login-hint{margin:4px 0;color:#74726e;font-size:12px;line-height:1.8}
/* Both login methods share feedback space so switching never resizes the card. */
.dialog .login-feedback{display:grid;min-block-size:40px}
.dialog .login-feedback>p{grid-area:1/1;align-self:start;margin:0}
.dialog #loginError{padding:4px 10px;font-size:12px;line-height:16px}
.dialog .register{margin:0;padding-top:12px}
.dialog select{width:100%;height:50px;padding:0 12px;border:1px solid #e5dfd8;border-radius:11px;background:#fff;color:#111;font:inherit;font-size:14px}
.login-back{min-height:36px;border:0;background:transparent;color:#74726e;font:inherit;font-size:13px;cursor:pointer}
.dialog button:disabled{opacity:.55;cursor:default}.dialog button:focus-visible,.dialog select:focus-visible,.login-agreement a:focus-visible{outline:2px solid #c63d2b;outline-offset:3px}
.footnote .hub-logout{position:static;margin-left:10px;font-size:12px}
@media(max-width:360px){.dialog{padding:30px 20px}.login-tabs button{font-size:12px}.dialog .secondary{min-width:96px;padding:0 8px}.dialog .register a{display:inline-block;white-space:nowrap}}

.metric #tokenCount{flex:none;white-space:nowrap;letter-spacing:-.075em}
.metric #tokenCount[tabindex]{overflow-x:auto;text-align:start}
.metric-feedback{font-size:1rem;text-align:center;color:#555853}
#metricStatus{margin:0}
#metricStatus:empty{display:none}
.metric-retry{margin-top:8px;border:1px solid #ddd4cd;background:transparent;border-radius:999px;padding:9px 18px;font:inherit;cursor:pointer}
.metric-retry:hover{background:#f5e6dd}
.metric-retry:focus-visible{outline:2px solid #c63d2b;outline-offset:3px}
