/* ==========================================================
   时序隙庭 · 组件层
   导航（参考图一）、伸展式搜索、卡片、时间轴、说说、
   档案卡、友人帐、MikuTap 等
   ========================================================== */

/* ---------------- 顶部搜索：图标 → 伸展成框 ---------------- */
.search-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 1 auto;
  min-width: 36px;
  height: 38px;
  border-radius: var(--r-pill);
  transition: flex-basis 0.4s cubic-bezier(0.22, 0.61, 0.36, 1), background 0.3s ease, box-shadow 0.3s ease;
}
.search-wrap.is-open {
  flex: 0 1 320px;
  background: var(--glass-2);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.22), var(--inset);
}
.search-wrap.is-open .search-toggle { display: none; }

.search-toggle { flex: 0 0 auto; }

.search-field {
  display: none;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 0 6px 0 14px;
}
.search-wrap.is-open .search-field { display: flex; }
.search-field svg { width: 16px; height: 16px; color: var(--ink-3); flex: 0 0 auto; }
.search-field input {
  flex: 1 1 auto;
  min-width: 0;
  height: 36px;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 0.92rem;
}
.search-field input::placeholder { color: var(--ink-3); }

/* 搜索结果面板 */
.search-panel {
  position: fixed;
  top: calc(var(--header-h) + 30px);
  left: 50%;
  z-index: 150;
  width: min(680px, calc(100vw - 28px));
  max-height: min(62vh, 520px);
  overflow-y: auto;
  padding: 12px;
  border-radius: var(--r-lg);
  background: var(--glass-2);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--sh-2), var(--inset);
  -webkit-backdrop-filter: blur(26px) saturate(190%);
  backdrop-filter: blur(26px) saturate(190%);
  transform: translate(-50%, -12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s ease, transform 0.26s ease;
}
.search-panel.is-open { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.search-panel .sp-hint {
  padding: 6px 10px 10px;
  font-size: 0.82rem;
  color: var(--ink-3);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.search-panel .sp-hint kbd {
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: var(--glass-3);
  font-size: 0.76rem;
}
.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  transition: background 0.2s ease, transform 0.2s ease;
}
.search-item:hover, .search-item.is-cursor { background: var(--glass-3); transform: translateX(2px); }
.search-item .si-kind {
  flex: 0 0 auto;
  padding: 2px 9px;
  border-radius: var(--r-pill);
  background: var(--a-soft);
  color: var(--a1);
  font-size: 0.74rem;
}
.search-item .si-body { min-width: 0; display: block; }
.search-item .si-title { display: block; font-size: 0.95rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-item .si-desc { display: block; font-size: 0.82rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-empty { padding: 22px 14px; text-align: center; color: var(--ink-3); font-size: 0.9rem; }

/* ---------------- 首页 Hero（时序隙庭） ---------------- */
.hero {
  padding: clamp(26px, 4vw, 48px);
  margin-bottom: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  overflow: hidden;
}
.hero-copy { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  margin-bottom: 16px;
  border-radius: var(--r-pill);
  background: var(--glass-3);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--inset);
  font-size: 0.82rem;
  color: var(--ink-2);
  letter-spacing: 0.06em;
}
.hero-eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--a1), var(--a2));
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.8);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.8); } }

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.25;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  background: linear-gradient(120deg, var(--a3), var(--a1) 45%, var(--a2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 1rem;
  color: var(--ink-2);
  margin-bottom: 18px;
  max-width: 46ch;
}
.type-line {
  min-height: 1.9em;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  color: var(--a1);
}
.type-line .caret {
  display: inline-block;
  width: 2px; height: 1.05em;
  margin-left: 3px;
  background: var(--a1);
  vertical-align: text-bottom;
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.hero-art {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--glass-brd);
  box-shadow: var(--inset);
  background:
    radial-gradient(120% 90% at 20% 15%, rgba(var(--accent-rgb-2), 0.6), transparent 60%),
    radial-gradient(100% 80% at 85% 80%, rgba(var(--accent-rgb), 0.65), transparent 62%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.05));
}
.hero-art .art-ring {
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.7);
  animation: spin 26s linear infinite;
}
.hero-art .art-ring.two { inset: 27%; border-style: solid; border-color: rgba(255, 255, 255, 0.42); animation-duration: 18s; animation-direction: reverse; }
.hero-art .art-core {
  position: absolute;
  left: 50%; top: 50%;
  width: 26%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, rgba(var(--accent-rgb-2), 0.9) 45%, rgba(var(--accent-rgb), 0.7) 100%);
  box-shadow: 0 0 40px rgba(var(--accent-rgb), 0.7);
  animation: float-y 6.5s ease-in-out infinite;
}
@keyframes float-y { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -58%) scale(1.06); } }
.hero-art .art-tag {
  position: absolute;
  left: 14px; bottom: 12px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
  color: var(--ink-2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
html[data-theme="dark"] .hero-art .art-tag { background: rgba(0, 0, 0, 0.28); border-color: rgba(255, 255, 255, 0.18); }

/* Hero 内嵌快捷入口 */
.hero-quick {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
}
.quick-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--r-md);
  background: var(--glass-3);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--inset);
  color: var(--ink-2);
  font-size: 0.9rem;
  transition: all 0.24s ease;
}
.quick-item svg { width: 17px; height: 17px; color: var(--a1); flex: 0 0 auto; }
.quick-item:hover { transform: translateY(-3px); color: var(--ink); box-shadow: var(--sh-1), var(--inset), var(--glow); }
.quick-item small { display: block; font-size: 0.74rem; color: var(--ink-3); }
.quick-item.is-current {
  color: var(--a1);
  background: var(--a-soft);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.3), var(--inset);
}

