/* ==========================================================================
   新前台内页版式（V5.9）
   --------------------------------------------------------------------------
   只服务「我的 / 记录 / 学习卡 / 一起学」四页。这四页原来靠 style.css 里的
   .me-* / .rec-* / .study-* / .learn-* 撑版式，而新外壳不加载 style.css
   （旧道场的视觉一个字节都不进来），所以这里用 .dc-* 令牌重写一套版式。

   约定：
   · 只用 variables.css 的令牌（--color-* / --radius-* / --dur-* / --ease-out），
     不写死颜色，主题切换与 data-motion="off" 自动生效；
   · 类名一律 dc- 前缀，与旧 style.css 零冲突（两套样式表不会同时加载）；
   · 只做版式，不做业务状态（状态由页面自己加 .is-on / .is-err 等）。
   ========================================================================== */

/* ---------- 页头 ----------
   标题由 dc_shell_top() 统一输出（.dc-page-title），页面正文只写一句说明（.dc-page-lede），
   所以这里不再重复定义标题字号，避免两处各写一套。 */
.dc-page-head { margin-bottom: 20px; }

.dc-page-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

/* 页面正文的一句说明（标题已由外壳输出，这里只承接说明文字） */
.dc-page-lede {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* ---------- 分区 ---------- */
.dc-sec { margin-bottom: 28px; }

.dc-sec-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
}

.dc-sec-sub {
  margin: -6px 0 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* 卡片之间统一留白（.card 本身在 global.css） */
.dc-main > .card + .card,
.dc-main > .dc-sec + .dc-sec { margin-top: 18px; }

/* ---------- 文字 ---------- */
.dc-muted { color: var(--color-text-muted); }
.dc-small { font-size: 13px; line-height: 1.7; }
.dc-faint { color: var(--color-text-faint); }
.dc-num { font-variant-numeric: tabular-nums; }

/* ---------- 按钮行 ---------- */
.dc-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.dc-row .btn-primary,
.dc-row .btn-ghost { min-height: 44px; }

/* 小号按钮：卡片内的次级动作 */
.dc-btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-line);
  background: var(--color-card);
  color: var(--color-text);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}

.dc-btn-sm:hover {
  border-color: var(--color-line-strong);
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-primary-ink);
}

.dc-btn-sm.is-on {
  border-color: var(--color-primary);
  background: rgba(108, 99, 255, 0.1);
  color: var(--color-primary-ink);
}

.dc-btn-sm.is-danger { color: #C0392B; border-color: rgba(192, 57, 43, 0.28); }
.dc-btn-sm.is-danger:hover { background: rgba(192, 57, 43, 0.06); color: #A93226; }

/* ---------- 提示条 ---------- */
.dc-notice {
  margin: 0 0 18px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.6;
  border: 1px solid var(--color-line);
  background: var(--color-card);
  color: var(--color-text);
}

.dc-notice.is-ok { border-color: rgba(46, 160, 110, 0.32); background: rgba(46, 160, 110, 0.08); }
.dc-notice.is-err { border-color: rgba(192, 57, 43, 0.32); background: rgba(192, 57, 43, 0.07); }

/* ---------- 统计四格 ---------- */
.dc-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 10px;
}

.dc-stat {
  padding: 18px 12px;
  border-radius: var(--radius-md);
  background: var(--color-card);
  border: 1px solid var(--color-line);
  text-align: center;
}

.dc-stat b {
  display: block;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-primary-ink);
  font-variant-numeric: tabular-nums;
}

.dc-stat em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 12px;
  color: var(--color-text-muted);
}

/* ---------- 列表（记录 / 卡组 / 房间通用） ---------- */
.dc-list { list-style: none; margin: 0; padding: 0; }

.dc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-line);
}

.dc-item:last-child { border-bottom: 0; padding-bottom: 0; }
.dc-item:first-child { padding-top: 0; }

.dc-item-main { flex: 1 1 auto; min-width: 0; }

.dc-item-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a.dc-item-title:hover { color: var(--color-primary-ink); }

.dc-item-meta {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.dc-item-note {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--color-text-faint);
}

.dc-item-act { flex: 0 0 auto; }

/* ---------- 标签 ---------- */
.dc-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  line-height: 1.7;
  background: rgba(108, 99, 255, 0.1);
  color: var(--color-primary-ink);
}

.dc-tag.is-warn { background: rgba(255, 107, 157, 0.12); color: #C2417A; }
.dc-tag.is-quiet { background: rgba(107, 114, 128, 0.1); color: var(--color-text-muted); }

/* ---------- 表单 ---------- */
.dc-field { display: block; margin-bottom: 14px; }

.dc-field > span {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.dc-input,
.dc-select,
.dc-textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-line);
  background: var(--color-card-solid);
  color: var(--color-text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}

.dc-input:focus,
.dc-select:focus,
.dc-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.14);
}

.dc-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 14px;
  color: var(--color-text);
  cursor: pointer;
}

/* ---------- 空态 ---------- */
.dc-empty {
  padding: 28px 20px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--color-line-strong);
  background: var(--color-surface-2);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.dc-empty .dc-row { justify-content: center; }

/* ---------- 锚点跳转条 ---------- */
.dc-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}

.dc-jump a {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-line);
  background: var(--color-card);
  font-size: 13px;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}

.dc-jump a:hover { color: var(--color-primary-ink); border-color: var(--color-line-strong); }

/* 锚点落点不被 sticky 顶栏压住 */
.dc-sec[id],
.dc-anchor { scroll-margin-top: 84px; }

/* ---------- 身份块 ---------- */
.dc-id {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.dc-id-avatar {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(108, 99, 255, 0.12);
  color: var(--color-primary-ink);
  font-size: 22px;
  font-weight: 700;
}

.dc-id-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.dc-id-text { flex: 1 1 180px; min-width: 0; }

.dc-id-name {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
}

.dc-id-meta {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ---------- 进度条 ---------- */
.dc-bar {
  height: 8px;
  border-radius: var(--radius-pill);
  background: rgba(108, 99, 255, 0.12);
  overflow: hidden;
}

.dc-bar > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--color-primary-light), var(--color-primary));
  transition: width var(--dur-slow) var(--ease-out);
}

/* ---------- 徽章格 ---------- */
.dc-badges {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.dc-badge {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-line);
  background: var(--color-surface-2);
  font-size: 13px;
  color: var(--color-text-muted);
}

.dc-badge.is-got {
  border-color: rgba(108, 99, 255, 0.32);
  background: rgba(108, 99, 255, 0.08);
  color: var(--color-primary-ink);
}

/* ---------- 房间 / 活动卡 ---------- */
.dc-rooms { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

.dc-room {
  display: block;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-line);
  background: var(--color-card);
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}

.dc-room:hover {
  transform: translateY(-2px);
  border-color: var(--color-line-strong);
  box-shadow: var(--shadow-md);
}

.dc-room-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dc-room-name { font-size: 16px; font-weight: 600; color: var(--color-text); }

.dc-room-state {
  flex: 0 0 auto;
  font-size: 12px;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: rgba(107, 114, 128, 0.1);
  color: var(--color-text-muted);
}

.dc-room-state.is-live { background: rgba(46, 160, 110, 0.12); color: #1E7A52; }
.dc-room-state.is-soon { background: rgba(255, 107, 157, 0.12); color: #C2417A; }

.dc-room-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.dc-room-meta em { font-style: normal; }

.dc-room-desc {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.dc-room-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--color-text-faint);
}

.dc-room-cta { color: var(--color-primary-ink); font-weight: 600; }

/* ---------- 筛选 chips ---------- */
.dc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }

