/**
 * 首页专属样式
 * 包含：
 *   - 实体介绍 .about-home-summary
 *   - Why Book Through Us .why-book-section
 *   - 首页 FAQ .home-faq
 * 从 style.css 拆出（2026-05-17）
 *
 * 注：搜索 CTA / trip-tab / card-link / search-history-arrow 已统一在
 * style.css 用品牌红 token，全站共享，本文件不再覆盖。
 */

/* ============================================
   首页：What is China Train Travel? 实体介绍
   居中窄栏 + 红橙渐变短线装饰
   ============================================ */
/* ============================================
   Homepage hero: left-aligned travel brand entry
   ============================================ */
.page-home .home-hero {
  min-height: clamp(560px, 66vh, 680px);
  padding: 68px 0 56px;
  background:
    url("/assets/images/home-hero3.webp") right center / cover no-repeat;
  text-align: left;
}

.page-home .home-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 980px) minmax(160px, 1fr);
  align-items: center;
  min-width: 0;
  width: 100%;
  max-width: 1320px;
  padding-left: 12px;
  padding-right: 12px;
}

.home-hero-copy {
  max-width: 980px;
  min-width: 0;
}

.page-home .home-hero h1 {
  max-width: 880px;
  margin: 0;
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(2.7rem, 3.35vw, 4rem);
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

.page-home .home-hero h1 span {
  display: block;
  font-size: 0.74em;
  white-space: nowrap;
}

.page-home .home-hero p {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.12rem;
  line-height: 1.72;
  opacity: 1;
}

.home-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 32px;
  text-transform: uppercase;
}

.home-hero-kicker::before {
  content: "";
  width: 25px;
  height: 1px;
  background: #f28a1a;
  border-radius: 99px;
}

.home-hero-subtitle {
  max-width: 600px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 1.7;
}

.home-hero-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0 0;
  flex-wrap: wrap;
}

.home-hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 26px;
  background: var(--brand-red, #EF3B3A);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(239, 59, 58, 0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}

.home-hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 59, 58, 0.4);
  color: #fff;
}

.home-hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 26px;
  background: rgba(255, 255, 255, 0.95);
  color: #1a3a52;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: transform 0.15s, background 0.15s;
}

.home-hero-btn-secondary:hover {
  background: #fff;
  transform: translateY(-2px);
  color: #1a3a52;
}

.home-hero-search-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  margin: 22px 0 6px;
  padding-left: 2px;
}

.home-hero-trust-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 20px 0 0;
  flex-wrap: wrap;
}

.home-hero-trust-bar span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.home-hero-trust-bar svg {
  color: #f28a1a;
  flex-shrink: 0;
}

.page-home .home-hero .search-box-wrap {
  width: min(100%, 860px);
  max-width: 860px;
  margin: 34px 0 0;
}

.page-home .home-hero .search-box {
  max-width: 860px;
  margin: 0;
  padding: 16px;
  border-radius: 8px;
}

.page-home .home-hero :where(.search-box-wrap:has(.search-form[data-trip-type="round-trip"])),
.page-home .home-hero :where(.search-box-wrap:has(.search-form[data-trip-type="round-trip"]) .search-box) {
  width: min(100%, 980px);
  max-width: 980px;
}

.page-home .home-hero .search-form {
  grid-template-columns: minmax(135px, 1fr) auto minmax(135px, 1fr) minmax(160px, 0.8fr) auto;
}

.page-home .home-hero .search-form[data-trip-type="round-trip"] {
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr) minmax(136px, 0.75fr) minmax(136px, 0.75fr) auto;
}

.page-home .home-hero .search-history-wrap {
  max-width: 860px;
  margin: 12px 0 0;
  text-align: right;
}

.page-home .home-hero :where(.search-box-wrap:has(.search-form[data-trip-type="round-trip"]) + .search-history-wrap) {
  max-width: 980px;
}

@media (max-width: 1100px) {
  .page-home .home-hero {
    background-position: 62% center;
  }

  .page-home .home-hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-hero-copy {
    max-width: 720px;
  }
}

