/* ============================================
   服务详情页 · 特有样式
   复用 main.css 公共组件（header / bottom-nav / fab / modal）
   ============================================ */

.header-simple { padding-bottom: 10px; }

/* 面包屑 */
.breadcrumb { font-size: 13px; color: var(--text-sub); margin: 14px 0 2px; }
.breadcrumb a { color: var(--brand); }
.breadcrumb .sep { margin: 0 6px; color: var(--text-muted); }
.breadcrumb span:last-child { color: var(--text); }

/* 服务头卡 */
.service-hero {
  max-width: 1100px; margin: 12px auto 0;
  background: #fff; border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: 22px; display: flex; align-items: center; gap: 18px;
  border-top: 4px solid var(--brand);
}
.service-hero-icon {
  width: 64px; height: 64px; border-radius: 16px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-accent), var(--brand));
  color: #fff;
}
.service-hero-icon svg { width: 34px; height: 34px; }
.service-hero-main { flex: 1; min-width: 0; }
.service-hero-cat { font-size: 13px; color: var(--brand); font-weight: 600; }
.service-hero-name { font-size: 24px; font-weight: 700; color: #1f2937; margin: 2px 0; }
.service-hero-sub { font-size: 14px; color: var(--text-sub); }
.service-hero-deliver { font-size: 12px; color: var(--text-sub); margin-top: 8px; padding: 6px 10px; background: #f1f5f9; border-radius: 6px; display: inline-block; line-height: 1.5; }
.service-hero-price { margin-top: 8px; color: var(--brand); font-weight: 700; font-size: 26px; }
.service-hero-price .price-unit { font-size: 14px; font-weight: 500; margin-left: 2px; }
.service-hero-actions {
  display: flex; flex-direction: column; gap: 10px; align-items: stretch;
  flex-shrink: 0; min-width: 130px;
}
.service-hero-cta {
  padding: 12px 22px; border-radius: 24px;
  background: var(--brand); color: #fff; font-size: 15px; font-weight: 600;
  box-shadow: var(--shadow-sm); text-align: center;
}
.service-hero-cta:active { transform: scale(0.97); }
.service-hero-secondary {
  padding: 10px 18px; border-radius: 24px;
  border: 1.5px solid var(--border); background: #fff;
  color: var(--text-sub); font-size: 14px; font-weight: 500;
  text-align: center;
}
.service-hero-secondary:active { background: var(--bg-soft); }
.modal-form textarea {
  width: 100%; border: 1.5px solid var(--border); border-radius: 12px;
  padding: 10px 12px; font-size: 14px; font-family: inherit; resize: vertical;
  box-sizing: border-box; background: var(--bg-soft); color: var(--text);
}
.modal-form textarea:focus { outline: none; border-color: var(--brand); background: #fff; }

/* 主题色 */
.cat-orange { border-top-color: var(--c-teal); }
.cat-orange .service-hero-icon { background: linear-gradient(135deg, #14b8a6, var(--c-teal)); }
.cat-orange .service-hero-cat, .cat-orange .service-hero-price { color: var(--c-teal); }
.cat-orange .service-hero-cta { background: var(--c-teal); }

.cat-purple { border-top-color: var(--c-purple); }
.cat-purple .service-hero-icon { background: linear-gradient(135deg, #b37feb, var(--c-purple)); }
.cat-purple .service-hero-cat, .cat-purple .service-hero-price { color: var(--c-purple); }
.cat-purple .service-hero-cta { background: var(--c-purple); }

.cat-blue { border-top-color: var(--c-blue); }
.cat-blue .service-hero-icon { background: linear-gradient(135deg, #40a9ff, var(--c-blue)); }
.cat-blue .service-hero-cat, .cat-blue .service-hero-price { color: var(--c-blue); }
.cat-blue .service-hero-cta { background: var(--c-blue); }

.cat-teal { border-top-color: var(--c-teal); }
.cat-teal .service-hero-icon { background: linear-gradient(135deg, #36cfc9, var(--c-teal)); }
.cat-teal .service-hero-cat, .cat-teal .service-hero-price { color: var(--c-teal); }
.cat-teal .service-hero-cta { background: var(--c-teal); }

.cat-red { border-top-color: var(--c-red); }
.cat-red .service-hero-icon { background: linear-gradient(135deg, #ff7875, var(--c-red)); }
.cat-red .service-hero-cat, .cat-red .service-hero-price { color: var(--c-red); }
.cat-red .service-hero-cta { background: var(--c-red); }

/* 通用 block */
.block {
  background: #fff; border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm); padding: 20px; margin-top: 14px;
}
.block-title {
  font-size: 17px; font-weight: 700; color: #1f2937;
  margin-bottom: 14px; position: relative; padding-left: 12px;
}
.block-title::before {
  content: ''; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 4px; border-radius: 2px; background: var(--brand);
}

/* 亮点 */
.highlight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.highlight-item { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.highlight-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); margin-top: 6px; flex-shrink: 0; }
.hl-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft, #fff4ec); color: var(--brand); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hl-icon svg { width: 20px; height: 20px; }
.highlight-t { font-size: 14px; font-weight: 600; color: #1f2937; }
.highlight-d { font-size: 12px; color: var(--text-sub); margin-top: 2px; }

/* 适用场景（图标短词卡） */
.scenario-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.scenario-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px 10px; text-align: center; }
.sc-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft, #fff4ec); color: var(--brand); display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; }
.sc-icon svg { width: 22px; height: 22px; }
.sc-t { font-size: 14px; font-weight: 700; color: #1f2937; }
.sc-d { font-size: 12px; color: var(--text-sub); margin-top: 4px; line-height: 1.5; }

/* 流程（横向时间轴，可滑动） */
.flow { display: flex; gap: 0; overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.flow-step { flex: 0 0 auto; width: 88px; text-align: center; position: relative; padding-bottom: 0; }
.flow-step:not(:last-child)::after {
  content: ''; position: absolute; top: 15px; left: 50%; width: 100%; height: 2px;
  background: var(--border); z-index: 0;
}
.flow-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; z-index: 1; margin: 0 auto;
}
.flow-body { margin-top: 6px; }
.flow-t { font-size: 13px; font-weight: 600; color: #1f2937; }
.flow-d { font-size: 11px; color: var(--text-sub); margin-top: 2px; line-height: 1.4; }

/* 材料 */
.material-list li { display: flex; align-items: flex-start; gap: 8px; padding: 7px 0; font-size: 14px; color: var(--text); }
.material-check {
  color: #fff; background: var(--brand); width: 18px; height: 18px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 12px; flex-shrink: 0; margin-top: 2px;
}

/* 价格说明 */
.price-note {
  font-size: 14px; color: var(--text); line-height: 1.9;
  background: var(--brand-soft); border-radius: 12px; padding: 14px 16px;
}
.price-cards { display: flex; gap: 12px; flex-wrap: wrap; }
.price-card { flex: 1 1 30%; min-width: 132px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px 10px; text-align: center; }
.price-card-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft, #fff4ec); color: var(--brand); display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; }
.price-card-icon svg { width: 20px; height: 20px; }
.price-card-t { font-size: 13px; color: var(--text-sub); }
.price-card-d { font-size: 18px; font-weight: 700; color: var(--brand); margin-top: 2px; }
.price-card-sub { font-size: 11px; color: var(--text-sub); margin-top: 4px; line-height: 1.5; }
a.price-upsell { display: block; text-decoration: none; color: inherit; cursor: pointer; transition: transform .05s, box-shadow .05s; }
a.price-upsell:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.08); border-color: var(--brand); }
a.price-upsell .price-card-t { color: var(--brand); font-weight: 600; }

/* FAQ */
#faq-list details { border-bottom: 1px solid var(--border); padding: 12px 0; }
#faq-list summary {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: 14px; font-weight: 600; color: #1f2937; list-style: none;
}
#faq-list summary::-webkit-details-marker { display: none; }
.faq-hidden { display: none; }
.q-tag {
  width: 22px; height: 22px; border-radius: 6px; background: var(--brand);
  color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.faq-q-text { flex: 1; }
.faq-a {
  display: flex; gap: 8px; padding: 10px 0 0 30px;
  font-size: 13px; color: var(--text-sub); line-height: 1.7;
}
.a-tag { color: var(--c-red); font-weight: 700; flex-shrink: 0; }
.faq-more {
  display: block; margin: 14px auto 0; padding: 9px 22px;
  border: 1px solid var(--brand); color: var(--brand); background: #fff;
  border-radius: 20px; font-size: 13px;
}

/* 相关服务 */
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.related-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 12px; background: #fff;
}
.related-item:active { background: var(--bg-soft); }
.related-cat { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.related-cat.cat-orange { background: var(--c-teal); }
.related-cat.cat-purple { background: var(--c-purple); }
.related-cat.cat-blue { background: var(--c-blue); }
.related-cat.cat-teal { background: var(--c-teal); }
.related-cat.cat-red { background: var(--c-red); }
.related-name { flex: 1; font-size: 14px; color: #1f2937; }
.related-price { font-size: 13px; color: var(--brand); font-weight: 600; }

/* 在线办理入口 */
.apply-sub { font-size: 13px; color: var(--text-sub); margin-top: -8px; margin-bottom: 14px; }
.apply-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.apply-card {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 14px 10px;
  border: 1.5px solid var(--border); border-radius: 12px;
  background: #fff; transition: all 0.2s;
}
.apply-card:active { background: var(--bg-soft); border-color: var(--brand); }
.apply-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center; margin-bottom: 8px;
}
.apply-icon svg { width: 22px; height: 22px; }
.apply-t { font-size: 14px; font-weight: 600; color: #1f2937; }
.apply-d { font-size: 12px; color: var(--text-sub); margin-top: 3px; line-height: 1.45; }
.apply-main-btn {
  width: 100%; margin-top: 16px; padding: 13px;
  border: none; border-radius: 24px; background: var(--brand); color: #fff;
  font-size: 15px; font-weight: 600; box-shadow: var(--shadow-sm);
}
.apply-main-btn:active { transform: scale(0.98); }

/* 订阅/套餐模块（品牌合规管家 / 保商标·防撤三证据） */
.plan-list { display: flex; flex-direction: column; gap: 10px; }
.plan-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.plan-level { width: 28px; height: 28px; border-radius: 8px; color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.plan-level.plan-A { background: #16a34a; }
.plan-level.plan-B { background: #08979c; }
.plan-level.plan-C { background: #d97706; }
.plan-level.plan-D { background: #dc2626; }
.plan-score { font-weight: 700; color: #1f2937; font-size: 14px; flex-shrink: 0; min-width: 48px; }
.plan-desc { font-size: 13px; color: var(--text-sub); }
.plan-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 14px; }
.plan-card { padding: 14px; border: 1.5px solid var(--border); border-radius: 12px; background: #fff; text-align: center; }
.plan-name { font-size: 15px; font-weight: 700; color: #1f2937; }
.plan-price { font-size: 18px; font-weight: 700; color: var(--brand); margin: 6px 0; }
.plan-desc { font-size: 12px; color: var(--text-sub); line-height: 1.5; }

/* 订阅页合规免责红字（强制置顶） */
.disclaimer-bar { margin: 14px 12px 0; padding: 11px 13px; border: 1.5px solid #f5b8b8; border-radius: 10px; background: #fff5f5; color: #b42318; font-size: 12.5px; line-height: 1.65; }
.disclaimer-bar b { color: #b42318; }

/* 所需材料：图文卡片 */
.material-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.material-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.material-icon { width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px; background: #eef4ff; color: var(--brand); display: flex; align-items: center; justify-content: center; }
.material-icon svg { width: 22px; height: 22px; }
.material-body { min-width: 0; }
.material-name { font-size: 14px; font-weight: 600; color: #1f2937; line-height: 1.4; }
.material-tip { font-size: 12px; color: var(--text-sub); line-height: 1.5; margin-top: 2px; }
.material-sample { margin-top: 8px; }
.material-sample img { max-width: 120px; border: 1px solid var(--border); border-radius: 8px; }

/* 材料按企业/个人分组 */
.material-group { margin-bottom: 16px; }
.material-group:last-child { margin-bottom: 0; }
.material-group-title { font-size: 14px; font-weight: 600; color: var(--brand); margin-bottom: 10px; padding-left: 6px; border-left: 3px solid var(--brand); }

/* 服务对比表 */
.compare-table { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #fff; }
.compare-header { display: grid; grid-template-columns: minmax(120px, 1fr) 1fr 1fr 1fr; background: #f9fafb; }
.compare-header-space { border-right: 1px solid var(--border); }
.compare-col { padding: 14px 10px; text-align: center; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); }
.compare-col:last-child { border-right: none; }
.compare-col-active { background: #f0fdfa; }
.compare-tag { font-size: 11px; color: var(--text-sub); margin-bottom: 6px; }
.compare-name { font-size: 14px; font-weight: 600; color: #1f2937; }
.compare-price { font-size: 13px; color: var(--brand); font-weight: 600; margin-top: 4px; }
.compare-row { display: grid; grid-template-columns: minmax(120px, 1fr) 1fr 1fr 1fr; align-items: center; border-bottom: 1px solid var(--border); }
.compare-row:last-child { border-bottom: none; }
.compare-label { padding: 13px 12px; font-size: 13px; color: var(--text); border-right: 1px solid var(--border); }
.compare-cell { text-align: center; padding: 13px 8px; font-size: 16px; font-weight: 700; border-right: 1px solid var(--border); }
.compare-cell:last-child { border-right: none; }
.compare-cell-active { background: #f0fdfa; }
.compare-yes { color: #16a34a; }
.compare-no { color: #d1d5db; }

.bottom-nav-spacer { height: 16px; }

/* 响应式 */
@media (max-width: 640px) {
  .service-hero { flex-direction: column; align-items: flex-start; gap: 14px; }
  .service-hero-actions { width: 100%; }
  .service-hero-cta, .service-hero-secondary { width: 100%; }
  .highlight-grid { grid-template-columns: 1fr; }
  .scenario-grid { grid-template-columns: 1fr; }
  .scenario-card { text-align: left; padding: 13px 14px; }
  .sc-d { font-size: 13px; }
  .related-grid { grid-template-columns: 1fr; }
  .price-card { flex: 1 1 100%; }
  .apply-grid { grid-template-columns: repeat(2, 1fr); }
  .apply-card { padding: 12px 8px; }
  .apply-d { font-size: 11px; }
}
