/* ============================================
   页面专用样式合集（主页 + 主题区 + 详情页 + 关于我 + 梦想清单 + 移动端适配）
============================================= */

/* ========== 1. 主页 Banner 区域 ========== */
.hero-banner {
  width: 100%;
  aspect-ratio: 16 / 9;                     /* 固定宽高比 */
  max-height: 600px;                        /* 最大高度限制 */
  background: #0a0a0a url('../img/主页排头.jpg') center/cover no-repeat; /* 背景图 */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 80px;                         /* 避开固定导航 */
  position: relative;
}

/* Banner 遮罩层，提升文字可读性 */
.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
}

/* Banner 文字内容区 */
.hero-content {
  position: relative;
  text-align: center;
  color: var(--white-color);
  padding: 0 5%;
  width: 100%;
}

/* 小标题（顶部小字） */
.hero-subtitle {
  font-size: clamp(0.75rem, 1.2vw, 0.95rem);
  letter-spacing: 2px;
  margin-bottom: clamp(0.6rem, 1.5vw, 1.2rem);
  text-transform: uppercase;
  opacity: 0.9;
}

/* 主标题 */
.hero-title {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  line-height: 1.3;
  margin-bottom: clamp(0.8rem, 2vw, 1.8rem);
  font-weight: bold;
  text-align: center;
  white-space: pre-line;
}

/* 行动按钮 */
.hero-btn {
  display: inline-block;
  font-size: clamp(0.8rem, 1vw, 0.95rem);
  padding: clamp(8px, 1vw, 12px) clamp(20px, 2.5vw, 32px);
  background: var(--white-color);
  color: var(--primary-color);
  border-radius: 30px;
  font-weight: 500;
  transition: var(--transition-base);
  cursor: pointer;
  border: none;
  outline: none;
}

.hero-btn:hover {
  background: #eee;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* --- 移动端 Banner 优化 --- */
@media (max-width: 767px) {
  .hero-banner {
    aspect-ratio: 16 / 9 !important;
    max-height: 240px !important;
    min-height: unset !important;
    margin-top: 60px;
  }

  .hero-title {
    font-size: clamp(1.3rem, 5vw, 1.6rem);
    margin-bottom: 12px;
  }

  .hero-subtitle {
    font-size: 0.75rem;
    margin-bottom: 6px;
  }

  .hero-btn {
    font-size: 0.75rem;
    padding: 7px 18px;
  }
}

/* ========== 2. 品牌介绍区域 ========== */
.brand-section {
  padding: 60px 0;
  text-align: center;
  background: var(--white-color);
}

.brand-title {
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  margin-bottom: clamp(1rem, 2vw, 2rem);
  color: var(--primary-color);
}

.brand-desc {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  line-height: 1.7;
  padding: 0 15px;
  max-width: 800px;
  margin: 0 auto;
  color: var(--secondary-color);
}

/* ========== 3. 影像主题花瓣布局区域 ========== */
.theme-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 6vw;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--light-color);
}

.theme-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 20px;
  min-height: 550px;
  align-items: center;
  justify-content: center;
}

/* 主题文字描述区域 */
.theme-content-wrap {
  flex: 1;
  max-width: 400px;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  background: transparent;
  padding: 0 0 0 40px;
  box-shadow: none;
  border-left: 1px solid #e0e0e0;
  position: relative;
  min-width: 280px;
}

.theme-content-wrap::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 15%;
  bottom: 15%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, #ccc, transparent);
}

.theme-tag {
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  color: #999;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: clamp(1rem, 2vw, 2.5rem);
}

.theme-intro {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--secondary-color);
  line-height: 2;
  margin-bottom: clamp(2rem, 4vw, 50px);
}

/* 花瓣圆形布局容器 */
.theme-petal-wrap {
  flex: 2;
  position: relative;
  width: clamp(280px, 50vw, 700px);
  height: clamp(280px, 50vw, 700px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  margin: 0 auto;
  overflow: hidden;
  transform: translateZ(0);
}

/* 单个圆形主题项 */
.theme-item {
  position: absolute;
  width: clamp(60px, 18vw, 200px);
  height: clamp(60px, 18vw, 200px);
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-slow);
  box-shadow: var(--shadow-md);
  z-index: 5;
  border: 2px solid var(--white-color);
  transform-origin: center;
  backface-visibility: hidden;
}

