:root {
  --bg: #f8fafc;
  --paper: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.08);
  --sea: #0284c7;
  --sea-soft: #e0f2fe;
  --amber: #f59e0b;
  --red: #ef4444;
  --red-soft: #fee2e2;
  --green: #10b981;
  --green-soft: #d1fae5;
  --shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.05);
  --radius-lg: 16px;
  --radius-md: 12px;
  --transit-status-accent-bg: #fff0ed; /* Error 错误/Error1-Light */
  --transit-status-accent-border: #ff9285; /* Error 错误/Error4 */
  --transit-status-accent-ink: #d54941; /* Error 错误/Error6-Normal */
  --transit-status-warning-bg: #fff1e9; /* Warning 警告 light */
  --transit-status-warning-border: #ffb98c; /* Warning 警告/Warning3-Disabled */
  --transit-status-warning-ink: #e37318; /* Warning 警告/Warning5-Normal */
  --transit-status-vip-bg: #fff8e8; /* VIP/VIP1-Light */
  --transit-status-vip-border: #e5d5af; /* VIP/VIP3-Disabled */
  --transit-status-vip-ink: #fa9550; /* Warning 警告/Warning4-Hover */
  --vip-group-gradient: linear-gradient(
    90deg,
    #f4ca81 0%,
    #9f6b41 100%
  ); /* VIP渐变/Group-Normal */
  --vip-light-ink: #fff8e8; /* VIP/VIP1-Light */
  --transit-status-brand: #5a82e6; /* Brand 品牌/Brand7-Normal */
  --transit-status-brand-soft: #bdcdf5; /* Brand 品牌/Brand3-Disabled */
  --transit-status-gray-40: rgba(
    0,
    0,
    0,
    0.4
  ); /* Text&Icon/Font Gy3 40% */
  --transit-status-gray-60: rgba(
    0,
    0,
    0,
    0.6
  ); /* Text&Icon/Font Gy2 60% */
  --transit-status-gray-90: rgba(
    0,
    0,
    0,
    0.9
  ); /* Text&Icon/Font Gy1 90% */
  --transit-status-divider-color: #dcdcdc; /* Gray 中性/Gray4 */
  --hormuz-bottom-action-bar-height: 84px;
  --hormuz-mobile-editor-height: 60px;
  --hormuz-mobile-editor-gap: 12px;
  --hormuz-app-mobile-editor-extra-offset: 10px;
  --hormuz-mobile-editor-bottom: calc(
    var(--hormuz-bottom-action-bar-height) + var(--hormuz-mobile-editor-gap)
  );
  --hormuz-mobile-editor-reserved-space: calc(
    var(--hormuz-mobile-editor-height) + 16px
  );
}

* {
  box-sizing: border-box;
  font-family:
    -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Source Han Sans',
    'Helvetica Neue', sans-serif;
}

img,
video,
canvas,
iframe {
  max-width: 100%;
}

/* 强制隐藏横向滚动条，杜绝网页被撑大变形（含外部插件注入的 min-width 覆盖） */
html,
body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  min-width: 0 !important;
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  position: relative;
}
body {
  padding: 16px 16px 110px;
}
.page {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  width: 100%;
  min-width: 0;
  position: relative;
}
.page-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.page-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 148px;
  height: 36px;
  flex-shrink: 0;
  text-decoration: none;
}
.page-logo-icon {
  display: block;
  width: auto;
  height: 36px;
  flex-shrink: 0;
}
.page-logo-wordmark {
  display: block;
  width: auto;
  height: 24px;
}
.page-logo-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- 标题区域 + 货船背景动效 --- */
.header-simple {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  z-index: 1;
  padding-bottom: 4px;
}
.header-simple h1 {
  margin: 0;
  font-size: clamp(22px, 5.5vw, 32px);
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--ink);
  line-height: 1.2;
  word-break: break-word;
}
.header-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.share-page-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--sea);
  box-shadow: var(--shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
  flex-shrink: 0;
  white-space: nowrap;
}
.share-page-btn:hover {
  background: #fff;
  transform: translateY(-1px);
}
.share-page-btn:active {
  transform: translateY(0);
}
.share-page-btn.is-error {
  color: var(--red);
  border-color: rgba(239, 68, 68, 0.35);
}
.share-page-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: var(--red);
  color: white;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  animation: pulse 2s infinite;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}