.dc-chip {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-line);
  background: var(--color-card);
  font-size: 13px;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}

.dc-chip:hover { color: var(--color-primary-ink); border-color: var(--color-line-strong); }

.dc-chip.is-on {
  border-color: var(--color-primary);
  background: rgba(108, 99, 255, 0.1);
  color: var(--color-primary-ink);
  font-weight: 600;
}

/* ---------- 折叠 ---------- */
.dc-fold {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-line);
  background: var(--color-surface-2);
  padding: 0 16px;
}

.dc-fold > summary {
  padding: 14px 0;
  cursor: pointer;
  font-size: 14px;
  color: var(--color-text-muted);
  list-style: none;
}

.dc-fold > summary::-webkit-details-marker { display: none; }
.dc-fold > summary::before { content: '＋ '; color: var(--color-primary); }
.dc-fold[open] > summary::before { content: '－ '; }
.dc-fold > summary:hover { color: var(--color-primary-ink); }
.dc-fold-body { padding: 0 0 16px; }

/* ==========================================================================
   以下为四页原有类名的 .dc-* 版式重写。
   页面正文沿用原来的类名（.me-* / .rec-* / .study-* / .learn-*），
   这样业务取数、表单、DOM id 一行都不用改；只是把「谁给它们上样式」
   从 style.css 换成这份文件。旧 style.css 不再加载，两套不会打架。
   ========================================================================== */

/* ---------- 我的：五组跳转条 ---------- */
.me-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }

.me-jump a {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-line);
  background: var(--color-card);
  color: var(--color-text-muted);
  font-size: 13px;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}

.me-jump a:hover { color: var(--color-primary-ink); border-color: var(--color-line-strong); }

.me-sec {
  margin: 30px 0 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  scroll-margin-top: 84px;
}

.me-sec:first-of-type { margin-top: 18px; }

/* ---------- 我的：身份块 ---------- */
.me-id { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.me-id-text { display: grid; gap: 2px; margin-right: auto; min-width: 0; }
.me-id-name { font-size: 18px; font-weight: 700; color: var(--color-text); }
.me-id-meta { font-size: 12.5px; color: var(--color-text-muted); }
.me-id-act { flex: none; }

.me-id-avatar {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(108, 99, 255, 0.12);
  border: 1px solid var(--color-line);
}

.me-avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 名字色块头像（arr_avatar 输出的 .avatar.auto.lg） */
.avatar.auto {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  flex: none;
}

/* ---------- 我的：四宫格 ---------- */
.me-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-top: 12px; }
.me-cell { display: flex; flex-direction: column; gap: 8px; }
.me-cell > :last-child { margin-top: auto; }

.me-ico {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  color: var(--color-primary-ink);
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid var(--color-line);
}

/* 图标是 arr_icon() 输出的 SVG，尺寸由这里定（不依赖 style.css 的 .ic） */
.me-ico svg { width: 18px; height: 18px; display: block; }

.me-cell-title { margin: 0; font-size: 15px; font-weight: 600; color: var(--color-text); }
.me-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }

.me-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px dashed var(--color-line);
}

.me-row:last-child { border-bottom: none; }
.me-row-label { font-size: 14px; color: var(--color-text); }
.me-row-link { font-size: 14px; font-weight: 600; color: var(--color-text); text-decoration: none; }
.me-row-link:hover { color: var(--color-primary-ink); }
.me-row-val {
  font-size: 12.5px;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
  justify-self: end;
  text-align: right;
}

.me-row-label, .me-row-link { grid-column: 1; grid-row: 1; }
.me-row-val { grid-column: 2; grid-row: 1; }
.me-row-act { grid-column: 1 / -1; grid-row: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.me-row-note { grid-column: 1 / -1; grid-row: 3; font-size: 12px; color: var(--color-text-muted); line-height: 1.6; }
.me-cell-note { margin: 2px 0 0; font-size: 12.5px; color: var(--color-text-muted); }

.me-row select {
  padding: 6px 8px;
  font-size: 13px;
  border-radius: var(--radius-sm);
  background: var(--color-card-solid);
  color: var(--color-text);
  border: 1px solid var(--color-line);
}

/* 偏好按钮的选中态：prefs.js 用 aria-pressed 标记 */
.me-row-act [aria-pressed="true"] {
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  border-color: transparent;
}

/* ---------- 我的：数据卡 ---------- */
.me-data { margin-top: 12px; }
.me-datalist { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 7px; font-size: 13.5px; }
.me-datalist li { display: flex; align-items: center; gap: 9px; color: var(--color-text-muted); }

.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--color-text-faint); }
.dot.ok { background: #2EA06E; }
.dot.bad { background: #C0392B; }

.me-logout { display: inline-flex; margin: 0; }

/* ---------- 旧类名 .btn / .btn.primary / .btn.ghost 的兼容层 ----------
   四页正文里大量写着 class="btn primary" / "btn ghost" / "btn small"，
   这些类原来由 style.css 提供。新外壳不加载 style.css，所以在这里按
   .dc-* 令牌重写一遍，页面正文一个类名都不用改。 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-line-strong);
  background: var(--color-surface-2);
  color: var(--color-primary-ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}

.btn:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-1px); }

.btn.primary {
  border-color: transparent;
  color: #fff;
  font-weight: 600;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  box-shadow: var(--shadow-primary);
}

.btn.primary:hover { filter: brightness(1.04); }

.btn.ghost { background: var(--color-surface-2); }

.btn.small {
  min-height: 34px;
  padding: 0 14px;
  font-size: 13px;
}

.btn.danger {
  border-color: rgba(192, 57, 43, 0.3);
  color: #C0392B;
  background: rgba(192, 57, 43, 0.06);
}

.btn.danger:hover { background: rgba(192, 57, 43, 0.12); }

/* 按钮行：四页正文统一用 .btn-row */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 0;
}

.btn-row:first-child { margin-top: 0; }

/* 表单字段：正文用 .field / .field-label / .check */
.field { display: block; margin-bottom: 14px; }
.field > span,
.field-label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--color-text-muted); }

.field input[type="text"],
.field input[type="number"],
.field input[type="password"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-line);
  background: var(--color-card-solid);
  color: var(--color-text);
  font-size: 15px;
  font-family: inherit;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.14);
}

.field fieldset { border: 0; padding: 0; margin: 0; }
.field legend { padding: 0; margin-bottom: 6px; font-size: 13px; color: var(--color-text-muted); }

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 14px;
  color: var(--color-text);
  cursor: pointer;
}

/* 提示条：正文用 .notice.ok / .notice.err */
.notice {
  margin: 0 0 18px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.6;
  border: 1px solid var(--color-line);
  background: var(--color-card);
  color: var(--color-text);
}

.notice.ok { border-color: rgba(46, 160, 110, 0.32); background: rgba(46, 160, 110, 0.08); }
.notice.err { border-color: rgba(192, 57, 43, 0.32); background: rgba(192, 57, 43, 0.07); }

/* 空态：正文用 .empty */
.empty {
  margin: 0 0 14px;
  padding: 22px 18px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--color-line-strong);
  background: var(--color-surface-2);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* 通用文字档：正文用 .muted / .small */
