/* Ticket #6（05）：勘探与知识概览 — 星域详情面板 + 矿点概览阅读页
 * 红线遵守：全部动画均为一次性 CSS transition，无循环动画/粒子。
 */

/* ============ 通用布局 ============ */
.t05-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 20px 40px;
}

.t05-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
  margin-bottom: 10px;
}

.t05-h1 {
  margin: 0;
  font-size: 1.45rem;
}

.t05-sub {
  color: var(--ark-text-dim);
  font-size: 0.9rem;
}

.t05-back {
  display: inline-block;
  background: none;
  border: 1px solid var(--ark-border);
  color: var(--ark-accent);
  border-radius: 0;
  padding: 3px 10px;
  font-size: 0.85rem;
  cursor: pointer;
}
.t05-back:hover { border-color: var(--ark-accent); }

/* ============ 难度 / 稀有 / 已焚 徽章 ============ */
.t05-diff {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 0;
  font-size: 0.78rem;
  border: 1px solid;
}
.t05-diff-easy {
  color: var(--ark-ok);
  border-color: rgba(111, 227, 161, 0.5);
  background: rgba(111, 227, 161, 0.08);
}
.t05-diff-mid {
  color: var(--ark-accent);
  border-color: var(--ark-accent);
  background: var(--ark-glow);
}
.t05-diff-hard {
  color: #ff9d5c;
  border-color: rgba(255, 157, 92, 0.55);
  background: rgba(255, 157, 92, 0.1);
}

.t05-badge-rare {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 0;
  font-size: 0.78rem;
  color: var(--ark-gold);
  border: 1px solid rgba(255, 209, 102, 0.55);
  background: rgba(255, 209, 102, 0.1);
}

/* 已焚标记：插入后加 .in 触发一次性淡入 transition */
.t05-burn-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 0;
  font-size: 0.78rem;
  color: #ff8a80;
  border: 1px solid rgba(255, 138, 128, 0.55);
  background: rgba(255, 138, 128, 0.1);
  opacity: 0;
  transform: translateY(-4px);
}
.t05-burn-badge.in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ============ 星域详情：矿点列表 ============ */
.t05-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--ark-text-dim);
  font-size: 0.82rem;
  margin-bottom: 14px;
}

.t05-ore-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.t05-ore-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  background: var(--ark-bg-card);
  border: 1px solid var(--ark-border);
  border-radius: 0;
  padding: 10px 14px;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease; /* 一次性 hover 过渡 */
}
.t05-ore-row:hover {
  border-color: var(--ark-accent);
  background: #182244;
}

.t05-ore-seq {
  color: var(--ark-text-dim);
  font-size: 0.8rem;
  min-width: 2.2em;
}

.t05-ore-title {
  font-weight: 600;
  flex: 1 1 180px;
}

.t05-ore-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.t05-ore-terms {
  width: 100%;
  color: var(--ark-text-dim);
  font-size: 0.8rem;
  padding-left: 2.4em;
}

/* ============ 矿点概览阅读页 ============ */
.t05-overview-article {
  background: var(--ark-bg-panel);
  border: 1px solid var(--ark-border);
  border-radius: 0;
  padding: 20px 26px;
  margin-top: 14px;
  opacity: 0;
  transform: translateY(6px);
}
.t05-overview-article.in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* 已焚遮罩：内容不可见，需确认重扫 */
.t05-rescan-bar {
  margin-top: 14px;
  background: rgba(255, 90, 90, 0.08);
  border: 1px solid rgba(255, 90, 90, 0.45);
  border-radius: 0;
  padding: 18px 22px;
  text-align: center;
}
.t05-rescan-bar .t05-rescan-title {
  color: #ff8a80;
  font-weight: 600;
  margin-bottom: 6px;
}
.t05-rescan-bar .t05-rescan-note {
  color: var(--ark-text-dim);
  font-size: 0.88rem;
  margin-bottom: 14px;
}
.t05-rescan-actions { display: flex; gap: 12px; justify-content: center; }

