/* ===== CSS 重置和基础变量 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* 深色主题变量（默认） */
  --bg-primary: #121212;
  --bg-secondary: #1e1e1e;
  --bg-card: #252525;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --accent-color: #6c63ff;
  --accent-secondary: #8a84ff;
  --card-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  --header-bg: rgba(18, 18, 18, 0.95);
  --border-color: #333333;
  --dropdown-bg: #2a2a2a;
  --dropdown-hover: #333333;
  --button-primary: #6c63ff;
  --button-primary-hover: #5a52e0;
  --button-secondary: #2a2a2a;
  --button-secondary-hover: #3a3a3a;
  --modal-bg: #252525;
  --modal-header: #2a2a2a;
  --footer-bg: #0a0a0a;
  --card-bg-gradient-start: #2d2d3a;
  --card-bg-gradient-end: #1f1f2c;
  --overlay-bg: rgba(0, 0, 0, 0.7);
  --quick-link-bg: rgba(255, 255, 255, 0.1);
}

.light-theme {
  --bg-primary: #f8f8f8;
  --bg-secondary: #f0f0f0;
  --bg-card: #ffffff;
  --text-primary: #333333;
  --text-secondary: #666666;
  --card-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  --header-bg: rgba(248, 248, 248, 0.95);
  --border-color: #e0e0e0;
  --dropdown-bg: #ffffff;
  --dropdown-hover: #f5f5f5;
  --button-secondary: #e8e8e8;
  --button-secondary-hover: #d8d8d8;
  --modal-bg: #ffffff;
  --modal-header: #f5f5f5;
  --footer-bg: #f0f0f0;
  --card-bg-gradient-start: #ffffff;
  --card-bg-gradient-end: #f5f5f7;
  --overlay-bg: rgba(0, 0, 0, 0.5);
  --quick-link-bg: rgba(0, 0, 0, 0.05);
}

/* ===== 基础样式 ===== */
body {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* 滚动控制 */
body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ===== 布局组件 ===== */
.main-content {
  padding-top: 75px;
  margin: 0 auto;
  max-width: 800px;
  min-height: 100vh;
  overflow: visible;
}

/* ===== 主题切换按钮 ===== */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition:
    transform 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.2s ease;
  margin-left: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1001;
}