/* ---------------- 通用卡片网格 ---------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}
.card-grid.is-2 { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
.card-grid.is-tight { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }

.card {
  position: relative;
  padding: 20px;
  border-radius: var(--r-lg);
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--sh-1), var(--inset);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(180%);
  backdrop-filter: blur(var(--blur)) saturate(180%);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 40%);
  opacity: 0.55;
}
html[data-theme="dark"] .card::before { background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 44%); }
.card:hover { transform: translateY(-5px); box-shadow: var(--sh-2), var(--inset); }
.card > * { position: relative; z-index: 1; }

.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.card-head h3 { font-size: 1.06rem; color: var(--ink); }
.card-head .card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--a-soft);
  color: var(--a1);
  flex: 0 0 auto;
}
.card-head .card-icon svg { width: 17px; height: 17px; }
.card p { font-size: 0.9rem; color: var(--ink-3); }
.card .card-foot { margin-top: 14px; display: flex; align-items: center; gap: 10px; font-size: 0.85rem; }

/* 程序化配图（无需图片文件） */
.thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--glass-brd);
  box-shadow: var(--inset);
  margin-bottom: 14px;
  background: linear-gradient(140deg, rgba(var(--accent-rgb), 0.5), rgba(var(--accent-rgb-2), 0.42)), var(--bg-2);
}
.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent 55%);
}
.thumb .thumb-slot {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-size: 0.76rem;
  color: var(--ink-2);
  white-space: nowrap;
  z-index: 1;
}
html[data-theme="dark"] .thumb .thumb-slot { background: rgba(0, 0, 0, 0.3); border-color: rgba(255, 255, 255, 0.2); }
.thumb.t1 { background: linear-gradient(140deg, #b79bf7, #e0b6f5 60%, #9f8bf0); }
.thumb.t2 { background: linear-gradient(140deg, #8fb3f5, #c9a8f7 60%, #9d8bf0); }
.thumb.t3 { background: linear-gradient(140deg, #f0a8d4, #c9a8f7 60%, #8f9bf5); }
.thumb.t4 { background: linear-gradient(140deg, #a8e0e8, #b3a8f7 60%, #8f7bf0); }
.thumb.t5 { background: linear-gradient(140deg, #f5cea1, #e0a8d4 60%, #a88bf0); }
.thumb.t6 { background: linear-gradient(140deg, #6f5bc4, #9f7bf0 55%, #d0a8f7); }
.thumb::before {
  content: "";
  position: absolute;
  inset: -20%;
  background-image: radial-gradient(circle at 30% 35%, rgba(255, 255, 255, 0.55), transparent 42%),
    radial-gradient(circle at 72% 70%, rgba(255, 255, 255, 0.4), transparent 40%);
}

/* ---------------- 说说（动态流） ---------------- */
.post-list { display: flex; flex-direction: column; gap: 16px; }
.post {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--r-lg);
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--sh-1), var(--inset);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(180%);
  backdrop-filter: blur(var(--blur)) saturate(180%);
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}
.post:hover { transform: translateY(-4px); box-shadow: var(--sh-2), var(--inset); }
.post-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid var(--glass-brd);
  box-shadow: var(--inset);
  background: linear-gradient(140deg, rgba(var(--accent-rgb), 0.65), rgba(var(--accent-rgb-2), 0.55));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  color: #fff;
  font-size: 1.1rem;
}
.post-body { min-width: 0; }
.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 6px;
  font-size: 0.82rem;
  color: var(--ink-3);
}
.post-author { color: var(--ink); font-weight: 600; font-size: 0.94rem; }
.post-tag {
  padding: 1px 10px;
  border-radius: var(--r-pill);
  background: var(--a-soft);
  color: var(--a1);
  font-size: 0.76rem;
}
.post-text { font-size: 0.95rem; color: var(--ink-2); white-space: pre-line; }
.post-text.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-2);
}
.post-actions .act {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  color: var(--ink-3);
  font-size: 0.84rem;
  transition: all 0.2s ease;
}
.post-actions .act svg { width: 14px; height: 14px; }
.post-actions .act:hover { color: var(--a1); background: var(--glass-3); }
.post-actions .act.is-on { color: var(--a1); background: var(--a-soft); }

/* ---------------- 时间轴 ---------------- */
.timeline-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.timeline {
  position: relative;
  padding-left: 30px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 8px; bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--a1), var(--a2), transparent);
}
.tl-item { position: relative; padding: 0 0 26px; }
.tl-item:last-child { padding-bottom: 4px; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -30px; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--glass-brd);
  background: linear-gradient(140deg, var(--a1), var(--a2));
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.6);
}
.tl-card {
  padding: 16px 20px;
  border-radius: var(--r-md);
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--sh-1), var(--inset);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(180%);
  backdrop-filter: blur(var(--blur)) saturate(180%);
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}
.tl-card:hover { transform: translateX(4px); box-shadow: var(--sh-2), var(--inset); }
.tl-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--a1);
  letter-spacing: 0.04em;
}
.tl-card h4 { font-size: 1.02rem; color: var(--ink); margin: 4px 0 6px; }
.tl-card p { font-size: 0.9rem; color: var(--ink-3); }
.tl-empty { padding: 30px; text-align: center; color: var(--ink-3); }

