/* 科海报价页：独立样式，仅作用于 #kh-quote-page。 */
#kh-quote-page {
  --q-blue: #397de8;
  --q-blue-dark: #276fda;
  --q-ink: #17263d;
  --q-text: #59687c;
  --q-line: #e1e9f3;
  --q-tint: #f3f7fd;
  container: khquote / inline-size;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  color: var(--q-ink);
  background: #fff;
  font: 400 16px/1.8 "Microsoft YaHei", "PingFang SC", sans-serif;
  text-align: left;
  overflow-wrap: break-word;
  isolation: isolate;
}
#kh-quote-page *, #kh-quote-page *::before, #kh-quote-page *::after { box-sizing: border-box; }
#kh-quote-page :is(h2,h3,h4,p,ul,li,table,thead,tbody,tr,th,td,figure) {
  margin: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  text-indent: 0;
  letter-spacing: normal;
  background: none;
  border: 0;
  box-shadow: none;
}
#kh-quote-page :is(h2,h3,h4)::before, #kh-quote-page :is(h2,h3,h4)::after { content: none; }
#kh-quote-page :is(small,span,strong,b) { font-size: inherit; }
#kh-quote-page a { color: var(--q-blue-dark); text-decoration: none; font-size: 16px; }
#kh-quote-page a:focus-visible { outline: 3px solid var(--q-blue-dark); outline-offset: 4px; }
#kh-quote-page .q-inner { width: calc(100% - 64px); margin: 0 auto; }
#kh-quote-page .q-section { padding: 48px 0; }
#kh-quote-page > .q-section { border-top: 1px solid var(--q-line); }
#kh-quote-page .q-white { background: #f8fafd; }

/* 标题区：沿用官网深色波纹背景，三行信息之间保留清晰间距。 */
#kh-quote-page .q-hero {
  padding: 48px 36px 42px;
  color: #fff;
  background: #100c2a var(--q-hero-background, url("../images/ban-about.jpg")) center center / cover no-repeat;
  text-align: center;
}
#kh-quote-page .q-hero h2 { max-width: 1100px; margin: 0 auto; color: #fff; font-size: 32px; font-weight: 600; line-height: 1.55; text-wrap: balance; }
#kh-quote-page .q-hero p { margin: 18px 0 24px; color: #fff; font-size: 20px; line-height: 1.85; text-wrap: balance; }
#kh-quote-page .q-hero-tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 0; }
#kh-quote-page .q-hero-tag { padding: 0 22px; color: #fff; line-height: 1.7; font-size: 16px; }
#kh-quote-page .q-hero-tag::before { content: none; }
#kh-quote-page .q-hero-tag + .q-hero-tag { border-left: 1px solid #ffffff70; }
#kh-quote-page .q-title { margin-bottom: 26px; }
#kh-quote-page .q-title h3, #kh-quote-page .q-faq-title h3 {
  color: var(--q-ink); font-size: 28px; font-weight: 700; line-height: 1.5;
}
#kh-quote-page .q-title h3 { padding-left: 16px; border-left: 4px solid var(--q-blue); }
#kh-quote-page .q-title p { color: var(--q-text); margin-top: 12px; }
#kh-quote-page .q-review {
  margin: -4px 0 24px; padding: 13px 18px;
  background: var(--q-tint); color: var(--q-text); font-size: 16px; border-radius: 4px;
}

/* 六类方案使用同一结构及尺寸，正文自适应，底部按钮对齐。 */
#kh-quote-page .q-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 22px;
}
#kh-quote-page .q-plan {
  display: flex; flex-direction: column; min-width: 0;
  text-align: left;
  padding: 24px 22px 20px; background: #fff;
  border: 1px solid var(--q-line); border-top: 3px solid var(--q-blue);
  border-radius: 5px; box-shadow: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
#kh-quote-page .q-plan::before { content: none; }
#kh-quote-page .q-plan:hover { border-color: #a9c8f6; box-shadow: 0 8px 24px #276fda0c; transform: none; }
#kh-quote-page .q-plan-head { border-bottom: 1px solid var(--q-line); padding-bottom: 18px; }
#kh-quote-page .q-plan h4 { font-size: 23px; font-weight: 700; line-height: 1.5; }
#kh-quote-page .q-plan-subtitle { color: var(--q-text); margin-top: 9px; min-height: 3.5em; line-height: 1.75; }
#kh-quote-page .q-price {
  display: flex; align-items: baseline; gap: 5px; margin-top: 16px;
  min-height: 46px; color: var(--q-blue-dark); font-size: 38px;
  font-weight: 700; line-height: 1.2; letter-spacing: -1px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
