/* WOW 发展路线图 2026—2027（浅色清爽版）
   与 reference-layout 浅色主题协调，无深蓝/深色卡片。 */

/* ── 私有变量 ── */
#roadmap {
  --rm-ink: #14283a;
  --rm-muted: #60788a;
  --rm-line: #dbe8ee;
  --rm-surface: #ffffff;
  --rm-surface-2: #f8fbfd;
  --rm-cyan: #0ea7c8;
  --rm-green: #25c26e;
  --rm-orange: #f59e0b;
  --rm-purple: #7c5cff;
  --rm-shadow: 0 12px 34px rgba(42, 82, 106, .10);
  --rm-shadow-hover: 0 18px 46px rgba(42, 82, 106, .14);
}

/* ── 容器 ── */
.rm-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

/* ── 年度面板 ── */
.rm-panel {
  border: 1px solid var(--rm-line);
  border-radius: 22px;
  padding: 28px 32px 30px;
  background: var(--rm-surface);
  box-shadow: var(--rm-shadow);
  transition: box-shadow .25s ease, transform .25s ease;
}
.rm-panel:hover {
  box-shadow: var(--rm-shadow-hover);
  transform: translateY(-2px);
}

/* ── 面板头部 ── */
.rm-panel-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}
.rm-year-label {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 18px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -1px;
  color: #fff;
  background: linear-gradient(135deg, #1cb5e0, #0a8f9c);
  box-shadow: 0 8px 22px rgba(12, 160, 190, .28);
}
.rm-panel-2027 .rm-year-label {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  box-shadow: 0 8px 22px rgba(99, 102, 241, .28);
}
.rm-panel-title { min-width: 0; }
.rm-eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.6px;
  color: var(--rm-cyan);
  margin-bottom: 7px;
  text-transform: uppercase;
}
.rm-panel-2027 .rm-eyebrow { color: var(--rm-purple); }
.rm-panel-title h3 {
  margin: 0;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -.4px;
  color: var(--rm-ink);
}

/* ── 2026 里程碑卡片网格 ── */
.rm-milestones {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.rm-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 16px 16px;
  border-radius: 16px;
  background: var(--rm-surface-2);
  border: 1px solid var(--rm-line);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.rm-card:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 167, 200, .35);
  box-shadow: 0 10px 28px rgba(42, 82, 106, .10);
}
.rm-card-ido {
  grid-column: span 2;
  gap: 10px;
}

.rm-status {
  position: absolute;
  left: 14px;
  top: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}
.rm-card[data-status="live"] .rm-status {
  background: var(--rm-green);
  box-shadow: 0 0 0 3px rgba(37, 194, 110, .18);
}
.rm-card[data-status="next"] .rm-status {
  background: var(--rm-orange);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .18);
}

.rm-card time {
  margin-left: 22px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .4px;
  color: var(--rm-cyan);
  font-variant-numeric: tabular-nums;
}
.rm-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--rm-ink);
}
.rm-card p b { color: var(--rm-ink); }
.rm-tag {
  align-self: flex-start;
  margin-top: 2px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .6px;
  color: #fff;
  background: var(--rm-green);
}

/* ── IDO 四期 ── */
.rm-ido-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 22px;
}
.rm-ido-badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 11px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1cb5e0, #0ac2a8);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .8px;
}
.rm-ido-head small {
  color: var(--rm-muted);
  font-size: 11px;
}
.rm-ido-phases {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.rm-ido-phases li {
  padding: 12px 12px 11px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--rm-line);
  transition: border-color .2s ease, transform .2s ease;
}
.rm-ido-phases li:hover {
  border-color: rgba(14, 167, 200, .45);
  transform: translateY(-2px);
}
.rm-ido-phases strong {
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 3px;
  color: var(--rm-ink);
}
.rm-ido-phases span {
  display: block;
  font-size: 11px;
  color: var(--rm-muted);
  font-variant-numeric: tabular-nums;
}

/* ── 2027 引入语 ── */
.rm-intro {
  margin: -4px 0 20px;
  color: var(--rm-muted);
  font-size: 13px;
  line-height: 1.75;
}

/* ── 季度分组 ── */
.rm-quarters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.rm-quarter {
  padding: 16px 14px 14px;
  border-radius: 16px;
  background: var(--rm-surface-2);
  border: 1px solid var(--rm-line);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.rm-quarter:hover {
  border-color: rgba(124, 92, 255, .35);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(42, 82, 106, .08);
}
.rm-quarter-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 900;
  color: var(--rm-purple);
}
.rm-quarter-title small {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--rm-muted);
  text-transform: uppercase;
}

/* ── 交易所列表 ── */
.rm-exchanges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rm-exchanges li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--rm-line);
  transition: border-color .2s ease, background .2s ease;
}
.rm-exchanges li:hover {
  border-color: rgba(124, 92, 255, .35);
  background: #fafbff;
}
.rm-month {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 900;
  color: var(--rm-purple);
  background: rgba(124, 92, 255, .10);
}
.rm-exchanges strong {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--rm-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── 底部声明 ── */
.roadmap-note {
  margin: 26px 0 0;
  text-align: center;
  color: var(--rm-muted);
  font-size: 11.5px;
  letter-spacing: .3px;
}

/* ── 响应式 ── */
@media (max-width: 1080px) {
  .rm-milestones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rm-card-ido { grid-column: span 2; }
  .rm-quarters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .rm-panel { padding: 22px 20px 24px; }
  .rm-panel-head { gap: 14px; margin-bottom: 18px; }
  .rm-year-label { width: 58px; height: 58px; font-size: 20px; border-radius: 14px; }
  .rm-panel-title h3 { font-size: 21px; }
  .rm-milestones { grid-template-columns: 1fr; gap: 12px; }
  .rm-card-ido { grid-column: span 1; }
  .rm-ido-phases { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .rm-quarters { grid-template-columns: 1fr; gap: 12px; }
  .rm-exchanges { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .rm-exchanges li { flex: 1 1 calc(50% - 4px); min-width: 130px; }
}

@media (max-width: 420px) {
  .rm-ido-phases { grid-template-columns: 1fr; }
  .rm-exchanges li { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .rm-panel, .rm-card, .rm-ido-phases li, .rm-quarter, .rm-exchanges li {
    transition: none;
  }
}
