/* ═══════════════════════════════════════════
   Tools-Web · 前台样式
   ═══════════════════════════════════════════ */

:root {
  --bg: #F5F6F8;
  --surface: #FFFFFF;
  --surface-2: #FAFBFC;
  --line: #E9EBEF;
  --line-strong: #DCE0E6;
  --ink: #1F2328;
  --ink-2: #5B6472;
  --ink-3: #98A1AF;
  --brand: #5B5BD6;
  --brand-ink: #4646C6;
  --brand-soft: #EFEFFC;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-md: 0 6px 20px -6px rgba(16, 24, 40, .12);
  --shadow-lg: 0 24px 60px -20px rgba(16, 24, 40, .18);
  --radius: 12px;
  --sidebar-w: 232px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
          "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }

::selection { background: #DDDDF9; color: var(--brand-ink); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ═══ 布局 ═══ */

.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
}

.app > * { min-width: 0; }

/* ── 侧栏 ─────────────────────────────── */

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 22px 14px 18px;
  overflow: hidden;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 15px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 0;
  flex: 1;
  min-width: 0;
  text-align: center;
}

.admin-mini {
  display: none;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-2);
  transition: border-color .16s ease, color .16s ease;
}

.admin-mini svg { width: 15px; height: 15px; }
.admin-mini__text { display: none; }
.admin-mini:hover { border-color: var(--line-strong); color: var(--ink); }

.brand__logo {
  height: 34px;
  width: auto;
  display: block;
  flex: none;
  transition: opacity .2s ease;
}

.brand:hover .brand__logo { opacity: .76; }

.brand__sub {
  font-size: 10.5px;
  color: #9BA4B1;
  letter-spacing: .11em;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 6px;
  padding: 13px 10px 0;
  border-top: 1px solid var(--line);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--ink-3);
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.nav-label svg { width: 12px; height: 12px; opacity: .7; }

.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}

.nav::-webkit-scrollbar { width: 6px; }
.nav::-webkit-scrollbar-thumb { background: #E2E5EA; border-radius: 99px; }
.nav::-webkit-scrollbar-track { background: transparent; }

.nav__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  height: 37px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--ink-2);
  transition: background .16s ease, color .16s ease;
}

.nav__item svg {
  width: 15px;
  height: 15px;
  flex: none;
  opacity: .55;
  transition: opacity .16s ease, color .16s ease;
}

.nav__item:hover { background: #F5F6F8; color: var(--ink); }
.nav__item:hover svg { opacity: .8; }

.nav__item.is-active {
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-weight: 550;
}

.nav__item.is-active svg { opacity: 1; color: var(--brand); }

.nav__item.is-active::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--brand);
}

.nav__count {
  margin-left: auto;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
  background: #F1F3F6;
  border-radius: 5px;
  padding: 1px 6px;
  min-width: 20px;
  text-align: center;
}

.nav__item.is-active .nav__count {
  background: #fff;
  color: var(--brand);
}

.sidebar__foot {
  margin-top: auto;
  padding: 16px 10px 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar__link {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 10px;
  margin: 0 -10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-2);
  transition: background .16s ease, color .16s ease;
}

.sidebar__link svg { width: 14px; height: 14px; opacity: .55; }
.sidebar__link:hover { background: #F5F6F8; color: var(--ink); }

/* ── 主区 ─────────────────────────────── */

.main {
  padding: 24px clamp(20px, 3.4vw, 40px) 72px;
  max-width: 1520px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}

.search {
  position: relative;
  flex: 1;
  max-width: 380px;
}

.search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--ink-3);
  pointer-events: none;
}

.search input {
  width: 100%;
  height: 38px;
  padding: 0 34px 0 36px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13.5px;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.search input::placeholder { color: var(--ink-3); }

.search input:focus {
  outline: none;
  border-color: #C3C3F0;
  box-shadow: 0 0 0 3px rgba(91, 91, 214, .1);
}

.search__clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: #EDEFF3;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  display: none;
}

.search.has-value .search__clear { display: block; }

.topbar__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all .16s ease;
  white-space: nowrap;
}

.btn svg { width: 15px; height: 15px; }

.btn--sm {
  height: 32px;
  padding: 0 11px;
  font-size: 12.5px;
  gap: 5px;
  color: var(--ink-2);
}

.btn--sm svg { width: 13px; height: 13px; }
.btn:hover { border-color: var(--line-strong); color: var(--ink); box-shadow: var(--shadow-sm); }

