/* Huawei WiFi UI System v1.7.8 — premium rhythm + unified grids */
:root{
  --hw-ui-red:#e60012;--hw-ui-red-2:#ff3344;--hw-ui-ink:#111820;--hw-ui-text:#36404a;--hw-ui-muted:#7a8590;
  --hw-ui-line:#e6ebf0;--hw-ui-soft:#f6f8fb;--hw-ui-card:#fff;--hw-ui-max:1440px;
  --hw-ui-radius:20px;--hw-ui-shadow:0 14px 38px rgba(17,24,39,.055);--hw-ui-gap:18px;
}
.hw-system-container,.hw-container,.hw-content-wrap{width:min(calc(100% - 48px),var(--hw-ui-max))!important;margin-left:auto!important;margin-right:auto!important}
.hw-system-page,.hw-showcase-page,.hw-function-page,.hw-content-shell,.huawei-homepage{color:var(--hw-ui-text)}
.hw-system-section{padding:68px 0}.hw-system-section--soft{background:linear-gradient(180deg,#f8fafc 0%,#f5f7fa 100%)}
.hw-system-heading{text-align:center;max-width:820px;margin:0 auto 30px}.hw-system-heading>span{display:block;margin-bottom:8px;color:var(--hw-ui-red);font-size:12px;font-weight:700;letter-spacing:.12em}.hw-system-heading h2{margin:0;color:var(--hw-ui-ink);font-size:34px;line-height:1.15;letter-spacing:-.7px;font-weight:700}.hw-system-heading p{margin:10px auto 0;color:var(--hw-ui-muted);font-size:14px;line-height:1.7}

/* Unified grid rules: exact 5 / 4 / 3 / 2 where enough items exist */
.hw-grid-system{display:grid!important;gap:var(--hw-ui-gap)!important;min-width:0}
@media(min-width:1281px){.hw-grid-system{grid-template-columns:repeat(5,minmax(0,1fr))!important}}
@media(min-width:992px) and (max-width:1280px){.hw-grid-system{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(min-width:783px) and (max-width:991px){.hw-grid-system{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:782px){.hw-grid-system{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}}
/* Cards with only four configured items remain balanced instead of leaving an empty fifth column. */
@media(min-width:1281px){.hw-grid-system--support,.hw-grid-system--technology{grid-template-columns:repeat(4,minmax(0,1fr))!important}}

/* Premium solution selector */
.hw-solutions-showcase{background:#fff!important;padding:0!important}.hw-solution-premium-hero{padding:62px 0 72px;background:radial-gradient(circle at 50% -15%,rgba(230,0,18,.075),transparent 34%),linear-gradient(180deg,#fff 0%,#fff 64%,#fafbfc 100%);overflow:hidden}.hw-solution-premium-heading{text-align:center;max-width:1020px;margin:0 auto 36px}.hw-solution-premium-heading .hw-kicker{display:block;margin-bottom:12px;color:var(--hw-ui-red);font-size:15px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.hw-solution-premium-heading h1{margin:0;color:#12171d;font-size:56px;line-height:1.05;letter-spacing:-2px;font-weight:700}.hw-solution-premium-heading p{max-width:850px;margin:16px auto 0;color:#707b85;font-size:19px;line-height:1.65}
.hw-solution-tab-grid{margin-bottom:26px}.hw-solution-tab{position:relative;display:flex!important;align-items:center!important;justify-content:center!important;gap:10px!important;min-height:64px!important;padding:12px 16px!important;border:1px solid #e7ebef!important;border-radius:999px!important;background:rgba(255,255,255,.92)!important;color:#515c66!important;box-shadow:0 8px 24px rgba(17,24,39,.035)!important;cursor:pointer!important;transition:.22s ease!important}.hw-solution-tab__index{display:inline-flex;align-items:center;justify-content:center;width:25px;height:25px;border-radius:50%;background:#f2f4f7;color:#9aa3ac;font-size:10px;font-weight:700;transition:.22s}.hw-solution-tab__title{font-size:14px;font-weight:700;text-align:center;line-height:1.25}.hw-solution-tab:hover{transform:translateY(-2px);border-color:#ffb9bf!important;background:#fff8f9!important;color:#c90011!important}.hw-solution-tab.is-active{border-color:var(--hw-ui-red)!important;background:linear-gradient(135deg,#e60012 0%,#ff2637 100%)!important;color:#fff!important;box-shadow:0 14px 32px rgba(230,0,18,.18)!important}.hw-solution-tab.is-active .hw-solution-tab__index{background:rgba(255,255,255,.18);color:#fff}
.hw-solution-stage-wrap{position:relative}.hw-solution-stage{display:none;grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr);gap:42px;align-items:center;min-height:460px;padding:36px;border:1px solid #e7ebef;border-radius:30px;background:linear-gradient(135deg,#fff 0%,#fff 48%,#fff7f8 100%);box-shadow:0 24px 70px rgba(17,24,39,.075);overflow:hidden}.hw-solution-stage.is-active{display:grid;animation:hwSolutionIn .35s ease both}@keyframes hwSolutionIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}.hw-solution-stage__copy{padding:14px 4px 14px 8px}.hw-solution-stage__eyebrow{display:inline-flex;align-items:center;min-height:30px;padding:0 12px;border-radius:999px;background:#fff0f2;color:#d40012;font-size:11px;font-weight:700;letter-spacing:.08em}.hw-solution-stage__copy h2{margin:16px 0 10px;color:#111820;font-size:40px;line-height:1.1;letter-spacing:-1px;font-weight:700}.hw-solution-stage__copy>p{margin:0;color:#65717b;font-size:15px;line-height:1.75}.hw-solution-stage__points{list-style:none;margin:20px 0 26px;padding:0;display:grid;gap:10px}.hw-solution-stage__points li{display:flex;gap:10px;align-items:flex-start;color:#36404a;font-size:14px;line-height:1.55}.hw-solution-stage__points li>span{display:grid;place-items:center;width:20px;height:20px;flex:0 0 20px;margin-top:1px;border-radius:50%;background:#fff0f2;color:#e60012;font-size:11px;font-weight:700}.hw-solution-stage__actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.hw-solution-stage__actions .hw-btn{min-height:46px!important;padding:0 20px!important;border-radius:12px!important;font-size:13px!important}.hw-solution-text-link{display:inline-flex;align-items:center;gap:7px;color:#303840!important;font-size:13px;font-weight:700;text-decoration:none!important}.hw-solution-text-link:hover{color:var(--hw-ui-red)!important}
.hw-solution-stage__media{position:relative;min-height:390px;border-radius:24px;overflow:hidden;background:linear-gradient(145deg,#f7f9fc,#fff);display:flex;align-items:center;justify-content:center}.hw-solution-stage__media img{position:relative;z-index:2;width:100%;height:390px;object-fit:cover;display:block}.hw-solution-stage__glow{position:absolute;z-index:1;width:420px;height:420px;border-radius:50%;background:radial-gradient(circle,rgba(230,0,18,.11) 0%,rgba(230,0,18,.025) 42%,transparent 68%)}.hw-solution-stage__badge{position:absolute;z-index:3;left:18px;bottom:18px;display:grid;gap:2px;min-width:190px;padding:12px 15px;border:1px solid rgba(255,255,255,.75);border-radius:14px;background:rgba(255,255,255,.88);backdrop-filter:blur(12px);box-shadow:0 8px 24px rgba(17,24,39,.08)}.hw-solution-stage__badge b{font-size:12px;color:#1d252d}.hw-solution-stage__badge span{font-size:10px;color:#7b8590}

/* Shared card rhythm */
.hw-system-card,.hw-info-card,.hw-support-box,.hw-tech-card,.hw-content-card,.hw-product-card,.hw-solution-card{border-color:var(--hw-ui-line)!important;box-shadow:var(--hw-ui-shadow)!important;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease!important}.hw-system-card:hover,.hw-info-card:hover,.hw-support-box:hover,.hw-tech-card:hover,.hw-content-card:hover,.hw-product-card:hover,.hw-solution-card:hover{transform:translateY(-4px)!important;box-shadow:0 18px 42px rgba(17,24,39,.085)!important;border-color:#dce3e9!important}
.hw-section-title{margin-bottom:24px!important}.hw-section-title h2{font-size:30px!important;line-height:1.2!important;letter-spacing:-.5px!important;color:#151b22!important}.hw-products{padding:48px 0 26px!important}.hw-product-group{grid-template-columns:240px minmax(0,1fr)!important;margin-bottom:20px!important;border-radius:20px!important;overflow:hidden!important}.hw-product-group__head{min-height:236px!important;padding:28px 22px!important}.hw-product-group__head h3{font-size:20px!important}.hw-product-group__head p{font-size:12px!important;line-height:1.65!important}.hw-product-list{gap:0!important}.hw-product-card{min-height:236px!important;padding:16px 13px 18px!important;border-left:1px solid #eef1f4!important;background:#fff!important;box-shadow:none!important}.hw-product-card__image,.hw-product-card.is-live .hw-product-card__image{height:126px!important;margin-bottom:10px!important}.hw-product-card img,.hw-product-card.is-live .hw-product-card__image img{height:126px!important}.hw-product-card strong{font-size:13px!important;line-height:1.4!important;min-height:37px!important}.hw-product-card__price{font-size:13px!important}.hw-product-card__sku{font-size:10px!important}
.hw-solutions{padding:32px 0 42px!important}.hw-solutions__grid{gap:16px!important}.hw-solution-card{min-height:180px!important;border-radius:18px!important}.hw-solution-card div{left:16px!important;right:16px!important;bottom:15px!important}.hw-solution-card strong{font-size:14px!important}.hw-solution-card span{font-size:10.5px!important;line-height:1.45!important}
.hw-benefit-grid{gap:16px!important}.hw-info-card{min-height:190px;padding:20px!important;border-radius:20px!important}.hw-info-card h3{font-size:16px!important;line-height:1.3!important}.hw-info-card p{font-size:12.5px!important;line-height:1.65!important}.hw-info-icon{width:46px!important;height:46px!important;border-radius:14px!important;margin-bottom:14px!important}

/* News */
.hw-content-hero{padding:52px 0 42px!important}.hw-content-hero h1{font-size:46px!important;letter-spacing:-1.5px!important}.hw-content-hero p{font-size:15px!important}.hw-content-main{padding:38px 0 64px!important}.hw-news-section-head{margin-bottom:18px!important}.hw-news-grid{gap:18px!important}.hw-content-card{display:flex!important;flex-direction:column!important;min-height:390px!important;border-radius:18px!important;overflow:hidden!important}.hw-content-card__media{aspect-ratio:16/10!important}.hw-content-card__body{display:flex!important;flex-direction:column!important;flex:1!important;padding:16px!important}.hw-content-card h2{font-size:15px!important;line-height:1.4!important;min-height:42px!important}.hw-content-card p{font-size:12px!important;line-height:1.6!important}.hw-content-card__foot{margin-top:auto!important}.hw-news-featured{gap:20px!important;margin-bottom:32px!important}.hw-news-featured__main,.hw-news-featured__side{border-radius:20px!important;box-shadow:var(--hw-ui-shadow)!important}.hw-news-featured__copy h2{font-size:27px!important}

/* Support */
.hw-support-showcase{background:linear-gradient(180deg,#f7f9fc,#fff)!important;padding:38px 0 58px!important}.hw-support-showcase .hw-panel-card{width:min(calc(100% - 48px),var(--hw-ui-max))!important;padding:34px!important;border-radius:26px!important}.hw-support-showcase .hw-panel-head h1{font-size:42px!important}.hw-support-showcase .hw-panel-head p{font-size:15px!important}.hw-help-search{max-width:760px!important;margin-bottom:28px!important}.hw-help-search input,.hw-help-search button{height:48px!important}.hw-support-box-grid{gap:18px!important}.hw-support-box{min-height:220px!important;padding:22px!important;border-radius:20px!important}.hw-support-box__icon{width:50px!important;height:50px!important;border-radius:15px!important;margin-bottom:18px!important}.hw-support-box h3{font-size:17px!important}.hw-support-box p{font-size:12.5px!important;line-height:1.65!important}.hw-faq-clean{gap:10px!important}.hw-faq-clean details{border-radius:14px!important}.hw-support-cta-strip{margin-top:22px!important;border-radius:18px!important;padding:20px 24px!important}

/* Technology */
.hw-function-hero{padding:72px 0 58px!important}.hw-function-hero__grid{gap:52px!important}.hw-function-hero h1{font-size:54px!important}.hw-function-hero h2{font-size:23px!important}.hw-function-hero p{font-size:15px!important}.hw-function-hero__media{height:400px!important;border-radius:26px!important}.hw-function-section{padding:68px 0!important}.hw-function-heading{max-width:800px!important;margin-bottom:30px!important}.hw-function-heading h2{font-size:34px!important}.hw-tech-grid{gap:18px!important}.hw-tech-card{min-height:252px!important;padding:24px 20px!important;border-radius:20px!important}.hw-tech-card__icon{width:54px!important;height:54px!important;margin-bottom:24px!important}.hw-tech-card h3{font-size:17px!important;line-height:1.35!important}.hw-tech-card p{font-size:12.5px!important;line-height:1.65!important}.hw-tech-showcase__row{gap:54px!important;padding:44px 0!important}.hw-tech-showcase__media{height:330px!important;border-radius:22px!important}

/* Header/footer and trust rhythm */
.hw-header__inner{height:76px!important}.hw-nav{gap:30px!important}.hw-nav a{font-size:14px!important}.hw-trust{padding:4px 0 38px!important}.hw-trust__grid{border-radius:18px!important}.hw-trust__item{min-height:94px!important;padding:17px 16px!important}.hw-footer__grid{gap:36px!important;padding-bottom:34px!important}

@media(max-width:1280px){
  :root{--hw-ui-max:1220px;--hw-ui-gap:16px}.hw-solution-premium-heading h1{font-size:48px}.hw-solution-premium-heading p{font-size:17px}.hw-solution-stage{grid-template-columns:.92fr 1.08fr;gap:30px;padding:30px}.hw-solution-stage__copy h2{font-size:34px}.hw-product-group{grid-template-columns:220px minmax(0,1fr)!important}.hw-product-card{min-height:224px!important}.hw-content-card{min-height:370px!important}
}
@media(max-width:991px){
  .hw-system-container,.hw-container,.hw-content-wrap{width:min(calc(100% - 32px),var(--hw-ui-max))!important}.hw-system-section{padding:52px 0}.hw-solution-premium-hero{padding:46px 0 56px}.hw-solution-premium-heading h1{font-size:40px}.hw-solution-premium-heading p{font-size:15px}.hw-solution-tab{min-height:58px!important}.hw-solution-stage{grid-template-columns:1fr;gap:22px;min-height:0;padding:24px}.hw-solution-stage__media{min-height:320px;order:-1}.hw-solution-stage__media img{height:320px}.hw-solution-stage__copy h2{font-size:30px}.hw-product-group{display:block!important}.hw-product-group__head{min-height:170px!important}.hw-product-list{gap:0!important}.hw-content-card{min-height:350px!important}.hw-function-hero h1{font-size:44px!important}
}
@media(max-width:782px){
  .hw-system-container,.hw-container,.hw-content-wrap{width:min(calc(100% - 20px),var(--hw-ui-max))!important}.hw-system-section{padding:38px 0}.hw-system-heading{margin-bottom:20px}.hw-system-heading h2{font-size:25px}.hw-system-heading p{font-size:12px}.hw-solution-premium-hero{padding:30px 0 38px}.hw-solution-premium-heading{margin-bottom:22px}.hw-solution-premium-heading .hw-kicker{font-size:11px}.hw-solution-premium-heading h1{font-size:30px;letter-spacing:-1px}.hw-solution-premium-heading p{font-size:13px;margin-top:10px}.hw-solution-tab-grid{gap:10px!important;margin-bottom:16px}.hw-solution-tab{min-height:52px!important;padding:10px 8px!important;border-radius:16px!important}.hw-solution-tab__index{width:22px;height:22px;font-size:9px}.hw-solution-tab__title{font-size:11px}.hw-solution-stage{padding:14px;border-radius:20px}.hw-solution-stage__media{min-height:220px;border-radius:16px}.hw-solution-stage__media img{height:220px}.hw-solution-stage__badge{left:10px;bottom:10px;min-width:150px;padding:9px 10px}.hw-solution-stage__copy{padding:4px}.hw-solution-stage__copy h2{font-size:24px;margin-top:12px}.hw-solution-stage__copy>p,.hw-solution-stage__points li{font-size:12px}.hw-solution-stage__actions{gap:12px}.hw-solution-stage__actions .hw-btn{width:100%;min-height:42px!important}.hw-solution-text-link{font-size:12px}.hw-section-title h2{font-size:23px!important}.hw-products{padding:34px 0 20px!important}.hw-product-group{border-radius:16px!important}.hw-product-group__head{min-height:135px!important;padding:20px 16px!important}.hw-product-group__head h3{font-size:17px!important}.hw-product-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;overflow:visible!important}.hw-product-card{min-height:190px!important;padding:12px 8px 14px!important}.hw-product-card__image,.hw-product-card.is-live .hw-product-card__image,.hw-product-card img,.hw-product-card.is-live .hw-product-card__image img{height:92px!important}.hw-product-card strong{font-size:11.5px!important;min-height:33px!important}.hw-product-card__price{font-size:11.5px!important}.hw-solutions__grid{gap:10px!important}.hw-solution-card{min-height:132px!important;border-radius:14px!important}.hw-content-hero{padding:30px 0 24px!important}.hw-content-hero h1{font-size:30px!important}.hw-content-main{padding:24px 0 38px!important}.hw-content-card{display:flex!important;min-height:280px!important;border-radius:14px!important}.hw-content-card__body{padding:12px!important}.hw-content-card h2{font-size:13px!important;min-height:36px!important}.hw-content-card p{font-size:10.5px!important}.hw-support-showcase{padding:22px 0 38px!important}.hw-support-showcase .hw-panel-card{width:min(calc(100% - 20px),var(--hw-ui-max))!important;padding:18px!important;border-radius:18px!important}.hw-support-showcase .hw-panel-head h1{font-size:28px!important}.hw-support-box{min-height:190px!important;padding:15px!important;border-radius:16px!important}.hw-support-box__icon{width:42px!important;height:42px!important;margin-bottom:12px!important}.hw-support-box h3{font-size:14px!important}.hw-support-box p{font-size:11px!important}.hw-function-hero{padding:34px 0 30px!important}.hw-function-hero h1{font-size:31px!important}.hw-function-hero h2{font-size:17px!important}.hw-function-hero p{font-size:12px!important}.hw-function-section{padding:40px 0!important}.hw-function-heading h2{font-size:25px!important}.hw-tech-card{min-height:200px!important;padding:16px!important}.hw-tech-card h3{font-size:14px!important}.hw-tech-card p{font-size:11px!important}.hw-tech-showcase__row{padding:28px 0!important;gap:20px!important}.hw-tech-showcase__media{height:220px!important}
}
