﻿/* 现代化响应式基础设置 */
:root {
  /* 设计稿基准：375px */
  --base-font-size: clamp(12px, 4.27vw, 16px); /* 375px时为16px */
  
  /* 常用间距 */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  
  /* 字体大小 */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  
  /* 视窗单位 */
  --vw-xs: 2vw;
  --vw-sm: 4vw;
  --vw-md: 6vw;
  --vw-lg: 8vw;
  --vw-xl: 10vw;

  /* 底部固定导航高度 */
  --bottom-nav-height: 3.5rem; /* 56px */
}

html {
  font-size: var(--base-font-size);
  height: 100%;
}

/* 基础重置 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  outline: none;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

html, body { height: 100%; }

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans CJK SC', sans-serif;
  background: #0f1115;
  color: #fff;
}

html, body, .perspective {
  width: 100%;
  height: 100%;
}

/* 容器样式 */
.all-elements {
  width: 100%;
  height: 100vh;
}

.perspective {
  overflow: visible;
  background: #0f1115;
  position: relative;
}

.perspective_container {
  background: #0f1115;
  min-height: 100%;
  position: relative;
  z-index: 10;
  transform: translateZ(0) translateX(0) rotateY(0deg);
}

.wrapper {
  position: relative;
  overflow: auto;
  height: 100vh;
}

/* 全局底部固定导航 */
.course-bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.5rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.06);
  z-index: 999;
}

.course-bottom-nav.is-visible {
  display: block;
}

.course-bottom-nav-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.25rem;
  max-width: 24rem;
  margin: 0 auto;
  padding: 0.2rem 0;
}

/* 课程内容浮层 */
.course-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
}

.course-modal.is-open {
  display: flex;
}

.course-panel__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.course-panel__card {
  position: relative;
  width: min(32rem, 92vw);
  max-height: min(78vh, 36rem);
  background: #ffffff;
  color: #111;
  border-radius: 1rem;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
  margin: 0;
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 1;
  animation: coursePanelUp 0.25s ease-out;
}

.course-video-modal__card,
.course-reading-modal__card {
  position: relative;
  width: min(36rem, 92vw);
  max-height: min(80vh, 40rem);
  background: #ffffff;
  color: #111;
  border-radius: 1rem;
  box-shadow: 0 28px 40px rgba(0, 0, 0, 0.25);
  margin: 0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 1;
  animation: coursePanelUp 0.25s ease-out;
}

.course-video-modal__content,
.course-reading-modal__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.course-video-modal__description,
.course-reading-modal__note {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.5;
}

.course-video-modal__player-wrapper {
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  background: #000;
}

.course-video-modal__player {
  width: 100%;
  height: min(320px, 50vw);
  display: block;
  background: #000;
}

.course-reading-modal__doc {
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  background: #f6f6f6;
}

.course-reading-modal__iframe {
  width: 100%;
  height: min(46vh, 26rem);
  border: none;
  background: #fff;
}

.course-reading-modal__doc-footer {
  padding: 0.75rem 1rem;
  background: #fafafa;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: flex-end;
}

.course-reading-modal__download {
  color: #1c4be3;
  font-weight: 600;
  font-size: 0.85rem;
}
.course-panel__content {
  flex: 1;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.course-panel__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.course-panel__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.course-panel__body {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #333;
}

.course-panel__body ul {
  margin: 0.25rem 0 0;
  padding-left: 1.1rem;
}

.course-panel__body li {
  margin-bottom: 0.4rem;
}

@keyframes coursePanelUp {
  from { transform: translateY(6px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.course-bottom-nav-btn {
  height: 2.9rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  border: 1px solid transparent;
  border-radius: 0.6rem;
  background: transparent;
  color: #7a7a7a;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.course-bottom-nav-btn i {
  font-size: 1.1rem;
  line-height: 1;
}

.course-bottom-nav-btn span {
  line-height: 1;
}

.course-bottom-nav-btn.is-active {
  color: #111;
  background: rgba(0, 0, 0, 0.04);
}

.course-bottom-nav-btn:active {
  transform: translateY(1px) scale(0.99);
  background-color: rgba(0, 0, 0, 0.06);
}

.course-bottom-nav-btn.is-active::after {
  content: '';
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: #111;
  display: block;
}

.course-bottom-nav-btn:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.35);
  outline-offset: 2px;
}

/* 纵向Swiper占满视窗高度，处理移动端地址栏伸缩 */
.vertical-swiper {
  height: 100dvh;
  height: 100svh;
}

.page {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-sm);
}

/* 页面背景样式 */
.page-1 { 
  background: #000000;
  position: relative;
}
.page-1::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('./images/1/1.png') center/cover no-repeat;
  opacity: 0;
  animation: fadeIn 1.2s ease-in-out forwards;
  z-index: 0;
}
.page-2 { 
  background: #ffffff;
  position: relative;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}

 .page-7 { 
   background: #ffffff;
  position: relative;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}

