/* ============ 全局样式 ============ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* 燕云十六声官网配色 */
  --primary-bg: #0a0a0a;
  --secondary-bg: #1a1a1a;
  --nav-bg: rgba(10, 10, 10, 0.95);
  --primary-text: #ffffff;
  --secondary-text: #b8b8b8;
  --accent-gold: #d4a574;
  --accent-gold-light: #e8c9a0;
  --accent-gold-dark: #b88a5a;
  --border-color: rgba(212, 165, 116, 0.2);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Noto Serif SC', 'Microsoft YaHei', '微软雅黑', serif;
  background-color: var(--primary-bg);
  color: var(--primary-text);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============ 滚动吸附效果 ============ */
html {
  scroll-behavior: smooth;
}

/* 只对首页应用滚动吸附 */
body.snap-scroll {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  overflow-x: hidden;
  height: 100vh;
  scroll-padding: 0;
}

.hero {
  scroll-snap-align: start;
  position: relative;
}

.snap-section {
  scroll-snap-align: start;
  position: relative;
}

/* ============ 导航栏 - 燕云官网风格 ============ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
  padding: 0;
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  transition: var(--transition);
  position: relative;
}

.nav-logo img {
  height: 45px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(212, 165, 116, 0.3));
  transition: var(--transition);
}

.nav-logo:hover img {
  filter: drop-shadow(0 0 20px rgba(212, 165, 116, 0.6));
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 1px;
  transition: var(--transition);
  position: relative;
  height: 70px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}


/* 移动端菜单按钮 - 桌面端隐藏 */
.mobile-menu-btn {
  display: none;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--accent-gold);
}

.nav-link:hover::before {
  width: 60%;
}

/* 首页导航栏特殊样式 - 所有链接保持白色 */
body.home-page .nav-link {
  color: rgba(255, 255, 255, 0.9);
}

body.home-page .nav-link:hover {
  color: rgba(255, 255, 255, 1);
}

body.home-page .nav-link.active {
  color: rgba(255, 255, 255, 0.9);
}

body.home-page .nav-link.active::before {
  width: 0;
}

/* 其他页面保持原有样式 */
body:not(.home-page) .nav-link.active {
  color: var(--accent-gold);
}

body:not(.home-page) .nav-link.active::before {
  width: 60%;
}

.nav-link::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(212, 165, 116, 0.05), transparent);
  opacity: 0;
  transition: var(--transition);
}

.nav-link:hover::after {
  opacity: 1;
}

/* ============ Hero Section - 全屏背景视频 ============ */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
  background: #000;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* 视频背景容器 - 模仿官网 .vbg */
.hero-vbg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* 备用背景图片 */
.hero-vbg img {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

/* 背景视频 */
.hero-vbg video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, 
    rgba(0, 0, 0, 0.3) 0%, 
    rgba(0, 0, 0, 0.1) 50%, 
    rgba(0, 0, 0, 0.4) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  animation: heroFadeIn 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-title {
  font-size: 6rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 1.5rem;
  text-shadow: 
    0 0 20px rgba(212, 165, 116, 0.5),
    0 0 40px rgba(212, 165, 116, 0.3),
    0 4px 20px rgba(0, 0, 0, 0.8);
  letter-spacing: 8px;
  line-height: 1.2;
  position: relative;
  display: inline-block;
}

.hero-title::before,
.hero-title::after {
  content: '◆';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-gold);
  font-size: 2rem;
  opacity: 0.6;
  animation: pulse 2s ease-in-out infinite;
}

.hero-title::before {
  left: -3rem;
}

.hero-title::after {
  right: -3rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--accent-gold-light);
  font-weight: 400;
  letter-spacing: 4px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  animation: heroSubtitleFadeIn 1.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

/* ============ 视频播放按钮 - 官网风格 ============ */
.play-video-btn {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  background: rgba(212, 165, 116, 0.15);
  border: 2px solid var(--accent-gold);
  border-radius: 50%;
  width: 100px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  box-shadow: 
    0 0 30px rgba(212, 165, 116, 0.3),
    inset 0 0 20px rgba(212, 165, 116, 0.1);
  animation: playButtonFloat 3s ease-in-out infinite;
}

