/* 正式站补充层：状态徽标、备案信息、弹层禁用行。
   只做追加，不覆盖前五个样式表里的既有规则。 */

/* ---------- 状态徽标 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0;
  white-space: nowrap;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  background: transparent;
}

.badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}

.badge-live {
  color: var(--accent);
  border-color: rgba(206, 69, 19, .35);
  background: rgba(206, 69, 19, .08);
}

.badge-soon {
  color: var(--ink-3);
  border-style: dashed;
}

/* 深色下徽标底色不要压过卡片 */
[data-theme="dark"] .badge-live {
  border-color: rgba(255, 154, 72, .38);
  background: rgba(255, 154, 72, .12);
}

[data-theme="dark"] .badge {
  border-color: var(--outline);
}

/* ---------- 弹层里尚未上线的行 ---------- */
.option-row[aria-disabled="true"] {
  cursor: default;
  background: var(--surface);
  color: var(--ink-3);
  opacity: .82;
}

.option-row[aria-disabled="true"] strong {
  color: var(--ink-2);
}

.option-row[aria-disabled="true"] span {
  font-size: 13px;
  white-space: nowrap;
  color: var(--ink-3);
}

a.option-row span {
  font-size: 13px;
  white-space: nowrap;
  color: var(--accent);
}

/* ---------- 页脚备案 ---------- */
.foot-base .foot-icp {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-3);
  transition: color .3s;
}

.foot-base .foot-icp:hover {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 720px) {
  .foot-base {
    gap: 2px 16px;
  }
  .foot-base .foot-icp {
    min-height: 32px;
  }
  .foot-note {
    margin-left: 0;
  }
}

/* 卡片按钮在窄屏不要被压扁 */
.tool-card .link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.i-arrow.i-down {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

/* ---------- 安装提示 ---------- */
.install-note {
  margin-top: 34px;
  padding: 26px 28px;
  border: 1px solid var(--outline);
  border-radius: 14px;
  background: var(--surface);
}

.install-note h3 {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.install-note ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.install-note li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 11px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.install-note li:last-child {
  margin-bottom: 0;
}

.install-note li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--outline);
}

.install-note strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- 版本说明 ---------- */
.changelog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 44px;
  margin-top: 6px;
}

.log-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--outline);
  margin-bottom: 28px;
}

.log-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.log-latest {
  font-size: 13px;
  color: var(--accent);
  white-space: nowrap;
}

.log-item {
  position: relative;
  padding-left: 22px;
  margin-bottom: 32px;
}

.log-item:last-child {
  margin-bottom: 0;
}

.log-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--outline);
}

.log-item:first-of-type::before {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(206, 69, 19, .12);
}

[data-theme="dark"] .log-item:first-of-type::before {
  box-shadow: 0 0 0 3px rgba(255, 154, 72, .16);
}

.log-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 7px;
}

.log-ver {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}

.log-meta time {
  font-size: 12px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.log-tag {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(206, 69, 19, .35);
  background: rgba(206, 69, 19, .07);
  color: var(--accent);
  font-size: 11px;
  line-height: 1.6;
}

[data-theme="dark"] .log-tag {
  border-color: rgba(255, 154, 72, .38);
  background: rgba(255, 154, 72, .12);
}

.log-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
}

.log-item ul {
  margin: 0;
  padding-left: 16px;
}

.log-item li {
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.log-item li::marker {
  color: var(--outline);
}

.log-note {
  margin-top: 4px;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--surface);
}

.log-note p {
  margin: 0;
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
}

.log-note strong {
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 720px) {
  .install-note {
    padding: 20px 18px;
    margin-top: 26px;
  }
  .changelog {
    gap: 36px;
  }
  .log-item {
    padding-left: 18px;
    margin-bottom: 26px;
  }
}