.theme-toggle:hover {
  transform: scale(1.1);
  background-color: var(--accent-secondary);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-toggle i {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.light-theme .theme-toggle {
  background-color: var(--accent-color);
  color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.light-theme .theme-toggle:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* 确保在移动设备上也能正确显示 */
@media (max-width: 768px) {
  .theme-toggle {
    width: 36px;
    height: 36px;
    margin-left: 10px;
  }

  .theme-toggle i {
    font-size: 16px;
  }
}

/* 确保在页眉中的正确位置 */
.header-right .theme-toggle {
  order: 1; /* 确保主题切换按钮在移动菜单按钮之前 */
}

/* ===== 头部导航 ===== */
.header {
  background-color: var(--header-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0.85;
  transition: background-color 0.3s ease;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo img {
  max-height: 50px;
}

/* 桌面导航 */
.main-nav .menu {
  display: flex;
}

.main-nav .menu > li {
  position: relative;
  margin-left: 30px;
}

.main-nav .menu > li > a {
  display: block;
  padding: 5px 0;
  font-weight: 500;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.main-nav .menu > li > a:hover {
  color: var(--accent-color);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--dropdown-bg);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1001;
  border-radius: 8px;
  overflow: hidden;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 10px 15px;
  color: var(--text-primary);
  transition: background-color 0.3s;
}

.dropdown-menu li a:hover {
  background-color: var(--dropdown-hover);
}

/* 移动导航 */
.header-right {
  display: flex;
  align-items: center;
}

.mobile-menu-toggle {
  font-size: 24px;
  cursor: pointer;
  color: var(--text-primary);
  margin-left: 15px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.mobile-menu-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.light-theme .mobile-menu-toggle:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background-color: var(--dropdown-bg);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 999;
  padding: 15px;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
  transform: translateY(-10px);
  opacity: 0;
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
}

.mobile-dropdown-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  cursor: pointer;
  color: var(--text-primary);
}

.mobile-dropdown-menu {
  padding-left: 15px;
  display: none;
}

.mobile-dropdown-menu.active {
  display: block;
}

.mobile-dropdown-menu li a {
  color: var(--text-secondary);
  padding: 8px 0;
  display: block;
}

/* ===== 媒体内容区域 ===== */
.media-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 500px;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.hero-slider {
  width: 100%;
  margin-bottom: 14px;
  border-radius: 0px;
  overflow: hidden;
  position: relative;
  margin-top: -16px;
}

.hero-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 500px;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background-color: #000;
}

/* 轮播图组件 - 增强版触摸滑动支持 */
.slider-container {
  width: 100%;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  touch-action: pan-y; /* 允许垂直滚动，但水平滑动会被捕获 */
  -webkit-user-select: none;
  user-select: none;
  max-height: 500px;
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.3s ease-out;
  will-change: transform; /* 优化性能 */
}

.slide {
  flex: 0 0 auto;
  position: relative;
  height: 100%;
  overflow: hidden;
}

.slide img,
.slider-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none; /* 防止图片被拖动 */
  pointer-events: none; /* 防止图片干扰触摸事件 */
}

.slider-controls {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.slider-container:hover .slider-controls {
  opacity: 0.8;
}

.slider-dots {
  display: flex;
  justify-content: center;
  margin: 0 15px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  margin: 0 5px;
  cursor: pointer;
  transition:
    background-color 0.3s,
    transform 0.2s;
}

.light-theme .dot {
  background-color: rgba(0, 0, 0, 0.2);
}

.dot.active {
  background-color: var(--accent-color);
  transform: scale(1.2);
}

.prev-slide,
.next-slide {
  background-color: rgba(0, 0, 0, 0.5);
  color: var(--text-primary);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition:
    background-color 0.3s,
    transform 0.2s;
}

.light-theme .prev-slide,
.light-theme .next-slide {
  background-color: rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

.prev-slide:hover,
.next-slide:hover {
  background-color: var(--accent-color);
  transform: scale(1.1);
}

/* 视频组件 */
.video-button-container {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.video-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.video-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.video-button i {
  margin-right: 10px;
  font-size: 24px;
}

.light-theme .video-button {
  background: rgba(255, 255, 255, 0.8);
  color: #333;
  border: 2px solid rgba(0, 0, 0, 0.1);
}

.light-theme .video-button:hover {
  background: rgba(255, 255, 255, 0.95);
}

/* ===== 快捷链接 ===== */
.quick-links-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  margin: 12px auto;
  max-width: 1200px;
  background: transparent;
  border-radius: 12px;
  border: none;
  box-shadow: none;
}

.quick-links-left,
.quick-links-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quick-links-left {
  justify-content: flex-start;
  flex: 0 0 auto;
}

.quick-links-right {
  justify-content: flex-end;
  flex: 1;
}

.quick-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 4px 6px;
  text-decoration: none;
  color: var(--text-primary, #1f2937);
  transition:
    color 0.2s ease,
    transform 0.2s ease;
  border-radius: 8px;
  margin: 0;
  min-width: 0;
  min-height: 0;
  background: transparent;
  border: none;
  gap: 6px;
}

.quick-link:hover {
  transform: translateY(-1px);
}

.light-theme .quick-link:hover {
  background: #eef1f5;
}

.quick-link-icon {
  font-size: 20px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 50%;
  color: var(--accent-color, var(--accent-secondary));
  box-shadow: none;
}

.light-theme .quick-link-icon {
  background: #ffffff;
}

.quick-link-label {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

/* ===== 卡片网格 ===== */
.content-section {
  padding: 24px 0 56px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.audio-container {
  grid-column: 1 / -1;
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
}

.black-audio {
  width: 80%;
  max-width: 500px;
  background-color: var(--bg-secondary);
  border-radius: 30px;
  padding: 5px 15px;
  transition: background-color 0.3s ease;
}

/* 卡片样式 */
.card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 0 22px rgba(146, 146, 146, 0.18); /* 核心修改：四周均匀柔雾阴影 */
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 0 22px rgb(162 162 162 / 46%);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.light-theme .card:hover {
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
}

.card-icon {
  padding: 16px 18px 0;
  display: flex;
  justify-content: flex-start;
}

.card-icon img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(15, 23, 42, 0.12));
}

.light-theme .card-icon img {
  filter: drop-shadow(0 6px 10px rgba(15, 23, 42, 0.12));
}

.card-content {
  padding: 10px 18px 18px;
  flex-grow: 1;
}

.card--media .card-content {
  padding: 0;
}

.card-content h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
  color: #0f172a;
  text-align: left;
  letter-spacing: 0.2px;
}

.card-content p {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.55;
  text-align: left;
}

.card-media-wrap {
  width: 100%;
  position: relative;
  height: 0;
  padding-top: 56.25%;
  aspect-ratio: 16 / 9;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
}

.card--media .card-media-wrap {
  border-radius: 0;
  height: auto;
  padding-top: 0;
  aspect-ratio: auto;
}

.card-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.card--media .card-media {
  position: static;
  height: auto;
  object-fit: contain;
}

@supports (aspect-ratio: 16 / 9) {
  .card-media-wrap {
    height: auto;
    padding-top: 0;
  }
}

.card-link {
  padding: 12px 18px;
  background-color: #f8fafc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.card-link:hover {
  background-color: #eef2f7;
}

.card-link span {
  font-weight: 600;
  color: var(--accent-secondary);
}

.card-link i {
  color: var(--accent-secondary);
  transition: transform 0.2s ease;
}

.card-link:hover i {
  transform: translateX(4px);
}

/* Font Awesome 图标样式 */
.card-icon .fa-icon {
  font-size: 1.6rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-secondary);

  border-radius: 16px;
}

/* ===== 按钮样式 ===== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.btn:before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.5s;
}

.btn:hover:before {
  opacity: 1;
  animation: shine 1.5s ease;
}

@keyframes shine {
  0% {
    left: -50%;
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    left: 150%;
    opacity: 0;
  }
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--button-primary),
    var(--accent-secondary)
  );
  color: var(--text-primary);
}

.light-theme .btn-primary {
  color: #ffffff;
}

.btn-primary:hover {
  background: linear-gradient(
    135deg,
    var(--accent-secondary),
    var(--button-primary)
  );
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(108, 99, 255, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--button-secondary), #3d3d4d);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.light-theme .btn-secondary {
  background: linear-gradient(135deg, var(--button-secondary), #e0e0e0);
  color: #333333;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #3d3d4d, var(--button-secondary));
  transform: translateY(-2px);
}

.light-theme .btn-secondary:hover {
  background: linear-gradient(135deg, #e0e0e0, var(--button-secondary));
}

/* ===== CTA 区域 ===== */
.cta-section {
  padding: 60px 0;
  background-color: var(--bg-secondary);
  text-align: center;
  border-radius: 16px;
  margin: 0 15px 30px;
  transition: background-color 0.3s ease;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* ===== 模态框系统 ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
}

.modal.active {
  display: block;
}

.modal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  z-index: 1000;
}

.modal-content {
  background-color: var(--modal-bg);
  width: 90%;
  max-width: 800px;
  min-height: 300px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  position: relative;
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: auto;
  transition: background-color 0.3s ease;
}

.light-theme .modal-content {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.modal-header {
  padding: 0 20px 0 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--modal-header);
  transition: background-color 0.3s ease;
  min-height: 32px;
}

.modal-header h3 {
  margin: 0;
  font-size: 15px;
  color: var(--text-primary);
}

.close-modal {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.3s;
}

.close-modal:hover {
  color: var(--accent-color);
}

.modal-body {
  padding: 0 20px 0 20px;
  color: var(--text-secondary);
  flex: 1;
  transition: color 0.3s ease;
  white-space: pre-line;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.8;
}

.modal-body p {
  margin-bottom: 16px;
}

.modal-body ul,
.modal-body ol {
  margin-left: 20px;
  margin-bottom: 16px;
}

.modal-body li {
  margin-bottom: 8px;
}

.modal-image {
  margin-top: 20px;
}

.modal-image img {
  max-width: 100%;
  border-radius: 8px;
}

/* 模态框底部和按钮样式 */
.modal-footer {
  margin-top: 0px;
  text-align: center;
  padding-top: 0px;
  border-top: 1px solid var(--border-color);
}

/* 模态框详情按钮 */
.modal-details-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 40px;
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--accent-secondary)
  );
  color: #ffffff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(108, 99, 255, 0.25);
  border: none;
  cursor: pointer;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  margin-bottom: 25px;
}