.play-video-btn:hover {
  background: rgba(212, 165, 116, 0.25);
  border-color: var(--accent-gold-light);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 
    0 0 50px rgba(212, 165, 116, 0.5),
    inset 0 0 30px rgba(212, 165, 116, 0.2);
}

.play-icon {
  width: 40px;
  height: 40px;
  color: var(--accent-gold);
  margin-bottom: 0.3rem;
  transition: var(--transition);
}

.play-video-btn:hover .play-icon {
  color: var(--accent-gold-light);
  transform: scale(1.1);
}

.play-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 10px rgba(212, 165, 116, 0.5));
}

.play-text {
  font-size: 0.75rem;
  color: var(--accent-gold);
  letter-spacing: 1px;
  font-weight: 500;
  transition: var(--transition);
}

.play-video-btn:hover .play-text {
  color: var(--accent-gold-light);
}

/* ============ 下滑提示 ============ */
.scroll-hint {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  animation: scrollHintFloat 2.5s ease-in-out infinite;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  cursor: pointer;
}

.scroll-hint img {
  width: 180px;
  height: auto;
  filter: drop-shadow(0 0 25px rgba(212, 165, 116, 0.7));
  transition: all 0.3s ease;
}

.scroll-hint:hover img {
  filter: drop-shadow(0 0 25px rgba(212, 165, 116, 0.8));
  transform: scale(1.1);
}

@keyframes scrollHintFloat {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-15px);
  }
}

/* ============ 视频播放器模态框 ============ */
.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(20px);
  animation: fadeIn 0.4s ease;
}

.video-modal.active {
  display: flex;
}

.video-container {
  position: relative;
  width: 90%;
  max-width: 1200px;
  background: #000;
  border: 2px solid var(--accent-gold);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 
    0 0 50px rgba(212, 165, 116, 0.3),
    0 20px 60px rgba(0, 0, 0, 0.8);
  animation: scaleIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
  outline: none;
  -webkit-user-select: none;
  user-select: none;
  position: relative;
  z-index: 1;
}

/* Chrome需要明确指定视频控件的交互 */
.video-container video::-webkit-media-controls-panel {
  z-index: 2;
}

.video-container video::-webkit-media-controls-timeline {
  z-index: 3;
}

.video-close {
  position: absolute;
  top: -50px;
  right: 0;
  color: var(--accent-gold);
  font-size: 2.5rem;
  cursor: pointer;
  background: none;
  border: none;
  transition: var(--transition);
  font-weight: 300;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5; /* 低于视频的z-index(10)，不遮挡视频控件 */
  pointer-events: auto;
}

.video-close:hover {
  color: var(--accent-gold-light);
  transform: rotate(90deg);
}

/* ============ 段落区域 ============ */
.section {
  padding: 6rem 2rem;
  background: var(--primary-bg);
  position: relative;
}

.snap-section {
  min-height: 100vh;
  height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow-y: auto;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  opacity: 0.3;
}

.section.alt {
  background: var(--secondary-bg);
}

.section-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-text);
  text-align: center;
  font-weight: 700;
  letter-spacing: 4px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.section-subtitle {
  text-align: center;
  color: var(--secondary-text);
  font-size: 1.1rem;
  margin-bottom: 4rem;
  letter-spacing: 2px;
}

/* ============ 容器 ============ */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============ 卡片 ============ */
.card {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.8), rgba(10, 10, 10, 0.9));
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  transition: var(--transition);
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(10px);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(212, 165, 116, 0.05), transparent);
  opacity: 0;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-8px);
  box-shadow: 
    0 0 30px rgba(212, 165, 116, 0.2),
    0 20px 40px rgba(0, 0, 0, 0.5);
}

.card:hover::before {
  opacity: 1;
}

/* ============ 按钮 ============ */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--accent-gold-dark), var(--accent-gold));
  color: #000;
  text-decoration: none;
  border: 2px solid var(--accent-gold);
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  text-align: center;
  font-size: 1rem;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(212, 165, 116, 0.3);
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: var(--transition);
}