.muted { color: var(--color-text-muted); }
.small { font-size: 13px; line-height: 1.7; }
.tabular { font-variant-numeric: tabular-nums; }

/* 返回链接：记录页顶部 */
.back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--color-text-muted);
  text-decoration: none;
}

.back:hover { color: var(--color-primary-ink); }

/* 普通列表：正文用 .plain-list / .entry-list / .promo-list / .policy-list */
.plain-list,
.entry-list,
.promo-list,
.policy-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.plain-list li,
.policy-list li { font-size: 14px; line-height: 1.7; color: var(--color-text-muted); }

.entry {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-line);
}

.entry:last-child { border-bottom: 0; }
.entry-title { flex: 1 1 auto; font-size: 15px; font-weight: 600; color: var(--color-text); }
.entry-meta { font-size: 12.5px; color: var(--color-text-muted); }
.entry-go { font-size: 13px; color: var(--color-primary-ink); text-decoration: none; font-weight: 600; }

.promo-list li a {
  display: block;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-line);
  background: var(--color-card);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}

.promo-list li a:hover { border-color: var(--color-line-strong); transform: translateX(2px); }
.promo-list b { display: block; font-size: 14px; font-weight: 600; color: var(--color-text); }
.promo-list span { display: block; margin-top: 4px; font-size: 13px; color: var(--color-text-muted); line-height: 1.6; }

/* 到场节奏：连续天数 / 今日列表 / 挑战进度 / 徽章 */
.streak-line { display: flex; align-items: baseline; gap: 8px; margin: 0 0 12px; }
.streak-num { font-size: 30px; font-weight: 700; color: var(--color-primary-ink); line-height: 1; }
.rhythm-sub { margin: 18px 0 8px; font-size: 14px; font-weight: 600; color: var(--color-text); }

.today-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }

.today-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  color: var(--color-text);
  padding: 6px 0;
  border-bottom: 1px dashed var(--color-line);
}

.today-list li:last-child { border-bottom: 0; }
.today-time { font-size: 12px; color: var(--color-text-faint); font-variant-numeric: tabular-nums; }

.chal-bar { height: 8px; border-radius: var(--radius-pill); background: rgba(108, 99, 255, 0.12); overflow: hidden; }

.chal-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--color-primary-light), var(--color-primary));
  transition: width var(--dur-slow) var(--ease-out);
}

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

.badge-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-line);
  background: var(--color-surface-2);
  font-size: 13px;
  color: var(--color-text-muted);
}

.badge-cell.got {
  border-color: rgba(108, 99, 255, 0.32);
  background: rgba(108, 99, 255, 0.08);
  color: var(--color-primary-ink);
}

.badge-cell svg { width: 16px; height: 16px; flex: none; }

.badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  background: rgba(108, 99, 255, 0.12);
  color: var(--color-primary-ink);
}

/* 提醒状态点 */
.notify-state { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 14px; }
.notify-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-text-faint); flex: none; }
.notify-dot.on { background: #2EA06E; }

/* 偏好表单 */
.pref-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: 10px; }
.pref-form .field { margin-bottom: 0; flex: 1 1 180px; }

/* 会员身份行 */
.member-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0 0; font-size: 13px; }
.member-line a { color: var(--color-primary-ink); text-decoration: none; }

/* 内测建议卡（Feedback::entry_html 输出，类名由它自己带） */
.feedback-entry { margin-top: 18px; }
.feedback-entry-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }

/* ---------- 记录：四格统计 ---------- */
.rec-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 16px 0 8px; }

.rec-stat {
  padding: 16px 10px;
  border-radius: var(--radius-md);
  background: var(--color-card);
  border: 1px solid var(--color-line);
  text-align: center;
}

.rec-stat b { display: block; font-size: 22px; line-height: 1.2; color: var(--color-primary-ink); }
.rec-stat em { display: block; margin-top: 3px; font-size: 11px; font-style: normal; color: var(--color-text-muted); line-height: 1.4; }
.rec-stats-note { margin: 0 0 18px; line-height: 1.7; }

/* ---------- 记录：三种看法 ---------- */
.rec-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }

.rec-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-line);
  background: var(--color-card);
  font-size: 14px;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}

.rec-tab:hover { color: var(--color-primary-ink); border-color: var(--color-line-strong); }

.rec-tab.on {
  border-color: var(--color-primary);
  background: rgba(108, 99, 255, 0.1);
  color: var(--color-primary-ink);
  font-weight: 600;
}

.rec-tab-n {
  font-size: 12px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: rgba(108, 99, 255, 0.14);
}

/* ---------- 学习卡 ---------- */
.study-hero { margin-bottom: 20px; }
.study-hero .study-due-line { margin: 10px 0 0; font-size: 14px; color: var(--color-text-muted); }
.study-due-num { font-size: 22px; font-weight: 700; color: var(--color-primary-ink); margin-right: 2px; }
.study-due-tag { color: var(--color-primary-ink); font-weight: 600; }

.study-deck-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.study-deck-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-line);
  background: var(--color-card);
  transition: border-color var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}

.study-deck-item:hover { border-color: var(--color-line-strong); transform: translateY(-1px); }
.study-deck-main { flex: 1; min-width: 0; text-decoration: none; color: inherit; display: grid; gap: 3px; }
.study-deck-title { font-weight: 600; font-size: 15px; color: var(--color-text); }
.study-deck-meta { font-size: 12px; color: var(--color-text-muted); }
.study-deck-note { font-size: 12px; color: var(--color-text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.study-deck-go { flex: none; }
.study-deck-recent .study-deck-item { border-color: rgba(108, 99, 255, 0.32); }

.study-form { display: grid; gap: 12px; }
.study-form textarea { width: 100%; resize: vertical; font: inherit; }

.study-sample-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }

.study-sample-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-line);
  background: var(--color-card);
}

.study-sample-main { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 3px; }
.study-sample-title { font-size: 15px; color: var(--color-text); }
.study-sample-meta { font-size: 12px; color: var(--color-text-muted); }
.study-sample-note { font-size: 13px; color: var(--color-text-muted); line-height: 1.5; }
.study-sample-go { flex: 0 0 auto; }

.study-sample-fold { padding: 0; }
.study-sample-sum { padding: 16px 18px; cursor: pointer; font-size: 14px; color: var(--color-text-muted); list-style: none; }
.study-sample-sum::-webkit-details-marker { display: none; }
.study-sample-sum::before { content: '＋ '; color: var(--color-primary); }
.study-sample-fold[open] > .study-sample-sum::before { content: '－ '; }
.study-sample-fold .study-sample-list { padding: 0 18px 16px; margin-top: 0; }

.study-run-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.study-run-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: 14px; }
.study-run-list a { color: var(--color-text); text-decoration: none; font-weight: 600; }
.study-run-list a:hover { color: var(--color-primary-ink); }

/* ---------- 一起学 ---------- */
.learn-wrap { padding-bottom: 56px; }
.learn-sub { margin: 0; color: var(--color-text-muted); font-size: 14px; line-height: 1.7; }

.learn-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--color-text-muted);
}

.learn-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2EA06E;
  box-shadow: 0 0 0 3px rgba(46, 160, 110, 0.16);
}