.btn--primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 2px 8px -2px rgba(91, 91, 214, .5);
}

.btn--primary:hover {
  background: var(--brand-ink);
  border-color: var(--brand-ink);
  color: #fff;
}

/* ── 公告 ─────────────────────────────── */

.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  margin-bottom: 22px;
  background: #FFFDF5;
  border: 1px solid #F6E7BE;
  border-radius: 10px;
  font-size: 13px;
  color: #8A6D1F;
}

.notice svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }

/* ── 分组 ─────────────────────────────── */

.group { margin-bottom: 34px; scroll-margin-top: 20px; }

.group__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 13px;
}

.group__title {
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -.005em;
}

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

.group__desc {
  margin-left: auto;
  font-size: 12px;
  color: var(--ink-3);
}

/* ── 卡片网格 ─────────────────────────── */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 14px;
}

.card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 15px 16px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.card:hover {
  border-color: #D6DAE2;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card__head {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.card__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--c-soft, #F1F3F6);
  color: var(--c, var(--brand));
  transition: transform .18s ease;
}

.card:hover .card__icon { transform: scale(1.05); }

.card__icon svg { width: 19px; height: 19px; }

.card__titles {
  flex: 1;
  min-width: 0;
  padding-top: 1px;
}

.card__title {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -.005em;
  color: var(--ink);
  line-height: 1.35;
}

.card__badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.5;
}

/* 左侧：阶段 · 版本，纯文字，不抢视觉 */
.card__meta {
  display: block;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink-3);
}

.card__stage {
  font-style: normal;
  font-weight: 500;
  color: var(--stage, var(--ink-3));
}

.card__sep { color: #CBD1DA; }

.card__ver-text { color: var(--ink-3); font-size: 9.5px; }

/* 右侧：收费档位，唯一带底色的标签 */
.card__price {
  flex: none;
  padding: 1px 4px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.7;
  white-space: nowrap;
}

.card__price[data-price="free"]    { color: #0E9F6E; background: #E9F8F1; }
.card__price[data-price="trial"]   { color: #B8730D; background: #FEF4E2; }
.card__price[data-price="partial"] { color: #2563EB; background: #EDF3FE; }
.card__price[data-price="paid"]    { color: #525C6B; background: #EEF0F3; }

/* 右侧标签组 */
.card__tags {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: none;
}

/* 商业售卖：与收费同级的小标签，紫色描边以示区分 */
.card__sale {
  flex: none;
  padding: 1px 4px;
  border-radius: 4px;
  border: 1px solid #E0D3FA;
  background: #F6F1FE;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.7;
  color: #6D28D9;
  white-space: nowrap;
  cursor: help;
}

/* 待开发（已立项无进度） */
.card__pending {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px dashed var(--line-strong);
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .05em;
  color: var(--ink-3);
}

.card__pending::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: .45;
}

/* 卡片内开发进度 */
.card__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
}

.card__label {
  flex: none;
  font-size: 10.5px;
  letter-spacing: .02em;
  color: var(--ink-3);
  white-space: nowrap;
}

.card__label b {
  margin-left: 9px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

.card__bar {
  flex: 0 1 130px;
  height: 5px;
  border-radius: 99px;
  background: #E8EBF0;
  overflow: hidden;
}

.card__bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  transition: width .85s cubic-bezier(.22, 1, .36, 1);
}

.card:hover .card__bar i { filter: brightness(1.06); }

.card__desc {
  margin-top: 11px;
  font-size: 12.5px;
  line-height: 1.62;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card--external .card__title::after {
  content: "↗";
  font-size: 11px;
  color: var(--ink-3);
  margin-left: 7px;
  vertical-align: 1px;
}

/* ── 空状态 ───────────────────────────── */

.empty {
  padding: 70px 20px;
  text-align: center;
  color: var(--ink-3);
}

.empty svg { width: 34px; height: 34px; margin-bottom: 12px; opacity: .4; }
.empty p { font-size: 13.5px; }

/* ── 页脚 ─────────────────────────────── */

.foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 0;
  font-size: 12px;
  color: var(--ink-3);
}

#footText { text-align: center; }

.foot a { color: var(--ink-2); }
.foot a:hover { color: var(--brand); }

/* 备案号：保留链接语义，hover 才出下划线 */
.foot__icp:not([hidden])::before {
  content: "·";
  margin: 0 9px;
  opacity: .55;
}

.foot__icp {
  color: var(--ink-3);
  white-space: nowrap;
  transition: color .2s ease;
  -webkit-tap-highlight-color: transparent;
}

.foot__icp:hover {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.foot__icp[hidden] { display: none; }

/* ═══ 工具页 ═══ */

.page-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--brand); }
.crumbs span { opacity: .5; }

.tool-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.tool-head__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--c-soft);
  color: var(--c);
}