/* 五个主题项定位：上下左右中 */
.theme-item:nth-child(1) {
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% - clamp(50px, 15vw, 150px))) translateY(2px);
}

.theme-item:nth-child(2) {
  top: 50%;
  left: 50%;
  transform: translate(calc(-50% + clamp(50px, 15vw, 150px)), -50%) translateX(-2px);
}

.theme-item:nth-child(3) {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(2px);
  z-index: 10;
}

.theme-item:nth-child(4) {
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% + clamp(50px, 15vw, 150px))) translateY(-2px);
}

.theme-item:nth-child(5) {
  top: 50%;
  left: 50%;
  transform: translate(calc(-50% - clamp(50px, 15vw, 150px)), -50%) translateX(2px);
}

/* 主题项 hover 效果 */
.theme-item:hover {
  z-index: 20;
  border-color: #f0f0f0;
  box-shadow: 
    var(--shadow-lg),
    0 0 0 8px rgba(255, 255, 255, 0.9),
    0 0 20px rgba(0, 0, 0, 0.05);
}

/* 单个主题项分别设置悬浮动效 */
.theme-item:nth-child(1):hover {
  transform: translate(-50%, calc(-50% - clamp(50px, 15vw, 150px))) translateY(-8px) scale(1.08) rotate(4deg);
}
.theme-item:nth-child(2):hover {
  transform: translate(calc(-50% + clamp(50px, 15vw, 150px)), -50%) translateX(8px) scale(1.08) rotate(-4deg);
}
.theme-item:nth-child(3):hover {
  transform: translate(-50%, -50%) translateY(-8px) scale(1.08) rotate(4deg);
}
.theme-item:nth-child(4):hover {
  transform: translate(-50%, calc(-50% + clamp(50px, 15vw, 150px))) translateY(8px) scale(1.08) rotate(-4deg);
}
.theme-item:nth-child(5):hover {
  transform: translate(calc(-50% - clamp(50px, 15vw, 150px)), -50%) translateX(-8px) scale(1.08) rotate(4deg);
}

/* 主题图片 */
.theme-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
  filter: brightness(0.92) saturate(0.9);
}

.theme-item:hover .theme-img {
  transform: scale(1.1);
  filter: brightness(1.08) saturate(1.05);
}

/* 图片遮罩与文字 */
.theme-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
  color: var(--white-color);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 25px;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-base);
}

.theme-item:hover .theme-overlay {
  opacity: 1;
  transform: translateY(0);
}

.theme-name {
  font-size: clamp(0.9rem, 1.8vw, 18px);
  font-weight: 500;
  margin-bottom: 6px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  transform: translateY(5px);
  transition: transform 0.4s 0.1s ease;
}

.theme-desc {
  font-size: clamp(0.7rem, 1.5vw, 14px);
  opacity: 0.9;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transform: translateY(5px);
  transition: transform 0.4s 0.2s ease;
}

.theme-item:hover .theme-name,
.theme-item:hover .theme-desc {
  transform: translateY(0);
}

/* 主题下方图标导航 */
.theme-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: nowrap;
  white-space: nowrap;
  width: 100%;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.theme-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #555;
  transition: all 0.3s ease;
}

.theme-icon-item .icon {
  font-size: 22px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f5f5f5;
  transition: all 0.3s ease;
}

.theme-icon-item:hover .icon {
  background: #444;
  color: #fff;
  transform: scale(1.08);
}

.theme-icon-item .label {
  font-size: 13px;
  white-space: nowrap;
}

/* ========== 4. 精选影像网格 ========== */
.section {
  padding: 80px 0;
  text-align: center;
  background: var(--white-color);
}

.grid-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 2vw 20px;
  width: 100%;
  overflow: visible;
}

.grid-gallery-item {
  width: 100%;
  aspect-ratio: 3/2;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: var(--transition-base);
  z-index: 1;
  contain: layout paint;
}

.grid-gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.grid-gallery-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  min-width: 100%;
  min-height: 100%;
}

.grid-gallery-item:hover img {
  transform: scale(1.05);
}

