/* ============================================
   友林旅游网站 - 主样式 (style.css)
   首页及通用页面样式
   ============================================ */

/* Hero Banner */
.hero-banner {
  position: relative;
  height: 418px;
  overflow: hidden;
  background: #caa48c;
}

.hero-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(202,164,140,0.4);
  z-index: 2;
}

.hero-banner-cars {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  z-index: 3;
  display: flex;
}

.hero-banner-cars img {
  height: 140%;
  object-fit: contain;
  margin-top: -80px;
}

.hero-content {
  position: relative;
  z-index: 4;
  padding: 80px 0 0 40px;
  max-width: 600px;
}

.hero-content h1 {
  font-size: 60px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 30px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-tags {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-tag {
  display: inline-block;
  background: #FB5F00;
  color: #fff;
  padding: 10px 20px;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.4;
  width: fit-content;
}

/* About Section */
.about-section {
  padding: 60px 0;
}

.about-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1158px;
  margin: 0 auto;
}

.about-text {
  padding: 50px 40px;
}

.about-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.about-label h2 {
  font-size: 36px;
  font-weight: 500;
  color: #1c1c1c;
}

.about-label-line {
  width: 328px;
  height: 1px;
  background: #FB5F00;
  display: block;
}

.about-subline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.about-label span {
  font-size: 14px;
  font-weight: 500;
  color: #FB5F00;
  letter-spacing: 1.4px;
}

.about-text p {
  font-size: 16px;
  line-height: 1.8;
  color: #000;
  letter-spacing: 1.6px;
}

.about-image {
  position: relative;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: rgba(251,95,0,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.about-play-btn:hover {
  background: #FB5F00;
  transform: translate(-50%, -50%) scale(1.1);
}

.about-play-btn::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 20px solid #fff;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 4px;
}

/* Services Section */
.services-section {
  padding: 0 0 60px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  max-width: 1158px;
  margin: 0 auto;
}

.service-card {
  background: #fff;
  border-radius: 0;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.service-icon {
  width: 53px;
  height: 53px;
  flex-shrink: 0;
}

.service-icon svg {
  width: 100%;
  height: 100%;
  fill: #FB5F00;
}

.service-card h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #000;
}

.service-card p {
  font-size: 14px;
  color: #000;
  line-height: 1.6;
}

/* Tour Tabs & Cards */
.tours-section {
  padding: 0 0 60px;
}

.tour-tabs {
  display: flex;
  justify-content: center;
  background: #f0f0f0;
  border-radius: 8px;
  max-width: 1174px;
  margin: 0 auto 30px;
  overflow: hidden;
}

.tour-tab {
  padding: 10px 0;
  flex: 1;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  background: transparent;
  font-family: inherit;
}

.tour-tab:hover,
.tour-tab.active {
  background: #FB5F00;
  color: #fff;
}

.tour-cards {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 0 4px 8px;
  max-width: 1158px;
  margin: 0 auto;
  /* 隐藏横向滚动条（仍可触摸/滚轮横向滚动） */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge 旧版 */
}

.tour-cards::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}

.tour-cards-wrap {
  position: relative;
  max-width: 1158px;
  margin: 0 auto;
}

.tour-cards-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  color: #000;
  font-size: 26px;
  line-height: 44px;
  text-align: center;
  z-index: 5;
}

.tour-cards-arrow.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.tour-cards-arrow--left {
  left: -10px;
}
.tour-cards-arrow--right {
  right: -10px;
}

.tour-card {
  flex: 0 0 372px; /* desktop 3 cards approx */
}

