/* 长征3D课件 - 深色红金主题样式 */

:root {
  --bg-dark: #0a0e17;
  --bg-panel: rgba(13, 18, 30, 0.92);
  --bg-panel-solid: #0d121e;
  --border-color: rgba(201, 162, 39, 0.35);
  --red-main: #d32f2f;
  --red-deep: #b71c1c;
  --red-glow: rgba(211, 47, 47, 0.45);
  --gold: #c9a227;
  --gold-light: #f0d878;
  --text-main: #f0f0f0;
  --text-muted: #9aa3b2;
  --beige-bg: #f5f0e1;
  --beige-dark: #e8e0c8;
  --beige-text: #3d3424;
  --radius: 6px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
}

/* 顶部标题栏 */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: linear-gradient(180deg, rgba(10,14,23,0.98) 0%, rgba(10,14,23,0.85) 100%);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1000;
}

.top-bar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--gold);
  min-width: 0;
}

.top-bar .brand .brand-text {
  white-space: nowrap;
}

.breadcrumb {
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid rgba(201,162,39,0.3);
  font-size: 13px;
  color: var(--text-muted);
  display: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.breadcrumb.show {
  display: inline-block;
}

.breadcrumb strong {
  color: var(--gold-light);
  font-weight: 500;
}

.top-bar .brand .logo-placeholder {
  width: 32px;
  height: 32px;
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--gold);
}

.top-bar .title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 20px;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.top-bar .actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(201,162,39,0.3);
  background: rgba(13,18,30,0.6);
  color: var(--gold);
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: rgba(211,47,47,0.25);
  border-color: var(--red-main);
  color: var(--gold-light);
}

.icon-btn.user-menu {
  width: auto;
  padding: 0 10px;
  font-size: 12px;
  letter-spacing: 1px;
}

/* 主视口容器 */
#cesiumContainer {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 100px;
  z-index: 1;
}

/* Cesium 地图滤镜：彩色模式（2D/节点/3D 均为彩色，与高德底图一致） */
.map-antique .cesium-widget canvas {
  filter: none;
}

/* 右上角工具条 */
.map-toolbar {
  position: fixed;
  top: 72px;
  right: 180px;
  z-index: 100;
  display: flex;
  gap: 8px;
  background: var(--bg-panel);
  padding: 6px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
}

.toolbar-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,162,39,0.2);
  color: var(--text-main);
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.toolbar-btn:hover {
  background: rgba(211,47,47,0.25);
  border-color: var(--red-main);
}

.toolbar-btn.active {
  background: rgba(211,47,47,0.45);
  border-color: var(--red-main);
  color: #fff;
}

.toolbar-btn .icon {
  font-size: 14px;
}

/* 右侧图例面板 */
.legend-panel {
  position: fixed;
  top: 72px;
  right: 16px;
  width: 150px;
  z-index: 100;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.legend-header {
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  border-bottom: 1px solid rgba(201,162,39,0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.legend-body {
  padding: 10px 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--text-main);
}

.legend-symbol {
  width: 22px;
  height: 3px;
  border-radius: 2px;
  flex-shrink: 0;
}

.legend-symbol.red-arrow {
  background: var(--red-main);
  position: relative;
}

.legend-symbol.red-arrow::after {
  content: '';
  position: absolute;
  right: -4px;
  top: -3px;
  border: 4px solid transparent;
  border-left: 6px solid var(--red-main);
}

.legend-symbol.blue-arrow {
  background: #4a90e2;
  position: relative;
}

.legend-symbol.blue-arrow::after {
  content: '';
  position: absolute;
  right: -4px;
  top: -3px;
  border: 4px solid transparent;
  border-left: 6px solid #4a90e2;
}

.legend-symbol.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4a90e2;
}

/* 底部时间轴 */
.timeline-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(0deg, rgba(10,14,23,0.98) 0%, rgba(10,14,23,0.9) 100%);
  border-top: 1px solid var(--border-color);
  z-index: 100;
  display: flex;
  align-items: stretch;
}