.tool-head__icon svg { width: 23px; height: 23px; }

.tool-head h1 { font-size: 19px; letter-spacing: -.015em; }
.tool-head p { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
  max-width: 780px;
}

.panel--wide { max-width: 980px; }

.field { margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }

.field__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 6px;
}

.field__label span { color: var(--ink-3); font-weight: 400; }

.input,
.textarea,
.select {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13.5px;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.textarea {
  min-height: 130px;
  resize: vertical;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: #C3C3F0;
  box-shadow: 0 0 0 3px rgba(91, 91, 214, .1);
}

.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.row > .field { flex: 1; min-width: 120px; margin-bottom: 0; }

.toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.hint {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 8px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 10px;
}

.status.is-ok { color: #0E9F6E; }
.status.is-error { color: #E02424; }

.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.output {
  margin-top: 14px;
  padding: 12px 13px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 9px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 380px;
  overflow: auto;
}

/* 换算器 */
.convert {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: end;
}

.convert__swap {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all .16s ease;
}

.convert__swap:hover { border-color: var(--brand); color: var(--brand); }
.convert__swap svg { width: 16px; height: 16px; }

.convert__big {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  padding: 6px 0 2px;
}

.convert__unit { font-size: 12px; color: var(--ink-3); }

/* 结果网格 */
.results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.result-item {
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.result-item b {
  display: block;
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
  word-break: break-all;
}

.result-item span {
  font-size: 11.5px;
  color: var(--ink-3);
}

/* 颜色预览 */
.swatch {
  height: 64px;
  border-radius: 10px;
  border: 1px solid var(--line);
  margin-bottom: 14px;
}

/* 高亮 */
mark {
  background: #FEF3C7;
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}

/* ═══ 技能页 ═══ */

.skills-wrap {
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 0 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.skills-head { text-align: center; margin-bottom: 34px; }

.skills-head h1 {
  font-size: 30px;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}

.skills-head p { font-size: 13.5px; color: var(--ink-2); }

.skills-grid {
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.skills-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px 16px;
  box-shadow: var(--shadow-md);
}

.skills-card__title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.legend {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--ink-2);
  margin: 10px 0 0 4px;
}

.legend i {
  width: 15px;
  height: 9px;
  border-radius: 2px;
  border: 1.5px solid var(--brand);
  background: rgba(91, 91, 214, .18);
  display: block;
}

.radar { display: block; width: 100%; height: auto; overflow: visible; }

#radar {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 0;
}

.bars {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 6px;
  justify-content: space-between;
  flex: 1;
}

.bar__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.bar__label { font-size: 13.5px; color: var(--ink); }
.bar__value {
  font-size: 13px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.bar__track {
  height: 7px;
  border-radius: 99px;
  background: #EDEFF3;
  overflow: hidden;
}

.bar__fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #6E6EF0, #5B5BD6);
  width: 0;
  transition: width 1.1s cubic-bezier(.22, 1, .36, 1);
}

/* ═══ 工具页 ═══ */

.tool-hero {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}

.tool-hero__icon {
  width: 56px;
  height: 56px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--c-soft, #F1F3F6);
  color: var(--c, var(--brand));
}

.tool-hero__icon svg { width: 27px; height: 27px; }

.tool-hero__body { min-width: 0; padding-top: 2px; }

.tool-hero h1 {
  font-size: 21px;
  letter-spacing: -.02em;
  line-height: 1.3;
}

.tool-hero__desc {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.7;
  margin-top: 5px;
}

.tool-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

/* 标签 */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink-2);
  white-space: nowrap;
}

.pill svg { width: 11px; height: 11px; }

.pill--stage {
  color: var(--p, var(--ink-2));
  border-color: transparent;
  background: #F6F7F9;
}

.pill--ver[data-ver="dev"] { border-style: dashed; color: #8A93A0; }
.pill--ver[data-ver="internal"] { color: #7A66D0; background: #F5F3FD; border-color: #E1DAF7; }
.pill--ver[data-ver="beta"] { color: #3778CE; background: #F2F7FD; border-color: #D4E3F6; }
.pill--ver[data-ver="stable"] { color: #0E9F6E; background: #F0FAF5; border-color: #C8EAD9; }

.pill--price[data-price="free"]    { color: #0E9F6E; background: #E9F8F1; border-color: #C8EAD9; }
.pill--price[data-price="trial"]   { color: #B8730D; background: #FEF4E2; border-color: #F3E2BC; }
.pill--price[data-price="partial"] { color: #2563EB; background: #EDF3FE; border-color: #D4E3F6; }
.pill--price[data-price="paid"]    { color: #525C6B; background: #EEF0F3; border-color: #DFE3E9; }
.pill--sale { color: #5B21B6; background: #F2ECFE; border-color: #DCCDF9; }

.pill--lock {
  color: #B4791F;
  background: #FFF9EC;
  border-color: #F3E2BC;
}

/* 主体两栏 */
.tool-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: 44px;
  align-items: start;
}

.tool-about__title,
.tool-meta__title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}

.tool-about__text {
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-2);
  white-space: pre-line;
  max-width: 52ch;
}

.tool-about__text p + p { margin-top: 12px; }

.tool-about__note {
  font-size: 12.5px;
  color: var(--ink-3);
  padding-left: 12px;
  border-left: 2px solid var(--line);
  line-height: 1.8;
}

.meta-list { display: flex; flex-direction: column; }

.meta-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid #F1F3F6;
  font-size: 12.5px;
}

.meta-list > div:last-child { border-bottom: 0; }

.meta-list dt { color: var(--ink-3); flex: none; }
.meta-list dd { margin: 0; color: var(--ink); text-align: right; font-weight: 500; }

/* 行动区 */
.tool-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.btn--lg {
  height: 44px;
  padding: 0 22px;
  font-size: 14px;
  border-radius: 10px;
  gap: 7px;
}

.btn--lg svg { width: 16px; height: 16px; }

.tool-cta__hint {
  font-size: 12px;
  color: var(--ink-3);
}

/* 运行区 */
.tool-stage {
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  animation: stageIn .35s cubic-bezier(.22, 1, .36, 1);
}

@keyframes stageIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.stage-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 52px 24px 46px;
}

.stage-inner__icon {
  width: 56px;
  height: 56px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--c-soft);
  color: var(--c);
  margin-bottom: 16px;
}

.stage-inner__icon svg { width: 26px; height: 26px; }

.stage-inner h3 { font-size: 17px; margin-bottom: 8px; }

.stage-inner p {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.8;
  max-width: 340px;
  margin-bottom: 22px;
}

/* 体验须知 */
.notice-mask {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(17, 24, 39, .45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.notice-mask.is-open { display: flex; }

.notice-card {
  width: 100%;
  max-width: 432px;
  background: var(--surface);
  border-radius: 16px;
  padding: 24px 26px 20px;
  box-shadow: 0 40px 90px -30px rgba(16, 24, 40, .45);
  animation: stageIn .26s cubic-bezier(.22, 1, .36, 1);
}

.notice-card__head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}

.notice-card__icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #FFF9EC;
  color: #B4791F;
  flex: none;
}

.notice-card__icon svg { width: 16px; height: 16px; }

.notice-card__badge {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .06em;
  padding: 3px 9px;
  border-radius: 5px;
  border: 1px solid transparent;
}

.notice-card h2 {
  font-size: 17px;
  letter-spacing: -.015em;
  margin-bottom: 12px;
}

.notice-list {
  margin: 0 0 20px;
  padding-left: 16px;
  list-style: none;
}

.notice-list li {
  position: relative;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--ink-2);
  margin-bottom: 9px;
}

.notice-list li::before {
  content: "";
  position: absolute;
  left: -13px;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink-3);
}

.notice-list li:last-child { margin-bottom: 0; }

.notice-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.notice-actions .btn { height: 40px; padding: 0 16px; font-size: 13px; }

/* 小程序二维码 */
.qr-panel {
  margin-top: 28px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.qr-panel__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 18px;
}

.qr-panel__head h2 { font-size: 14px; font-weight: 600; }
.qr-panel__head p { font-size: 12px; color: var(--ink-3); }

.qr-panel__grid { display: flex; gap: 14px; flex-wrap: wrap; }

.qr-item {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px 13px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}

.qr-item--test { border-style: dashed; }

.qr-item__img {
  width: 92px;
  height: 92px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: zoom-in;
  flex: none;
  display: block;
}

.qr-item__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.qr-item figcaption b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.qr-item figcaption span {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--ink-3);
}

/* 二维码放大 */
.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 24, 39, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.qr-modal.is-open { display: flex; }

.qr-modal__inner {
  background: #fff;
  border-radius: 16px;
  padding: 18px 18px 16px;
  text-align: center;
  box-shadow: 0 40px 90px -30px rgba(16, 24, 40, .5);
  animation: stageIn .22s cubic-bezier(.22, 1, .36, 1);
}

.qr-modal__inner img {
  width: 248px;
  height: 248px;
  object-fit: contain;
  display: block;
}

.qr-modal__inner span {
  display: block;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--ink-2);
}