.modal-details-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(108, 99, 255, 0.4);
}

.modal-details-btn:active {
  transform: translateY(-1px);
}

.modal-details-btn span {
  margin-right: 10px;
  font-weight: 500;
}

.modal-details-btn i {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.modal-details-btn:hover i {
  transform: translateX(4px);
}

.modal-details-btn:before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.5s;
}

.modal-details-btn:hover:before {
  opacity: 1;
  animation: shine 1.5s ease;
}

/* 适应深色和浅色主题 */
.light-theme .modal-footer {
  border-top-color: rgba(0, 0, 0, 0.1);
}

.light-theme .modal-details-btn {
  box-shadow: 0 6px 15px rgba(108, 99, 255, 0.15);
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--overlay-bg);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 999;
  transition: background-color 0.3s ease;
}

.overlay.active {
  display: block;
}

/* ===== 二维码模态框 ===== */
.qrcode-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.qrcode-modal.active {
  opacity: 1;
}

.qrcode-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  position: relative;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.qrcode-close {
  position: absolute;
  right: 15px;
  top: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

.qrcode-close:hover {
  color: var(--accent-color);
}

.qrcode-content h3 {
  margin-bottom: 20px;
  color: #333;
}

.qrcode-image {
  margin: 20px auto;
  max-width: 200px;
}

.qrcode-image img {
  width: 100%;
  height: auto;
  display: block;
}

.qrcode-content p {
  color: #666;
  margin-top: 15px;
}

/* ===== 海报模态框 ===== */
.poster-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px;
}

