/* ===== software/css/style.css ===== */
/* ==========================================================================
   开源下载站 — 样式表
   设计目标：现代、清爽、精致；亮/暗双主题；完整响应式；保留无障碍焦点样式
   ========================================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
  --bg: #f8fafc;
  --bg-subtle: #f1f5f9;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-soft: #eef2ff;
  --primary-text: #4338ca;
  --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --gradient-soft: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(139, 92, 246, 0.12) 100%);

  --dot: rgba(100, 116, 139, 0.18);
  --header-bg: rgba(248, 250, 252, 0.82);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.05), 0 12px 32px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.10), 0 28px 60px rgba(15, 23, 42, 0.08);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", monospace;
}

[data-theme="dark"] {
  --bg: #0b1120;
  --bg-subtle: #111a2e;
  --surface: #131d33;
  --surface-soft: #17223b;
  --text: #f1f5f9;
  --text-secondary: #b0bdce;
  --text-muted: #7a8aa3;
  --border: #263451;
  --border-strong: #3b4c6b;

  --primary: #818cf8;
  --primary-hover: #a5b4fc;
  --primary-soft: rgba(129, 140, 248, 0.14);
  --primary-text: #c7d2fe;
  --gradient: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
  --gradient-soft: linear-gradient(135deg, rgba(129, 140, 248, 0.16) 0%, rgba(167, 139, 250, 0.16) 100%);

  --dot: rgba(148, 163, 184, 0.14);
  --header-bg: rgba(11, 17, 32, 0.82);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.24), 0 12px 32px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.32), 0 28px 60px rgba(0, 0, 0, 0.28);
}

/* ---------- 2. 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
svg { display: block; width: 100%; height: 100%; }

img { max-width: 100%; height: auto; }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }

/* ---------- 3. 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 10px;
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 6px 14px -6px var(--primary);
}

.nav-actions { display: flex; align-items: center; gap: 8px; }

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-link:hover { color: var(--text); background: var(--bg-subtle); }

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}
.icon-btn:hover { background: var(--bg-subtle); color: var(--text); }

.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.nav-github {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.nav-github svg { width: 18px; height: 18px; }
.nav-github:hover { border-color: var(--primary); color: var(--primary-text); transform: translateY(-1px); }

/* ---------- 4. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 76px;
  background:
    radial-gradient(ellipse 60% 80% at 15% 0%, rgba(99, 102, 241, 0.14), transparent 70%),
    radial-gradient(ellipse 50% 70% at 85% 10%, rgba(139, 92, 246, 0.12), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .hero {
  background:
    radial-gradient(ellipse 60% 80% at 15% 0%, rgba(99, 102, 241, 0.18), transparent 70%),
    radial-gradient(ellipse 50% 70% at 85% 10%, rgba(139, 92, 246, 0.16), transparent 70%),
    var(--bg);
}

/* 精致点阵背景 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 90%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 90%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
  pointer-events: none;
}
.hero-glow-1 { width: 320px; height: 320px; top: -160px; left: 8%; background: rgba(99, 102, 241, 0.30); }
.hero-glow-2 { width: 260px; height: 260px; top: -100px; right: 10%; background: rgba(167, 139, 250, 0.26); }

.hero-inner { position: relative; z-index: 1; text-align: center; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary-text);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.hero-badge svg { width: 14px; height: 14px; color: var(--primary); }

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 620px;
  margin: 32px auto 0;
  padding: 0 16px;
  height: 60px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft), var(--shadow-md);
  transform: translateY(-2px);
}
.search-icon { width: 22px; height: 22px; flex: none; color: var(--text-muted); }
.search-box input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
}
.search-box input::placeholder { color: var(--text-muted); }
.search-box input::-webkit-search-cancel-button { cursor: pointer; }
.search-kbd {
  flex: none;
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
}


/* ---------- 5. 软件库 ---------- */
.catalog { padding: 64px 0 72px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.section-head h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.section-subtitle { margin-top: 6px; color: var(--text-muted); font-size: 14px; }

.sort-control { display: flex; align-items: center; gap: 10px; flex: none; }
.sort-control label { color: var(--text-muted); font-size: 13px; white-space: nowrap; }
.select-wrap { position: relative; }
.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding: 9px 36px 9px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease;
}
.select-wrap select:hover { border-color: var(--primary); }
.select-wrap svg {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  pointer-events: none;
  transform: translateY(-50%);
}