/* 同类工具 */
.related {
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.related__title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}

.related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 10px;
}

.related__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.related__item:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.related__icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--c-soft, #F1F3F6);
  color: var(--c, var(--brand));
}

.related__icon svg { width: 14px; height: 14px; }

.related__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related__stage {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 500;
  flex: none;
}

/* 访问码 */
.unlock-mask {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(17, 24, 39, .4);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.unlock-mask.is-open { display: flex; }

.unlock-card {
  width: 100%;
  max-width: 362px;
  background: var(--surface);
  border-radius: 16px;
  padding: 30px 26px 24px;
  text-align: center;
  box-shadow: 0 40px 90px -30px rgba(16, 24, 40, .45);
  animation: stageIn .28s cubic-bezier(.22, 1, .36, 1);
}

.unlock-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  background: #FFF9EC;
  color: #B4791F;
}

.unlock-card__icon svg { width: 22px; height: 22px; }

.unlock-card h2 { font-size: 17px; letter-spacing: -.015em; }

.unlock-card p {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.7;
  margin: 7px 0 18px;
}

.unlock-input {
  height: 44px;
  text-align: center;
  letter-spacing: .12em;
  font-size: 15px;
}

.unlock-error {
  display: none;
  font-size: 12px;
  color: #E02424;
  margin-bottom: 10px;
}

