/* ============================================
   友林旅游网站 - 门票详情页 (Figma 0:2972)
   静态页 1:1 还原（PC/移动自适应）
   ============================================ */

.page-ticket-detail-figma {
  background: #f4f4f4;
}

.page-ticket-detail-figma .top-bar {
  background: #000;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1.6px;
  padding: 10px 0;
}

/* Header / Breadcrumb / Contact / Footer (copied for 1:1) */
.td-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

.td-header-inner {
  background: linear-gradient(90deg, #ffe2cf 10.182%, #fb5f00 64.509%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 45px;
  padding: 20px 0;
}

.td-logo img {
  width: 101px;
  height: 59px;
  object-fit: cover;
  display: block;
}

/* 搜索条与全站 header.css 中 .header-search-wrap 视觉对齐；按钮样式由 header.css 统一 */
.td-search {
  width: 640px;
  min-height: 40px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.td-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  padding: 10px 16px;
  font-size: 14px;
  font-family: inherit;
  align-self: center;
}

.td-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.td-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 13px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1.6px;
  white-space: nowrap;
}

.td-phone img {
  width: 16px;
  height: 16px;
}

.td-btn {
  width: 121px;
  height: 31px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.td-btn-dark { background: #000; }
.td-btn-dark:hover { background: #222; color: #fff; }

.td-nav {
  background: #fff;
  border-bottom: 0.667px solid #ddd;
  display: flex;
  justify-content: center;
}

.td-nav-list {
  width: 940px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.td-nav-list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 57px;
  padding: 18px 0 13px;
  font-size: 17px;
  font-weight: 700;
  color: #000;
  border-bottom: 4.667px solid #fff;
  white-space: nowrap;
}

.td-nav-list a.is-active { border-bottom-color: #fb5f00; }
.td-nav-caret { width: 18px; height: 18px; display: block; }
.td-lang { width: 78px; justify-content: center; padding: 18px 5px 13px; }
.td-lang-caret { width: 11px; height: 11px; }

.td-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 75px 0;
  font-size: 10px;
  letter-spacing: 0.72px;
  color: #000;
}

.td-breadcrumb a { color: #000; text-decoration: none; }
.td-breadcrumb a:hover { color: #fb5f00; }
.td-bc-sep { width: 18px; height: 18px; opacity: 0.9; }
.td-breadcrumb span { color: #000; }

.td-label {
  display: block;
  font-size: 12px;
  color: #000;
  margin: 12px 0 6px;
}

.td-input {
  height: 39px;
  background: #f1f1f1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
}

.td-input img { width: 20px; height: 20px; }
.td-input input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 12px;
  font-family: inherit;
}

.td-textarea {
  width: 100%;
  border: 0;
  outline: none;
  background: #f1f1f1;
  padding: 10px;
  height: 198px;
  resize: none;
  font-size: 12px;
  font-family: inherit;
}

.td-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  font-size: 10px;
  line-height: 20px;
  color: #000;
}
.td-agree input { width: 15px; height: 15px; margin-top: 3px; }

.td-buttons { display: grid; gap: 13px; margin-top: 16px; }
.td-btn-outline,
.td-btn-fill {
  height: 48px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}
.td-btn-outline {
  border: 2px solid #fb5f00;
  color: #fb5f00;
  background: #fff;
}
.td-btn-fill { background: #fb5f00; color: #fff; }
.td-btn-fill:hover { background: #e55500; color: #fff; }
.td-btn-outline:hover { background: #fff5ef; }

.td-contact-banner {
  position: relative;
  height: 353px;
  margin-top: 40px;
  overflow: hidden;
}
.td-contact-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 50% 50%;
}
.td-contact-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 40px;
}
.td-contact-content h2 {
  font-size: 36px;
  font-weight: 500;
  line-height: 45px;
  color: #1c1c1c;
  margin: 0 0 16px;
}
.td-contact-content p {
  font-size: 16px;
  font-weight: 500;
  line-height: 23px;
  letter-spacing: 1.6px;
  color: #000;
  margin: 0 0 20px;
  max-width: 761px;
}
.td-contact-btn {
  width: 328px;
  height: 67px;
  border-radius: 99px;
  background: #fb5f00;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1.6px;
}
.td-contact-btn img { width: 11px; height: 11px; transform: rotate(90deg); }
.td-contact-btn:hover { background: #e55500; color: #fff; }

.td-footer.footer { background: #ffe2cf; color: #000; }
.td-footer .footer-col h4,
.td-footer .footer-col ul li a,
.td-footer .footer-address,
.td-footer .footer-contact p,
.td-footer .footer-qr-item span { color: #000; }
.td-footer .footer-bottom { background: #fb5f00; }
.td-footer .footer-bottom-links a,
.td-footer .footer-copyright { color: #fff; }

.tk-main {
  max-width: 1440px;
  margin: 0 auto;
}

/* Gallery (Figma: left 552x443, right 2x2 of 264x212) */
.tk-gallery {
  margin: 16px auto 0;
  padding: 0 162px;
  display: grid;
  grid-template-columns: 552px 1fr;
  gap: 18px;
  align-items: start;
}

.tk-gallery-main {
  height: 443px;
  border-radius: 10px;
  overflow: hidden;
  background: #d9d9d9;
}

.tk-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 右侧缩略图：>4 张时每 4 张一页，横向整页滚动 */
.tk-gallery-thumbs-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.tk-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;
}
.tk-gallery-thumbs-wrap--multi .tk-thumbs-nav { display: flex; align-items: center; justify-content: center; }
.tk-thumbs-nav:hover:not(:disabled) { background: #fb5f00; color: #fff; }
.tk-thumbs-nav:disabled,
.tk-thumbs-nav.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.tk-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;
}
.tk-gallery-thumbs-viewport::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

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

.tk-thumbs-page {
  display: grid;
  /* 两列等宽：左列上下两张与右列上下两张宽度一致（避免固定 px 与 flex 布局下出现偏差） */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 212px;
  column-gap: 18px;
  row-gap: 19px;
  justify-content: stretch;
  align-content: start;
  flex: 0 0 auto;
  width: 546px;
  min-width: 546px;
  box-sizing: border-box;
}

.tk-thumb {
  border: 0;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #d9d9d9;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.tk-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tk-thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.tk-thumb.is-active {
  box-shadow: 0 0 0 3px #fb5f00 inset, 0 4px 10px rgba(0,0,0,0.2);
}

/* Layout */
.tk-layout {
  margin: 24px 162px 0;
  display: grid;
  grid-template-columns: 731px 353px;
  gap: 32px;
  align-items: start;
}

.tk-pill {
  width: 123px;
  height: 43px;
  border-radius: 99px;
  background: #fb5f00;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tk-desc {
  margin-top: 16px;
  font-size: 12px;
  line-height: 20px;
  color: #000;
  width: 731px;
}

.tk-desc p { margin: 0 0 12px; }
.tk-desc p:last-child { margin-bottom: 0; }

.tk-book {
  background: #fff;
  border-radius: 10px;
  padding: 18px 16px 16px;
  position: sticky;
  top: 120px;
}

.tk-book h1 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.tk-book-desc {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 20px;
  color: #000;
}

.tk-book-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}

.tk-book-price span { font-size: 12px; color: #000; }
.tk-book-price strong { font-size: 24px; font-weight: 500; color: #fb5f00; }

/* Footer overrides follow existing td-footer classes */

/* Responsive */
@media (max-width: 1200px) {
  .td-header-inner { padding-left: 16px; padding-right: 16px; justify-content: space-between; }
  .td-search { width: 520px; }
  .td-nav-list { width: calc(100% - 40px); gap: 14px; }
  .td-breadcrumb { padding-left: 20px; padding-right: 20px; }

  .tk-gallery { padding-left: 20px; padding-right: 20px; grid-template-columns: 1fr; }
  .tk-gallery-main { height: 360px; }
  .tk-gallery-thumbs-viewport { width: 100%; }
  .tk-thumbs-page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 160px;
    column-gap: 18px;
    row-gap: 19px;
    /* 宽度由 JS 按 viewport.clientWidth 同步，保证整页滚动 */
  }

  .tk-layout {
    margin-left: 20px;
    margin-right: 20px;
    grid-template-columns: 1fr 353px;
  }
  .tk-desc { width: 100%; }
}

@media (max-width: 992px) {
  .td-search { width: 360px; }
  .tk-layout { grid-template-columns: 1fr; }
  .tk-book { position: static; }
}

@media (max-width: 768px) {
  .td-header-inner { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 16px; }
  .td-search { width: 100%; }
  .td-actions { justify-content: center; flex-wrap: wrap; }
  .td-nav { display: none; }
  .td-breadcrumb { padding-left: 16px; padding-right: 16px; }
  .td-contact-content h2 { font-size: 24px; }
  .td-contact-btn { width: 100%; max-width: 328px; }

  .tk-gallery-main { height: 280px; }
  .tk-thumbs-page { grid-auto-rows: 140px; gap: 12px; }
  .tk-thumbs-nav { width: 32px; height: 56px; font-size: 22px; }
}