@media (max-width: 768px) {
  .page-home .home-hero {
    min-height: auto;
    padding: 20px 0 36px;
    background:
      url("/assets/images/home-hero3.webp") 62% center / cover no-repeat;
  }

  .page-home .home-hero h1 {
    max-width: 100%;
    font-size: 1.25rem;
    line-height: 1.2;
    overflow-wrap: break-word;
  }

  .page-home .home-hero h1 span {
    display: block;
    white-space: normal;
    font-size: 1em;
  }

  .page-home .home-hero .search-box-wrap {
    width: 100%;
    max-width: 100%;
    margin-top: 24px;
  }

  .page-home .home-hero .search-box {
    width: 100%;
    max-width: 100%;
    padding: 14px;
  }

  .page-home .home-hero .search-form,
  .page-home .home-hero .search-form[data-trip-type="round-trip"] {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .page-home .home-hero .search-form .field-date,
  .page-home .home-hero .search-form .field-return,
  .page-home .home-hero .search-form .btn-search {
    grid-column: 1;
  }

  .page-home .home-hero .search-form .swap-btn {
    display: none;
  }

  .page-home .home-hero .btn-search {
    width: 100%;
    margin-top: var(--space-xs);
  }

  .page-home .home-hero .search-history-wrap {
    max-width: 100%;
    text-align: center;
  }

  .page-home .home-rail-picks-head h2 {
    max-width: 320px;
    font-size: 1.25rem;
    overflow-wrap: anywhere;
  }

  .home-rail-picks-head h2,
  .home-city-picks-copy h2,
  .home-trust-copy h2 {
    font-size: 1.25rem;
  }
}

@media (min-width: 600px) and (max-width: 768px) {
  .page-home .home-hero .search-box-wrap,
  .page-home .home-hero .search-box,
  .page-home .home-hero .search-history-wrap {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .page-home .home-hero .search-box-wrap,
  .page-home .home-hero .search-box,
  .page-home .home-hero .search-history-wrap {
    width: 100%;
    max-width: 100%;
  }
}

/* ============================================
   Home recommendations: split rail trips and cities
   ============================================ */
.home-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  color: var(--brand-red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.home-section-kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
  border-radius: 99px;
}

.home-section-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(26, 82, 118, 0.22);
  border-radius: 999px;
  background: #fff;
  color: var(--color-primary);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.home-section-link:hover,
.home-section-link:focus-visible {
  border-color: rgba(239, 59, 58, 0.34);
  color: var(--brand-red);
  box-shadow: 0 8px 20px rgba(6, 42, 52, 0.08);
  transform: translateY(-1px);
}

.home-rail-picks {
  padding: 64px 0 70px;
  background: var(--color-primary-dark);
  color: #fff;
}

.home-rail-picks .container,
.home-city-picks .container {
  max-width: 1320px;
}

.home-rail-picks-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}

.home-rail-picks-head h2,
.home-city-picks-copy h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 2.35rem;
  line-height: 1.14;
  color: inherit;
  letter-spacing: 0;
}

.home-rail-picks-head h2 {
  max-width: 620px;
  color: #fff;
}

.home-rail-picks-head p,
.home-city-picks-copy p {
  max-width: 560px;
  margin: 12px 0 0;
  font-size: 1rem;
  line-height: 1.7;
}

.home-rail-picks-head p {
  color: rgba(255, 255, 255, 0.72);
}

.home-rail-picks .home-section-link {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.home-rail-picks .home-section-link:hover,
.home-rail-picks .home-section-link:focus-visible {
  background: #fff;
  border-color: #fff;
  color: var(--color-primary-dark);
}

.home-rail-pick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.rail-pick-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  min-height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #fff;
  color: var(--color-primary-dark);
  text-decoration: none;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.16);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.rail-pick-card:hover,
.rail-pick-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(239, 59, 58, 0.24);
  box-shadow: 0 30px 62px rgba(0, 0, 0, 0.22);
}

.rail-pick-card:focus-visible,
.city-pick-card:focus-visible {
  outline: 3px solid rgba(41, 128, 185, 0.35);
  outline-offset: 4px;
}