#kh-quote-page .q-price small { color: var(--q-blue-dark); font-size: 20px; font-weight: 500; letter-spacing: 0; }
#kh-quote-page .q-price-range { font-size: 29px; letter-spacing: -1px; }
#kh-quote-page .q-price-unit { color: var(--q-text); margin-top: 8px; line-height: 1.7; min-height: 3.4em; }
#kh-quote-page .q-plan-body { flex: 1; padding: 20px 0 18px; }
#kh-quote-page .q-feature-title { margin-bottom: 10px; color: var(--q-ink); font-size: 16px; font-weight: 600; }
#kh-quote-page .q-features { list-style: none; margin: 0; padding: 0; }
#kh-quote-page .q-features li {
  position: relative; padding: 6px 0 6px 17px;
  color: var(--q-text); line-height: 1.75; min-height: 0;
}
#kh-quote-page .q-features li::before {
  content: ""; position: absolute; top: 17px; left: 0;
  width: 5px; height: 5px; border-radius: 50%; background: var(--q-blue);
}
#kh-quote-page .q-features li > p { display: inline; padding: 0; margin: 0; font: inherit; color: inherit; }
#kh-quote-page .q-legacy-period {
  display: flex; flex-direction: row; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 2px 12px;
  border-top: 1px solid var(--q-line); padding-top: 15px; margin: 0 0 15px;
  font-size: 16px; line-height: 1.8; color: var(--q-text);
}
#kh-quote-page .q-period-value { color: var(--q-ink); font-size: 16px; font-weight: 600; }
#kh-quote-page .q-plan-link {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 10px 16px; border: 1px solid #bfd4f4;
  border-radius: 4px; background: #f3f7ff; color: var(--q-blue-dark);
  font-size: 16px; line-height: 1.8; font-weight: 600;
}
#kh-quote-page .q-plan-link:hover { background: var(--q-blue); color: #fff; border-color: var(--q-blue); }
#kh-quote-page .q-plan-note { color: var(--q-text); margin-top: 12px; line-height: 1.7; text-align: center; }
#kh-quote-page .q-under-note { margin: 22px 0 0; color: var(--q-text); }

/* 功能明细保持展开：标题、说明、表格三个层级。 */
#kh-quote-page .q-section-note {
  padding: 16px 20px; margin-bottom: 28px;
  border-left: 3px solid #a8c7f4; background: #edf4ff; color: var(--q-text);
}
#kh-quote-page .q-detail { margin: 0 0 32px; padding: 0; background: #fff; border: 1px solid var(--q-line); border-radius: 5px; overflow: hidden; }
#kh-quote-page .q-detail:last-child { margin-bottom: 0; }
#kh-quote-page .q-detail-head { padding: 22px 24px 20px; }
#kh-quote-page .q-detail-heading { font-size: 22px; line-height: 1.5; color: var(--q-ink); font-weight: 700; }
#kh-quote-page .q-detail-intro { color: var(--q-text); margin-top: 8px; }
#kh-quote-page .q-detail-body { padding: 0; }
#kh-quote-page .q-detail-table-wrap { width: 100%; }
#kh-quote-page .q-detail-table {
  width: 100%; margin: 0; border-collapse: collapse; border-spacing: 0;
  table-layout: fixed; background: #fff; font-size: 16px; line-height: 1.8;
}
#kh-quote-page .q-detail-table :is(th,td) {
  padding: 16px 22px; text-align: left; vertical-align: top;
  border: 0; border-bottom: 1px solid var(--q-line);
  overflow-wrap: anywhere; font-size: 16px; line-height: 1.8;
}
#kh-quote-page .q-detail-table th { background: #edf3fc; color: #285a9e; font-weight: 600; }
#kh-quote-page .q-detail-table td { color: var(--q-text); }
#kh-quote-page .q-detail-table :is(th,td):first-child { width: 22%; }
#kh-quote-page .q-detail-table td:first-child { color: var(--q-ink); font-weight: 600; }
#kh-quote-page .q-detail-table tbody tr:nth-child(even) { background: #f9fbfe; }
#kh-quote-page .q-detail-table tbody tr:last-child td { border-bottom: 0; }
#kh-quote-page #quote-service .q-detail-table-wrap,
#kh-quote-page #quote-addons .q-detail-table-wrap { border: 1px solid var(--q-line); border-radius: 5px; overflow: hidden; }

