/* Centered headline, paired actions and wide product preview, based on the supplied reference. */
html{scrollbar-gutter:stable}
body{min-width:0}
.hero{padding-top:0;background:radial-gradient(ellipse 75% 620px at 6% 3%,#cce4ff85,transparent 72%),radial-gradient(ellipse 70% 650px at 96% 10%,#d6c7ff80,transparent 72%),linear-gradient(180deg,#edf1ff 0%,#e6edff 35%,#edf3ff 72%,#f5f8ff 100%);isolation:isolate}
.hero:before{top:285px;left:-132px;right:auto;transform:none;width:230px;height:230px;border-radius:50%;background:radial-gradient(circle at 74% 56%,#87a6ff 0 15%,#eef3ff 15.5% 43%,#fff8 43.5% 62%,transparent 62.5%);box-shadow:none;opacity:.55;z-index:-1}
.hero:after{top:367px;left:auto;right:-75px;transform:none;width:160px;height:160px;filter:none;border-radius:50%;background:linear-gradient(135deg,#79bffa,#88a9fb);opacity:.68;z-index:-1}
.hero .hero-intro{display:block;grid-template-columns:none;gap:0;min-height:0;padding-top:90px;padding-bottom:0;text-align:center}
.hero .hero-copy{width:100%;max-width:1140px;margin-inline:auto}
.hero h1{margin:0;font-size:64px;line-height:1.35;letter-spacing:-1.8px;font-weight:750;color:#101218;text-shadow:none;white-space:normal;text-wrap:balance}
.hero h1 .gradient-text{background:linear-gradient(100deg,#547aff,#8063f4);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;text-shadow:none}
.hero .hero-lead{max-width:1050px;margin:23px auto 0;font-size:18px;line-height:1.9;color:#4b5563;font-weight:400;letter-spacing:0}
.hero-intro .hero-actions{display:flex;flex-direction:row;align-items:center;justify-content:center;flex-wrap:wrap;gap:22px;margin-top:30px}
.hero-intro .hero-actions .sw-button{min-width:185px;min-height:55px;display:inline-flex;align-items:center;justify-content:center;padding:12px 28px;border-radius:999px;font-size:17px;font-weight:650;line-height:1.5;letter-spacing:.3px;text-decoration:none;box-shadow:none;transform:none;transition:transform .25s ease,box-shadow .25s ease,background .25s ease}
.hero-intro .hero-actions .hero-download{border:1.7px solid #657df0;color:#546acd;background:#ffffff65}
.hero-intro .hero-actions .hero-download:hover{background:#eef2ff;box-shadow:0 7px 20px #7588df1a;transform:translateY(-2px)}
.hero-intro .hero-actions .hero-source{border:1.7px solid transparent;color:#fff;background:linear-gradient(105deg,#4f68fa 5%,#8560ef 60%,#d550e9);box-shadow:0 5px 16px #8c79dc18}
.hero-intro .hero-actions .hero-source:hover{box-shadow:0 8px 22px #8a69e538;transform:translateY(-2px)}
.hero-intro .hero-actions .sw-button:before,.hero-intro .hero-actions .sw-button:after{display:none}
.hero .workspace-stage{margin-top:66px}

/* Native modal shell: one wide download picker and one compact repository picker. */
#info-dialog{max-height:90vh;overflow-y:auto;overscroll-behavior:contain}
#info-dialog[data-variant=download]{width:calc(100% - 48px);max-width:940px;border-radius:20px}
#info-dialog[data-variant=source]{width:calc(100% - 48px);max-width:660px;border-radius:20px}
#info-dialog[data-variant] .info-dialog-inner:before{background:linear-gradient(90deg,#6684f3,#aa72e7);height:3px}
#info-dialog[data-variant=download] .info-dialog-inner,#info-dialog[data-variant=source] .info-dialog-inner{padding:36px 36px 31px}
#info-dialog[data-variant=download] .dialog-eyebrow,#info-dialog[data-variant=source] .dialog-eyebrow{color:#72678e;font-family:var(--font-body);font-size:10px;letter-spacing:1.7px}
#info-dialog[data-variant=download] #dialog-title,#info-dialog[data-variant=source] #dialog-title{font-size:27px;line-height:1.5;margin-top:10px;color:#202838}
#info-dialog .release-intro{font-size:13px;line-height:1.9;color:#636d7e;margin:0}
.download-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;margin-top:24px}
.os-card{min-width:0;border:1px solid #e3e8f3;border-radius:13px;padding:23px 19px 19px;background:linear-gradient(160deg,#fff,#f9fbff)}
.os-card-top{display:flex;align-items:center;gap:12px;margin-bottom:13px}
.os-brand{width:36px;height:36px;display:grid;place-items:center;flex-shrink:0;color:#556cae}
.os-brand svg{width:29px;height:29px;display:block}
.os-brand.os-mac{font-size:37px;line-height:1;font-weight:500;color:#545c70}
.os-brand.os-linux{font:600 25px var(--font-body);color:#5e6c91}
#info-dialog .os-card h4{font-size:20px;font-weight:600;letter-spacing:-.4px;color:#3d4d69}
#info-dialog .os-card .os-description{font-size:12px;line-height:1.9;color:#636d80;margin:0 0 17px;min-height:42px}
.package-list{display:flex;flex-direction:column;gap:9px}
.package-link{display:flex;justify-content:space-between;align-items:center;gap:8px;background:#f1f5ff;border:1px solid #dfe7fa;padding:11px 12px;border-radius:7px;color:#546daa;text-decoration:none;transition:background .2s,border-color .2s,transform .2s}
.package-link:hover{background:#e9efff;border-color:#b7c9f1;transform:translateY(-2px)}
.package-type{display:block;font-size:14px;font-weight:600;line-height:1.6;color:#405c94}
.package-meta{display:block;font-size:12px;line-height:1.6;color:#606d84;margin-top:2px;white-space:nowrap}
.package-download{width:15px;height:15px;color:#5d6d90;flex-shrink:0}
.release-footnote{display:flex;gap:7px;align-items:center;justify-content:center;border-top:1px solid #edf0f7;margin-top:24px;padding-top:17px;color:#646d7b;font-size:10px;line-height:1.8}
.release-footnote svg{width:13px;height:13px;flex-shrink:0;color:#616d82}
.repository-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:24px}
.repository-card{border:1px solid #e2e8f3;border-radius:12px;padding:24px;background:linear-gradient(160deg,#fff,#fafbfe)}
.repository-mark{display:block;width:34px;height:34px;margin-bottom:15px;color:#4d586e}
.repository-mark svg{width:100%;height:100%}
.repository-mark.gitee{background:#d95766;color:#fff;border-radius:8px;font:700 26px/34px var(--font-body);text-align:center}
.repository-card h4{font-size:18px;color:#3b4960;font-weight:600;margin-bottom:6px}
#info-dialog .repository-card p{font-size:12px;color:#646d7c;line-height:1.9;margin:0}
.repository-status{display:inline-block;font-size:10px;color:#666c7a;border:1px solid #e3e8f1;border-radius:4px;background:#f5f7fb;padding:5px 9px;margin-top:17px}
.repository-footnote{font-size:11px;line-height:1.9;color:#666c79;margin-top:20px;text-align:center}
.repository-footnote button{color:#6b6990;text-decoration:underline;text-underline-offset:3px}
@media(min-width:1600px){.hero .hero-intro{padding-top:101px}.hero h1{font-size:70px}.hero .hero-lead{font-size:19px}.hero-intro .hero-actions{margin-top:34px}.hero .workspace-stage{margin-top:78px}}
@media(max-width:1023px){.hero .hero-intro{padding-top:72px}.hero h1{font-size:55px}.hero .hero-lead{font-size:16px;max-width:880px}.hero-intro .hero-actions .sw-button{min-width:172px;min-height:51px;font-size:16px}.hero .workspace-stage{margin-top:58px}}
@media(max-width:767px){.hero{padding-top:0}.hero .hero-intro{padding-top:51px;padding-bottom:0;gap:0}.hero h1{font-size:clamp(30px,8vw,44px);line-height:1.45;letter-spacing:-.7px}.hero .hero-lead{font-size:13px;line-height:2;max-width:400px;margin-top:19px}.hero .hero-lead br{display:none}.hero-intro .hero-actions{flex-direction:row;gap:12px;margin-top:25px;flex-wrap:nowrap}.hero-intro .hero-actions .sw-button{min-width:0;min-height:47px;width:calc((100% - 12px)/2);max-width:180px;padding:10px 13px;font-size:14px;border-radius:999px}.hero .workspace-stage{margin-top:43px}.hero:before{width:150px;height:150px;left:-110px;top:180px;opacity:.4}.hero:after{width:100px;height:100px;right:-73px;top:220px;opacity:.5}#info-dialog[data-variant=download],#info-dialog[data-variant=source]{width:calc(100% - 30px);max-height:90vh;border-radius:15px}#info-dialog[data-variant=download] .info-dialog-inner,#info-dialog[data-variant=source] .info-dialog-inner{padding:28px 22px 24px}#info-dialog[data-variant=download] #dialog-title,#info-dialog[data-variant=source] #dialog-title{font-size:24px}.download-grid{grid-template-columns:1fr;gap:13px;margin-top:20px}.os-card{padding:19px 17px 17px}.os-card-top{gap:11px;margin-bottom:9px}.os-brand{width:31px;height:31px}.os-brand svg{width:25px;height:25px}.os-brand.os-mac{font-size:33px}.os-brand.os-linux{font-size:23px}#info-dialog .os-card h4{font-size:18px}#info-dialog .os-card .os-description{min-height:0;font-size:10px;margin-bottom:13px}.package-link{padding:11px 12px}.package-type{font-size:12px}.package-meta{font-size:10px}.release-footnote{font-size:9px;align-items:flex-start;justify-content:flex-start;margin-top:19px;padding-top:15px}.repository-grid{gap:12px;margin-top:20px}.repository-card{padding:18px 15px}.repository-mark{width:29px;height:29px}.repository-mark.gitee{font-size:23px;line-height:29px}.repository-card h4{font-size:16px}#info-dialog .repository-card p{font-size:10px}.repository-status{font-size:9px}.repository-footnote{font-size:10px}}
@media(prefers-reduced-motion:reduce){.hero-intro .hero-actions .sw-button,.package-link{transition:none!important;transform:none!important}}

/* Keep the institute shell unchanged on desktop and contained on narrow screens. */
@media(max-width:1199px){
  .header .container,.footer .container{width:calc(100% - 48px)}
  .header__logo{width:180px}
  .header__nav{margin-left:auto;gap:5px}
  .header__nav-item{padding-inline:8px;font-size:13px;white-space:nowrap}
  .header__actions{margin-right:0;margin-left:20px}
  .footer{height:auto;padding-bottom:28px;overflow:clip}
  .footer__main{display:grid;grid-template-columns:1.5fr .7fr .7fr 1.7fr;gap:22px}
  .footer__brand,.footer__col,.footer__follow{width:auto;padding-left:0;min-width:0}
  .footer__logo{width:190px;margin-left:-15px}
  .footer__qr-card{width:100%;padding:20px;gap:12px;height:auto;align-items:center}
  .footer__qr{width:84px}
  .footer__qr-text{padding-top:0}
  .footer__qr-caption{font-size:11px}
  .footer__divider{width:100%}
  .footer__legal{padding-inline:0;flex-wrap:wrap;gap:18px}
  .footer__contact{flex-basis:100%;line-height:1.8}
}
@media(max-width:767px){
  .header,.header__bar{height:112px}
  .header .container,.footer .container{width:calc(100% - 36px)}
  .header__inner{flex-wrap:wrap;align-content:center;row-gap:11px}
  .header__logo{width:180px}
  .header__actions{align-self:center;margin:0 0 0 auto}
  .header__actions .btn--login{width:74px;height:34px;font-size:12px}
  .header__nav{order:3;width:100%;margin:0;gap:23px;overflow-x:auto;scrollbar-width:none}
  .header__nav::-webkit-scrollbar{display:none}
  .header__nav-item{height:30px;line-height:30px;padding:0;font-size:12px;flex-shrink:0}
  .footer__main{grid-template-columns:1fr 1fr;gap:26px 22px;padding-top:30px}
  .footer__brand,.footer__follow{grid-column:1/-1}
  .footer__hotline-label{margin-top:20px}
  .footer__follow-title{margin-left:0}
  .footer__qr-card{justify-content:flex-start;gap:20px;margin-top:15px}
  .footer__legal{padding-top:24px}
  .footer__legal-item{width:auto;text-align:left}
  .footer__police{width:auto}
  #info-dialog .os-card .os-description{font-size:12px}
  .package-type{font-size:14px}
  .package-meta{font-size:12px}
  #info-dialog .repository-card p{font-size:12px;color:#636d80}
}