.timeline-scroll-btn {
  width: 32px;
  background: rgba(13,18,30,0.95);
  border: none;
  border-right: 1px solid rgba(201,162,39,0.15);
  border-left: 1px solid rgba(201,162,39,0.15);
  color: var(--gold);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.timeline-scroll-btn:hover {
  background: rgba(211,47,47,0.25);
  color: #fff;
}

.timeline-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.timeline-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 4px;
}

.timeline-title {
  font-size: 14px;
  color: var(--gold);
  font-weight: 600;
}

.timeline-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.timeline-view-modes {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.mode-btn {
  padding: 4px 10px;
  font-size: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,162,39,0.25);
  color: var(--text-muted);
  border-radius: 4px;
  cursor: pointer;
}

.mode-btn:hover, .mode-btn.active {
  background: rgba(211,47,47,0.35);
  border-color: var(--red-main);
  color: #fff;
}

.timeline-scroll {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 12px;
  scroll-behavior: smooth;
}

.timeline-track {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: max-content;
  height: 100%;
  padding-top: 8px;
  position: relative;
}

.timeline-track::before {
  content: '';
  position: absolute;
  top: 19px;
  left: 28px;
  right: 28px;
  height: 2px;
  background: linear-gradient(90deg, rgba(201,162,39,0.4), rgba(211,47,47,0.6), rgba(201,162,39,0.4));
  z-index: 0;
}

.timeline-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
  padding: 0 6px;
  cursor: pointer;
  z-index: 1;
  transition: transform 0.2s ease;
}

.timeline-node:hover {
  transform: translateY(-2px);
}

.timeline-node.active::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background: var(--red-main);
  box-shadow: 0 0 8px var(--red-glow);
  z-index: -1;
}

.node-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(201,162,39,0.4);
  border: 2px solid var(--border-color);
  transition: all 0.2s ease;
}

.timeline-node.active .node-dot,
.timeline-node:hover .node-dot {
  background: var(--red-main);
  border-color: var(--gold-light);
  box-shadow: 0 0 12px var(--red-glow);
  transform: scale(1.15);
}

.node-label {
  margin-top: 7px;
  font-size: 12px;
  color: var(--text-main);
  text-align: center;
  font-weight: 500;
  transition: color 0.2s ease;
}

