/* 首页三图结构：banner / 主题区（九宫格）/ 底部菜单
   切图来源：1408×2784 设计稿，banner 0-1004、主题区 1004-2580、底部菜单 2580-2784 */
.home-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: 14.489%; /* 底部菜单图高 = 宽度 × 204/1408，按容器宽度算，平板铺满时也严丝合缝 */
  background: #fff;
  line-height: 0;
}

/* ---------- 1. banner 区（后台“轮播图管理”可增改图片与跳转链接） ---------- */
.home-banner {
  position: relative;
  flex: none;
  width: 100%;
  aspect-ratio: 1408 / 1004;
  overflow: hidden;
  background: #eef7fd;
}

/* 未配置轮播图时用设计稿 banner 作背景 */
.home-banner.is-default {
  background-color: #fcfdfd;
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% 100%;
}

/* 屏幕比设计稿更高时，多出来的高度落在底部菜单之前的留白里 */

.home-banner .banner-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s;
}

.home-banner .banner-slide.active {
  opacity: 1;
}

.home-banner .banner-dots {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 5px;
  line-height: 0;
}

.home-banner .banner-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff80;
}

.home-banner .banner-dots i.active {
  background: #fff;
}

/* ---------- 2. 主题区（九宫格热区按切图像素反推百分比） ---------- */
.home-theme {
  position: relative;
  flex: none;
  width: 100%;
  aspect-ratio: 1408 / 1576;
  overflow: hidden;
  background: #fcfefe;
}

.home-theme .theme-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.home-theme .hotspot {
  position: absolute;
  z-index: 2;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
}

.home-theme .hotspot:active {
  background: #1685c514;
}

/* 卡片边界（主题区图内：三行 y=26/399/772，高 361；三列等分） */
.home-theme .tile-1,
.home-theme .tile-2,
.home-theme .tile-3 {
  top: 1.6497%;
  height: 22.9061%;
}

.home-theme .tile-4,
.home-theme .tile-5,
.home-theme .tile-6 {
  top: 25.3173%;
  height: 22.9061%;
}

.home-theme .tile-7,
.home-theme .tile-8,
.home-theme .tile-9 {
  top: 48.9848%;
  height: 22.9061%;
}

.home-theme .tile-1,
.home-theme .tile-4,
.home-theme .tile-7 {
  left: 0;
  width: 33.34%;
}

.home-theme .tile-2,
.home-theme .tile-5,
.home-theme .tile-8 {
  left: 33.33%;
  width: 33.34%;
}

.home-theme .tile-3,
.home-theme .tile-6,
.home-theme .tile-9 {
  left: 66.67%;
  width: 33.33%;
}

/* 用后台栏目名覆盖图上已画的文字：白底与卡片同色，肉眼只看到文字 */
.home-theme .tile-label {
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: 7.6%;
  min-height: 28%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1px 0;
  background: #fff;
  color: #17324d;
  font-size: clamp(11px, 3.02vw, 13px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  text-align: center;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: break-word;
  pointer-events: none;
}

/* 第三行图上文字是两行（自然人代开增值税发票），白底要再往上抬一点才能盖全 */
.home-theme .tile-7 .tile-label,
.home-theme .tile-8 .tile-label,
.home-theme .tile-9 .tile-label {
  bottom: 6.9%;
  min-height: 32.5%;
}

/* 12366 圆钮（切图内 x 1208-1381 / y 2120-2296） */
.home-theme .hotline-hotspot {
  left: 85.69%;
  top: 70.81%;
  width: 12.5%;
  height: 11.168%;
  z-index: 6;
  border-radius: 50%;
}

/* ---------- 3. 底部菜单图（首页 / 点我看帮助 各占一半） ---------- */
.home-footer {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 50;
  flex: none;
  width: 100%;
  max-width: var(--mobile-max-width, 430px);
  aspect-ratio: 1408 / 204;
  background: #3577c9;
}

.home-footer img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.home-footer .footer-hit {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
}

.home-footer .footer-home {
  left: 0;
}

.home-footer .footer-help {
  right: 0;
}