.rail-pick-image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #dfe8ec;
}

.rail-pick-image img,
.city-pick-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.42s ease, filter 0.42s ease;
}

.rail-pick-card:hover .rail-pick-image img,
.rail-pick-card:focus-visible .rail-pick-image img,
.city-pick-card:hover .city-pick-image img,
.city-pick-card:focus-visible .city-pick-image img {
  transform: scale(1.045);
  filter: saturate(1.04);
}

.rail-pick-body {
  display: grid;
  gap: 10px;
  padding: 22px 22px 20px;
}

.rail-pick-meta {
  color: var(--brand-red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.rail-pick-body strong {
  min-height: 3.05em;
  color: var(--color-primary-dark);
  font-family: var(--font-heading);
  font-size: 1.32rem;
  line-height: 1.22;
  letter-spacing: 0;
}

.rail-pick-body span:not(.rail-pick-meta) {
  min-height: 3.2em;
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rail-pick-body em {
  width: fit-content;
  margin-top: 4px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(26, 82, 118, 0.08);
  color: var(--color-primary);
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 800;
}

.home-city-picks {
  padding: 68px 0;
  background: #fff;
  border-top: 1px solid rgba(6, 42, 52, 0.08);
  border-bottom: 1px solid rgba(6, 42, 52, 0.08);
}

.home-city-picks-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.6fr);
  gap: 44px;
  align-items: center;
}

.home-city-picks-copy {
  color: var(--color-primary-dark);
}

.home-city-picks-copy p {
  color: var(--color-text-light);
}

.home-city-picks-copy .home-section-link {
  margin-top: 22px;
}

.home-city-pick-list {
  display: grid;
  gap: 14px;
}

.city-pick-card {
  display: grid;
  grid-template-columns: 52px 180px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 132px;
  padding: 14px;
  border: 1px solid rgba(6, 42, 52, 0.1);
  border-radius: 8px;
  background: #f8fafb;
  color: var(--color-primary-dark);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.city-pick-card:hover,
.city-pick-card:focus-visible {
  transform: translateX(4px);
  border-color: rgba(26, 82, 118, 0.26);
  box-shadow: 0 14px 34px rgba(6, 42, 52, 0.08);
}

.city-pick-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: var(--brand-red);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(6, 42, 52, 0.08);
}

.city-pick-image {
  display: block;
  overflow: hidden;
  width: 160px;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  background: #dfe8ec;
}

.city-pick-body {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.city-pick-body strong {
  color: var(--color-primary-dark);
  font-family: var(--font-heading);
  font-size: 1.45rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.city-pick-body span {
  color: var(--color-text-light);
  font-size: 0.94rem;
  line-height: 1.5;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.city-pick-body em {
  color: var(--color-primary);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 800;
}

.home-trust-section {
  padding: 58px 0 62px;
  background: linear-gradient(180deg, #fff 0%, #f8fafb 100%);
  border-bottom: 1px solid rgba(6, 42, 52, 0.08);
}

.home-trust-section .container {
  max-width: 1320px;
}

.home-trust-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.4fr);
  gap: 42px;
  align-items: center;
}

.home-trust-copy h2 {
  max-width: 520px;
  margin: 0;
  color: var(--color-primary-dark);
  font-family: var(--font-heading);
  font-size: 2.15rem;
  line-height: 1.16;
  letter-spacing: 0;
}

.home-trust-copy p {
  max-width: 560px;
  margin: 16px 0 0;
  color: var(--color-text);
  font-size: 1.04rem;
  line-height: 1.75;
}

.home-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-trust-card {
  min-height: 100%;
  padding: 22px 20px;
  border: 1px solid rgba(6, 42, 52, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(6, 42, 52, 0.06);
}

.home-trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(26, 82, 118, 0.08);
  color: var(--color-primary);
}

.home-trust-card h3 {
  margin: 0 0 8px;
  color: var(--color-primary-dark);
  font-family: var(--font-heading);
  font-size: 1.16rem;
  line-height: 1.25;
}

.home-trust-card p {
  margin: 0;
  color: var(--color-text-light);
  font-size: 0.92rem;
  line-height: 1.62;
}

.route-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 14px;
}

.route-facts span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(26, 82, 118, 0.08);
  color: var(--color-primary);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .home-rail-picks-head,
  .home-city-picks-layout,
  .home-trust-layout {
    display: block;
  }

  .home-rail-picks-head .home-section-link,
  .home-city-picks-copy .home-section-link {
    margin-top: 18px;
  }

  .home-rail-pick-grid {
    grid-template-columns: 1fr;
  }

  .home-city-pick-list {
    margin-top: 28px;
  }

  .home-trust-grid {
    margin-top: 28px;
  }
}

@media (max-width: 768px) {
  .page-home {
    overflow-x: hidden;
  }

  .page-home .hero:not(.home-hero) h1 {
    max-width: 100%;
    font-size: 1.55rem;
    line-height: 1.18;
    overflow-wrap: break-word;
  }

  .page-home .search-box-wrap,
  .page-home .search-box {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 640px) {

  .home-rail-picks,
  .home-city-picks,
  .home-trust-section {
    padding: 44px 0;
  }

  .home-section-kicker {
    font-size: 0.72rem;
  }

  .home-section-kicker::before {
    width: 24px;
  }

  .home-rail-picks-head h2,
  .home-city-picks-copy h2,
  .home-trust-copy h2 {
    font-size: 1.25rem;
  }

  .home-rail-picks-head p,
  .home-city-picks-copy p,
  .home-trust-copy p {
    font-size: 0.96rem;
  }

  .rail-pick-body {
    padding: 18px;
  }

  .rail-pick-body strong {
    min-height: auto;
    font-size: 1.2rem;
    overflow-wrap: break-word;
  }

  .rail-pick-body span:not(.rail-pick-meta) {
    min-height: auto;
  }

  .city-pick-card {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
  }

  .city-pick-image {
    grid-column: 1 / -1;
    width: 100%;
  }

  .city-pick-body strong {
    font-size: 1.28rem;
  }

  .home-trust-grid {
    grid-template-columns: 1fr;
  }
}

.about-home-summary {
  padding: var(--space-2xl) 0;
  background: var(--color-bg);
  text-align: center;
}

.about-home-summary .container {
  max-width: 780px;
}

.about-home-summary h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin: 0 auto var(--space-md);
  padding-bottom: var(--space-md);
  position: relative;
  line-height: 1.2;
  display: inline-block;
}

.about-home-summary h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: var(--brand-gradient);
  border-radius: 2px;
}