#page1-album { height: 100%; width: 100%; }
.page-3 { background: #ffffff; }
.page-4 { background: #ffffff; }
.page-5 { background: #ffffff; }
.page-6 { background: #ffffff; }
.page-7 { 
  background: #ffffff url('./images/6/5.jpg') center/cover no-repeat;
  background-attachment: local;
  position: relative;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}
.page-9 { 
  background: #ffffff;
  position: relative;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}

/* 产业集群页面 - Grid布局 */
.page9-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.page9-header {
  height: clamp(6rem, 25vw, 10rem); /* 减少高度，避免占用太多空间 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0; /* 防止被压缩 */
  background: transparent; /* 移除阴影背景 */
  text-align: center;
  z-index: 15;
  position: absolute; /* 改为绝对定位，不占用布局空间 */
  top: 0;
  left: 0;
  right: 0;
}

.industry-title {
  font-size: clamp(var(--text-2xl), var(--vw-lg), var(--text-4xl));
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-xs);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  padding: 0.5rem 1rem;
  background: rgba(0,0,0,0.2);
  border-radius: 0.5rem;
  backdrop-filter: blur(5px);
}

.industry-subtitle {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.9);
  font-weight: 300;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  padding: 0.25rem 0.75rem;
  background: rgba(0,0,0,0.15);
  border-radius: 0.25rem;
  backdrop-filter: blur(3px);
}

.page9-content {
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 5;
}

.logo-item {
  position: absolute;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 1;
  transition: all 0.3s ease;
  z-index: 10;
}

.logo-item:hover {
  transform: scale(1.05);
  box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.25);
}

.logo-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


/* Page 9 logo entrance animation for responsive layout */
@keyframes page9EnterScale {
  0% { 
    opacity: 0; 
    transform: scale(0.3) translateY(-2rem); 
  }
  100% { 
    opacity: 1; 
    transform: scale(1) translateY(0); 
  }
}

/* 初始隐藏状态 */
.page-9 .logo-item {
  opacity: 0;
}

/* 初始隐藏状态 - 产业集群页面 (page-14) */
.page-14 .logo-item {
  opacity: 0;
}

/* 响应式Logo入场动画 - 按重要性和位置顺序 */
.page-9.page-enter .logo-10 { 
  animation: page9EnterScale 0.8s ease-out 0s both; 
}  
.page-9.page-enter .logo-2  { 
  animation: page9EnterScale 0.6s ease-out 0.1s both; 
}
.page-9.page-enter .logo-7  { 
  animation: page9EnterScale 0.6s ease-out 0.2s both; 
}
.page-9.page-enter .logo-1  { 
  animation: page9EnterScale 0.6s ease-out 0.3s both; 
}
.page-9.page-enter .logo-3  { 
  animation: page9EnterScale 0.6s ease-out 0.4s both; 
}
.page-9.page-enter .logo-6  { 
  animation: page9EnterScale 0.6s ease-out 0.5s both; 
}
.page-9.page-enter .logo-8  { 
  animation: page9EnterScale 0.6s ease-out 0.6s both; 
}
.page-9.page-enter .logo-5  { 
  animation: page9EnterScale 0.6s ease-out 0.7s both; 
}
.page-9.page-enter .logo-4  { 
  animation: page9EnterScale 0.6s ease-out 0.8s both; 
}
.page-9.page-enter .logo-9  { 
  animation: page9EnterScale 0.6s ease-out 0.9s both; 
}
.page-9.page-enter .logo-11 { 
  animation: page9EnterScale 0.6s ease-out 1.0s both; 
}
.page-9.page-enter .logo-12 { 
  animation: page9EnterScale 0.6s ease-out 1.1s both; 
}
.page-9.page-enter .logo-13 { 
  animation: page9EnterScale 0.6s ease-out 1.2s both; 
}

.page-14.page-enter .logo-10 { 
  animation: page9EnterScale 0.8s ease-out 0s both; 
}  
.page-14.page-enter .logo-2  { 
  animation: page9EnterScale 0.6s ease-out 0.1s both; 
}
.page-14.page-enter .logo-7  { 
  animation: page9EnterScale 0.6s ease-out 0.2s both; 
}
.page-14.page-enter .logo-1  { 
  animation: page9EnterScale 0.6s ease-out 0.3s both; 
}
.page-14.page-enter .logo-3  { 
  animation: page9EnterScale 0.6s ease-out 0.4s both; 
}
.page-14.page-enter .logo-6  { 
  animation: page9EnterScale 0.6s ease-out 0.5s both; 
}
.page-14.page-enter .logo-8  { 
  animation: page9EnterScale 0.6s ease-out 0.6s both; 
}
.page-14.page-enter .logo-5  { 
  animation: page9EnterScale 0.6s ease-out 0.7s both; 
}
.page-14.page-enter .logo-4  { 
  animation: page9EnterScale 0.6s ease-out 0.8s both; 
}
.page-14.page-enter .logo-9  { 
  animation: page9EnterScale 0.6s ease-out 0.9s both; 
}
.page-14.page-enter .logo-11 { 
  animation: page9EnterScale 0.6s ease-out 1.0s both; 
}
.page-14.page-enter .logo-12 { 
  animation: page9EnterScale 0.6s ease-out 1.1s both; 
}
.page-14.page-enter .logo-13 { 
  animation: page9EnterScale 0.6s ease-out 1.2s both; 
}


/* 持续的浮动动画 - 适配Grid布局 */
.page-9.page-active .logo-2,
.page-9.page-active .logo-3,
.page-9.page-active .logo-7 {
  animation: page9LogoFloat 3.2s ease-in-out 0s infinite;
}

/* 持续的浮动动画 - 产业集群页面 (page-14) */
.page-14.page-active .logo-2,
.page-14.page-active .logo-3,
.page-14.page-active .logo-7 {
  animation: page9LogoFloat 3.2s ease-in-out 0s infinite;
}

/* logo-10 不使用浮动动画，保持居中 */
.page-9.page-active .logo-10 {
  animation: none !important;
}

.page-14.page-active .logo-10 {
  animation: none !important;
}

/* 确保浮动动画不影响Grid的transform scale */
@keyframes page9LogoFloat {
  0%, 100% { 
    translate: 0 0; 
  }
  50% { 
    translate: 0 -8px; 
  }
}


/* 响应式Logo布局 - 使用vw和rem精确定位 */

/* Logo-1: 左上区域，中等大小 */
.logo-1 {
  width: clamp(4rem, 23vw, 8rem);
  height: clamp(4rem, 23vw, 8rem);
  top: clamp(2rem, 16vw, 6rem);
  left: clamp(3rem, 27vw, 9rem);
}

/* Logo-2: 右上区域，大尺寸，重点展示 */
.logo-2 {
  width: clamp(5rem, 35vw, 10rem);
  height: clamp(5rem, 35vw, 10rem);
  top: clamp(4rem, 38vw, 10rem);
  right: clamp(2rem, 14vw, 5rem);
  z-index: 15;
}

/* Logo-3: 左中区域，大尺寸 */
.logo-3 {
  width: clamp(4.5rem, 35vw, 11rem);
  height: clamp(4.5rem, 35vw, 11rem);
  top: clamp(8rem, 43vw, 18rem);
  left: clamp(1rem, 5vw, 3rem);
}

/* Logo-4: 右中区域，小尺寸 */
.logo-4 {
  width: clamp(3rem, 23vw, 7rem);
  height: clamp(3rem, 23vw, 7rem);
  top: clamp(12rem, 73vw, 28rem);
  right: clamp(1rem, 5vw, 3rem);
}

/* Logo-5: 中下区域，中等大小 */
.logo-5 {
  width: clamp(3.5rem, 22vw, 7rem);
  height: clamp(3.5rem, 22vw, 7rem);
  top: clamp(18rem, 97vw, 42rem);
  left: clamp(1rem, 1vw, 10rem);
}

/* Logo-6: 左下区域，中等大小 */
.logo-6 {
  width: clamp(4rem, 26vw, 8rem);
  height: clamp(4rem, 26vw, 8rem);
  bottom: clamp(4rem, 49vw, 26rem);
  left: clamp(3rem, 22vw, 7rem);
}

/* Logo-7: 右下区域，大尺寸 */
.logo-7 {
  width: clamp(5rem, 31vw, 9.5rem);
  height: clamp(5rem, 31vw, 9.5rem);
  bottom: clamp(6rem, 50vw, 20rem);
  right: clamp(2rem, 8vw, 5rem);
  z-index: 15;
}

/* Logo-8: 中下区域，中等大小 */
.logo-8 {
  width: clamp(3.8rem, 28vw, 9.5rem);
  height: clamp(3.8rem, 28vw, 9.5rem);
  bottom: clamp(1rem, 15vw, 8rem);
  left: clamp(6rem, 25vw, 15rem);
}

/* Logo-9: 右下角，小尺寸 */
.logo-9 {
  width: clamp(3rem, 24vw, 8.5rem);
  height: clamp(3rem, 24vw, 8.5rem);
  bottom: clamp(1.5rem, 24vw, 10rem);
  right: clamp(4rem, 16vw, 9rem);
}

/* Logo-10: 中心位置，最大尺寸，焦点 */
.logo-10 {
  width: clamp(6rem, 43vw, 12rem);
  height: clamp(6rem, 43vw, 12rem);
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 20;
}

/* Logo-11: 右上角，小尺寸 */
.logo-11 {
  width: clamp(2.5rem, 13vw, 5rem);
  height: clamp(2.5rem, 13vw, 5rem);
  top: clamp(1rem, 18vw, 7rem);
  right: clamp(0.5rem, 7vw, 6rem);
}

/* Logo-12: 左下角，小尺寸 */
.logo-12 {
  width: clamp(2.8rem, 13vw, 6.5rem);
  height: clamp(2.8rem, 13vw, 6.5rem);
  bottom: clamp(8rem, 44vw, 18rem);
  left: clamp(0.5rem, 11vw, 4rem);
}

/* Logo-13: 右下角边缘，小尺寸 */
.logo-13 {
  width: clamp(2.5rem, 13vw, 5rem);
  height: clamp(2.5rem, 13vw, 5rem);
  bottom: clamp(0.5rem, 8vw, 4rem);
  right: clamp(8rem, 30vw, 18rem);
}
.page-10, .page-11, .page-12, .page-13, .page-14, .page-15 { background: #ffffff; }

.content {
  position: relative;
  z-index: 1;
  width: 100%; /* 全宽度 */
  text-align: center; /* 让内容整体居中 */
  margin-top: 0; /* 移除顶部边距 */
  height: 100vh; /* 全屏高度 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* 垂直居中 */
  padding: var(--space-lg); /* 添加内边距 */
}

.content h1 {font-size: var(--text-3xl); }

/* Hero标题样式 */
.hero-title {
  text-align: center;
  margin: 0 auto var(--space-lg); /* 底部边距，左右自动居中 */
  color: #ffffff; /* 白色文字 */
  text-shadow: none; /* 移除阴影，保持简约 */
  font-weight: 300; /* 更细的字重，简约风格 */
  letter-spacing: 2px; /* 增加字间距 */
  font-size: clamp(var(--text-2xl), 6vw, var(--text-3xl)); /* 响应式字体大小 */
}

/* 横向相册区域 */
.horizontal-swiper {
  width: 100%;
  height: clamp(13.75rem, 40vh, 26.25rem); /* 220px-420px -> rem */
  border-radius: var(--space-sm);
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
}

.gallery-slide {
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: var(--text-xl);
  color: #fff;
}

/* 主分页和相册分页色彩微调 */
.main-pagination .swiper-pagination-bullet { background: rgba(255,255,255,0.5); }
.main-pagination .swiper-pagination-bullet-active { background: #fff; }
.horizontal-swiper .swiper-pagination-bullet { background: rgba(255,255,255,0.6); }
.horizontal-swiper .swiper-pagination-bullet-active { background: #fff; }


/* 第一屏背景视频 */
.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none; /* 不拦截滑动手势 */
  opacity: 0; /* 初始隐藏视频 */
  transition: opacity 0.5s ease-in-out;
}

/* 视频播放后显示 */
.bg-video.playing {
  opacity: 1;
}

/* 顶部导航栏样式 */
.header {
  transform: translateZ(0) translateX(0) rotateY(0deg);
  transition: all 300ms ease;
  overflow: hidden;
  opacity: 1;
  position: fixed;
  height: 3.75rem; /* 60px -> 3.75rem */
  width: 100%;
  z-index: 99999;
  top: 0;
}

/* 滑动时隐藏header */
.header.sliding {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.animate .header {
  transform: translateZ(0) translateX(0) translateY(-3.75rem);
  opacity: 0.3;
  transition: all 300ms ease;
}

/* Logo样式 */
#pageLogo {
  position: absolute;
  z-index: 9999;
  width: 12.5rem; /* 200px -> 12.5rem */
  height: 3.75rem; /* 60px -> 3.75rem */
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.3s ease;
}


/* Logo图片样式 */
#logoImage {
  max-height: 2.5rem; /* 40px -> 2.5rem */
  max-width: 10rem; /* 160px -> 10rem */
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

#logoImage:hover {
  transform: scale(1.05);
}

/* 菜单按钮 */
#showMenu {
  position: absolute;
  z-index: 9999;
  width: 3.75rem; /* 60px -> 3.75rem */
  height: 3.75rem; /* 60px -> 3.75rem */
  right: 0;
  top: 0;
  line-height: 3.75rem; /* 60px -> 3.75rem */
  text-align: center;
  color: #fff;
  font-size: var(--text-lg);
  text-decoration: none;
  transition: color 0.3s ease;
}

#showMenu:hover {
  color: #e74c3c;
}