.filter-bar { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 28px; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.filter-chip:hover { border-color: var(--primary); color: var(--primary-text); transform: translateY(-1px); }
.filter-chip[aria-pressed="true"] {
  border-color: transparent;
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 6px 16px -6px var(--primary);
}
.filter-chip .chip-count {
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 11px;
}
.filter-chip[aria-pressed="true"] .chip-count { background: rgba(255, 255, 255, 0.22); color: #fff; }

/* ---------- 纯文字列表（带框线 / 无卡片 / 无图片 / 无动画，轻量优先） ---------- */
.software-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  line-height: 1.5;
}
.app-row:hover { border-color: var(--border-strong); background: var(--bg-subtle); }

.row-index {
  flex: none;
  width: 42px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.row-main { flex: 1; min-width: 0; }
.row-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.row-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.row-featured { color: var(--primary-text); font-size: 11px; font-weight: 700; }
.row-version, .row-category { color: var(--text-muted); font-size: 11px; }
.row-category::before { content: "· "; }
.row-desc {
  margin-top: 2px;
  color: var(--text-secondary);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-platform {
  flex: none;
  width: 104px;
  color: var(--text-muted);
  font-size: 11px;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.row-links { display: flex; align-items: center; gap: 8px; }
.row-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.row-link:hover { color: var(--primary-text); }
.row-star { color: var(--text-muted); font-size: 11px; white-space: nowrap; }
.row-download {
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-subtle);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.row-download:hover { border-color: var(--primary); color: var(--primary-text); }

/* ---------- 7. 空状态 ---------- */
.empty-state { padding: 80px 20px; text-align: center; }
.empty-state[hidden] { display: none; }
.empty-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  padding: 18px;
  border-radius: 20px;
  background: var(--primary-soft);
  color: var(--primary);
}
.empty-state h3 { font-size: 20px; font-weight: 700; }
.empty-state p { margin: 8px 0 22px; color: var(--text-muted); }


/* ---------- 9. 页脚 ---------- */
.site-footer { margin-top: 72px; border-top: 1px solid var(--border); background: var(--surface); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 30px 0; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand strong { font-size: 14px; }
.footer-brand p { margin-top: 2px; color: var(--text-muted); font-size: 12px; }
.footer-copy { color: var(--text-muted); font-size: 12px; }

/* ---------- 10. 轻提示 Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 100;
  padding: 12px 22px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 11. 响应式 ---------- */
@media (max-width: 820px) {
  .section-head { align-items: flex-start; flex-direction: column; }
  .row-platform { display: none; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 32px, 1200px); }
  html { scroll-padding-top: 76px; }
  .nav { height: 60px; }
  .nav-link { display: none; }
  .nav-github span { display: none; }
  .nav-github { padding: 9px; }
  .hero { padding: 60px 0 56px; }
  .hero h1 { font-size: 38px; }
  .desktop-only { display: none; }
  .search-box { height: 54px; margin-top: 26px; }
  .search-kbd { display: none; }
  .catalog { padding: 48px 0 56px; }
  .section-head h2 { font-size: 24px; }
  .sort-control label { display: none; }
  .row-index { width: 30px; }
  .row-platform { display: none; }
  .row-desc { white-space: normal; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .site-footer { margin-top: 56px; }
}

/* ---------- 12. 尊重减少动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* 系统状态条 */
.sys-status { position: relative; border-bottom: 1px solid var(--border); background: var(--surface-soft); }
.sys-status-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 34px; }
.sys-status-left, .sys-status-right { display: flex; align-items: center; gap: 12px; }
.sys-pulse { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; flex: none; }
.sys-pulse::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 1px solid #22c55e; animation: sysPing 2s ease-out infinite; }
@keyframes sysPing { 0% { transform: scale(.7); opacity: .9; } 80%, 100% { transform: scale(1.9); opacity: 0; } }
.sys-label, .sys-metric, .sys-live {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10.5px; font-weight: 600; letter-spacing: .08em; color: var(--text-secondary);
}
.sys-label { color: #16a34a; }
.sys-divider { width: 1px; height: 13px; background: var(--border-strong); }
.sys-desc { color: var(--text-muted); font-size: 11.5px; }
.sys-metric b { color: var(--accent-text); font-weight: 700; font-variant-numeric: tabular-nums; }
.sys-live { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text); }
.sys-live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@media (max-width: 640px) { .sys-desc, .sys-divider { display: none; } .sys-status-right { gap: 9px; } }
@media (prefers-reduced-motion: reduce) { .sys-pulse::after { animation: none; } }

/* ===== shared/css/sites.css ===== */
/* ==========================================================================
   统一站点栏
   注入到门户与两个子站顶部，提供跨站点切换
   ========================================================================== */

:root {
  --hub-accent: #6366f1;
  --hub-accent-2: #8b5cf6;
  --hub-bar-h: 46px;
}

.hub-bar {
  position: sticky; top: 0; z-index: 100;
  height: var(--hub-bar-h);
  background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid #e6eaf3;
  color: #0f172a;
}
[data-theme="dark"] .hub-bar { background: rgba(15,23,42,.88); border-bottom-color: #2c3b57; color: #f1f5f9; }

.hub-bar-inner {
  width: min(1180px, 100% - 48px); height: 100%; margin-inline: auto;
  display: flex; align-items: center; justify-content: flex-end; gap: 16px;
}

.hub-nav { display: flex; align-items: center; gap: 4px; }
.hub-nav a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 9px; font-size: 12.5px; font-weight: 600;
  color: #64748b; transition: color .2s ease, background .2s ease; white-space: nowrap;
}
.hub-nav a:hover { color: var(--hub-accent); background: rgba(99,102,241,.09); }
.hub-nav a svg { width: 14px; height: 14px; }
.hub-nav a[aria-current="page"] { color: var(--hub-accent); background: rgba(99,102,241,.12); }
[data-theme="dark"] .hub-nav a { color: #94a3b8; }
[data-theme="dark"] .hub-nav a[aria-current="page"] { color: #a5b4fc; background: rgba(129,140,248,.16); }
[data-theme="dark"] .hub-nav a:hover { color: #a5b4fc; background: rgba(129,140,248,.12); }

/* 门户站点栏右侧主题按钮 */
.hub-theme-btn {
  display: grid; place-items: center; width: 32px; height: 32px; padding: 7px;
  border: 1px solid #e6eaf3; border-radius: 9px; background: #fff; color: #64748b;
  transition: all .2s ease;
}
.hub-theme-btn:hover { border-color: var(--hub-accent); color: var(--hub-accent); }
.hub-theme-btn svg { width: 100%; height: 100%; }
[data-theme="dark"] .hub-theme-btn { background: #1e293b; border-color: #2c3b57; color: #94a3b8; }
[data-theme="dark"] .hub-theme-btn .icon-sun { display: block; }
[data-theme="dark"] .hub-theme-btn .icon-moon { display: none; }
.hub-theme-btn .icon-sun { display: none; }

/* 子站已黏顶的 header 下移到站点栏之下；锚点滚动留出空间 */
body[data-site="software"] .site-header,
body[data-site="windows"] .site-header { top: var(--hub-bar-h); }
body[data-site="software"] html,
body[data-site="windows"] html { scroll-padding-top: calc(var(--hub-bar-h) + 88px); }

@media (max-width: 640px) {
  .hub-bar-inner { width: min(100% - 28px, 1180px); }
  .hub-nav a { padding: 7px 9px; font-size: 12px; }
  .hub-nav a .hub-label-en { display: none; }
}

/* ===== shared/css/clock.css ===== */
/* ==========================================================================
   顶部站点栏时钟 —— 三站统一，注入在 hub-nav 最右侧
   深浅主题自动适配；窄屏逐步精简，只保留时间
   ========================================================================== */

.hub-clock {
  display: inline-flex; align-items: center; gap: 7px;
  margin-left: 6px; padding-left: 12px;
  border-left: 1px solid var(--border-strong);
  color: var(--text-secondary);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 11.5px; white-space: nowrap;
}
.clock-live {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700; letter-spacing: .08em;
  color: var(--accent-text, var(--primary-text, #4F46E5));
}
.clock-dot { position: relative; width: 6px; height: 6px; border-radius: 50%; background: #22c55e; }
.clock-dot::after {
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  border: 1px solid #22c55e; animation: clockPulse 2s ease-out infinite;
}
@keyframes clockPulse { 0% { transform: scale(.7); opacity: .9; } 80%, 100% { transform: scale(1.8); opacity: 0; } }
.clock-icon { width: 13px; height: 13px; color: var(--accent, var(--primary, #6366F1)); flex: none; }
.hub-clock time { font-variant-numeric: tabular-nums; }
#clockTime {
  color: var(--accent-text, var(--primary-text, #4F46E5));
  font-weight: 700; letter-spacing: .03em;
}
@media (max-width: 900px) { .hub-clock .clock-live, .hub-clock .clock-icon { display: none; } }
@media (max-width: 640px) { .hub-clock #clockDate { display: none; } }
@media (prefers-reduced-motion: reduce) { .clock-dot::after { animation: none; } }

/* ===== shared/css/visitor-counter.css ===== */
/* 共享组件：站点访问统计 / VISITOR COUNTER
 * 三站共用（门户 / 软件站 / Windows 镜像站）
 * 设计：低调的一行小字信息条，所有内容排在同一行；无渐变线、无光晕、无动画、无高斯模糊。
 * --font-mono 缺失时回退到系统等宽字体。
 */
.visit-counter { padding: 4px 0 44px; }

.counter-panel {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
}

.counter-head { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.counter-status {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Consolas, monospace);
  font-size: 10px; font-weight: 500; letter-spacing: .04em; color: var(--text-muted);
  white-space: nowrap;
}
.counter-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--text-muted); opacity: .8; flex: none; }
.counter-label {
  font-size: 10px; font-weight: 500; letter-spacing: .02em; color: var(--text-muted);
  white-space: nowrap;
}

.counter-main { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; white-space: nowrap; }
.counter-primary { display: inline-flex; align-items: baseline; gap: 6px; }
.counter-caption { font-size: 10px; color: var(--text-muted); letter-spacing: .02em; }
.counter-number-wrap { display: inline-flex; align-items: baseline; gap: 3px; }
.counter-number {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Consolas, monospace);
  font-size: 12px; font-weight: 600; line-height: 1;
  font-variant-numeric: tabular-nums; color: var(--text-muted);
}
.counter-unit { font-size: 10px; color: var(--text-muted); }

@media (max-width: 640px) {
  .visit-counter { padding: 4px 0 32px; }
  .counter-panel { padding: 9px 12px; gap: 8px; }
  .counter-head { gap: 7px; }
  .counter-status { display: none; }
}