/* ---------------- 表单 ---------------- */
.form-panel {
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--r-lg);
}
.form-grid { display: grid; gap: 14px; }
.form-grid.is-2 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.86rem; color: var(--ink-2); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--glass-brd);
  background: var(--glass-3);
  box-shadow: var(--inset);
  outline: none;
  font-size: 0.94rem;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.field textarea { min-height: 118px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: rgba(var(--accent-rgb), 0.65);
  background: var(--glass-2);
  box-shadow: var(--inset), var(--glow);
}
.field .hint { font-size: 0.78rem; color: var(--ink-3); }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.form-actions .count { font-size: 0.8rem; color: var(--ink-3); margin-left: auto; }

/* ---------------- 友人帐 / 链接卡 ---------------- */
.friend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.friend-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--sh-1), var(--inset);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(180%);
  backdrop-filter: blur(var(--blur)) saturate(180%);
  color: var(--ink-2);
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}
.friend-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2), var(--inset); }
.friend-avatar {
  width: 48px; height: 48px;
  flex: 0 0 auto;
  border-radius: 14px;
  border: 1px solid var(--glass-brd);
  box-shadow: var(--inset);
  background: linear-gradient(140deg, rgba(var(--accent-rgb), 0.6), rgba(var(--accent-rgb-2), 0.5));
}
.friend-card .fc-name { font-size: 0.98rem; color: var(--ink); }
.friend-card .fc-desc { font-size: 0.82rem; color: var(--ink-3); }
.friend-card .fc-arrow { margin-left: auto; color: var(--ink-3); }