.btn:hover {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
  border-color: var(--accent-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 165, 116, 0.5);
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-outline {
  background: transparent;
  color: var(--accent-gold);
  border: 2px solid var(--accent-gold);
}

.btn-outline:hover {
  background: var(--accent-gold);
  color: #000;
}

/* ============ 网格布局 ============ */
.grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* ============ 百业展示 ============ */
.showcase-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* ============ 横向轮播图样式 ============ */
.showcase-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.carousel-btn {
  background: rgba(212, 165, 116, 0.15);
  border: 2px solid var(--accent-gold);
  color: var(--accent-gold);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  backdrop-filter: blur(10px);
  z-index: 10;
}

.carousel-btn svg {
  width: 24px;
  height: 24px;
}

.carousel-btn:hover {
  background: rgba(212, 165, 116, 0.3);
  border-color: var(--accent-gold-light);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(212, 165, 116, 0.4);
}

.carousel-track-container {
  overflow: hidden;
  width: 100%;
  border-radius: 12px;
  border: 2px solid var(--accent-gold);
  box-shadow: 0 0 40px rgba(212, 165, 116, 0.3);
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-item {
  min-width: 100%;
  position: relative;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.carousel-item img {
  width: 100%;
  height: 600px;
  object-fit: contain;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-item:hover img {
  transform: scale(1.02);
}

.carousel-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
  color: var(--accent-gold);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* 轮播指示器 */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 2rem;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(212, 165, 116, 0.3);
  border: 2px solid var(--accent-gold);
  cursor: pointer;
  transition: var(--transition);
}

.indicator:hover {
  background: rgba(212, 165, 116, 0.5);
  transform: scale(1.2);
}

.indicator.active {
  background: var(--accent-gold);
  box-shadow: 0 0 15px rgba(212, 165, 116, 0.6);
  transform: scale(1.3);
}

/* ============ 成员卡片 ============ */
.member-avatar {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.1), rgba(26, 26, 26, 0.8));
  border: 2px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--transition);
}

.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.card:hover .member-avatar {
  border-color: var(--accent-gold);
}

.card:hover .member-avatar img {
  transform: scale(1.1);
}

.member-name {
  color: var(--primary-text);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.member-profession {
  color: var(--accent-gold);
  font-size: 0.95rem;
  letter-spacing: 1px;
}

/* ============ 页脚 ============ */
footer {
  background: var(--secondary-bg);
  border-top: 1px solid var(--border-color);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--secondary-text);
  position: relative;
  min-height: 100vh;
  height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  opacity: 0.3;
}

footer a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: var(--transition);
  letter-spacing: 1px;
}

footer a:hover {
  color: var(--accent-gold-light);
  text-shadow: 0 0 10px rgba(212, 165, 116, 0.5);
}

/* ============ 提示框 ============ */
.alerts-container {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 1500;
}

.alert {
  background: rgba(26, 26, 26, 0.95);
  border-left: 4px solid;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  color: var(--primary-text);
}

.alert-success {
  border-color: #4caf50;
}

.alert-error {
  border-color: #f44336;
}

.alert-warning {
  border-color: #ff9800;
}

.alert-info {
  border-color: var(--accent-gold);
}

