/* EC2 在线报价页 */
:root {
  --navy: #0b2a4a;
  --paper: #f7f5f1;
  --gold: #c4a35a;
  --teal: #1a7a6d;
  --teal-ink: #146158;
  --line: #e0d9ce;
  --card: #fffdfb;
  --muted: #3d556e;
}
[hidden] { display: none !important; }
.vq-body { margin: 0; background: var(--paper); color: var(--navy); min-height: 100%; }
.vq-wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 48rem) { .vq-wrap { padding: 0 2rem; } }

/* 顶部 */
.vq-header { position: sticky; top: 0; z-index: 30; background: rgba(247,245,241,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.vq-header-in { display: flex; align-items: center; gap: 1rem; min-height: 4rem; flex-wrap: wrap; }
.vq-logo { display: flex; align-items: center; gap: .6rem; color: var(--navy); }
.vq-logo svg { width: 2rem; height: 2rem; }
.vq-logo span { font-family: var(--font-heading); font-size: 1.25rem; }
.vq-nav { margin-left: auto; display: flex; align-items: center; gap: 2.25rem; font-size: .875rem; }
.vq-nav a { color: rgba(11,42,74,.8); white-space: nowrap; }
.vq-nav a:hover { color: var(--navy); }
.vq-nav .vq-nav-ec2 { color: var(--navy); font-weight: 500; border: 1px solid var(--gold); background: #fbf3e0; border-radius: 999px; padding: .32rem .85rem; }
.vq-nav .vq-nav-cta { background: var(--navy); color: var(--paper); border-radius: .625rem; padding: .6rem 1rem; font-weight: 500; margin-left: .5rem; }
@media (max-width: 47.99rem) {
  .vq-nav { margin-left: 0; width: 100%; gap: 1.1rem; overflow-x: auto; padding-bottom: .6rem; }
  .vq-nav .vq-nav-cta { margin-left: 0; padding: .4rem .8rem; }
}

/* 标题区 */
.vq-hero { background: var(--navy); color: var(--paper); padding: 2.75rem 0 2.5rem; }
.vq-eyebrow { font-size: .8rem; letter-spacing: .18em; color: var(--gold); margin: 0; }
.vq-hero h1 { font-family: var(--font-heading); font-size: 2.25rem; line-height: 1.2; margin: 0; }
.vq-lead { margin: 1rem 0 0; max-width: 42rem; line-height: 1.75; color: rgba(247,245,241,.88); }
@media (min-width: 48rem) { .vq-hero h1 { font-size: 2.75rem; } }

/* 北京时间时钟 */
.vq-hero-in { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; }
.vy-clock { flex: none; border: 1px solid rgba(247,245,241,.22); background: #06182c; padding: .6rem 1rem .55rem; text-align: right; border-radius: .25rem; }
.vy-clock b { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.45rem; font-weight: 600; color: #f5bd3a; letter-spacing: .06em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.vy-clock small { display: block; margin-top: .25rem; font-size: .75rem; color: rgba(247,245,241,.78); }
@media (max-width: 40rem) { .vq-hero-in { flex-direction: column; } .vy-clock { text-align: left; } }

/* 布局 */
.vq-layout { display: grid; gap: 1.5rem; padding-top: 2rem; padding-bottom: 4rem; }
@media (min-width: 64rem) {
  .vq-layout { grid-template-columns: minmax(0, 1fr) 24rem; align-items: start; }
  .vq-result { position: sticky; top: 5rem; }
}
.vq-steps { display: grid; gap: 1.25rem; }

.vq-card { background: var(--card); border: 1px solid var(--line); padding: 1.5rem; }
.vq-card h2 { display: flex; align-items: center; gap: .75rem; margin: 0 0 1.1rem; font-family: var(--font-heading); font-size: 1.35rem; font-weight: 400; }
.vq-card h2 em { color: #b4432f; font-style: normal; font-size: 1rem; }
.vq-num { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--navy); color: var(--paper); font-family: inherit; font-size: .95rem; }

.vq-grid2, .vq-grid3 { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .vq-grid2 { grid-template-columns: 1fr 1fr; } .vq-grid3 { grid-template-columns: 1fr 1fr 1fr; } }

.vq-field { display: flex; flex-direction: column; gap: .4rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.vq-field > span, .vq-field legend { font-size: .85rem; color: var(--muted); padding: 0; }
.vq-field select, .vq-field input[type=number], .vq-field input[type=text], .vq-inline input {
  height: 2.75rem; border: 1px solid #cfc6b6; border-radius: .5rem; background: #fff; color: var(--navy);
  padding: 0 .75rem; font: inherit; font-size: .95rem; width: 100%; min-width: 0;
}
.vq-field select:focus, .vq-field input:focus, .vq-inline input:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.vq-radios { margin-top: 1rem; }
.vq-radios label { display: flex; align-items: flex-start; gap: .5rem; font-size: .95rem; line-height: 1.5; padding: .2rem 0; cursor: pointer; }
.vq-radios input { margin-top: .3rem; accent-color: var(--teal); }
.vq-inline { display: flex; gap: .5rem; }
.vq-inline select { width: 6rem; flex: none; }
.vq-static { margin: 0; min-height: 2.75rem; display: flex; align-items: center; font-size: .95rem; }

.vq-sub { margin: 1.25rem 0 .6rem; font-size: .85rem; color: var(--muted); }
.vq-note { margin: .75rem 0 0; font-size: .8rem; line-height: 1.6; color: var(--muted); }
.vq-muted { color: rgba(247,245,241,.75); }

/* 候选实例 / 付费选项 */
.vq-cands, .vq-plans { display: grid; gap: .5rem; }
.vq-opt {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75rem;
  text-align: left; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: .5rem;
  padding: .7rem .9rem; font: inherit; color: var(--navy); cursor: pointer;
}
.vq-opt:hover { border-color: var(--teal); }
.vq-opt[aria-checked=true] { border-color: var(--teal); background: #eef6f4; box-shadow: inset 3px 0 0 var(--teal); }
.vq-dot { width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid #b9b0a0; }
.vq-opt[aria-checked=true] .vq-dot { border-color: var(--teal); background: radial-gradient(var(--teal) 45%, transparent 50%); }
.vq-opt b { font-weight: 600; }
.vq-opt small { display: block; color: var(--muted); font-size: .78rem; margin-top: .15rem; }
.vq-opt .vq-right { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vq-tag { display: inline-block; font-size: .7rem; padding: .05rem .4rem; border-radius: .25rem; margin-left: .35rem; vertical-align: 1px; background: #f1ece2; color: var(--muted); }
.vq-tag-arm { background: #e3f1ee; color: var(--teal-ink); }
.vq-save { color: var(--teal-ink); font-size: .78rem; }
.vq-empty { font-size: .9rem; color: var(--muted); padding: .75rem; border: 1px dashed var(--line); }

.vq-manual { margin-top: 1rem; font-size: .9rem; }
.vq-manual summary { cursor: pointer; color: var(--teal-ink); }
.vq-manual .vq-inline { margin-top: .6rem; max-width: 28rem; }

/* 按钮 */
.vq-btn { display: inline-flex; align-items: center; justify-content: center; height: 2.75rem; padding: 0 1.1rem; border-radius: .625rem; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; white-space: nowrap; border: 1px solid transparent; }
.vq-btn-gold { background: var(--gold); color: var(--navy); }
.vq-btn-gold:hover { background: #d6b76c; }
.vq-btn-line { border-color: rgba(247,245,241,.45); color: var(--paper); background: transparent; }
.vq-btn-line:hover { background: rgba(255,255,255,.08); }
.vq-btn-ghost { border-color: #cfc6b6; background: #fff; color: var(--navy); flex: none; }

/* 结果区 */
.vq-result-in { background: var(--navy); color: var(--paper); padding: 1.5rem; }
.vq-eyebrow-dark { margin-bottom: 1rem; }
.vq-big { font-family: var(--font-heading); font-size: 2rem; line-height: 1.15; margin: .2rem 0 0; font-variant-numeric: tabular-nums; }
.vq-big small { font-size: .9rem; color: rgba(247,245,241,.7); margin-left: .25rem; }
.vq-label { font-size: .8rem; color: rgba(247,245,241,.7); margin: 1rem 0 0; }
.vq-label:first-child { margin-top: 0; }
.vq-spec { margin: .35rem 0 0; font-size: .9rem; line-height: 1.55; }
.vq-table { width: 100%; border-collapse: collapse; margin-top: 1.1rem; font-size: .85rem; font-variant-numeric: tabular-nums; }
.vq-table td { padding: .42rem 0; border-top: 1px solid rgba(247,245,241,.14); vertical-align: top; }
.vq-table td:last-child { text-align: right; white-space: nowrap; padding-left: .75rem; }
.vq-table tr.vq-total td { border-top: 1px solid rgba(196,163,90,.7); font-weight: 600; color: #fff; }
.vq-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.vq-note-dark { color: var(--gold); min-height: 1rem; }
.vq-fine { margin: .9rem 0 0; font-size: .75rem; line-height: 1.6; color: rgba(247,245,241,.62); }
.vq-warn { color: #f0c27a; font-size: .85rem; line-height: 1.6; }

/* 结果区：小计行、按钮 */
.vq-table tr.vq-sub-row td { color: #fff; font-weight: 600; border-top: 1px dashed rgba(247,245,241,.35); }
.vq-actions { display: grid; grid-template-columns: 1fr 1fr; }
.vq-actions .vq-btn { width: 100%; padding: 0 .6rem; }
.vq-actions-sub { display: flex; gap: 1.25rem; margin-top: .8rem; }
.vq-linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: .85rem; color: var(--teal-ink); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.vq-linkbtn-dark { color: var(--paper); text-decoration-color: var(--gold); }
.vq-linkbtn-dark:hover { color: var(--gold); }
.vq-btn-sm { height: 2.1rem; font-size: .8rem; padding: 0 .8rem; }

/* 历史报价 */
.vq-history { border-color: var(--gold); background: #fffaf0; }
.vq-card h2 small { font-family: var(--font-geist-sans), "PingFang SC", "Microsoft YaHei", sans-serif; font-size: .8rem; color: var(--muted); font-weight: 400; margin-left: .25rem; }
.vq-hist { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 0; border-top: 1px solid var(--line); }
.vq-hist:first-child { border-top: 0; padding-top: 0; }
.vq-hist b { font-weight: 600; }
.vq-hist small { display: block; font-size: .78rem; color: var(--muted); margin-top: .15rem; }
.vq-hist-act { display: flex; align-items: center; gap: .9rem; flex: none; }

/* 方案对比 */
.vq-layout { padding-bottom: 1.5rem; }
.vq-compare-wrap { padding-bottom: 4rem; }
.vq-compare-wrap .vq-card h2 { flex-wrap: wrap; }
.vq-cmp-spec { margin: -.4rem 0 1rem; }
.vq-cmp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.vq-cmp { width: 100%; min-width: 46rem; border-collapse: collapse; font-size: .875rem; font-variant-numeric: tabular-nums; }
.vq-cmp th { text-align: right; font-weight: 500; font-size: .78rem; color: var(--muted); padding: .6rem .7rem; border-bottom: 2px solid var(--navy); white-space: nowrap; vertical-align: bottom; }
.vq-cmp th:first-child, .vq-cmp td:first-child { text-align: left; }
.vq-cmp th small { font-size: .7rem; }
.vq-cmp td { text-align: right; padding: .65rem .7rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.vq-cmp td small { display: block; font-size: .72rem; color: var(--muted); }
.vq-cmp-row { cursor: pointer; }
.vq-cmp-row:hover td { background: #f3efe7; }
.vq-cmp-row:focus { outline: 2px solid var(--teal); outline-offset: -2px; }
.vq-cmp-row.is-sel td { background: #eef6f4; }
.vq-cmp-row.is-sel td:first-child { box-shadow: inset 3px 0 0 var(--teal); }
.vq-cmp-grp td { text-align: left; font-size: .78rem; color: var(--teal-ink); font-weight: 600; padding-top: 1rem; background: transparent !important; }
.vq-cmp-save { color: var(--teal-ink); font-weight: 600; }
.vq-cmp-save small { font-weight: 400; color: var(--teal-ink) !important; }
.vq-best { display: inline-block; margin-left: .45rem; font-size: .68rem; font-weight: 600; background: var(--gold); color: var(--navy); border-radius: .25rem; padding: .05rem .35rem; vertical-align: 1px; }

/* 方案对比（转置：列 = 付费方式，行 = 费用项目） */
.vq-cmpT { min-width: 40rem; table-layout: fixed; }
.vq-cmpT th:first-child, .vq-cmpT td:first-child { width: 22%; text-align: left; color: var(--muted); font-weight: 400; }
.vq-cmpT td:first-child small { display: block; font-size: .72rem; }
.vq-cmpT thead tr.vq-cmp-grp th { border-bottom: 0; padding-bottom: .1rem; text-align: center; color: var(--teal-ink); font-size: .8rem; font-weight: 600; }
.vq-cmpT thead tr:last-child th { font-size: .9rem; color: var(--navy); font-weight: 600; cursor: pointer; }
.vq-cmpT td.vq-col { cursor: pointer; }
.vq-cmpT .is-od { background: #f3efe7; }
.vq-cmpT .is-best { background: #fbf3e0; }
.vq-cmpT .is-sel { background: #e6f2ef; }
.vq-cmpT thead th.is-sel { box-shadow: inset 0 3px 0 var(--teal); }
.vq-cmpT tr.vq-cmp-tot td { font-weight: 600; border-top: 1.5px solid var(--navy); }
.vq-cmpT tr.vq-cmp-sv td:not(:first-child) { color: var(--teal-ink); font-weight: 600; }
.vq-cmpT th:focus { outline: 2px solid var(--teal); outline-offset: -2px; }

/* 导出前的企业邮箱弹窗 */
.vq-gate { position: fixed; inset: 0; z-index: 60; background: rgba(11,42,74,.55); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.vq-gate-box { position: relative; background: var(--card); color: var(--navy); width: 100%; max-width: 27rem; border-radius: .75rem; padding: 1.6rem 1.5rem 1.4rem; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.vq-gate-x { position: absolute; top: .6rem; right: .75rem; background: none; border: 0; font-size: 1.5rem; line-height: 1; color: var(--muted); cursor: pointer; padding: .25rem; }
.vq-gate-kicker { margin: 0; font-size: .75rem; letter-spacing: .14em; color: #9a7b33; }
.vq-gate h2 { margin: .4rem 0 1.1rem; font-family: var(--font-heading); font-size: 1.35rem; font-weight: 400; }
.vq-gate-field input { width: 100%; }
.vq-gate-hint { margin: .45rem 0 0; font-size: .78rem; color: var(--muted); }
.vq-gate-fmt { margin-top: 1rem; }
.vq-gate-fmt label { display: inline-flex; align-items: center; gap: .45rem; margin-right: 1.5rem; font-size: .95rem; cursor: pointer; }
.vq-gate-fmt input { accent-color: var(--teal); width: 1rem; height: 1rem; }
.vq-gate-err { min-height: 1.2rem; margin: .8rem 0 0; font-size: .85rem; color: #b4432f; }
.vq-gate-act { display: flex; gap: .6rem; margin-top: .6rem; }
.vq-gate-act .vq-btn-gold { flex: 1; }

/* 导出 PDF：打印版式 */
#vq-print { display: none; }
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  body.vq-body > *:not(#vq-print) { display: none !important; }
  #vq-print { display: block; color: #0b2a4a; font-size: 10.5pt; line-height: 1.5; }
  #vq-print * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .vp-head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid #0b2a4a; padding-bottom: 8pt; margin-bottom: 4pt; }
  .vp-brand { display: flex; align-items: center; gap: 6pt; }
  .vp-brand svg { width: 26pt; height: 26pt; }
  .vp-brand span { font-family: var(--font-heading); font-size: 18pt; }
  .vp-title { text-align: right; }
  .vp-title h1 { margin: 0; font-family: var(--font-heading); font-size: 17pt; font-weight: 400; }
  .vp-title p { margin: 2pt 0 0; font-size: 9pt; color: #3d556e; }
  #vq-print h2 { font-size: 11.5pt; margin: 14pt 0 6pt; color: #146158; }
  .vp-kv, .vp-tb { width: 100%; border-collapse: collapse; }
  .vp-kv th { width: 24%; text-align: left; font-weight: 500; color: #3d556e; padding: 3pt 0; vertical-align: top; }
  .vp-kv td { padding: 3pt 0; }
  .vp-tb th { text-align: right; font-weight: 600; font-size: 9pt; background: #0b2a4a; color: #f7f5f1; padding: 4pt 6pt; }
  .vp-tb th:first-child, .vp-tb td:first-child { text-align: left; }
  .vp-tb td { text-align: right; padding: 4pt 6pt; border-bottom: 0.5pt solid #d8d0c2; }
  .vp-tb tr.vp-strong td { font-weight: 700; background: #f3efe7; }
  .vp-tb tr.vp-sel td { background: #e6f2ef; font-weight: 600; }
  .vp-cmp { font-size: 9pt; }
  .vp-notes { margin-top: 14pt; padding-top: 8pt; border-top: 0.5pt solid #d8d0c2; font-size: 8.5pt; color: #3d556e; }
  .vp-notes p { margin: 2pt 0; word-break: break-all; }
}

/* 页脚 */
.vq-footer { background: var(--navy); color: var(--paper); padding: 3rem 0 3.5rem; }
.vq-footer-brand { font-family: var(--font-heading); font-size: 1.5rem; margin: 0; }
.vq-footer-text { margin: .75rem 0 0; font-size: .875rem; color: rgba(247,245,241,.72); }
.vq-footer-links { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin-top: 1.5rem; font-size: .875rem; }
.vq-footer-links a { color: var(--paper); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.vq-footer-links a:hover { color: var(--gold); }
.vq-footer-links { align-items: baseline; }
.vq-or { color: rgba(247,245,241,.72); }
.vq-footer-copy { margin: 1.5rem 0 0; font-size: .75rem; color: rgba(247,245,241,.6); }
.vq-footer-copy a { color: rgba(247,245,241,.6); text-decoration: underline; text-underline-offset: 3px; }
.vq-footer-copy a:hover { color: var(--gold); }
.vq-sep { margin: 0 .6rem; }

/* 页脚：微信公众号二维码（正方形） */
.vq-footer-in { position: relative; }
.vy-mpqr { box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.35rem; width: var(--vy-qr, 168px); height: var(--vy-qr, 168px); background: #fffdfb; border-radius: 0.5rem; padding: 0.5rem; color: #0b2a4a; text-align: center;}
.vy-mpqr img { display: block; width: 129px; height: 129px;}
.vy-mpqr b { font-size: 0.85rem; font-weight: 600; line-height: 1.2; letter-spacing: 0.04em;}
.vy-mpqr small { display: none;}
.vy-mpqr { margin-top: 1.5rem; }
@media (min-width: 48rem) { .vy-mpqr { position: absolute; top: var(--vy-qr-top, 0); right: 2rem; margin-top: 0; } }