/* ---------------- OC / 世界观 档案 ---------------- */
.oc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.oc-card {
  position: relative;
  display: block;
  padding: 16px;
  border-radius: var(--r-lg);
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--sh-1), var(--inset);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(180%);
  backdrop-filter: blur(var(--blur)) saturate(180%);
  color: var(--ink-2);
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}
.oc-card:hover { transform: translateY(-5px); box-shadow: var(--sh-2), var(--inset); }
.oc-portrait {
  aspect-ratio: 3 / 4;
  border-radius: var(--r-md);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--inset);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  font-size: 0.82rem;
  background: linear-gradient(150deg, rgba(var(--accent-rgb), 0.55), rgba(var(--accent-rgb-2), 0.45));
}
.oc-card h3 { font-size: 1.02rem; color: var(--ink); }
.oc-card .oc-line { font-size: 0.84rem; color: var(--ink-3); margin-top: 4px; }
.oc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.oc-tags .t {
  padding: 1px 9px;
  border-radius: var(--r-pill);
  background: var(--glass-3);
  border: 1px solid var(--glass-brd);
  font-size: 0.74rem;
  color: var(--ink-2);
}

/* 资料条目 */
.data-list { display: grid; gap: 10px; }
.data-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  background: var(--glass-3);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--inset);
  font-size: 0.92rem;
}
.data-row .k { color: var(--ink-3); font-size: 0.84rem; }
.data-row .v { color: var(--ink); }

/* ---------------- MikuTap ---------------- */
.mikutap-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--glass-brd);
  box-shadow: var(--inset);
  background:
    radial-gradient(90% 70% at 25% 20%, rgba(var(--accent-rgb-2), 0.55), transparent 60%),
    radial-gradient(80% 70% at 80% 85%, rgba(var(--accent-rgb), 0.6), transparent 62%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.04));
}
.mikutap-frame iframe, .mikutap-frame .slot { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; }
.mikutap-bars { display: flex; align-items: flex-end; gap: 5px; height: 72px; margin-top: 18px; }
.mikutap-bars i {
  flex: 1 1 auto;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--a2), var(--a1));
  opacity: 0.85;
  animation: eq 1.6s ease-in-out infinite;
}
@keyframes eq { 0%, 100% { height: 26%; } 50% { height: 100%; } }

.kbd-guide { display: grid; gap: 8px; }
.kbd-guide .kbd-row { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; color: var(--ink-2); }
.kbd-guide .keys { display: flex; gap: 5px; flex: 0 0 auto; }
.kbd-guide kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  padding: 3px 8px;
  border-radius: 8px;
  border: 1px solid var(--glass-brd);
  background: var(--glass-2);
  box-shadow: var(--inset), 0 2px 0 rgba(112, 88, 176, 0.18);
  font-size: 0.8rem;
}

/* ---------------- 文章页 ---------------- */
.article-wrap {
  padding: clamp(22px, 4vw, 44px);
  border-radius: var(--r-lg);
}
.article-head { text-align: center; margin-bottom: 26px; }
.article-head h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  line-height: 1.5;
  color: var(--ink);
}
.article-head .subtitle { margin-top: 8px; color: var(--ink-2); font-size: 1rem; }
.article-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; font-size: 0.84rem; color: var(--ink-3); }
.read-progress {
  position: fixed;
  left: 0; top: 0;
  height: 3px;
  width: 0;
  z-index: 200;
  background: linear-gradient(90deg, var(--a1), var(--a2));
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.6);
}