.learn-sec { margin: 0 0 30px; }
.learn-sec-head { margin: 0 0 14px; }
.learn-sec-title { margin: 0 0 6px; font-size: 18px; font-weight: 600; color: var(--color-text); }
.learn-sec-sub { margin: 0; font-size: 13px; color: var(--color-text-muted); line-height: 1.7; }
.learn-sub-title { font-size: 14px; margin: 18px 0 10px; color: var(--color-text-muted); font-weight: 600; }

.learn-filters { margin: 0 0 14px; }
.learn-filters-sum { padding: 12px 0; cursor: pointer; font-size: 14px; color: var(--color-text-muted); list-style: none; }
.learn-filters-sum::-webkit-details-marker { display: none; }
.learn-filters-sum::before { content: '＋ '; color: var(--color-primary); }
.learn-filters[open] > .learn-filters-sum::before { content: '－ '; }
.learn-filters-sum:hover { color: var(--color-primary-ink); }
.learn-filters-body { padding-top: 4px; }

.learn-cats, .learn-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }

.learn-cat, .learn-kind {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-line);
  background: var(--color-card);
  font-size: 13px;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}

.learn-cat:hover, .learn-kind:hover { color: var(--color-primary-ink); border-color: var(--color-line-strong); }

.learn-cat.is-on, .learn-kind.is-on {
  border-color: var(--color-primary);
  background: rgba(108, 99, 255, 0.1);
  color: var(--color-primary-ink);
  font-weight: 600;
}

.learn-rooms { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; }

.learn-room {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-line);
  background: var(--color-card);
  transition: border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}

.learn-room:hover {
  border-color: var(--color-line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.learn-room.is-paid { border-color: rgba(255, 107, 157, 0.36); }
.learn-room.is-mine { border-color: rgba(108, 99, 255, 0.42); }

.learn-room-link { display: block; padding: 16px 18px; text-decoration: none; color: inherit; }
.learn-room-top { display: flex; align-items: baseline; gap: 10px; justify-content: space-between; }
.learn-room-name { font-size: 16px; font-weight: 600; line-height: 1.4; min-width: 0; color: var(--color-text); }

.learn-room-state {
  flex: 0 0 auto;
  font-size: 12px;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: rgba(107, 114, 128, 0.1);
  color: var(--color-text-muted);
}

.learn-room-state.is-live { background: rgba(46, 160, 110, 0.14); color: #1E7A52; }
.learn-room-state.is-soon { background: rgba(255, 107, 157, 0.14); color: #C2417A; }
.learn-room-state.is-always { background: rgba(108, 99, 255, 0.12); color: var(--color-primary-ink); }

.learn-room-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }

.learn-room-meta em {
  font-style: normal;
  font-size: 12px;
  padding: 1px 8px;
  border-radius: var(--radius-pill);
  background: rgba(107, 114, 128, 0.08);
  color: var(--color-text-muted);
}

.learn-room-meta em.learn-room-paid { background: rgba(255, 107, 157, 0.14); color: #C2417A; }
.learn-room-desc { display: block; margin: 9px 0 0; font-size: 13px; line-height: 1.65; color: var(--color-text-muted); }

.learn-room-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0 0;
  font-size: 12px;
}

.learn-room-people { display: inline-flex; align-items: center; gap: 6px; color: var(--color-text-muted); }

.learn-lamp {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2EA06E;
  box-shadow: 0 0 0 3px rgba(46, 160, 110, 0.16);
}

.learn-lamp.is-off { background: var(--color-text-faint); box-shadow: none; }
.learn-room-cta { color: var(--color-primary-ink); font-weight: 600; }

.learn-camps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.learn-camp-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-line);
  background: var(--color-card);
  transition: border-color var(--dur-base) var(--ease-out);
}

.learn-camp-card:hover { border-color: var(--color-line-strong); }
.learn-camp-link { display: block; padding: 15px 16px; text-decoration: none; color: inherit; }
.learn-camp-name { display: block; font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--color-text); }
.learn-camp-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }

.learn-camp-meta em {
  font-style: normal;
  font-size: 12px;
  padding: 1px 8px;
  border-radius: var(--radius-pill);
  background: rgba(107, 114, 128, 0.08);
  color: var(--color-text-muted);
}

.learn-camp-desc { display: block; margin: 9px 0 0; font-size: 13px; line-height: 1.65; color: var(--color-text-muted); }

.learn-camp-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0 0;
}

.learn-camp-price { font-size: 17px; font-weight: 700; color: var(--color-primary-ink); }
.learn-camp-cta { font-size: 12px; color: var(--color-text-muted); }

.learn-camp-row { margin-top: 10px; }
.learn-camp-row-list, .learn-squad-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.learn-camp-line, .learn-squad-line {
  display: block;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-line);
  background: var(--color-card);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}

.learn-camp-line:hover, .learn-squad-line:hover {
  border-color: var(--color-line-strong);
  transform: translateX(2px);
}

.learn-camp-line b, .learn-squad-line b { display: block; font-size: 14px; font-weight: 600; color: var(--color-text); }
.learn-camp-line span, .learn-squad-line span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.learn-people-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }

.learn-people-card {
  display: block;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-line);
  background: var(--color-card);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}

.learn-people-card:hover { border-color: var(--color-line-strong); transform: translateY(-2px); }
.learn-people-card b { display: block; font-size: 15px; font-weight: 600; color: var(--color-text); }
.learn-people-card span { display: block; margin-top: 6px; font-size: 13px; color: var(--color-text-muted); line-height: 1.65; }

.learn-people-card em {
  display: inline-block;
  margin-top: 10px;
  font-style: normal;
  font-size: 12px;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: rgba(108, 99, 255, 0.1);
  color: var(--color-primary-ink);
}

.learn-people-card em.is-quiet { background: rgba(107, 114, 128, 0.08); color: var(--color-text-muted); }

.learn-empty {
  padding: 26px 20px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--color-line-strong);
  background: var(--color-surface-2);
  text-align: center;
}

.learn-empty p { margin: 0 0 12px; font-size: 13px; color: var(--color-text-muted); line-height: 1.7; }
.learn-empty .btn-row { justify-content: center; }
.learn-foot-note { display: flex; flex-wrap: wrap; gap: 14px; margin: 14px 0 0; }
.learn-foot-note a { color: var(--color-text-muted); text-decoration: none; }
.learn-foot-note a:hover { color: var(--color-primary-ink); }

.learn-tail {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--color-text-faint);
  line-height: 1.7;
}

.learn-invite {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-line);
  background: var(--color-card);
}

.learn-invite-body { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 3px; }
.learn-invite-title { font-size: 15px; font-weight: 600; color: var(--color-text); }
.learn-invite-sub { font-size: 13px; color: var(--color-text-muted); line-height: 1.5; }
.learn-invite-btn { flex: 0 0 auto; }

/* ---------- 手机 ---------- */
@media (max-width: 768px) {
  .me-grid { grid-template-columns: 1fr; }
  .rec-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .study-deck-item { flex-wrap: wrap; }
  .study-deck-go { width: 100%; }
  .dc-page-lede { font-size: 14px; }
  .dc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dc-stat b { font-size: 22px; }
  .dc-row .btn-primary,
  .dc-row .btn-ghost { flex: 1 1 100%; }
  .dc-item { flex-wrap: wrap; }
  .dc-item-act { width: 100%; }
  .dc-item-act .dc-btn-sm { width: 100%; }
}

