/* 扬州冬日美食专题页面样式 */
@charset "utf-8";

/* ==================== CSS变量定义 ==================== */
:root {
  /* 蓝色调配色 */
  --warm-primary: #1e40af;
  --warm-secondary: #3b82f6;
  --warm-accent: #60a5fa;
  --warm-bg-light: #dbeafe;
  --warm-bg-dark: #1e3a8a;
  --warm-text: #1e3a8a;
  --warm-text-light: #eff6ff;
  --warm-border: #93c5fd;

  /* 间距 */
  --spacing-xs: 10px;
  --spacing-sm: 20px;
  --spacing-md: 40px;
  --spacing-lg: 60px;
  --spacing-xl: 80px;

  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  /* 默认阴影 - 增强立体感 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.25), 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.3), 0 6px 16px rgba(0, 0, 0, 0.35);
}

/* ==================== 基础样式 ==================== */
.wrapper {
  width: 100%;
  min-height: 100vh;
  background-color: #f6f6f6;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #fffbf0 0%, #f7f3eb 50%, #efe8dc 100%);
  background-blend-mode: soft-light, normal;
  background-position: top left;
  background-repeat: repeat;
  background-size:
    200px 200px,
    100% 100%;
}

/* ==================== 头区样式 ==================== */
.header-section {
  position: relative;
  width: 100%;
  height: 65vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/banner-pc.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.9;
  z-index: 1;
}

.snow-container,
.steam-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.snow-container.behind {
  z-index: 3;
  opacity: 0.3;
  filter: blur(3px);
}

.snow-container:not(.behind) {
  z-index: 7;
}

.header-content {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  transform: translate(-50%, -50%);
  z-index: 4;
}
.header-content img {
  width: 100%;
  height: 100%;
  display: block;
}

/* .header-title {
  font-size: 64px;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  color: var(--warm-text-light);
}

.header-subtitle {
  font-size: 28px;
  font-weight: 400;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
  color: var(--warm-text-light);
} */
.header-food {
  position: absolute;
  bottom: 0%;
  left: 0%;
  width: 100%;
  height: auto;
  z-index: 3;
}
.header-food img {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==================== 内容区样式 ==================== */
.content-wrapper {
  width: 100%;
  padding: 0;
}

.section {
  width: 100%;
  /* padding: var(--spacing-lg) 0; */
  padding-bottom: var(--spacing-lg);
}
.section:first-child {
  padding-top: var(--spacing-lg);
}
.section-carousel {
  padding-top: var(--spacing-lg);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  box-sizing: border-box;
}

.section-title {
  font-size: 42px;
  font-weight: 700;
  color: var(--warm-text);
  text-align: center;
  margin-bottom: var(--spacing-lg);
  position: relative;
  padding-bottom: var(--spacing-sm);
  transition:
    color 0.3s ease,
    transform 0.3s ease;
  cursor: pointer;
}

.light {
  color: var(--warm-text-light);
}

.section-title:hover {
  color: var(--warm-primary);
  transform: translateY(-2px);
}

.light:hover {
  color: var(--warm-text-light);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--warm-primary);
  border-radius: 2px;
  transition:
    width 0.3s ease,
    height 0.3s ease;
}

.section-title:hover::after {
  width: 180px;
  height: 5px;
  background: var(--warm-secondary);
}

/* ==================== 栏目一：介绍文案 ==================== */
.section-intro {
  background: linear-gradient(to bottom, #3b82f6, #b6cff8);
  backdrop-filter: blur(10px);
  /* border-radius: var(--radius-lg); */
  margin: 0 auto;
}

.intro-content {
  max-width: 900px;
  margin: 0 auto;
}

.intro-content p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--warm-text-light);
  margin-bottom: var(--spacing-md);
  text-align: justify;
}

.intro-content p:last-child {
  margin-bottom: 0;
}

/* ==================== 栏目三：传统风味 ==================== */
.section-carousel {
  background: transparent;
}

.section-carousel .food-grid {
  gap: var(--spacing-sm);
}

.section-carousel .food-item {
  flex-direction: column;
  height: 325px;
}

.section-carousel .food-image {
  width: 100%;
  height: 160px;
  flex-shrink: 0;
}