/* ============ 动画 ============ */
@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroSubtitleFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes playButtonFloat {
  0%, 100% {
    transform: translateY(-50%) translateX(0);
  }
  50% {
    transform: translateY(-50%) translateX(-10px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.8;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ============ 平台特定优化 ============ */

/* iOS特定优化 */
.os-ios {
  -webkit-overflow-scrolling: touch; /* 流畅滚动 */
}

.os-ios input,
.os-ios textarea,
.os-ios select {
  -webkit-appearance: none; /* 移除iOS默认样式 */
  border-radius: 0;
}

/* 微信浏览器优化 */
.in-wechat {
  /* 微信浏览器特殊处理 */
}

.in-wechat video {
  object-fit: contain; /* 微信视频显示优化 */
}

/* Android特定优化 */
.os-android {
  /* Android特定样式 */
}

/* 鸿蒙系统优化 */
.os-harmonyos {
  /* 鸿蒙特定样式 */
}

/* 触摸设备优化 */
.touch-device button,
.touch-device a {
  min-height: 44px; /* Apple推荐的最小触摸区域 */
  min-width: 44px;
}

/* 平板设备优化 */
.is-tablet .members-layout {
  grid-template-columns: 400px 1fr;
}

/* ============ 响应式设计 ============ */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 4.5rem;
  }
  
  .play-video-btn {
    right: 5%;
    width: 80px;
    height: 80px;
  }
  
  .play-icon {
    width: 30px;
    height: 30px;
  }

  .carousel-track-container {
    border: 1px solid var(--accent-gold);
  }
}

@media (max-width: 768px) {
  /* 导航栏优化 */
  .nav-container {
    padding: 0 1.5rem;
    height: 60px;
  }

  .nav-logo img {
    height: 35px;
  }

  .nav-link {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
    height: 60px;
  }

  /* 移动端菜单按钮 */
  .mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 18px;
    height: 14px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    margin: 0;
  }

  .mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--accent-gold);
    border-radius: 1px;
    transition: var(--transition);
  }

  .mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(6.25px) rotate(45deg);
  }

  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-6.25px) rotate(-45deg);
  }

  /* 移动端菜单 */
  .nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem 0;
    gap: 0;
    border-top: 1px solid var(--border-color);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    height: auto;
    padding: 1rem 2rem;
    justify-content: flex-start;
    border-left: 3px solid transparent;
    font-size: 1.1rem;
  }

  .nav-link::before {
    display: none;
  }

  .nav-link.active {
    border-left-color: var(--accent-gold);
    background: rgba(212, 165, 116, 0.1);
  }

  /* Hero区域优化 */
  .hero-title {
    font-size: 2.8rem;
    letter-spacing: 3px;
    padding: 0 1rem;
  }

  .hero-title::before,
  .hero-title::after {
    font-size: 1.2rem;
  }

  .hero-title::before {
    left: -1.5rem;
  }

  .hero-title::after {
    right: -1.5rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    letter-spacing: 2px;
    padding: 0 1rem;
  }

  /* 视频播放按钮 - 移动端优化 */
  .play-video-btn {
    width: 55px;
    height: 55px;
    right: 5%;
    bottom: 15%;
    top: auto;
    transform: none;
  }

  .play-video-btn:hover {
    transform: scale(1.05);
  }

  .play-icon {
    width: 22px;
    height: 22px;
  }

  .play-text {
    font-size: 0.55rem;
  }

  /* 下滑提示 */
  .scroll-hint {
    bottom: 8%;
  }

  .scroll-hint img {
    width: 120px;
  }

  /* 移动端禁用滚动吸附 */
  body.snap-scroll {
    scroll-snap-type: none;
    overflow-y: auto;
    height: auto;
  }

  .hero,
  .snap-section {
    scroll-snap-align: none;
    min-height: auto;
    height: auto;
    max-height: none;
  }

  .hero {
    min-height: 100vh;
  }

  footer {
    min-height: auto;
    height: auto;
  }

  /* 区域优化 */
  .section {
    padding: 3rem 1rem;
  }

  .snap-section {
    padding: 3rem 1rem;
  }

  .section-title {
    font-size: 1.8rem;
    letter-spacing: 2px;
    padding-bottom: 0.5rem;
  }

  .section-subtitle {
    font-size: 0.9rem;
    margin-bottom: 2rem;
  }

  /* 轮播图移动端优化 */
  .showcase-carousel {
    gap: 0.5rem;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }

  .carousel-btn svg {
    width: 20px;
    height: 20px;
  }

  .carousel-item img {
    height: 400px;
  }

  .carousel-title {
    font-size: 1rem;
    padding: 1rem;
  }

  .carousel-indicators {
    gap: 8px;
    margin-top: 1rem;
  }

  .indicator {
    width: 10px;
    height: 10px;
  }

  /* 卡片布局 */
  .grid {
    gap: 1.5rem;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 1.5rem;
  }

  /* 按钮优化 */
  .btn {
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
    letter-spacing: 1px;
  }

  /* 视频模态框移动端全屏 */
  .video-container {
    width: 95%;
    max-width: none;
  }

  .video-close {
    top: -45px;
    font-size: 2rem;
  }

  /* 活动卡片 */
  .activity-card {
    padding: 1.5rem;
  }

  .activity-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .activity-category {
    align-self: flex-start;
  }

  .activity-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  /* 筛选器 */
  .filters {
    flex-direction: column;
    gap: 0.8rem;
  }

  .filter-group {
    width: 100%;
    flex-wrap: wrap;
  }

  .filter-tag {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }

  /* 成员头像 */
  .member-avatar {
    font-size: 2.5rem;
  }

  .member-name {
    font-size: 1rem;
  }

  /* 音乐按钮 */
  .audio-btn {
    width: 45px;
    height: 45px;
    bottom: 1.5rem;
    right: 1.5rem;
  }

  .audio-btn i {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 480px) {
  /* 超小屏幕优化 */
  .nav-container {
    padding: 0 1rem;
    height: 55px;
  }

  .nav-logo img {
    height: 30px;
  }

  .nav-menu {
    top: 55px;
  }

  .nav-link {
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
  }

  .mobile-menu-btn {
    width: 16px;
    height: 12px;
    padding: 4px;
  }

  .mobile-menu-btn span {
    height: 1.5px;
  }

  .mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(5.25px) rotate(45deg);
  }

  .mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-5.25px) rotate(-45deg);
  }

  .hero-title {
    font-size: 2rem;
    letter-spacing: 2px;
  }

  .hero-title::before,
  .hero-title::after {
    font-size: 1rem;
    display: none; /* 超小屏幕隐藏装饰 */
  }

  .hero-subtitle {
    font-size: 0.8rem;
    letter-spacing: 1px;
  }

  .play-video-btn {
    width: 50px;
    height: 50px;
  }

  .play-icon {
    width: 20px;
    height: 20px;
  }

  .play-text {
    display: none; /* 超小屏幕隐藏文字 */
  }

  .scroll-hint img {
    width: 100px;
  }

  .section {
    padding: 2rem 1rem;
  }

  .section-title {
    font-size: 1.5rem;
    letter-spacing: 1px;
  }

  .section-subtitle {
    font-size: 0.85rem;
  }

  .carousel-btn {
    width: 35px;
    height: 35px;
  }

  .carousel-btn svg {
    width: 18px;
    height: 18px;
  }

  .carousel-item img {
    height: 300px;
  }

  .carousel-title {
    font-size: 0.9rem;
    padding: 0.8rem;
  }

  .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.85rem;
  }

  .activity-card {
    padding: 1.2rem;
  }

  .activity-title {
    font-size: 1.1rem;
  }

  .activity-category {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
  }

  .audio-btn {
    width: 40px;
    height: 40px;
    bottom: 1rem;
    right: 1rem;
  }

  .audio-btn i {
    width: 20px;
    height: 20px;
  }
}