/* ---------------- 画廊 ---------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.gallery-item {
  position: relative;
  padding: 12px;
  border-radius: var(--r-lg);
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--sh-1), var(--inset);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(180%);
  backdrop-filter: blur(var(--blur)) saturate(180%);
  cursor: zoom-in;
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}
.gallery-item:hover { transform: translateY(-5px); box-shadow: var(--sh-2), var(--inset); }
.gi-thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--glass-brd);
  box-shadow: var(--inset);
  background: linear-gradient(150deg, rgba(var(--accent-rgb), 0.5), rgba(var(--accent-rgb-2), 0.45));
  display: flex;
  align-items: center;
  justify-content: center;
}
.gi-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item.is-empty .gi-thumb img { display: none; }
.gi-thumb.t1 { background: linear-gradient(150deg, #b79bf7, #e0b6f5 60%, #9f8bf0); }
.gi-thumb.t2 { background: linear-gradient(150deg, #8fb3f5, #c9a8f7 60%, #9d8bf0); }
.gi-thumb.t3 { background: linear-gradient(150deg, #f0a8d4, #c9a8f7 60%, #8f9bf5); }
.gi-thumb.t4 { background: linear-gradient(150deg, #a8e0e8, #b3a8f7 60%, #8f7bf0); }
.gi-thumb.t5 { background: linear-gradient(150deg, #f5cea1, #e0a8d4 60%, #a88bf0); }
.gi-thumb.t6 { background: linear-gradient(150deg, #6f5bc4, #9f7bf0 55%, #d0a8f7); }
.gi-slot {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  font-size: 0.84rem;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0 12px, rgba(255, 255, 255, 0.04) 12px 24px);
}
.gallery-item.is-empty .gi-slot { display: flex; }
.gallery-item figcaption { padding: 10px 4px 2px; }
.gi-title { display: block; font-size: 0.95rem; color: var(--ink); }
.gi-meta { display: block; font-size: 0.8rem; color: var(--ink-3); margin-top: 2px; }

/* 点击放大 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vmin;
  background: rgba(30, 22, 52, 0.62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.lightbox.is-open { display: flex; }
.lb-stage {
  max-width: min(1080px, 92vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.lb-stage img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: var(--r-md);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--sh-2);
  background: var(--glass-2);
}
.lb-stage .lb-placeholder {
  width: min(640px, 84vw);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  border: 1px dashed rgba(var(--accent-rgb), 0.6);
  background: var(--glass-2);
  color: var(--ink-2);
  font-size: 0.9rem;
  text-align: center;
  padding: 20px;
}
.lb-stage figcaption { color: #fff; font-size: 0.9rem; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4); }
.lb-close, .lb-nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--glass-brd);
  background: var(--glass-2);
  box-shadow: var(--sh-1), var(--inset);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  color: var(--ink);
  width: 44px; height: 44px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lb-close { top: 20px; right: 20px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-nav.prev { left: 20px; }
.lb-nav.next { right: 20px; }
.lb-close:hover, .lb-nav:hover { box-shadow: var(--sh-2), var(--inset), var(--glow); }
.lb-close svg, .lb-nav svg { width: 20px; height: 20px; }

/* ---------------- 创作手记 ---------------- */
.note-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border-radius: var(--r-lg);
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--sh-1), var(--inset);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(180%);
  backdrop-filter: blur(var(--blur)) saturate(180%);
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}
.note-card:hover { transform: translateY(-5px); box-shadow: var(--sh-2), var(--inset); }
.note-card h3 { font-size: 1.06rem; line-height: 1.55; color: var(--ink); margin: 4px 0 8px; }
.note-card h3 a { color: inherit; }
.note-card h3 a:hover { color: var(--a1); }
.note-card p { font-size: 0.9rem; color: var(--ink-3); }
.note-card .card-foot { margin-top: auto; padding-top: 12px; }

/* ---------------- 正文插图 ---------------- */
.figure { margin: 20px 0; }
.figure img {
  width: 100%;
  border-radius: var(--r-md);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--sh-1);
}
.figure.is-empty img { display: none; }
.figure-slot {
  display: none;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-md);
  border: 1px dashed rgba(var(--accent-rgb), 0.55);
  background: repeating-linear-gradient(135deg, rgba(var(--accent-rgb), 0.1) 0 12px, rgba(var(--accent-rgb), 0.04) 12px 24px);
  color: var(--ink-3);
  font-size: 0.86rem;
  text-align: center;
  padding: 16px;
}
.figure.is-empty .figure-slot { display: flex; }
.figure figcaption { margin-top: 8px; font-size: 0.84rem; color: var(--ink-3); text-align: center; }

/* ---------------- OC 角色详情页（个性化配色） ----------------
   变量由 oc-page.js 按角色写入 html 的 style；未设置时用下面这套默认值。
   详情页是「深色玻璃」基调，因此这里把文字与玻璃的不透明度整套覆盖掉，
   保证在任何角色配色下都清晰可读。 */
