/*
 * 嘉才集团官网 · 服务页模板
 * ------------------------------------------------------------------
 * 三条业务线页面（AI 转型 / 债权融资 / 股权融资）共用的版式组件：
 *   页面首屏、面包屑、页内二级导航、适配判断、服务模块、推进流程、
 *   对照表、双通道 Tabs、交付清单、提示条。
 * 依赖 styles.css 的变量与通用类；机构检索库样式在 equity-financing.css。
 * ------------------------------------------------------------------
 */

/* ---------- 页面首屏 ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(ellipse 78% 62% at 88% 4%, rgba(200, 163, 90, 0.2), transparent 62%),
    linear-gradient(158deg, var(--navy-deep) 0%, #0e2036 56%, #0a1728 100%);
}

.page-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0 1px,
    transparent 1px 96px
  );
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 55%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 55%);
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 26px 20px 36px;
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.crumb a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  text-underline-offset: 3px;
}

.crumb a:hover,
.crumb a:focus-visible {
  color: var(--gold-soft);
  text-decoration: underline;
}

.crumb span[aria-current] {
  color: var(--gold-soft);
}

.page-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 7vw, 46px);
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 16px 42px rgba(0, 0, 0, 0.45);
}

.page-hero-service {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 18px 0 0;
  padding: 5px 14px;
  border: 1px solid rgba(234, 214, 164, 0.36);
  border-radius: 999px;
  color: var(--gold-soft);
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

.page-hero-service span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.page-hero-lead {
  max-width: 700px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14.5px;
  line-height: 1.94;
}

.page-hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 30px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line-light);
  list-style: none;
}

.page-hero-facts li {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding-left: 12px;
  border-left: 2px solid rgba(200, 163, 90, 0.6);
}

.page-hero-facts strong {
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: clamp(18px, 4.4vw, 26px);
  font-weight: 700;
  line-height: 1.2;
}

.page-hero-facts span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11.5px;
  line-height: 1.5;
}

/* ---------- 页内二级导航 ---------- */