.section-carousel .food-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-carousel .food-content {
  flex: 1;
  padding: var(--spacing-sm);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.section-carousel .food-content h3 {
  font-size: 16px;
  margin-bottom: 6px;

  font-weight: 600;
  color: var(--warm-text);
  margin-bottom: var(--spacing-xs);
}

.section-carousel .food-content p {
  font-size: 13px;
  line-height: 1.4;
  color: #666;
}

.food-carousel {
  position: relative;
  /* padding: var(--spacing-md) 0px var(--spacing-lg); */
}

/* 确保所有轮播项高度一致 */
.food-carousel .swiper-slide {
  height: auto;
  display: flex;
}

.carousel-item {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
  width: 100%;
  height: 100%;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

.carousel-item:hover {
  box-shadow: var(--shadow-md);
}

.carousel-image {
  width: 100%;
  height: 300px;
  min-height: 300px;
  overflow: hidden;
  flex-shrink: 0;
}

.carousel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.carousel-item:hover .carousel-image img {
  transform: scale(1.05);
}

.carousel-content {
  padding: var(--spacing-md);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 180px;
}

.carousel-content h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--warm-text);
  margin-bottom: var(--spacing-xs);
  flex-shrink: 0;
}

.carousel-content p {
  font-size: 16px;
  line-height: 1.6;
  color: #666;
  flex: 1;
  margin: 0;
}

/* Swiper 按钮样式 */
.swiper-button-prev,
.swiper-button-next {
  width: 50px;
  height: 50px;
  background: #4d4040;
  border-radius: 50%;
  color: var(--warm-primary);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  top: 50%;
  transform: translateY(-50%);
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: var(--warm-primary);
  color: #fff;
  transform: translateY(-50%) scale(1.1);
  box-shadow:
    0 8px 28px rgba(217, 119, 6, 0.5),
    0 4px 12px rgba(217, 119, 6, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.swiper-button-prev::after,
.swiper-button-next::after {
  display: none;
}

.swiper-button-prev img,
.swiper-button-next img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}

.swiper-button-prev {
  left: 10px;
}

.swiper-button-next {
  right: 10px;
}

/* Swiper 分页指示器样式 */
.swiper-pagination {
  position: relative;
  bottom: 0;
  margin-top: var(--spacing-md);
  text-align: center;
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(217, 119, 6, 0.4);
  opacity: 1;
  margin: 0 6px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.swiper-pagination-bullet-active {
  background: var(--warm-primary);
  width: 24px;
  border-radius: 6px;
}

/* ==================== 栏目三、四：美食网格 ==================== */
.section-traditional,
.section-western {
  background: transparent;
}

.food-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
  list-style: none;
  padding: 0;
  margin-left: 0;
  margin-right: 0;
}

.food-item {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
}

.food-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.food-image {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.food-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.food-item:hover .food-image img {
  transform: scale(1.08);
}

/* 传统美食部分的内容样式（保持原有布局） */
.section-traditional .food-content {
  padding: var(--spacing-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.section-traditional .food-content h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--warm-text);
  margin-bottom: var(--spacing-xs);
}

.section-traditional .food-content p {
  font-size: 15px;
  line-height: 1.6;
  color: #666;
  flex: 1;
}

/* 西式美食部分的内容样式（覆盖在图片底部） */
.section-western .food-image {
  position: relative;
  height: 450px;
  box-shadow: var(--shadow-md);
}

.section-western .food-image:hover {
  box-shadow: var(--shadow-lg);
}

.section-western .food-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--spacing-md);
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.6) 70%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  z-index: 2;
}

.section-western .food-content h3 {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin-bottom: var(--spacing-xs);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.section-western .food-content p {
  font-size: 15px;
  line-height: 1.6;
  color: #fff;
  margin: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* ==================== 尾区样式 ==================== */
.footer-section {
  width: 100%;
  background: linear-gradient(to bottom, #3b82f6, #75a7f8);
  padding: var(--spacing-md) 0;
  margin-top: var(--spacing-sm);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  text-align: center;
}

.footer-line {
  font-size: 16px;
  color: #fff;
  line-height: 1.8;
  margin-bottom: var(--spacing-xs);
}

.footer-line:last-child {
  margin-bottom: 0;
}

.footer-link {
  color: #fff;
  text-decoration: underline;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.footer-link:hover {
  opacity: 0.8;
}

.footer-link:active {
  opacity: 0.6;
}

/* ==================== 回到顶部按钮 ==================== */
.scroll-to-top {
  position: fixed;
  bottom: 15%;
  right: 60px;
  width: 50px;
  height: 50px;
  background: var(--warm-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) rotate(-90deg);
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease,
    background 0.3s ease;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) rotate(-90deg);
}

.scroll-to-top:hover {
  background: var(--warm-secondary);
  transform: translateY(-5px) rotate(-90deg);
  box-shadow: var(--shadow-md);
}

.scroll-to-top:active {
  transform: translateY(-2px) rotate(-90deg);
}

.scroll-to-top img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
