/* ============================================
   友林旅游网站 - 约车页样式 (yueche.css)
   Figma 像素级还原 | 関西空港～心斎橋 貸切送迎サービス
   ============================================ */

/* Page Override */
.page-yueche { background: #f4f4f4; }
.page-yueche .top-bar {
  background: #000;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1.6px;
  padding: 10px 0;
}

/* Header - Gradient */
.header-yueche {
  background: linear-gradient(90deg, #ffe2cf 10.182%, #fb5f00 64.509%);
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}
.header-yueche-inner { width: 100%; }
.header-yueche-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 45px;
  padding: 20px 0;
  max-width: 1200px;
  margin: 0 auto;
}
.header-yueche .header-logo img { height: 59px; width: auto; }

/* Search - White rounded */
.header-search-yueche {
  flex: 1;
  max-width: 640px;
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  min-height: 40px;
  margin-left: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.header-search-yueche input {
  flex: 1;
  min-width: 0;
  border: none;
  padding: 10px 16px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  align-self: center;
}

/* Header nav - Phone + Buttons */
.header-nav-top-yueche {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1.6px;
}
.header-phone img { flex-shrink: 0; }
/* .btn-login, .btn-yoyaku {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 31px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  background: #000;
  transition: all 0.3s;
} */
.btn-login:hover, .btn-yoyaku:hover {
  background: #333;
  color: #fff;
}

/* Nav - White bg, orange active */
.main-nav-yueche {
  background: #fff;
  border-bottom: 1px solid #ddd;
}
.nav-list-yueche {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0;
  max-width: 940px;
  margin: 0 auto;
}
.nav-list-yueche .nav-item a {
  padding: 18px 0;
  font-size: 17px;
  font-weight: 700;
  color: #000;
  border-bottom: 4px solid transparent;
  margin-bottom: -1px;
}
.nav-list-yueche .nav-item a.active {
  border-bottom-color: #fb5f00;
}
.nav-list-yueche .nav-item a:hover { color: #fb5f00; }
.nav-lang { font-size: 17px; font-weight: 700; color: #000; cursor: pointer; padding: 18px 5px; }

/* Breadcrumb */
.breadcrumb-wrap {
  padding: 16px 0;
  background: #fff;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #000;
  letter-spacing: 0.72px;
}
.breadcrumb a { color: #000; }
.breadcrumb a:hover { color: #fb5f00; }
.breadcrumb-sep {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.6;
  color: #666;
}
.breadcrumb span { color: #666; }

/* Main Content */
.yueche-main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 0 60px;
}
.yueche-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 317px;
  gap: 26px;
  align-items: start;
}
.yueche-left { min-width: 0; }

/* Top Image Gallery: 左主图 + 右4张缩略图 2x2 */
.yueche-gallery-top {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 552px 1fr;
  gap: 18px;
  max-width: none;
}
.yueche-gallery-main {
  grid-row: auto;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  height: 443px;
}
.yueche-gallery-main img,
.yueche-gallery-main-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.yueche-gallery-main-video {
  background: #000;
}
/* 右侧缩略图：>4 张时每 4 张一页，横向整页滚动（与 ticket_detail 一致） */
.yueche-gallery-thumbs-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.yueche-thumbs-nav {
  display: none;
  flex-shrink: 0;
  width: 36px;
  height: 72px;
  border: 0;
  border-radius: 8px;
  background: #f0f0f0;
  color: #333;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.yueche-gallery-thumbs-wrap--multi .yueche-thumbs-nav { display: flex; align-items: center; justify-content: center; }
.yueche-thumbs-nav:hover:not(:disabled) { background: #fb5f00; color: #fff; }
.yueche-thumbs-nav:disabled,
.yueche-thumbs-nav.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.yueche-gallery-thumbs-viewport {
  flex: 1;
  min-width: 0;
  width: 546px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.yueche-gallery-thumbs-viewport::-webkit-scrollbar { display: none; width: 0; height: 0; }

.yueche-gallery-thumbs-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 18px;
  min-width: min-content;
}

.yueche-thumbs-page {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 212px;
  column-gap: 18px;
  row-gap: 19px;
  flex: 0 0 auto;
  width: 546px;
  min-width: 546px;
  box-sizing: border-box;
}

.yueche-thumbs-page .yueche-gallery-thumb {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.yueche-gallery-thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #1a1a1a;
  height: 212px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s;
}
.yueche-gallery-thumb:hover,
.yueche-gallery-thumb.active {
  border-color: #fb5f00;
}
.yueche-gallery-thumb img,
.yueche-gallery-thumb--video .yueche-thumb-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.yueche-gallery-thumb--video .yueche-thumb-video {
  pointer-events: none;
}
.yueche-thumb-video-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.95);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

/* Notice Tag + Text */
.yueche-notice-wrap { }
.yueche-notice-tag {
  display: inline-block;
  background: #fb5f00;
  color: #fff;
  padding: 10px 20px;
  border-radius: 99px;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
}
.yueche-notice-text {
  font-size: 12px;
  line-height: 1.67;
  color: #000;
  min-height: 96px;
}
.yueche-notice-text p { margin-bottom: 12px; }
.yueche-notice-text p:last-child { margin-bottom: 0; }

/* Right Form Card */
.yueche-form-card {
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  position: sticky;
  top: 86px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.yueche-title {
  font-size: 16px;
  font-weight: 700;
  color: #000;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  line-height: 1.5;
}
.yueche-vehicle {
  font-size: 12px;
  color: #000;
  margin-bottom: 8px;
}
.yueche-features {
  font-size: 12px;
  color: #656464;
  letter-spacing: 1.2px;
  margin-bottom: 16px;
  line-height: 1.5;
}
.yueche-price {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eee;
}
.yueche-price-label { font-size: 12px; color: #000; }
.yueche-price-value {
  font-size: 24px;
  font-weight: 500;
  color: #fb5f00;
  margin-left: 6px;
}

/* Form */
.yueche-form .form-group {
  margin-bottom: 20px;
}
.yueche-form label {
  display: block;
  font-size: 12px;
  color: #000;
  margin-bottom: 8px;
}
.form-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f1f1f1;
  height: 39px;
  padding: 0 10px;
  border-radius: 4px;
}
.form-input-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 12px;
  font-family: inherit;
  outline: none;
}
.form-input-wrap input::placeholder { color: #8a8a8a; }
.form-icon { width: 20px; height: 20px; flex-shrink: 0; }
.yueche-form textarea {
  width: 100%;
  background: #f1f1f1;
  border: none;
  border-radius: 4px;
  padding: 12px 10px;
  font-size: 12px;
  font-family: inherit;
  resize: none;
  outline: none;
  height: 126px;
}
.form-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 24px 0 20px;
}
.form-agree input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}
.form-agree label {
  font-size: 10px;
  line-height: 1.5;
  color: #000;
  cursor: pointer;
}
.form-agree a { text-decoration: underline; color: #000; }

/* Form Buttons */
.form-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.form-buttons a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
}
.form-buttons .btn-cart {
  width: 100%;
  height: 48px;
  border: 2px solid #fb5f00;
  background: #fff;
  color: #fb5f00 !important;
  font-size: 17px;
  font-weight: 700;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.3s;
}
.form-buttons .btn-cart:hover {
  background: #fff5ef;
  color: #fb5f00;
}
.btn-submit {
  width: 100%;
  height: 48px;
  background: #fb5f00;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  border: none;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-submit:hover {
  background: #e55500;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(251,95,0,0.4);
}

/* Footer - Figma 1:1 约车页专用 */
.page-yueche .footer { background: #ffe2cf; color: #000; }
.page-yueche .footer-col h4 { color: #000; }
.page-yueche .footer-col ul li a { color: #000; }
.page-yueche .footer-address,
.page-yueche .footer-contact p { color: #000; }
.page-yueche .footer-qr-item span { color: #000; }
.page-yueche .footer-bottom { background: #fb5f00; }
.page-yueche .footer-bottom-links a,
.page-yueche .footer-copyright { color: #fff; }

/* ============================================
   Responsive - Tablet
   ============================================ */
@media (max-width: 1200px) {
  .yueche-content {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
  }
  .yueche-gallery-top {
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr) 460px;
  }
  .yueche-gallery-thumbs-viewport { width: 460px; }
  .yueche-thumbs-page { width: 460px; min-width: 460px; grid-auto-rows: 180px; }
  .yueche-gallery-thumb { height: 180px; }
}

@media (max-width: 992px) {
  .yueche-content {
    grid-template-columns: 1fr;
  }
  .yueche-form-card { position: static; }
  .yueche-gallery-top {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    max-width: 100%;
  }
  /* 手机/平板：主图按 16:10 比例自适应屏宽，而不是固定 443px 高度 */
  .yueche-gallery-main {
    grid-row: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }
  .yueche-gallery-thumbs-viewport { width: 100%; }
  .yueche-thumbs-page { width: 100%; min-width: 100%; }
  .header-yueche-top { flex-wrap: wrap; }
  .header-search-yueche { max-width: 300px; }
}

/* ============================================
   Responsive - Mobile
   ============================================ */
@media (max-width: 768px) {
  .page-yueche .top-bar { font-size: 14px; padding: 8px 10px; }
  .header-yueche-top {
    flex-direction: column;
    align-items: stretch;
  }
  .header-search-yueche {
    max-width: none;
    margin-left: 0;
  }
  .header-nav-top-yueche {
    justify-content: center;
  }
  .header-phone { justify-content: center; }
  .nav-list-yueche { flex-wrap: wrap; }
  .yueche-thumbs-nav { width: 32px; height: 56px; font-size: 22px; }
}

@media (max-width: 480px) {
  .yueche-notice-tag { font-size: 15px; padding: 8px 16px; }
  .yueche-form-card { padding: 16px; }
  .yueche-title { font-size: 14px; }
  .yueche-price-value { font-size: 20px; }
  .form-buttons { gap: 10px; }
  .btn-cart, .btn-submit { height: 44px; font-size: 15px; }
}