html[data-oc-theme] {
  --oc-main: #7b5cf0;
  --oc-deep: #241a48;
  --oc-soft: #c9b6f7;
  --oc-bg1: #1b1533;
  --oc-bg2: #2b2050;
  --oc-ink: #f2ecff;

  --ink: #f4f0ff;
  --ink-2: rgba(244, 240, 255, 0.82);
  --ink-3: rgba(244, 240, 255, 0.62);
  --link: var(--oc-soft);

  --glass: rgba(14, 10, 28, 0.46);
  --glass-2: rgba(20, 14, 38, 0.66);
  --glass-3: rgba(255, 255, 255, 0.08);
  --glass-brd: rgba(255, 255, 255, 0.2);
  --blur: 26px;
  --inset: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  --sh-1: 0 12px 34px rgba(0, 0, 0, 0.32);
  --sh-2: 0 20px 54px rgba(0, 0, 0, 0.44);
  --glow: 0 0 24px rgba(255, 255, 255, 0.22);
  --line: rgba(255, 255, 255, 0.16);
  --line-2: rgba(255, 255, 255, 0.14);

  --a1: var(--oc-main);
  --a2: var(--oc-soft);
  --a-soft: rgba(255, 255, 255, 0.12);
}

/* 详情页背景换成该角色的配色 */
html[data-oc-theme] body { background: var(--oc-bg1); color: var(--ink); }
html[data-oc-theme] .bg-fixed {
  background:
    radial-gradient(120% 90% at 14% 8%, var(--oc-bg2) 0%, transparent 58%),
    radial-gradient(110% 80% at 86% 12%, var(--oc-main) 0%, transparent 62%),
    radial-gradient(140% 110% at 50% 106%, var(--oc-bg2) 0%, transparent 66%),
    linear-gradient(160deg, var(--oc-bg1) 0%, var(--oc-bg2) 58%, var(--oc-deep) 100%);
}
html[data-oc-theme] .bg-blob {
  background: radial-gradient(circle at 45% 45%, var(--oc-main), transparent 70%);
  opacity: 0.38;
}
html[data-oc-theme] .bg-veil {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.06) 26%, rgba(0, 0, 0, 0.3));
}

