/*! 快企务原创，请尊重产权。抄袭必究 · Copyright © 快企务 www.kuaiqiwu.com */
/*
 * 香港“首年套餐与后续费用说明”：独立源码资产，不属于 inner.css 构建产物。
 * 每项一张卡片，三列网格逐行排列（≤980 两列，≤640 一列）；同一行卡片等高，“查看费用说明”对齐在卡片底部。
 * 类别：首年套餐（藏青）／每年续办（亮蓝）／按需办理（灰蓝）；不使用琥珀色，琥珀只留给首屏主按钮。
 */
.p2-cost-overview {
  margin: clamp(32px, 4vw, 56px) 0 28px;
  padding: clamp(22px, 3vw, 40px);
  color: #1f2a44;
  background: #f5f7fc;
  border: 1px solid #dde2ef;
  scroll-margin-top: 110px;
}
.p2-cost-overview .p2-cost-kicker {
  margin: 0 0 8px;
  color: #3558f0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
}
.p2-cost-overview .p2-cost-head h3 {
  margin: 0 0 10px;
  color: #212773;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
  line-height: 1.35;
}
.p2-cost-overview .p2-cost-intro {
  max-width: 860px;
  margin: 0;
  color: #475069;
  font-size: 15px;
  line-height: 1.8;
  text-wrap: pretty;
}
/* 类别说明：一行三项，说明每类费用何时发生、如何确认 */
.p2-cost-overview .p2-cost-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 24px;
  margin: 20px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid #dde2ef;
  font-size: 14px; /* 设计系统正文下限为 max(--ds-body-min, 1em)，1em 取自父级；在列表容器上定 14px，li 与 span 随之为 14px */
  list-style: none;
}
.p2-cost-legend li {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  margin: 0;
  padding: 0;
}
.p2-cost-legend b,
.p2-cost-card .p2-cost-stage {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #212773;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}
.p2-cost-legend b::before,
.p2-cost-card .p2-cost-stage::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  background: currentColor;
}
.p2-cost-legend span {
  color: #5a6378;
  font-size: 14px;
  line-height: 1.7;
  text-wrap: pretty;
}
.p2-cost-legend .is-renewal b,
.p2-cost-card.is-renewal .p2-cost-stage { color: #3558f0; }
.p2-cost-legend .is-variable b,
.p2-cost-card.is-variable .p2-cost-stage { color: #56607a; }

.p2-cost-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 14px;
  margin-top: 22px;
}
.p2-cost-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px 20px 14px;
  background: #fff;
  border: 1px solid #e1e5f0;
  border-top: 2px solid #212773;
  overflow-wrap: anywhere;
}
.p2-cost-card.is-renewal { border-top-color: #3558f0; }
.p2-cost-card.is-variable { border-top-color: #8a93aa; }
.p2-cost-card .p2-cost-stage {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: .04em;
}
.p2-cost-card .p2-cost-stage::before { width: 6px; height: 6px; }
.p2-cost-overview .p2-cost-card h4 {
  margin: 0 0 8px;
  color: #1c2357;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}
.p2-cost-card .p2-cost-desc {
  margin: 0;
  color: #333c55;
  font-size: 15px;
  line-height: 1.75;
  text-wrap: pretty;
}
.p2-cost-card .p2-cost-factors {
  margin: 10px 0 0;
  color: #5f6880;
  font-size: 14px;
  line-height: 1.7;
}
.p2-cost-factors b {
  color: #3d4663;
  font-weight: 600;
}
/* 详细说明：卡片底部展开；同一行卡片的展开入口对齐 */
.p2-cost-card .p2-cost-more {
  margin-top: auto;
  padding-top: 10px;
  font-size: 14px;
}
.p2-cost-more summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  color: #3558f0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}
.p2-cost-more summary::-webkit-details-marker { display: none; }
.p2-cost-more summary::after {
  content: "+";
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
}
.p2-cost-more[open] summary::after { content: "−"; }
.p2-cost-more summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.p2-cost-more summary:focus-visible {
  outline: 2px solid #3558f0;
  outline-offset: 2px;
}
.p2-cost-more p {
  margin: 4px 0 4px;
  padding: 10px 12px;
  color: #475069;
  background: #f5f7fc;
  font-size: 14px;
  line-height: 1.75;
}

/* 书面报价卡：网格末尾，按费用卡片数补满最后一行；浅底区分于费用项，按钮为次级样式（本页琥珀主按钮只在首屏） */
.p2-cost-card.is-help {
  background: #f8f9fe;
  border-color: #d6dcf0;
  border-top-color: #3558f0;
}
.p2-cost-card.is-help .p2-cost-help-actions {
  display: grid;
  justify-items: start;
  gap: 2px;
  margin-top: auto;
  padding-top: 10px;
}
.p2-cost-overview .p2-cost-card.is-help .p2-cost-links { flex-direction: column; gap: 0; }
.p2-cost-card.is-help .p2-cost-help-btn { margin-top: 8px; }
@media (min-width: 981px) {
  .p2-cost-card.is-help.is-span3-2 { grid-column: span 2; }
  .p2-cost-card.is-help.is-span3-3 { grid-column: 1 / -1; }
  .p2-cost-card.is-help:is(.is-span3-2, .is-span3-3) {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 0 32px;
    align-items: end;
  }
}
@media (min-width: 641px) and (max-width: 980px) {
  .p2-cost-card.is-help.is-span2-2 { grid-column: 1 / -1; }
}
/* 底部：一句说明，普通正文排版，不做警示框 */
.p2-cost-foot { margin-top: 20px; }
.p2-cost-overview .p2-cost-note {
  margin: 0 0 6px;
  color: #5a6378;
  font-size: 14px;
  line-height: 1.8;
}
/* 续年费用相关服务：描述性站内链接（年审、记账审计），位于书面报价卡内。 */
.p2-cost-overview .p2-cost-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.p2-cost-overview .p2-cost-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #3558f0;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.p2-cost-overview .p2-cost-links a:focus-visible {
  outline: 2px solid #3558f0;
  outline-offset: 3px;
}
@media (max-width: 980px) {
  .p2-cost-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p2-cost-overview .p2-cost-legend { grid-template-columns: 1fr; gap: 10px; }
  .p2-cost-legend li { grid-template-columns: 6.5em minmax(0, 1fr); align-items: baseline; gap: 12px; }
}
@media (max-width: 640px) {
  .p2-cost-overview { padding: 22px 16px; }
  .p2-cost-grid { grid-template-columns: 1fr; gap: 12px; }
  .p2-cost-card { padding: 16px 16px 12px; }
  .p2-cost-legend li { grid-template-columns: 1fr; gap: 2px; }
  .p2-cost-overview .p2-cost-links { flex-direction: column; }
}
/* 手机端有脚本时按类别点选：只显示所选类别的说明和卡片，卡片内的类别标签不再重复 */
@media (max-width: 700px) {
  .p2-cost-overview .is-hk-period-hidden { display: none !important; }
  .p2-cost-overview.has-cost-tabs .p2-hk-cost-tabs { margin: 18px 0 0; }
  .p2-cost-overview.has-cost-tabs .p2-cost-legend { margin-top: 12px; padding-top: 0; border-top: 0; }
  .p2-cost-overview.has-cost-tabs .p2-cost-card .p2-cost-stage { display: none; }
  .p2-cost-overview .p2-cost-intro,
  .p2-cost-card .p2-cost-desc { font-size: 15px; }
  .p2-cost-overview .p2-cost-legend,
  .p2-cost-card .p2-cost-more { font-size: 15px; }
  .p2-cost-legend span,
  .p2-cost-card .p2-cost-factors,
  .p2-cost-more summary,
  .p2-cost-more p { font-size: 14px; }
  .p2-cost-overview .p2-cost-card h4 { font-size: 16.5px; }
}

/* 手机按套餐档位 / 费用阶段点选；桌面与无脚本保留完整信息。 */
.p2-hk-cost-tabs { display: none; }
@media (max-width: 700px) {
  .p2-hk-cost-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
  .p2-hk-cost-tabs button { flex: 1 1 88px; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid #cdd3e4; background: #fff; color: #212773; font: 600 15px/1.5 var(--sans); cursor: pointer; overflow-wrap: anywhere; }
  .p2-hk-cost-tabs button[aria-pressed="true"] { background: #212773; color: #fff; border-color: #212773; }
  .p2-hk-cost-tabs button:focus-visible { outline: 2px solid #3558f0; outline-offset: 3px; }
  .p2-fee.has-hk-cost-tabs .p2-fee-table .is-hk-tier-hidden { display: none !important; }
  .p2-fee.has-hk-cost-tabs .p2-fee-table { width: 100%; min-width: 0 !important; table-layout: fixed; }
  .p2-fee.has-hk-cost-tabs .p2-fee-table th, .p2-fee.has-hk-cost-tabs .p2-fee-table td { min-width: 0; width: auto; overflow-wrap: anywhere; white-space: normal; }
  .p2-fee.has-hk-cost-tabs .p2-fee-table .p2-fee-item { width: 34%; min-width: 0; position: static; }
  .p2-fee.has-hk-cost-tabs .p2-fee-hint { display: none; }
}
