/* ============================================
   友林旅游网站 - ツアー詳しく (Figma 0:1125)
   静态页 1:1 还原（PC/移动自适应）
   ============================================ */

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

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

/* Header */
.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.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; }

/* Breadcrumb */
.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; }

/* Main */
.td-main {
  max-width: 1440px;
  margin: 0 auto;
  padding-bottom: 0;
}

/* Gallery */
.td-gallery {
  margin: 16px auto 0;
  padding: 0 162px;
  display: grid;
  grid-template-columns: 552px 1fr;
  gap: 18px;
  align-items: start;
}

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

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

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

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

.td-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;
}

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

.td-gallery-main,
.td-thumb {
  border-radius: 10px;
  overflow: hidden;
  background: #d9d9d9;
}

.td-gallery-main {
  height: 443px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.td-gallery-main img,
.td-gallery-main-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.td-gallery-main-video {
  background: #000;
}

.td-thumb {
  border: 0;
  padding: 0;
  height: 212px;
  cursor: pointer;
  outline: none;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.td-thumb img,
.td-thumb--video .td-thumb-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.td-thumb--video .td-thumb-video {
  pointer-events: none;
}

.td-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;
}

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

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

/* 中间圆形头像（Figma 中间浮层） */
.td-gallery-avatar {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.td-gallery-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

/* Anchor bar */
.td-anchorbar {
  margin: 24px 164px 0;
  background: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 14px;
}

.td-anchor {
  width: 123px;
  text-align: center;
  padding: 10px;
  font-size: 17px;
  font-weight: 700;
  color: #000;
  text-decoration: none;
  border-radius: 6px;
}

.td-anchor.is-active {
  color: #fb5f00;
}

/* Layout */
.td-layout {
  margin: 24px 164px 0;
  display: grid;
  grid-template-columns: 737px 353px;
  gap: 24px;
  align-items: start;
}

.td-block {
  background: transparent;
  border-bottom: 1px solid #a5a5a5;
  padding: 20px 10px;
}

.td-block h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #000;
}

.td-text {
  font-size: 12px;
  line-height: 20px;
  color: #000;
}

/* Accordion */
.td-accordion { display: grid; gap: 10px; }

.td-acc-row {
  background: transparent;
  border-radius: 4px;
  overflow: hidden;
}

.td-acc-item {
  width: 100%;
  height: 57px;
  background: #fff;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 25px;
  font-size: 12px;
  font-weight: 500;
  color: #000;
  cursor: pointer;
}

.td-acc-item img { width: 30px; height: 30px; transition: transform 0.2s ease; }
.td-acc-chevron-wrap {
  position: relative;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.td-acc-chevron-wrap .td-acc-chevron {
  position: absolute;
  inset: 0;
  width: 30px;
  height: 30px;
  object-fit: contain;
  transition: opacity 0.2s ease;
}
.td-acc-chevron--open { opacity: 0; pointer-events: none; }
.td-acc-row.is-open .td-acc-chevron--closed { opacity: 0; pointer-events: none; }
.td-acc-row.is-open .td-acc-chevron--open { opacity: 1; pointer-events: auto; }

.td-acc-panel {
  background: #e4e4e4;
  padding: 0 25px;
  font-size: 12px;
  line-height: 20px;
  color: #000;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.25s ease, padding-top 0.25s ease, padding-bottom 0.25s ease;
}

.td-acc-row.is-open .td-acc-panel {
  padding-top: 16px;
  padding-bottom: 16px;
  max-height: 200px;
  opacity: 1;
  overflow-y: auto;
  scrollbar-width: thin;
}

.td-acc-row.is-open .td-acc-item img {
  transform: rotate(180deg);
}

/* 旅程：含图片/视频时提高面板高度，避免媒体被 200px 裁切 */
.td-acc-row.is-open .td-acc-panel.td-acc-panel--media {
  max-height: min(90vh, 2000px);
}

/* 旅程缩略图 + 视频入口 */
.td-itinerary-media {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  align-items: flex-start;
}

.td-itinerary-thumb {
  padding: 0;
  border: 0;
  background: #d4d4d4;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  width: 88px;
  height: 88px;
  flex-shrink: 0;
}

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

.td-itinerary-video-btn {
  position: relative;
  width: 88px;
  height: 88px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  background: #2a2a2a;
  flex-shrink: 0;
}

.td-itinerary-video-btn:hover {
  filter: brightness(1.08);
}

.td-itinerary-video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent #fff;
  transform: translateX(3px);
}

/* 旅程图片 lightbox */
.td-itinerary-lightbox,
.td-itinerary-video-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.td-itinerary-lightbox[aria-hidden="true"],
.td-itinerary-video-modal[aria-hidden="true"] {
  display: none;
}

.td-itinerary-lightbox-backdrop,
.td-itinerary-video-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.td-itinerary-lightbox-close,
.td-itinerary-video-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.95);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #111;
}