.unlock-error.is-on { display: block; }

.unlock-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.unlock-actions .btn { flex: 1; height: 42px; }

/* hidden 属性优先于 display:flex 等类样式 */
[hidden] { display: none !important; }

/* ═══ 账号 ═══ */

.auth-mask {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(18, 20, 24, .42);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .24s var(--ease), visibility .24s;
}

.auth-mask.is-open { opacity: 1; visibility: visible; }

.auth-card {
  position: relative;
  width: 100%;
  max-width: 372px;
  padding: 28px 26px 22px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 32px 80px -28px rgba(16, 24, 40, .4);
  transform: translateY(10px) scale(.98);
  transition: transform .3s cubic-bezier(.16, 1, .3, 1);
}

.auth-mask.is-open .auth-card { transform: none; }

.auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-3);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.auth-close:hover { background: #F3F4F7; color: var(--ink); }

.auth-title { font-size: 19px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 5px; }
.auth-sub { font-size: 12.5px; color: var(--ink-3); margin-bottom: 20px; }

.auth-form { display: flex; flex-direction: column; gap: 13px; }

.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field > span { font-size: 12px; color: var(--ink-2); }
.auth-field .input { height: 40px; }

.auth-error {
  font-size: 12px;
  line-height: 1.6;
  color: #C1332E;
  background: #FDECEC;
  border-radius: 7px;
  padding: 8px 10px;
}

.auth-submit { height: 42px; margin-top: 4px; font-size: 13.5px; }

.auth-switch {
  margin-top: 15px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-3);
}

.auth-link {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--brand-ink);
  cursor: pointer;
}

.auth-link:hover { text-decoration: underline; }