/* --- 移动端空白压缩 --- */
@media (max-width: 767px) {
  .brand-section {
    padding: 20px 0 !important;
    margin: 0 !important;
  }

  .theme-section {
    padding: 20px 6vw 20px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .theme-container {
    margin-top: 0 !important;
    gap: 20px !important;
    min-height: auto !important;
  }

  .theme-icons {
    margin-top: 10px !important;
    margin-bottom: 0 !important;
    gap: 15px !important;
  }

  .theme-intro {
    margin-bottom: 20px !important;
  }

  .section {
    padding: 100px 1rem 20px !important;
    margin-top: 0 !important;
  }
}

/* ========== 5. 作品详情页样式 ========== */
.story-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 5% 40px;
  min-height: calc(100vh - 240px);
}

.page-head {
  text-align: center;
  margin-bottom: 30px;
}

.page-sub {
  font-size: 14px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.page-head h1 {
  font-size: 28px;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
}

.page-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

/* 主图容器 */
#main-photo-container {
  max-width: 800px;
  margin: 0 auto 30px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background: #f0f0f0;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#main-photo-container img {
  width: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
  opacity: 0;
}

#main-photo-container img.loaded {
  opacity: 1;
}

/* 文案盒子 */
.essay-box {
  max-width: 800px;
  margin: 0 auto 20px;
  padding: 25px 30px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.essay-box p {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 15px;
  text-align: center;
}

.essay-box p:last-child {
  margin-bottom: 0;
}

/* 返回按钮 */
.back-bar {
  max-width: 800px;
  margin: 20px auto 0;
  text-align: center;
}

.back-btn {
  display: inline-block;
  padding: 10px 24px;
  background: #f0f0f0;
  border-radius: 6px;
  font-size: 14px;
  color: #666;
  transition: all 0.3s ease;
}

.back-btn:hover {
  background: #e0e0e0;
  color: #333;
}

/* 404 提示 */
.not-found {
  text-align: center;
  padding: 80px 20px;
  font-size: 24px;
  color: #666;
}

/* 全局图片重置 */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ========== 6. 关于我页面样式 ========== */
.about-wrap {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: center;
  padding: 20px 0;
}

.about-img {
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  width: 280px;
  margin: 0 auto;
  padding: 10px;
  background: #fff;
  transition: all 0.3s ease;
}

.about-img:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 26px;
}

/* 文字区域：左侧竖线 + 左对齐 */
.about-text {
  padding-left: 30px;
  border-left: 2px solid #e5e7eb;
  text-align: left !important;
}

.about-text h3 {
  font-size: 23px;
  font-weight: 500;
  margin-bottom: 12px;
  color: #2d2d2d;
}

.about-text p {
  font-size: 15px;
  color: #555;
  margin: 0 0 6px 0 !important;
  line-height: 1.6;
  white-space: nowrap;
}

/* 座右铭 */
.motto {
  font-style: italic;
  color: #5e7f6a;
  padding: 12px 16px;
  margin: 14px 0;
  background: #f6f8f7;
  border-left: 3px solid #5e7f6a;
  border-radius: 6px;
}


.about-tags span {
  padding: 6px 12px;
  background: #f6f8f7;
  border-radius: 20px;
  font-size: 13px;
  color: #5e7f6a;
  white-space: nowrap;
}

.about-tags span:hover {
  background: #5e7f6a;
  color: #fff;
}

/* ========== 7. 梦想清单样式 ========== */
/* 透明背景基础样式 */
.section.future-list {
  background: transparent !important;
  box-shadow: none !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
  padding-bottom: 20px !important;
}

.future-list {
  max-width: 1400px;
  margin: 70px auto;
  padding: 50px 40px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.04);
}

.future-progress {
  margin-bottom: 40px;
  font-size: 16px;
  text-align: center;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background: #f1f1f1;
  border-radius: 20px;
  margin-top: 12px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #5e7f6a;
  border-radius: 20px;
  transition: width 0.5s ease;
}

/* 目标网格 */
.future-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.future-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  transition: all 0.25s ease;
}