/* 菜单图标样式 */
#menuIcon {
  width: 1.5rem; /* 24px -> 1.5rem */
  height: 1.5rem; /* 24px -> 1.5rem */
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#showMenu:hover #menuIcon {
  transform: scale(1.1);
  opacity: 0.8;
}

/* 主题切换样式 */
.header.dark-theme #logoImage {
  content: url('');
}

.header.light-theme #logoImage {
  content: url('');
}

.header.dark-theme #menuIcon {
  content: url('./images/menu-dark.svg');
}

.header.light-theme #menuIcon {
  content: url('./images/menu-light.svg');
}

/* 侧边菜单样式 */
.outer-nav {
  position: absolute;
  height: auto;
  top: 50%;
  transform: translateY(-50%);
  transform-style: preserve-3d;
  overflow: auto;
  width: 15.625rem; /* 250px -> 15.625rem */
  height: 70%;
  transition: all 500ms ease;
  left: 0;
}

.outer-nav::-webkit-scrollbar {
  display: none;
}

.inner-nav {
  width: 17.5rem; /* 280px -> 17.5rem */
  overflow: hidden;
}

.inner-nav a {
  margin-bottom: 0px;
  margin-top: 0px;
  padding-left: 23%;
  display: block;
  width: 100%;
  text-decoration: none;
}

