.ahu-home-page,
.ahu-home-page * { box-sizing: border-box; }

.ahu-home-page {
  --home-orange: var(--ahu-primary);
  --home-orange-dark: #eb4d18;
  --home-orange-soft: #fff6f1;
  --home-text: var(--ahu-text-main);
  --home-regular: var(--ahu-text-regular);
  --home-muted: var(--ahu-text-secondary);
  --home-divider: var(--ahu-divider);
  --home-section-gap: #f6f6f7;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #fff;
  color: var(--home-text);
  font-family: "PingFang SC", "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0;
}

.ahu-home-page button {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.ahu-home-page button:focus-visible {
  outline: 2px solid #ff976f;
  outline-offset: 2px;
}

.ahu-home-system-header {
  position: absolute;
  z-index: 30;
  inset: 0 0 auto;
  height: 101px;
  background: #fff;
  transition: transform 180ms ease;
}

.ahu-home-page.is-header-hidden .ahu-home-system-header { transform: translateY(-103px); }

.ahu-home-status {
  height: 42px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 41px 8px 42px;
  color: #050505;
}

.ahu-home-status > strong { font-size: 14px; font-weight: 700; line-height: 18px; }
.ahu-home-status-icons { height: 18px; display: flex; align-items: center; gap: 7px; }
.ahu-home-status-icons i:first-child { width: 15px; height: 13px; background: #050505; clip-path: polygon(0 100%,0 72%,18% 72%,18% 52%,42% 52%,42% 31%,66% 31%,66% 10%,90% 10%,90% 100%); }
.ahu-home-status-icons i:nth-child(2) { position: relative; width: 16px; height: 13px; overflow: hidden; }
.ahu-home-status-icons i:nth-child(2)::before { content: ""; position: absolute; left: 1px; top: 0; width: 13px; height: 13px; border: 2px solid #050505; border-color: #050505 transparent transparent #050505; border-radius: 50%; transform: rotate(45deg); }
.ahu-home-status-icons i:nth-child(2)::after { content: ""; position: absolute; left: 6px; bottom: 0; width: 4px; height: 4px; border-radius: 50%; background: #050505; }
.ahu-home-status-icons b { min-width: 24px; height: 15px; display: grid; place-items: center; padding: 0 3px; border-radius: 4px; background: #151515; color: #fff; font-size: 9px; line-height: 15px; }

.ahu-home-header {
  height: 59px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px 1px 16px;
}

.ahu-home-category { min-height: 44px; display: flex; align-items: center; font-size: 15px !important; font-weight: 600 !important; }
.ahu-home-category span { width: 0; height: 0; margin: 4px 0 0 5px; border: 4px solid transparent; border-top-color: #111; }
.ahu-home-message { position: relative; width: 44px; height: 44px; display: grid; place-items: center; }
.ahu-home-message img { width: 44px; height: 44px; display: block; object-fit: cover; }
.ahu-home-message i { position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border: 1.5px solid #fff; border-radius: 50%; background: #f31e28; }

.ahu-home-scroll { width: 100%; height: 100%; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.ahu-home-scroll::-webkit-scrollbar { display: none; }
.ahu-home-content { min-height: 2200px; padding: 101px 0 110px; background: #fff; }

.ahu-home-hero { width: 100%; height: 156px; overflow: hidden; background: #fff8e9; }
.ahu-home-hero button, .ahu-home-hero img { width: 100%; height: 100%; display: block; }
.ahu-home-hero img { object-fit: cover; object-position: center; }

.ahu-home-quick {
  height: 100px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  padding: 8px 12px 7px;
  background: #fff;
}

.ahu-home-quick button { min-height: 80px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.ahu-home-quick img { width: 58px; height: 58px; display: block; object-fit: cover; }
.ahu-home-quick strong { color: #333; font-size: 13px; font-weight: 400; line-height: 19px; white-space: nowrap; }

.ahu-home-campaigns { height: 88px; padding: 7px 0 7px; overflow: hidden; background: #fff; }
.ahu-home-campaigns > div { display: flex; gap: 8px; width: max-content; padding: 0 15px; }
.ahu-home-campaigns button { width: var(--ahu-campaign-width, 148px); height: 74px; flex: 0 0 var(--ahu-campaign-width, 148px); overflow: hidden; border-radius: 6px; }
.ahu-home-campaigns img { width: 100%; height: 100%; display: block; object-fit: cover; }

.ahu-home-block { margin-top: 8px; padding: 12px 15px 0; border-top: 8px solid var(--home-section-gap); background: #fff; }
.ahu-home-live { margin-top: 0; }
.ahu-home-section-header { height: 35px; display: flex; align-items: flex-start; justify-content: space-between; }
.ahu-home-section-header h2 { position: relative; margin: 0; padding-left: 12px; color: #28282b; font-size: 17px; font-weight: 600; line-height: 24px; }
.ahu-home-section-header h2::before { content: ""; position: absolute; left: 0; top: 3px; width: 4px; height: 17px; border-radius: 1px; background: var(--home-orange); }
.ahu-home-section-header button { min-height: 32px; display: flex; align-items: flex-start; gap: 1px; color: #9b9b9f; font-size: 14px; line-height: 23px; }
.ahu-home-section-header button span { margin-top: -1px; color: #aaa; font-size: 23px; line-height: 23px; }

.ahu-home-live article { height: 105px; border-bottom: 1px solid var(--home-divider); }
.ahu-home-live article:last-child { border-bottom: 0; }
.ahu-home-live-hit { width: 100%; height: 100%; display: grid; grid-template-columns: 134px minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 0 7px; position: relative; text-align: left; }
.ahu-home-live-cover { position: relative; grid-row: 1 / span 2; align-self: center; width: 134px; height: 81px; overflow: hidden; border-radius: 4px; background: #eee; }
.ahu-home-live-cover img { width: 100%; height: 100%; display: block; object-fit: cover; }
.ahu-home-live-cover i { display: none; }
.ahu-home-live-copy { min-width: 0; align-self: start; padding-top: 7px; }
.ahu-home-live-copy strong { display: block; overflow: hidden; color: #313135; font-size: 16px; font-weight: 500; line-height: 21px; text-overflow: ellipsis; white-space: nowrap; }
.ahu-home-live-copy em, .ahu-home-live-copy small { display: block; margin-top: 4px; overflow: hidden; color: #8f8f94; font-size: 12px; font-style: normal; line-height: 17px; text-overflow: ellipsis; white-space: nowrap; }
.ahu-home-live-copy small { padding-left: 15px; }
.ahu-home-live-action { position: absolute; right: 0; bottom: 12px; min-width: 66px; padding: 5px 7px; border-radius: 3px; background: var(--home-orange); color: #fff; font-size: 11px; line-height: 16px; text-align: center; }

.ahu-home-classes { display: grid; gap: 10px; padding-bottom: 8px; }
.ahu-home-block[data-home-section="hot-classes"] .ahu-home-section-header { height: 48px; }
.ahu-home-classes article { position: relative; height: 148px; overflow: hidden; border-radius: 10px; background: #f4f8fb var(--ahu-home-class-bg) center / 100% 100% no-repeat; box-shadow: 0 2px 8px rgb(23 31 43 / 4%); }
.ahu-home-class-hit { position: relative; width: 100%; height: 100%; display: block; padding: 11px 12px !important; text-align: left; }
.ahu-home-classes .ahu-home-class-raster { background: transparent; box-shadow: none; }
.ahu-home-class-raster .ahu-home-class-hit { padding: 0 !important; }
.ahu-home-class-raster img { width: 100%; height: 100%; display: block; object-fit: fill; }
.ahu-home-class-badge { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 6px; background: var(--home-orange); color: #fff; font-size: 12px; }
.ahu-home-class-title { display: block; max-width: 73%; max-height: 45px; margin-top: 5px; overflow: hidden; color: #26262a; font-size: 17px; font-weight: 600; line-height: 21px; }
.ahu-home-tags { display: flex; gap: 5px; min-width: 0; overflow: hidden; }
.ahu-home-class-hit > .ahu-home-tags { margin-top: 5px; }
.ahu-home-tags span { flex: 0 0 auto; padding: 1px 4px; border-radius: 3px; background: var(--home-orange-soft); color: var(--home-orange-dark); font-size: 10px; line-height: 16px; white-space: nowrap; }
.ahu-home-class-description { display: block; width: 72%; margin-top: 4px; overflow: hidden; color: #66666a; font-size: 10px; line-height: 14px; text-overflow: ellipsis; white-space: nowrap; }
.ahu-home-class-meta { position: absolute; left: 12px; bottom: 14px; display: flex; gap: 10px; color: #9b9b9f; }
.ahu-home-class-meta small { font-size: 10px; }
.ahu-home-class-price { position: absolute; right: 10px; bottom: 8px; color: var(--home-orange); font-size: 17px; font-weight: 600; line-height: 22px; }

.ahu-home-products { padding-bottom: 2px; }
.ahu-home-product-row { height: 111px; border-bottom: 1px solid var(--home-divider); }
.ahu-home-product-row:last-child { border-bottom: 0; }
.ahu-home-product-hit { width: 100%; height: 100%; display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 8px; padding: 8px 0 !important; text-align: left; }
.ahu-home-product-cover { position: relative; width: 140px; height: 84px; align-self: center; overflow: hidden; border-radius: 5px; background: #f2f2f2; }
.ahu-home-product-cover img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.ahu-home-product-cover i { display: none; }
.ahu-home-product-copy { min-width: 0; display: flex; flex-direction: column; padding: 1px 0 0; }
.ahu-home-product-copy > strong { display: -webkit-box; max-height: 44px; overflow: hidden; color: #2a2a2e; font-size: 15px; font-weight: 600; line-height: 20px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ahu-home-product-copy > .ahu-home-tags { margin-top: 4px; }
.ahu-home-product-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 5px; margin-top: auto; }
.ahu-home-product-foot small { overflow: hidden; color: #9b9b9f; font-size: 11px; line-height: 20px; text-overflow: ellipsis; white-space: nowrap; }
.ahu-home-product-foot b { flex: 0 0 auto; color: var(--home-orange); font-size: 16px; font-weight: 600; line-height: 20px; }

.ahu-home-news { padding-bottom: 0; }
.ahu-home-news > div button { width: 100%; height: 47px; display: grid; grid-template-columns: 23px minmax(0, 1fr); align-items: center; border-bottom: 1px solid var(--home-divider); text-align: left; }
.ahu-home-news > div button:last-child { border-bottom: 0; }
.ahu-home-news > div img { width: 21px; height: 24px; display: block; object-fit: cover; }
.ahu-home-news > div span { overflow: hidden; color: #3d3d41; font-size: 14px; line-height: 20px; text-overflow: ellipsis; white-space: nowrap; }

.ahu-home-agent { width: calc(100% - 30px); height: 61px; display: flex; align-items: center; justify-content: space-between; margin: 10px 15px 0; padding: 0 12px !important; border-radius: 5px !important; background: #fff6f1 !important; }
.ahu-home-agent > span { display: flex; align-items: center; gap: 9px; min-width: 0; }
.ahu-home-agent img { width: 23px; height: 23px; filter: invert(46%) sepia(89%) saturate(3454%) hue-rotate(349deg) brightness(101%); }
.ahu-home-agent strong { overflow: hidden; color: #444448; font-size: 14px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.ahu-home-agent b { flex: 0 0 auto; padding: 5px 14px; border: 1px solid var(--home-orange); border-radius: 18px; color: var(--home-orange); font-size: 13px; font-weight: 400; }
.ahu-home-agent-image { height: 50px; padding: 0 !important; overflow: hidden; background: transparent !important; }
.ahu-home-agent-image .ahu-home-agent-raster { width: 100%; height: 100%; display: block; object-fit: fill; filter: none; }

.ahu-home-service { position: absolute; z-index: 35; right: 0; top: 508px; width: 68px; height: 76px; filter: drop-shadow(0 4px 8px rgb(50 50 50 / 15%)); }
.ahu-home-service img { width: 100%; height: 100%; display: block; object-fit: contain; }
.ahu-home-page.is-content-scrolled .ahu-home-service { top: 650px; }

.ahu-home-bottom-nav { position: absolute; z-index: 40; right: 20px; bottom: 12px; left: 20px; height: 65px; display: grid; grid-template-columns: repeat(4, 1fr); padding: 4px; border: 1px solid rgb(255 255 255 / 90%); border-radius: 34px; background: rgb(255 255 255 / 94%); box-shadow: 0 12px 30px rgb(33 36 43 / 12%); backdrop-filter: blur(18px); }
.ahu-home-bottom-nav button { position: relative; z-index: 1; min-height: 55px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-radius: 29px; color: #8d8d91; }
.ahu-home-bottom-nav button.active { background: #eeeeef; color: var(--home-orange); }
.ahu-home-bottom-nav img { width: 25px; height: 25px; opacity: .55; }
.ahu-home-bottom-nav button.active img { opacity: 1; filter: invert(43%) sepia(92%) saturate(3300%) hue-rotate(349deg) brightness(103%); }
.ahu-home-bottom-nav strong { font-size: 11px; font-weight: 500; line-height: 15px; }
.ahu-home-bottom-nav-raster { padding: 0; border: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
.ahu-home-bottom-nav-raster > img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: fill; }
.ahu-home-bottom-nav-raster button { z-index: 2; min-height: 65px; background: transparent !important; }
.ahu-home-bottom-nav-raster button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .ahu-home-system-header { transition: none; }
}
