/* ==================== 首页样式 ==================== */
body {
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
  padding-top: 40px;
  padding-bottom: 40px;
  font-family: "Microsoft YaHei", sans-serif;
  min-height: 100vh;
}

/* 背景视频 */
#bgVideoContainer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background: #000;
}
#bgVideo {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.7;
}

/* 保留旧的背景层样式以兼容 */
.bg-layer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  z-index: -1;
  transition: opacity 1.5s ease-in-out;
}
.bg-layer.active {
  opacity: var(--bg-opacity, 0.3);
}

.main-title {
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(to right, #bf953f, #fcf6b5, #b38728, #fbf5b7, #aa771c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}
.subtitle {
  color: var(--subtitle-color, #ffffff);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 40px;
  padding: 8px 20px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  display: inline-block;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: visible;
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}
.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.media-section {
  margin-top: 0;
}
.media-section .row > .col-md-6 {
  display: flex;
  flex-direction: column;
}
.media-section .row > .col-md-6 > * {
  flex: 1;
}

.icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  margin: -30px auto 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
  border: 4px solid #fff;
}

.tip-text {
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 25px;
  text-align: center;
  font-weight: 500;
  background: #e9ecef;
  padding: 8px;
  border-radius: 6px;
  display: inline-block;
}

.download-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: #333;
  text-decoration: none;
  border-radius: 6px;
  margin-bottom: 4px;
  transition: all 0.25s ease;
  border: 1px solid #dee2e6;
  font-size: 0.85rem;
}
.download-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 100px;
  max-height: 100px;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}
.download-list::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Opera */
}
.download-list .text-muted.py-3 {
  padding: 8px 0 !important;
  font-size: 0.8rem;
}
.download-list a:hover {
  background: linear-gradient(135deg, #e7f1ff 0%, #cfe2ff 100%);
  border-color: #0d6efd;
  color: #0d6efd;
  transform: translateX(3px);
  box-shadow: 0 2px 8px rgba(13, 110, 253, 0.15);
}
.download-list .file-icon {
  font-size: 1rem;
  margin-right: 6px;
}
.download-list .file-name {
  flex-grow: 1;
  font-weight: 500;
}
.download-list .file-size {
  font-size: 0.75rem;
  color: #999;
  margin-left: 6px;
}
.download-list .download-icon {
  color: #0d6efd;
}

.section-divider {
  border-top: 1px dashed #dee2e6;
  margin: 10px 0;
}
.section-label {
  font-size: 0.9rem;
  font-weight: bold;
  color: #495057;
  margin-bottom: 15px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.media-label {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  margin-bottom: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.media-label-wrapper {
  margin-bottom: 8px;
  text-align: center;
}
.media-label {
  text-align: center;
  display: inline-block;
}

.media-container {
  height: 200px;
}
.media-container > div {
  height: 100%;
}
.carousel {
  height: 100%;
}
.carousel-inner {
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}
.carousel-item {
  height: 100%;
}
.carousel-item img {
  height: 100%;
  object-fit: contain;
  width: 100%;
  cursor: pointer;
  transition: transform 0.2s;
}
.carousel-item img:hover {
  transform: scale(1.02);
}

.local-video {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: contain;
  background: #000;
}
.video-container {
  border-radius: 10px;
  overflow: hidden;
  height: 100%;
}
.video-container video {
  max-height: 100%;
  max-width: 100%;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.no-media {
  background: #f8f9fa;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.9rem;
  border: 1px dashed #dee2e6;
}

.admin-link {
  display: none;
}

/* 图片预览模态框 */
.image-preview-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  cursor: zoom-out;
}
.image-preview-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-preview-modal img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}
.image-preview-modal .close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  opacity: 0.7;
}
.image-preview-modal .close-btn:hover {
  opacity: 1;
}
.image-preview-modal .nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 50px;
  cursor: pointer;
  opacity: 0.5;
  padding: 20px;
  user-select: none;
}
.image-preview-modal .nav-btn:hover {
  opacity: 1;
}
.image-preview-modal .nav-btn.prev {
  left: 20px;
}
.image-preview-modal .nav-btn.next {
  right: 20px;
}