/* 导航项目样式 */
.nav-item a {
  color: #CCC;
  font-family: 'Microsoft YaHei', Arial, sans-serif;
  font-size: var(--text-sm);
  padding-bottom: var(--space-sm);
  padding-top: var(--space-sm);
  font-weight: 400;
  transition: all 400ms ease;
  display: inline-block;
  white-space: nowrap;
  transform-style: preserve-3d;
}

.nav-item a:hover {
  color: #FFFFFF;
  transition: all 400ms ease;
}

.active-item {
  color: #e74c3c !important;
}

.nav-icon {
  margin-right: 1.25rem; /* 20px -> 1.25rem */
  font-size: var(--text-lg);
  margin-top: 0.125rem; /* 2px -> 0.125rem */
  width: 1.25rem; /* 20px -> 1.25rem */
  text-align: center;
}

/* 效果样式 */
.effect-airbnb {
  background: #0f1115;
  background-size: cover;
}

/* 菜单打开时的背景 */
.effect-airbnb.animate {
  background: url('images/bgp.png') center/cover no-repeat;
}

.effect-airbnb .perspective_container {
  transform-origin: 50% 50%;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 当有animate类时，应用最终变换状态，使用transition进行动画 */
.effect-airbnb.animate .perspective_container {
  transform: translateZ(-100px) translateX(30%) rotateY(-45deg);
}

.effect-airbnb .outer-nav a {
  opacity: 0;
  transform: translateX(-150px);
  transition: transform 0.4s, opacity 0.4s;
}

.effect-airbnb.animate .outer-nav a {
  opacity: 1;
  transform: translateX(0);
}

/* 透明遮罩 */
.perspective_container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0px;
  opacity: 0;
  background: rgba(0,0,0,0.2);
  transition: opacity 0.4s, height 0s 0.4s;
}