.about-home-summary p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-text);
  margin: var(--space-lg) 0 0;
}

@media (max-width: 768px) {
  .about-home-summary {
    padding: var(--space-xl) 0;
  }
  .about-home-summary h2 {
    font-size: 1.6rem;
  }
  .about-home-summary p {
    font-size: 1rem;
  }
}

/* ============================================
   首页：Why Book Through Us
   品牌红圆形图标在顶，标题 + 正文居中
   ============================================ */
.why-book-section {
  padding: var(--space-2xl) 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.why-book-section h2 {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-primary-dark);
  margin: 0 auto var(--space-2xl);
  padding-bottom: var(--space-md);
  position: relative;
  display: table;
}

.why-book-section h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: var(--brand-gradient);
  border-radius: 2px;
}

.why-book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.why-book-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.why-book-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(239, 59, 58, 0.28);
}

.why-book-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-red-soft);
  color: var(--brand-red);
  border-radius: 50%;
}

.why-book-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin: 0 0 var(--space-sm);
}

.why-book-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-light);
  margin: 0;
}

@media (max-width: 900px) {
  .why-book-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .why-book-section h2 {
    font-size: 1.6rem;
    margin-bottom: var(--space-xl);
  }
}

/* ============================================
   首页：FAQ 快速问答（Magazine 风）
   - 默认全部展开，无折叠交互
   - Q/A 大写衬线字母作为视觉锚点
   - Q 用品牌蓝、A 与标题短线用品牌红，强化首页关键词区的品牌记忆
   ============================================ */