.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
}
.global-update-time {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

/* 货船动画，右侧紧贴，绝不超出 */
.header-ship-art {
  position: absolute;
  right: 0;
  top: -54px;
  width: 268px;
  height: auto;
  object-fit: contain;
  object-position: center;
  opacity: 1;
  pointer-events: none;
  z-index: -1;
  animation: floatShip 4s ease-in-out infinite;
}
@keyframes floatShip {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(6px) rotate(2deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

/* 行情滚动条 */
.market-ticker {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 4px;
  position: relative;
  touch-action: pan-y pinch-zoom;
}
.market-track {
  display: flex;
  width: max-content;
  --market-start-offset: 0px;
  --market-scroll-distance: 0px;
  animation: marketTickerScroll 22s linear infinite;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}
.market-segment {
  display: flex;
  align-items: center;
}
.market-item {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 14px;
  color: var(--ink);
  text-decoration: none;
  border-right: 1px solid var(--line);
  white-space: nowrap;
  font-size: 14px;
  line-height: 1.2;
  user-select: none;
  -webkit-user-select: none;
}
.market-item .name {
  font-weight: 700;
  color: var(--ink);
}
.market-item .price {
  font-weight: 800;
  font-family: 'DIN Alternate', sans-serif;
  font-variant-numeric: tabular-nums;
  font-feature-settings:
    'tnum' 1,
    'lnum' 1;
}
.market-item .chg {
  font-weight: 800;
  color: var(--red);
  font-family: 'DIN Alternate', sans-serif;
  font-variant-numeric: tabular-nums;
  font-feature-settings:
    'tnum' 1,
    'lnum' 1;
}
.market-item .chg.down {
  color: var(--green);
}
.market-item .chg.flat {
  color: var(--muted);
}
@keyframes marketTickerScroll {
  0% {
    transform: translate3d(var(--market-start-offset, 0px), 0, 0);
  }
  100% {
    transform: translate3d(
      calc(
        var(--market-start-offset, 0px) -
          var(--market-scroll-distance, 0px)
      ),
      0,
      0
    );
  }
}

.panel {
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  width: 100%;
  overflow: visible;
}
.panel-head {
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}
.panel-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}
.panel-head p {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}
.panel-body {
  padding: 16px 20px;
  width: 100%;
  box-sizing: border-box;
}
.num-val {
  font-family: 'DIN Alternate', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.5px;
}

/* 顶部三大指标合成区 */
.combo-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}
.combo-col {
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
}
.combo-col:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: var(--line);
}

.combo-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  text-align: left;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sub-meta {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.inline-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;
  gap: 8px;
  flex-wrap: wrap;
}

/* 1. 船只实时通行状态 */
.transit-status-head {
  align-items: center;
}
.transit-status-grid {
  display: grid;
  gap: 12px;
  width: 100%;
}
.transit-status-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}
.transit-status-card {
  min-height: 109px;
  border-radius: 2px;
  padding: 12px;
  border: 0.5px solid var(--transit-status-divider-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.transit-status-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.34) 0%,
    rgba(255, 255, 255, 0) 44%
  );
}
.transit-status-card-accent {
  background: var(--transit-status-accent-bg);
  border-color: var(--transit-status-accent-border);
}
.transit-status-card-accent.transit-status-card-orange {
  background: var(--transit-status-warning-bg);
  border-color: var(--transit-status-warning-border);
}
.transit-status-card-accent.transit-status-card-yellow {
  background: var(--transit-status-vip-bg);
  border-color: var(--transit-status-vip-border);
}
.transit-status-card-neutral {
  background: var(--paper);
  border-color: var(--transit-status-brand-soft);
  justify-content: flex-start;
}
.transit-status-label {
  font-size: 12px;
  line-height: 1.75;
  font-weight: 400;
  color: var(--transit-status-gray-60);
}
.transit-status-value-row {
  margin-top: 4px;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1px;
}
.transit-status-value {
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1;
  font-weight: 700;
  color: var(--transit-status-gray-90);
  font-family: 'D-DIN-PRO-JIN10', 'DIN Alternate', sans-serif;
  font-variant-numeric: tabular-nums;
}
.transit-status-card-accent .transit-status-value {
  color: var(--transit-status-accent-ink);
}
.transit-status-card-accent.transit-status-card-orange
  .transit-status-value {
  color: var(--transit-status-warning-ink);
}
.transit-status-card-accent.transit-status-card-yellow
  .transit-status-value {
  color: var(--transit-status-vip-ink);
}
.transit-status-unit {
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--transit-status-gray-90);
}
.transit-status-desc {
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.4;
  color: var(--transit-status-gray-60);
}
.transit-status-summary {
  width: 100%;
  display: grid;
  gap: 4px;
  margin-top: 4px;
}
.transit-status-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
.transit-status-summary-meta {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}
.transit-status-summary-name {
  font-size: 12px;
  line-height: 1.75;
  font-weight: 600;
  color: var(--transit-status-brand);
}
.transit-status-summary-name.is-danger {
  color: var(--transit-status-accent-ink);
}
.transit-status-summary-tip {
  font-size: 10px;
  line-height: 1.4;
  color: var(--transit-status-gray-60);
  white-space: nowrap;
}
.transit-status-summary-value {
  flex-shrink: 0;
  font-size: 12px;
  line-height: 1.75;
  font-weight: 700;
  color: var(--transit-status-brand);
}
.transit-status-summary-value.is-danger {
  color: var(--transit-status-accent-ink);
}
.transit-status-placeholder {
  position: relative;
  min-height: 201px;
  border-radius: 2px;
  overflow: hidden;
  background: #eef4fb;
}
.transit-status-placeholder.is-loaded {
  min-height: 0;
  background: transparent;
}
.transit-status-placeholder.is-loaded::before,
.transit-status-placeholder.is-loaded
  .transit-status-placeholder-skeleton {
  display: none;
}
.transit-status-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 48%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-100%);
  animation: skeletonShimmer 1.4s ease-in-out infinite;
  z-index: 1;
}
.transit-status-placeholder-skeleton {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(232, 239, 247, 0.92) 0%,
    #f7fbff 100%
  );
  z-index: 0;
}
.transit-status-placeholder-image {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
}
@keyframes skeletonShimmer {
  100% {
    transform: translateX(100%);
  }
}
.transit-status-divider {
  width: 100%;
  height: 1px;
  margin: 12px 0;
  background: var(--transit-status-divider-color);
}
.transit-status-note {
  font-size: 10px;
  line-height: 1.75;
  color: #3d3d3d;
  letter-spacing: 0;
  word-break: break-word;
}
.monitor-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 28px;
  padding: 3px 8px;
  border-radius: 2px;
  border: none;
  background: var(--vip-group-gradient);
  color: var(--vip-light-ink);
  font-size: 12px;
  line-height: 22px;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}
