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

html, body {
  width: 100%;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #f6f7f9;
  color: #101828;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

.hidden {
  display: none !important;
}

/* ========== 加载 & 错误状态 ========== */
.status {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  color: #667085;
  font-size: 15px;
  text-align: center;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e4e7ec;
  border-top-color: #8c1d1d;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

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

.status.error {
  color: #b42318;
}

.retry-btn {
  margin-top: 16px;
  padding: 10px 32px;
  color: #fff;
  font-size: 15px;
  background: #8c1d1d;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.retry-btn:active {
  background: #6a1616;
}

/* ========== 主内容 ========== */
.content {
  padding: 0 0 32px;
}

/* ========== 封面区 ========== */
.cover-section {
  margin-bottom: 20px;
}

.cover-image {
  width: 100%;
  display: block;
}

/* ========== 标题区 ========== */
.header {
  padding: 0 16px;
  margin-bottom: 24px;
}

.title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  color: #8c1d1d;
  word-break: break-word;
}

.desc {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.7;
  color: #667085;
  word-break: break-word;
}

/* ========== 板块标签 ========== */
.section-label {
  display: inline-block;
  padding: 4px 12px;
  margin: 0 16px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #8c1d1d 0%, #c82d2d 100%);
  border-radius: 20px;
}

/* ========== 文字内容区 ========== */
.text-section {
  margin-bottom: 24px;
}

.text-content {
  margin: 0 16px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
  font-size: 15px;
  line-height: 1.85;
  color: #344054;
  word-break: break-word;
}

.text-content p {
  margin-bottom: 14px;
  text-align: justify;
}

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

.text-content strong {
  color: #8c1d1d;
  font-weight: 600;
}

/* ========== 视频区 ========== */
.video-section {
  margin-bottom: 24px;
}

.video-player {
  width: calc(100% - 32px);
  margin: 0 16px;
  max-height: 56vw;
  border-radius: 12px;
  background: #000;
  object-fit: contain;
}

/* iframe视频（B站等） */
.iframe-video-wrapper {
  position: relative;
  width: calc(100% - 32px);
  margin: 0 16px;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.iframe-video-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-caption {
  margin: 8px 16px 0;
  font-size: 13px;
  color: #98a2b3;
  text-align: center;
}

/* ========== 图片区 ========== */
.images-section {
  margin-bottom: 24px;
}

.images-grid {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.image-item {
  width: 100%;
  border-radius: 12px;
  background: #e4e7ec;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.08);
}

.image-item:active {
  opacity: 0.85;
  transform: scale(0.98);
}

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

/* ========== 音频区 ========== */
.audio-section {
  margin-bottom: 24px;
}

.audio-card {
  margin: 0 16px;
  padding: 18px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

.audio-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.audio-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #8c1d1d 0%, #c82d2d 100%);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.audio-icon:active {
  transform: scale(0.95);
}

.audio-text {
  flex: 1;
  min-width: 0;
}

.audio-name {
  font-size: 15px;
  font-weight: 600;
  color: #344054;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audio-time {
  margin-top: 4px;
  font-size: 13px;
  color: #98a2b3;
}

.audio-progress {
  margin-top: 14px;
  height: 4px;
  background: #e4e7ec;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.audio-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #8c1d1d 0%, #c82d2d 100%);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}

/* ========== 参观信息区 ========== */
.info-section {
  margin-bottom: 24px;
}

.info-card {
  margin: 0 16px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

.info-item {
  display: flex;
  margin-bottom: 14px;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-label {
  flex-shrink: 0;
  width: 70px;
  font-size: 14px;
  font-weight: 600;
  color: #8c1d1d;
}

.info-value {
  flex: 1;
  font-size: 14px;
  color: #344054;
  line-height: 1.6;
}

/* ========== 页脚 ========== */
.footer {
  padding: 0 16px;
  text-align: center;
  color: #98a2b3;
  font-size: 13px;
}

.footer p {
  margin-bottom: 6px;
}

.footer a {
  color: #8c1d1d;
  text-decoration: none;
}

/* ========== 图片预览 ========== */
.image-preview {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.image-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ========== 微信兼容 ========== */
/* 防止iOS微信中页面弹性滚动 */
body {
  position: fixed;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#app {
  min-height: 100%;
}