.tour-card {
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.tour-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.tour-card-image {
  height: 265px;
  overflow: hidden;
}

.tour-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tour-card:hover .tour-card-image img {
  transform: scale(1.05);
}

.tour-card-body {
  padding: 20px;
}

.tour-card-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.tour-card-subtitle {
  font-size: 16px;
  color: #656464;
  margin-bottom: 10px;
}

.tour-card-desc {
  font-size: 16px;
  color: #000;
  line-height: 1.6;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tour-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tour-price {
  font-size: 17px;
  font-weight: 700;
  color: #B80000;
}

.tour-price-unit {
  font-size: 16px;
  font-weight: 500;
  color: #000;
}

/* Category Section */
.category-section {
  background: #FB5F00;
  padding: 50px 0;
  position: relative;
  overflow: hidden;
}

.category-section .section-title {
  color: #fff;
}

.category-section .section-desc {
  color: rgba(255,255,255,0.9);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}

.category-card {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover img {
  transform: scale(1.1);
}

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, rgba(0,0,0,0.5));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
}

.category-card-overlay span {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.category-deco {
  position: absolute;
  left: 160px;
  top: 30px;
  width: 162px;
  opacity: 0.8;
}

.category-deco-text {
  position: absolute;
  left: 100px;
  top: 20px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  writing-mode: vertical-rl;
  letter-spacing: 2px;
}

/* Tickets Section */
.tickets-section {
  padding: 60px 0;
}

.tickets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1158px;
  margin: 0 auto;
}

.ticket-card {
  background: #fff;
  overflow: hidden;
  transition: all 0.3s ease;
}

.ticket-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.ticket-card-image {
  height: 198px;
  overflow: hidden;
  background: #d9d9d9;
}

.ticket-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ticket-card:hover .ticket-card-image img {
  transform: scale(1.05);
}

.ticket-card-body {
  padding: 15px;
}

.ticket-card-body h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.ticket-card-body p {
  font-size: 12px;
  color: #000;
  line-height: 1.6;
  margin-bottom: 12px;
}

.ticket-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.ticket-price-label {
  font-size: 12px;
  color: #000;
}

.ticket-price-value {
  font-size: 24px;
  font-weight: 500;
  color: #FB5F00;
}

/* News Section */
.news-section {
  padding: 60px 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1158px;
  margin: 0 auto;
}

.news-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-card {
  background: #fff;
  overflow: hidden;
  transition: all 0.3s ease;

  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.news-card-image {
  height: 200px;
  overflow: hidden;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card-image img {
  transform: scale(1.05);
}

.news-card-body {
  padding: 15px;
  display: flex;
  flex-direction: column;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.news-date {
  font-size: 16px;
  color: #333;
}

.news-tag {
  display: inline-block;
  background: #FB5F00;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 12px;
  border-radius: 3px;
}

.news-card-body h3 {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  line-height: 1.6;
  margin-top: 4px;
  max-height: calc(1.6em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Popular Areas Section */
.areas-section {
  padding: 60px 0;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 1240px;
  margin: 0 auto;
}

.area-card {
  display: flex;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
  transition: all 0.3s ease;
  cursor: pointer;
}

.area-card:hover {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.area-card-image {
  width: 116px;
  height: 85px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  margin-right: 15px;
}

.area-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.area-card h3 {
  font-size: 17px;
  font-weight: 700;
  flex: 1;
}

.area-card-arrow {
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.area-card:hover .area-card-arrow {
  border-color: #FB5F00;
}

.area-card-arrow::after {
  content: '';
  width: 7px;
  height: 7px;
  border-top: 2px solid #ccc;
  border-right: 2px solid #ccc;
  transform: rotate(45deg);
  margin-left: -2px;
}

.area-card:hover .area-card-arrow::after {
  border-color: #FB5F00;
}

/* Reviews Section */
.reviews-section {
  padding: 60px 0;
  background: #eef0f2;
}

.reviews-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
}

.reviews-header img {
  height: 55px;
}

.reviews-header h2 {
  font-size: 36px;
  font-weight: 500;
  color: #333;
}

.reviews-summary {
  background: #fff;
  border-radius: 12px;
  padding: 30px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1160px;
  margin: 0 auto 30px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.reviews-rating {
  display: flex;
  align-items: center;
  gap: 15px;
}

.reviews-score {
  font-size: 32px;
  font-weight: 700;
}

.reviews-stars {
  display: flex;
  gap: 2px;
}

.reviews-stars svg {
  width: 30px;
  height: 30px;
  fill: #FFCF41;
}

.reviews-count {
  font-size: 16px;
  color: #999;
}

.btn-review {
  background: #4285F4;
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 22px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-review:hover {
  background: #3367D6;
  transform: translateY(-2px);
  color: #fff;
}

.reviews-cards {
  display: flex;
  gap: 24px;
  max-width: 1586px;
  margin: 0 auto;
  overflow-x: auto;
  padding: 16px 0 24px;
  scroll-snap-type: x mandatory;
}

.review-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  min-width: 360px;
  flex-shrink: 0;
  scroll-snap-align: start;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s ease;
}

.review-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.review-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.review-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: visible;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.review-avatar.avatar-yellow { background: #F4D03F; }
.review-avatar.avatar-cyan { background: #5DADE2; }
.review-avatar.avatar-blue { background: #3498DB; }
.review-avatar.avatar-orange { background: #FB8C00; }

.review-avatar .avatar-person {
  width: 32px;
  height: 32px;
  fill: rgba(255,255,255,0.9);
}

.avatar-google-badge {
  position: absolute;
  left: -2px;
  bottom: -2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  color: #4285F4;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.review-info {
  flex: 1;
  min-width: 0;
}

.review-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.review-name {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
}

.review-verified {
  width: 20px;
  height: 20px;
  background: #4285F4;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-verified svg {
  width: 12px;
  height: 12px;
}

.review-time {
  font-size: 14px;
  color: #999;
}

/* 星级评分 - 使用 CSS 绘制 */
.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 14px;
}

.review-stars .star {
  width: 18px;
  height: 18px;
  position: relative;
  display: inline-block;
}

.review-stars .star::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.review-stars .star:not(.filled):not(.half)::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ddd' d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E") no-repeat center/contain;
}

.review-stars .star.filled::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23FFCF41' d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E") no-repeat center/contain;
}

.review-stars .star.half::before {
  background: linear-gradient(90deg, #FFCF41 50%, #ddd 50%);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.review-card p {
  font-size: 15px;
  color: #333;
  line-height: 1.75;
  margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-content h1 { font-size: 42px; }
  .hero-tag { font-size: 22px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .tickets-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-cards { gap: 16px; padding: 12px 0 20px; }
  .review-card { min-width: 320px; padding: 24px; }

  .tour-card { flex-basis: 320px; }
  .tour-cards-arrow--left { left: -6px; }
  .tour-cards-arrow--right { right: -6px; }
}

@media (max-width: 768px) {
  .hero-banner { height: 300px; }
  .hero-content { padding: 40px 20px 0; }
  .hero-content h1 { font-size: 32px; }
  .hero-tag { font-size: 18px; padding: 8px 15px; }
  .hero-banner-cars { display: none; }

  .about-card { grid-template-columns: 1fr; }
  .about-image { height: 250px; }
  .about-text { padding: 30px 20px; }
  .about-label h2 { font-size: 18px; }
  .about-subline {
    width: 100%;
    gap: 6px;
  }
  .about-subline .about-label-line {
    flex: 1 1 auto;
    width: auto;
    min-width: 40px;
  }
  .about-subline span:last-child {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 12px;
    letter-spacing: 0.8px;
  }

  .services-grid { grid-template-columns: 1fr; }
  .tickets-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: 1fr; }

  .reviews-summary {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .reviews-cards { gap: 12px; }
  .review-card { min-width: 280px; padding: 20px; }

  .section-title { font-size: 28px; }

  .tour-card { flex-basis: 280px; }
  .tour-cards { gap: 15px; }
  .tour-cards-arrow {
    width: 38px;
    height: 38px;
    font-size: 22px;
    line-height: 38px;
  }
  .tour-cards-arrow--left { left: -6px; }
  .tour-cards-arrow--right { right: -6px; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 26px; }
  .hero-tag { font-size: 16px; }
  .tour-tabs { flex-wrap: wrap; }
  .tour-tab { flex: none; width: 33.33%; }

  .tour-card { flex-basis: 260px; }
  .tour-cards-arrow { display: none; } /* 小屏直接滑动 */
}