/* 资料、约定和流程各自采用便于阅读的结构。 */
#kh-quote-page .q-expanded-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
#kh-quote-page .q-expanded-card { padding: 24px 26px; background: #fff; border: 1px solid var(--q-line); border-radius: 5px; }
#kh-quote-page .q-expanded-card h4 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
#kh-quote-page .q-expanded-card p { color: var(--q-text); }
#kh-quote-page .q-term { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 24px; padding: 22px 0; border-top: 1px solid var(--q-line); }
#kh-quote-page .q-term:last-child { padding-bottom: 0; }
#kh-quote-page .q-term h4 { font-size: 18px; font-weight: 600; }
#kh-quote-page .q-term p { color: var(--q-text); }
#kh-quote-page .q-process { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; }
#kh-quote-page .q-step { padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
#kh-quote-page .q-step-top { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
#kh-quote-page .q-step-top::before { content: none; }
#kh-quote-page .q-step-top::after { content: ""; flex: 1; height: 1px; background: #c8daf3; }
#kh-quote-page .q-step-number { display: block; color: var(--q-blue-dark); font-size: 30px; line-height: 1.3; font-weight: 500; background: none; border: 0; padding: 0; width: auto; height: auto; box-shadow: none; }
#kh-quote-page .q-step h4 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
#kh-quote-page .q-step p, #kh-quote-page .q-process-note { color: var(--q-text); }
#kh-quote-page .q-process-note { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--q-line); }
#kh-quote-page .q-faq-grid { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 40px; }
#kh-quote-page .q-faq-title p { color: var(--q-text); margin-top: 14px; }
#kh-quote-page .q-faq-item { padding: 22px 0; border-bottom: 1px solid var(--q-line); }
#kh-quote-page .q-faq-item:first-child { padding-top: 0; }
#kh-quote-page .q-faq-item:last-child { padding-bottom: 0; border-bottom: 0; }
#kh-quote-page .q-faq-heading { font-size: 18px; font-weight: 600; line-height: 1.7; }
#kh-quote-page .q-faq-item p { color: var(--q-text); margin-top: 10px; }
#kh-quote-page .q-contact-section { padding-bottom: 0; }
#kh-quote-page .q-contact {
  display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 30px; align-items: center;
  padding: 30px 32px; color: #fff; background: var(--q-blue); border-radius: 5px;
}
#kh-quote-page .q-contact h3 { color: #fff; font-size: 25px; line-height: 1.6; font-weight: 600; }
#kh-quote-page .q-contact p { color: #fff; margin-top: 10px; }
#kh-quote-page .q-contact-action { text-align: right; }
#kh-quote-page .q-contact-action span { display: block; color: #fff; font-size: 16px; }
#kh-quote-page .q-contact-action a { display: block; margin-top: 4px; color: #fff; font-size: 27px; font-weight: 600; white-space: nowrap; }
#kh-quote-page .q-contact-action a:focus-visible { outline-color: #fff; }
#kh-quote-page .q-footer { padding: 20px 0 28px; color: var(--q-text); font-size: 16px; text-align: center; }