.animate .perspective_container::after {
  opacity: 1;
  height: 101%;
  transition: opacity 0.3s;
}

/* Modal视图 */
.perspective.modalview {
  position: fixed;
  perspective: 1500px;
}

.modalview .perspective_container {
  position: absolute;
  overflow: hidden;
  width: 100%;
  height: 100%;
  cursor: pointer;
  backface-visibility: hidden;
}

.modalview .wrapper {
  transform: translateZ(-1px);
}

/* 动画效果 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.nav-item {
  animation: fadeIn 0.5s ease-in-out;
}

/* 响应式设计 */


/* 物业管理文案样式 */

.pm-eyebrow {
  font-size: clamp(var(--text-3xl), var(--vw-xl), 2.5rem);
  font-weight: 900;
  letter-spacing: 0.03125rem; /* 0.5px -> 0.03125rem */
  color: rgba(0,0,0,0.77);
}
.pm-brand {
  font-weight: 600;
  font-size: clamp(1.625rem, 10vw, 6.875rem); /* 42px-110px -> rem */
  line-height: 1;
  color: #bfa14a; /* 金色 */
}
.pm-title-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1rem;
}
.pm-title-divider {
  width: clamp(3rem, 18vw, 5.5rem);
  height: 0.125rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(191, 161, 74, 0.22) 0%, #bfa14a 50%, rgba(191, 161, 74, 0.22) 100%);
}
.pm-copy p {
  font-size: clamp(var(--text-xs), 3.3vw, var(--text-sm));
  color: rgba(0,0,0,0.75);
  line-height: 1.8;
}
.page-2 .pm-eyebrow { margin: 0 0 0.25rem 0; }
.page-2 .pm-brand {
  margin: 0;
  text-align: center;
  letter-spacing: 0.08em;
  font-size: clamp(1.75rem, 9vw, 3rem);
  line-height: 1.15;
}
.page-2 .pm-copy {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.2rem;
}
.pm-list {
  list-style: decimal;
  padding-left: 1.2rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.pm-list li {
  padding: 0.45rem 0.65rem 0.45rem 0.25rem;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.04);
  color: rgba(0,0,0,0.82);
  font-size: clamp(var(--text-xs), 3.3vw, var(--text-sm));
  line-height: 1.68;
  font-weight: 500;
  letter-spacing: 0.01em;
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.pm-list li::marker {
  color: #bfa14a;
  font-weight: 700;
  font-size: 0.95em;
}

.course-footer-illust {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin: 0;
  pointer-events: none;
}

.course-footer-img {
  width: 100%;
  max-width: 56.25rem; /* 900px */
  height: auto;
  display: block;
  opacity: 0.95;
}

/* 为了避免文字被右下角图遮挡，给右侧和底部留出内边距；并使用flex使内容水平垂直居中 */
.page-2 .content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(var(--space-md), 3vw, var(--space-lg));
  min-height: 100vh;
  padding: clamp(1.5rem, 5vw, 2.5rem)
           clamp(1.25rem, 5vw, 2.5rem)
           clamp(10rem, 32vw, 18rem);
}
.page-2 .pm-content {
  padding-right: clamp(var(--space-md), 32vw, 22.5rem); /* 24px-360px -> rem */
  padding-bottom: clamp(var(--space-md), 30vw, 20rem); /* 24px-320px -> rem */
}


