/* ==========================================================================
   Modern Responsive Style Sheet (style.css)
   Contains modern layout systems (Flex/Grid) and responsive styles.
   ========================================================================== */

/* 1. Global Reset & Variables */
:root {
  --primary-color: #D31D24;
  --primary-hover: #B3141B;
  --secondary-color: #FFC72C;
  --secondary-light: #FFF0B8;
  --bg-main: #ffffff;
  --bg-accent: #f8f8f8;
  --text-dark: #1a1a1a;
  --text-light: #ffffff;
  --text-muted: #888888;
  --footer-bg: #9E1A1E;
  
  --border-radius-sm: 6px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  
  --box-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
  --box-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --box-shadow-hover: 0 16px 36px rgba(211, 29, 36, 0.15);
  
  --transition-default: transform 0.3s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.3s cubic-bezier(0.2, 0, 0, 1), background-color 0.3s cubic-bezier(0.2, 0, 0, 1);
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--bg-main);
  color: var(--text-dark);
  font-family: "Open Sans", "Source Sans 3", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Page Layout Container */
.container {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
}
.section-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Details */
h2.section-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 30px;
  color: var(--text-light);
  text-wrap: balance;
}
h2.section-title.text-dark {
  color: var(--text-dark);
  border-left: 5px solid var(--primary-color);
  padding-left: 15px;
  transition: padding-left 0.3s cubic-bezier(0.2, 0, 0, 1), border-left-color 0.3s cubic-bezier(0.2, 0, 0, 1), color 0.3s cubic-bezier(0.2, 0, 0, 1);
}
h2.section-title.text-dark:hover {
  padding-left: 22px;
  border-left-color: var(--primary-hover);
  color: var(--primary-color);
}
.highlights-section .section-title {
  position: relative;
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1);
}
.highlights-section .section-title::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  border-radius: 1px;
  transition: width 0.3s cubic-bezier(0.2, 0, 0, 1), left 0.3s cubic-bezier(0.2, 0, 0, 1);
}
.highlights-section .section-title:hover::after {
  width: 100%;
  left: 0;
}
.highlights-section .section-title:hover {
  transform: translateY(-1px);
}

/* 2. Entrance Keyframe Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 3. Header / Banner Area */
.header {
  position: relative;
  background-color: var(--primary-color);
  width: 100%;
  height: auto;
  overflow: hidden;
}
.header .bg {
  position: relative;
  width: 100%;
  height: auto;
  z-index: 1;
}
.header .bg img {
  width: 100%;
  height: auto;
  display: block;
}
.header .bg-wap {
  display: none;
}
.header .banner-content {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  max-width: 1200px;
  width: 100%;
  padding: 0 24px;
}
.header .banner-title-wrapper {
  display: inline-block;
}
.header .banner-title {
  max-width: 1085px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  /* Entrance animation with high-end bezier curve */
  animation: fadeInUp 1.2s cubic-bezier(0.2, 0, 0, 1) both;
  animation-delay: 150ms;
}

/* 4. Highlights Section */
.highlights-section {
  background-color: var(--primary-color);
  padding: 60px 0;
  color: var(--text-light);
}
.highlights-section .section-container {
  display: flex;
  gap: 48px;
}
.tourist-col {
  flex: 1.1;
  min-width: 0;
}
.holiday-col {
  flex: 0.9;
  min-width: 0;
}

