/* ==========================================================================
   微联城官网 · v4 商务能力扩展样式
   仅作用于 .v4-* 命名空间，不覆盖前台主样式；.v4-demo 下的基础样式只用于静态预览。
   ========================================================================== */
:root {
  --v4-navy: #0b2447;
  --v4-blue: #12457f;
  --v4-blue-2: #1d6fb8;
  --v4-accent: #7ae3d4;
  --v4-ink: #16283f;
  --v4-soft: #4a5f77;
  /* 次要文字需在白底 / 浅灰底上都达到 WCAG AA 4.5:1；原 #78899c 仅 3.59:1 */
  --v4-muted: #5b6b7e;
  --v4-line: #dde7f0;
  --v4-surface: #f4f8fc;
  --v4-white: #fff;
  --v4-radius: 14px;
  --v4-shadow: 0 10px 30px rgba(11, 36, 71, .08);
}

/* ---------- 仅静态预览使用的基础样式（正式页面由 style.css 提供） ---------- */
.v4-demo { margin: 0; font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: var(--v4-ink); background: var(--v4-white); line-height: 1.7; }
.v4-demo .container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.v4-demo .icon { width: 1.1em; height: 1.1em; fill: currentColor; vertical-align: -.15em; }
.v4-demo .skip-link { position: absolute; left: -9999px; top: 0; background: var(--v4-navy);
  color: #fff; padding: 10px 18px; z-index: 999; }
.v4-demo .skip-link:focus { left: 12px; top: 12px; }
.v4-demo a { color: var(--v4-blue-2); }
.v4-demo img { max-width: 100%; height: auto; display: block; }
.v4-demo-bar { background: #061a33; color: #d7e8fb; text-align: center; padding: 10px 16px;
  font-size: 12.5px; position: relative; z-index: 20; }
.v4-demo-bar a { color: var(--v4-accent); }
.v4-top { background: var(--v4-navy); color: #fff; position: sticky; top: 0; z-index: 30;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .16); }
.v4-top .container { display: flex; align-items: center; justify-content: space-between;
  gap: 18px; min-height: 62px; flex-wrap: wrap; }
.v4-brand { color: #fff; font-weight: 700; text-decoration: none; font-size: 17px; }
.v4-brand span { color: var(--v4-accent); }
.v4-brand small { font-size: 10px; border: 1px solid var(--v4-accent); color: var(--v4-accent);
  padding: 1px 6px; border-radius: 4px; margin-left: 6px; letter-spacing: .08em; }
.v4-topnav { display: flex; gap: 18px; flex-wrap: wrap; }
.v4-topnav a { color: #cfe0f3; text-decoration: none; font-size: 13.5px; }
.v4-topnav a:hover, .v4-topnav a:focus-visible { color: var(--v4-accent); }
.v4-foot { background: #061a33; color: #9db4cc; padding: 32px 0; font-size: 13px; text-align: center; }
.v4-foot p { margin: 4px 0; }

/* ---------- 通用版块 ---------- */
.v4-section { padding: 68px 0; }
.v4-section--tint { background: var(--v4-surface); }
.v4-kicker { color: var(--v4-blue-2); font-size: 12.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; margin: 0 0 10px; }
.v4-h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.25; color: var(--v4-navy); margin: 0 0 16px; }
.v4-h2 { font-size: clamp(24px, 3vw, 33px); line-height: 1.28; color: var(--v4-navy); margin: 0 0 12px; }
.v4-h3 { font-size: 18px; color: var(--v4-navy); margin: 0 0 10px; }
.v4-lead { color: var(--v4-soft); max-width: 820px; margin: 0 0 26px; font-size: 15.5px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.v4-notice, .v4-disclaimer { background: #fff8e8; border-left: 3px solid #e6a93d;
  color: #6b5322; padding: 12px 16px; border-radius: 0 8px 8px 0; font-size: 13.5px; margin: 0 0 22px; }
.v4-disclaimer { margin: 16px 0 0; line-height: 1.65; }
.v4-status { min-height: 22px; font-size: 13.5px; color: var(--v4-blue-2); margin: 12px 0 0; }
.v4-status.is-error { color: #b4232c; }
.v4-count { margin-left: auto; color: var(--v4-muted); font-size: 13px; }

/* ---------- 功能中心 ---------- */
.v4-hub-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.v4-hub-card { display: flex; flex-direction: column; background: var(--v4-white);
  border: 1px solid var(--v4-line); border-radius: var(--v4-radius); padding: 22px;
  text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.v4-hub-card:hover, .v4-hub-card:focus-visible { transform: translateY(-4px);
  border-color: var(--v4-blue-2); box-shadow: var(--v4-shadow); }
.v4-hub-card__no { font-size: 11.5px; letter-spacing: .1em; color: var(--v4-blue-2); font-weight: 700; }
.v4-hub-card h3 { font-size: 16.5px; margin: 10px 0 8px; color: var(--v4-navy); }
.v4-hub-card p { font-size: 13px; color: var(--v4-soft); margin: 0 0 16px; flex: 1; }
.v4-hub-card__more { font-size: 13px; color: var(--v4-blue-2); font-weight: 650; }

/* ---------- 工具条 / 表单 ---------- */
.v4-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--v4-white); border: 1px solid var(--v4-line); border-radius: 12px;
  padding: 14px 18px; margin-bottom: 22px; }
.v4-toolbar label { font-size: 13.5px; color: var(--v4-soft); font-weight: 600; }
.v4-field, .v4-quote__form label, .v4-form label { display: flex; flex-direction: column;
  gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--v4-soft); }
.v4-quote__form label.v4-full, .v4-form label.v4-full { grid-column: 1 / -1; }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"],
input[type="date"], input[type="search"], select, textarea, .v4-input {
  font: inherit; color: var(--v4-ink); background: var(--v4-white);
  border: 1px solid var(--v4-line); border-radius: 8px; padding: 9px 12px;
  min-height: 42px; width: 100%; box-sizing: border-box; }
textarea { min-height: 88px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible,
button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--v4-blue-2); outline-offset: 2px; }
.v4-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--v4-blue-2); color: #fff; border: 1px solid var(--v4-blue-2);
  border-radius: 9px; padding: 11px 20px; font-size: 14px; font-weight: 650;
  cursor: pointer; text-decoration: none; transition: background .18s ease, transform .18s ease; }
.v4-btn:hover { background: var(--v4-blue); transform: translateY(-1px); }
.v4-btn--sm { padding: 7px 13px; font-size: 12.5px; }
.v4-btn--ghost { background: transparent; color: var(--v4-blue-2); }
.v4-btn--ghost:hover { background: #eaf3fc; }
.v4-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.v4-tag { display: inline-block; background: #e8f2fb; color: var(--v4-blue);
  border-radius: 20px; padding: 3px 10px; font-size: 11.5px; font-weight: 650; }
.v4-tag--dealer { background: #fdf0dd; color: #95591a; }
.v4-tag--ok { background: #e5f6ee; color: #1f7a53; }
.v4-tag--wait { background: #f2f0fb; color: #5b4b9e; }

/* ---------- 产品卡片 ---------- */
.v4-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.v4-card { background: var(--v4-white); border: 1px solid var(--v4-line);
  border-radius: var(--v4-radius); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease; }
.v4-card:hover { transform: translateY(-3px); box-shadow: var(--v4-shadow); }
.v4-card.is-hidden { display: none; }
.v4-card__img { background: var(--v4-surface); aspect-ratio: 8 / 5; overflow: hidden; }
.v4-card__img img { width: 100%; height: 100%; object-fit: cover; }
.v4-card__body { padding: 18px; display: flex; flex-direction: column; flex: 1; gap: 9px; }
.v4-card__meta { display: flex; gap: 6px; flex-wrap: wrap; }
.v4-card h3 { font-size: 16px; color: var(--v4-navy); margin: 2px 0 0; line-height: 1.4; }
.v4-card p { font-size: 13px; color: var(--v4-soft); margin: 0; flex: 1; }
.v4-price { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.v4-price span { font-size: 21px; font-weight: 750; color: #b3541e; }
.v4-price small { color: var(--v4-muted); font-size: 11.5px; }
.v4-card__foot { display: flex; align-items: center; justify-content: space-between;
  gap: 10px; border-top: 1px solid var(--v4-line); padding-top: 12px; margin-top: 6px; }
.v4-check { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px;
  color: var(--v4-soft); cursor: pointer; }
.v4-check input { width: 16px; height: 16px; accent-color: var(--v4-blue-2); }
.v4-compare-bar { position: sticky; bottom: 16px; margin-top: 20px; display: flex;
  align-items: center; gap: 14px; flex-wrap: wrap; background: var(--v4-navy); color: #fff;
  padding: 12px 18px; border-radius: 12px; box-shadow: 0 8px 28px rgba(11, 36, 71, .3); z-index: 15; }
.v4-compare-bar[hidden] { display: none; }
.v4-compare-bar .v4-btn--ghost { color: #cfe2f5; border-color: #5a7ca4; }
.v4-compare-bar .v4-btn--ghost:hover { background: #173c69; }

/* ---------- 询价计算器 ---------- */
.v4-quote { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: 22px; align-items: start; }
.v4-quote__form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px; background: var(--v4-white); border: 1px solid var(--v4-line);
  border-radius: var(--v4-radius); padding: 22px; }
.v4-quote__result { background: var(--v4-navy); color: #fff; border-radius: var(--v4-radius);
  padding: 24px; position: sticky; top: 84px; }
.v4-quote__result h3 { margin: 0 0 8px; font-size: 15px; color: #a9c6e6; font-weight: 600; }
.v4-quote__total { font-size: clamp(28px, 4vw, 38px); font-weight: 750; color: var(--v4-accent);
  letter-spacing: -.02em; margin-bottom: 14px; }
.v4-quote__result ul { list-style: none; padding: 0; margin: 0 0 8px; font-size: 13px; color: #cfe0f3; }
.v4-quote__result li { display: flex; justify-content: space-between; gap: 12px;
  padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.v4-quote__result .v4-disclaimer { background: rgba(255, 232, 180, .12);
  border-left-color: var(--v4-accent); color: #f2e2b8; font-size: 12.5px; }
.v4-quote__result .v4-btn { width: 100%; margin-top: 16px; }
.v4-quote__result .v4-status { color: var(--v4-accent); }
.v4-quote__result .v4-status.is-error { color: #ffb4b4; }

/* ---------- 表格 / 对比 ---------- */
.v4-table-wrap { overflow-x: auto; background: var(--v4-white);
  border: 1px solid var(--v4-line); border-radius: 12px; }
.v4-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 620px; }
.v4-table th, .v4-table td { padding: 12px 14px; text-align: left;
  border-bottom: 1px solid var(--v4-line); vertical-align: top; }
.v4-table th { background: #edf4fb; color: var(--v4-blue); font-weight: 700; white-space: nowrap; }
.v4-table tbody tr:last-child td { border-bottom: 0; }
.v4-table tr.is-hidden { display: none; }
.v4-table code { background: #f0f5fa; padding: 2px 6px; border-radius: 4px;
  color: var(--v4-blue); font-size: 12.5px; }
.v4-compare-table { overflow-x: auto; }
.v4-compare-table table { min-width: 560px; }
.v4-compare-table th:first-child { min-width: 130px; }
.v4-compare-table td { min-width: 150px; }
.v4-empty { padding: 30px; text-align: center; color: var(--v4-muted);
  background: var(--v4-white); border: 1px dashed var(--v4-line); border-radius: 12px; }

/* ---------- FAQ ---------- */
.v4-faq { display: grid; gap: 10px; max-width: 940px; }
.v4-faq__item { background: var(--v4-white); border: 1px solid var(--v4-line);
  border-radius: 10px; overflow: hidden; }
.v4-faq__item summary { cursor: pointer; padding: 15px 18px; font-weight: 650;
  color: var(--v4-navy); display: flex; align-items: center; gap: 12px; list-style: none; }
.v4-faq__item summary::-webkit-details-marker { display: none; }
.v4-faq__item summary::after { content: "+"; margin-left: auto; font-size: 20px;
  color: var(--v4-blue-2); line-height: 1; }
.v4-faq__item[open] summary::after { content: "−"; }
.v4-faq__item > div { padding: 0 18px 18px; color: var(--v4-soft); font-size: 14px; line-height: 1.85; }

/* ---------- 溯源 / 步骤 ---------- */
.v4-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 26px; }
.v4-step { background: var(--v4-white); border: 1px solid var(--v4-line);
  border-radius: 12px; padding: 18px; }
.v4-step b { color: var(--v4-blue-2); font-size: 22px; }
.v4-step h3 { font-size: 16px; color: var(--v4-navy); margin: 6px 0; }
.v4-step p { font-size: 13px; color: var(--v4-soft); margin: 0; }
.v4-qr-box { background: #fff; padding: 12px; border-radius: 10px; display: inline-block; }
.v4-qr-box canvas, .v4-qr-box svg { width: 180px; height: 180px; display: block; }

/* ---------- 3D 示意展厅 ---------- */
.v4-showroom { perspective: 900px; height: 340px; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, #e7f1fa, #d3e2f1); border-radius: 14px;
  border: 1px solid var(--v4-line); cursor: grab; user-select: none; }
.v4-showroom:active { cursor: grabbing; }
.v4-showroom__cube { width: 190px; height: 190px; position: relative;
  transform-style: preserve-3d; transform: rotateX(-18deg) rotateY(var(--v4-ry, 24deg));
  transition: transform .08s linear; }
.v4-showroom__cube i { position: absolute; inset: 0; display: grid; place-items: center;
  font-style: normal; font-size: 14px; font-weight: 700; color: #fff;
  border: 2px solid rgba(255, 255, 255, .55); background: rgba(18, 69, 127, .82); }
.v4-showroom__cube i:nth-child(1) { transform: translateZ(95px); }
.v4-showroom__cube i:nth-child(2) { transform: rotateY(180deg) translateZ(95px); }
.v4-showroom__cube i:nth-child(3) { transform: rotateY(90deg) translateZ(95px); }
.v4-showroom__cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(95px); }
.v4-showroom__cube i:nth-child(5) { transform: rotateX(90deg) translateZ(95px); }
.v4-showroom__cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(95px); }

/* ---------- 时间线 / 卡片列表 ---------- */
.v4-timeline { list-style: none; margin: 0; padding: 0 0 0 24px;
  border-left: 2px solid var(--v4-line); }
.v4-timeline li { position: relative; padding: 0 0 22px 22px; }
.v4-timeline li::before { content: ""; position: absolute; left: -31px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--v4-blue-2);
  box-shadow: 0 0 0 4px #e8f2fb; }
.v4-timeline time { display: block; font-size: 12.5px; color: var(--v4-muted); }
.v4-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.v4-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.v4-panel { background: var(--v4-white); border: 1px solid var(--v4-line);
  border-radius: 12px; padding: 20px; }
.v4-panel h3 { margin-top: 0; font-size: 16px; color: var(--v4-navy); }
.v4-panel p { color: var(--v4-soft); font-size: 13.5px; margin: 6px 0; }
.v4-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
  background: var(--v4-white); border: 1px solid var(--v4-line);
  border-radius: var(--v4-radius); padding: 22px; }
.v4-form .v4-btn { grid-column: 1 / -1; justify-self: start; }
.v4-code-hint { font-size: 12.5px; color: #95591a; background: #fdf0dd;
  border-radius: 6px; padding: 6px 10px; display: inline-block; }
.v4-fx { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--v4-soft); }
.v4-fx select { min-height: 36px; padding: 5px 9px; width: auto; }

/* ---------- 在线客服 ---------- */
.v4-chat-fab { position: fixed; right: 22px; bottom: 22px; width: 54px; height: 54px;
  border: 0; border-radius: 50%; background: var(--v4-blue-2); color: #fff;
  font-size: 22px; cursor: pointer; box-shadow: 0 8px 24px rgba(18, 69, 127, .35); z-index: 60; }
.v4-chat-fab .icon { width: 24px; height: 24px; }
.v4-chat { position: fixed; right: 22px; bottom: 88px; width: min(340px, calc(100vw - 32px));
  background: #fff; border: 1px solid var(--v4-line); border-radius: 14px;
  box-shadow: 0 16px 44px rgba(11, 36, 71, .24); z-index: 61; overflow: hidden; }
.v4-chat[hidden] { display: none; }
.v4-chat__head { background: var(--v4-navy); color: #fff; padding: 12px 16px;
  font-size: 14px; font-weight: 650; display: flex; justify-content: space-between; }
.v4-chat__head button { background: none; border: 0; color: #fff; font-size: 22px;
  cursor: pointer; line-height: 1; }
.v4-chat__log { height: 230px; overflow-y: auto; padding: 14px; background: #f8fbfe; }
.v4-chat__msg { max-width: 86%; padding: 9px 12px; border-radius: 10px; font-size: 13px;
  margin-bottom: 10px; line-height: 1.65; }
.v4-chat__msg--bot { background: #e8f2fb; color: var(--v4-ink); }
.v4-chat__msg--me { background: var(--v4-blue-2); color: #fff; margin-left: auto; }
.v4-chat form { display: flex; border-top: 1px solid var(--v4-line); }
.v4-chat form input { border: 0; border-radius: 0; flex: 1; min-height: 44px; }
.v4-chat form button { border: 0; background: var(--v4-blue-2); color: #fff;
  padding: 0 18px; cursor: pointer; font-size: 13px; }

/* ---------- 页面通用（正式 PHP 页面） ---------- */
.v4-page { padding: 46px 0 76px; }
.v4-page .v4-section { padding: 0 0 46px; }
.v4-crumb { font-size: 13px; color: var(--v4-muted); margin-bottom: 18px; }
.v4-crumb a { color: var(--v4-blue-2); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .v4-hub-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .v4-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v4-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .v4-section { padding: 44px 0; }
  .v4-hub-grid, .v4-product-grid, .v4-grid-2, .v4-grid-3 { grid-template-columns: 1fr; }
  .v4-steps { grid-template-columns: 1fr 1fr; }
  .v4-quote, .v4-quote__form, .v4-form { grid-template-columns: 1fr; }
  .v4-quote__result { position: static; }
  .v4-quote__form label.v4-full, .v4-form label.v4-full { grid-column: auto; }
  .v4-topnav { gap: 10px; font-size: 12px; }
  .v4-top .container { padding: 10px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .v4-card, .v4-hub-card, .v4-btn, .v4-showroom__cube { transition: none !important; }
  .v4-card:hover, .v4-hub-card:hover, .v4-btn:hover { transform: none; }
}
@media print {
  .v4-top, .v4-demo-bar, .v4-chat-fab, .v4-chat, .v4-compare-bar, .v4-toolbar,
  .v4-quote__form, .v4-btn { display: none !important; }
  .v4-section { padding: 12px 0; }
}