/* 文字整体容器，便于统一布局控制 */
.pm-text {
  width: 100%;
  max-width: 45rem; /* 720px */
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  text-align: left; /* 所有内容左对齐 */
}


/* 文案整体位置微调：在保持居中的前提下整体上移 */

.page-2 {
  justify-content: flex-start;
}

.page-2 .pm-figure {
  position: absolute;
  right: 1rem; /* 使用固定值替代CSS变量 */
  bottom: 1rem; /* 使用固定值替代CSS变量 */
  width: 88% !important; /* 添加!important提高优先级 */
  height: auto !important; /* 确保高度自适应 */
  max-width: 88% !important; /* 防止被其他样式覆盖 */
  z-index: 0;
  pointer-events: none;
}

/* ====== Page 7 物业管理 - 简单动画 ====== */

/* 初始隐藏状态 */
.page-2 .pm-eyebrow,
.page-2 .pm-brand,
.page-2 .pm-copy,
.page-2 .pm-figure {
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s ease-out;
}

.page-2 .pm-figure {
  transform: translateX(20px) !important; /* 图片从右边进入 */
}

/* 页面激活时显示 */
.page-2.page-enter .pm-eyebrow,
.page-2.page-enter .pm-brand,
.page-2.page-enter .pm-copy,
.page-2.page-enter .pm-figure {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

/* 全部同时出现 - 最快响应 */

/* 微信浏览器兼容性：使用更具体的选择器确保样式生效 */
.swiper-slide.page.page-2 img.pm-figure {
  width: 80% !important;
  max-width: 88% !important;
  height: auto !important;
  position: absolute !important;
  right: 0 !important;
  bottom: 0 !important;
}

/* 联系我们页面布局样式 */
.contact-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 37.5rem; /* 600px -> 37.5rem */
  margin: 0 auto;
  gap: var(--space-2xl);
}

/* 两个内容块 */
.contact-block-1, .contact-block-2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: var(--space-sm);
}

/* 调整第二个内容块与地图的距离 */
.contact-block-2 {
  margin-top: -2rem; /* 减少与地图的距离 */
}

/* 调整动画速度 */
.contact-block-1.fade-in {
  animation-duration: 1.5s;
}

.contact-block-2.fade-in {
  animation-duration: 1.5s;
}

/* 顶部Logo和标语 */
.contact-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
}

.logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  margin-top: -0.4rem;
  margin-bottom: 1rem;
}

.company-logo-img {
  width: 100%;
  height: auto;
  margin: 0;
  display: block;
  object-fit: contain;
}

.contact-title {
  margin: 0;
  color: #bfa14a;
}

.stars {
  font-size: var(--text-lg);
  color: #bfa14a;
}

.tagline {
  font-size: var(--text-sm);
  color: #666;
  line-height: 1.6;
  text-align: center;
  margin: 0;
  max-width: 25rem; /* 400px -> 25rem */
}

/* 地图区域 */
.map-section {
  display: flex;
  justify-content: center;
  width: 100%;
}