.account-menu {
  position: fixed;
  z-index: 1300;
  min-width: 150px;
  padding: 5px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 40px -18px rgba(16, 24, 40, .28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}

.account-menu.is-open { opacity: 1; visibility: visible; transform: none; }

.account-menu a,
.account-menu button {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: none;
  text-align: left;
  font: inherit;
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
  cursor: pointer;
}

.account-menu a:hover,
.account-menu button:hover { background: #F5F6F8; color: var(--ink); }

.foot-account__out {
  margin-left: auto;
  font-size: 10.5px;
  color: var(--ink-3);
}

.account-mini__initial {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 11px;
  font-weight: 600;
  display: grid;
  place-items: center;
}

#accountMini.is-in { background: var(--brand-soft); border-color: #DCDCF7; }

/* ═══ 开发团队 ═══ */

.skills-head p:empty { display: none; }

.team-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.team-card__title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: 12px;
}

.team-card__intro {
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-2);
  max-width: 720px;
  white-space: pre-wrap;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.team-grid:empty { display: none; }

.team-member {
  display: flex;
  gap: 11px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}

.team-member__avatar {
  width: 37px;
  height: 37px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--mc-soft, #EFEFFC);
  color: var(--mc, var(--brand-ink));
}

.team-member__avatar svg { width: 18px; height: 18px; }

.team-member__name { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.team-member__role { font-size: 11px; color: var(--ink-3); margin-bottom: 5px; }
.team-member__bio { font-size: 11.5px; line-height: 1.7; color: var(--ink-2); }

/* 桌面端：介绍在左，成员在右 */
@media (min-width: 1024px) {
  .team-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 330px);
    column-gap: 36px;
    align-items: start;
  }

  .team-card__title { grid-column: 1 / -1; }

  .team-card__intro { grid-column: 1; }

  .team-grid {
    grid-column: 2;
    grid-row: 2;
    grid-template-columns: 1fr;
    margin-top: 0;
  }
}

@media (max-width: 599px) {
  .team-card { padding: 18px 16px; }
  .team-grid { grid-template-columns: 1fr; }
}

/* ═══ 维护中 ═══ */

.maint {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 96px 24px 80px;
}

.maint__icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--c-soft, #F1F3F6);
  color: var(--c, var(--ink-2));
  margin-bottom: 20px;
}

.maint__icon svg { width: 28px; height: 28px; }

.maint h1 {
  font-size: 20px;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}

.maint p {
  max-width: 360px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--ink-2);
  margin-bottom: 26px;
}

.maint-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.maint__icon--lock {
  background: var(--brand-soft);
  color: var(--brand-ink);
}

.maint-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 9px 14px;
  border-radius: 8px;
  background: #FDECEC;
  border: 1px solid #F7D6D4;
  color: #C1332E;
  font-size: 12px;
}

.maint-bar svg { width: 14px; height: 14px; flex: none; }

/* 维护态卡片：整体灰化 + 正中提示 */
.card--offline .card__badge {
  justify-content: flex-end;
  margin-top: 2px;
}

.card--offline {
  position: relative;
  overflow: hidden;
  background: linear-gradient(158deg, #FBFCFD 0%, #F1F3F6 48%, #E6E9EF 100%);
  border-color: #E1E5EB;
}

/* 只把描述和底部压灰，标题与状态保持可读 */
.card--offline .card__desc,
.card--maint .card__foot {
  opacity: .45;
  filter: grayscale(1);
}

.card--offline .card__title {
  color: #4A5058;
}

.card--offline .card__icon {
  background: #FDECEC;
  color: #C1332E;
  opacity: .92;
}

.card--offline::after {
  content: attr(data-offline);
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .3em;
  text-indent: .3em;
  color: var(--brand-ink);
  text-shadow:
    0 1px 1px rgba(255, 255, 255, .95),
    0 0 18px rgba(255, 255, 255, 1);
  pointer-events: none;
}

/* ═══ 未开放的项目 ═══ */

.card--soon {
  cursor: default;
  user-select: none;
}

.card--soon:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
  border-color: var(--line);
}

.card--soon:hover .card__icon { transform: none; }
.card--soon:hover .card__bar i { filter: none; }

.page-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 950;
  max-width: min(92vw, 440px);
  padding: 15px 22px;
  border-radius: 12px;
  background: rgba(23, 22, 20, .94);
  color: #fff;
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, calc(-50% + 14px)) scale(.94);
  transition:
    opacity .36s cubic-bezier(.22, 1, .36, 1),
    transform .36s cubic-bezier(.22, 1, .36, 1),
    visibility .36s;
  pointer-events: none;
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .55);
  will-change: opacity, transform;
}

.page-toast.is-on {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

/* ═══ 回到顶部 ═══ */

.to-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(20px + env(safe-area-inset-bottom));
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink-2);
  cursor: pointer;
  z-index: 80;
  box-shadow: 0 8px 24px -10px rgba(16, 24, 40, .32);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:active { transform: scale(.94); }
.to-top svg { width: 18px; height: 18px; }

