/* 电力现货：四页并排总览。卡片宽度即容器整宽，4 列等分，图片按原始比例
   铺满列宽（2381x3367 → 约 1.414 竖版），一眼看全 4 页；点击任一页放大查看。 */
.spot-home {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--color-bg-2, #fff);
  border: 1px solid var(--color-border, #e5e6eb);
  border-radius: 10px;
  overflow: hidden;
}
.spot-home-head,
.spot-info-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border, #e5e6eb);
}
.spot-home-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.spot-home-title,
.spot-info-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-1, #1d2129);
}
.spot-home-sub {
  font-size: 12px;
  color: var(--color-text-3, #86909c);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.spot-date-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.spot-btn {
  border: 1px solid var(--color-border, #e5e6eb);
  background: var(--color-bg-1, #f7f8fa);
  color: var(--color-text-1, #1d2129);
  border-radius: 6px;
  height: 28px;
  padding: 0 10px;
  cursor: pointer;
}
.spot-btn[disabled] {
  opacity: 0.45;
  cursor: default;
}
.spot-btn.primary {
  background: rgb(var(--primary-6, 255, 125, 0));
  border-color: rgb(var(--primary-6, 255, 125, 0));
  color: #fff;
}
.spot-date-label {
  min-width: 92px;
  text-align: center;
  font-size: 13px;
  color: var(--color-text-2, #4e5969);
  font-variant-numeric: tabular-nums;
}
.spot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
}
.spot-cell {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #0f1115;
  overflow: hidden;
  cursor: zoom-in;
  transition: box-shadow 0.16s ease, transform 0.16s ease;
}
.spot-cell img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 68vh;
  object-fit: contain;
  background: #0f1115;
}
.spot-cell:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
}
.spot-cell:focus-visible {
  outline: 2px solid rgb(var(--primary-6, 255, 125, 0));
  outline-offset: 2px;
}
.spot-cell-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 16px);
  padding: 3px 10px 3px 4px;
  border-radius: 999px;
  background: rgba(15, 17, 21, 0.62);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12px;
  line-height: 18px;
}
.spot-cell-index {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgb(var(--primary-6, 255, 125, 0));
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.spot-cell-label {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.spot-home-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 180px;
  padding: 24px;
}
.spot-home-empty-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(var(--primary-6, 255, 125, 0), 0.12);
  color: rgb(var(--primary-6, 255, 125, 0));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}
.spot-empty {
  color: var(--color-text-2, #4e5969);
  font-size: 14px;
}
.spot-empty-hint {
  color: var(--color-text-3, #86909c);
  font-size: 12px;
}
.spot-viewer {
  width: min(1100px, 96vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg-2, #fff);
  border-radius: 10px;
  overflow: hidden;
}
.spot-viewer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border, #e5e6eb);
}
.spot-viewer-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-1, #1d2129);
}
.spot-viewer-body {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  background: #0f1115;
}
.spot-viewer-body img {
  max-width: 100%;
  max-height: 74vh;
  object-fit: contain;
  border-radius: 6px;
}
.spot-viewer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  border-top: 1px solid var(--color-border, #e5e6eb);
}
.spot-viewer-hint {
  font-size: 12px;
  color: var(--color-text-3, #86909c);
}
.spot-page-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  flex: 0 0 auto;
}
.spot-page-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}
.spot-page-caption {
  font-size: 12px;
  color: var(--color-text-2, #4e5969);
}
.spot-info-card {
  width: 100%;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--color-bg-2, #fff);
  border: 1px solid var(--color-border, #e5e6eb);
  border-radius: 8px;
  cursor: pointer;
  box-sizing: border-box;
  padding: 10px;
}
.spot-info-card:hover {
  box-shadow: 0 4px 10px #0000001a;
}
.spot-info-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(var(--primary-6, 255, 125, 0), 0.12);
  color: rgb(var(--primary-6, 255, 125, 0));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}
.spot-info-card-name {
  font-size: 14px;
  color: var(--color-text-1, #1d2129);
}
.spot-info-card-desc {
  font-size: 12px;
  color: var(--color-text-2, #4e5969);
}
.spot-info-page {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: var(--color-bg-1, #f5f6f7);
  overflow: auto;
  padding: 20px 24px 40px;
}
.spot-info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-bg-2, #fff);
  border-radius: 8px;
  overflow: hidden;
}
.spot-info-table th,
.spot-info-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border, #e5e6eb);
  text-align: left;
  font-size: 13px;
  color: var(--color-text-1, #1d2129);
}
.spot-info-table th {
  background: var(--color-fill-1, #f2f3f5);
  font-weight: 600;
}
.spot-link {
  color: rgb(var(--primary-6, 255, 125, 0));
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
}
.spot-modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.spot-modal {
  width: min(920px, 96vw);
  max-height: 90vh;
  overflow: auto;
  background: var(--color-bg-2, #fff);
  border-radius: 10px;
  padding: 16px 18px 20px;
}
.spot-modal h3 {
  margin: 0 0 12px;
  font-size: 16px;
}
.spot-input {
  width: 100%;
  height: 36px;
  border: 1px solid var(--color-border, #e5e6eb);
  border-radius: 6px;
  padding: 0 10px;
  box-sizing: border-box;
}
.spot-error {
  color: #cb272d;
  font-size: 13px;
  margin-top: 8px;
}
.spot-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}
.spot-detail-pages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.spot-detail-pages figure {
  margin: 0;
}
.spot-detail-pages img {
  width: 100%;
  display: block;
  border-radius: 6px;
  background: #111;
}
.spot-detail-pages figcaption {
  margin-top: 6px;
  font-size: 12px;
  color: var(--color-text-2, #4e5969);
}
@media (max-width: 1280px) {
  .spot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .spot-detail-pages {
    grid-template-columns: 1fr;
  }
  .spot-info-page {
    top: 48px;
    padding: 12px;
  }
}
@media (max-width: 720px) {
  .spot-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .spot-home-head {
    flex-wrap: wrap;
  }
}