.future-item:hover {
  border-color: #5e7f6a;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

/* 复选框 */
.future-check {
  width: 24px;
  height: 24px;
  border: 2px solid #d1d5db;
  border-radius: 5px;
  margin-bottom: 14px;
  display: none;
  align-items: center;
  justify-content: center;
}

.future-check.checked {
  background: transparent;;
  border-color: #d1d5db;;
}


.future-text {
  font-size: 15px;
  color: #333;
  line-height: 1.6;
}

.future-item.done .future-text {
  text-decoration: line-through;
  color: #888;
}

/* ========== 8. 响应式适配合集 ========== */
@media (min-width: 768px) {
  .grid-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1200px) {
  .grid-gallery {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

@media (max-width: 1200px) {
  .nav {
    gap: 25px;
  }
  .nav li a {
    font-size: 17px;
  }
}

/* --- 手机端全局适配 --- */
@media (max-width: 767px) {
  .hamburger {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.7s var(--ease);
    gap: 32px;
    z-index: 9999;
  }

  .nav.show {
    transform: translateY(0);
  }

  .nav li a {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 22px;
    opacity: 0;
    letter-spacing: 1.2px;
    transform: translateY(25px);
    text-decoration: none !important;
    padding: 12px 26px;
    border-radius: 14px;
    transition: all 0.3s ease;
  }

  .nav li a::after {
    display: none !important;
  }

  .nav li a.active {
    background: #f2f7fb;
    color: #111;
    font-weight: 500;
  }

  .nav li a .emoji {
    display: inline-block;
    font-size: 24px;
    transition: transform 0.3s ease;
  }

  /* 菜单渐入动画 */
  .nav.show li a {
    opacity: 1;
    transform: translateY(0);
  }
  .nav.show li:nth-child(1) a { transition-delay: 0.08s; }
  .nav.show li:nth-child(2) a { transition-delay: 0.14s; }
  .nav.show li:nth-child(3) a { transition-delay: 0.20s; }
  .nav.show li:nth-child(4) a { transition-delay: 0.26s; }
  .nav.show li:nth-child(5) a { transition-delay: 0.32s; }
  .nav.show li:nth-child(6) a { transition-delay: 0.38s; }
  .nav.show li:nth-child(7) a { transition-delay: 0.44s; }

  /* 主题区移动端 */
  .theme-container {
    flex-direction: column;
    gap: 40px;
    min-height: auto;
    padding: 0 20px;
  }

  .theme-content-wrap {
    max-width: 100%;
    min-width: auto;
    border-left: none;
    padding-left: 0;
    align-items: center;
    text-align: center;
  }

  .theme-content-wrap::before {
    display: none;
  }

  .theme-petal-wrap {
    width: clamp(280px, 80vw, 450px);
    height: clamp(280px, 80vw, 450px);
  }

  .theme-item {
    width: clamp(50px, 20vw, 120px);
    height: clamp(50px, 20vw, 120px);
  }

  /* 详情页移动端 */
  .page-head h1 {
    font-size: 22px;
  }
  .page-info {
    gap: 8px 15px;
    font-size: 13px;
  }
  #main-photo-container {
    max-width: 100%;
    margin: 0 auto 20px;
  }
  .essay-box {
    padding: 15px 20px;
    font-size: 15px;
  }
  .back-btn {
    padding: 8px 20px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .page-head h1 {
    font-size: 20px;
  }
  .essay-box {
    padding: 10px 15px;
  }
  .not-found {
    font-size: 20px;
    padding: 60px 10px;
  }
}

/* --- 列表页响应式 --- */
@media (max-width: 768px) {
  .place-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .btn-group {
    flex-direction: column;
  }
  .media-type-title {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .place-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

/* --- 梦想清单响应式 --- */
@media (max-width: 1400px) {
  .future-items {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .future-items {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .future-list {
    padding: 36px 22px;
    margin: 50px auto;
  }
  .about-wrap {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .about-img {
    width: 200px;
    padding: 8px;
    border-radius: 30px;
  }
  .about-img img {
    border-radius: 22px;
  }
  .about-text {
    padding-left: 0;
    border-left: none;
    text-align: center;
  }
}

/* --- 关于我手机端完美适配 --- */
@media (max-width: 768px) {
  .about-wrap {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .about-img {
    width: 200px;
  }
  .about-text {
    padding-left: 0;
    border-left: none;
    text-align: center !important;
  }
  .about-text p {
    white-space: normal;
  }
  .about-tags {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* ========== 9. 移动端轮播切换（手机端卡片滑动） ========== */
/* 桌面端显示网格，隐藏轮播 */
@media (min-width: 768px) {
  .carousel-wrapper,
  .tab-main,
  .tab-content {
    display: none !important;
  }
  .place-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
  }
}

/* 手机端显示轮播，隐藏网格 */
@media (max-width: 767px) {
  .place-grid,
  .photo-video-nav {
    display: none !important;
  }
  .tab-main {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
  }
  .tab-content {
    display: none;
  }
  .tab-content.active {
    display: block;
  }

  .carousel-wrapper {
    display: block;
    overflow: hidden;
    position: relative;
    padding: 10px 0 30px;
  }

  .carousel-track {
    display: flex;
    gap: 12px;
    margin: 0 6%;
    justify-content: flex-start;
    transition: transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: grab;
    position: relative;
    z-index: 10;
  }
  .carousel-track:active {
    cursor: grabbing;
  }

  /* 轮播卡片宽度固定 */
  .carousel-card {
    flex: 0 0 76% !important;
    width: 76% !important;
    max-width: 76% !important;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    opacity: 0.4;
    transform: scale(0.94);
    transition: all 0.5s cubic-bezier(0.25,1,0.5,1);
    z-index: 11;
    pointer-events: auto !important;
  }
  .carousel-card.active {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 12px 30px rgba(0,0,0,0.13);
  }

  .carousel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
    pointer-events: none;
  }
  .carousel-card.active img {
    transform: scale(1.04);
  }

  .carousel-card-inner-shadow {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.15);
    pointer-events: none;
    z-index: 1;
  }

  .photo-text {
    position: absolute;
    left: 14px;
    top: 14px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 1px 6px rgba(0,0,0,0.35);
    padding: 0;
    background: none;
    opacity: 0;
    z-index: 2;
    transition: all 0.5s cubic-bezier(0.25,1,0.5,1);
    transform: translateY(-6px);
    pointer-events: none;
  }
  .carousel-card.active .photo-text {
    opacity: 1;
    transform: translateY(0);
  }

  /* 单张图居中，禁止滑动 */
  .carousel-track:has(.carousel-card:only-child) {
    justify-content: center;
    margin: 0 6%;
  }
  .carousel-track:has(.carousel-card:only-child) {
    pointer-events: auto !important;
  }
  .carousel-track:has(.carousel-card:only-child) {
    cursor: default;
  }
}

/* 横版 / 竖版图片比例 */
.carousel-card.photo-h { aspect-ratio: 3/2; }
.carousel-card.photo-v { aspect-ratio: 2/3; }

/* ========== 10. 轮播公共样式 ========== */
.tab-main button {
  padding: 10px 28px;
  border-radius: 50px;
  border: none;
  background: #ebeef2;
  font-size: 15px;
  font-weight: 500;
  color: #5e6977;
  transition: all 0.4s ease;
}
.tab-main button:hover {
  background: #dfe3e9;
}
.tab-main button.active {
  background: #5c6b7f;
  color: #fff;
  box-shadow: 0 6px 16px rgba(92,107,127,0.2);
}
.tab-content.active { animation: fadeIn 0.6s ease; }

.theme-subject {
  font-size: 17px;
  font-weight: 500;
  color: #444;
  margin: 20px 0 10px 0;
  text-align: center;
  letter-spacing: 0.2px;
  animation: fadeUp 0.9s ease;
}
.carousel-section { text-align: center; }

.media-type-title {
  font-size: 20px;
  font-weight: 600;
  margin: 30px 0 16px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.3px;
  animation: fadeLeft 0.8s ease;
}
.media-type-title::before {
  content: "";
  width: 3px;
  height: 20px;
  background: #007bff;
  border-radius: 2px;
}

/* 基础动画 */
@keyframes fadeIn {
  from { opacity:0; }
  to { opacity:1; }
}
@keyframes fadeUp {
  from { opacity:0; transform: translateY(10px); }
  to { opacity:1; transform: translateY(0); }
}
@keyframes fadeLeft {
  from { opacity:0; transform: translateX(-10px); }
  to { opacity:1; transform: translateX(0); }
}

/* 手机端隐藏多余标题 */
@media (max-width: 767px) {
  .media-type-title {
    display: none !important;
  }
  #photo-area {
    display: none !important;
  }
  .tab-content .media-type-title {
    display: flex !important;
  }
}

/* 电脑端隐藏手机端按钮 */
@media (min-width: 768px) {
  .tab-main.mobile-only {
    display: none;
  }
}

/* 手机端主题标题样式 */
@media (max-width: 767px) {
  .carousel-section .theme-subject {
    position: relative;
    text-align: left;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    padding-left: 12px;
    line-height: 1.4;
    margin: 15px 0 10px 0;
    border: none;
  }
  .carousel-section .theme-subject::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    background-color: #007bff;
    border-radius: 1px;
  }
  .tab-content .media-type-title {
    display: none !important;
  }
}