.monitor-link-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(159, 107, 65, 0.24);
  filter: saturate(1.05);
}
.monitor-link-btn:focus-visible {
  outline: 2px solid rgba(159, 107, 65, 0.55);
  outline-offset: 2px;
}
.monitor-link-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.transit-status-card-action {
  position: relative;
  z-index: 1;
  width: min(100%, 160px);
  margin-top: 8px;
}
.transit-status-monitor-btn {
  margin-left: auto;
  margin-right: auto;
}
.snapshot-monitor-btn {
  display: flex;
  width: min(100%, 382px);
  margin: 16px auto 0;
}

/* 2. 每日船只通行统计 */
.daily-flow-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}
.daily-flow-item {
  position: relative;
  background: var(--bg);
  border-radius: 10px;
  padding: 12px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  min-width: 0;
}
.daily-flow-item .source {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 6px;
  text-align: center;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
  width: 100%;
}
.source-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.daily-flow-item .val {
  font-size: 20px;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
  display: flex;
  align-items: baseline;
}
.daily-flow-item .date-lbl {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.chg-tag {
  margin-top: 4px;
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  transform: scale(0.95);
}
.chg-tag.up {
  background: var(--red-soft);
  color: var(--red);
}
.chg-tag.down {
  background: var(--green-soft);
  color: var(--green);
}
.chg-tag.flat {
  background: #e2e8f0;
  color: var(--muted);
}
.daily-note {
  margin-top: 12px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
  word-break: break-all;
}

/* --- 防撑爆 Tooltip --- */
.help-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #cbd5e1;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  flex-shrink: 0;
  transition: 0.2s;
  position: relative;
  z-index: 1;
}
.help-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  z-index: 1;
}
.help-tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: calc(100% + 8px);
  right: -10px;
  background: rgba(15, 23, 42, 0.95);
  color: white;
  font-size: 12px;
  border-radius: 8px;
  padding: 12px;
  width: 280px;
  max-width: calc(100vw - 40px);
  white-space: normal;
  word-wrap: break-word;
  transition: 0.2s;
  z-index: 1000;
  font-weight: normal;
  text-align: left;
  line-height: 1.5;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.help-tooltip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  right: 14px;
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent rgba(15, 23, 42, 0.95) transparent;
}

.tt-left {
  left: -10px;
  right: auto;
}
.tt-left::before {
  left: 14px;
  right: auto;
}
.tt-center {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}
.tt-center::before {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}
.tt-right {
  right: -10px;
  left: auto;
}
.tt-right::before {
  right: 14px;
  left: auto;
}

.help-icon-wrap.active {
  z-index: 2000;
}
.help-icon-wrap.active .help-tooltip {
  visibility: visible;
  opacity: 1;
}
.help-icon-wrap.active .help-icon {
  background: var(--sea);
}