/* ---------- 降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  .dc-room,
  .dc-bar > i,
  .dc-btn-sm,
  .dc-chip,
  .dc-jump a { transition: none; }
  .dc-room:hover { transform: none; }
}

html[data-motion="off"] .dc-room,
html[data-motion="off"] .dc-bar > i,
html[data-motion="off"] .dc-btn-sm,
html[data-motion="off"] .dc-chip,
html[data-motion="off"] .dc-jump a { transition: none; }
html[data-motion="off"] .dc-room:hover { transform: none; }
/* ---------- Toast（ARRIV.toast 用；样式原来在 style.css，新外壳不加载它） ---------- */
.toast-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  z-index: 60;
  padding: 0 16px;
}

.toast {
  max-width: 92vw;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-line-strong);
  background: var(--color-card-solid);
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.5;
  box-shadow: var(--shadow-md);
  animation: dc-toast-in var(--dur-base) var(--ease-out) both;
}

.toast.ok { border-color: rgba(46, 160, 110, 0.42); }
.toast.err { border-color: rgba(192, 57, 43, 0.42); color: #C0392B; }
.toast.is-out { animation: dc-toast-out 140ms var(--ease-out) both; }

@keyframes dc-toast-in {
  from { opacity: 0; transform: translateY(8px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

@keyframes dc-toast-out {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(4px) scale(.98); }
}

/* 手机端：toast 要浮在底部四格之上，否则被 tabbar 压住看不见 */
@media (max-width: 768px) {
  .toast-wrap { bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- 顶栏当前页高亮（doc_home / dc_shell 共用 .dc-nav） ---------- */
.dc-nav a.on {
  color: var(--color-primary-ink);
  background: rgba(108, 99, 255, 0.12);
  font-weight: 600;
}

/* ---------- 首页场景卡：图标块里放 SVG 时按 28px 收，避免撑破 56px 方块 ---------- */
.dc-scene-ico svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-primary-deep);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 768px) {
  .dc-scene-ico svg { width: 24px; height: 24px; }
}

/* ---------- 首页状态区：小引站在问候语左侧（原来居中堆叠，96px 图把首屏顶下去） ---------- */
.dc-status-block {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 20px;
  row-gap: 6px;
  text-align: left;
}

.dc-status-block .dc-spirit {
  grid-row: 1 / span 2;
  margin: 0;
}

.dc-status-block .dc-greeting { margin: 0; }
.dc-status-block .dc-sub-text { margin: 0; }

@media (max-width: 768px) {
  .dc-status-block {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    row-gap: 10px;
  }
  .dc-status-block .dc-spirit { grid-row: auto; margin: 0 auto 4px; }
}

/* ---------- 首页主行动区：主按钮与「让 AI 帮我想」并排，别让提示单独占一行 ---------- */
.dc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 20px;
}

.dc-actions .dc-tip { margin: 0; }

@media (max-width: 768px) {
  .dc-actions { flex-direction: column; gap: 12px; }
  .dc-actions .dc-cta-btn { width: 100%; }
}

/* ---------- 内页主区：首页是 64/96 的大留白，内页内容密，收一档 ---------- */
.dc-main { padding: 40px 0 72px; }

@media (max-width: 768px) {
  .dc-main { padding: 24px 0 88px; }
  .dc-page-title { font-size: 24px; }
}

/* ── V5.12：同行区的退出与举报（一起学页） ── */
.learn-peer-ops {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.learn-peer-ops .inline-form {
  margin: 0;
}

.learn-report-form {
  margin-top: 12px;
  max-width: 560px;
}

.learn-report-form .do-label,
.learn-report-form .field label {
  display: block;
  margin: 12px 0 6px;
  font-size: 0.9rem;
  color: var(--color-text-muted, inherit);
}

.learn-report-form .do-input {
  width: 100%;
}

/* ── V5.12：个人中心「行动历史」明细 ── */
.me-history-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.me-history-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(127, 127, 127, 0.16);
}

.me-history-item:last-child {
  border-bottom: 0;
}

.me-history-title {
  font-size: 0.98rem;
  color: var(--color-text);
  line-height: 1.5;
}

.me-history-meta {
  font-size: 0.82rem;
  color: var(--color-text-muted, rgba(127, 127, 127, 0.9));
}

/* ============================================================================
   V5.12 整改 §8：全站共享交互规范层
   ----------------------------------------------------------------------------
   这一段是「所有按钮都有默认 / 悬停 / 键盘焦点 / 按下 / 禁用五种状态」
   与「提示 / 空态 / 错误态 / 加载态 / 完成态」的统一落点。

   为什么单独一段而不是每页各写各的：
   · 新外壳页面（首页 / 开始 / 步骤 / 工具 / 一起学 / 我的）共用 shell.css，
     这一段一次改完全部生效；
   · 旧外壳页面走 style.css，这里用同一套令牌把同名类补上，
     用户从新首页点进旧页面不会觉得「换了一套产品」。
   ========================================================================== */

/* ---------- 按钮五态 ---------- */
.btn:focus-visible,
.dc-btn:focus-visible,
.dc-btn-sm:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn:active,
.dc-btn:active,
.dc-btn-sm:active {
  transform: translateY(1px) scale(0.995);
}

.btn:disabled,
.btn[aria-disabled="true"],
.dc-btn:disabled,
.dc-btn-sm:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  filter: saturate(0.6);
  pointer-events: none;
}

.btn[disabled],
.btn[disabled]:hover {
  opacity: 0.55;
  transform: none;
}

/* ---------- 加载态：按钮与状态块 ---------- */
/* 用法：<button class="btn primary is-loading">处理中…</button>
   加载时不改按钮宽度，避免点击后文字跳动。 */
.btn.is-loading,
.dc-btn.is-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn.is-loading::after,
.dc-btn.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  color: var(--color-primary-ink);
  animation: dc-spin 720ms linear infinite;
}

.btn.primary.is-loading::after,
.dc-btn-primary.is-loading::after { color: #fff; }

@keyframes dc-spin {
  to { transform: rotate(360deg); }
}

/* 状态块：加载 / 完成 / 错误三种反馈的统一外观 */
.dc-state {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-line);
  background: var(--color-card);
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-text);
}

.dc-state::before {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  content: "";
}

.dc-state.is-loading::before {
  border: 2px solid var(--color-primary);
  border-top-color: transparent;
  animation: dc-spin 720ms linear infinite;
}

.dc-state.is-ok {
  border-color: rgba(46, 160, 110, 0.32);
  background: rgba(46, 160, 110, 0.08);
}

.dc-state.is-ok::before {
  background: #2EA06E;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.9);
}

.dc-state.is-err {
  border-color: rgba(192, 57, 43, 0.32);
  background: rgba(192, 57, 43, 0.07);
}

.dc-state.is-err::before {
  background: #C0392B;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.9);
}

/* ---------- 提示 / 空态 / 错误态：统一间距与可读性 ---------- */
.notice,
.dc-state {
  margin-bottom: 18px;
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* ---------- 键盘可达：所有可点元素都要有可见焦点 ---------- */
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- 减少动态效果：把这一层的动效一起关掉 ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn,
  .dc-btn,
  .dc-btn-sm,
  .dc-state,
  .btn.is-loading::after,
  .dc-btn.is-loading::after,
  .dc-state.is-loading::before {
    transition: none !important;
    animation: none !important;
  }
  .btn.is-loading::after,
  .dc-btn.is-loading::after {
    border: 2px solid var(--color-primary);
    border-top-color: transparent;
  }
}