.home-faq {
  padding: var(--space-2xl) 0;
  background: var(--color-bg-warm);
}

.home-faq .container {
  max-width: 840px;
}

.home-faq h2 {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-primary-dark);
  margin: 0 auto var(--space-2xl);
  padding-bottom: var(--space-md);
  position: relative;
  display: table;
}

.home-faq h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: var(--brand-red);
  border-radius: 2px;
}

.home-faq-lead {
  max-width: 720px;
  margin: calc(var(--space-2xl) * -0.72) auto var(--space-xl);
  text-align: center;
  color: var(--color-text-light);
  font-size: 1rem;
  line-height: 1.7;
}

.home-faq .faq-item {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.home-faq .faq-item:last-child {
  border-bottom: none;
}

/* h3 和 p 各自用 grid 布局：左侧 Q/A 标签，右侧文本 */
.home-faq .faq-item h3,
.home-faq .faq-item p {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-md);
  align-items: baseline;
  margin: 0;
}

.home-faq .faq-item h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-sm);
  line-height: 1.4;
  cursor: default;
}

.home-faq .faq-item h3::before {
  content: "Q.";
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  letter-spacing: -0.02em;
  text-align: center;
  align-self: start;
}

.home-faq .faq-item p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text);
}

.home-faq .faq-item p::before {
  content: "A.";
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--brand-red);
  line-height: 1;
  letter-spacing: -0.02em;
  text-align: center;
  align-self: start;
}

@media (max-width: 640px) {
  .home-faq {
    padding: var(--space-xl) 0;
  }
  .home-faq h2 {
    font-size: 1.6rem;
    margin-bottom: var(--space-lg);
  }
  .home-faq-lead {
    margin: 0 auto var(--space-lg);
    font-size: 0.95rem;
  }
  .home-faq .faq-item h3,
  .home-faq .faq-item p {
    grid-template-columns: 40px 1fr;
    gap: var(--space-sm);
  }
  .home-faq .faq-item h3 {
    font-size: 1.05rem;
  }
  .home-faq .faq-item h3::before,
  .home-faq .faq-item p::before {
    font-size: 1.4rem;
  }
}