.t05-btn {
  border-radius: 0;
  border: 1px solid var(--ark-border);
  background: var(--ark-bg-card);
  color: var(--ark-text);
  padding: 7px 18px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.t05-btn:hover { border-color: var(--ark-accent); }
.t05-btn.primary {
  border-color: var(--ark-accent);
  color: var(--ark-accent);
}
.t05-btn.primary:hover { background: var(--ark-glow); }
.t05-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.t05-error-inline {
  margin-top: 12px;
  color: var(--ark-danger);
  font-size: 0.88rem;
  opacity: 0;
}
.t05-error-inline.in {
  opacity: 1;
  transition: opacity 0.4s ease;
}

.t05-scan-status {
  margin-top: 12px;
  color: var(--ark-text-dim);
  font-size: 0.85rem;
}

.t05-source-note {
  margin-top: 8px;
  color: var(--ark-text-dim);
  font-size: 0.78rem;
}

/* ============ 概览 markdown 内容排版 ============ */
.t05-md { line-height: 1.75; }
.t05-md h1, .t05-md h2, .t05-md h3, .t05-md h4 {
  color: var(--ark-accent);
  margin: 1em 0 0.4em;
  line-height: 1.35;
}
.t05-md h1 { font-size: 1.25rem; }
.t05-md h2 { font-size: 1.1rem; }
.t05-md h3, .t05-md h4 { font-size: 1rem; }

.t05-md table {
  border-collapse: collapse;
  margin: 0.6em 0;
  font-size: 0.88rem;
}
.t05-md th, .t05-md td {
  border: 1px solid var(--ark-border);
  padding: 4px 10px;
  text-align: left;
}
.t05-md th {
  background: var(--ark-glow);
  color: var(--ark-accent);
}

.t05-md blockquote {
  margin: 0.6em 0;
  padding: 4px 12px;
  border-left: 3px solid var(--ark-border);
  color: var(--ark-text-dim);
  font-size: 0.88rem;
}

.t05-md ul, .t05-md ol { padding-left: 1.6em; margin: 0.5em 0; }
.t05-md code {
  background: rgba(125, 139, 176, 0.15);
  border-radius: 0;
  padding: 1px 5px;
  font-size: 0.85em;
}
.t05-md b { color: var(--ark-gold); font-weight: 600; }

/* ============ 顶栏入口按钮 ============ */
#ark-t05-explore-btn {
  background: var(--ark-bg-card);
  border: 1px solid var(--ark-border);
  color: var(--ark-text);
  border-radius: 0;
  padding: 2px 10px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.25s ease;
}
#ark-t05-explore-btn:hover { border-color: var(--ark-accent); }

/* ============ 流式概览：晶矿扫描中 + 过场文字 ============ */

.t05-streaming-wrap {
  display: flex;
  flex-direction: column;
  min-height: 300px;
}

.t05-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 16px;
}

.t05-loading-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: rgba(100, 200, 255, 0.9);
  letter-spacing: 0.08em;
}

.t05-progress-wrap {
  width: 280px;
  height: 4px;
  background: rgba(100, 200, 255, 0.12);
  border-radius: 0;
  overflow: hidden;
}

.t05-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(80, 180, 255, 0.6), rgba(100, 220, 255, 0.9));
  border-radius: 0;
  transition: width 1.5s ease-out;
}

.t05-transition {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
  text-align: center;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.t05-stream-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.t05-overview-article.t05-streaming {
  opacity: 1;
  transform: translateY(0);
  min-height: 120px;
}

.t05-burn-note {
  font-size: 0.82rem;
  color: rgba(255, 180, 80, 0.8);
  text-align: center;
}

/* ============ 阅后即焚倒计时 + 提前掌握 ============ */

.t05-countdown-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 180, 80, 0.06);
  border: 1px solid rgba(255, 180, 80, 0.15);
  border-radius: 0;
  margin-bottom: 12px;
}

.t05-timer-text {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 200, 100, 0.9);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}

.t05-early-btn {
  background: rgba(80, 200, 255, 0.12);
  border: 1px solid rgba(80, 200, 255, 0.3);
  border-radius: 0;
  color: rgba(100, 220, 255, 0.9);
  padding: 6px 14px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.t05-early-btn:hover {
  background: rgba(80, 200, 255, 0.2);
  border-color: rgba(100, 220, 255, 0.5);
}

.t05-early-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.t05-early-msg {
  font-size: 0.9rem;
  color: rgba(100, 220, 255, 0.9);
  text-align: center;
  width: 100%;
}

/* 「返回地面」按钮 */
.t05-return-btn {
  background: rgba(80, 255, 160, 0.12) !important;
  border-color: rgba(80, 255, 160, 0.3) !important;
  color: rgba(100, 255, 180, 0.9) !important;
  margin-left: 8px;
}
.t05-return-btn:hover {
  background: rgba(80, 255, 160, 0.22) !important;
  border-color: rgba(80, 255, 160, 0.5) !important;
}

/* 「返回地面」倒计时 */
.t05-return-countdown {
  font-size: 0.9rem;
  color: rgba(255, 180, 80, 0.85);
  text-align: center;
  width: 100%;
  letter-spacing: 0.05em;
}

/* 焚毁：矿洞已毁 */
.t05-destroyed {
  text-align: center;
  padding: 32px 16px;
}
.t05-destroyed-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  filter: grayscale(0.3);
}
.t05-destroyed-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: rgba(255, 100, 80, 0.9);
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}
.t05-destroyed-sub {
  font-size: 0.85rem;
  color: rgba(255, 180, 120, 0.6);
}

/* 矿点列表内联重扫按钮 */
.t05-rescan-inline {
  background: rgba(255, 180, 80, 0.08);
  border: 1px solid rgba(255, 180, 80, 0.2);
  border-radius: 0;
  color: rgba(255, 200, 100, 0.8);
  padding: 3px 8px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}

.t05-rescan-inline:hover {
  background: rgba(255, 180, 80, 0.15);
  border-color: rgba(255, 180, 80, 0.35);
}

.t05-rescan-inline:disabled {
  opacity: 0.5;
  cursor: default;
}

/* 流式期间轮播提示 */
.t05-stream-hint {
  font-size: 0.82rem;
  color: rgba(100, 200, 255, 0.4);
  text-align: center;
  padding: 4px 0;
  transition: opacity 0.3s ease;
}
