/* ============================================
   友林旅游网站 - 首页样式 (index.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-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: visible; /* hover 下拉需要可见 */
  position: relative;
}

.tour-tab-wrap {
  position: relative;
  flex: 1;
}

.tour-tab {
  padding: 10px 0;
  width: 100%;
  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;
  display: block;
  text-decoration: none;
}

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

/* 二级分类下拉（鼠标悬停显示） */
.tour-submenu {
  position: absolute;
  top: calc(100% - 2px);
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  background: #fff;
  border: 1px solid #e8e8e8;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 0;
  margin: 0;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.tour-tab-wrap:hover .tour-submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.tour-submenu-item {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
  color: #333;
  background: #fff;
}

.tour-submenu-item:hover {
  background: #FB5F00;
  color: #fff;
}

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

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

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

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

/* ============================================
   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: #f5f5f5;
}

.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: 0;
  padding: 30px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1160px;
  margin: 0 auto 30px;
}

.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: 26px;
  max-width: 1586px;
  margin: 0 auto;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}

.review-card {
  background: #fff;
  border-radius: 0;
  padding: 30px;
  min-width: 377px;
  flex-shrink: 0;
  scroll-snap-align: start;
}

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

.review-avatar {
  width: 61px;
  height: 61px;
  border-radius: 50%;
  background: #9b9b9b;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-avatar svg {
  width: 40px;
  height: 40px;
  fill: #d9d9d9;
}

.review-info {
  flex: 1;
}

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

.review-name {
  font-size: 22px;
  font-weight: 700;
}

.review-google-icon {
  width: 28px;
  height: 28px;
}

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

.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 15px;
}

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

.review-card p {
  font-size: 16px;
  color: #000;
  line-height: 1.8;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .hero-content h1 { font-size: 42px; }
  .hero-tag { font-size: 22px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .tour-cards { 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: 15px; }
  .review-card { min-width: 320px; }
}

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

  .services-grid { grid-template-columns: 1fr; }
  .tour-cards { 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: 10px; }
  .review-card { min-width: 300px; padding: 20px; }

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

@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%; }
}
