.page-template-page-home .hero{
  background:#fff;
  padding-block:12px;
  padding-inline:var(--content-inset);
}

.page-template-page-home .hero-head{
  display:grid;
  gap:14px;
  justify-items:center;
  text-align:center;
}

.page-template-page-home .hero-title{
  color:#000;
  text-shadow:0 2px 6px rgba(0,0,0,.35);
  margin:0;
}

.page-template-page-home .hero-grid{
  display:grid;
  gap:24px;
  align-items:start;
  grid-template-areas:
    "logo"
    "cta"
    "cards";
}

@media (min-width:1024px){
  .page-template-page-home .hero-grid{
    grid-template-columns:minmax(0,1fr) clamp(180px,22vw,260px);
    grid-template-areas:
      "cards logo"
      "cta   logo";
    gap:28px 32px;
  }
}

.page-template-page-home .hero-cards{ grid-area:cards; min-width:0; }
.page-template-page-home .hero-logo{ grid-area:logo; }
.page-template-page-home .hero-actions{ grid-area:cta; }

.page-template-page-home .hero-logo{
  width:160px;
  height:auto;
  justify-self:center;
  align-self:start;
}

@media (min-width:1024px){
  .page-template-page-home .hero-logo{
    width:clamp(180px,22vw,260px);
    justify-self:end;
  }
}

.page-template-page-home .hero-actions{
  margin-top:6px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  justify-self:center;
  width:100%;
}

.page-template-page-home .hero-actions :is(.btn-download,.btn-ios,.btn-bonus){
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:16px 18px;
  border-radius:999px;
  background:var(--brand);
  color:#fff;
  border:0;
  text-decoration:none;
  font-weight:700;
  line-height:1.15;
  box-shadow:0 4px 14px rgba(0,0,0,.12);
  transition:transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  font-size:16px;
  width:100%;
  max-width:320px;
  min-width:0;
}

.page-template-page-home .hero-actions :is(.btn-download,.btn-ios,.btn-bonus):hover{
  transform:translateY(-1px);
  box-shadow:0 8px 22px rgba(0,0,0,.18);
}

.page-template-page-home .hero-actions :is(.btn-download,.btn-ios,.btn-bonus):active{
  transform:translateY(0);
  box-shadow:0 4px 12px rgba(0,0,0,.14);
  opacity:.95;
}

.page-template-page-home .hero-actions :is(.btn-download,.btn-ios,.btn-bonus):focus-visible{
  outline:2px solid color-mix(in srgb, var(--brand) 35%, #000);
  outline-offset:2px;
}

@media (min-width:768px){
  .page-template-page-home .hero-actions{
    margin-top:8px;
    flex-direction:row;
    flex-wrap:nowrap;
    align-items:stretch;
    justify-content:center;
    gap:18px;
    width:100%;
  }

  .page-template-page-home .hero-actions :is(.btn-download,.btn-ios,.btn-bonus){
    flex:1 1 0;
    width:100%;
    max-width:none;
    text-align:center;
    white-space:normal;
  }
}

@media (min-width:1200px){
  .page-template-page-home .hero-actions > a{ white-space:nowrap; }
}

.page-template-page-home .hero-actions .btn-ico{
  display:inline-grid;
  place-items:center;
  width:1.25em;
  height:1.25em;
  line-height:1;
  flex:0 0 auto;
}

.page-template-page-home .hero-actions .btn-ico svg{
  width:100% !important;
  height:100% !important;
  display:block;
}

.page-template-page-home .hero-actions .btn-ico svg path{
  fill:currentColor;
  stroke:currentColor;
}

/* 旧 toc（如已不用，可在验收后删除） */
.page-template-page-home .toc .toc-title{
  position:absolute;
  top:0;
  left:0;
  transform:translate(10px,-50%);
  display:inline-block;
  padding:2px 8px;
  font-size:12px;
  line-height:1.2;
  font-weight:700;
  color:#fff;
  background:var(--brand);
  border-radius:6px;
  box-shadow:0 2px 8px rgba(0,0,0,.12);
}

.page-template-page-home .toc ul{
  margin:0;
  padding-left:16px;
}

@media (min-width:1024px){
  .page-template-page-home .toc ul{
    padding-left:14px;
  }
}

.page-template-page-home .toc li{ margin:6px 0; }

.page-template-page-home .toc a{
  color:var(--text);
  text-decoration:none;
  border-bottom:1px dashed transparent;
  transition:color .15s, border-color .15s, padding-left .15s;
}

.page-template-page-home .toc a:hover{
  color:var(--brand);
  border-color:color-mix(in srgb, var(--brand) 40%, #000 0%);
  padding-left:2px;
}

@media (max-width:480px){
  .page-template-page-home .toc{
    padding:16px 12px 10px;
  }

  .page-template-page-home .toc .toc-title{
    transform:translate(8px,-50%);
    font-size:11px;
    padding:2px 7px;
  }
}

.page-template-page-home .hero-cards{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:18px;
  margin:0;
}

@media (max-width:1200px){
  .page-template-page-home .hero-cards{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
}

@media (max-width:600px){
  .page-template-page-home .hero-cards{
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:12px;
  }
}

.page-template-page-home .hero-card{
  display:grid;
  grid-template-columns:52px minmax(0,1fr);
  align-items:center;
  gap:6px;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:12px;
  padding:16px 18px;
  min-height:82px;
  box-shadow:0 1px 10px rgba(0,0,0,.06);
  transition:transform .18s, box-shadow .18s, border-color .18s;
}

.page-template-page-home .hero-card:hover,
.page-template-page-home .hero-card:focus-within{
  transform:translateY(-2px);
  box-shadow:0 8px 22px rgba(0,0,0,.12);
  border-color:rgba(0,0,0,.12);
}

.page-template-page-home .hero-card:focus-visible{
  outline:2px solid color-mix(in srgb, var(--brand) 40%, #000);
  outline-offset:2px;
}

@media (max-width:600px){
  .page-template-page-home .hero-card{
    grid-template-columns:40px minmax(0,1fr);
    padding:12px;
    border-radius:10px;
    min-height:74px;
    gap:4px;
  }
}

.page-template-page-home .hero-ico{
  width:48px;
  height:48px;
  border-radius:999px;
  display:grid;
  place-items:center;
}

.page-template-page-home .hero-ico svg{
  width:20px;
  height:20px;
  display:block;
  fill:var(--brand);
}

@media (max-width:600px){
  .page-template-page-home .hero-ico{
    width:40px;
    height:40px;
  }

  .page-template-page-home .hero-ico svg{
    width:18px;
    height:18px;
  }
}

.page-template-page-home .hero-txt{
  min-width:0;
  text-align:left;
}

.page-template-page-home .hero-txt .k{
  display:block;
  font-size:16px;
  line-height:1.15;
  color:var(--muted);
  letter-spacing:.3px;
  text-transform:capitalize;
  margin-bottom: 6px;
}

.page-template-page-home .hero-txt .v{
  display:block;
  font-weight:800;
  line-height:1.25;
  font-size:15px;
  color:var(--text);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

@media (max-width:600px){
  .page-template-page-home .hero-txt .v{
    white-space:normal;
    overflow-wrap:anywhere;
  }
}

.page-template-page-home .hero-card[role="button"]{ cursor:pointer; }

.page-template-page-home .hero + .entry-content{
  margin-top:0px;
}