.node-date {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

.timeline-node.active .node-label {
  color: var(--gold-light);
}

.timeline-node.active .node-date {
  color: var(--gold);
}

/* 节点类型颜色 */
.node-dot.type-start { background: #d4af37; }
.node-dot.type-battle { background: #d32f2f; }
.node-dot.type-meeting { background: #9c27b0; }
.node-dot.type-nature { background: #4caf50; }

/* 详情 / 数字档案编辑器：全屏覆盖 */
.detail-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--beige-bg);
  z-index: 2000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.detail-overlay.show {
  display: block;
  opacity: 1;
}

.detail-overlay.show ~ .right-tabs {
  display: none;
}

.detail-window {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--beige-bg);
  border-radius: 0;
  display: flex;
  overflow: hidden;
  color: var(--beige-text);
  transform: translateY(20px);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.detail-overlay.show .detail-window {
  transform: translateY(0);
}

/* 详情面板打开时标签依然浮于面板之上，便于切换效果/详情 */
.right-tabs {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 620;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.right-tab {
  pointer-events: auto;
  writing-mode: vertical-rl;
  text-orientation: upright;
  padding: 16px 9px;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-right: none;
  border-radius: 8px 0 0 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 2px;
  box-shadow: -4px 0 18px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.right-tab:hover {
  color: var(--gold-light);
  background: rgba(13, 18, 30, 0.98);
  border-color: var(--gold);
}

.right-tab.active {
  background: linear-gradient(180deg, var(--red-main), var(--red-deep));
  border-color: var(--red-main);
  color: #fff;
  box-shadow: -4px 0 18px rgba(211, 47, 47, 0.35);
}

/* 右侧详情/效果预览小卡片（与 right-tabs 中的“详情”标签对齐） */
.event-preview-card {
  position: fixed;
  top: 50%;
  right: 52px;
  width: 300px;
  max-height: 52vh;
  overflow-y: auto;
  z-index: 600;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
  padding: 16px;
  color: var(--text-main);
  display: none;
  opacity: 0;
  transform: translateY(-50%) translateX(20px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.event-preview-card.show {
  display: block;
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.preview-scroll {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.preview-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 24px;
  height: 24px;
  line-height: 22px;
  text-align: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(201,162,39,0.25);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preview-close:hover {
  background: var(--red-main);
  border-color: var(--red-main);
  color: #fff;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-right: 24px;
}

.preview-type {
  display: inline-block;
  padding: 3px 8px;
  background: rgba(211, 47, 47, 0.25);
  border: 1px solid rgba(211, 47, 47, 0.5);
  border-radius: 4px;
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 600;
}

.preview-date {
  font-size: 12px;
  color: var(--text-muted);
}

.preview-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.preview-summary {
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.preview-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(201,162,39,0.15);
}

.preview-thumb {
  width: 100%;
  height: 120px;
  margin-bottom: 10px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(201,162,39,0.2);
  display: none;
}

.preview-thumb.show {
  display: block;
}

.preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.preview-action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 0;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(201,162,39,0.35);
  border-radius: 6px;
  color: var(--text-main);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preview-action:hover {
  background: rgba(201,162,39,0.18);
  border-color: var(--gold);
}

.preview-action.primary {
  background: linear-gradient(135deg, var(--red-main), var(--red-deep));
  border-color: transparent;
  color: #fff;
}

.preview-action.primary:hover {
  background: linear-gradient(135deg, #e03e3e, #c62828);
}

.preview-action .action-icon {
  font-size: 13px;
}

.preview-dropdown {
  position: relative;
}

.preview-dropdown .dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 110px;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.55);
  padding: 6px 0;
  display: none;
  opacity: 0;
  z-index: 1000;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.preview-dropdown.open .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.preview-dropdown .dropdown-item {
  padding: 8px 14px;
  font-size: 12px;
  color: var(--text-main);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.preview-dropdown .dropdown-item:hover {
  background: rgba(201,162,39,0.18);
  color: var(--gold-light);
}

.preview-effects {
  margin-bottom: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(201,162,39,0.15);
}

.preview-effects-title {
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
}

.effect-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.effect-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,162,39,0.18);
  border-radius: 6px;
}

.effect-row.active {
  background: rgba(211,47,47,0.15);
  border-color: rgba(211,47,47,0.5);
}

.effect-toggle {
  min-width: 70px;
  padding: 5px 10px;
  font-size: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(201,162,39,0.35);
  border-radius: 4px;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
}

.effect-toggle:hover {
  background: rgba(201,162,39,0.22);
}

.effect-row.active .effect-toggle {
  background: var(--red-main);
  border-color: var(--red-main);
  color: #fff;
}

.effect-desc {
  flex: 1;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.effect-slider {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding-left: 78px;
}

.effect-slider input[type="range"] {
  flex: 1;
  height: 4px;
  -webkit-appearance: none;
  background: rgba(201,162,39,0.25);
  border-radius: 2px;
  outline: none;
}

.effect-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
}

.effect-slider .slider-value {
  min-width: 36px;
  font-size: 11px;
  color: var(--gold-light);
  text-align: right;
}

.preview-save-effects {
  width: 100%;
  padding: 9px;
  background: linear-gradient(135deg, var(--red-main), var(--red-deep));
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 1px;
}

.preview-save-effects:hover {
  background: linear-gradient(135deg, #e03e3e, #c62828);
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.35);
}

/* 左侧资料列表 */
.detail-sidebar {
  width: 300px;
  background: var(--bg-panel-solid);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  color: var(--text-main);
}

.sidebar-header {
  padding: 16px;
  border-bottom: 1px solid rgba(201,162,39,0.2);
}

.sidebar-title {
  font-size: 15px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 4px;
}

.sidebar-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

.sidebar-new {
  margin-top: 12px;
  width: 100%;
  padding: 8px;
  background: var(--red-main);
  border: none;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.sidebar-new:hover {
  background: var(--red-deep);
}

.sidebar-search {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(201,162,39,0.15);
}

.sidebar-search input {
  width: 100%;
  padding: 7px 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,162,39,0.2);
  border-radius: 4px;
  color: var(--text-main);
  font-size: 13px;
}

.sidebar-search input::placeholder {
  color: var(--text-muted);
}

.material-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.material-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 8px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
}

.material-del {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  line-height: 18px;
  text-align: center;
  border: none;
  border-radius: 50%;
  background: rgba(211,47,47,0.18);
  color: #ff8a80;
  font-size: 15px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.2s ease;
  z-index: 2;
}

.material-item:hover .material-del,
.material-item.active .material-del {
  opacity: 1;
}

.material-del:hover {
  background: var(--red-main);
  color: #fff;
}

.material-item:hover {
  background: rgba(255,255,255,0.05);
}

.material-item.active {
  background: rgba(211,47,47,0.22);
  border-color: rgba(211,47,47,0.45);
  border-left-color: var(--red-main);
}

.material-thumb {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  background: rgba(201,162,39,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.material-info {
  flex: 1;
  min-width: 0;
}

.material-name {
  font-size: 13px;
  color: var(--text-main);
  font-weight: 500;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.material-meta {
  font-size: 11px;
  color: var(--text-muted);
}

/* 右侧详情面板 */
.detail-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--beige-bg);
}

.detail-content-header {
  padding: 16px 60px 16px 20px;
  border-bottom: 1px solid var(--beige-dark);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.detail-content-title {
  font-size: 20px;
  font-weight: 600;
  color: #2a2114;
  margin-bottom: 6px;
}

.detail-content-meta {
  font-size: 13px;
  color: #7a6f58;
  line-height: 1.7;
}

.source-link {
  display: inline-block;
  margin-top: 4px;
  color: var(--red-main);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s ease;
}

.source-link:hover {
  color: var(--red-deep);
  text-decoration: underline;
}

.detail-content-actions {
  display: flex;
  gap: 8px;
}

.action-btn {
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid transparent;
}

.action-btn.secondary {
  background: rgba(0,0,0,0.05);
  border-color: #c9c0a8;
  color: #5a5040;
}

.action-btn.secondary:hover {
  background: rgba(0,0,0,0.08);
}

.action-btn.primary {
  background: var(--red-main);
  color: #fff;
  border-color: var(--red-main);
}

.action-btn.primary:hover {
  background: var(--red-deep);
}

.action-btn.danger {
  background: rgba(211,47,47,0.15);
  border-color: rgba(211,47,47,0.5);
  color: #ff8a80;
}

.action-btn.danger:hover {
  background: var(--red-main);
  border-color: var(--red-main);
  color: #fff;
}

.detail-content-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.content-section {
  margin-bottom: 20px;
}

.content-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #4a3f2a;
  margin-bottom: 10px;
  padding-left: 8px;
  border-left: 3px solid var(--red-main);
}

.media-area {
  width: 100%;
  min-height: 260px;
  background: linear-gradient(135deg, #e8e0c8 0%, #dcd2b8 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #b0a688;
  overflow: hidden;
}

.media-area.video-media {
  background: linear-gradient(135deg, #3a2a2a 0%, #2a1e1e 100%);
  border: 1px solid rgba(211, 47, 47, 0.25);
}

.media-area img {
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
}

.media-area video,
.media-area iframe {
  width: 100%;
  height: 360px;
  border: none;
}

.media-placeholder {
  text-align: center;
  color: #8a7e60;
  padding: 40px;
}

.media-area.video-media .media-placeholder {
  color: #c9b8a8;
}

.media-placeholder .icon {
  font-size: 52px;
  margin-bottom: 14px;
  opacity: 0.65;
}

.media-area.video-media .media-placeholder .play-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 20px;
  background: rgba(211, 47, 47, 0.85);
  border: none;
  border-radius: 20px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.media-area.video-media .media-placeholder .play-btn:hover {
  background: var(--red-main);
}

/* 外部平台链接：跳转外部播放按钮 */
.ext-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 9px 18px;
  background: rgba(211, 47, 47, 0.85);
  border: none;
  border-radius: 20px;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
}
.ext-play-btn:hover {
  background: var(--red-main);
  color: #fff;
}
.associated-images .img-card .ext-play-btn {
  margin: 0;
}

.associated-images {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.associated-images-empty {
  padding: 14px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 6px;
  color: #9a8e70;
  font-size: 13px;
}

.img-card {
  width: 160px;
  height: 110px;
  background: #e8e0c8;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7a6f58;
  font-size: 12px;
  border: 1px solid #d4c9a8;
  padding: 8px;
  text-align: center;
  overflow: hidden;
}

.img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

.event-text-box {
  background: rgba(255, 255, 255, 0.35);
  border-left: 3px solid var(--red-main);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
}

.event-text {
  font-size: 15px;
  line-height: 1.9;
  color: #3d3424;
  text-indent: 2em;
  white-space: pre-line;
}

.edit-hint {
  margin-top: 12px;
  padding: 10px;
  background: rgba(211,47,47,0.08);
  border-radius: 4px;
  font-size: 12px;
  color: #8a5a5a;
}

/* 编辑模式表单 */
.edit-form .form-group {
  margin-bottom: 16px;
}

.edit-form label {
  display: block;
  font-size: 13px;
  color: #5a5040;
  margin-bottom: 6px;
  font-weight: 500;
}

.edit-form input,
.edit-form textarea,
.edit-form select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #c9c0a8;
  border-radius: 4px;
  background: #fff;
  color: #3d3424;
  font-size: 14px;
  font-family: inherit;
}

.edit-form textarea {
  min-height: 120px;
  resize: vertical;
}

.edit-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* 媒体管理器（编辑模式：本地上传 + 直链接） */
.media-manager { margin-top: 4px; }
.mm-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.mm-empty { color: #8a7d63; font-size: 13px; padding: 8px 0; }
.mm-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px; border: 1px solid #d8cdb2; border-radius: 6px; background: #fbf7ec;
}
.mm-item.mm-featured { border-color: #b8893f; background: #fdf3e3; }
.mm-item.mm-missing { border-color: #d99; background: #fdeeee; }
.mm-reup { color: #c0392b; font-weight: 600; }
.mm-thumb {
  width: 56px; height: 56px; flex: 0 0 56px; border-radius: 4px; overflow: hidden;
  background: #ece3cf; display: flex; align-items: center; justify-content: center;
}
.mm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mm-video-badge { color: #b8893f; font-size: 12px; font-weight: 600; }
.mm-info { flex: 1 1 auto; min-width: 0; }
.mm-kind { font-size: 12px; color: #5a5040; margin-bottom: 2px; }
.mm-url {
  font-size: 12px; color: #8a7d63;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mm-actions { display: flex; flex-direction: column; gap: 4px; flex: 0 0 auto; }
.mm-btn {
  font-size: 12px; padding: 4px 8px; border: 1px solid #c9c0a8; border-radius: 4px;
  background: #fff; color: #3d3424; cursor: pointer;
}
.mm-btn:hover { background: #f0e9d8; }
.mm-del { color: #b4452f; border-color: #e0b3a4; }
.mm-set { color: #b8893f; }
.mm-add { display: flex; flex-direction: column; gap: 8px; }
.mm-upload {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content;
  font-size: 13px; padding: 8px 12px; border: 1px dashed #b8995f; border-radius: 6px;
  background: #fdf6e9; color: #7a5a2a; cursor: pointer;
}
.mm-upload:hover { background: #f8ecd2; }
.mm-linkadd { display: flex; gap: 8px; }
.mm-linkadd input {
  flex: 1 1 auto; padding: 8px 10px; border: 1px solid #c9c0a8; border-radius: 4px; font-size: 14px;
}
.mm-addlink { white-space: nowrap; }

/* 弹窗：新建资料 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-overlay.show {
  display: flex;
}

.modal-box {
  width: 360px;
  background: var(--bg-panel-solid);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 20px;
  color: var(--text-main);
}

.modal-title {
  font-size: 16px;
  color: var(--gold);
  margin-bottom: 16px;
  font-weight: 600;
}

.modal-input {
  width: 100%;
  padding: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,162,39,0.3);
  border-radius: 4px;
  color: var(--text-main);
  font-size: 14px;
  margin-bottom: 16px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* 底部使用流程提示 */
.detail-footer-hint {
  padding: 10px 20px;
  background: var(--beige-dark);
  border-top: 1px solid #d4c9a8;
  font-size: 12px;
  color: #7a6f58;
  text-align: center;
}

/* 关闭按钮 */
.detail-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(90,80,64,0.35);
  background: rgba(255,255,255,0.7);
  color: #5a5040;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 10;
  transition: all 0.2s ease;
}

.detail-close:hover {
  background: var(--red-main);
  border-color: var(--red-main);
  color: #fff;
}

/* 加载状态 */
.loading-mask {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 100px;
  background: var(--bg-dark);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.loading-mask.hidden {
  display: none;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(201,162,39,0.2);
  border-top-color: var(--red-main);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

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

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.15);
}

::-webkit-scrollbar-thumb {
  background: rgba(201,162,39,0.4);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(201,162,39,0.6);
}

/* Cesium 默认控件隐藏/调整 */
.cesium-viewer-toolbar,
.cesium-viewer-animationContainer,
.cesium-viewer-timelineContainer,
.cesium-viewer-bottom {
  display: none !important;
}

.cesium-viewer-fullscreenContainer {
  display: none !important;
}

/* file:// 协议警告提示 */
.file-protocol-warning {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.82);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.file-warning-content {
  max-width: 520px;
  background: var(--bg-panel-solid);
  border: 1px solid var(--gold);
  border-radius: 10px;
  padding: 28px 32px;
  color: var(--text-main);
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.7);
}

.file-warning-title {
  font-size: 18px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 14px;
}

.file-warning-content p {
  margin: 10px 0;
  line-height: 1.7;
  font-size: 14px;
}

.file-warning-content code {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--gold-light);
  font-family: Consolas, monospace;
}

.file-warning-btn {
  margin-top: 18px;
  padding: 10px 22px;
  background: transparent;
  border: 1px solid rgba(201, 162, 39, 0.5);
  color: var(--gold);
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}

.file-warning-btn:hover {
  background: rgba(201, 162, 39, 0.15);
}

/* 地图信息浮层 */
.map-info {
  position: fixed;
  bottom: 110px;
  left: 16px;
  right: auto;
  z-index: 50;
  background: var(--bg-panel);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  pointer-events: none;
}

/* 图片/视频全屏灯箱 */
.media-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.media-lightbox.show {
  display: flex;
  opacity: 1;
}

.media-lightbox img,
.media-lightbox video {
  max-width: 96vw;
  max-height: 96vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 60px rgba(0,0,0,0.7);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s ease;
}

.lightbox-close:hover {
  background: var(--red-main);
  border-color: var(--red-main);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s ease;
}

.lightbox-nav:hover {
  background: rgba(255,255,255,0.28);
}

.lightbox-nav.show {
  display: flex;
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

.lightbox-counter {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  background: rgba(0,0,0,0.5);
  border-radius: 12px;
  color: #fff;
  font-size: 13px;
  display: none;
  z-index: 10;
}

.lightbox-counter.show {
  display: block;
}

.media-area img,
.associated-images .img-card img {
  cursor: pointer;
}

.preview-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ===== 屏幕标注工具（独立面板，样式对齐右侧「详情」小卡片） ===== */
.annotation-panel {
  position: fixed;
  right: 52px;
  width: 300px;
  max-height: calc(100vh - 230px);
  overflow-y: auto;
  z-index: 600;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
  color: var(--text-main);
  font-size: 12px;
  user-select: none;
  display: none;
}

.annotation-panel.show {
  display: block;
}

.ap-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg-panel);
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
  z-index: 1;
}

.ap-title {
  color: var(--gold-light);
  font-weight: 600;
  font-size: 15px;
}

.ap-close {
  width: 24px;
  height: 24px;
  line-height: 22px;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ap-close:hover {
  background: var(--red-main);
  border-color: var(--red-main);
  color: #fff;
}

.ap-body {
  padding: 12px 14px;
}

.ap-tools {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

.ap-tool {
  padding: 8px 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: 6px;
  color: var(--text-main);
  cursor: pointer;
  font-size: 15px;
  transition: all 0.15s ease;
}

.ap-tool:hover {
  background: rgba(201, 162, 39, 0.18);
}

.ap-tool.active {
  background: linear-gradient(135deg, var(--red-main), var(--red-deep));
  border-color: transparent;
  color: #fff;
}

.ap-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.ap-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1;
}

.ap-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s ease;
}

.ap-swatch:hover {
  transform: scale(1.15);
}

.ap-swatch.active {
  border-color: #fff;
  box-shadow: 0 0 0 1px var(--gold);
}

.ap-swatch-transparent {
  background-color: #fff;
  background-image:
    linear-gradient(45deg, #888 25%, transparent 25%, transparent 75%, #888 75%, #888),
    linear-gradient(45deg, #888 25%, transparent 25%, transparent 75%, #888 75%, #888);
  background-size: 10px 10px;
  background-position: 0 0, 5px 5px;
  border: 1px solid rgba(255,255,255,0.35);
}

.ap-swatch-transparent.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px #fff;
}

.ap-custom {
  display: flex;
  align-items: center;
}

.ap-custom input {
  width: 26px;
  height: 26px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}

.ap-opt {
  display: none;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.annotation-panel[data-tool="pen"] .ap-opt[data-for="pen"],
.annotation-panel[data-tool="arrow"] .ap-opt[data-for="arrow"],
.annotation-panel[data-tool="number"] .ap-opt[data-for="number"],
.annotation-panel[data-tool="eraser"] .ap-opt[data-for="eraser"],
.annotation-panel[data-tool="flag"] .ap-opt[data-for="flag"],
.annotation-panel[data-tool="shape"] .ap-opt[data-for="shape"],
.annotation-panel[data-tool="spotlight"] .ap-opt[data-for="spotlight"],
.annotation-panel[data-tool="magnifier"] .ap-opt[data-for="magnifier"] {
  display: flex;
}

.ap-hint {
  margin: 2px 0 10px;
  padding: 6px 8px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-muted);
  background: rgba(201, 162, 39, 0.08);
  border: 1px dashed rgba(201, 162, 39, 0.3);
  border-radius: 4px;
}

.ap-opt[data-for="shape"] {
  flex-wrap: wrap;
}

.ap-opt[data-for="shape"] .ap-seg {
  flex-basis: 100%;
}

.ap-label {
  white-space: nowrap;
  color: var(--text-muted);
}

.ap-opt input[type="range"] {
  flex: 1;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(201, 162, 39, 0.25);
  border-radius: 2px;
  outline: none;
}

.ap-opt input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
}

.ap-val {
  min-width: 26px;
  text-align: right;
  color: var(--gold-light);
}

.ap-seg {
  display: flex;
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 4px;
  overflow: hidden;
  flex: 1;
}

.ap-seg-btn {
  flex: 1;
  padding: 5px 0;
  background: rgba(255, 255, 255, 0.04);
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
}

.ap-seg-btn.active {
  background: var(--red-main);
  color: #fff;
}

.ap-select {
  flex: 1;
  padding: 5px;
  background: rgba(30, 30, 30, 0.92);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 4px;
  color: var(--text-main);
  font-size: 12px;
}

.ap-select option {
  background: #2a2a2a;
  color: #fff;
}

.ap-clear {
  width: 100%;
  padding: 8px;
  margin-top: 2px;
  background: linear-gradient(135deg, var(--red-main), var(--red-deep));
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.2s ease;
}

.ap-clear:hover {
  background: linear-gradient(135deg, #e03e3e, #c62828);
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.35);
}

/* 标注绘制层：覆盖地图，置于顶栏/标注面板之下 */
#annotationCanvas {
  position: fixed;
  inset: 0;
  z-index: 550;
  display: none;
  pointer-events: none;
}

#annotationCanvas.active {
  display: block;
  pointer-events: auto;
  cursor: crosshair;
  touch-action: none;
}

#annotationCanvas.active[data-tool="eraser"] {
  cursor: none;
}

/* 聚光灯 / 放大镜 实时叠加层：在主绘制层之上、面板之下 */
#annotationOverlay {
  position: fixed;
  inset: 0;
  z-index: 560;
  display: none;
  pointer-events: none;
}

#annotationOverlay.active {
  display: block;
  pointer-events: auto;
  cursor: crosshair;
  touch-action: none;
}

/* ===== 截图：区域选择层（Alt+1 触发） ===== */
.screenshot-layer {
  position: fixed;
  inset: 0;
  z-index: 920;
  display: none;
}

.screenshot-layer.show {
  display: block;
}

#screenshotCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  cursor: crosshair;
  touch-action: none;
}

.shot-hint {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 16px;
  background: rgba(20, 22, 28, 0.9);
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 20px;
  color: var(--gold-light);
  font-size: 13px;
  letter-spacing: 0.5px;
  pointer-events: none;
  user-select: none;
}

/* 微信截图式工具条 */
.shot-toolbar {
  position: fixed;
  z-index: 930;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(30, 32, 38, 0.95);
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 6px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
  user-select: none;
}

.shot-toolbar.show {
  display: flex;
}

.shot-size {
  color: var(--text-muted);
  font-size: 12px;
  padding: 0 6px;
  border-right: 1px solid rgba(201, 162, 39, 0.25);
  margin-right: 2px;
}

.shot-btn {
  padding: 5px 12px;
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.shot-btn:hover {
  background: rgba(201, 162, 39, 0.18);
}

.shot-btn.primary {
  background: linear-gradient(135deg, var(--red-main), var(--red-deep));
  border-color: transparent;
  color: #fff;
}

.shot-btn.primary:hover {
  box-shadow: 0 3px 10px rgba(211, 47, 47, 0.35);
}

/* ===== 截图预览窗口（已停用，保留兼容） ===== */
.screenshot-modal {
  position: fixed;
  inset: 0;
  z-index: 960;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  outline: none;
}

.screenshot-modal.show {
  display: flex;
}

.sm-box {
  width: min(86vw, 980px);
  max-height: 90vh;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.sm-title {
  color: var(--gold-light);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sm-shortcut {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
}

.sm-preview {
  flex: 1;
  overflow: auto;
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: 6px;
  background:
    linear-gradient(45deg, #2a2a2a 25%, transparent 25%, transparent 75%, #2a2a2a 75%, #2a2a2a),
    linear-gradient(45deg, #2a2a2a 25%, #1f1f1f 25%, #1f1f1f 75%, #2a2a2a 75%, #2a2a2a);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  margin-bottom: 14px;
}

.sm-preview img {
  max-width: 100%;
  max-height: 70vh;
  display: block;
}

.sm-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.sm-btn {
  padding: 9px 22px;
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sm-btn:hover {
  background: rgba(201, 162, 39, 0.18);
}

.sm-btn.primary {
  background: linear-gradient(135deg, var(--red-main), var(--red-deep));
  border-color: transparent;
  color: #fff;
}

.sm-btn.primary:hover {
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.35);
}

/* 标注面板内「截图」按钮 */
.ap-screenshot-btn {
  width: 100%;
  padding: 9px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--gold), #b8860b);
  border: none;
  border-radius: 4px;
  color: #2a1d05;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.2s ease;
}

.ap-screenshot-btn:hover {
  box-shadow: 0 4px 12px rgba(201, 162, 39, 0.4);
}