/* 根据正文宽度适配，放入官网文章栏后无需改动外层布局。 */
@container khquote (max-width: 1000px) {
  #kh-quote-page .q-inner { width: calc(100% - 48px); }
  #kh-quote-page .q-plans { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #kh-quote-page .q-plan { padding: 24px; }
  #kh-quote-page .q-price-unit { min-height: 1.7em; }
  #kh-quote-page .q-plan-subtitle { min-height: 3.5em; }
  #kh-quote-page .q-faq-grid { grid-template-columns: 210px minmax(0,1fr); gap: 30px; }
  #kh-quote-page .q-contact { grid-template-columns: 1fr; gap: 20px; }
  #kh-quote-page .q-contact-action { text-align: left; }
}
@container khquote (max-width: 700px) {
  #kh-quote-page .q-hero { padding: 36px 22px 32px; }
  #kh-quote-page .q-hero h2 { font-size: 26px; line-height: 1.6; }
  #kh-quote-page .q-hero p { font-size: 16px; margin: 18px 0 22px; line-height: 1.85; }
  #kh-quote-page .q-inner { width: calc(100% - 36px); }
  #kh-quote-page .q-section { padding: 34px 0; }
  #kh-quote-page .q-title h3, #kh-quote-page .q-faq-title h3 { font-size: 25px; }
  #kh-quote-page .q-expanded-grid, #kh-quote-page .q-faq-grid { grid-template-columns: 1fr; gap: 24px; }
  #kh-quote-page .q-process { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px; }
  #kh-quote-page .q-term { grid-template-columns: 1fr; gap: 8px; }
  #kh-quote-page .q-detail-head { padding: 20px; }
  #kh-quote-page .q-detail-heading { font-size: 20px; }
  #kh-quote-page .q-detail-table thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  #kh-quote-page .q-detail-table, #kh-quote-page .q-detail-table tbody { display: block; width: 100%; }
  #kh-quote-page .q-detail-table tbody tr { display: block; width: 100%; border-bottom: 1px solid var(--q-line); padding: 16px 20px; }
  #kh-quote-page .q-detail-table tbody tr:last-child { border-bottom: 0; }
  #kh-quote-page .q-detail-table td { display: block; width: 100%; border: 0; padding: 0; }
  #kh-quote-page .q-detail-table td:first-child { width: 100%; font-size: 18px; margin-bottom: 6px; }
  #kh-quote-page .q-table-3 td:not(:first-child) { margin-top: 12px; }
  #kh-quote-page .q-table-3 td:not(:first-child)::before { content: attr(data-label); display: block; font-size: 16px; font-weight: 600; color: #3569af; margin-bottom: 2px; }
  #kh-quote-page .q-contact { padding: 25px; }
  #kh-quote-page .q-contact h3 { font-size: 23px; }
  #kh-quote-page .q-contact-section { padding-bottom: 0; }
}
@container khquote (max-width: 570px) {
  #kh-quote-page .q-plans { grid-template-columns: 1fr; grid-auto-rows: 1fr; gap: 18px; }
  #kh-quote-page .q-plan { padding: 24px 22px 20px; }
  #kh-quote-page .q-hero-tag { padding: 0 14px; line-height: 1.5; }
  #kh-quote-page .q-hero h2 { font-size: 24px; }
  #kh-quote-page .q-hero-tags { max-width: 280px; margin: 0 auto; gap: 10px 0; }
  #kh-quote-page .q-hero-tag { width: 50%; }
  #kh-quote-page .q-hero-tag:nth-child(3) { border-left: 0; }
  #kh-quote-page .q-price-unit { min-height: 3.4em; }
  #kh-quote-page .q-expanded-card { padding: 22px; }
}
@container khquote (max-width: 340px) {
  #kh-quote-page .q-inner { width: calc(100% - 24px); }
  #kh-quote-page .q-plan { padding: 22px 18px 18px; }
  #kh-quote-page .q-price-range { font-size: 27px; }
  #kh-quote-page .q-process { grid-template-columns: 1fr; }
  #kh-quote-page .q-contact { padding: 22px 18px; }
  #kh-quote-page .q-contact-action a { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { #kh-quote-page .q-plan { transition: none; } }

/* 仅独立预览文件使用。 */
.kh-quote-preview { --q-hero-background: url("quote-hero-bg.jpg"); margin: 0; padding: 24px 0; background: #edf1f7; }
@media (max-width: 600px) { .kh-quote-preview { padding: 0; } }

/* 顶部沿用官网的大幅图片横幅；报价正文不再输出 q-hero。 */
#kh-quote-top-banner {
  position: relative; display: grid; place-items: center; width: 100%;
  min-height: 450px; overflow: hidden; box-sizing: border-box;
  background: #100c2a; color: #fff; text-align: center;
  font: 400 16px/1.8 "Microsoft YaHei", "PingFang SC", sans-serif;
}
#kh-quote-top-banner > img {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  max-width: none; object-fit: cover; object-position: center;
  transform: none; border: 0;
}
#kh-quote-top-banner .ban-info {
  position: relative; inset: auto; z-index: 1; width: 100%; max-width: 1440px;
  margin: 0 auto; padding: 152px 36px; box-sizing: border-box; color: #fff;
}
#kh-quote-top-banner h2 {
  padding: 0; margin: 0; border: 0; color: #fff; font-size: clamp(28px, 2.8vw, 48px);
  font-weight: 500; line-height: 1.5; letter-spacing: 0; text-wrap: balance;
}
#kh-quote-top-banner h2::before, #kh-quote-top-banner h2::after { content: none; }
#kh-quote-top-banner p {
  margin: 18px 0 24px; padding: 0; color: #fff; font: inherit;
  font-size: 20px; line-height: 1.85; text-wrap: balance;
}
#kh-quote-top-banner .q-hero-tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 0; }
#kh-quote-top-banner .q-hero-tag { padding: 0 22px; color: #fff; font-size: 16px; line-height: 1.7; box-sizing: border-box; }
#kh-quote-top-banner .q-hero-tag + .q-hero-tag { border-left: 1px solid #ffffff70; }
#kh-quote-top-banner .q-hero-tag::before { content: none; }
@media (max-width: 700px) {
  #kh-quote-top-banner { min-height: 0; }
  #kh-quote-top-banner .ban-info { padding: 36px 22px 32px; }
  #kh-quote-top-banner h2 { font-size: 26px; line-height: 1.6; }
  #kh-quote-top-banner p { font-size: 16px; margin: 18px 0 22px; }
}
@media (max-width: 570px) {
  #kh-quote-top-banner h2 { font-size: 24px; }
  #kh-quote-top-banner .q-hero-tags { max-width: 280px; margin: 0 auto; gap: 10px 0; }
  #kh-quote-top-banner .q-hero-tag { width: 50%; padding: 0 14px; }
  #kh-quote-top-banner .q-hero-tag:nth-child(3) { border-left: 0; }
}
.kh-quote-preview:has(> #kh-quote-top-banner) { padding-top: 0; }