/* Swiper Tourist Attractions Custom styles */
.swiper-slide {
  flex-shrink: 0;
}
.tourist-swiper {
  width: 100%;
  height: 300px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.tourist-swiper .swiper-wrapper {
  height: 100%;
}
.tourist-swiper .swiper-slide {
  height: 100%;
}
.slide-inner {
  display: flex;
  height: 100%;
  background-color: var(--secondary-color);
}
.slide-inner a {
  display: flex;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.slide-img {
  flex: 1.8;
  height: 100%;
  overflow: hidden;
  position: relative;
}
.slide-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Subtle image outline */
  outline: 1px solid rgba(255, 255, 255, 0.1);
  outline-offset: -1px;
}
.slide-text {
  flex: 1.2;
  padding: 40px 30px;
  background-color: var(--secondary-color);
  display: flex;
  align-items: flex-start;
}
.slide-text h3 {
  font-size: 22px;
  color: var(--text-dark);
  font-weight: 800;
  line-height: 1.4;
  text-wrap: balance;
}

/* Tourist controls styling */
.tourist-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}
.tourist-pagination {
  display: flex;
  align-items: center;
}
.swiper-pagination-switch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  margin: 0 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s cubic-bezier(0.2, 0, 0, 1);
}
.swiper-pagination-switch:hover {
  transform: scale(1.3);
  background-color: rgba(255, 255, 255, 0.7);
}
.swiper-active-switch {
  background-color: var(--text-light);
  width: 12px;
  height: 12px;
  transform: scale(1);
}
.tourist-prev,
.tourist-next {
  width: 36px;
  height: 36px;
  line-height: 32px;
  text-align: center;
  border: 1px solid var(--text-light);
  color: var(--text-light);
  border-radius: 50%;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  transition: var(--transition-default);
}
.tourist-prev:hover,
.tourist-next:hover {
  background-color: #f0f0f0;
  transform: scale(1.05);
}
.tourist-prev:active,
.tourist-next:active {
  transform: scale(0.96);
}

/* Holiday events list styling */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.events-list li {
  position: relative;
  padding-left: 20px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
  padding-bottom: 15px;
  transition: padding-left 0.3s cubic-bezier(0.2, 0, 0, 1);
}
.events-list li:hover {
  padding-left: 25px;
}
/* .events-list li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 0;
  background-color: var(--secondary-color);
  transition: height 0.3s cubic-bezier(0.2, 0, 0, 1);
  border-radius: 2px;
}
.events-list li:hover::after {
  height: 100%;
} */
.events-list li:before {
  content: "•";
  color: var(--text-light);
  position: absolute;
  left: 0;
  top: -2px;
  font-size: 20px;
}
.events-list li a {
  color: var(--text-light);
  font-size: 17px;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.2s ease;
}
.events-list li a:hover {
  color: var(--secondary-color);
}
.read-more {
  color: var(--text-light);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  display: inline-block;
  margin-top: 20px;
  transition: padding-right 0.3s cubic-bezier(0.2, 0, 0, 1), color 0.2s ease;
  position: relative;
}
.read-more::after {
  content: "→";
  opacity: 0;
  position: absolute;
  margin-left: 4px;
  transition: opacity 0.3s cubic-bezier(0.2, 0, 0, 1), transform 0.3s cubic-bezier(0.2, 0, 0, 1);
  transform: translateX(-4px);
}
.read-more:hover::after {
  opacity: 1;
  transform: translateX(0);
}
.read-more:hover {
  color: var(--secondary-color);
}

/* 5. Cultural and Tourism Activities Section */
.activities-section {
  background-color: var(--bg-main);
  padding: 80px 0;
  position: relative;
}
.activities-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.06), transparent);
}
.activities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
}
.activity-col {
  width: 100%;
  display: flex;
}
.activity-card {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--box-shadow-sm);
  background-color: var(--bg-main);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition-default);
  width: 100%;
  display: flex;
  flex-direction: column;
}
.activity-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--box-shadow-md);
}
.activity-card .card-img {
  width: 100%;
  height: 0;
  padding-bottom: 75%;
  position: relative;
  overflow: hidden;
}
.activity-card .card-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  outline: 1px solid rgba(0, 0, 0, 0.05);
  outline-offset: -1px;
  transition: transform 0.5s cubic-bezier(0.2, 0, 0, 1);
}
.activity-card:hover .card-img img {
  transform: scale(1.08);
}
.activity-card .card-title {
  padding: 20px;
  flex: 1;
  display: flex;
  align-items: center;
}
.activity-card .card-title a {
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.2s ease;
  text-wrap: pretty;
}
.activity-card:hover .card-title a {
  color: var(--primary-color);
}