.subnav {
  position: -webkit-sticky;
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(230, 237, 242, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.subnav-inner {
  display: flex;
  gap: 4px;
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.subnav-inner::-webkit-scrollbar {
  display: none;
}

.subnav a {
  flex: none;
  padding: 13px 12px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

.subnav a:hover,
.subnav a:focus-visible {
  color: var(--ink);
}

.subnav a.is-active {
  border-bottom-color: var(--gold);
  color: var(--ink);
  font-weight: 700;
}

/* ---------- 锚点定位偏移（避开吸顶导航） ---------- */

.page-section {
  scroll-margin-top: calc(var(--header-h) + 58px);
}

/* ---------- 适配判断 ---------- */

.fit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.fit-col {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.fit-col h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
}

.fit-col h3 svg {
  flex: none;
  width: 22px;
  height: 22px;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fit-col--yes h3 svg {
  stroke: #2f7d5d;
}

.fit-col--no h3 svg {
  stroke: #9a6a3c;
}

.fit-list {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fit-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.82;
}

.fit-list li::before {
  position: absolute;
  top: 9px;
  left: 0;
  width: 6px;
  height: 6px;
  content: "";
  border-radius: 50%;
  background: var(--gold);
}

.fit-col--yes .fit-list li::before {
  background: rgba(47, 125, 93, 0.72);
}

.fit-col--no .fit-list li::before {
  background: rgba(154, 106, 60, 0.72);
}

.fit-list strong {
  color: var(--ink);
  font-weight: 700;
}

/* ---------- 服务模块 ---------- */

.module-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.module-card {
  position: relative;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.module-no {
  position: absolute;
  top: 14px;
  right: 18px;
  color: rgba(200, 163, 90, 0.32);
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
}

.module-card h3 {
  margin: 0 0 9px;
  font-size: 17px;
  font-weight: 700;
}

.module-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.86;
}

.module-out {
  margin-top: 10px !important;
  color: var(--gold-deep) !important;
  font-size: 12.5px !important;
  font-weight: 600;
}

.module-out span {
  margin-right: 6px;
  padding: 1px 8px;
  border: 1px solid rgba(200, 163, 90, 0.5);
  border-radius: 999px;
  font-size: 11px;
}

/* ---------- 推进流程 ---------- */

.process-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.step-no {
  display: grid;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: 16px;
  place-items: center;
}

.process-list h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
}

.process-list p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.82;
}

.process-list .step-out {
  margin-top: 9px;
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 600;
}

/* 深色底上的流程卡片 */

.band .process-list li {
  border-color: var(--line-light);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

.band .process-list h3 {
  color: var(--white);
}

.band .process-list p {
  color: rgba(255, 255, 255, 0.76);
}

.band .process-list .step-out {
  color: var(--gold-soft);
}

.band .step-no {
  border: 1px solid rgba(234, 214, 164, 0.3);
  background: rgba(200, 163, 90, 0.16);
}

/* ---------- 对照表 ---------- */

.matrix-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.matrix {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 13.5px;
}

.matrix th,
.matrix td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.matrix thead th {
  background: rgba(10, 23, 40, 0.94);
  color: var(--white);
  font-size: 13px;
  white-space: nowrap;
}

.matrix tbody th {
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

.matrix td {
  color: var(--muted);
  line-height: 1.72;
}

.matrix tbody tr:nth-child(even) {
  background: rgba(10, 23, 40, 0.025);
}

.matrix tbody tr:last-child th,
.matrix tbody tr:last-child td {
  border-bottom: 0;
}

/* ---------- 双通道 Tabs ---------- */

.tabs {
  margin-top: 4px;
}

.tab-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
}

.tab {
  display: grid;
  gap: 3px;
  padding: 13px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.tab em {
  color: var(--muted-soft);
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.tab:hover {
  background: rgba(200, 163, 90, 0.1);
}

.tab[aria-selected="true"] {
  border-color: rgba(200, 163, 90, 0.55);
  background: var(--navy);
  color: var(--white);
}

.tab[aria-selected="true"] em {
  color: var(--gold-soft);
}

.tab-panel:focus-visible {
  outline: 3px solid var(--gold-soft);
  outline-offset: 6px;
}

.channel-panel {
  padding: 24px 20px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.channel-lead {
  margin: 0;
  padding-left: 14px;
  border-left: 3px solid var(--gold);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.72;
}

.channel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 22px;
}

.channel-block h3 {
  margin: 0 0 8px;
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.channel-block ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.channel-block li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.channel-block li::before {
  position: absolute;
  top: 8px;
  left: 0;
  width: 5px;
  height: 5px;
  content: "";
  border-radius: 50%;
  background: rgba(200, 163, 90, 0.85);
}

/* ---------- 交付清单 ---------- */

.group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 30px 0 14px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.group-title:first-of-type {
  margin-top: 0;
}

.group-title::before {
  width: 3px;
  height: 15px;
  content: "";
  border-radius: 2px;
  background: var(--gold);
}

.deliver-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.deliver-grid article {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.deliver-grid span {
  color: var(--gold-deep);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.1em;
}

.deliver-grid h3 {
  margin: 8px 0 6px;
  font-size: 16px;
  font-weight: 700;
}

.deliver-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.84;
}

/* ---------- 提示条 ---------- */

.note {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
  background: rgba(10, 23, 40, 0.045);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.85;
}

.note strong {
  color: var(--ink);
}

/* ---------- 响应式 ---------- */

@media (min-width: 640px) {
  .page-hero-inner {
    padding: 34px 28px 44px;
  }

  .page-hero-lead {
    font-size: 15.5px;
  }

  .subnav-inner {
    padding: 0 24px;
  }

  .fit-grid,
  .module-grid,
  .deliver-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tab {
    padding: 15px 16px;
  }
}

@media (min-width: 1024px) {
  .page-hero-inner {
    padding: 42px 40px 54px;
  }

  .page-hero h1 {
    max-width: 860px;
    font-size: 50px;
  }

  .page-hero-lead {
    font-size: 16.5px;
  }

  .page-hero-facts {
    max-width: 780px;
    gap: 26px;
  }

  .subnav a {
    padding: 15px 14px;
    font-size: 14px;
  }

  .module-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .deliver-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .process-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .channel-panel {
    padding: 32px 36px;
  }

  .channel-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (orientation: landscape) and (max-height: 540px) {
  .page-hero-inner {
    padding: 20px 24px 24px;
  }

  .crumb {
    margin-bottom: 14px;
  }

  .page-hero h1 {
    font-size: 26px;
  }

  .page-hero-lead {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.7;
  }

  .page-hero-facts {
    margin-top: 16px;
    padding-top: 14px;
  }
}
