/* ============================================================
   律所详情页（firm/{slug}/index.html）专属样式
   复用 style.css 的 modal-card / firm-logo / compare 等通用组件
   ============================================================ */

/* --- 面包屑 --- */
.firm-breadcrumb {
  padding: 96px 24px 0;
  max-width: 880px;
  margin: 0 auto;
  font-size: 13px;
  color: var(--text-tertiary);
}
.firm-breadcrumb a { color: var(--text-tertiary); transition: var(--transition); }
.firm-breadcrumb a:hover { color: var(--black); }
.firm-breadcrumb .sep { margin: 0 8px; color: var(--gray-300); }

/* --- 头部 --- */
.firm-hero { padding: 28px 24px 8px; max-width: 880px; margin: 0 auto; }
.firm-hero-badges { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.firm-hero-title-row { display: flex; align-items: center; gap: 18px; }
.firm-hero-name {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--black);
  line-height: 1.2;
}
.firm-hero-location { margin-top: 6px; font-size: 14px; color: var(--text-tertiary); }
.firm-hero-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

/* --- 描述 --- */
.firm-desc {
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--text-secondary);
  max-width: 880px;
  margin: 28px auto 0;
  padding: 0 24px;
}

/* --- 区块容器（信息卡 / 动态 / 相关机构） --- */
.firm-section {
  max-width: 880px;
  margin: 40px auto 0;
  padding: 0 24px;
}

/* 三维判断依据：与正文容器对齐（880px 居中 + 24px 内边距） */
body.firm-detail .tax-assessment {
  max-width: 880px;
  margin: 28px auto 0;
  padding: 18px 24px;
}
.firm-section-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- 融资明细 --- */
.funding-total-line { font-size: 14px; color: var(--text-secondary); margin-bottom: 12px; }
.funding-total-line strong { color: var(--black); font-size: 16px; }
.funding-rounds { list-style: none; }
.funding-rounds li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 14px;
  color: var(--text-secondary);
}
.funding-rounds li:last-child { border-bottom: none; }
.funding-rounds .round-name { color: var(--black); font-weight: 500; }
.funding-note { font-size: 12.5px; color: var(--text-quaternary); margin-top: 10px; line-height: 1.6; }

/* --- 信息卡网格：复用 modal-cards --- */
.firm-detail .modal-cards { margin-top: 0; }

/* --- 动态列表 --- */
.firm-updates-list { border-left: 2px solid var(--gray-200); padding-left: 20px; }
.firm-update-item { padding: 12px 0; }
.firm-update-date { font-size: 12.5px; color: var(--text-quaternary); margin-bottom: 4px; }
.firm-update-title { font-size: 14.5px; font-weight: 500; color: var(--text-primary); line-height: 1.6; }
.firm-update-detail { font-size: 13.5px; color: var(--text-tertiary); line-height: 1.8; margin-top: 6px; }

/* --- 相关机构 --- */
.firm-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.firm-related-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: var(--transition);
}
.firm-related-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.firm-related-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.firm-related-meta { font-size: 12px; color: var(--text-tertiary); margin-top: 2px; }

/* --- 上一家 / 下一家 --- */
.firm-prevnext {
  max-width: 880px;
  margin: 44px auto 0;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.firm-prevnext a {
  flex: 1;
  max-width: 340px;
  padding: 14px 18px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--text-secondary);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.firm-prevnext a:hover { border-color: var(--border-hover); box-shadow: var(--shadow); }
.firm-prevnext .dir { font-size: 12px; color: var(--text-quaternary); }
.firm-prevnext .next { text-align: right; margin-left: auto; }

/* --- 底部元信息 --- */
.firm-meta-footer {
  max-width: 880px;
  margin: 36px auto 0;
  padding: 16px 24px 0;
  border-top: 1px solid var(--gray-100);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--text-quaternary);
  flex-wrap: wrap;
}

.firm-detail .footer { margin-top: 56px; }

/* --- 信息行（成立时间/创始人/机构类型/定价/团队/投资方等单值事实） --- */
.firm-info-rows {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--white);
  overflow: hidden;
}
.info-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 14px;
}
.info-row:last-child { border-bottom: none; }
.info-row-label { color: var(--text-tertiary); }
.info-row-value { color: var(--text-primary); font-weight: 500; line-height: 1.7; }
.info-row-note { margin-top: 4px; font-size: 12.5px; font-weight: 400; color: var(--text-quaternary); }

/* --- 业务领域 chips --- */
.area-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* --- 融资轮次时间轴 --- */
.funding-timeline {
  list-style: none;
  position: relative;
  padding-left: 22px;
  margin: 16px 0 0;
}
.funding-timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--gray-200);
}
.funding-timeline li {
  position: relative;
  padding: 8px 0 14px;
}
.funding-timeline li:last-child { padding-bottom: 2px; }
.ft-dot {
  position: absolute;
  left: -22px;
  top: 14px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--gray-200);
}
.ft-body { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.ft-round { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.ft-amount { font-size: 14px; color: var(--text-secondary); }

/* --- 证据档案 --- */
.evidence-section-heading {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  margin: 18px 0 10px;
}
.evidence-claim-rationale {
  display: block;
  font-size: 12.5px;
  color: var(--text-quaternary);
  line-height: 1.7;
}
.evidence-claim-card { text-align: left; }
.evidence-overview {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  flex-wrap: wrap;
}
.evidence-overview-title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--text-primary); }
.evidence-overview-summary { margin-top: 6px; font-size: 13px; color: var(--text-tertiary); }
.evidence-overview-meta { font-size: 12.5px; color: var(--text-quaternary); }

/* --- 相似律所理由 chips --- */
.similar-reasons { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.reason-chip {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 100px;
  background: var(--bg-tertiary);
  color: var(--text-tertiary);
  white-space: nowrap;
}

/* --- 其他 --- */
.firm-section-text { font-size: 15px; line-height: 1.8; color: var(--text-secondary); margin: 12px 0; }
.firm-sub-title { font-size: 13px; font-weight: 600; color: var(--text-tertiary); margin: 4px 0 10px; }
.firm-cta { display: flex; justify-content: center; padding-top: 8px; }
.firm-cta .modal-website-btn { padding: 12px 28px; font-size: 14.5px; }

@media (max-width: 640px) {
  .firm-breadcrumb { padding-top: 88px; }
  .firm-hero-title-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .firm-related-grid { grid-template-columns: 1fr; }
  .firm-prevnext { flex-direction: column; }
  .firm-prevnext a { max-width: none; }
  .firm-prevnext .next { text-align: left; }
  .info-row { grid-template-columns: 1fr; gap: 4px; }
  .ft-body { flex-direction: column; gap: 2px; }
}

/* 融资模块：行式结构（融资总额 / 融资轮次逐轮缩进 / 投资方） */
.funding-round-line { margin: 12px 0; color: var(--text-secondary); }
.funding-round-line .tax-zh, .funding-round-line .tax-en { color: inherit; }

/* 正文内出处链接（创业原因/代表客户等引用原文跳转） */
.firm-section-text a.firm-src-link {
  color: var(--accent, #2563eb);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.firm-section-text a.firm-src-link:hover {
  text-decoration-thickness: 2px;
}