/* 6. 'Shenhuxi' Brand Section */
.brand-section {
  background-color: var(--bg-accent);
  padding: 80px 0;
  position: relative;
}
.brand-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.06), transparent);
}
.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.brand-card {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--box-shadow-sm);
  background-color: var(--bg-main);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition-default);
}
.brand-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--box-shadow-md);
}
.brand-card .card-img {
  width: 100%;
  height: 0;
  padding-bottom: 75%;
  position: relative;
  overflow: hidden;
}
.brand-card .card-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  outline: 1px solid rgba(0, 0, 0, 0.05);
  outline-offset: -1px;
  transition: transform 0.5s cubic-bezier(0.2, 0, 0, 1);
}
.brand-card:hover .card-img img {
  transform: scale(1.08);
}
.brand-card-bottom {
  background-color: var(--secondary-light);
  padding: 25px 20px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.brand-card-bottom h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-dark);
  text-wrap: balance;
}
.brand-card-bottom .read-more-btn {
  color: var(--primary-color);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid var(--primary-color);
  align-self: flex-start;
  transition: color 0.2s, border-bottom-color 0.2s, gap 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.brand-card-bottom .read-more-btn::after {
  content: "→";
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1);
}
.brand-card-bottom .read-more-btn:hover {
  color: var(--primary-hover);
  border-bottom-color: var(--primary-hover);
  gap: 8px;
}
.brand-card-bottom .read-more-btn:hover::after {
  transform: translateX(2px);
}
.brand-card-bottom .read-more-btn:active {
  transform: scale(0.96);
}

/* 7. Transportation Section */
.transportation-section {
  background-color: var(--bg-main);
  padding: 80px 0;
  position: relative;
}
.transportation-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.06), transparent);
}
.transportation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.trans-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.trans-item-mixed {
  background-color: var(--bg-main);
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow-sm);
  transition: var(--transition-default);
}
.trans-item-mixed > a {
  display: flex;
  gap: 20px;
  padding: 20px;
  width: 100%;
  text-decoration: none;
  color: inherit;
}
.trans-item-mixed:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-sm);
}
.trans-item-mixed .trans-img {
  flex: 0 0 160px;
  aspect-ratio: 4 / 3;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
}
.trans-item-mixed .trans-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  outline: 1px solid rgba(0, 0, 0, 0.06);
  outline-offset: -1px;
  transition: transform 0.5s cubic-bezier(0.2, 0, 0, 1);
}
.trans-item-mixed:hover .trans-img img {
  transform: scale(1.08);
}
.trans-item-mixed .trans-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.trans-item-mixed .trans-info h3 {
  color: var(--text-dark);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-wrap: pretty;
}
.trans-item-mixed .trans-info .date {
  font-size: 14px;
  color: var(--text-muted);
}
.trans-item-text {
  padding: 15px 10px;
  border-bottom: 1px solid #eeeeee;
}
.trans-item-text h3 a {
  color: var(--text-dark);
  font-size: 16px;
  font-weight: normal;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.2s;
}
.trans-item-text h3 a:hover {
  color: var(--primary-color);
}
.trans-item-text .date {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* 8. Footer Section */
.footer-section {
  background-color: var(--footer-bg);
  padding: 56px 0;
  color: var(--text-light);
  text-align: center;
  position: relative;
}
.footer-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
  opacity: 0.4;
}
.footer-section .copyright {
  font-size: 15px;
  margin-bottom: 6px;
  opacity: 0.92;
  letter-spacing: 0.3px;
}
.footer-section .icp {
  font-size: 14px;
  color: var(--secondary-color);
  font-weight: 600;
  opacity: 0.85;
}

