/**
 * acc_recon 页面字体规格（仅四种）
 * 1 标题 2 按键 3 说明 4 提示 —— 详见 Coding/WebSystem/SRS.md
 */

/* 强制字体栈（Tailwind CDN preflight 为 body{font-family:system-ui!important}，特异性(0,1,0)）
   用 html body{...!important} 特异性(0,2,0) > (0,1,0)，确保赢过 preflight
   同时 body[style] 会产生(1,0,0)特异性，因此该规则必须在CSS文件末尾定义，
   并在HTML inline style里同步写入 font-family 以保证二者一致。 */
html body, body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  color: inherit !important;
}
.typo-title--page {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.3;
  color: #111827;
}
.typo-title--section {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  color: #111827;
}
.typo-title--metric {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  color: inherit;
}
.typo-action {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
}
.typo-body {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.625;
  color: #6b7280;
}
/* 与说明正文同字号，加粗（如对账结果标题、结果区数字） */
.typo-body--bold {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.625;
  color: #111827;
}
.typo-hint {
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.5;
  color: #9ca3af;
}
.typo-hint--dark {
  color: #6b7280;
}
.typo-mono-inline {
  font-size: inherit;
  font-weight: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* main.html：与 style.css 并存，用类统一四级（标题/按键/说明/提示） */
.page .hero h1.typo-title--page {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.3;
  margin: 0 0 1rem;
  color: var(--text);
}

.page .intro,
.page .intro p {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.625;
  color: var(--muted);
}

.page .card h3.typo-title--section {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 0.45rem;
}

.page .card .desc.typo-body {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.625;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.page .btn.typo-action {
  font-size: 0.875rem !important;
  font-weight: 500 !important;
}

.page .output h2.typo-title--section {
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  color: var(--text) !important;
  margin: 0 0 0.85rem;
}

.page .output .typo-body {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.625;
  color: var(--muted);
}

.page .subtle-link.typo-hint {
  font-size: 0.75rem;
  font-weight: 400;
}

/* login.html：浅色卡片，与 index 同系（.login-page + #login-form） */
.acc-recon-console.login-page .form-label.typo-hint {
  display: block;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ca3af !important;
}
.acc-recon-console.login-page #login-form input.typo-body {
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  color: #111827 !important;
  font-family: ui-sans-serif, system-ui, sans-serif !important;
}
.acc-recon-console.login-page #login-form input.typo-body::placeholder {
  color: #9ca3af !important;
}
.acc-recon-console.login-page .login-error.typo-hint--dark {
  font-size: 0.75rem !important;
  line-height: 1.5 !important;
}

/* ---------- index.html（Tailwind CDN 会晚注入工具类，易盖住 .typo-*，此处用容器 + !important 锁死四级） ---------- */
.acc-recon-console .typo-title--page {
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.3 !important;
  color: #111827 !important;
  margin: 0 !important;
}
.acc-recon-console .typo-title--section {
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: #111827 !important;
}
.acc-recon-console .typo-title--metric {
  font-size: 1rem !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
}
.acc-recon-console .typo-action {
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
}
.acc-recon-console label.typo-action {
  color: #1f2937 !important;
}
.acc-recon-console button.typo-action {
  color: #fff !important;
}
.acc-recon-console a.typo-action.bg-black {
  color: #fff !important;
}
/* 与首页「上传文件」灰按钮同档的链接按钮（避免 a.typo-action 一律白字） */
.acc-recon-console .typo-action-muted {
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  color: #1f2937 !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.acc-recon-console .typo-body {
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.625 !important;
  color: #6b7280;
}
.acc-recon-console .typo-body strong {
  font-weight: 600 !important;
  color: #4b5563 !important;
}
.acc-recon-console .typo-hint {
  font-size: 0.75rem !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  color: #9ca3af;
}
.acc-recon-console .typo-hint--dark {
  color: #6b7280 !important;
}
.acc-recon-console .typo-body--bold {
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.625 !important;
}
.acc-recon-console h2.typo-body--bold {
  color: #111827 !important;
}
.acc-recon-console #log-details summary.typo-hint,
.acc-recon-console #result-log.typo-hint {
  font-weight: 400 !important;
  font-size: 0.75rem !important;
  line-height: 1.5 !important;
  color: #9ca3af !important;
}

/* ---------- shared shell pages (main/admin/login/ai) ---------- */
.acc-recon-console .shell-wrap {
  width: min(100%, 820px);
  margin: 0 auto;
}
.acc-recon-console .shell-wrap--narrow {
  width: min(100%, 700px);
}
.acc-recon-console .shell-header {
  position: relative;
}
.acc-recon-console .shell-title {
  margin: 0 0 4px !important;
}
.acc-recon-console .shell-subtitle {
  margin: 0;
}
.acc-recon-console .brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.acc-recon-console .brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff79a9 0%, #ea4f86 100%);
  color: #fff;
  box-shadow: 0 8px 16px rgba(234, 79, 134, 0.18);
  flex-shrink: 0;
}
.acc-recon-console .brand-mark svg {
  width: 1rem;
  height: 1rem;
}
.acc-recon-console .shell-panel {
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 2rem;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.05);
}
.acc-recon-console .feature-card {
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 2rem;
  transition: all 0.28s ease;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.04);
}
.acc-recon-console .feature-card--hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.08);
}
.acc-recon-console .feature-card-title {
  margin: 0 0 6px;
}
.acc-recon-console .feature-card-text {
  margin: 0;
}
.acc-recon-console .surface-chip {
  border-radius: 999px;
  border: 1px solid #e8e8e8;
  background: #f8f8f8;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}
.acc-recon-console .surface-chip:hover {
  background: #efefef;
}
.acc-recon-console .surface-chip-dark {
  border-radius: 999px;
  background: #050505;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.12);
}
.acc-recon-console .surface-chip-dark:hover {
  background: #1f2937;
}
.acc-recon-console .btn-surface {
  padding: 10px 22px;
  border-radius: 999px;
  background: #f1f1f1;
  color: #111827;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.acc-recon-console .btn-surface:hover {
  background: #e5e5e5;
}

@media (max-width: 768px) {
  .acc-recon-console .shell-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  .acc-recon-console .shell-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  .acc-recon-console .feature-row {
    flex-direction: column;
  }
  .acc-recon-console .feature-side {
    width: 100% !important;
    padding-top: 0.25rem;
    justify-content: flex-end;
  }
  .acc-recon-console .feature-main {
    min-height: 140px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .acc-recon-console .feature-main-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .acc-recon-console .feature-main-actions {
    width: 100%;
    flex-wrap: wrap;
  }
}