/* ─── Travel Tips Section (Homepage) ──────────────────── */
.home-tips-section {
  padding: var(--space-2xl, 64px) 0;
  background: #f8fafb;
}
.home-tips-header {
  text-align: center;
  margin-bottom: 36px;
}
.home-tips-header h2 {
  font-family: Georgia, "Playfair Display", serif;
  font-size: 1.8rem;
  color: var(--color-primary-dark, #1a3a4a);
  margin: 0 0 8px;
}
.home-tips-header p {
  color: #666;
  font-size: 1rem;
  margin: 0 0 12px;
}
.home-tips-viewall {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-red, #EF3B3A);
  text-decoration: none;
}
.home-tips-viewall:hover {
  text-decoration: underline;
}
.home-tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.home-tip-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #eee;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}
.home-tip-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.home-tip-card-img {
  height: 180px;
  overflow: hidden;
}
.home-tip-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-tip-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(242, 138, 26, 0.24), transparent 30%),
    linear-gradient(135deg, #0b3340 0%, #1a5276 100%);
  color: rgba(255, 255, 255, 0.7);
}
.home-tip-card-placeholder--trains {
  background: linear-gradient(135deg, #1a5276, #2980b9);
}
.home-tip-card-placeholder--booking {
  background: linear-gradient(135deg, #1e8449, #27ae60);
}
.home-tip-card-placeholder--practical {
  background: linear-gradient(135deg, #7d3c98, #a569bd);
}
.home-tip-card-placeholder--visa {
  background: linear-gradient(135deg, #b9770e, #f39c12);
}
.home-tip-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.home-tip-card-meta {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--brand-red, #EF3B3A);
  margin-bottom: 8px;
}
.home-tip-card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 8px;
  line-height: 1.3;
}
.home-tip-card-body p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

@media (max-width: 768px) {
  .home-tips-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .home-tip-card {
    flex-direction: row;
  }
  .home-tip-card-img {
    width: 120px;
    height: auto;
    min-height: 120px;
    flex-shrink: 0;
  }
  .home-tip-card-body {
    padding: 14px 16px;
  }
  .home-tip-card-body h3 {
    font-size: 0.95rem;
  }
  .home-tips-header h2 {
    font-size: 1.4rem;
  }
}

/* ============================================
   Taste pass: homepage visual evolution
   Keep the IA and SEO content, tighten the brand system.
   ============================================ */
.page-home {
  background: #f8fafb;
}

.page-home :where(h1, h2, h3) {
  text-wrap: balance;
}

.page-home .home-hero {
  min-height: clamp(620px, 72dvh, 760px);
  padding: 82px 0 66px;
  background:
    linear-gradient(90deg, rgba(4, 30, 38, 0.96) 0%, rgba(6, 42, 52, 0.84) 38%, rgba(6, 42, 52, 0.42) 68%, rgba(6, 42, 52, 0.18) 100%),
    linear-gradient(180deg, rgba(4, 30, 38, 0.10) 0%, rgba(4, 30, 38, 0.34) 100%),
    url("/assets/images/home-hero3.webp") right center / cover no-repeat;
}

.page-home .home-hero-inner {
  grid-template-columns: minmax(0, 930px) minmax(140px, 1fr);
  padding-left: 20px;
  padding-right: 20px;
}

.page-home .home-hero h1 {
  max-width: 820px;
  font-size: clamp(3.15rem, 4.55vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.page-home .home-hero h1 span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.58em;
  line-height: 1.08;
  white-space: normal;
}

.home-hero-kicker {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  letter-spacing: 0.045em;
  text-transform: none;
}

.home-hero-kicker::before {
  width: 36px;
  background: var(--color-accent);
}

.home-hero-subtitle {
  max-width: 570px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.06rem;
  line-height: 1.72;
}

.home-hero-cta {
  margin-top: 24px;
  gap: 12px;
}

.home-hero-btn-primary,
.home-hero-btn-secondary {
  border-radius: 8px;
  box-shadow: none;
}

.home-hero-btn-primary {
  background: rgba(255, 255, 255, 0.96);
  color: var(--color-primary-dark);
  border: 1px solid rgba(255, 255, 255, 0.76);
}

.home-hero-btn-primary:hover {
  background: #fff;
  color: var(--color-primary-dark);
  box-shadow: 0 12px 28px rgba(4, 30, 38, 0.22);
}

.home-hero-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.90);
  border-color: rgba(255, 255, 255, 0.22);
}

.home-hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.home-hero-trust-bar {
  width: fit-content;
  max-width: 100%;
  gap: 16px;
  margin-top: 22px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.home-hero-trust-bar span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8rem;
}

.home-hero-search-label {
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.page-home .home-hero .search-box-wrap {
  margin-top: 8px;
}

.page-home .home-hero .trip-type-tabs {
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.16);
}

.page-home .home-hero .search-box {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.26);
}

.home-section-kicker {
  letter-spacing: 0.09em;
}

.home-trust-section .home-section-kicker,
.home-city-picks .home-section-kicker {
  color: rgba(6, 42, 52, 0.62);
  letter-spacing: 0.035em;
  text-transform: none;
}

.home-trust-section .home-section-kicker::before,
.home-city-picks .home-section-kicker::before {
  background: rgba(242, 138, 26, 0.72);
}

.home-rail-picks {
  background:
    radial-gradient(circle at 78% 12%, rgba(242, 138, 26, 0.13), transparent 28%),
    linear-gradient(180deg, #05242d 0%, #062a34 100%);
}

.rail-pick-card,
.home-trust-card,
.city-pick-card,
.home-tip-card,
.popular-routes-section .card {
  border-radius: 8px;
}

.rail-pick-card {
  box-shadow: 0 26px 62px rgba(0, 0, 0, 0.22);
}

.rail-pick-body strong,
.city-pick-body strong {
  letter-spacing: -0.01em;
}

.home-trust-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafb 100%);
}

.home-trust-layout {
  align-items: start;
}