.map-link {
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: var(--space-sm);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-link:hover {
  transform: scale(1.02);
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.2);
}

.map-image {
  width: 100%;
  max-width: 23.75rem; /* 380px -> 23.75rem */
  height: auto;
  border-radius: var(--space-sm);
  box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s ease;
}

/* 地图覆盖层 */
.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  border-radius: var(--space-sm);
  padding-bottom: 20px; /* 距离底部20px */
}

/* 鼠标悬停时显示，带过渡动画 */
.map-link:hover .map-overlay {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* 自动显示时立即显示，不要过渡动画 */
.map-link.auto-show .map-overlay {
  opacity: 1;
  transition: none; /* 移除过渡动画，避免与文字动画冲突 */
}

.map-nav-text {
  color: #ffffff;
  font-size: var(--text-lg);
  font-weight: 400;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  padding: 0.5rem 0;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 3px;
  width: 50%; /* 占图片宽度的50% */
  text-align: center;
  white-space: nowrap;
}

.map-link.auto-show .map-nav-text {
  animation: fadeOut 4s ease-out forwards;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* 地址和交通信息 */
.address-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-xs);
}

.address, .transport {
  margin: 0;
  font-size: var(--text-sm);
  color: #333;
  line-height: 1.4;
}

/* 客服热线 */
.hotline-section {
  display: flex;
  justify-content: center;
}

.hotline {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: 600;
  color: #333;
}

.hotline-link {
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid rgba(191, 161, 74, 0.45);
  padding-bottom: 0.05rem;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.hotline-link:hover,
.hotline-link:focus-visible {
  color: #bfa14a;
  border-color: #bfa14a;
}

/* 二维码区域 */
.qr-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 0;
  flex-wrap: nowrap;
}

.qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  width: 25%;
  flex: 0 0 25%;
}

.qr-code {
  width: clamp(3rem, 15vw, 5rem); /* 48px-80px，响应式调整 */
  height: clamp(3rem, 15vw, 5rem); /* 48px-80px，响应式调整 */
  border-radius: var(--space-xs);
  box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.1);
}

.qr-label {
  font-size: var(--text-xs);
  color: #666;
  text-align: center;
}

/* 响应式调整 */

/* ====== 联系我们 - 由上到下淡入动画 (page-15) ====== */

/* 初始隐藏状态 - 所有元素都从上方位置开始，透明度为0 */
.page-15 .contact-layout h1,
.page-15 .contact-header,
.page-15 .map-section,
.page-15 .address-section,
.page-15 .hotline-section,
.page-15 .qr-section {
  opacity: 0;
  transform: translateY(-30px);
  transition: all 0.6s ease-out;
}

/* 页面激活时显示 - 依次从上到下淡入 */
.page-15.page-enter .contact-layout h1 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}

.page-15.page-enter .contact-header {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}

.page-15.page-enter .map-section {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.page-15.page-enter .address-section {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.45s;
}

.page-15.page-enter .hotline-section {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

.page-15.page-enter .qr-section {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.75s;
}

/* 二维码项目的子动画 - 稍微错开时间 */
.page-15 .qr-item {
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.5s ease-out;
}

.page-15.page-enter .qr-item:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.9s;
}

.page-15.page-enter .qr-item:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1.0s;
}

.page-15.page-enter .qr-item:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1.1s;
}

.page-15.page-enter .qr-item:nth-child(4) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1.2s;
}


/* Page 1 hero text animations */
@keyframes heroEnterUp {
  0%   { opacity: 0; transform: translateY(24px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0)      scale(1); }
}

/* 简单的淡出动画 - 视频播放3秒后 */
@keyframes fadeOutUp {
  to { opacity: 0; transform: translateY(-20px); }
}

.page-1.video-started .hero-logo,
.page-1.video-started .hero-title {
  animation: fadeOutUp 500ms ease-out 3s both;
}

/* Hero Logo样式 */
.hero-logo {
  max-width: clamp(10rem, 40vw, 16rem); /* 增大logo尺寸 */
  max-height: clamp(5rem, 20vh, 8rem); /* 增大响应式高度 */
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto var(--space-lg); /* 底部边距，左右自动居中 */
  display: block; /* 确保可以使用margin auto居中 */
  opacity: 0.9; /* 稍微透明，更简约 */
}