/* Back to Top Button */
#backToTop {
  display: none;
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 48px;
  height: 48px;
  line-height: 44px;
  text-align: center;
  padding: 10px;
  background-color: var(--primary-color);
  color: var(--text-light);
  font-size: 22px;
  border-radius: 50%;
  text-decoration: none;
  border: 2px solid var(--text-light);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  transition: var(--transition-default);
  will-change: transform;
}
#backToTop:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}
#backToTop:active {
  transform: scale(0.96);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* 1024px: Tablet Adaptations */
@media screen and (max-width: 1024px) {
  .section-container {
    padding: 0 20px;
  }
  
  .header {
    height: 320px;
  }
  .header .banner-title {
    max-width: 600px;
  }
  
  .highlights-section .section-container {
    gap: 30px;
  }
  
  .slide-text {
    padding: 20px;
  }
  .slide-text h3 {
    font-size: 18px;
  }
  
  /* Activities grid displays 2 columns on tablet */
  .activities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .brand-grid {
    gap: 16px;
  }
  .brand-card-bottom {
    padding: 15px;
    min-height: 140px;
  }
  .brand-card-bottom h3 {
    font-size: 15px;
  }
}

/* 768px: Mobile Adaptations */
@media screen and (max-width: 768px) {
  .header {
    height: auto;
  }
  .header .bg {
    display: none;
  }
  .header .bg-wap {
    display: block;
    position: relative;
    width: 100%;
    height: auto;
    z-index: 1;
  }
  .header .bg-wap img {
    width: 100%;
    height: auto;
    display: block;
  }
  .header .banner-title {
    max-width: 420px;
  }
  
  .highlights-section {
    padding: 40px 0;
  }
  .highlights-section .section-container {
    flex-direction: column;
    gap: 40px;
  }
  
  .tourist-swiper {
    height: 320px;
  }
  .tourist-swiper .swiper-slide {
    height: 100%;
  }
  .slide-inner {
    flex-direction: column;
    height: 100%;
  }
  .slide-inner a {
    flex-direction: column;
  }
  .slide-img {
    width: 100%;
    height: 250px;
    flex: none;
  }
  .slide-text {
    width: 100%;
    height: auto;
    flex: none;
    padding: 20px;
    display: flex;
    align-items: center;
  }
  .slide-text h3 {
    font-size: 16px;
  }
  
  /* Activities grid displays 1 column on mobile */
  .activities-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .brand-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .brand-card-bottom {
    height: auto;
    min-height: 120px;
    gap: 12px;
  }
  
  .transportation-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .trans-item-mixed {
    padding: 15px;
  }
  .trans-item-mixed .trans-img {
    flex: 0 0 120px;
  }
  .trans-item-mixed .trans-info h3 a {
    font-size: 15px;
  }
}

/* 480px: Small Mobile Adaptations */
@media screen and (max-width: 480px) {
  .header {
    height: auto;
  }
  .header .banner-title {
    max-width: 300px;
  }
  
  h2.section-title {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .header .banner-content{
    top: 25%;
  }
  
  .tourist-swiper {
    height: 280px;
  }
  .tourist-swiper .swiper-slide {
    height: 100%;
  }
  .slide-inner {
    flex-direction: column;
    height: 100%;
  }
  .slide-inner a {
    flex-direction: column;
  }
  .slide-img {
    width: 100%;
    height: 200px;
    flex: none;
  }
  .slide-text {
    width: 100%;
    height: auto;
    flex: none;
    padding: 15px;
    display: flex;
    align-items: center;
  }
  .slide-text h3 {
    font-size: 14px;
    line-height: 1.3;
  }
  
  .trans-item-mixed {
    flex-direction: column;
    gap: 12px;
  }
  .trans-item-mixed .trans-img {
    flex: 1;
    width: 100%;
    aspect-ratio: 16/9;
  }
  .trans-item-mixed .trans-info h3 a {
    font-size: 14px;
  }
  
  #backToTop {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    line-height: 36px;
    font-size: 18px;
  }
}