.home-trust-card {
  border-color: rgba(6, 42, 52, 0.08);
  box-shadow: 0 18px 38px rgba(6, 42, 52, 0.05);
}

.home-trust-icon {
  background: rgba(26, 82, 118, 0.075);
}

.home-booking-proof {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 30px;
  border: 1px solid rgba(6, 42, 52, 0.08);
  border-radius: 8px;
  background: rgba(6, 42, 52, 0.10);
}

.home-booking-proof div {
  padding: 20px 22px;
  background: #fff;
}

.home-booking-proof strong,
.home-booking-proof span {
  display: block;
}

.home-booking-proof strong {
  color: var(--color-primary-dark);
  font-family: var(--font-heading);
  font-size: 1.02rem;
  line-height: 1.25;
}

.home-booking-proof span {
  margin-top: 8px;
  color: var(--color-text-light);
  font-size: 0.91rem;
  line-height: 1.55;
}

.why-hsr {
  background: #f8fafb;
}

.why-hsr-image img {
  border-radius: 8px;
  box-shadow: 0 22px 48px rgba(6, 42, 52, 0.14);
}

.hsr-stats {
  overflow: hidden;
  gap: 1px;
  padding: 1px;
  border: 1px solid rgba(6, 42, 52, 0.08);
  border-radius: 8px;
  background: rgba(6, 42, 52, 0.08);
}

.hsr-stat {
  padding: 28px 20px;
  border-radius: 0;
  box-shadow: none;
}

.hsr-stat-number {
  color: var(--color-primary-dark);
  font-size: 2.38rem;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

.hsr-stat-label {
  color: var(--color-primary);
}

.hsr-adv {
  border: 1px solid rgba(6, 42, 52, 0.08);
  border-left: 3px solid var(--brand-red);
  box-shadow: 0 12px 28px rgba(6, 42, 52, 0.04);
}

.home-city-picks {
  background: #fff;
}

.home-city-picks-layout {
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.65fr);
}

.city-pick-card {
  grid-template-columns: 46px minmax(150px, 190px) minmax(0, 1fr);
  min-height: 142px;
  border-color: rgba(6, 42, 52, 0.08);
  background: #fff;
  box-shadow: 0 14px 34px rgba(6, 42, 52, 0.05);
}

.city-pick-image {
  width: 100%;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(26, 82, 118, 0.14), rgba(242, 138, 26, 0.10)),
    #e6eef1;
}

.popular-routes-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafb 100%);
}

.popular-routes-section .card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.popular-routes-section .card {
  min-height: 100%;
  border-color: rgba(6, 42, 52, 0.08);
  box-shadow: 0 12px 30px rgba(6, 42, 52, 0.04);
}

.popular-routes-section .card:hover {
  border-color: rgba(239, 59, 58, 0.20);
  box-shadow: 0 18px 40px rgba(6, 42, 52, 0.08);
}

.home-tips-section {
  background: #f8fafb;
}

.home-tips-header h2 {
  font-family: var(--font-heading);
  font-size: 2.05rem;
  letter-spacing: -0.01em;
}

.home-tips-grid {
  grid-template-columns: 1.25fr 0.9fr 0.9fr;
}

.home-tip-card {
  border-color: rgba(6, 42, 52, 0.08);
  box-shadow: 0 12px 28px rgba(6, 42, 52, 0.04);
}

.home-tip-card:first-child .home-tip-card-img {
  height: 220px;
}

.home-tip-card-meta {
  letter-spacing: 0.06em;
}

.home-faq {
  background: #f8fafb;
}

.home-faq .container {
  max-width: 980px;
}

.home-faq h2 {
  margin-bottom: var(--space-xl);
}

.home-faq-lead {
  margin-top: calc(var(--space-xl) * -0.62);
}

.home-faq .faq-item {
  overflow: hidden;
  margin: 0 0 12px;
  padding: 0;
  border: 1px solid rgba(6, 42, 52, 0.09);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(6, 42, 52, 0.04);
}

.home-faq .faq-item:last-child {
  border-bottom: 1px solid rgba(6, 42, 52, 0.09);
}