/* 3. 行业通行压力系数 */
.stress-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 8px;
  gap: 8px;
}
.stress-summary {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.stress-title-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.stress-title-row .combo-title {
  font-size: 16px;
  line-height: 1.2;
}
.stress-value {
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
  color: #ef4444;
  font-family: 'DIN Alternate', sans-serif;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.gauge-container {
  width: 110px;
  height: 75px;
  flex-shrink: 0;
  margin-top: -16px;
}

.stress-rank-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 4px;
  width: 100%;
}
.stress-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 2px;
  text-align: center;
  min-width: 0;
}
.stress-card .s-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.stress-card .s-val {
  color: var(--red);
  font-size: 16px;
  font-weight: 800;
  font-family: 'DIN Alternate', sans-serif;
  line-height: 1;
}

@media (min-width: 981px) {
  .combo-panel {
    grid-template-columns: minmax(0, 45.5%) minmax(0, 54.5%);
    column-gap: 56px;
    row-gap: 42px;
    padding: 28px 32px 30px;
    align-items: start;
  }
  .combo-col:not(:last-child)::after {
    display: none;
  }
  .combo-col:first-child {
    grid-column: 1;
    grid-row: 1 / span 2;
    padding-right: 28px;
  }
  .combo-col:first-child::after {
    content: '';
    position: absolute;
    right: -28px;
    top: 4px;
    bottom: 4px;
    width: 1px;
    background: rgba(15, 23, 42, 0.08);
  }
  .combo-col:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }
  .combo-col:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }
}

/* 船只地图动态标记 */
.snapshot-gif-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #e2e8f0;
  border: 1px solid var(--line);
}
.snapshot-media-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}
.snapshot-media-shell.is-video {
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  background: transparent;
  border: none;
}
.snapshot-video-layout {
  display: flex;
  align-items: stretch;
  gap: 18px;
  width: 100%;
}
.snapshot-legend {
  width: 248px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.snapshot-pane-legend {
  width: 100%;
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 18px;
}
.snapshot-legend-item {
  --legend-color: #93c5fd;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 5px 0;
  color: var(--ink);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.snapshot-legend-item:last-child {
  border-bottom: none;
}
.snapshot-legend-item.cargo {
  --legend-color: #7cf29a;
}
.snapshot-legend-item.tankers {
  --legend-color: #ff3b30;
}
.snapshot-legend-item.passenger {
  --legend-color: #1d9bf0;
}
.snapshot-legend-item.high-speed {
  --legend-color: #ffcc00;
}
.snapshot-legend-item.tugs {
  --legend-color: #22f0f0;
}
.snapshot-legend-item.fishing {
  --legend-color: #ff9d7a;
}
.snapshot-legend-item.pleasure {
  --legend-color: #e255ff;
}
.snapshot-legend-item.navigation {
  --legend-color: #ffc3d8;
}
.snapshot-legend-item.unspecified {
  --legend-color: #cfd8e3;
}
.snapshot-legend-check {
  display: none;
}
.snapshot-legend-marker {
  width: 16px;
  height: 24px;
  flex-shrink: 0;
  color: var(--legend-color);
  filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.16));
}
.snapshot-legend-marker.is-aid {
  width: 16px;
  height: 16px;
}
.snapshot-legend-label {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
}
.snapshot-legend-chevron {
  display: none;
}
.snapshot-video-stage {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #eaf5ff 100%);
  border: 1px solid rgba(255, 255, 255, 0.65);
}
.snapshot-video-stage .time-display {
  top: 14px;
  left: 14px;
}
.snapshot-video {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(70vh, 520px);
  display: block;
  border: 0;
  background: transparent;
  object-fit: contain;
}
.snapshot-img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(70vh, 520px);
  object-fit: contain;
  display: block;
}
.snapshot-player-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.snapshot-controls-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg);
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.play-btn {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  border: none;
  background: var(--sea);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
}
.time-slider-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}
.time-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: #cbd5e1;
  border-radius: 3px;
  outline: none;
  margin: 10px 0 6px;
}
.time-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sea);
  cursor: pointer;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
  border: 2px solid #fff;
}
.time-ticks {
  display: flex;
  justify-content: space-between;
  padding: 0;
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}
.time-display {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.8);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  z-index: 10;
  letter-spacing: 0.5px;
}
.snap-source {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-top: 8px;
}
@media (max-width: 900px) {
  .snapshot-video-layout {
    flex-direction: column;
    gap: 12px;
  }
  .snapshot-video-stage {
    order: 1;
  }
  .snapshot-legend {
    order: 2;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .snapshot-pane-legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 14px;
  }
  .snapshot-video-stage {
    min-height: 200px;
  }
}
@media (max-width: 600px) {
  .snapshot-video-layout {
    gap: 10px;
  }
  .snapshot-legend {
    grid-template-columns: 1fr;
    padding: 10px 12px;
    border-radius: 12px;
  }
  .snapshot-pane-legend {
    margin-top: 10px;
    grid-template-columns: 1fr;
  }
  .snapshot-legend-item {
    min-height: 28px;
    gap: 6px;
    padding: 4px 0;
  }
  .snapshot-legend-marker {
    width: 13px;
    height: 20px;
  }
  .snapshot-legend-marker.is-aid {
    width: 13px;
    height: 13px;
  }
  .snapshot-legend-label {
    font-size: 13px;
  }
  .snapshot-video-stage {
    min-height: 168px;
    padding: 10px;
    border-radius: 12px;
  }
  .snapshot-video-stage .time-display {
    top: 10px;
    left: 10px;
    font-size: 11px;
    padding: 4px 8px;
  }
}