/* 按钮样式 - 基于桌面版样式适配移动端 */
.btn {
  position: relative;
  padding: 0;
  display: inline-block;
  text-align: center;
  letter-spacing: 0;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.25s ease-in-out;
  cursor: pointer;
  font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.btn.btn-large {
  min-width: clamp(7rem, 32vw, 9rem); /* 响应式宽度：112px-144px，更小 */
  height: clamp(2.25rem, 9vw, 2.75rem); /* 响应式高度：36px-44px，更小 */
  line-height: clamp(2.25rem, 9vw, 2.75rem);
  font-size: clamp(var(--text-sm), 3.5vw, var(--text-base)); /* 响应式字体：14px-16px，更小 */
  font-weight: 400;
}

.btn.btn-yellow {
  background: #ffd200;
  border: 1px solid #ffd200;
  color: #000;
}

.btn.btn-yellow:hover {
  background-color: #f2c600;
}

.btn.btn-yellow:active {
  background-color: #deb916;
}

.btn.btn-yellow:active {
  opacity: 0.8;
}

.btn img, .btn span {
  display: inline-block;
}

/* 按钮容器样式 */
.btn-container {
  display: none; /* 隐藏按钮 */
  justify-content: flex-start;
  align-items: center;
  margin-top: var(--space-md);
}

/* 视频引导容器 - 简单版本 */
.video-guide-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0.75rem;
}

/* 隐藏按钮 - 保持布局空间 */
.video-guide-container.hidden {
  visibility: hidden;
}

/* 视频开始按钮 - 简化版本 */
.video-start-btn {
  padding: clamp(0.75rem, 3vw, 1rem) clamp(1.5rem, 6vw, 2rem);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0;
  color: #ffffff;
  font-size: clamp(var(--text-base), 4vw, var(--text-lg));
  font-weight: 300;
  font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
  cursor: pointer;
  width: 68%;
  max-width: 16rem;
  min-width: 10rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* 按钮悬停效果 */
.video-start-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.6);
}

/* 按钮文字 */
.video-start-btn .btn-text {
  letter-spacing: 1px;
}

/* 核心区位页面样式 */
.location-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  color: #333;
}

.location-header {
  flex: 0 0 24%;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* 初始状态：隐藏并向上偏移 */
  opacity: 0;
  transform: translateY(-30px);
  transition: all 1.2s ease;
}

/* 头部动画激活状态 */
.location-header.animate {
  opacity: 1;
  transform: translateY(0);
}

.location-title {
  font-size: clamp(var(--text-2xl), var(--vw-lg), 1.9375rem); /* 31px -> 1.9375rem */
  font-weight: 400;
  color: #333;
  margin: 0 0 var(--space-sm) 0;
  line-height: 1.4;
}

.location-subtitle {
  font-size: var(--text-xl);
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.0625rem; /* 1px -> 0.0625rem */
}

.location-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) clamp(var(--space-2xl), 12vw, 6rem);
  position: relative;
  /* 初始状态：隐藏并向上偏移 */
  opacity: 0;
  transform: translateY(-20px);
  transition: all 1.2s ease;
  transition-delay: 0.2s;
}

/* 图片区域动画激活状态 */
.location-image.animate {
  opacity: 1;
  transform: translateY(0);
}

.location-map {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.location-footer {
  flex: 0 0 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  /* 初始状态：隐藏并向上偏移 */
  opacity: 0;
  transform: translateY(30px);
  transition: all 1.2s ease;
  transition-delay: 0.4s;
}

/* 底部区域动画激活状态 */
.location-footer.animate {
  opacity: 1;
  transform: translateY(0);
}

.location-text {
  text-align: center;
}

.location-text p {
  margin: 0 0 var(--space-xs) 0;
  font-size: clamp(var(--text-sm), var(--vw-sm), var(--text-base)); /* 14px-16px，更小的字体 */
  color: #333;
  line-height: 1.5;
  font-weight: 300;
}

.location-text p:last-child {
  margin-bottom: 0;
}

/* 在location-image内的logo定位 */
.location-image .company-logo {
  position: absolute;
  bottom: clamp(5vw, 43vw, 43vw);
  right: clamp(5vw, 11vw, 20vw);
  z-index: 10;
  height: 4.0625rem; /* 65px -> 4.0625rem */
  width: auto;
  object-fit: contain;
}

/* 在footer内的logo样式（如果存在） */
.location-footer .location-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 通用logo样式 */
.company-logo {
  height: 4.0625rem; /* 65px -> 4.0625rem */
  width: auto;
  object-fit: contain;
}

/* 浮动标签样式 - 现在相对于page-7定位 */
.page-7 .location-label {
  position: absolute;
  z-index: 10;
  max-width: clamp(8.75rem, 42vw, 14rem); /* 140px-224px */
  height: auto;
  object-fit: contain;
  pointer-events: none;
}

/* 南京北站标签 - 位于左下角区域，相对于page-7 */
.page-7 .label-nanjing {
  top: 29%;
  left: 4.5%;
}

/* 星火路站标签 - 位于右上角区域，相对于page-7 */
.page-7 .label-xinghuo {
  top: 39%;
  left: 45%;
}