.poster-modal.active {
  opacity: 1;
  display: flex;
}

.poster-content {
  background: var(--modal-bg);
  padding: 25px;
  border-radius: 16px;
  width: 90%;
  max-width: 460px;
  position: relative;
  transform: translateY(20px);
  transition:
    transform 0.3s ease,
    background-color 0.3s;
  margin: auto;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
}

.light-theme .poster-content {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.poster-modal.active .poster-content {
  transform: translateY(0);
}

.poster-modal-title {
  text-align: center;
  margin: 0 0 0px;
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 600;
  opacity: 0;
}

.poster-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  aspect-ratio: 9/16;
  margin-bottom: 20px;
}

.poster-close {
  position: absolute;
  right: 15px;
  top: 15px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  z-index: 10;
  transition: all 0.3s ease;
}

.poster-close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.light-theme .poster-close {
  background: rgba(0, 0, 0, 0.05);
}

.light-theme .poster-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.poster-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 调整标题位置到中间 */
.poster-meta {
  position: absolute;
  top: 20%;
  left: 0;
  right: 0;
  text-align: center;
  padding: 0 20px;
  z-index: 5;
}

.poster-title {
  text-align: center;
  margin: 0 0 10px;
  font-size: 28px;
  color: #000;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
  line-height: 1.3;
}