.home-faq .faq-item summary {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 32px;
  gap: 14px;
  align-items: center;
  padding: 20px 22px;
  color: var(--color-primary-dark);
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.home-faq .faq-item summary::-webkit-details-marker {
  display: none;
}

.home-faq .faq-item summary:focus-visible {
  outline: 3px solid rgba(26, 82, 118, 0.22);
  outline-offset: -3px;
}

.home-faq .faq-item summary::before {
  content: "Q";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(26, 82, 118, 0.08);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 800;
}

.home-faq .faq-item summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f8fafb;
  color: var(--brand-red);
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
}

.home-faq .faq-item[open] summary::after {
  content: "-";
}

.home-faq .faq-item p {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  margin: -2px 0 0;
  padding: 0 22px 22px;
  color: var(--color-text);
  font-size: 0.98rem;
  line-height: 1.72;
}

.home-faq .faq-item p::before {
  content: "A";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-red-soft);
  color: var(--brand-red);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1;
}

@media (max-width: 1100px) {
  .popular-routes-section .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-booking-proof {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-home .home-hero {
    display: block;
    min-height: auto;
    padding: 20px 0 28px;
    background:
      linear-gradient(180deg, rgba(4, 30, 38, 0.84) 0%, rgba(4, 30, 38, 0.70) 100%),
      url("/assets/images/home-hero3.webp") 62% center / cover no-repeat;
  }

  .page-home .home-hero-inner {
    display: block;
    grid-template-columns: minmax(0, 1fr);
    padding-left: 12px;
    padding-right: 12px;
  }

  .page-home .home-hero-copy {
    width: 100%;
    max-width: none;
  }

  .page-home .home-hero h1 {
    font-size: 1.62rem;
    line-height: 1.14;
    letter-spacing: -0.01em;
  }

  .page-home .home-hero .search-box-wrap {
    width: 100%;
    max-width: none;
    margin-top: 18px;
  }

  .page-home .home-hero .search-box {
    width: 100%;
    max-width: none;
    padding: 14px;
    border-radius: 8px;
  }

  .page-home .home-hero .trip-type-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .page-home .home-hero .trip-type-tab {
    justify-content: center;
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }

  .page-home .home-rail-picks {
    padding-top: 34px;
  }

  .home-rail-picks-head,
  .home-tips-header,
  .popular-routes-section > .container > p {
    text-align: left;
  }

  .home-rail-picks-head h2,
  .home-city-picks-copy h2,
  .home-trust-copy h2,
  .home-tips-header h2 {
    font-size: 1.55rem;
    line-height: 1.18;
  }

  .home-trust-card {
    padding: 18px;
  }

  .home-booking-proof div {
    padding: 17px 18px;
  }

  .hsr-stats {
    grid-template-columns: 1fr 1fr;
    gap: 1px;
  }

  .hsr-stat {
    padding: 20px 14px;
  }

  .hsr-stat-number {
    font-size: 1.78rem;
  }

  .city-pick-card {
    grid-template-columns: 38px minmax(0, 1fr);
    min-height: 0;
  }

  .city-pick-image {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }

  .popular-routes-section .card-grid,
  .home-tips-grid {
    grid-template-columns: 1fr;
  }

  .popular-routes-section .card {
    padding: 18px;
  }

  .home-tip-card:first-child .home-tip-card-img {
    height: auto;
  }

  .home-tip-card-placeholder {
    min-height: 118px;
  }

  .home-faq h2,
  .home-faq-lead {
    text-align: left;
  }

  .home-faq h2 {
    display: block;
    font-size: 1.55rem;
  }

  .home-faq h2::after {
    left: 0;
    transform: none;
  }

  .home-faq .faq-item summary {
    grid-template-columns: 34px minmax(0, 1fr) 28px;
    gap: 10px;
    padding: 17px 16px;
    font-size: 1rem;
  }

  .home-faq .faq-item p {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    padding: 0 16px 18px;
    font-size: 0.94rem;
  }

  .home-faq .faq-item summary::before,
  .home-faq .faq-item p::before {
    width: 28px;
    height: 28px;
  }
}