.td-itinerary-lightbox-inner {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1100px);
  max-height: 86vh;
}

.td-itinerary-lightbox-inner img {
  display: block;
  max-width: 100%;
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.td-itinerary-video-inner {
  position: relative;
  z-index: 1;
  width: min(96vw, 960px);
  max-height: 86vh;
}

.td-itinerary-video-inner video {
  display: block;
  width: 100%;
  max-height: 86vh;
  background: #000;
}

/* Price card */
.td-price-card {
  background: #fff;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
}

.td-price-title {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14.163px;
  border-bottom: 0.885px solid #d4d4d4;
}

.td-price-head {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  padding: 18px 18px 0;
}

.td-month-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  width: 21.244px;
  height: 21.244px;
  display: grid;
  place-items: center;
}

.td-month-btn img { width: 21.244px; height: 21.244px; }

.td-months {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 0 18px;
}

.td-month {
  font-size: 17.704px;
  font-weight: 700;
  color: #000;
}

.td-cal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 20px 18px 26px;
}

.td-cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
}

.td-cal-dow {
  height: 46.915px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #8a8a8a;
}

.td-day {
  height: 46.915px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 17.704px;
  color: #000;
  cursor: pointer;
  position: relative;
}

.td-day.muted { color: #b1b1b1; }
.td-day .d { line-height: 18px; }
.td-day .p { font-size: 10px; line-height: 14px; color: #999; }

.td-day:hover:not(.muted) .d {
  text-decoration: underline;
}

.td-day.is-selected::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(251,95,0,0.16);
  /* z-index: -1; */
}

.td-day.is-selected .d {
  font-weight: 700;
}

/* Gallery grid in content */
.td-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.td-gallery-grid img {
  width: 100%;
  height: 140px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

/* Reviews */
.td-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.td-review-btn {
  border: 1px solid #fb5f00;
  color: #fb5f00;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  background: #fff;
  cursor: pointer;
}

.td-review {
  background: #fff;
  border-radius: 16px;
  padding: 26px 34px;
  display: grid;
  grid-template-columns: 72px 1fr;
  grid-template-rows: auto auto;
  gap: 16px 22px;
  margin-top: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.td-review-avatar { grid-column: 1; grid-row: 1; align-self: start; }
.td-review-avatar img { width: 72px; height: 72px; border-radius: 99px; display: block; }

/* 上面：昵称（上）+ 时间（下），并与头像同一行 */
.td-review-meta { grid-column: 2; grid-row: 1; align-self: start; padding-top: 2px; }
.td-review-name {
  font-weight: 700;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
/* 认证徽章（蓝色圆形勾） */
.td-review-name::after{
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 99px;
  background: #0b5bd3;
  box-shadow: 0 2px 6px rgba(11,91,211,0.25);
  position: relative;
}
.td-review-name::before{
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  position: relative;
  left: calc(100% + 10px);
  margin-left: -22px;
}
.td-review-time { margin-top: 8px; font-size: 14px; color: #9a9a9a; }

/* 下面：评分 + 内容，跨两列并与头像左对齐 */
.td-review-content { grid-column: 1 / -1; grid-row: 2; }
.td-stars { display: flex; gap: 10px; margin: 0 0 14px; }
.td-stars img { width: 28px; height: 28px; display: block; }
.td-stars img.is-off { opacity: 0.25; }
.td-review-content p { margin: 0; font-size: 16px; line-height: 28px; color: #000; }

@media (max-width: 768px){
  .td-review{
    padding: 18px 18px;
    grid-template-columns: 56px 1fr;
    gap: 12px 14px;
  }
  .td-review-avatar img{ width: 56px; height: 56px; }
  .td-review-meta{ padding-top: 0; }
  .td-review-name{ font-size: 16px; }
  .td-review-time{ font-size: 13px; }
  .td-stars img{ width: 24px; height: 24px; }
  .td-review-content p{ font-size: 14px; line-height: 24px; }
}

/* =========================
   Review Modal
   ========================= */
.td-modal[aria-hidden="true"] { display: none; }
.td-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.td-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.18);
}

.td-modal-panel {
  position: relative;
  width: min(980px, calc(100% - 80px));
  margin: 70px auto 0;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  border-radius: 6px;
  overflow: hidden;
}

.td-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 99px;
  border: 1px solid rgba(0,0,0,0.25);
  background: #fff;
  cursor: pointer;
  line-height: 26px;
  font-size: 16px;
}

.td-modal-body {
  padding: 24px 24px 18px;
}

.td-modal-title {
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 700;
  color: #000;
  text-align: center;
}

.td-modal-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}

.td-modal-field + .td-modal-field { margin-top: 18px; }

.td-modal-label {
  font-size: 12px;
  color: #000;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.td-req {
  display: inline-flex;
  align-items: center;
  height: 16px;
  padding: 0 6px;
  font-size: 10px;
  border-radius: 3px;
  background: #c40000;
  color: #fff;
}

.td-rating {
  display: flex;
  gap: 6px;
  align-items: center;
}

.td-star {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: #d9d9d9;
  padding: 0;
}

.td-star.is-on { color: #f5b301; }

.td-upload {
  display: grid;
  gap: 10px;
}

.td-upload-box {
  width: 120px;
  height: 120px;
  border: 1px solid #d4d4d4;
  display: grid;
  place-items: center;
  background: #fff;
}

.td-upload-icon {
  width: 46px;
  height: 36px;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  position: relative;
  opacity: 0.8;
}

.td-upload-icon::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid #cfcfcf;
}

.td-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 26px;
  background: #fb5f00;
  color: #fff;
  font-size: 10px;
  border-radius: 2px;
  cursor: pointer;
}

.td-modal-textarea {
  width: 100%;
  min-height: 120px;
  border: 1px solid #d4d4d4;
  outline: none;
  padding: 10px;
  font-size: 12px;
  font-family: inherit;
  resize: none;
}

.td-modal-actions {
  display: flex;
  justify-content: center;
  padding-top: 18px;
}

.td-modal-submit {
  width: 260px;
  height: 44px;
  background: #fb5f00;
  color: #fff;
  border: 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

body.td-modal-open { overflow: hidden; }

/* ===== Figma 0:2938 overrides ===== */
.td-modal-panel--figma {
  width: min(1192px, calc(100% - 120px));
  margin: 48px auto 0;
  border-radius: 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06), 0 10px 30px rgba(0,0,0,0.18);
}

.td-modal-body--figma {
  padding: 34px 50px 34px;
}

.td-modal-title--figma {
  display: none; /* 设计稿没有中间标题 */
}

.td-modal-close--figma {
  width: 26px;
  height: 26px;
  border: 0;
  background: #000;
  border-radius: 99px;
}

.td-modal-close--figma::before,
.td-modal-close--figma::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  background: #fff;
  transform-origin: center;
}
.td-modal-close--figma::before { transform: translate(-50%, -50%) rotate(45deg); }
.td-modal-close--figma::after { transform: translate(-50%, -50%) rotate(-45deg); }