/* 横屏模式优化 */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .play-video-btn {
    width: 50px;
    height: 50px;
  }

  .scroll-hint {
    display: none; /* 横屏隐藏下滑提示 */
  }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
  .card:hover {
    transform: none; /* 触摸设备禁用hover动画 */
  }

  .nav-link:hover::after {
    opacity: 0; /* 触摸设备禁用hover效果 */
  }

  .btn:hover::before {
    width: 0; /* 触摸设备禁用hover动画 */
  }
}

/* ============ 文本工具 ============ */
.text-center {
  text-align: center;
}

/* ============ 音乐控制按钮 ============ */
.audio-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: transparent;
  border: 2px solid rgba(200, 200, 200, 0.8);
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  transform: rotate(45deg); /* 旋转45度变成菱形 */
}

.audio-btn:hover {
  border-color: rgba(255, 255, 255, 1);
  transform: rotate(45deg) scale(1.08); /* 悬停时保持旋转并放大 */
}

.audio-btn i {
  width: 26px;
  height: 26px;
  position: relative;
  display: block;
  transform: rotate(-45deg); /* 反向旋转，保持图标正常显示 */
}

/* 旋转动画 */
@keyframes rotate {
  from {
    transform: rotate(-45deg);
  }
  to {
    transform: rotate(315deg); /* -45 + 360 = 315 */
  }
}

/* 音乐播放图标 - 灰白色音符，带旋转动画 */
.audio-btn[data-status="on"] i::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c8c8c8'%3E%3Cpath d='M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  animation: rotate 3s linear infinite;
}

/* 音乐关闭图标 - 灰白色音符带斜杠，无动画 */
.audio-btn[data-status="off"] i::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c8c8c8'%3E%3Cpath d='M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z'/%3E%3Cpath d='M4.27 3L3 4.27l16.73 16.73L21 19.73z' opacity='0.9'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.text-muted {
  color: var(--secondary-text);
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }

/* ============ 滚动条美化 ============ */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--primary-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-gold-dark);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}