html[data-motion="off"] .btn,
html[data-motion="off"] .dc-btn,
html[data-motion="off"] .dc-btn-sm,
html[data-motion="off"] .dc-state {
  transition: none !important;
  animation: none !important;
}

/* ============================================================================
   V5.13 整改：图标兜底尺寸 + 个人中心版式重排
   ----------------------------------------------------------------------------
   ① .ic 兜底尺寸
      arr_icon() 输出的 SVG 只有 viewBox、没有 width/height 属性。旧外壳的
      style.css 里有 .ic 的尺寸，新外壳（dc_shell）不加载 style.css，
      浏览器就按 SVG 的默认尺寸（300×150）画它——这正是用户截图里
      「个人中心出现一个巨大的黑色五角星」的成因：不是数据问题，是没有尺寸约束。
      这里给 .ic 一个统一兜底，具体位置再用更具体的选择器覆盖。
   ② .avatar.auto 补渐变
      色块头像的 --h / --h2 渐变定义原本只在 style.css，新外壳拿不到 →
      没有照片的用户头像是一块纯白。这里把渐变与描边补回来。
   ③ .me-* 版式
      身份块改成「头像 + 名字/说明 + 操作」三段式栅格；补齐之前完全没有样式的
      .me-action-entry / .me-insight / .me-insight-title / .me-insight-list。
   ========================================================================== */

/* ① 图标兜底尺寸（所有页面的 arr_icon() 输出都带 .ic） */
.ic {
  width: 18px;
  height: 18px;
  flex: none;
  display: inline-block;
  vertical-align: -3px;
}
.badge-cell svg { width: 16px; height: 16px; }
.badge-ico { display: inline-flex; align-items: center; justify-content: center; }
.badge-ico svg { width: 16px; height: 16px; display: block; }
.me-ico svg { width: 18px; height: 18px; display: block; }
.dc-tool-ico svg { width: 18px; height: 18px; display: block; }
.me-jump svg, .me-row svg, .learn-people-card svg { width: 18px; height: 18px; display: block; }

/* ② 名字色块头像：渐变 + 细描边（arr_avatar 输出 --h / --h2） */
.avatar.auto {
  background: linear-gradient(hsl(var(--h, 200), 52%, 66%), hsl(var(--h2, 232), 40%, 46%));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .16);
}
[data-theme="light"] .avatar.auto {
  background: linear-gradient(hsl(var(--h, 200), 46%, 58%), hsl(var(--h2, 232), 38%, 42%));
}
.me-id-avatar {
  background: linear-gradient(140deg, rgba(108, 99, 255, .18), rgba(108, 99, 255, .05));
}

/* ③ 个人中心：身份块三段式 */
.me-id {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 16px;
  padding: 16px 18px;
  border-radius: var(--radius-md, 14px);
  border: 1px solid var(--color-line);
  background: var(--color-surface-2);
}
.me-id .me-id-text { margin-right: 0; }
.me-id-act { justify-self: end; }
@media (max-width: 480px) {
  .me-id { grid-template-columns: auto minmax(0, 1fr); }
  .me-id-act { grid-column: 1 / -1; justify-self: stretch; text-align: center; }
}

/* ④ 之前完全没有样式的两类区块 */
.me-action-entry,
.me-insight,
.me-learn-entry,
.me-goal-entry,
.me-records-entry,
.me-help-entry,
.me-member-entry {
  display: grid;
  gap: 10px;
  align-content: start;
}
.me-insight-title {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  color: var(--color-text);
}
.me-insight-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--color-text);
}
.me-insight-list b { font-weight: 700; }
.me-id-name { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ⑤ 徽章格：图标与文字基线对齐，已拿到的徽章亮一点 */
.badge-grid { align-items: stretch; }
.badge-cell { align-items: center; }
.badge-cell.got .badge-ico { color: rgba(201, 168, 96, .95); }

/* ==========================================================================
   V5.18 整改：通知铃铛 / 占位页 / 页面淡入
   --------------------------------------------------------------------------
   ① .dc-bell / .dc-bell-dot
      新外壳（dc_shell）顶栏的站内通知铃铛。徽标是真实未读数（Rally::unread_count），
      没有未读时整个角标不渲染——不做「永远显示一个小红点」那种假提示。
   ② .dc-soon
      刷题 / 写代码 / 运动 三个「功能准备中」占位页的版式。
   ③ .dc-page-fade
      页面入场淡入（0.36s），并受 prefers-reduced-motion 与 html[data-motion="off"] 保护。
   ========================================================================== */

/* ---------- ① 铃铛与未读徽标 ---------- */
.dc-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.dc-bell:hover {
  background: rgba(108, 99, 255, 0.10);
  color: var(--color-primary);
}
.dc-bell:active { transform: scale(0.94); }
.dc-bell:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.dc-bell .ic,
.dc-bell-ic {
  width: 20px;
  height: 20px;
  display: block;
}
.dc-bell-dot {
  position: absolute;
  top: 1px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--color-secondary);
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2px var(--color-bg);
  /* 未读徽标出现时的一次性 pop，不循环、不闪烁 */
  animation: dc-bell-pop 420ms var(--ease-out) both;
}
@keyframes dc-bell-pop {
  0%   { transform: scale(0.4); opacity: 0; }
  60%  { transform: scale(1.18); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* ---------- ② 占位页 ---------- */
.dc-soon {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 28px 24px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-card);
  box-shadow: var(--shadow-sm);
}
.dc-soon-badge {
  margin: 0;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(108, 99, 255, 0.12);
  color: var(--color-primary-ink);
  font-size: 13px;
  font-weight: 600;
}
.dc-soon-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
}
.dc-soon-text {
  margin: 0;
  max-width: 60ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-text-muted);
}
.dc-soon-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

/* ---------- ③ 页面入场淡入 ---------- */
.dc-page-fade {
  animation: dc-page-in 360ms var(--ease-out) both;
}
@keyframes dc-page-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 响应式：窄屏收窄占位页内边距 ---------- */
@media (max-width: 480px) {
  .dc-soon { padding: 22px 16px; border-radius: var(--radius-md); }
  .dc-soon-title { font-size: 20px; }
  .dc-soon-acts { width: 100%; }
  .dc-soon-acts .btn { flex: 1 1 100%; }
}

/* ---------- 减少动态效果保护 ---------- */
@media (prefers-reduced-motion: reduce) {
  .dc-bell,
  .dc-bell-dot,
  .dc-page-fade {
    animation: none !important;
    transition: none !important;
  }
}
html[data-motion="off"] .dc-bell,
html[data-motion="off"] .dc-bell-dot,
html[data-motion="off"] .dc-page-fade {
  animation: none !important;
  transition: none !important;
}

/* ============================================================================
   V5.13 个人中心版式补漏
   ----------------------------------------------------------------------------
   pages/me.php 里有一批 section 挂了专属 class（.me-history / .me-notify-entry /
   .me-member-card / .me-stat-card / .me-account-card / .qa-entry），
   但这些 class 在任何样式表里都没有对应规则——页面能打开，块也能显示，
   只是没有任何专属版式，全部退化成一张裸 .card，看着像「样式丢了」。

   修法：只补这些 class 的排版，不动 .card 本身、不改 me.php 的结构。
   视觉语言沿用本页已有的 .me-insight-title / .me-insight-list / .btn-row。
   ========================================================================== */

