/* ============================================================
   心仪数据 · 分销与代理（partner/）
   依赖 products/products.css 的令牌、.wrap、.btn、.chip、.crumbs
   本文件只放合作相关版式，不覆盖全站样式。
   ============================================================ */

/* ---------- 栏目内导航（替代注入式副导航，避免动公共 partials） ---------- */
.pt-subnav {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.pt-subnav__in {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  overflow-x: auto;
  scrollbar-width: none;
}
.pt-subnav__in::-webkit-scrollbar { display: none; }
.pt-subnav__label {
  flex: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--muted-2);
  padding-right: 12px;
  border-right: 1px solid var(--line);
  margin-right: 6px;
}
.pt-subnav a {
  flex: none;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  transition: color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.pt-subnav a:hover { color: var(--ink); background: var(--bg-soft); }
.pt-subnav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-weak);
  font-weight: 600;
}

/* ---------- 首屏 ---------- */
.pt-hero {
  padding: clamp(34px, 4.6vw, 62px) 0 clamp(26px, 3.6vw, 42px);
  border-bottom: 1px solid var(--line);
}
.pt-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.pt-hero h1 {
  font-size: clamp(27px, 3.3vw, 40px);
  line-height: 1.26;
  letter-spacing: -.02em;
  font-weight: 700;
  margin-top: 4px;
}
.pt-hero h1 em { font-style: normal; color: var(--accent); }
.pt-lead {
  margin-top: 14px;
  max-width: 64ch;
  color: var(--muted);
  font-size: clamp(14px, 1.05vw, 15.5px);
  line-height: 1.8;
}
.pt-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.pt-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.pt-note {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  padding: clamp(16px, 1.8vw, 22px);
}
.pt-note__title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.pt-note__title .icon { width: 16px; height: 16px; color: var(--muted-2); }
.pt-note ul { display: grid; gap: 8px; margin-top: 12px; }
.pt-note li {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
  padding-left: 11px;
  position: relative;
}
.pt-note li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted-2);
}

/* ---------- 通用区块 ---------- */
.pt-section { padding: clamp(34px, 4.4vw, 58px) 0; }
.pt-section--soft { background: var(--bg-softer); border-block: 1px solid var(--line); }
.pt-head { margin-bottom: clamp(18px, 2.2vw, 26px); }
.pt-head__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.pt-head h2 {
  font-size: clamp(19px, 1.8vw, 24px);
  letter-spacing: -.01em;
  line-height: 1.35;
}
.pt-head p {
  margin-top: 7px;
  max-width: 62ch;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
}
.pt-head__link { font-size: 13px; color: var(--accent); }
.pt-head__link:hover { text-decoration: underline; }

.pt-grid { display: grid; gap: clamp(12px, 1.4vw, 18px); }
.pt-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pt-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pt-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.pt-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: clamp(17px, 1.9vw, 22px);
}
.pt-card--key { border-color: var(--accent-line); background: var(--accent-weak); }
.pt-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15.5px;
  letter-spacing: -.01em;
}
.pt-card h3 .icon { width: 17px; height: 17px; color: var(--accent); }
.pt-card > p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}
.pt-card__foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  color: var(--muted-2);
}

.pt-list { display: grid; gap: 8px; margin-top: 13px; }
.pt-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-2);
}
.pt-list .icon {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: var(--teal);
  flex: none;
}
.pt-list--plain li::before {
  content: "·";
  color: var(--muted-2);
  flex: none;
}

/* 状态标签：把「待定」做得显眼但克制 */
.pt-status {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  background: var(--bg-soft);
  vertical-align: middle;
  white-space: nowrap;
}
.pt-status--tbd {
  color: var(--warn-deep);
  background: var(--warn-soft);
  border-color: rgba(168, 106, 18, .3);
}
.pt-status--ok {
  color: var(--success-deep);
  background: var(--success-soft);
  border-color: rgba(10, 143, 128, .3);
}

/* 政策数值行：标签 + 取值（取值来自后台，缺省为「待定」） */
.pt-kv {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--muted);
}
.pt-kv + .pt-kv { margin-top: 4px; }
.pt-policy-note {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted-2);
}

