﻿/* Quote calculator — scoped; colors follow main-site theme tokens (--c-*) */
.calculator-page {
      --ink: var(--c-text);
      /* Soft/muted text must stay readable on dark surfaces (avoid #999 fatigue) */
      --ink-soft: color-mix(in srgb, var(--c-text) 86%, transparent);
      --muted: color-mix(in srgb, var(--c-text) 68%, #9aa0a8);
      --line: color-mix(in srgb, var(--c-text) 18%, transparent);
      --surface: var(--c-surface);
      --surface-strong: color-mix(in srgb, var(--c-surface) 55%, #1e2128);
      --accent: var(--c-accent);
      /* Prefer white for dense body/price text; yellow only for short accents */
      --accent-deep: color-mix(in srgb, var(--c-accent) 72%, #fff);
      --accent-soft: var(--c-accent-soft);
      --accent-ink: var(--c-accent-ink);
      --warm: color-mix(in srgb, var(--c-accent) 78%, #fff);
      --ok: #8fd4a8;
      --panel-fill: color-mix(in srgb, var(--c-accent) 7%, var(--c-surface));
      --panel-fill-strong: color-mix(in srgb, var(--c-accent) 12%, var(--c-surface));
      --radius: 14px;
      --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
      --font-display: "Sora", "Noto Sans SC", sans-serif;
      --font-body: "Noto Sans SC", sans-serif;
    }
.calculator-page,
.calculator-page * {
  box-sizing: border-box;
}

    .calculator-page {
      font-family: var(--font-body);
      color: var(--ink);
      min-height: 100vh;
      background:
        radial-gradient(ellipse 80% 50% at 12% -8%, var(--c-accent-soft), transparent 55%),
        radial-gradient(ellipse 60% 40% at 92% 8%, color-mix(in srgb, var(--c-accent) 8%, transparent), transparent 50%),
        var(--c-bg);
      line-height: 1.55;
    }

    /* 宽度跟随主站 .wp：max-width:1620px; width:90% */
    .calculator-page .calc-wrap {
      max-width: 1620px;
      width: 90%;
      margin: 0 auto;
      padding: 36px 0 64px;
      box-sizing: border-box;
    }

    @media only screen and (max-width: 1199px) {
      .calculator-page .calc-wrap {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
      }
    }

    .hero {
      margin-bottom: 28px;
      animation: rise 0.55s ease both;
    }

    .hero-top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
      margin-bottom: 8px;
    }

    .hero-brand {
      font-family: var(--font-display);
      font-size: clamp(1.75rem, 3.5vw, 2.35rem);
      font-weight: 700;
      letter-spacing: -0.03em;
      color: var(--ink);
    }

    .hero-brand span { color: var(--accent); }

    .hero p {
      color: var(--ink-soft);
      max-width: 36em;
      font-size: 0.98rem;
    }

    .btn-letter {
      position: relative;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 9px 15px 9px 12px;
      border-radius: 10px;
      border: 1px solid color-mix(in srgb, var(--c-accent) 36%, transparent);
      background: var(--surface-strong);
      color: var(--warm);
      font-weight: 600;
      font-size: 0.84rem;
      letter-spacing: 0.01em;
      box-shadow: 0 6px 18px var(--accent-soft);
      overflow: hidden;
      transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
    }

    .btn-letter::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(110deg, transparent 35%, color-mix(in srgb, var(--c-accent) 22%, transparent) 50%, transparent 65%);
      transform: translateX(-130%);
      transition: transform 0.55s ease;
      pointer-events: none;
    }

    .btn-letter:hover {
      transform: translateY(-1px);
      border-color: color-mix(in srgb, var(--c-accent) 55%, transparent);
      background: var(--panel-fill);
      box-shadow: 0 10px 24px var(--accent-soft);
    }

    .btn-letter:hover::before {
      transform: translateX(130%);
    }

    .btn-letter:active { transform: translateY(0) scale(0.985); }

    .btn-letter:focus-visible {
      outline: none;
      box-shadow: 0 0 0 3px var(--accent-soft);
    }

    .btn-letter-icon {
      width: 28px;
      height: 28px;
      flex-shrink: 0;
      display: grid;
      place-items: center;
      border-radius: 8px;
      background: var(--accent-soft);
      color: var(--warm);
    }

    .btn-letter-icon svg {
      width: 15px;
      height: 15px;
      display: block;
    }

    .letter-modal {
      width: min(720px, 100%);
      max-height: min(86vh, 720px);
      display: flex;
      flex-direction: column;
      padding: 0;
      overflow: hidden;
      animation: letterOpen 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
      background: #fff;
      color: #1a1a1a;
    }

    @keyframes letterOpen {
      from { opacity: 0; transform: translateY(18px) scale(0.96); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }

    .letter-modal-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 18px 22px 14px;
      border-bottom: 1px solid rgba(0, 0, 0, 0.1);
      flex-shrink: 0;
    }

    .letter-modal-head h3 {
      margin: 0;
      font-family: var(--font-display);
      font-size: 1.12rem;
      letter-spacing: 0.02em;
      color: #1a1a1a;
    }

    .letter-close {
      width: 34px;
      height: 34px;
      border-radius: 10px;
      background: transparent;
      border: 1px solid rgba(0, 0, 0, 0.14);
      color: #666;
      font-size: 1.15rem;
      line-height: 1;
      padding: 0;
      display: grid;
      place-items: center;
      transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
    }

    .letter-close:hover {
      border-color: var(--accent);
      color: #1a1a1a;
      background: color-mix(in srgb, var(--c-accent) 22%, #fff);
      transform: rotate(90deg);
    }

    .letter-body {
      padding: 18px 22px 8px;
      overflow-y: auto;
      flex: 1;
    }

    .letter-salutation {
      font-size: 0.95rem;
      font-weight: 600;
      color: #1a1a1a;
      margin-bottom: 14px;
    }

    .letter-body p {
      font-size: 0.92rem;
      color: #333;
      margin: 0 0 16px;
      line-height: 1.8;
      text-align: left;
    }

    .letter-body p:last-of-type {
      margin-bottom: 8px;
    }

    .letter-body strong {
      color: #111;
      font-weight: 700;
    }

    .letter-alert {
      display: inline;
      padding: 1px 6px;
      margin: 0 1px;
      border-radius: 4px;
      background: color-mix(in srgb, var(--c-accent) 28%, #fff);
      color: #1a1a1a;
      font-weight: 700;
      box-decoration-break: clone;
      -webkit-box-decoration-break: clone;
    }

    .letter-sign {
      margin-top: 6px;
      text-align: right;
      font-weight: 600;
      color: #1a1a1a;
    }

    .letter-modal-foot {
      padding: 12px 22px 18px;
      flex-shrink: 0;
      border-top: 1px solid rgba(0, 0, 0, 0.1);
    }

    .letter-modal-foot .btn-primary {
      width: 100%;
    }

    .layout {
      display: grid;
      grid-template-columns: 1.32fr 0.68fr;
      gap: 22px;
      align-items: start;
    }

    @media (max-width: 920px) {
      .layout { grid-template-columns: 1fr; }
      .sticky { position: static !important; }
    }

    .panel {
      background: var(--surface);
      backdrop-filter: blur(12px);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 22px 22px 18px;
      animation: rise 0.6s ease both;
    }

    .panel + .panel { margin-top: 14px; }

    .panel h2 {
      font-family: var(--font-display);
      font-size: 0.95rem;
      font-weight: 600;
      letter-spacing: 0.02em;
      text-transform: uppercase;
      color: var(--ink);
      margin-bottom: 14px;
    }

    .options {
      display: grid;
      gap: 10px;
    }

    .options.cols-3 {
      grid-template-columns: repeat(3, 1fr);
    }

    .options.cols-2 {
      grid-template-columns: repeat(2, 1fr);
    }

    @media (max-width: 900px) {
      .options.cols-3 { grid-template-columns: 1fr; }
    }

    @media (max-width: 640px) {
      .options.cols-3 { grid-template-columns: 1fr; }
      .options.cols-2 { grid-template-columns: 1fr; }
    }

    .mode-config {
      display: grid;
      gap: 10px;
    }

    .mode-config .config-row {
      gap: 6px;
    }

    .mode-config .choice-box {
      padding: 8px 12px;
      border-radius: 8px;
    }

    .mode-config .choice-title {
      font-size: 0.84rem;
      margin-bottom: 0;
    }

    .mode-config .choice-desc {
      font-size: 0.72rem;
      line-height: 1.3;
    }

    .mode-config .choice:hover .choice-box {
      transform: none;
      box-shadow: none;
    }

    .mode-config .choice input:checked + .choice-box {
      background: var(--panel-fill);
      box-shadow: 0 0 0 2px var(--accent-soft);
    }

    .config-row {
      display: grid;
      gap: 8px;
      transition: opacity 0.2s;
    }

    .config-label {
      font-size: 0.8rem;
      font-weight: 600;
      color: var(--ink-soft);
      letter-spacing: 0.02em;
    }

    .choice {
      position: relative;
      cursor: pointer;
    }

    .choice input {
      position: absolute;
      opacity: 0;
      pointer-events: none;
    }

    .choice-box {
      display: block;
      padding: 14px 14px 12px;
      border-radius: 12px;
      border: 1px solid var(--line);
      background: var(--surface-strong);
      transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
    }

    .choice:hover .choice-box {
      border-color: color-mix(in srgb, var(--c-accent) 32%, transparent);
      transform: translateY(-1px);
      box-shadow: 0 8px 20px rgba(26, 35, 50, 0.05);
    }

    .choice input:checked + .choice-box {
      border-color: var(--accent);
      background: linear-gradient(180deg, var(--panel-fill), var(--surface-strong));
      box-shadow: 0 0 0 3px var(--accent-soft);
    }

    .choice input:focus-visible + .choice-box {
      box-shadow: 0 0 0 3px var(--accent-soft);
    }

    .choice-title {
      font-weight: 600;
      font-size: 0.95rem;
      margin-bottom: 2px;
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
    }

    .choice-badge {
      display: inline-block;
      font-family: var(--font-display);
      font-size: 0.62rem;
      font-weight: 600;
      letter-spacing: 0.04em;
      padding: 2px 7px;
      border-radius: 999px;
      vertical-align: middle;
    }

    .choice-badge.domestic {
      background: var(--accent);
      color: var(--accent-ink);
    }

    .choice-badge.trade {
      background: color-mix(in srgb, var(--c-accent) 22%, transparent);
      color: var(--warm);
    }

    .choice-badge.mini {
      background: color-mix(in srgb, var(--c-text) 12%, transparent);
      color: var(--ink-soft);
    }

    .choice-desc {
      font-size: 0.78rem;
      color: var(--ink-soft);
    }

    .choice-includes {
      margin: 8px 0 0;
      padding-left: 0;
      list-style: none;
      display: grid;
      gap: 4px;
    }

    .choice-includes li {
      position: relative;
      font-size: 0.72rem;
      color: var(--ink-soft);
      line-height: 1.4;
      padding-left: 1em;
    }

    .choice-includes li::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0.45em;
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: var(--accent);
    }

    .type-diff {
      margin-top: 12px;
      padding: 14px 14px 12px;
      border-radius: 12px;
      border: 1px dashed color-mix(in srgb, var(--c-accent) 32%, transparent);
      background: var(--panel-fill);
      display: none;
      max-width: 100%;
      overflow: hidden;
    }

    .type-diff.show { display: block; }

    .type-diff-head {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 10px;
      flex-wrap: wrap;
      margin-bottom: 10px;
    }

    .type-diff-head strong {
      font-family: var(--font-display);
      font-size: 0.84rem;
      font-weight: 600;
      color: var(--ink);
    }

    .type-diff-head span {
      font-size: 0.76rem;
      color: var(--ink-soft);
    }

    .type-diff-table-wrap {
      width: 100%;
      max-width: 100%;
      overflow: hidden;
    }

    .type-diff-table {
      width: 100%;
      table-layout: fixed;
      border-collapse: collapse;
      font-size: 0.76rem;
    }

    .type-diff-table th,
    .type-diff-table td {
      padding: 7px 8px;
      text-align: left;
      border-bottom: 1px solid var(--line);
      vertical-align: top;
      word-break: break-word;
      overflow-wrap: anywhere;
    }

    .type-diff-table th {
      color: var(--ink-soft);
      font-weight: 500;
      width: 22%;
    }

    .type-diff-table td.hl {
      color: var(--warm);
      font-weight: 600;
      background: color-mix(in srgb, var(--c-accent) 10%, transparent);
    }

    .type-diff-table tr:last-child th,
    .type-diff-table tr:last-child td {
      border-bottom: none;
    }

    @media (max-width: 640px) {
      .type-diff {
        padding: 12px 10px 10px;
      }

      .type-diff-table {
        font-size: 0.68rem;
      }

      .type-diff-table th,
      .type-diff-table td {
        padding: 6px 4px;
      }

      .type-diff-table th {
        width: 18%;
      }
    }

    .feature-group-title {
      font-size: 0.78rem;
      font-weight: 600;
      color: var(--ink-soft);
      margin: 6px 0 2px;
      padding-top: 4px;
    }

    .feature-group-title:first-child {
      margin-top: 0;
      padding-top: 0;
    }

    .feature-group-title span {
      display: inline-block;
      margin-left: 6px;
      font-weight: 400;
      color: var(--ink-soft);
      font-size: 0.74rem;
    }

    .include-note {
      margin-top: 10px;
      padding: 10px 12px;
      border-radius: 10px;
      background: var(--panel-fill);
      border: 1px solid var(--accent-soft);
    }

    .include-note h4 {
      font-size: 0.78rem;
      font-weight: 600;
      color: var(--warm);
      margin-bottom: 6px;
    }

    .include-note ul {
      margin: 0;
      padding-left: 0;
      list-style: none;
      font-size: 0.74rem;
      color: var(--ink-soft);
      line-height: 1.55;
    }

    .include-note li {
      position: relative;
      margin-bottom: 4px;
      padding-left: 1em;
    }

    .include-note li::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0.5em;
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: var(--accent);
    }

    .pages-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    @media (max-width: 520px) {
      .pages-grid { grid-template-columns: 1fr; }
    }

    .field label {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      font-size: 0.86rem;
      font-weight: 500;
      margin-bottom: 6px;
    }

    .field label .unit {
      color: var(--ink-soft);
      font-weight: 400;
      font-size: 0.78rem;
    }

    .field label .unit .eff {
      color: var(--warm);
      font-weight: 600;
    }

    .field label .unit .base-price {
      text-decoration: line-through;
      opacity: 0.55;
      margin-right: 4px;
    }

    .section-hint {
      font-size: 0.8rem;
      color: var(--ink-soft);
      margin: -6px 0 12px;
      line-height: 1.5;
    }

    .field input[type="number"] {
      width: 100%;
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 10px 12px;
      font: inherit;
      font-family: var(--font-display);
      font-size: 1rem;
      background: var(--surface-strong);
      color: var(--ink);
      outline: none;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .field input[type="number"]:focus {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px var(--accent-soft);
    }

    .field-label-left {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .help-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 18px;
      height: 18px;
      border-radius: 50%;
      border: 1px solid color-mix(in srgb, var(--c-accent) 45%, transparent);
      background: var(--accent-soft);
      color: var(--warm);
      font-family: var(--font-display);
      font-size: 0.72rem;
      font-weight: 700;
      line-height: 1;
      cursor: pointer;
      padding: 0;
      flex-shrink: 0;
      transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
    }

    .help-btn:hover {
      background: var(--accent);
      border-color: var(--accent);
      color: var(--accent-ink);
      transform: scale(1.06);
    }

    .help-btn:focus-visible {
      outline: none;
      box-shadow: 0 0 0 3px var(--accent-soft);
    }

    .modal-mask {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.55);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 1000;
      padding: clamp(12px, 3.5vw, 28px);
    }

    .modal-mask.open { display: flex; animation: rise 0.25s ease both; }

    .modal {
      width: min(420px, 100%);
      background: #fff;
      color: #1a1a1a;
      border-radius: 14px;
      border: 1px solid rgba(0, 0, 0, 0.08);
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
      padding: clamp(14px, 3.2vw, 22px) clamp(14px, 3.2vw, 22px) clamp(12px, 2.8vw, 18px);
    }

    .modal.help-modal {
      width: min(520px, 100%);
      display: flex;
      flex-direction: column;
      gap: 0;
      max-height: min(86vh, 640px);
    }

    .modal.letter-modal {
      width: min(760px, 100%);
    }

    .modal h3 {
      font-family: var(--font-display);
      font-size: 1.08rem;
      font-weight: 700;
      letter-spacing: 0.01em;
      line-height: 1.35;
      color: #1a1a1a;
      margin: 0 0 14px;
    }

    .modal p {
      font-size: 0.9rem;
      color: #333;
      margin-bottom: 10px;
      line-height: 1.65;
    }

    .help-modal-body {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin-bottom: 18px;
      overflow-y: auto;
      min-height: 0;
      flex: 1;
      padding-right: 2px;
    }

    .help-modal-intro {
      margin: 0 !important;
      font-size: 0.9rem;
      line-height: 1.7;
      color: #333;
    }

    .help-modal-intro[hidden],
    .help-modal-list[hidden],
    .help-modal-tip[hidden] {
      display: none !important;
    }

    .modal ul,
    .help-modal-list,
    .calculator-page .quote-includes {
      margin: 0;
      padding-left: 0;
      list-style: none;
      color: #333;
      font-size: 0.88rem;
      line-height: 1.65;
    }

    .calculator-page .quote-includes {
      color: var(--ink-soft);
    }

    .modal li,
    .help-modal-list li,
    .calculator-page .quote-includes li {
      position: relative;
      margin: 0 0 8px;
      padding-left: 1.05em;
    }

    .modal li:last-child,
    .help-modal-list li:last-child,
    .calculator-page .quote-includes li:last-child {
      margin-bottom: 0;
    }

    .modal li::before,
    .help-modal-list li::before,
    .calculator-page .quote-includes li::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0.55em;
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--accent);
    }

    .help-modal-tip {
      margin: 0 !important;
      padding: 10px 12px;
      border-radius: 10px;
      border-left: 3px solid var(--accent);
      background: color-mix(in srgb, var(--c-accent) 14%, #fff);
      color: #1a1a1a !important;
      font-size: 0.84rem !important;
      line-height: 1.6 !important;
    }

    .modal .btn-primary { width: 100%; flex-shrink: 0; }

    .modal .btn-ghost {
      background: #f4f4f4;
      border-color: rgba(0, 0, 0, 0.12);
      color: #1a1a1a;
      box-shadow: none;
    }

    .modal .btn-ghost:hover {
      border-color: color-mix(in srgb, var(--c-accent) 55%, transparent);
      color: #1a1a1a;
      background: color-mix(in srgb, var(--c-accent) 18%, #fff);
      box-shadow: none;
    }

    .waf-warn-modal .modal-actions {
      margin-top: 0;
      flex-shrink: 0;
    }

    .modal-actions {
      display: grid;
      gap: 8px;
      margin-top: 4px;
    }

    .modal-actions .btn-primary,
    .modal-actions .btn-ghost {
      width: 100%;
    }

    @media (max-width: 640px) {
      .modal {
        border-radius: 12px;
      }

      .letter-modal-head {
        padding: 14px 14px 12px;
      }

      .letter-body {
        padding: 14px 14px 6px;
      }

      .letter-modal-foot {
        padding: 10px 14px 14px;
      }

      .letter-modal-head h3 {
        font-size: 1rem;
      }

      .letter-body p {
        font-size: 0.88rem;
        line-height: 1.7;
      }
    }

    .checks {
      display: grid;
      gap: 8px;
    }

    .feature-item {
      border-radius: 10px;
      border: 1px solid var(--line);
      background: var(--surface-strong);
      transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
      overflow: hidden;
    }

    .feature-item:hover {
      border-color: color-mix(in srgb, var(--c-accent) 32%, transparent);
      box-shadow: 0 4px 14px rgba(26, 35, 50, 0.04);
    }

    .feature-item:has(input[data-feature]:checked) {
      border-color: var(--accent);
      background: linear-gradient(180deg, var(--panel-fill), var(--surface-strong));
      box-shadow: 0 0 0 2px var(--accent-soft);
    }

    .feature-item .check {
      border: none;
      background: transparent;
      border-radius: 0;
    }

    .feature-item .check:hover { border-color: transparent; }

    .feature-item .check:has(input:checked) {
      border-color: transparent;
      background: transparent;
    }

    .feature-qty {
      display: none;
      align-items: center;
      flex-wrap: wrap;
      gap: 8px 10px;
      padding: 0 12px 11px 38px;
      font-size: 0.78rem;
      color: var(--ink-soft);
    }

    .feature-item:has(input[data-feature]:checked) .feature-qty {
      display: flex;
    }

    .feature-qty-label {
      font-weight: 550;
      color: var(--ink);
    }

    .feature-qty input[type="number"] {
      width: 72px;
      padding: 6px 8px;
      border-radius: 8px;
      border: 1.5px solid var(--line);
      background: var(--surface-strong);
      font-family: var(--font-body);
      font-size: 0.88rem;
      color: var(--ink);
    }

    .feature-qty input[type="number"]:focus {
      outline: none;
      border-color: var(--accent);
      box-shadow: 0 0 0 3px var(--accent-soft);
    }

    .feature-qty-hint {
      color: var(--ink-soft);
      font-size: 0.74rem;
    }

    .check {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      padding: 11px 12px;
      border-radius: 10px;
      border: 1px solid var(--line);
      background: var(--surface-strong);
      cursor: pointer;
      transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    }

    .check:hover {
      border-color: color-mix(in srgb, var(--c-accent) 32%, transparent);
      box-shadow: 0 4px 14px rgba(26, 35, 50, 0.04);
    }

    .check:has(input:checked) {
      border-color: var(--accent);
      background: linear-gradient(180deg, var(--panel-fill), var(--surface-strong));
      box-shadow: 0 0 0 2px var(--accent-soft);
    }

    .check:has(input:focus-visible) {
      box-shadow: 0 0 0 3px var(--accent-soft);
    }

    .check input {
      margin-top: 3px;
      accent-color: var(--accent);
      width: 16px;
      height: 16px;
      flex-shrink: 0;
    }

    .check-body { flex: 1; min-width: 0; }

    .check-name {
      font-weight: 550;
      font-size: 0.9rem;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
    }

    .check-meta {
      font-size: 0.78rem;
      color: var(--ink-soft);
      margin-top: 2px;
      line-height: 1.5;
    }

    .check-price {
      flex-shrink: 0;
      text-align: right;
      font-family: var(--font-display);
      font-size: 0.82rem;
      font-weight: 600;
      color: var(--warm);
      line-height: 1.3;
      min-width: 5.5em;
    }

    .check-price .base-price {
      display: block;
      font-size: 0.7rem;
      font-weight: 400;
      text-decoration: line-through;
      opacity: 0.55;
      color: var(--muted);
    }

    .sticky {
      position: sticky;
      top: 18px;
      animation: rise 0.7s ease 0.08s both;
    }

    .result-head {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      gap: 12px;
      margin-bottom: 16px;
    }

    .result-head-main {
      display: flex;
      flex-direction: column;
      gap: 4px;
      min-width: 0;
    }

    .result-head h2 {
      margin-bottom: 0;
      color: var(--ink);
      font-size: 1.05rem;
      text-transform: none;
      letter-spacing: -0.01em;
    }

    .btn-reset {
      flex-shrink: 0;
      align-self: flex-start;
      padding: 6px 11px;
      font-size: 0.74rem;
      font-weight: 600;
      letter-spacing: 0.01em;
      border-radius: 8px;
      background: var(--surface);
      border: 1px solid var(--line);
      color: var(--ink-soft);
      transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    }

    .btn-reset:hover {
      border-color: color-mix(in srgb, var(--c-accent) 40%, transparent);
      color: var(--warm);
      background: var(--accent-soft);
    }

    .btn-reset:focus-visible {
      outline: none;
      box-shadow: 0 0 0 3px var(--accent-soft);
    }

    .valid {
      font-size: 0.75rem;
      color: var(--muted);
    }

    .modes {
      display: grid;
      gap: 8px;
      margin-bottom: 16px;
    }

    .modes-compare-hint {
      margin: -4px 0 8px;
      font-size: 0.76rem;
      color: var(--ink-soft);
      line-height: 1.45;
    }

    .mode-card {
      border-radius: 12px;
      border: 1px solid var(--line);
      background: var(--surface-strong);
      padding: 0;
      overflow: hidden;
      transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
      cursor: pointer;
      text-align: left;
      width: 100%;
      font: inherit;
      color: inherit;
    }

    .mode-card:hover {
      border-color: color-mix(in srgb, var(--c-accent) 40%, transparent);
      box-shadow: 0 8px 22px rgba(26, 35, 50, 0.06);
    }

    .mode-card.active {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px var(--accent-soft), 0 10px 24px var(--accent-soft);
      transform: translateY(-1px);
      cursor: default;
    }

    .mode-card:focus-visible {
      outline: none;
      box-shadow: 0 0 0 3px var(--accent-soft);
    }

    .mode-card:not(.active) .mode-title-bar {
      background: color-mix(in srgb, var(--c-text) 14%, var(--c-surface-2));
      color: var(--ink-soft);
    }

    .mode-card:not(.active) .mode-price {
      font-size: 1.15rem;
    }

    .mode-card:not(.active) .mode-body {
      padding: 10px 12px;
    }

    .mode-title-bar {
      display: block;
      width: 100%;
      padding: 10px 14px;
      background: linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--c-accent) 85%, #e6d100) 100%);
      color: var(--accent-ink);
      font-weight: 700;
      font-size: 0.86rem;
      line-height: 1.45;
      letter-spacing: 0.01em;
    }

    .mode-body {
      padding: 12px 14px 12px;
    }

    .mode-top {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 8px;
      margin-bottom: 6px;
    }

    .mode-tag {
      font-size: 0.68rem;
      padding: 2px 7px;
      border-radius: 999px;
      background: var(--accent);
      color: var(--accent-ink);
      font-weight: 600;
      white-space: nowrap;
    }

    .mode-price {
      font-family: var(--font-display);
      font-size: 1.45rem;
      font-weight: 700;
      letter-spacing: -0.03em;
      color: var(--ink);
      line-height: 1.1;
    }

    .mode-price small {
      font-size: 0.75rem;
      font-weight: 500;
      color: var(--muted);
      margin-left: 2px;
    }

    .mode-meta {
      margin-top: 6px;
      font-size: 0.78rem;
      color: var(--ink-soft);
      display: flex;
      flex-wrap: wrap;
      gap: 6px 12px;
    }

    .mode-meta .cycle-note {
      flex-basis: 100%;
      color: var(--ink-soft);
      opacity: 0.92;
    }

    .breakdown {
      border-top: 1px solid var(--line);
      padding-top: 12px;
      margin-bottom: 14px;
    }

    .breakdown h3 {
      font-size: 0.82rem;
      font-weight: 600;
      color: var(--ink-soft);
      margin-bottom: 8px;
    }

    .row {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      font-size: 0.82rem;
      padding: 4px 0;
      color: var(--ink-soft);
    }

    .row strong {
      font-family: var(--font-display);
      font-weight: 600;
      color: var(--ink);
      white-space: nowrap;
    }

    .row.total {
      margin-top: 6px;
      padding-top: 8px;
      border-top: 1px dashed var(--line);
      font-weight: 600;
      color: var(--ink);
    }

    .row.total strong {
      color: var(--warm);
      font-size: 1.05rem;
    }

    .row.subtotal {
      margin-top: 4px;
      padding-top: 6px;
      border-top: 1px dashed var(--line);
      font-weight: 600;
      color: var(--ink);
    }

    .row.total.soft,
    .row.total.soft strong {
      color: var(--muted);
      font-weight: 500;
      font-size: 0.82rem;
    }

    .server-guide {
      margin: 0 0 18px;
      padding: 12px 14px;
      border-radius: 12px;
      border: 1.5px solid color-mix(in srgb, var(--c-accent) 32%, transparent);
      background: var(--panel-fill);
    }

    .server-guide details {
      margin: 0;
    }

    .server-guide summary {
      list-style: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      user-select: none;
    }

    .server-guide summary::-webkit-details-marker { display: none; }

    .server-guide-summary-main {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
      min-width: 0;
    }

    .server-guide-summary-main h3 {
      font-family: var(--font-display);
      font-size: 0.95rem;
      color: var(--ink);
      margin: 0;
      font-weight: 700;
    }

    .server-guide-summary-hint {
      font-size: 0.74rem;
      color: var(--ink-soft);
      white-space: nowrap;
    }

    .server-guide-summary-toggle {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      flex-shrink: 0;
    }

    .server-guide-chevron {
      flex-shrink: 0;
      width: 18px;
      height: 18px;
      border-radius: 50%;
      border: 1.5px solid color-mix(in srgb, var(--c-accent) 35%, transparent);
      background: var(--accent-soft);
      color: var(--warm);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 0.7rem;
      line-height: 1;
      transition: transform 0.2s, background 0.2s, color 0.2s;
    }

    .server-guide details[open] .server-guide-chevron {
      transform: rotate(180deg);
      background: var(--accent);
      border-color: var(--accent);
      color: var(--accent-ink);
    }

    .server-guide-body {
      margin-top: 12px;
      padding-top: 4px;
      border-top: 1px dashed var(--accent-soft);
    }

    .server-guide-badge {
      display: inline-block;
      font-size: 0.68rem;
      font-weight: 600;
      padding: 2px 7px;
      border-radius: 999px;
      background: color-mix(in srgb, var(--c-accent) 18%, transparent);
      color: var(--warm);
      border: 1px solid color-mix(in srgb, var(--c-accent) 30%, transparent);
    }

    .server-guide-badge.is-rec {
      background: var(--accent);
      color: var(--accent-ink);
      border-color: var(--accent);
    }

    .server-guide-section {
      margin-bottom: 14px;
    }

    .server-guide-section:last-of-type {
      margin-bottom: 0;
    }

    .server-guide-section-title {
      font-size: 0.82rem;
      font-weight: 700;
      color: var(--ink);
      margin: 0 0 4px;
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
    }

    .server-guide-section-desc {
      font-size: 0.76rem;
      color: var(--ink-soft);
      line-height: 1.5;
      margin: 0 0 8px;
    }

    .server-tiers {
      display: grid;
      gap: 8px;
    }

    .server-tier {
      border-radius: 10px;
      border: 1.5px solid var(--line);
      background: var(--surface-strong);
      padding: 10px 12px;
    }

    .server-tier.recommend {
      border-color: var(--accent);
      background: var(--accent-soft);
    }

    .server-tier-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 6px;
    }

    .server-tier-name {
      font-size: 0.86rem;
      font-weight: 700;
      color: var(--ink);
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .server-tier-tag {
      font-size: 0.66rem;
      font-weight: 600;
      color: var(--accent-ink);
      background: var(--accent);
      padding: 1px 6px;
      border-radius: 999px;
    }

    .server-tier-price {
      font-size: 0.76rem;
      font-weight: 600;
      color: var(--warm);
      white-space: nowrap;
    }

    .server-tier-specs {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 4px 8px;
      margin-bottom: 6px;
    }

    .server-tier-specs.cols-3 {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .server-tier-specs.cols-2 {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .server-tier-specs span {
      font-size: 0.74rem;
      color: var(--ink-soft);
      line-height: 1.35;
    }

    .server-tier-specs strong {
      display: block;
      color: var(--ink);
      font-weight: 600;
      font-size: 0.78rem;
    }

    .server-tier-meta {
      font-size: 0.74rem;
      color: var(--ink-soft);
      line-height: 1.45;
    }

    .server-tier-meta b {
      color: var(--ink);
      font-weight: 600;
    }

    .server-guide-pick {
      margin-top: 12px;
      padding-top: 10px;
      border-top: 1px dashed color-mix(in srgb, var(--c-accent) 25%, transparent);
    }

    .server-guide-pick-title {
      font-size: 0.78rem;
      font-weight: 600;
      color: var(--ink-soft);
      margin: 0 0 8px;
    }

    .server-guide-pick .checks {
      gap: 6px;
    }

    .hosting-rec {
      margin: 0 0 10px;
      padding: 10px 12px;
      border-radius: 10px;
      border: 1px solid color-mix(in srgb, var(--c-accent) 32%, transparent);
      background: var(--panel-fill-strong);
    }

    .hosting-rec-title {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 6px 10px;
      font-size: 0.82rem;
      font-weight: 650;
      color: var(--ink);
      margin: 0 0 4px;
    }

    .hosting-rec-badge {
      display: inline-flex;
      align-items: center;
      padding: 2px 8px;
      border-radius: 999px;
      font-size: 0.68rem;
      font-weight: 700;
      letter-spacing: 0.02em;
      color: var(--accent-ink);
      background: var(--accent);
    }

    .hosting-rec-badge.warn {
      color: #ffb4a8;
      background: color-mix(in srgb, #c62828 28%, transparent);
    }

    .hosting-rec-reason {
      margin: 0;
      font-size: 0.74rem;
      line-height: 1.55;
      color: var(--ink-soft);
    }

    .hosting-rec-reason strong {
      color: var(--ink);
      font-weight: 600;
    }

    .check.recommend-hosting {
      border-color: color-mix(in srgb, var(--c-accent) 45%, transparent);
      background: var(--panel-fill);
    }

    .check-rec-tag {
      display: inline-block;
      margin-left: 6px;
      padding: 1px 6px;
      border-radius: 4px;
      font-size: 0.65rem;
      font-weight: 700;
      color: var(--accent-ink);
      background: var(--accent);
      vertical-align: middle;
    }

    .server-guide-section.is-rec {
      outline: 1.5px solid color-mix(in srgb, var(--c-accent) 35%, transparent);
      outline-offset: 2px;
      border-radius: 10px;
      padding: 8px;
      background: var(--panel-fill);
    }

    .check.is-disabled {
      opacity: 0.55;
      pointer-events: none;
    }

    .addon-other-title {
      font-family: var(--font-display);
      font-size: 0.88rem;
      color: var(--ink);
      margin: 0 0 6px;
      font-weight: 600;
    }

    @media (max-width: 640px) {
      .server-tier-specs,
      .server-tier-specs.cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .server-guide-summary-hint {
        display: none;
      }
    }

    .addon-block {
      margin-top: 10px;
      padding-top: 4px;
    }

    .addon-block-title {
      font-size: 0.78rem;
      font-weight: 600;
      color: var(--ink-soft);
      margin: 4px 0 6px;
    }

    .row.addon-waf,
    .row.addon-waf strong {
      color: #ff8a80;
    }

    .maintain-quote {
      margin-top: 12px;
      padding: 12px;
      border-radius: 10px;
      border: 1.5px dashed color-mix(in srgb, var(--c-accent) 35%, transparent);
      background: var(--accent-soft);
    }

    .maintain-quote h3 {
      color: var(--warm);
      margin-bottom: 6px;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .maintain-quote .help-btn {
      border-color: color-mix(in srgb, var(--c-accent) 45%, transparent);
      background: var(--accent-soft);
      color: var(--warm);
    }

    .maintain-quote .help-btn:hover {
      background: var(--warm);
      border-color: var(--warm);
      color: var(--accent-ink);
    }

    .maintain-quote .row strong {
      color: var(--warm);
    }

    .maintain-quote .tip {
      margin-top: 6px;
      font-size: 0.76rem;
      color: var(--ink-soft);
      line-height: 1.5;
    }

    .mode-meta .maintain-fee {
      color: var(--warm);
      font-weight: 600;
    }

    .actions {
      display: grid;
      gap: 10px;
    }

    .calculator-page button {
      font: inherit;
      cursor: pointer;
      appearance: none;
      -webkit-appearance: none;
    }

    .calculator-page .btn-primary:active,
    .calculator-page .btn-ghost:active,
    .calculator-page .btn-letter:active,
    .calculator-page .btn-reset:active {
      transform: scale(0.985);
    }

    .btn-primary {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      min-height: 46px;
      padding: 12px 16px;
      border: none;
      border-radius: 10px;
      background: var(--accent);
      color: var(--accent-ink);
      font-weight: 700;
      font-size: 0.95rem;
      letter-spacing: 0.02em;
      box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.22) inset,
        0 8px 20px color-mix(in srgb, var(--c-accent) 28%, transparent);
      transition: transform 0.18s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease;
    }

    .btn-primary:hover {
      filter: brightness(1.04);
      transform: translateY(-1px);
      box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.28) inset,
        0 12px 26px color-mix(in srgb, var(--c-accent) 34%, transparent);
    }

    .btn-primary:active {
      transform: translateY(0) scale(0.985);
      filter: brightness(0.98);
    }

    .btn-primary:focus-visible {
      outline: none;
      box-shadow:
        0 0 0 3px color-mix(in srgb, var(--c-accent) 28%, transparent),
        0 8px 20px color-mix(in srgb, var(--c-accent) 28%, transparent);
    }

    .btn-ghost {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      min-height: 44px;
      padding: 11px 16px;
      border-radius: 10px;
      background: var(--surface-strong);
      border: 1px solid var(--line);
      color: var(--ink);
      font-weight: 600;
      font-size: 0.9rem;
      letter-spacing: 0.01em;
      transition: transform 0.18s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    }

    .btn-ghost:hover {
      border-color: color-mix(in srgb, var(--c-accent) 45%, transparent);
      color: var(--warm);
      background: var(--panel-fill);
      transform: translateY(-1px);
      box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
    }

    .btn-ghost:active {
      transform: translateY(0) scale(0.985);
    }

    .btn-ghost:focus-visible {
      outline: none;
      box-shadow: 0 0 0 3px var(--accent-soft);
    }

    .note {
      margin-top: 12px;
      font-size: 0.76rem;
      color: var(--ink-soft);
      line-height: 1.55;
    }

    .print-sheet {
      display: none;
    }



    /* Tablet：版块内间距单独收紧，不与桌面 1:1 */
    @media (max-width: 920px) {
      .layout { gap: 14px; }
      .panel {
        padding: 16px 16px 14px;
        border-radius: 12px;
      }
      .panel + .panel { margin-top: 10px; }
      .panel h2 {
        margin-bottom: 10px;
        font-size: 0.9rem;
      }
      .hero { margin-bottom: 18px; }
      .section-hint {
        margin: -4px 0 10px;
        font-size: 0.74rem;
      }
      .calculator-page .calc-wrap {
        padding-top: 24px;
        padding-bottom: 40px;
      }
      .choice-box { padding: 12px 12px 11px; }
      .check { padding: 10px 11px; }
      .options,
      .checks,
      .mode-config { gap: 8px; }
      .server-guide {
        padding: 11px 12px;
        margin-bottom: 14px;
      }
      .result-head { margin-bottom: 12px; }
      .modes { margin-bottom: 12px; gap: 7px; }
      .type-diff { padding: 12px; }
      .include-note { padding: 9px 11px; }
      .mode-title-bar { padding: 9px 12px; }
      .mode-body { padding: 11px 12px; }
    }

    /* Mobile：版块内间距/组件留白单独收紧，不与桌面 1:1 */
    @media (max-width: 640px) {
      .calculator-page .calc-wrap {
        padding: 14px 12px 28px;
      }
      .layout { gap: 10px; }
      .panel {
        padding: 13px 12px 11px;
        border-radius: 10px;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
      }
      .panel + .panel { margin-top: 8px; }
      .panel h2 {
        margin-bottom: 8px;
        font-size: 0.84rem;
      }
      .section-hint {
        margin: -2px 0 8px;
        font-size: 0.72rem;
        line-height: 1.45;
      }
      .hero { margin-bottom: 14px; }
      .hero-top {
        gap: 10px;
        margin-bottom: 4px;
      }
      .hero p {
        font-size: 0.88rem;
        line-height: 1.5;
      }
      .btn-letter {
        padding: 7px 11px 7px 9px;
        font-size: 0.78rem;
        border-radius: 8px;
      }
      .btn-letter-icon {
        width: 24px;
        height: 24px;
        border-radius: 6px;
      }
      .options,
      .checks,
      .mode-config { gap: 7px; }
      .choice-box {
        padding: 11px 11px 10px;
        border-radius: 10px;
      }
      .choice-title { font-size: 0.9rem; }
      .choice-desc { font-size: 0.74rem; }
      .check {
        padding: 9px 10px;
        gap: 8px;
        border-radius: 8px;
      }
      .check-name { font-size: 0.86rem; }
      .check-meta { font-size: 0.72rem; }
      .check-price {
        min-width: 4.8em;
        font-size: 0.78rem;
      }
      .feature-qty {
        padding: 0 10px 9px 34px;
        gap: 6px 8px;
      }
      .pages-grid { gap: 8px; }
      .field label {
        font-size: 0.82rem;
        margin-bottom: 5px;
      }
      .field input[type="number"] {
        padding: 9px 10px;
        border-radius: 8px;
        font-size: 0.95rem;
      }
      .type-diff {
        margin-top: 8px;
        padding: 10px 9px 8px;
        border-radius: 10px;
      }
      .include-note {
        margin-top: 8px;
        padding: 8px 10px;
        border-radius: 8px;
      }
      .server-guide {
        margin: 0 0 12px;
        padding: 10px;
        border-radius: 10px;
      }
      .server-tier {
        padding: 8px 10px;
        border-radius: 8px;
      }
      .result-head {
        margin-bottom: 10px;
        gap: 8px;
        align-items: center;
      }
      .result-head h2 { font-size: 0.98rem; }
      .modes {
        gap: 6px;
        margin-bottom: 10px;
      }
      .mode-title-bar {
        padding: 8px 11px;
        font-size: 0.8rem;
      }
      .mode-body { padding: 9px 11px; }
      .mode-card:not(.active) .mode-body { padding: 8px 10px; }
      .mode-price { font-size: 1.25rem; }
      .breakdown {
        padding-top: 10px;
        margin-bottom: 10px;
      }
      .breakdown h3 {
        font-size: 0.78rem;
        margin-bottom: 6px;
      }
      .row {
        font-size: 0.78rem;
        padding: 3px 0;
        gap: 8px;
      }
      .actions { gap: 8px; }
      .btn-primary {
        min-height: 42px;
        padding: 10px 14px;
        font-size: 0.9rem;
        border-radius: 8px;
      }
      .btn-ghost {
        min-height: 40px;
        padding: 9px 14px;
        font-size: 0.86rem;
        border-radius: 8px;
      }
      .btn-reset {
        padding: 5px 9px;
        font-size: 0.7rem;
      }
      .note {
        margin-top: 10px;
        font-size: 0.7rem;
      }
      .hosting-rec {
        padding: 8px 10px;
        margin-bottom: 8px;
      }
      .maintain-quote {
        margin-top: 10px;
        padding: 10px;
      }
      .addon-other-title {
        font-size: 0.84rem;
        margin-bottom: 4px;
      }
    }

    @media (max-width: 480px) {
      .calculator-page .calc-wrap {
        padding: 10px 8px 24px;
      }
      .layout { gap: 8px; }
      .panel {
        padding: 11px 10px 9px;
        border-radius: 8px;
      }
      .panel + .panel { margin-top: 6px; }
      .panel h2 {
        margin-bottom: 6px;
        font-size: 0.8rem;
      }
      .hero { margin-bottom: 12px; }
      .hero-brand {
        font-size: clamp(1.35rem, 6.5vw, 1.7rem);
      }
      .choice-box {
        padding: 10px 9px 9px;
        border-radius: 8px;
      }
      .check {
        padding: 8px 9px;
        gap: 7px;
      }
      .check-price {
        min-width: 4.2em;
        font-size: 0.74rem;
      }
      .feature-qty {
        padding: 0 8px 8px 30px;
      }
      .server-guide,
      .type-diff,
      .include-note {
        padding: 8px;
        border-radius: 8px;
      }
      .mode-title-bar { padding: 7px 10px; }
      .mode-body { padding: 8px 10px; }
    }

    /* —— 打印报价单（正式版式：白底黑字，无品牌黄） —— */
    .quote-doc {
      background: #fff;
      color: #111;
      font-family: var(--font-body);
      font-size: 12.5px;
      line-height: 1.55;
    }

    .quote-doc * { box-sizing: border-box; }

    .quote-masthead {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 16px;
      padding-bottom: 14px;
      border-bottom: 2px solid #222;
      margin-bottom: 16px;
    }

    .quote-brand {
      font-family: var(--font-display);
      font-size: 20px;
      font-weight: 700;
      letter-spacing: -0.02em;
      color: #111;
    }

    .quote-brand span { color: #111; }

    .quote-brand-sub {
      margin-top: 4px;
      font-size: 11px;
      color: #666;
    }

    .quote-meta-box {
      text-align: right;
      font-size: 11.5px;
      color: #444;
      line-height: 1.7;
    }

    .quote-meta-box strong {
      display: block;
      font-family: var(--font-display);
      font-size: 15px;
      color: #111;
      margin-bottom: 4px;
    }

    .quote-banner {
      background: #5a5a5a;
      color: #fff;
      padding: 10px 14px;
      font-weight: 700;
      font-size: 13px;
      letter-spacing: 0.02em;
      margin-bottom: 14px;
    }

    .quote-section {
      margin-bottom: 14px;
    }

    .quote-section h3 {
      font-size: 12px;
      font-weight: 700;
      color: #111;
      margin-bottom: 8px;
      padding-bottom: 4px;
      border-bottom: 1px solid #d0d0d0;
      text-transform: none;
      letter-spacing: 0;
    }

    .quote-info {
      width: 100%;
      border-collapse: collapse;
      margin-bottom: 4px;
    }

    .quote-info th,
    .quote-info td {
      padding: 7px 10px;
      border: 1px solid #d0d0d0;
      vertical-align: top;
      text-align: left;
      color: #111;
    }

    .quote-info th {
      width: 22%;
      background: #e8e8e8;
      color: #222;
      font-weight: 600;
      white-space: nowrap;
    }

    .quote-table {
      width: 100%;
      border-collapse: collapse;
    }

    .quote-table thead th {
      background: #e8e8e8;
      color: #111;
      font-weight: 600;
      padding: 8px 10px;
      text-align: left;
      font-size: 11.5px;
      border: 1px solid #d0d0d0;
    }

    .quote-table thead th:last-child {
      text-align: right;
    }

    .quote-table td {
      padding: 7px 10px;
      border: 1px solid #e0e0e0;
      border-top: none;
      color: #111;
      background: #fff;
    }

    .quote-table td:last-child {
      text-align: right;
      font-family: var(--font-display);
      font-weight: 600;
      white-space: nowrap;
    }

    .quote-table tbody tr:nth-child(even) td {
      background: #f7f7f7;
    }

    .quote-table .row-total td {
      background: #ececec !important;
      border-top: 1.5px solid #333;
      border-bottom: 1px solid #d0d0d0;
      font-weight: 700;
      color: #111;
      padding-top: 9px;
      padding-bottom: 9px;
    }

    .quote-table .row-soft td {
      background: #fafafa !important;
      color: #555;
      font-weight: 500;
      border-top: 1px dashed #ccc;
    }

    .quote-table .row-usage td:last-child {
      font-family: var(--font-body);
      font-weight: 500;
      color: #555;
    }

    .quote-doc .quote-includes {
      margin: 0;
      padding-left: 0;
      list-style: none;
      color: #333;
    }

    .quote-doc .quote-includes li {
      position: relative;
      margin: 3px 0;
      padding-left: 14px;
      color: #333;
    }

    .quote-doc .quote-includes li::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0.5em;
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: #666;
    }

    .quote-note-box {
      padding: 10px 12px;
      background: #f5f5f5;
      border-left: 3px solid #888;
      color: #333;
      font-size: 11.5px;
      line-height: 1.65;
    }

    .quote-terms {
      margin-top: 16px;
      padding-top: 12px;
      border-top: 1px solid #d0d0d0;
      font-size: 11px;
      color: #555;
      line-height: 1.7;
    }

    .quote-terms ol {
      margin: 6px 0 0;
      padding-left: 18px;
    }

    .quote-sign {
      display: flex;
      justify-content: space-between;
      gap: 24px;
      margin-top: 28px;
      padding-top: 8px;
    }

    .quote-sign-item {
      flex: 1;
      font-size: 12px;
      color: #333;
    }

    .quote-sign-line {
      margin-top: 28px;
      border-bottom: 1px solid #111;
      height: 1px;
    }

    .quote-footer {
      margin-top: 18px;
      text-align: center;
      font-size: 10.5px;
      color: #888;
    }

    @keyframes rise {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @media print {
      @page {
        size: A4;
        margin: 14mm 12mm;
      }
      .calculator-page {
        background: #fff !important;
        color: #111 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
      }
      .calc-wrap { width: 100%; max-width: none; padding: 0; }
      .hero, .left-col, .actions, .note, .btn-letter { display: none !important; }
      .layout { display: block; }
      .sticky { position: static; }
      .panel { box-shadow: none; border: none; padding: 0; background: #fff !important; }
      .print-sheet { display: block !important; background: #fff; }
      .modes, .breakdown, .result-head, .sticky .section-hint { display: none !important; }
      .quote-doc {
        font-size: 11.5px;
        background: #fff;
        color: #111;
      }
    }



/* Site chrome + calculator page shell */
.calculator-page {
  padding: 120px 0 80px;
  position: relative;
}
.calculator-page.is-quoting .sticky .panel {
  opacity: 0.72;
  transition: opacity 0.2s;
}

@media only screen and (max-width: 1199px) {
  .calculator-page {
    padding: 100px 0 56px;
  }
}
@media only screen and (max-width: 768px) {
  .calculator-page {
    padding: 78px 0 36px;
  }
}
@media only screen and (max-width: 480px) {
  .calculator-page {
    padding: 68px 0 28px;
  }
}
@media print {
  .header, .footer, .rightFastMain, .fixMain, .right-fixed, .side-bar,
  .xy-header, .xy-footer, header.header, footer.footer {
    display: none !important;
  }
  .calculator-page { padding: 0 !important; min-height: 0 !important; }
}

.calculator-page a.btn-primary {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
}
