/* ============================================================
   首頁樣式
   ============================================================ */

/* ---------- Hero ---------- */
.hero {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--paper) 0%, var(--mist) 100%);
}

.hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 64px;
  padding-top: 72px;
  padding-bottom: 72px;
}

.hero-eyebrow {
  display: block;
  font-family: var(--font-cond);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--grit);
  margin-bottom: 14px;
}

.hero-title {
  font-size: clamp(34px, 4.6vw, 52px);
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.35;
}

.hero-rule {
  margin: 26px 0;
}

.hero-lead {
  font-size: 17px;
  color: var(--steel);
  max-width: 30em;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero 進場的階梯延遲 */
.hero-copy [data-reveal]:nth-child(2) { transition-delay: 0.08s; }
.hero-copy [data-reveal]:nth-child(3) { transition-delay: 0.16s; }
.hero-copy [data-reveal]:nth-child(4) { transition-delay: 0.24s; }
.hero-copy [data-reveal]:nth-child(5) { transition-delay: 0.32s; }
.hero-stage[data-reveal] { transition-delay: 0.2s; }

/* ---------- Hero 輪播 ---------- */
.carousel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-card);
}

.carousel-track {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--mist);
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
}

.carousel-slide.is-active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-slide a {
  display: block;
  width: 100%;
  height: 100%;
}

.carousel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  background: var(--ink-panel);
  color: rgba(255, 255, 255, 0.85);
}

.carousel-caption {
  font-size: 14.5px;
  letter-spacing: 0.08em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.carousel-ctrl {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.carousel-index {
  font-family: var(--font-cond);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.14em;
  margin-right: 10px;
}

.carousel-index i {
  font-style: normal;
  color: var(--grit);
  margin: 0 3px;
}

.carousel-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.carousel-btn:hover {
  background: var(--grit);
  border-color: var(--grit);
}

/* 產品卡片樣式(.product-grid / .p-card)已移至 base.css,首頁與產品頁共用 */

/* ---------- 關於航泰 ---------- */
.about-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: center;
}

.about-media {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 12px 0;
}

.about-media-frame {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
  background: var(--mist);
}

.about-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-media-note {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding: 14px 6px;
  font-size: 13.5px;
  color: var(--steel);
}

.about-media-note .mono {
  font-family: var(--font-cond);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--grit);
}

.about-copy .section-title {
  margin-bottom: 20px;
}

.about-copy > p {
  color: var(--steel);
  margin-bottom: 30px;
}

.about-points li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.about-points li:last-child {
  border-bottom: 1px solid var(--line);
}

.about-points b {
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  position: relative;
  padding-left: 16px;
}

.about-points b::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-40%);
  width: 7px;
  height: 7px;
  background: var(--grit);
}

.about-points span {
  font-size: 14.5px;
  color: var(--steel);
}

/* 跳過遠離首屏區塊的初始排版與繪製;不支援的瀏覽器會安全忽略。 */
.deferred-render {
  content-visibility: auto;
  contain-intrinsic-size: auto 640px;
}

.deferred-render--compact {
  contain-intrinsic-size: auto 280px;
}

/* 消息列樣式(.news-list / .news-row)已移至 base.css,首頁與消息頁共用 */

/* ---------- 報價 CTA ---------- */
.cta-band {
  background: var(--ink-panel);
  color: #fff;
  padding: 76px 0;
}

.cta-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.cta-copy h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 900;
  letter-spacing: 0.06em;
}

.cta-rule {
  margin: 20px 0;
}

.cta-copy p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15.5px;
}

.cta-actions {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.cta-tel {
  font-family: var(--font-cond);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  transition: color 0.2s var(--ease);
}

.cta-tel:hover {
  color: var(--grit);
}

/* ---------- 響應式 ---------- */
@media (max-width: 1024px) {
  .hero-in {
    gap: 40px;
  }
}

@media (max-width: 860px) {
  .hero-in {
    grid-template-columns: 1fr;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .about-in {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .cta-in {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-actions {
    align-items: flex-start;
  }
}