/* 通行趋势：3卡片并排 */
.source-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 6px;
  margin-bottom: 16px;
  width: 100%;
}
.source-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 2px;
  background: var(--bg);
  cursor: pointer;
  text-align: center;
  transition: 0.2s;
  min-width: 0;
}
.source-card.active {
  border-color: var(--sea);
  background: #fff;
  box-shadow: 0 0 0 2px var(--sea-soft);
}
.source-card-name {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.source-card-val {
  font-size: 20px;
  font-weight: 800;
  font-family: 'DIN Alternate', sans-serif;
  color: var(--ink);
  line-height: 1;
}

.view-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  justify-content: center;
}
.view-tab {
  padding: 4px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  color: var(--muted);
  transition: 0.2s;
}
.view-tab.active {
  background: var(--sea);
  color: #fff;
  border-color: var(--sea);
}

.main-chart-wrap {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 4px 12px 12px;
  background: var(--bg);
  height: 260px;
  overflow: hidden;
}
.main-table-wrap {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  max-height: 260px;
  overflow-y: auto;
  display: none;
  width: 100%;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  table-layout: fixed;
}
.history-table th {
  background: var(--bg);
  padding: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
}
.history-table td {
  padding: 10px 6px;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  word-wrap: break-word;
}
.history-table tr:last-child td {
  border-bottom: none;
}
.history-table td.date-col {
  font-weight: 700;
  color: var(--ink);
}
.history-table td.val-col {
  font-family: 'DIN Alternate', sans-serif;
  font-weight: 800;
  font-size: 15px;
}

.chg-up {
  color: var(--red);
  font-weight: 800;
}
.chg-down {
  color: var(--green);
  font-weight: 800;
}
.chg-flat {
  color: var(--muted);
  font-weight: 700;
}

/* 霍尔木兹海峡报道直击 */
.flash-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.flash-item:last-child {
  border-bottom: none;
}
.flash-time {
  color: var(--sea);
  font-weight: 700;
  font-size: 12px;
}
.flash-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.5;
  word-break: break-word;
}
.flash-text {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.6;
  word-break: break-word;
}
.toggle-btn {
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: 0.2s;
  box-sizing: border-box;
}
.toggle-btn:hover {
  background: #e2e8f0;
}

/* 船只遇袭记录 */
.attack-timeline-hz {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding: 4px 4px 16px 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}
.attack-timeline-hz::-webkit-scrollbar {
  height: 4px;
}
.attack-timeline-hz::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.attack-day-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}
.attack-day-date {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 800;
  color: var(--red);
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.attack-day-date span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}
.attack-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}
.attack-list li {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.4;
  word-break: break-word;
}

/* 风暴眼 */
.storm-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.storm-tab {
  padding: 6px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: var(--muted);
}
.storm-tab.active {
  background: var(--sea);
  color: #fff;
  border-color: var(--sea);
}
.storm-pane {
  display: none;
  width: 100%;
}
.storm-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.commodity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  width: 100%;
}
.storm-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}
.commodity-card {
  border-radius: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.commodity-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4px;
}
.commodity-head strong {
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  line-height: 1.3;
  word-break: break-word;
}
.c-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--sea);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 1px;
}
.risk-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.risk-badge {
  font-size: 10px;
  padding: 2px 4px;
  border-radius: 4px;
  background: var(--red-soft);
  color: var(--red);
  font-weight: 700;
  text-align: right;
}
.c-core {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}
.c-core .label,
.risk-meta .risk-label {
  color: var(--muted);
  flex-shrink: 0;
  font-size: 11px;
}
.risk-label-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.risk-label-wrap .help-icon-wrap {
  flex-shrink: 0;
}
.c-core .val {
  font-weight: 700;
  color: var(--ink);
  font-family: 'DIN Alternate', sans-serif;
  white-space: nowrap;
}