/* 玻璃高光 / 文字 / 导航的可读性覆盖 */
html[data-oc-theme] .glass::before,
html[data-oc-theme] .card::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 44%);
  opacity: 0.9;
}
html[data-oc-theme] .data-row,
html[data-oc-theme] .oc-block .data-row { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); color: var(--ink); }
html[data-oc-theme] .data-row .k { color: var(--ink-3); }
html[data-oc-theme] .data-row .v { color: var(--ink); }
html[data-oc-theme] .oc-block p,
html[data-oc-theme] .oc-list li { color: var(--ink-2); }
html[data-oc-theme] .prose p,
html[data-oc-theme] .prose li { color: var(--ink-2); }
html[data-oc-theme] .section-sub,
html[data-oc-theme] .site-footer p { color: var(--ink-3); }
html[data-oc-theme] .todo-block { background: rgba(255, 255, 255, 0.08); color: var(--ink-2); border-color: rgba(255, 255, 255, 0.28); }
html[data-oc-theme] .todo { color: #fff; background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.34); }
html[data-oc-theme] code { background: rgba(255, 255, 255, 0.12); border-radius: 4px; padding: 1px 5px; }

/* 顶部导航 / 页脚在深色角色底上的表现 */
html[data-oc-theme] .header-inner { background: rgba(18, 12, 34, 0.62); }
html[data-oc-theme] .brand { background: rgba(255, 255, 255, 0.1); color: #fff; }
html[data-oc-theme] .nav-link { color: var(--ink-2); }
html[data-oc-theme] .nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
html[data-oc-theme] .nav-link.is-active { color: #fff; background: rgba(255, 255, 255, 0.18); }
html[data-oc-theme] .icon-btn { color: var(--ink-2); }
html[data-oc-theme] .icon-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.14); }
html[data-oc-theme] .nav-sub { background: rgba(18, 12, 34, 0.86); }
html[data-oc-theme] .nav-sub-link { color: var(--ink-2); }
html[data-oc-theme] .nav-sub-link:hover { color: #fff; }
html[data-oc-theme] .chip { color: var(--ink); background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.22); }
html[data-oc-theme] .chip:hover { color: #fff; box-shadow: var(--inset), 0 0 22px rgba(255, 255, 255, 0.2); }
html[data-oc-theme] .chip.is-active { color: #fff; background: linear-gradient(120deg, var(--oc-main), var(--oc-soft)); border-color: transparent; }
html[data-oc-theme] .btn { color: var(--ink); background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.24); }
html[data-oc-theme] .btn:hover { color: #fff; }
html[data-oc-theme] .site-footer { background: rgba(0, 0, 0, 0.24); border-top-color: rgba(255, 255, 255, 0.14); }
html[data-oc-theme] .footer-links a { color: var(--ink-2); }
html[data-oc-theme] .footer-links a:hover { color: #fff; }
html[data-oc-theme] .footer-icp { border-top-color: rgba(255, 255, 255, 0.14); }
html[data-oc-theme] .footer-icp a { color: var(--ink-3); }
html[data-oc-theme] .footer-icp a:hover { color: #fff; }
html[data-oc-theme] .back-top { color: #fff; }
html[data-oc-theme] .search-field input { color: var(--ink); }
html[data-oc-theme] .search-panel { background: rgba(18, 12, 34, 0.86); }
html[data-oc-theme] .search-item { color: var(--ink-2); }
html[data-oc-theme] .search-item .si-title { color: #fff; }
html[data-oc-theme] .search-item .si-desc { color: var(--ink-3); }
html[data-oc-theme] .search-item:hover { background: rgba(255, 255, 255, 0.1); }
/* 角色页的通用表格也用深色玻璃样式 */
html[data-oc-theme] .oc-table th { background: rgba(255, 255, 255, 0.12); color: #fff; }
html[data-oc-theme] .oc-table td { color: var(--ink-2); border-bottom-color: rgba(255, 255, 255, 0.12); }

/* 头部大图区 */
.oc-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
  padding: clamp(18px, 3vw, 30px);
  margin-bottom: 34px;
  overflow: hidden;
}
.oc-hero-media { position: relative; z-index: 1; }
.oc-hero-media > img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), var(--inset);
}
.oc-hero-thumb {
  position: absolute;
  right: -14px; bottom: -14px;
  width: 34%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 2px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.12);
}
.oc-hero-copy { position: relative; z-index: 1; }
.oc-name {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: 0.06em;
  margin: 14px 0 8px;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}
.oc-role { font-size: 0.98rem; color: var(--oc-soft); margin-bottom: 12px; }
.oc-theme {
  margin-top: 16px;
  padding: 12px 16px;
  border-left: 3px solid var(--oc-main);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: #fff;
}
.oc-alias { margin-top: 12px; font-size: 0.86rem; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.oc-alias span {
  padding: 2px 10px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: var(--oc-ink);
}

/* 内容区块 */
.oc-block { padding: clamp(18px, 3vw, 28px); margin-bottom: 22px; }
.oc-h2 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  gap: 10px;
}
.oc-h2::before {
  content: "";
  width: 4px; height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--oc-main), var(--oc-soft));
}
.oc-block p { font-size: 0.95rem; color: var(--ink-2); margin-bottom: 12px; }
.oc-list { margin: 4px 0 8px; display: grid; gap: 10px; }
.oc-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.94rem;
  color: var(--ink-2);
}
.oc-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.7em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--oc-main), var(--oc-soft));
}
.oc-quote {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: #fff;
  padding: 8px 0 8px 14px;
  margin-bottom: 10px;
  border-left: 2px solid var(--oc-soft);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

/* 表格 */
.table-wrap { overflow-x: auto; border-radius: var(--r-sm); }
.oc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 560px;
}
.oc-table th, .oc-table td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.oc-table th {
  color: #fff;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}
.oc-table td { color: var(--ink-2); }
.oc-table tbody tr:hover { background: rgba(255, 255, 255, 0.05); }

/* 列表页：角色卡立绘 */
.oc-card .oc-portrait { padding: 0; overflow: hidden; }
.oc-card .oc-portrait img { width: 100%; height: 100%; object-fit: cover; }
.oc-card .oc-tags .t { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 860px) {
  .oc-hero { grid-template-columns: minmax(0, 1fr); }
  .oc-hero-thumb { position: static; width: 100%; aspect-ratio: 3/4; margin-top: 12px; border-radius: var(--r-md); }
  .oc-hero-media > img { aspect-ratio: 4 / 3; }
}

/* ---------------- 画廊分组堆叠（点击展开） ---------------- */
.gal-stack { margin-bottom: 16px; padding: 0; overflow: hidden; }
.gal-stack > summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  -webkit-user-select: none;
  user-select: none;
}
.gal-stack > summary::-webkit-details-marker { display: none; }
.gal-stack > summary:hover { background: rgba(255, 255, 255, 0.28); }
.stack-thumbs { display: flex; flex: 0 0 auto; padding-left: 14px; }
.stack-thumbs img {
  width: 46px; height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--glass-brd);
  box-shadow: 0 6px 14px rgba(96, 76, 158, 0.22);
  margin-left: -14px;
  background: var(--bg-2);
  transition: transform 0.25s ease;
}
.gal-stack > summary:hover .stack-thumbs img { transform: translateY(-3px); }
.stack-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stack-title b { font-size: 1rem; color: var(--ink); letter-spacing: 0.02em; }
.stack-title small { font-size: 0.8rem; color: var(--ink-3); }
.gal-stack .chev {
  margin-left: auto;
  width: 20px; height: 20px;
  color: var(--ink-3);
  transition: transform 0.28s ease;
}
.gal-stack[open] .chev { transform: rotate(180deg); }
.gal-stack .gal-body { padding: 4px 16px 18px; border-top: 1px dashed var(--line-2); }
.gal-stack .gallery-grid { padding-top: 14px; }
html[data-oc-theme] .gal-stack > summary:hover { background: rgba(255, 255, 255, 0.1); }
html[data-oc-theme] .stack-title b { color: #fff; }

/* 站长头像：悬停顺时针转半圈，移开逆时针转回 */
.avatar-spin {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--glass-brd);
  box-shadow: var(--inset), 0 10px 24px rgba(96, 76, 158, 0.22);
  cursor: pointer;
  /* 悬停 720ms 转半圈，移开时以更慢的 900ms 逆时针回到原位 */
  transition: transform 1000ms cubic-bezier(0.34, 1.12, 0.36, 1), box-shadow 0.3s ease;
  will-change: transform;
}
.avatar-spin img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
}
.avatar-spin:hover,
.avatar-spin:focus-visible {
  transform: rotate(360deg);
  transition-duration: 1100ms;
  box-shadow: var(--inset), 0 12px 30px rgba(123, 92, 240, 0.35);
}
html[data-theme="dark"] .avatar-spin { border-color: rgba(255, 255, 255, 0.22); }
@media (max-width: 560px) {
  .avatar-spin { width: 92px; height: 92px; }
}
@media (prefers-reduced-motion: reduce) {
  .avatar-spin, .avatar-spin:hover { transition: none; transform: none; }
}