.td-modal-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

.td-modal-label--figma {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.td-req--figma {
  background: #bc261a;
  border-radius: 2px;
  height: 20px;
  font-size: 10px;
  letter-spacing: 0.7px;
  padding: 0 6px;
}

.td-rating--figma { gap: 10px; }

.td-star--figma {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.td-star--figma img { width: 38px; height: 38px; display: block; }

/* 未点亮星：灰度；点亮：原图 */
.td-star--figma:not(.is-on) img {
  filter: grayscale(1) brightness(1.35) contrast(0.9);
  opacity: 0.9;
}
.td-star--figma.is-on img { filter: none; opacity: 1; }

.td-upload--figma { gap: 12px; }

.td-upload-box--figma {
  width: 160px;
  height: 160px;
  background: #f5f5f5;
  border: 1px solid #aaa;
  position: relative;
  display: grid;
  place-items: center;
}

.td-upload-placeholder {
  width: 74px;
  height: 74px;
  opacity: 0.7;
}

.td-upload-plus {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 30px;
  height: 30px;
  transform: rotate(45deg);
  opacity: 0.9;
}

.td-upload-btn--figma {
  width: 160px;
  height: 36px;
  border-radius: 0;
  font-size: 14px;
  letter-spacing: 1px;
  background: #fb5f00;
}

.td-modal-row--review .td-modal-label--figma { margin-bottom: 10px; }

.td-modal-textarea--figma {
  width: 100%;
  border: 1px solid #aaa;
  height: 131px;
  padding: 12px;
  font-size: 12px;
}

.td-modal-actions--figma {
  padding-top: 10px;
}

.td-modal-submit--figma {
  width: 360px;
  height: 50px;
  border-radius: 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1px;
}

/* Booking card */
.td-book {
  background: #fff;
  border-radius: 10px;
  padding: 18px 16px 16px;
  position: sticky;
  top: 120px;
}

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

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

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

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

.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-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-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; }

/* Contact banner */
.td-contact-banner {
  position: relative;
  height: 353px;
  margin-top: 40px;
  overflow: hidden;
}

.td-contact-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.5), rgba(255,255,255,0.5)),
    url("https://www.figma.com/api/mcp/asset/99cb7607-58ab-4e22-a900-4015ce3a8037");
  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; }