/* ═══ 响应式 ═══════════════════════════════════════════
   ≥1024   平板横屏 / 桌面
   600–1023 折叠屏展开（Mate X6 748、Mate XT 744、Pura X 706）
            平板竖屏（iPad 768 / 820 / 834）
   ≤599    手机（iPhone 17 Pro Max 440、Mate 90 PM 约 438）
            折叠态（Mate X6 外屏约 360–400）
            阔折叠外屏（Pura X 327）
   ═════════════════════════════════════════════════════ */

/* ── 折叠屏展开 / 平板竖屏 ───────────────── */
@media (max-width: 1023px) {
  :root { --sidebar-w: 208px; }

  .sidebar { padding: 18px 12px 16px; }
  .brand__logo { height: 30px; }
  .brand { padding: 6px 6px 0; }

  .main { padding: 20px 24px 64px; }

  .grid { grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 12px; }
  .card { padding: 13px 14px 14px; }
  .card__icon { width: 34px; height: 34px; border-radius: 9px; }
  .card__icon svg { width: 17px; height: 17px; }
  .card__desc { margin-top: 9px; }

  .skills-grid { grid-template-columns: 1fr; }
  .skills-card { max-width: 520px; margin: 0 auto; width: 100%; }

  .tool-body { grid-template-columns: 1fr; gap: 30px; }
}

/* ── 手机 ─────────────────────────────────── */
@media (max-width: 599px) {
  .app { grid-template-columns: 1fr; }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 50;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: calc(10px + env(safe-area-inset-top)) 14px 0;
    overflow: visible;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(14px) saturate(1.15);
    -webkit-backdrop-filter: blur(14px) saturate(1.15);
  }

  .brand-row { padding-bottom: 10px; }
  .brand {
    flex: none;
    padding: 0 2px;
    gap: 0;
    align-items: flex-start;
    text-align: left;
    min-width: 0;
  }
  .brand__logo { height: 20px; }
  .brand__sub { display: none; }

  .admin-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 0 0 auto;
    width: max-content;
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
    border-radius: 9px;
    background: #FAFBFC;
  }

  .admin-mini svg { width: 15px; height: 15px; }

  .admin-mini__text {
    display: inline;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--ink-2);
    white-space: nowrap;
  }

  /* 后台只留图标，避免一行太满 */
  #adminMini { width: 34px; min-width: 34px; padding: 0; background: var(--surface); }
  #adminMini .admin-mini__text { display: none; }

  .page-bar .btn--sm { display: none; }
  .nav-label { display: none; }

  .nav {
    flex: none;
    flex-direction: row;
    gap: 6px;
    min-height: auto;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  .nav::-webkit-scrollbar { display: none; }

  .nav__item {
    height: 38px;
    padding: 0 14px;
    flex: none;
    font-size: 13.5px;
    background: #F5F6F8;
    white-space: nowrap;
    scroll-snap-align: center;
    -webkit-tap-highlight-color: transparent;
  }

  .nav__item svg,
  .nav__count,
  .nav__item.is-active::before { display: none; }

  .sidebar__foot { display: none; }

  .main {
    padding: 16px max(16px, env(safe-area-inset-right))
             calc(56px + env(safe-area-inset-bottom))
             max(16px, env(safe-area-inset-left));
  }

  .topbar { flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
  .search { max-width: none; flex: 1 1 100%; order: 2; }

  /* 16px 以下 iOS 会在聚焦时自动放大整个页面 */
  .search input { height: 42px; font-size: 16px; }
  .search svg { width: 16px; height: 16px; left: 13px; }

  /* 手机上入口收进头部图标，顶栏只留搜索 */
  .topbar__right { display: none; }

  .grid { gap: 12px; }
  .group { margin-bottom: 28px; }
  .group__title { font-size: 15px; }
  .group__desc { display: none; }
  .card { padding: 14px 15px 15px; }
  .card__title { font-size: 14px; }
  .card__bar { flex-basis: 152px; }
  .card__desc { font-size: 12.5px; }

  .page-bar { margin-bottom: 14px; }
  .page-bar--solo { display: none; }
  .crumbs { font-size: 12px; }

  .skills-head { margin-bottom: 22px; }
  .skills-head h1 { font-size: 23px; }
  .skills-card { padding: 16px 16px 12px; }
  .bar__label { font-size: 13px; }

  .tool-hero { flex-direction: column; gap: 13px; padding-bottom: 18px; margin-bottom: 20px; }
  .tool-hero__icon { width: 48px; height: 48px; border-radius: 13px; }
  .tool-hero__icon svg { width: 23px; height: 23px; }
  .tool-hero h1 { font-size: 19px; }
  .tool-hero__desc { font-size: 12.5px; }
  .tool-about__text { font-size: 13.5px; }
  .btn--lg { width: 100%; justify-content: center; }
  .tool-cta__hint { width: 100%; text-align: center; }
  .stage-inner { padding: 40px 18px 36px; }
  .qr-panel { padding: 16px; }
  .qr-item { flex: 1 1 100%; }
  .qr-item__img { width: 84px; height: 84px; }
  .qr-modal__inner img { width: 200px; height: 200px; }
  .notice-card { padding: 20px 18px 16px; }
  .notice-list li { font-size: 12px; }
  .notice-actions { flex-direction: column-reverse; }
  .notice-actions .btn { width: 100%; height: 42px; }
  .unlock-card { padding: 26px 20px 20px; }

  .panel { padding: 17px; border-radius: 12px; }
  .soon { padding: 40px 12px 36px; }
  .soon h2 { font-size: 19px; }
  .soon p { font-size: 13px; }
  .soon__icon { width: 56px; height: 56px; border-radius: 15px; }
  .soon__icon svg { width: 26px; height: 26px; }
  .soon__actions .btn { height: 44px; padding: 0 20px; }

  .foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    font-size: 11.5px;
  }

  .foot__icp:not([hidden])::before { display: none; }
}