/* ---------- 区块标题：这些 section 用 .me-insight-title 当小标题 ---------- */
.me-history .me-insight-title,
.me-stat-card .me-insight-title {
  margin: 0 0 8px;
}

/* ---------- 行动历史：区块与列表之间的留白 ---------- */
.me-history .me-history-list {
  margin-top: 12px;
}
.me-history > .btn-row { margin-top: 14px; }

/* ---------- 通知中心入口 ---------- */
.me-notify-entry {
  display: grid;
  gap: 12px;
  align-content: start;
}
.me-notify-entry .btn-row { margin-top: 0; }

/* ---------- 会员状态：徽章与说明同一行排 ---------- */
.me-member-card {
  display: grid;
  gap: 12px;
  align-content: start;
}
.me-member-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text);
}
.me-member-line .small {
  color: var(--color-text-muted, rgba(127, 127, 127, .9));
}
.me-member-card .btn-row { margin-top: 0; }

/* ---------- 行动统计 ---------- */
.me-stat-card {
  display: grid;
  gap: 10px;
  align-content: start;
}
.me-stat-card .me-insight-list { margin: 0; }
.me-stat-card .small { margin: 0; }

/* ---------- 账号设置 ---------- */
.me-account-card {
  display: grid;
  gap: 12px;
  align-content: start;
}
.me-account-card .btn-row { margin-top: 0; }

/* ---------- 快捷访问（.qa-entry） ---------- */
.qa-entry {
  display: grid;
  gap: 10px;
  align-content: start;
}
.qa-entry .card-title { margin: 0; }
.qa-entry .btn-row { margin-top: 0; }

/* ---------- 窄屏收紧 ---------- */
@media (max-width: 480px) {
  .me-member-line { gap: 6px; font-size: 13.5px; }
  .me-history .me-history-item { padding: 10px 0; }
}

/* ---------- 通知中心（V5.13 从旧外壳迁入新外壳） ----------
   通知中心原先挂在旧外壳 arr_layout_top 上（style.css / 旧顶栏 / 旧页脚），
   首页、个人中心、记录都迁到 dc_shell 了，唯独它还是旧版式，看着像另一个站。
   迁过来以后，这里补上通知列表自己的版式类。 */
.dc-notif-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}

.dc-notif-list { margin-top: 2px; }

.dc-notif-item { align-items: flex-start; }

.dc-notif-item.is-read { opacity: .62; }

.dc-notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--color-primary);
  margin-top: 8px;
  flex: none;
}

.dc-notif-item.is-read .dc-notif-dot { background: var(--color-line-strong); }

.dc-notif-text {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text);
}

.dc-notif-time {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.dc-notif-act { flex: 0 0 auto; }

.dc-notif-pager { justify-content: center; margin-top: 24px; }

.dc-notif-empty-sub { margin: 6px 0 0; }

/* ==========================================================================
   V5.14 交互动画层（qiaomu-design 打磨模式 · Polish + Animate）
   ----------------------------------------------------------------------------
   这一层是全站共享的动效节奏，规则照 motion-craft：
   · 只动 transform / opacity，不动 width / height / top，避免重排；
   · 按压反馈 ≤ 160ms，入场 ≤ 420ms，列表交错 40ms；
   · 「按下去」这种连续反馈用 transition（可打断），不用 keyframes；
   · 永远给 prefers-reduced-motion 与 html[data-motion="off"] 留出口。
   原则：动效要服务操作，不给每个元素都加淡入——少而准，才是打磨。
   ========================================================================== */

/* ---------- 1. 按压反馈：能点的东西都要有「被按下去」的实感 ---------- */
.btn,
.dc-btn {
  transition:
    transform var(--dur-press, 120ms) var(--ease-out),
    background var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    opacity var(--dur-fast) var(--ease-out);
}

/* 覆盖旧外壳里 translateY(1px) scale(0.995) 的轻按反馈：0.97 才是「按下去」 */
.btn:active,
.dc-btn:active {
  transform: scale(0.97);
}

/* 触屏没有 hover，hover 位移会「粘」在手指下面：只在真指针设备上给位移 */
@media (hover: none) {
  .btn:hover,
  .dc-btn:hover {
    transform: none;
  }
}

/* ---------- 2. 顶栏导航 ---------- */
.dc-nav a {
  transition:
    color var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out),
    transform var(--dur-press, 120ms) var(--ease-out);
}
.dc-nav a:active { transform: scale(0.96); }

/* ---------- 3. 底部四格（V5.25：全部规则集中在这里） ----------
   过去这份样式拆在 home.css 与 shell.css 两处，两边都能改同一个 .dc-tabbar，
   加载顺序一变就互相覆盖；而且 home.css 那份写死 repeat(4,1fr) 却只有三个 tab，
   格子被挤歪。现在只留这一处，列数由 --dc-tabbar-count 驱动（写在标签内联样式上）。 */
.dc-tabbar {
  display: none;
}

@media (max-width: 768px) {
  .dc-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(var(--dc-tabbar-count, 4), minmax(0, 1fr));
    background: linear-gradient(180deg, var(--color-tabbar-bg), var(--color-tabbar-bg-end));
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    border-top: 1px solid var(--color-tabbar-line);
    box-shadow: 0 -10px 30px -14px rgba(0, 0, 0, 0.8),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .dc-tabbar a {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    padding: 9px 0 8px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
    /* 未选中也要看得清：--color-text-faint 在深底上只有 3.5:1 */
    color: var(--color-tabbar-ink);
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease-out),
                transform var(--dur-press, 120ms) var(--ease-out);
  }

  /* 选中态：一枚发光的胶囊 + 主色图标 */
  .dc-tabbar a.on {
    color: var(--color-tabbar-ink-on);
  }
  .dc-tabbar a.on::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    width: 46px;
    height: 30px;
    transform: translateX(-50%);
    border-radius: var(--radius-pill);
    background: var(--color-tabbar-pill);
    box-shadow: 0 0 18px -2px var(--color-tabbar-glow);
    pointer-events: none;
  }
  .dc-tabbar a.on i {
    color: var(--color-primary-ink);
    filter: drop-shadow(0 0 8px var(--color-tabbar-glow));
  }
  .dc-tabbar a.on span {
    color: var(--color-tabbar-ink-on);
  }
  .dc-tabbar a:hover { color: var(--color-tabbar-ink-on); }
  .dc-tabbar a:focus-visible {
    outline: 2px solid var(--color-primary-ink);
    outline-offset: -3px;
    border-radius: 10px;
  }

  .dc-tabbar i {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-style: normal;
    font-size: 22px;
    line-height: 1;
    transition: transform var(--dur-base, 260ms) var(--ease-out);
  }

  /* V5.9：底栏图标从 emoji 换成 arr_icon() 的 24 网格描边图标，
     跨设备字形一致；尺寸与原来的 emoji 对齐。 */
  .dc-tabbar i svg {
    width: 21px;
    height: 21px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .dc-tabbar span {
    position: relative;
    z-index: 1;
    line-height: 1.2;
    white-space: nowrap;
  }

  /* 按下去：图标先沉下去，再弹回来（不是整块缩放，读起来像按到了） */
  .dc-tabbar a:active i {
    transform: translateY(2px) scale(0.88);
  }
  .dc-tabbar a.on i {
    animation: dc-tab-pop 320ms var(--ease-out) both;
  }
}
@keyframes dc-tab-pop {
  from { opacity: 0.4; transform: scale(0.62); }
  to   { opacity: 1;   transform: scale(1); }
}