/* ---------------- 状态与骨架 ---------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 10px;
  border-radius: var(--r-pill);
  background: var(--a-soft);
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  color: var(--a1);
  font-size: 0.76rem;
}
.badge.is-muted { background: var(--glass-3); border-color: var(--glass-brd); color: var(--ink-3); }
.divider { height: 1px; margin: 28px 0; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-art { order: -1; max-width: 420px; }
}
@media (max-width: 760px) {
  .hero-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .hero-quick { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .search-wrap { flex: 1 1 auto; }
  .search-wrap.is-open { flex: 1 1 100%; order: 3; margin-top: 8px; }
  .search-panel { top: calc(var(--header-h) + 16px); }
  .post { grid-template-columns: 46px minmax(0, 1fr); padding: 16px; }
  .post-avatar { width: 46px; height: 46px; font-size: 1rem; }
  .data-row { grid-template-columns: 88px minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .brand span:not(.brand-mark) { display: none; }
  .brand { padding: 6px 11px; }
  .header-actions { padding-left: 5px; }
  .icon-btn { width: 33px; height: 33px; }
}
@media (max-width: 560px) {
  .card-grid.is-2 { grid-template-columns: minmax(0, 1fr); }
  .form-actions .count { margin-left: 0; width: 100%; }
  .timeline { padding-left: 24px; }
  .tl-item::before { left: -24px; }
}