/* 免责声明样式 */
.footer-disclaimer {
  margin-top: 8px;
  padding: 16px 8px;
  border-top: 1px solid var(--line);
  text-align: justify;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.bottom-action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px -20px rgba(2, 132, 199, 0.45);
}
.bottom-action-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
}
.download-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  gap: 2px;
  min-height: 48px;
  border-radius: 14px;
  text-decoration: none;
  background: linear-gradient(
    90deg,
    #0369a1 0%,
    #0284c7 52%,
    #38bdf8 100%
  );
  color: #f8fafc;
  font-weight: 800;
  line-height: 1.1;
  box-shadow: 0 14px 28px -18px rgba(2, 132, 199, 0.75);
  transition:
    transform 0.2s ease,
    filter 0.2s ease,
    box-shadow 0.2s ease;
}
.download-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 16px 32px -18px rgba(2, 132, 199, 0.82);
}
.download-btn:active {
  transform: translateY(0);
}
.download-btn-title {
  font-size: 15px;
}
.download-btn-subtitle {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.88;
}
body.app-mode {
  padding-bottom: 16px;
}

/* 极限响应式：专门照顾手机小屏幕 */
@media (max-width: 980px) {
  .combo-panel {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 16px;
  }
  .combo-col:not(:last-child)::after {
    display: none;
  }
  .combo-col:not(:last-child) {
    border-bottom: 1px solid var(--line);
    padding-bottom: 24px;
    padding-right: 0;
  }
}
@media (max-width: 600px) {
  body {
    padding: 10px 10px 96px;
  }
  .page {
    gap: 12px;
  }
  .page-logo {
    width: 88.8px;
    height: 21.6px;
    gap: 4.8px;
  }
  .page-topbar {
    gap: 8px;
  }
  .page-logo-icon {
    height: 21.6px;
  }
  .page-logo-wordmark {
    height: 14.4px;
  }
  .panel-head {
    padding: 12px 14px;
  }
  .panel-body {
    padding: 12px 14px;
  }
  .header-simple h1 {
    font-size: 22px;
  }
  .header-ship-art {
    top: -16px;
    width: 50%;
    height: auto;
  }
  .share-page-btn {
    font-size: 11px;
    padding: 5px 8px;
    gap: 3px;
  }
  .share-page-btn svg {
    width: 12px;
    height: 12px;
  }
  .bottom-action-inner {
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .download-btn {
    min-height: 46px;
    border-radius: 12px;
    max-width: none;
  }
  .download-btn-title {
    font-size: 14px;
  }
  .download-btn-subtitle {
    font-size: 10px;
  }
  body.app-mode {
    padding-bottom: 10px;
  }

  /* 强制弹窗在手机上居中显示，彻底脱离排版流 */
  .help-tooltip {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    width: 85vw !important;
    max-width: 320px !important;
    z-index: 9999 !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
  }
  .help-tooltip::before {
    display: none !important;
  }

  /* 强制3列排版的极限微调 */
  .daily-flow-item {
    padding: 10px 2px;
  }
  .daily-flow-item .val {
    font-size: 16px;
  }
  .daily-flow-item .val span {
    font-size: 10px !important;
  }
  .source-text {
    font-size: 10px;
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .help-icon {
    width: 14px;
    height: 14px;
    font-size: 10px;
    margin-left: 2px;
  }

  .source-card {
    padding: 8px 2px;
  }
  .transit-status-card {
    min-height: 104px;
    padding: 10px 8px;
  }
  .transit-status-label {
    font-size: 11px;
  }
  .transit-status-value {
    font-size: 18px;
  }
  .transit-status-unit {
    font-size: 10px;
  }
  .transit-status-desc {
    font-size: 9px;
    line-height: 1.3;
  }
  .transit-status-summary-name,
  .transit-status-summary-value {
    font-size: 11px;
  }
  .transit-status-summary-tip {
    font-size: 9px;
  }
  .transit-status-placeholder {
    min-height: 168px;
  }
  .monitor-link-btn {
    width: 100%;
  }
  .snapshot-monitor-btn {
    margin-top: 14px;
  }
  .source-card-val {
    font-size: 16px;
  }
  .source-card-name {
    font-size: 10px;
    white-space: normal;
    word-break: break-all;
  }

  .stress-rank-grid {
    gap: 4px;
  }
  .stress-card {
    padding: 6px 2px;
  }
  .stress-card .s-name {
    font-size: 10px;
  }
  .stress-card .s-val {
    font-size: 14px;
  }
  .chg-tag {
    padding: 2px 4px;
    font-size: 9px;
    transform: scale(0.9);
  }
  .c-core {
    flex-direction: column;
    gap: 2px;
  }
  .c-core .val {
    font-size: 12px;
  }
  .commodity-head {
    flex-wrap: wrap;
  }
  .commodity-head strong {
    font-size: 11px;
  }
  .risk-meta {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 2px;
  }
  .gauge-container {
    width: 110px;
    height: 75px;
    margin-top: -16px;
  }
}

/* ===================================== */
/* 互动交流区 - 亮色主题适配              */
/* ===================================== */
#sec-comments {
  padding: 8px 0 24px;
}
#sec-comments h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--sea);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* 主容器 */
.j-comments {
  background: var(--paper) !important;
  border-radius: var(--radius-lg) !important;
  border: 1px solid var(--line) !important;
  overflow: hidden !important;
  max-width: 650px !important;
  margin: 0 auto !important;
  box-shadow: var(--shadow) !important;
}
/* 编辑器区域 */
.j-comments .j-comments__editor {
  background: var(--bg) !important;
  border-bottom: 1px solid var(--line) !important;
  padding: 20px !important;
}
.j-comments .squire-editor {
  border-color: var(--line) !important;
}
.j-comments .squire-editor_wrap {
  background: var(--paper) !important;
}
.j-comments .squire-editor_container {
  color: var(--muted) !important;
  background: var(--paper) !important;
}
.j-comments .squire-editor:focus-within,
.j-comments .squire-editor_wrap:focus-within {
  border-color: var(--sea) !important;
}
.j-comments .squire-editor_tips {
  color: var(--muted) !important;
}
/* 发送按钮 */
.j-comments .squire-editor_send,
.j-comments .editor_send_li {
  background-color: var(--sea) !important;
  color: #fff !important;
  font-weight: 700 !important;
  padding: 4px 12px !important;
  border-radius: 4px !important;
  font-size: 13px !important;
}
.j-comments .squire-editor_send:hover,
.j-comments .editor_send_li:hover {
  opacity: 0.9;
}
/* 表情按钮 */
.j-comments .squire-editor_icon {
  color: var(--muted) !important;
}
.j-comments .squire-editor_icon:hover {
  color: var(--sea) !important;
}
/* 表情面板 */
.j-comments .editor_emo_container {
  background: var(--paper) !important;
  border: 1px solid var(--line) !important;
}
.j-comments .editor_emo_container_header {
  background: var(--bg) !important;
  border-bottom: 1px solid var(--line) !important;
}
.j-comments .editor_emo_container_header_item.active span {
  color: var(--sea) !important;
  border-bottom: 2px solid var(--sea) !important;
}
.j-comments .editor_emo_container_header_item span {
  color: var(--muted) !important;
}
.j-comments .editor_emo_container_body {
  background: var(--paper) !important;
}
/* 边框 */
.j-comments .j-comments__editor .border,
.j-comments .j-comments__editor .squire-editor_action {
  border-color: var(--line) !important;
}
.j-comments .j-comments__editor_tips {
  color: var(--muted) !important;
}
/* 评论列表 */
.j-comments .j-comments__list {
  padding: 0 !important;
  background: transparent !important;
}
.j-comments .j-comments__list_header {
  padding: 15px 20px !important;
  color: var(--ink) !important;
  background: var(--bg) !important;
  border-bottom: 1px solid var(--line) !important;
}
.j-comments .j-comments__list_item {
  padding: 20px !important;
  border-bottom: 1px solid var(--line) !important;
  background: transparent !important;
}
/* 文字颜色 */
.j-comments .j-comments__list_item_nick,
.j-comments .j-comments__reply_item_nick {
  color: var(--muted) !important;
}
.j-comments .j-comments__list_item_text,
.j-comments .j-comments__reply_item_text {
  color: var(--ink) !important;
}
.j-comments .j-comments__list_item_created_at,
.j-comments .j-comments__reply_item_created_at {
  color: var(--muted) !important;
}
.j-comments .j-comments__list_item_actions,
.j-comments .j-comments__list_item_actions-reply-link {
  color: var(--muted) !important;
}
.j-comments .j-comments__list_item_btn:hover {
  color: var(--sea) !important;
}
/* 回复区域 */
.j-comments .j-comments__reply_item,
.j-comments .j-comments__reply_more {
  background: var(--sea-soft) !important;
  border-radius: 8px !important;
  padding: 12px 14px !important;
  margin-top: 10px !important;
}
/* 加载更多 */
.j-comments .j-comments__list_more {
  color: var(--muted) !important;
}
.j-comments .j-comments__list_more:not(.disabled):hover {
  color: var(--sea) !important;
}
.j-comments .j-comments__list_more.disabled,
.j-comments .j-comments__list_more[disabled] {
  cursor: default !important;
}
/* 未登录区域 */
.j-comments .j-comments__login {
  background: var(--sea-soft) !important;
  border-radius: 8px !important;
  padding: 16px 20px !important;
  margin: 20px !important;
}
.j-comments .j-comments__login_tips {
  color: var(--muted) !important;
  font-size: 14px !important;
}
/* 登录/注册按钮 */
.j-comments .btn-register {
  background-color: transparent !important;
  color: var(--muted) !important;
  border: 1px solid var(--line) !important;
  padding: 6px 16px !important;
  border-radius: 4px !important;
}
.j-comments .btn-register:hover {
  border-color: var(--sea) !important;
  color: var(--sea) !important;
}
.j-comments .btn-signin {
  background-color: var(--sea) !important;
  color: #fff !important;
  border: 1px solid var(--sea) !important;
  padding: 6px 16px !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
}
.j-comments .btn-signin:hover {
  opacity: 0.9 !important;
}
/* 移动端：评论输入区悬浮在底部操作栏上方 */
@media (max-width: 900px) {
  .footer-disclaimer {
    padding-bottom: calc(16px + var(--hormuz-mobile-editor-reserved-space));
  }
  #comments-container.has-mobile-editor {
    padding-bottom: 0;
  }
  .j-comments {
    display: flex !important;
    flex-direction: column !important;
  }
  .j-comments .j-comments__list_wrap {
    margin: 0 !important;
    order: 2 !important;
  }
  .j-comments .j-comments__list_header {
    order: 1 !important;
  }
  .j-comments .squire-editor_mobile {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: var(--hormuz-mobile-editor-bottom) !important;
    width: 100% !important;
    order: initial !important;
    z-index: 9990 !important;
    padding: 0 10px !important;
    background: transparent !important;
    box-shadow: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translate3d(0, 16px, 0) !important;
    transition:
      opacity 0.24s ease,
      transform 0.24s ease !important;
  }
  body.app-mode .j-comments .squire-editor_mobile:not(.top) {
    bottom: calc(
      var(--hormuz-mobile-editor-bottom) +
        var(--hormuz-app-mobile-editor-extra-offset)
    ) !important;
  }
  body.hormuz-mobile-editor-visible .j-comments .squire-editor_mobile:not(.top) {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translate3d(0, 0, 0) !important;
  }
  .j-comments .squire-editor_mobile.top {
    top: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    z-index: 10020 !important;
    padding: 0 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
  }
  body.app-mode .j-comments .squire-editor_mobile.top {
    top: auto !important;
    bottom: calc(
      var(--hormuz-mobile-editor-bottom) +
        var(--hormuz-app-mobile-editor-extra-offset)
    ) !important;
    height: auto !important;
    padding: 0 10px !important;
    background: transparent !important;
  }
  body.app-mode .j-comments .squire-editor_mobile.top .squire-editor_mobile_wrap {
    background: var(--bg) !important;
    border: 1px solid var(--line) !important;
    border-top: 1px solid var(--line) !important;
    border-radius: 16px !important;
    box-shadow: 0 18px 40px -28px rgba(15, 23, 42, 0.4) !important;
    max-width: 650px !important;
    margin: 0 auto !important;
    padding: 14px !important;
  }
  body.app-mode .j-comments .squire-editor_mobile.top .squire-editor_mobile_wrap_bg {
    display: none !important;
  }
  .j-comments .squire-editor_mobile:not(.top) .squire-editor_mobile_wrap {
    background: var(--bg) !important;
    border: 1px solid var(--line) !important;
    border-top: 1px solid var(--line) !important;
    border-radius: 16px !important;
    box-shadow: 0 18px 40px -28px rgba(15, 23, 42, 0.4) !important;
    max-width: 650px !important;
    margin: 0 auto !important;
    padding: 14px !important;
  }
  .j-comments .squire-editor_mobile_left {
    background: var(--paper) !important;
  }
  .j-comments .squire-editor_mobile_send {
    background: var(--sea) !important;
    color: #fff !important;
    font-weight: 700 !important;
  }
  .j-comments .squire-editor_mobile_obj,
  .j-comments .squire-editor_mobile_tips {
    color: var(--muted) !important;
  }
  .j-comments .squire-editor_mobile:not(.top) .squire-editor_mobile_wrap_bg {
    display: none !important;
  }
  .j-comments .squire-editor_share {
    display: none !important;
  }
}
/* 确保 bottom-action-bar 层级高于评论输入框（PC + 移动端） */
.bottom-action-bar {
  z-index: 10000 !important;
}