/* ---------- 3.5 壳级小引（V5.25） ----------
   过去小引只在 doc_home 的 hero 里，换个页面就没了；现在提到壳级，
   所有新外壳页的页头下面都有一句。 */
.dc-shell-spirit {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  margin: 12px 0 4px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(var(--dc3d-warm, 201 168 96), .24);
  background: linear-gradient(120deg, rgba(var(--dc3d-warm, 201 168 96), .12), rgba(var(--dc3d-warm, 201 168 96), .03));
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text);
}
.dc-shell-spirit-ico {
  display: inline-flex;
  align-items: center;
  color: rgba(var(--dc3d-warm, 201 168 96), .95);
  filter: drop-shadow(0 0 6px rgba(var(--dc3d-warm, 201 168 96), .35));
}
.dc-shell-spirit-ico svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dc-shell-spirit-text { flex: 1 1 240px; min-width: 0; }
.dc-shell-spirit-ops { display: inline-flex; gap: 12px; flex: 0 0 auto; }
.dc-shell-spirit-op {
  font-size: 12px;
  color: var(--color-text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--color-line-strong);
  padding-bottom: 1px;
  transition: color .2s ease, border-color .2s ease;
}
.dc-shell-spirit-op:hover {
  color: rgba(var(--dc3d-warm, 201 168 96), .95);
  border-color: rgba(var(--dc3d-warm, 201 168 96), .6);
}
.dc-shell-spirit-op:focus-visible {
  outline: 2px solid rgba(var(--dc3d-warm, 201 168 96), .7);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 4. 提示条 / 状态块：从上方轻轻落下 ---------- */
.notice {
  animation: dc-notice-in var(--dur-reveal, 320ms) var(--ease-out) both;
}
@keyframes dc-notice-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 5. 交错入场工具类：一组同类元素依次亮起 ----------
   用法：<div class="dc-stagger"> … </div>，子元素自动按 40ms 依次入场。 */
.dc-stagger > * {
  animation: dc-stagger-in 420ms var(--ease-out) both;
}
.dc-stagger > *:nth-child(1) { animation-delay: 0ms; }
.dc-stagger > *:nth-child(2) { animation-delay: 40ms; }
.dc-stagger > *:nth-child(3) { animation-delay: 80ms; }
.dc-stagger > *:nth-child(4) { animation-delay: 120ms; }
.dc-stagger > *:nth-child(5) { animation-delay: 160ms; }
.dc-stagger > *:nth-child(6) { animation-delay: 200ms; }
.dc-stagger > *:nth-child(7) { animation-delay: 240ms; }
.dc-stagger > *:nth-child(8) { animation-delay: 280ms; }
.dc-stagger > *:nth-child(n+9) { animation-delay: 300ms; }

@keyframes dc-stagger-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 6. 降级：关掉动效与动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn,
  .dc-btn,
  .dc-nav a,
  .dc-tabbar a,
  .dc-tabbar a.on i,
  .notice,
  .dc-stagger > * {
    animation: none !important;
    transition: none !important;
  }
  .btn:active,
  .dc-btn:active,
  .dc-nav a:active,
  .dc-tabbar a:active {
    transform: none !important;
  }
}
html[data-motion="off"] .btn,
html[data-motion="off"] .dc-btn,
html[data-motion="off"] .dc-nav a,
html[data-motion="off"] .dc-tabbar a,
html[data-motion="off"] .dc-tabbar a.on i,
html[data-motion="off"] .notice,
html[data-motion="off"] .dc-stagger > * {
  animation: none !important;
  transition: none !important;
}
html[data-motion="off"] .btn:active,
html[data-motion="off"] .dc-btn:active,
html[data-motion="off"] .dc-nav a:active,
html[data-motion="off"] .dc-tabbar a:active {
  transform: none !important;
}

/* ==========================================================================
   V5.26 智能层：壳级建议卡 / 顶栏图标 / 页脚导航
   --------------------------------------------------------------------------
   ① .dc-advise   壳级「此刻建议」卡（Advisor::suggest 给出）
   ② .dc-topicon  顶栏常驻图标（问一句 / 会员中心）
   ③ .dc-footer-links 页脚合规与功能入口
   ========================================================================== */

.dc-advise {
  position: relative;
  margin: 14px 0 0;
  padding: 16px 18px;
  border-radius: var(--radius-md, 16px);
  border: 1px solid rgba(201, 168, 96, .24);
  background:
    linear-gradient(155deg, rgba(108, 99, 255, .16), rgba(38, 52, 88, .08) 62%),
    var(--color-card, rgba(26, 29, 39, .72));
  overflow: hidden;
}
.dc-advise::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 96, .18), transparent 70%);
  pointer-events: none;
}
.dc-advise-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.dc-advise-tag {
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--color-primary-ink, #A9A2FF);
  border: 1px solid var(--color-line-strong, rgba(255, 255, 255, .16));
  border-radius: var(--radius-pill, 999px);
  padding: 2px 10px;
}
.dc-advise-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text, #E8E9F0);
}
.dc-advise-text {
  margin: 10px 0 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-muted, #9196A8);
}

.dc-topicon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill, 999px);
  color: var(--color-text-muted, #9196A8);
  text-decoration: none;
  transition: background var(--dur-fast, 160ms) var(--ease-out),
              color var(--dur-fast, 160ms) var(--ease-out),
              transform var(--dur-press, 120ms) var(--ease-out);
}
.dc-topicon svg { width: 20px; height: 20px; display: block; }
.dc-topicon:hover { background: rgba(108, 99, 255, .10); color: var(--color-primary, #6C63FF); }
.dc-topicon:active { transform: scale(.94); }
.dc-topicon:focus-visible { outline: 2px solid var(--color-primary, #6C63FF); outline-offset: 2px; }

.dc-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  margin-bottom: 10px;
}
.dc-footer-links a {
  color: var(--color-text-muted, #9196A8);
  text-decoration: none;
  font-size: 13px;
  transition: color var(--dur-fast, 160ms) var(--ease-out);
}
.dc-footer-links a:hover { color: var(--color-primary-ink, #A9A2FF); }
.dc-footer-links a:focus-visible { outline: 2px solid var(--color-primary, #6C63FF); outline-offset: 2px; }

html[data-motion="off"] .dc-advise,
html[data-motion="off"] .dc-topicon,
html[data-motion="off"] .dc-footer-links a {
  animation: none !important;
  transition: none !important;
}

/* ==========================================================================
   V5.26 首页「接下来」预判区块（.dc-next）
   ========================================================================== */
.dc-next {
  margin: 22px 0 0;
  padding: 18px 20px;
  border-radius: var(--radius-md, 16px);
  border: 1px solid var(--color-line-strong, rgba(255, 255, 255, .16));
  background: var(--color-card, rgba(26, 29, 39, .72));
}
.dc-next-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text, #E8E9F0);
}
.dc-next-lede {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-text-faint, #6B7280);
}
.dc-next-list { list-style: none; margin: 0 0 14px; padding: 0; }
.dc-next-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 7px 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-muted, #9196A8);
}
.dc-next-dot {
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--color-primary-ink, #A9A2FF);
  box-shadow: 0 0 10px rgba(108, 99, 255, .55);
}