/* ---------- 算账公式 ---------- */
.pt-formula {
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: var(--bg-soft);
  padding: clamp(14px, 1.6vw, 18px);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--ink-2);
  overflow-x: auto;
  white-space: nowrap;
}
.pt-formula b { color: var(--accent); font-weight: 600; }
.pt-formula small {
  display: block;
  white-space: normal;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted-2);
  margin-top: 6px;
}

/* ---------- 表格 ---------- */
.pt-table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.pt-table-scroll { overflow-x: auto; }
.pt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 620px;
}
.pt-table th,
.pt-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.pt-table th {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg-soft);
  white-space: nowrap;
}
.pt-table tbody tr:last-child td { border-bottom: 0; }
.pt-table td { color: var(--ink-2); line-height: 1.7; }
.pt-table td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.pt-table .pt-muted { color: var(--muted-2); }

/* ---------- 步骤 ---------- */
.pt-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
  counter-reset: ptstep;
}
.pt-step {
  position: relative;
  border-top: 2px solid var(--line-strong);
  padding-top: 14px;
}
.pt-step::before {
  counter-increment: ptstep;
  content: "0" counter(ptstep);
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: 8px;
}
.pt-step h3 { font-size: 14px; }
.pt-step p {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}
.pt-step a { color: var(--accent); }
.pt-step a:hover { text-decoration: underline; }

/* ---------- 问答 ---------- */
.pt-faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pt-faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.pt-faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 2px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.pt-faq summary::-webkit-details-marker { display: none; }
.pt-faq summary .icon {
  width: 16px;
  height: 16px;
  color: var(--muted-2);
  transition: transform var(--dur-2) var(--ease);
  flex: none;
}
.pt-faq details[open] summary .icon { transform: rotate(180deg); }
.pt-faq p {
  padding: 0 2px 15px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 78ch;
}

/* ---------- 标题锚点 / 正文条款 ---------- */
.pt-doc { display: grid; gap: 26px; }
/* 表格自带 620px 最小宽，网格项必须允许收缩，否则窄屏整块被撑破 */
.pt-doc > * { min-width: 0; }
.pt-table-wrap { max-width: 100%; }
.pt-doc__block h2 {
  font-size: 17px;
  letter-spacing: -.01em;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.pt-doc__block h2 .pt-anchor {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-2);
  margin-right: 8px;
}
.pt-doc__block p,
.pt-doc__block li {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--muted);
}
.pt-doc__block p { margin-top: 10px; }
.pt-doc__block ol,
.pt-doc__block ul { display: grid; gap: 7px; margin-top: 10px; padding-left: 18px; list-style: disc; }
.pt-doc__block ol { list-style: decimal; }

/* ---------- 提示条 ---------- */
.pt-callout {
  display: flex;
  gap: 10px;
  border: 1px solid var(--accent-line);
  background: var(--accent-weak);
  border-radius: 10px;
  padding: 13px 15px;
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--ink-2);
}
.pt-callout .icon { width: 16px; height: 16px; color: var(--accent); flex: none; margin-top: 2px; }

/* ---------- 收尾 CTA ---------- */
.pt-cta {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--dark);
  color: #e9f0f7;
  padding: clamp(22px, 3vw, 34px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.pt-cta h2 { font-size: clamp(17px, 1.7vw, 21px); color: #fff; }
.pt-cta p { margin-top: 7px; font-size: 13px; color: #a9b6c6; max-width: 60ch; }
.pt-cta__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .pt-hero__grid { grid-template-columns: 1fr; }
  .pt-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .pt-grid--3 { grid-template-columns: 1fr; }
  .pt-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}
@media (max-width: 640px) {
  .pt-grid--2 { grid-template-columns: 1fr; }
  .pt-grid--4 { grid-template-columns: 1fr; }
  .pt-steps { grid-template-columns: 1fr; }
  .pt-hero h1 { font-size: 26px; }
  .pt-cta { flex-direction: column; align-items: flex-start; }
}