/* ── 小屏手机：Pura X 外屏 327、老机型 360 ─────── */
@media (max-width: 380px) {
  .main { padding-left: max(13px, env(safe-area-inset-left));
          padding-right: max(13px, env(safe-area-inset-right)); }
  .grid { grid-template-columns: 1fr; }
  .card__desc { -webkit-line-clamp: 3; }

  .brand__logo { height: 20px; }
  .admin-mini { height: 33px; }
  .nav__item { height: 35px; padding: 0 12px; font-size: 13px; }
  .search input { height: 40px; }
  .group__title { font-size: 14.5px; }
}

/* ── 手机横屏：高度吃紧，压缩头部 ─────────────── */
@media (orientation: landscape) and (max-height: 500px) {
  .sidebar { padding-top: calc(6px + env(safe-area-inset-top)); }
  .brand-row { padding-bottom: 7px; }
  .brand__logo { height: 18px; }
  .nav__item { height: 32px; }
  .nav { padding-bottom: 7px; }
  .main { padding-top: 12px; }
  .topbar { margin-bottom: 14px; }
  .search input { height: 38px; }
}

/* ── 触屏：去掉依赖 hover 的位移与阴影 ───────────── */
@media (hover: none) {
  .card:hover {
    border-color: var(--line);
    box-shadow: none;
    transform: none;
  }
  .card:hover .card__icon { transform: none; }
  .card__views { display: none; }
  .btn:hover { box-shadow: none; }
  .nav__item:hover { background: #F5F6F8; }
  .icon-btn:hover { border-color: var(--line); color: var(--ink-2); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* 雷达图入场 */
@keyframes radarIn {
  from { opacity: 0; transform: scale(.82); }
  to   { opacity: 1; transform: scale(1); }
}

/* 颜色选择字段 */
.color-field {
  display: flex;
  align-items: center;
  gap: 9px;
}

.color-field input[type="color"] {
  width: 44px;
  height: 36px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  flex: none;
}

.color-field span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
  letter-spacing: .02em;
  text-transform: uppercase;
}

/* 空的柱状 */
.spark__bar.is-empty {
  background: #EDEFF3;
  min-height: 2px;
}

/* ═══ 工具占位 ═══ */

.panel--soon { max-width: 660px; }

.soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 54px 24px 46px;
}

.soon__icon {
  width: 64px;
  height: 64px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  background: var(--c-soft, #F1F3F6);
  color: var(--c, var(--brand));
  margin-bottom: 18px;
}

.soon__icon svg { width: 30px; height: 30px; }

.soon__tag {
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 4px 11px;
  border-radius: 99px;
  font-weight: 500;
}

.soon__tag--go { color: #0E9F6E; background: #E7F7F0; }

.soon h2 {
  font-size: 22px;
  letter-spacing: -.018em;
  margin: 15px 0 9px;
}

.soon p {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-2);
  max-width: 390px;
  margin: 0;
}

.soon__meta {
  margin-top: 15px;
  font-size: 11.5px;
  color: var(--ink-3);
  font-family: var(--mono);
  word-break: break-all;
}

.soon__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}
