/* ASI 铝业管理倡议助手 — 工具专属样式
 * 规则：颜色一律用 css/theme.css 的 CSS 变量；容器宽度遵循 1200px 站点规范。
 */

/* ===== 通用区块 ===== */
.asi-card {
  background: var(--gray-50, #f9fafb);
  border: 1px solid var(--gray-200, #e5e7eb);
  border-radius: 0.75rem;
  padding: 1.25rem;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.asi-card:hover {
  border-color: var(--primary-300, #86efac);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
}

.asi-badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .72rem;
  font-weight: 600;
  border-radius: 9999px;
  padding: .12rem .6rem;
  line-height: 1.4;
}

/* 板块主题徽章 */
.asi-badge-ps { background: #dbeafe; color: #1d4ed8; }
.asi-badge-coc { background: #cffafe; color: #0e7490; }
.asi-badge-asr { background: var(--primary-100, #dcfce7); color: var(--primary-700, #15803d); }

/* 成熟度等级点 */
.asi-dot { width: .5rem; height: .5rem; border-radius: 9999px; display: inline-block; }
.asi-dot-hi { background: #16a34a; }
.asi-dot-mid { background: #d97706; }
.asi-dot-lo { background: #dc2626; }

/* 准则详情页条款卡 */
.asi-req {
  border-left: 3px solid var(--primary-500, #22c55e);
  background: var(--gray-50, #f9fafb);
  border-radius: 0 .5rem .5rem 0;
  padding: .9rem 1rem;
  margin-bottom: .75rem;
}
.asi-req-no {
  font-weight: 700;
  color: var(--primary-700, #15803d);
  margin-right: .5rem;
  white-space: nowrap;
}
.asi-scope {
  display: inline-block;
  font-size: .7rem;
  color: var(--gray-500, #6b7280);
  border: 1px solid var(--gray-200, #e5e7eb);
  border-radius: 9999px;
  padding: 0 .5rem;
  margin-left: .35rem;
  vertical-align: middle;
}
.asi-guidance {
  margin-top: .4rem;
  font-size: .82rem;
  color: var(--gray-600, #4b5563);
  background: var(--primary-bg, #f0fdf4);
  border-radius: .375rem;
  padding: .45rem .65rem;
}
.asi-guidance::before { content: "💡 指南要点："; font-weight: 600; color: var(--primary-700, #15803d); }

/* 步骤时间线（认证周期） */
.asi-steps { position: relative; padding-left: 1.4rem; }
.asi-steps::before {
  content: "";
  position: absolute;
  left: .42rem; top: .5rem; bottom: .5rem;
  width: 2px;
  background: var(--gray-200, #e5e7eb);
}
.asi-step { position: relative; padding-bottom: 1rem; }
.asi-step::before {
  content: "";
  position: absolute;
  left: -1.18rem; top: .38rem;
  width: .8rem; height: .8rem;
  border-radius: 9999px;
  background: var(--gray-50, #fff);
  border: 2px solid var(--primary-500, #22c55e);
}
.asi-step-title { font-weight: 600; color: var(--gray-900, #111827); }
.asi-step-desc { font-size: .85rem; color: var(--gray-600, #4b5563); margin-top: .15rem; }

/* 表格基础 */
.asi-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.asi-table th {
  text-align: left;
  background: var(--gray-100, #f3f4f6);
  color: var(--gray-800, #1f2937);
  font-weight: 600;
  padding: .55rem .75rem;
  border-bottom: 2px solid var(--gray-200, #e5e7eb);
  white-space: nowrap;
}
.asi-table td {
  padding: .55rem .75rem;
  border-bottom: 1px solid var(--gray-200, #e5e7eb);
  vertical-align: top;
  color: var(--gray-700, #374151);
}
.asi-table tr:hover td { background: var(--gray-50, #fafafa); }

/* 术语字母索引 */
.asi-alpha-nav a {
  display: inline-block;
  min-width: 1.9rem;
  text-align: center;
  padding: .2rem .3rem;
  border-radius: .375rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray-600, #4b5563);
}
.asi-alpha-nav a:hover { background: var(--primary-100, #dcfce7); color: var(--primary-700, #15803d); }

/* 交叉引用块 */
.asi-xref {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--gray-200, #e5e7eb);
}
.asi-xref-label { font-size: .78rem; font-weight: 600; color: var(--gray-500, #6b7280); white-space: nowrap; }
.asi-xref a {
  font-size: .8rem;
  color: var(--primary-700, #15803d);
  background: var(--primary-bg, #f0fdf4);
  border: 1px solid var(--primary-200, #bbf7d0);
  border-radius: 9999px;
  padding: .18rem .7rem;
}
.asi-xref a:hover { background: var(--primary-100, #dcfce7); }

/* 免责声明页脚行 */
.asi-footer-note {
  margin-top: 2rem;
  font-size: .72rem;
  color: var(--gray-400, #9ca3af);
}

/* 移动端细节 */
@media (max-width: 640px) {
  .asi-table th:nth-child(n+4),
  .asi-table td:nth-child(n+4) { white-space: normal; }
}
