/* 打磨版 A：配色仍是现行海军蓝 / 铜。不改正文字体与报告阅读字号。 */
html.theme-a {
  color-scheme: light;
}

.theme-a .skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 200;
  padding: 8px 12px;
  background: var(--paper-2);
  color: var(--ink);
  border: 1px solid var(--accent);
  transform: translateY(-160%);
}
.theme-a .skip-link:focus {
  transform: none;
}

.theme-a .ui-switch {
  font-size: 12px;
  color: #f0d4c4;
  text-decoration: underline;
  white-space: nowrap;
}
.theme-a .login-page .ui-switch,
.theme-a .login-foot .ui-switch {
  color: var(--accent);
}

.theme-a :focus {
  outline: none;
}
.theme-a :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.theme-a .sidebar {
  padding: max(8px, env(safe-area-inset-top, 0px)) 18px 8px;
  gap: 8px 12px;
  box-shadow: 0 6px 16px rgba(7, 19, 32, 0.14);
}
.theme-a .nav button,
.theme-a .nav-ext {
  padding: 8px 12px;
}
.theme-a .nav button.active,
.theme-a .nav-ext.active {
  background: #1a3a54;
  color: #f6e4d8;
}

.theme-a .kicker {
  letter-spacing: 0.08em;
  padding-right: 0;
}
.theme-a .topbar {
  padding: 22px 36px 12px;
}
.theme-a .topbar h1 {
  letter-spacing: 0;
  font-size: 28px;
}
.theme-a .view {
  padding: 4px 36px 48px;
}

.theme-a .cards {
  gap: 14px;
}
.theme-a .card,
.theme-a .hub-cards .card {
  min-height: 132px;
  padding: 16px 16px 14px;
  box-shadow: none;
}
.theme-a .card::before {
  height: 2px;
  background: var(--accent);
  right: auto;
  width: 28px;
}
.theme-a .card:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--accent);
  background: #fff;
}
.theme-a .card h2 {
  letter-spacing: 0;
  font-size: 18px;
}
.theme-a .card .meta {
  letter-spacing: 0;
}
.theme-a .card .stamp-date {
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.theme-a .card.unread h2,
.theme-a .stock-card.unread .name {
  color: #8a4a28;
}

.theme-a .btn {
  letter-spacing: 0;
}
.theme-a .btn:hover:not(:disabled) {
  filter: brightness(1.06);
}

.theme-a table.plain th,
.theme-a table.plain td,
.theme-a .report th,
.theme-a .report td,
.theme-a .stock-card .code,
.theme-a .kpi b {
  font-variant-numeric: tabular-nums;
}
.theme-a table.plain thead th {
  position: sticky;
  top: 0;
  background: var(--paper-2);
  z-index: 1;
}
.theme-a table.plain tbody tr:hover {
  background: rgba(196, 110, 56, 0.08);
}

.theme-a .kpi {
  box-shadow: none;
  padding: 14px 14px 12px;
}
.theme-a .kpi b {
  font-size: 30px;
}

.theme-a .login-card {
  padding: 32px 28px 24px;
  box-shadow: none;
}
.theme-a .login-form button {
  letter-spacing: 0;
}
.theme-a .login-foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.theme-a .filters,
.theme-a .upload {
  padding: 12px 14px;
  margin: 0 0 14px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
}
.theme-a .filters label,
.theme-a .upload label:not(.check) {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--ink-soft);
}
.theme-a .filters {
  align-items: flex-end;
}
.theme-a .filters input,
.theme-a .filters select,
.theme-a .upload input,
.theme-a .upload select {
  min-height: 36px;
}
.theme-a #files-body tr[data-path]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.theme-a {
  touch-action: manipulation;
}

@media (prefers-reduced-motion: reduce) {
  .theme-a .card,
  .theme-a .card:hover {
    transition: none;
    transform: none;
  }
  .theme-a *,
  .theme-a *::before,
  .theme-a *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.theme-a .toc,
.theme-a .stock-reader .toc {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--ink-soft);
  padding: 0 14px 8px 0;
  border-right: 1px solid var(--rule);
}
.theme-a .toc::before,
.theme-a .stock-reader .toc::before {
  content: "目录";
  display: block;
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.theme-a .toc ul ul {
  padding-left: 10px;
  margin: 2px 0 6px;
  border-left: 1px solid var(--rule);
}
.theme-a .toc a,
.theme-a .stock-reader .toc a {
  display: block;
  padding: 3px 0;
  font-weight: 500;
  color: var(--ink-soft);
}
.theme-a .toc ul ul a,
.theme-a .stock-reader .toc ul ul a {
  font-weight: 400;
  font-size: 12px;
  color: var(--muted);
}
.theme-a .toc a:hover,
.theme-a .stock-reader .toc a:hover {
  color: var(--ink);
}

.theme-a .lang-switch {
  border-color: #d5c3b4;
  background: #fff;
}
.theme-a .lang-switch button {
  font-size: 12px;
  letter-spacing: 0.02em;
}
.theme-a .lang-switch button.on {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 960px) {
  .theme-a .topbar,
  .theme-a .view {
    padding-left: 16px;
    padding-right: 16px;
  }
  .theme-a .topbar h1 {
    font-size: 22px;
  }
  .theme-a .toc,
  .theme-a .stock-reader .toc {
    border-right: 0;
  }
}