.poster-subtitle {
  text-align: center;
  margin: 0;
  color: #000;
  font-size: 18px;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* 修改：将logo浮动在海报图上部中间位置 */
.poster-logo {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 5;
}

.poster-logo img {
  max-width: 120px;
  height: auto;
  background: rgba(255, 255, 255, 0.7);
  padding: 5px;
  border-radius: 5px;
}

/* 左下角微信二维码 */
.poster-wechat-qrcode {
  position: absolute;
  bottom: 30px;
  left: 30px;
  background: rgba(255, 255, 255, 0.95);
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  z-index: 5;
  width: 120px;
}

.poster-qrcode {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.qrcode-text {
  margin: 8px 0 0;
  font-size: 12px;
  color: #333;
  text-align: center;
  line-height: 1.2;
}

/* 按钮样式优化 */
.poster-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.poster-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: var(--button-secondary);
  color: var(--text-primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.poster-action-btn.primary {
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--accent-secondary)
  );
  color: #fff;
}

.poster-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.poster-action-btn:active {
  transform: translateY(0);
}

.poster-action-btn i {
  margin-right: 8px;
  font-size: 16px;
}

/* 预览图片样式 */
.poster-preview {
  width: 100%;
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.poster-preview img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

/* 生成中覆盖层样式 */
.generating-poster {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  border-radius: 16px;
  z-index: 20;
  backdrop-filter: blur(5px);
}

.generating-poster.active {
  display: flex;
}

.generating-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.generating-poster p {
  font-size: 16px;
  margin: 0;
  text-align: center;
}

/* ===== 页脚 ===== */
.footer {
  background-color: var(--footer-bg);
  color: var(--text-secondary);
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

/* ===== 图标样式补充 ===== */
.fa-weixin:before {
  content: "\f1d7";
}

/* ===== 响应式设计 ===== */
@media (max-width: 992px) {
  .slider-container {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 768px) {
  .quick-links-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
  }
  .main-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .slider-container {
    aspect-ratio: 3 / 2;
  }

  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .quick-links-container {
    padding: 8px 10px;
    margin: 10px 8px;
  }

  .quick-link {
    padding: 4px 6px;
    min-width: 0;
    min-height: 0;
  }

  .quick-link-icon {
    font-size: 18px;
    width: 26px;
    height: 26px;
  }

  .quick-link-label {
    font-size: 11px;
  }

  /* 海报模态框响应式 */
  .poster-content {
    padding: 20px;
    width: 95%;
  }

  .poster-title {
    font-size: 24px;
  }

  .poster-subtitle {
    font-size: 16px;
  }

  .poster-wechat-qrcode {
    bottom: 20px;
    left: 20px;
    width: 100px;
    padding: 8px;
  }
}

@media (max-width: 576px) {
  .quick-links-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }
  .slider-container {
    aspect-ratio: 1 / 1;
  }

  .prev-slide,
  .next-slide {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .dot {
    width: 8px;
    height: 8px;
  }

  .modal-content {
    width: 95%;
  }

  .video-button {
    padding: 12px 25px;
    font-size: 16px;
  }

  .video-button i {
    font-size: 20px;
  }

  .quick-links-container {
    padding: 6px 8px;
  }

  .quick-link {
    padding: 4px 5px;
    min-width: 0;
    min-height: 0;
  }

  .quick-link-icon {
    font-size: 17px;
    width: 24px;
    height: 24px;
  }

  .quick-link-label {
    font-size: 11px;
  }

  /* 海报模态框更小屏幕响应式 */
  .poster-content {
    padding: 15px;
  }

  .poster-close {
    right: 10px;
    top: 10px;
    font-size: 20px;
  }

  .poster-meta {
    top: 30px;
  }

  .poster-title {
    font-size: 22px;
  }

  .poster-subtitle {
    font-size: 14px;
  }

  .poster-wechat-qrcode {
    width: 90px;
    padding: 6px;
    bottom: 15px;
    left: 15px;
  }

  .poster-action-btn {
    padding: 10px 18px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .poster-actions {
    flex-direction: column;
  }

  .poster-action-btn {
    width: 100%;
    justify-content: center;
  }
}

.modal-body img {
  /* 图片最大宽度不超过容器宽度 */
  max-width: 100%;
  /* 高度自动计算，保持宽高比例，防止变形 */
  height: auto;
  /* 可选：添加一些边距让图片与容器有间距 */
  margin: 0 auto;
  /* 可选：确保图片不会超出容器（如果容器有padding等） */
  display: block;
  margin-top: 0px;
  margin-bottom: 0px;
}

.bold-text {
  font-weight: bold;
  color: var(--text-primary);
}

.modal-body p {
  margin-bottom: 2.5em;
}

/* 调整快捷链接布局 - 更紧凑的设计 */
.quick-links-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  margin-bottom: 15px;
  flex-wrap: nowrap; /* 防止换行 */
}

/* 左侧按钮容器 */
.quick-links-left {
  display: flex;
  gap: 8px; /* 减小间距 */
  flex: 0 0 auto; /* 不伸缩，保持原始大小 */
  margin-right: 5px; /* 与右侧保持一点间距 */
}

/* 右侧按钮容器 */
.quick-links-right {
  display: flex;
  gap: 8px; /* 减小间距 */
  flex: 1; /* 允许伸缩 */
  justify-content: flex-end; /* 右对齐 */
  overflow-x: auto; /* 如果实在放不下，允许横向滚动 */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

/* 隐藏滚动条但保留功能 */
.quick-links-right::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* 调整每个链接按钮的大小 */
.quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-color);
  min-width: 50px; /* 最小宽度 */
  max-width: 60px; /* 最大宽度 */
  padding: 5px 2px; /* 减小内边距 */
}

/* 图标容器 */
.quick-link-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 4px;
  font-size: 18px;
}

/* 标签文字 */
.quick-link-label {
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  padding: 2px;
}

/* 视频号二维码模态框样式（原有样式） */
.qrcode-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.qrcode-modal.active {
  opacity: 1;
}

.qrcode-content {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  position: relative;
  width: 80%;
  max-width: 320px;
  text-align: center;
}

.qrcode-close {
  position: absolute;
  top: 5px;
  right: 10px;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

/* 企业微信二维码模态框样式 - 新的样式 */
.wechat-qrcode-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.wechat-qrcode-modal.active {
  opacity: 1;
}

.wechat-qrcode-content {
  background: linear-gradient(135deg, #2b80ff 0%, #1a5fcc 100%);
  padding: 0;
  border-radius: 15px;
  width: 85%;
  max-width: 300px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.wechat-qrcode-header {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.wechat-qrcode-header h3 {
  margin: 0;
  color: white;
  font-size: 18px;
  font-weight: 600;
}

.wechat-qrcode-close {
  font-size: 24px;
  cursor: pointer;
  color: white;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.wechat-qrcode-close:hover {
  opacity: 1;
}

.wechat-qrcode-body {
  padding: 25px 20px;
  text-align: center;
}

.wechat-qrcode-image {
  background-color: white;
  padding: 15px;
  border-radius: 10px;
  display: inline-block;
  margin-bottom: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.wechat-qrcode-image img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wechat-qrcode-tip {
  color: white;
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
}

/* 确保二维码图片清晰可见 */
.qrcode-image {
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.qrcode-image img {
  max-width: 100%;
  height: auto;
}

/* 移动端适配 */
@media (max-width: 375px) {
  /* 针对较小屏幕的iPhone */
  .quick-link-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .quick-link-label {
    font-size: 11px;
  }

  .quick-link {
    min-width: 45px;
    max-width: 55px;
  }

  .wechat-qrcode-content {
    width: 90%;
    max-width: 280px;
  }
}

.slider-container {
  margin-top: 5px !important;
}

ul {
  list-style: none;
  line-height: 2em;
  /* font-weight: 700; */
}
