/* ========== Banner 区域 ========== */
.hero-banner {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 700px;
  min-height: 400px;
  background: #0a0a0a url('../img/主页排头.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 80px;
  position: relative;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
}

.hero-content {
  position: relative;
  text-align: center;
  color: var(--white-color);
  padding: 0 5%;
  width: 100%;
  will-change: transform;
}

.hero-subtitle {
  font-size: clamp(0.7rem, 1.5vw, 1rem);
  letter-spacing: clamp(2px, 0.8vw, 5px);
  margin-bottom: clamp(1rem, 2vw, 2rem);
  text-transform: uppercase;
  opacity: 0.9;
}

.hero-title {
  font-size: clamp(1.8rem, 6vw, 3.2rem);
  line-height: 1.2;
  margin-bottom: clamp(1.2rem, 2.5vw, 2.5rem);
  font-weight: bold;
  text-align: center;
  white-space: pre-line;
}

.hero-btn {
  display: inline-block;
  font-size: clamp(0.8rem, 1.2vw, 1rem);
  padding: clamp(6px, 0.8vw, 12px) clamp(16px, 2vw, 30px);
  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);
}

/* ========== 品牌区样式 ========== */
.brand-section {
  padding: 60px 0;
  text-align: center;
  background: var(--white-color);
}

.brand-title {
  font-size: clamp(1.5rem, 4vw, 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);
}

/* ========== 影像主题区域 ========== */
.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);
}

.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;
}

/* ========== 精选影像 ========== */
.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: 80px 1rem 60px !important; 
    margin-top: 0 !important;
  }
}

/* ========== 作品详情页样式 ========== */
.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;
}

.not-found {
  text-align: center;
  padding: 80px 20px;
  font-size: 24px;
  color: #666;
}

/* ============================== */
/* ========== 视频详情页样式 ========== */
/* ============================== */
img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

.video-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: #000;
  position: relative;
  cursor: pointer;
}

.video-cover {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.play-btn::after {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent #333;
  margin-left: 4px;
}

#main-video {
  width: 100%;
  display: none;
}

/* ========== 关于我页面专用样式 ========== */
.about-wrap {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: center;
}

.about-img {
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  width: 320px;
  margin: 0 auto;
  padding: 12px;
  background: #fff;
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 28px;
}

.about-text {
  padding-left: 26px;
  border-left: 2px solid #e5e7eb;
  text-align: center;
}

.about-text h3 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 18px;
  color: #2d2d2d;
}

.about-text p {
  font-size: 15px;
  color: #555;
  margin-bottom: 12px;
}

.motto {
  font-style: italic;
  color: #5e7f6a;
  padding: 12px 16px;
  margin: 22px 0;
  background: #f6f8f7;
  border-left: 3px solid #5e7f6a;
  border-radius: 6px;
}

.about-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
  justify-content: center;
}

.about-tags span {
  padding: 6px 12px;
  background: #f6f8f7;
  border-radius: 20px;
  font-size: 13px;
  color: #5e7f6a;
}

/* ==================== 梦想清单 · 24个目标版（加宽版） ==================== */
.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: flex;
  align-items: center;
  justify-content: center;
}

.future-check.checked {
  background: #5e7f6a;
  border-color: #5e7f6a;
}

.future-check.checked::after {
  content: "✓";
  color: white;
  font-size: 14px;
  font-weight: bold;
}

.future-text {
  font-size: 15px;
  color: #333;
  line-height: 1.6;
}

.future-item.done .future-text {
  text-decoration: line-through;
  color: #888;
}

/* ========== 响应式适配 ========== */
@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;
  }
}

/* 平板/中屏 ≤1200px */
@media (max-width: 1200px) {
  .nav {
    gap: 25px;
  }

  .nav li a {
    font-size: 17px;
  }
}

/* 手机端 ≤767px */
@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);
  }

  .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;
  }
  
  .hero-banner {
    min-height: 350px;
    max-height: 500px;
  }

  .brand-section {
    padding: 40px 0;
  }

  .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);
  }

  .theme-item:nth-child(1) {
    transform: translate(-50%, calc(-50% - clamp(40px, 18vw, 90px))) translateY(2px);
  }

  .theme-item:nth-child(2) {
    transform: translate(calc(-50% + clamp(40px, 18vw, 90px)), -50%) translateX(-2px);
  }

  .theme-item:nth-child(4) {
    transform: translate(-50%, calc(-50% + clamp(40px, 18vw, 90px))) translateY(-2px);
  }

  .theme-item:nth-child(5) {
    transform: translate(calc(-50% - clamp(40px, 18vw, 90px)), -50%) translateX(2px);
  }

  .theme-item:nth-child(1):hover {
    transform: translate(-50%, calc(-50% - clamp(40px, 18vw, 90px))) translateY(-8px) scale(1.08) rotate(4deg);
  }

  .theme-item:nth-child(2):hover {
    transform: translate(calc(-50% + clamp(40px, 18vw, 90px)), -50%) translateX(8px) scale(1.08) rotate(-4deg);
  }

  .theme-item:nth-child(4):hover {
    transform: translate(-50%, calc(-50% + clamp(40px, 18vw, 90px))) translateY(8px) scale(1.08) rotate(-4deg);
  }

  .theme-item:nth-child(5):hover {
    transform: translate(calc(-50% - clamp(40px, 18vw, 90px)), -50%) translateX(-8px) scale(1.08) rotate(4deg);
  }

  .footer-wrap {
    flex-direction: column;
    gap: 30px;
    align-items: center;
    text-align: center !important;
  }

  .footer-col:nth-child(1),
  .footer-col:nth-child(2) {
    text-align: center !important;
  }

  .back-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }

  /* 详情页移动端 */
  .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;
  }

  .page-info span {
    width: 100%;
    text-align: center;
  }

  .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: 1024px) {
  .video-container {
    max-width: 700px;
  }
}

@media (max-width: 768px) {
  .video-container {
    max-width: 100%;
  }
}

/* ========== 关于我页面响应式 ========== */
@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;
  }
}

@media (max-width: 768px) {
  .about-wrap {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .about-img {
    width: 240px;
    padding: 10px;
    border-radius: 35px;
  }

  .about-img img {
    border-radius: 24px;
  }

  .about-text {
    padding-left: 0;
    border-left: none;
  }

  .about-intro-mobile {
    display: block;
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin: 15px 0;
    padding: 0 10px;
  }
}