/*
 * 首頁專用樣式（設計稿 newfrontend/home.html）。三層圓動畫另在 home-ecosystem-motion.css／.js。
 */

/* 首屏：文字與照片並排，窄幅改上下排列 */
.home-hero {
  box-sizing: border-box;
  padding: var(--space-hero) clamp(20px, 5vw, 72px);
  background: #F7F2E8;
}
.home-hero-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 40px; }
.home-hero-copy { flex: 1 1 360px; min-width: 0; }
.v2 .home-hero h1 {
  margin: 0;
  font: 700 var(--type-title)/var(--leading-title) var(--font-body);
  color: #171512;
}
.home-hero-text {
  max-width: 760px;
  margin-top: 28px;
  font-size: var(--type-body);
  line-height: var(--leading-body);
  color: #312E29;
}
.home-hero-text p { margin: 0; }
.home-hero-text .home-hero-eyebrow { font-weight: 700; color: #8A5F14; }
.home-hero-text p + p { margin-top: 0; }
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.home-hero-photo { flex: 0 1 42%; min-width: 0; max-width: 500px; }
.home-hero-photo img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 24px; }
/* 設計稿在窄幅時照片只剩 42% 寬；手機改為整列寬度 */
@media (max-width: 600px) {
  .home-hero-photo { flex-basis: 100%; max-width: none; }
}

/* 為什麼選擇擺渡：引言段落之後接三層圓 */
.home-why .v2-lead:last-of-type { margin-bottom: 32px; }
.eco .lc h3 { font-family: var(--font-body); font-weight: 700; line-height: 1.5; }
.eco .lc p { color: #312E29; line-height: var(--leading-body); }
.eco .lc ul { list-style: disc; }
.eco .eco-cards.is-plain { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

/* 最新班期 */
.home-schedule-scroll {
  overflow-x: auto;
  border-radius: 24px;
  box-shadow: 0 18px 55px rgba(23, 21, 18, .08);
  background: #FFFFFF;
}
.home-schedule-scroll table { width: 100%; min-width: 720px; border-collapse: collapse; }
.home-schedule-scroll th {
  padding: 22px 24px;
  background: #171512;
  color: #FFFDF8;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
}
.home-schedule-scroll td {
  padding: 22px 24px;
  border-bottom: 1px solid #F0EBE0;
  background: #FFFFFF;
  color: #312E29;
  font-size: 16px;
}
.home-schedule-scroll tbody tr:last-child td { border-bottom: 0; }
.home-schedule-scroll td:first-child { color: #171512; }
.home-schedule-scroll td:first-child a { color: inherit; text-decoration: none; }
.home-schedule-scroll td:first-child a:hover { color: #8A5F14; text-decoration: underline; text-underline-offset: .2em; }
.home-schedule-scroll tr.is-ended td { color: #6F6A62; }
.home-schedule-status { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #F7F2E8; color: #312E29; font-size: .875rem; white-space: nowrap; }
.home-schedule-apply { display: inline-flex; align-items: center; padding: 6px 16px; border-radius: 999px; background: #D5A53B; color: #171512; font-size: .875rem; font-weight: 700; text-decoration: none; white-space: nowrap; }

/* 最新活動 */
.home-event-card .v2-card-text { margin-top: 8px; }
.home-section-more { display: flex; justify-content: flex-end; margin-top: 20px; }
