/* =========================================================
   Reusable components — DESIGN.md §11 spec.
   States: default, hover, active, focus, disabled, loading.
   ========================================================= */

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--color-primary);
  --btn-color: #fff;
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  font-family: inherit;
  font-size: var(--fs-button);
  font-weight: var(--fw-strong);
  line-height: var(--lh-button);
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-color);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.btn:hover { background: var(--color-primary-strong); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(20, 110, 245, 0.25); }
.btn:active { transform: translateY(0); box-shadow: 0 2px 6px rgba(20, 110, 245, 0.20); background: var(--color-primary-strong); color: #fff; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(20, 110, 245, 0.30); }
.btn[disabled], .btn.is-disabled {
  background: #C9D2DE; color: #fff; cursor: not-allowed;
  transform: none; box-shadow: none;
}
.btn.is-loading { position: relative; pointer-events: none; }
.btn.is-loading::before {
  content: ""; width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 0.7s linear infinite;
}

.btn--secondary {
  --btn-bg: var(--color-surface);
  --btn-color: var(--color-primary);
  --btn-border: var(--color-border);
}
.btn--secondary:hover { --btn-bg: var(--color-primary-soft); --btn-border: var(--color-primary); transform: translateY(-1px); box-shadow: 0 6px 14px rgba(20, 110, 245, 0.10); }
.btn--secondary:active { --btn-bg: #D8E5FB; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-color: var(--color-text);
  --btn-border: transparent;
}
.btn--ghost:hover { --btn-bg: rgba(11, 18, 32, 0.05); transform: none; box-shadow: none; }

.btn--dark {
  --btn-bg: var(--color-text-strong);
  --btn-color: #fff;
}
.btn--dark:hover { --btn-bg: #1A2640; }

.btn--lg { min-height: 42px; padding: 9px 28px; font-size: 16px; }
.btn--sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn--block { width: 100%; }

.btn .arrow { transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Tags / Badges ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-soft);
  color: var(--color-primary-strong);
  border: 1px solid rgba(20, 110, 245, 0.18);
}
.tag--ai { background: var(--color-secondary-soft); color: #007D94; border-color: rgba(0, 184, 217, 0.22); }
.tag--accent { background: var(--color-accent-soft); color: #B5421B; border-color: rgba(255, 122, 69, 0.22); }
.tag--lime { background: rgba(167, 233, 47, 0.18); color: #4F7F00; border-color: rgba(167, 233, 47, 0.45); }
.tag--neutral { background: var(--color-surface-soft); color: var(--color-muted); border-color: var(--color-border); }
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- Cards ---------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.card:hover { border-color: rgba(20, 110, 245, 0.40); box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--color-muted); }
.card .card-icon {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--color-primary);
  color: #fff;
  margin-bottom: 16px;
  border: 0;
  box-shadow: 0 6px 14px rgba(20, 110, 245, 0.28);
}
.card--ai .card-icon     { background: var(--color-secondary); box-shadow: 0 6px 14px rgba(0, 184, 217, 0.28); }
.card--accent .card-icon { background: var(--color-accent);    box-shadow: 0 6px 14px rgba(255, 122, 69, 0.28); }
.card--lime .card-icon   { background: #5FAA00;                box-shadow: 0 6px 14px rgba(95, 170, 0, 0.28); }
@media (max-width: 767px) { .card { padding: 20px; } }

/* feature pill list */
.feature-list { display: flex; flex-direction: column; gap: 14px; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 0;
  font-size: var(--fs-body);
  line-height: 1.6;
}
.feature-list li::before {
  content: "";
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  margin-top: 4px;
  background: var(--color-primary-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='%23146EF5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-6'/></svg>") center/14px no-repeat;
}
.feature-list--lime li::before { background-color: rgba(167, 233, 47, 0.22); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='%234F7F00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-6'/></svg>"); }

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
}
.stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat {
  position: relative;
  padding: 24px 28px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.stat .stat-num {
  font-family: var(--font-sans);
  font-size: 40px;
  line-height: 1;
  font-weight: var(--fw-extrabold);
  letter-spacing: -0.02em;
  color: var(--color-text-strong);
  display: flex; align-items: baseline; gap: 4px;
}
.stat .stat-num .unit {
  font-size: 18px;
  font-weight: var(--fw-strong);
  color: var(--color-primary);
}
.stat .stat-label {
  margin-top: 8px;
  color: var(--color-muted);
  font-size: 14px;
}
@media (max-width: 1023px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 419px) { .stats { grid-template-columns: 1fr; } }

/* ---------- Form ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label {
  font-size: 14px;
  font-weight: var(--fw-semibold);
  color: var(--color-text);
}
.field label .req { color: var(--color-error); margin-left: 2px; }
.field .help { font-size: 12px; color: var(--color-muted); }
.field input,
.field textarea,
.field select {
  font: inherit;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(20, 110, 245, 0.15);
}
.field--error input, .field--error textarea, .field--error select { border-color: var(--color-error); }
.field .err {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--color-error);
}
.field .err::before {
  content: ""; width: 14px; height: 14px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='%23DC2626' stroke-width='2' stroke-linecap='round' d='M8 4v5'/><circle cx='8' cy='12' r='1' fill='%23DC2626'/><circle cx='8' cy='8' r='6.5' fill='none' stroke='%23DC2626' stroke-width='1.5'/></svg>") no-repeat center/contain;
}

/* ---------- Spec table ---------- */
.spec {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.spec-group + .spec-group { border-top: 1px solid var(--color-border-soft); }
.spec-group { display: grid; grid-template-columns: 200px 1fr; }
.spec-group__head {
  background: var(--color-surface-soft);
  padding: 20px 24px;
  display: flex; flex-direction: column; gap: 6px;
  border-right: 1px solid var(--color-border-soft);
}
.spec-group__head .label {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--color-muted);
}
.spec-group__head .name {
  font-size: 18px;
  font-weight: var(--fw-bold);
  color: var(--color-text-strong);
}
.spec-group__body {
  padding: 16px 24px;
  display: flex; flex-wrap: wrap; gap: 8px 16px;
}
.spec-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--color-text);
}
.spec-item::before {
  content: "";
  width: 14px; height: 14px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='%2316A34A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3 8.5l3 3 7-7'/></svg>") no-repeat center/contain;
}
@media (max-width: 767px) {
  .spec-group { grid-template-columns: 1fr; }
  .spec-group__head { border-right: 0; border-bottom: 1px solid var(--color-border-soft); padding: 16px 20px; }
  .spec-group__body { padding: 16px 20px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-text-strong);
  color: var(--color-dark-text);
  padding-block: 80px 32px;
  margin-top: 0;
}
.site-footer .container { display: grid; gap: 48px; }
.footer-top {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) minmax(120px, 0.8fr) minmax(120px, 0.8fr) minmax(240px, 1.45fr) minmax(128px, 0.8fr);
  gap: 40px;
}
.footer-brand .logo { color: #fff; margin-bottom: 12px; }
.footer-brand p { color: var(--color-dark-muted); max-width: 320px; font-size: 14px; }
.footer-col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: var(--fw-strong);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: var(--color-dark-muted);
  font-size: 14px;
  transition: color var(--dur-fast) var(--ease-out);
}
.footer-col a:hover { color: #fff; }
.footer-contact ul { gap: 14px; }
.footer-contact li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.footer-contact__icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.76);
}
.footer-contact__icon svg {
  width: 18px;
  height: 18px;
}
.footer-contact p {
  margin: 0;
  color: var(--color-dark-muted);
  font-size: 14px;
  line-height: 1.7;
}
.footer-qr img {
  display: block;
  width: 112px;
  height: 112px;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
}
.footer-bottom {
  border-top: 1px solid var(--color-dark-border);
  padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between;
  font-size: 12px;
  color: var(--color-dark-muted);
}
.footer-bottom .meta { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-bottom a { color: var(--color-dark-muted); }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 1023px) {
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 539px) {
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Logo wall ---------- */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.logo-wall .logo-cell {
  display: flex; align-items: center; justify-content: center;
  padding: 28px 12px;
  border-right: 1px solid var(--color-border-soft);
  border-bottom: 1px solid var(--color-border-soft);
  color: var(--color-muted);
  font-weight: var(--fw-semibold);
  font-size: 15px;
  letter-spacing: 0.02em;
  background: var(--color-surface);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.logo-wall .logo-cell:hover { background: var(--color-primary-soft); color: var(--color-primary-strong); }
.logo-wall .logo-cell:nth-child(6n) { border-right: 0; }
.logo-wall .logo-cell:nth-last-child(-n+6) { border-bottom: 0; }
@media (max-width: 1023px) {
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
  .logo-wall .logo-cell { border-right: 1px solid var(--color-border-soft); border-bottom: 1px solid var(--color-border-soft); }
  .logo-wall .logo-cell:nth-child(3n) { border-right: 0; }
  .logo-wall .logo-cell:nth-last-child(-n+3) { border-bottom: 0; }
}
@media (max-width: 539px) {
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .logo-wall .logo-cell:nth-child(3n) { border-right: 1px solid var(--color-border-soft); }
  .logo-wall .logo-cell:nth-child(2n) { border-right: 0; }
  .logo-wall .logo-cell:nth-last-child(-n+3) { border-bottom: 1px solid var(--color-border-soft); }
  .logo-wall .logo-cell:nth-last-child(-n+2) { border-bottom: 0; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: 13px;
  color: var(--color-muted);
  list-style: none; padding: 0; margin: 0;
}
.breadcrumb li { display: flex; align-items: center; gap: 8px; margin: 0; }
.breadcrumb li + li::before {
  content: "›"; color: var(--color-muted-soft);
}
.breadcrumb a { color: var(--color-muted); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb li[aria-current="page"] { color: var(--color-text); font-weight: var(--fw-semibold); }

/* ---------- Accordion / FAQ ---------- */
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  overflow: hidden;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.faq-item + .faq-item { margin-top: 12px; }
.faq-item[open] { border-color: rgba(20, 110, 245, 0.40); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  font-size: 17px;
  font-weight: var(--fw-strong);
  color: var(--color-text-strong);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex-shrink: 0;
  width: 20px; height: 20px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='%23146EF5' stroke-width='2' stroke-linecap='round' d='M4 6l4 4 4-4'/></svg>") no-repeat center/contain;
  transition: transform var(--dur-fast) var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item__body {
  padding: 0 24px 22px;
  color: var(--color-muted);
  line-height: 1.7;
}
@media (max-width: 767px) {
  .faq-item summary { padding: 16px 20px; font-size: 16px; }
  .faq-item__body { padding: 0 20px 18px; }
}

/* ---------- Pricing card ---------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}
.pricing-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 36px 32px 32px;
  display: flex; flex-direction: column; gap: 18px;
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.pricing-card:hover { border-color: rgba(20, 110, 245, 0.40); box-shadow: var(--shadow-card-hover); }
.pricing-card .price-tag {
  display: flex; align-items: baseline; gap: 6px;
  font-family: var(--font-sans);
}
.pricing-card .price-tag .currency { font-size: 22px; font-weight: var(--fw-strong); color: var(--color-text); }
.pricing-card .price-tag .amount { font-size: 48px; font-weight: var(--fw-extrabold); letter-spacing: -0.02em; color: var(--color-text-strong); line-height: 1; }
.pricing-card .price-tag .period { font-size: 14px; color: var(--color-muted); margin-left: 6px; }
.pricing-card .price-meta { font-size: 13px; color: var(--color-muted); }
.pricing-card .region {
  font-size: 13px; font-weight: var(--fw-semibold); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-primary);
}
.pricing-card--feature {
  background: linear-gradient(135deg, #0F1B33 0%, #0A1226 100%);
  color: #fff;
  border-color: transparent;
}
.pricing-card--feature .price-tag .currency,
.pricing-card--feature .price-tag .amount { color: #fff; }
.pricing-card--feature .price-tag .period,
.pricing-card--feature .price-meta { color: rgba(255,255,255,0.62); }
.pricing-card--feature .region { color: var(--color-secondary); }
.pricing-card--feature::before {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(0, 184, 217, 0.40), transparent 70%);
  pointer-events: none;
}
@media (max-width: 767px) { .pricing { grid-template-columns: 1fr; } }

/* ---------- CTA bar ---------- */
.cta-bar {
  position: relative;
  border-radius: var(--radius-2xl);
  padding: 64px 56px;
  background: linear-gradient(120deg, #0E1A33 0%, #102655 50%, #1A3F8E 100%);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-deep);
}
.cta-bar:has(.consult-popover) {
  overflow: visible;
  z-index: calc(var(--z-sticky, 100) + 5);
}
.section:has(.consult-popover) {
  z-index: calc(var(--z-sticky, 100) + 4);
}
.section:has(.consult-popover) > .container {
  z-index: calc(var(--z-sticky, 100) + 4);
}
.cta-bar:has(.consult-popover) .row,
.cta-bar:has(.consult-popover) .consult-popover {
  position: relative;
  z-index: calc(var(--z-sticky, 100) + 6);
}
/* CTA 内咨询二维码：与顶栏/抽屉弹层统一尺寸与排版 */
.cta-bar .consult-popover .consult-popover__card {
  z-index: calc(var(--z-sticky, 100) + 20);
}
.cta-bar .consult-popover .consult-popover__title {
  color: var(--color-text-strong) !important;
  max-width: none;
}
.cta-bar .consult-popover .consult-popover__card img {
  width: 180px;
  height: 180px;
  max-width: none;
  margin-inline: auto;
  object-fit: contain;
}
.cta-bar h2 {
  color: #fff;
  margin-bottom: 0;
  font-size: 48px;
  line-height: 1.14;
  font-weight: var(--fw-extrabold);
  letter-spacing: -0.02em;
}
@media (max-width: 1023px) {
  .cta-bar h2 { font-size: 40px; }
}
@media (max-width: 767px) {
  .cta-bar h2 { font-size: 32px; }
}
/* 非首屏 CTA：标题与简介居中（:has 选中含主标题的文案容器，略过装饰 orbs） */
main .section:not(.hero):not(.page-hero):not(.about-hero) .cta-bar > div:has(> h2) {
  margin-inline: auto;
  text-align: center;
}
main .section:not(.hero):not(.page-hero):not(.about-hero) .cta-bar > div:has(> h2) > p {
  margin-inline: auto;
}
main .section:not(.hero):not(.page-hero):not(.about-hero) .cta-bar .row {
  justify-content: center;
}
.cta-bar > div:has(> h2) > p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 540px;
  margin-top: 20px;
  font-size: 16px;
  line-height: var(--lh-body);
}
.cta-bar .row { margin-top: 24px; }
.cta-bar .btn--secondary {
  --btn-bg: rgba(255, 255, 255, 0.06);
  --btn-color: #fff;
  --btn-border: rgba(255, 255, 255, 0.30);
  backdrop-filter: blur(12px);
}
.cta-bar .btn--secondary:hover { --btn-bg: rgba(255, 255, 255, 0.12); --btn-border: rgba(255, 255, 255, 0.50); }
.cta-bar .gradient-orb-1, .cta-bar .gradient-orb-2 {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.55; pointer-events: none;
}
.cta-bar .gradient-orb-1 { width: 360px; height: 360px; background: radial-gradient(#00B8D9, transparent 60%); top: -80px; right: -60px; }
.cta-bar .gradient-orb-2 { width: 320px; height: 320px; background: radial-gradient(#A7E92F, transparent 60%); bottom: -120px; left: 30%; opacity: 0.30; }
@media (max-width: 767px) { .cta-bar { padding: 40px 24px; } }

/* ---------- Notice / inline alert ---------- */
.notice {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  background: var(--color-primary-soft);
  border: 1px solid rgba(20, 110, 245, 0.20);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.6;
}
.notice .icon { color: var(--color-primary); flex-shrink: 0; margin-top: 2px; }

/* Hero 内咨询二维码：首屏 overflow:hidden 会裁切向下展开的弹层 */
.hero:has(.consult-popover:hover),
.hero:has(.consult-popover:focus-within),
.hero:has(.consult-popover.is-open) {
  overflow: visible;
  z-index: calc(var(--z-sticky, 100) + 2);
}
.hero:has(.consult-popover:hover) .container,
.hero:has(.consult-popover:focus-within) .container,
.hero:has(.consult-popover.is-open) .container,
.hero:has(.consult-popover) .hero-copy,
.hero:has(.consult-popover) .hero-cta {
  overflow: visible;
}
.hero .hero-cta:has(.consult-popover) {
  position: relative;
  z-index: calc(var(--z-sticky, 100) + 4);
}
/* Hero 按钮靠近区块底边：弹层向上展开，避免被 overflow:hidden 裁切 */
.hero .hero-cta .consult-popover .consult-popover__card {
  top: auto;
  bottom: calc(100% + 12px);
  transform: translateX(-50%) translateY(-8px);
  z-index: calc(var(--z-sticky, 100) + 12);
}
.hero .hero-cta .consult-popover:hover .consult-popover__card,
.hero .hero-cta .consult-popover:focus-within .consult-popover__card,
.hero .hero-cta .consult-popover.is-open .consult-popover__card {
  transform: translateX(-50%) translateY(0);
}

/* ---------- 在线咨询 hover 二维码 ---------- */
.consult-popover {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
}
.consult-popover__card {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  z-index: calc(var(--z-sticky, 100) + 10);
  box-sizing: border-box;
  width: 220px;
  padding: 20px 20px 0;
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.16);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transition:
    opacity var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out),
    visibility var(--dur-base) var(--ease-out);
}
.consult-popover--align-end .consult-popover__card {
  left: auto;
  right: 0;
  transform: translateY(8px);
}
.consult-popover--above .consult-popover__card {
  top: auto;
  bottom: calc(100% + 12px);
  transform: translateX(-50%) translateY(-8px);
}
.consult-popover--above:hover .consult-popover__card,
.consult-popover--above:focus-within .consult-popover__card,
.consult-popover--above.is-open .consult-popover__card {
  transform: translateX(-50%) translateY(0);
}
.consult-popover:hover .consult-popover__card,
.consult-popover:focus-within .consult-popover__card,
.consult-popover.is-open .consult-popover__card {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.consult-popover--align-end:hover .consult-popover__card,
.consult-popover--align-end:focus-within .consult-popover__card,
.consult-popover--align-end.is-open .consult-popover__card {
  transform: translateY(0);
}
.consult-popover__title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: var(--fw-bold);
  line-height: 1.35;
  color: var(--color-text-strong);
  text-align: center;
}
.consult-popover__card img {
  display: block;
  width: 180px;
  height: 180px;
  max-width: none;
  margin-inline: auto;
  object-fit: contain;
  border-radius: 8px;
}
.consult-popover__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  width: calc(100% + 40px);
  margin: 14px -20px 0;
  padding: 12px 16px 14px;
  border-radius: 0 0 16px 16px;
  background: #07C160;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: var(--fw-semibold);
  line-height: 1.4;
}
.consult-popover__footer-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.consult-popover__footer-icon svg {
  width: 100%;
  height: 100%;
}
.consult-popover--drawer {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.consult-popover--drawer .consult-popover__card {
  position: static;
  width: 100%;
  max-width: 280px;
  margin: 12px auto 0;
  display: none;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  box-shadow: var(--shadow-card-soft);
}
.consult-popover--drawer.is-open .consult-popover__card,
.consult-popover--drawer:focus-within .consult-popover__card {
  display: block;
}
@media (hover: hover) {
  .consult-popover--drawer:hover .consult-popover__card {
    display: block;
  }
}
@media (max-width: 1023px) {
  .consult-popover__card {
    width: 200px;
    padding: 16px 16px 0;
  }
  .consult-popover__title { font-size: 16px; margin-bottom: 12px; }
  .consult-popover__card img {
    width: 168px;
    height: 168px;
  }
  .consult-popover__footer {
    width: calc(100% + 32px);
    margin: 14px -16px 0;
  }
}

/* =========================================================
   2026-05-08 整站视觉调整：投影 token + 隐藏英文眉角
   说明：卡片去边规则已移到 pages.css 末尾，因为多个 .card 类（.pillar /
   .ability-card / ...）在 pages.css 中重新定义并自带 border —— 同特异性下
   后加载的文件会胜出。这里仅保留 token 与 eyebrow 隐藏。
   ========================================================= */
:root {
  --shadow-card-soft: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 18px rgba(15, 23, 42, 0.06);
  --shadow-card-soft-hover: 0 2px 4px rgba(15, 23, 42, 0.06), 0 16px 36px rgba(15, 23, 42, 0.10);
}

/* 整站隐藏英文眉角（保留 DOM 以备 CMS 切换语言时启用） */
.eyebrow { display: none !important; }