/* Footer override */
.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; }

/* 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; }
  .td-gallery { padding-left: 20px; padding-right: 20px; grid-template-columns: 1fr 1fr; }
  .td-gallery-thumbs-viewport { width: 100%; }
  .td-thumbs-page { grid-auto-rows: 160px; width: 100%; min-width: 100%; }
  .td-anchorbar, .td-layout { margin-left: 20px; margin-right: 20px; }
  .td-layout { grid-template-columns: 1fr 353px; }
  /* 价格区域在中等屏宽时改为单列月份，避免挤压 */
  .td-cal-grid { grid-template-columns: 1fr; }
  .td-cal-dow { font-size: 15px; }
  .td-day { font-size: 15px; }
}

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

@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-gallery-main { height: 280px; }
  .td-thumbs-page { grid-auto-rows: 140px; }
  .td-thumb { height: 140px; }
  .td-thumbs-nav { width: 32px; height: 56px; font-size: 22px; }
  .td-breadcrumb { padding-left: 16px; padding-right: 16px; }
  .td-anchorbar { overflow-x: auto; gap: 10px; }
  .td-anchor { width: auto; min-width: 96px; font-size: 14px; }
  .td-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .td-contact-content h2 { font-size: 24px; }
  .td-contact-btn { width: 100%; max-width: 328px; }

  .td-modal-panel {
    width: calc(100% - 20px);
    margin-top: 40px;
    border-radius: 8px;
    max-height: calc(100vh - 60px);
    overflow: auto;
  }
  .td-modal-body { padding: 18px 14px 14px; }
  .td-modal-grid { grid-template-columns: 1fr; gap: 16px; }
  .td-upload-box, .td-upload-btn { width: 100%; max-width: 220px; }
  .td-modal-submit { width: 100%; max-width: 320px; }

  .td-modal-panel--figma {
    width: calc(100% - 20px);
    margin-top: 24px;
    border-radius: 10px;
  }
  .td-modal-body--figma { padding: 18px 14px 14px; }
  .td-upload-btn--figma,
  .td-upload-box--figma { width: 100%; max-width: 260px; }
  .td-modal-submit--figma { width: 100%; max-width: 360px; }
}

