/* 香港專業搬運聯盟 — v1.1 professional editorial (rollback: backups/v1.0) */

:root {
  --teal: #0b3d3a;
  --teal-bright: #147a72;
  --teal-mid: #1a5c57;
  --coral: #c73e4a;
  --coral-deep: #a8323c;
  --brass: #9a7b2f;
  --sun: #c4a35a;
  --ink: #121a1c;
  --muted: #5c676b;
  --line: #d5dcd9;
  --bg: #eef1ef;
  --bg-soft: #e4ebe8;
  --white: #fbfcfb;
  --panel: #ffffff;
  --wa: #1f9e4b;
  --wa-deep: #187a3a;
  --header-h: 64px;
  --dock-h: 70px;
  --radius: 4px;
  --radius-lg: 8px;
  --font: "Noto Sans TC", "PingFang HK", "Microsoft JhengHei", sans-serif;
  --display: "Noto Serif TC", "Songti TC", "Noto Sans TC", serif;
  --shadow: 0 1px 0 rgba(18, 26, 28, 0.06), 0 12px 32px rgba(11, 61, 58, 0.08);
  --pattern: repeating-linear-gradient(
    -18deg,
    transparent,
    transparent 11px,
    rgba(11, 61, 58, 0.035) 11px,
    rgba(11, 61, 58, 0.035) 12px
  );
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 10px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--bg);
  background-image: var(--pattern);
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px));
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.hero-brand,
.brand-zh,
.section-head h2 {
  font-family: var(--display);
  letter-spacing: 0.01em;
}

img {
  max-width: 100%;
  display: block;
  -webkit-user-drag: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal);
  color: #fff;
  padding: 0.7rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

.page-top-anchor {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 252, 251, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-right: auto;
  min-width: 0;
}

.brand-logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius);
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand-zh {
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-en {
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-desktop {
  display: none;
  gap: 1.1rem;
}

.nav-desktop a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
}

.nav-desktop a:hover {
  color: var(--teal);
}

.nav-quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--coral) 0%, #d4552f 100%);
  color: #fff !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 0 rgba(168, 50, 60, 0.35), 0 6px 14px rgba(199, 62, 74, 0.28);
  animation: quote-pulse 2.4s ease-in-out infinite;
}

.nav-quote:hover {
  color: #fff !important;
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.nav-mobile .nav-quote {
  width: fit-content;
  margin: 0.35rem 0 0.55rem;
  min-height: 42px;
  padding: 0.55rem 1rem;
  font-size: 1rem;
}

@keyframes quote-pulse {
  0%,
  100% {
    box-shadow: 0 2px 0 rgba(168, 50, 60, 0.35), 0 6px 14px rgba(199, 62, 74, 0.28);
  }
  50% {
    box-shadow: 0 2px 0 rgba(168, 50, 60, 0.35), 0 8px 22px rgba(199, 62, 74, 0.45);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-quote {
    animation: none;
  }
}

.btn-quote {
  background: linear-gradient(135deg, var(--coral) 0%, #d4552f 55%, var(--brass) 160%);
  color: #fff;
  border: 0;
  box-shadow: 0 8px 22px rgba(199, 62, 74, 0.35);
}

.btn-quote:hover {
  filter: brightness(1.05);
  color: #fff;
}

.header-quote {
  display: inline-flex;
  flex-shrink: 0;
  min-height: 36px;
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 0 rgba(168, 50, 60, 0.35), 0 4px 12px rgba(199, 62, 74, 0.28);
}

.header-wa {
  display: none !important;
}

.nav-toggle {
  width: 40px;
  height: 40px;
  display: grid;
  place-content: center;
  gap: 5px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--ink);
}

.nav-mobile {
  display: grid;
  padding: 0.4rem 1rem 1rem;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.nav-mobile[hidden] {
  display: none;
}

.nav-mobile a {
  padding: 0.8rem 0.25rem;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

/* Buttons — sharp professional, no pill look */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.02em;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn svg {
  width: 1.15rem;
  height: 1.15rem;
}

.btn-lg {
  min-height: 52px;
  padding: 0.85rem 1.4rem;
}

.btn-sm {
  min-height: 38px;
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
}

.btn-wa {
  background: var(--wa);
  color: #fff;
}

.btn-wa:hover {
  background: var(--wa-deep);
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--teal);
}

.btn-outline:hover {
  background: var(--teal);
  color: #fff;
}

.btn-teal {
  background: var(--teal);
  color: #fff;
}

.btn-teal:hover {
  background: var(--teal-mid);
}

/* Hero + Carousel — full-bleed photo plane */
.hero {
  position: relative;
  display: grid;
  background: #0a1f1e;
}

.carousel {
  position: relative;
  background: #0a1f1e;
  min-height: 58vw;
  max-height: 520px;
  overflow: hidden;
}

.carousel-track {
  position: relative;
  height: 100%;
  min-height: inherit;
}

.carousel-slide {
  margin: 0;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.carousel-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.carousel-slide.is-active img {
  animation: hero-kenburns 12s ease-out forwards;
}

@keyframes hero-kenburns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 58vw;
  max-height: 520px;
}

.carousel-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(105deg, rgba(8, 28, 27, 0.88) 0%, rgba(8, 28, 27, 0.55) 42%, rgba(8, 28, 27, 0.12) 72%),
    linear-gradient(180deg, transparent 45%, rgba(8, 28, 27, 0.55) 100%);
  pointer-events: none;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: rgba(251, 252, 251, 0.88);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.carousel-btn.prev {
  left: 0.7rem;
}

.carousel-btn.next {
  right: 0.7rem;
}

.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.85rem;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 0.35rem;
}

.carousel-dots button {
  width: 22px;
  height: 3px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.4);
}

.carousel-dots button.is-active {
  background: #fff;
  width: 34px;
}

.hero-panel {
  position: relative;
  z-index: 4;
  padding: 1.5rem 1.15rem 1.75rem;
  margin-top: -1px;
  background: linear-gradient(180deg, #0c2e2c 0%, #0b3d3a 100%);
  color: #f4f7f6;
  border-bottom: 3px solid var(--brass);
}

.hero-brand {
  margin: 0;
  font-size: clamp(1.55rem, 5.2vw, 2.15rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.hero-en {
  margin: 0.35rem 0 0.85rem;
  font-size: 0.72rem;
  color: var(--sun);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--font);
}

.hero-panel h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.15rem, 3.8vw, 1.45rem);
  line-height: 1.35;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  max-width: 28ch;
}

.hero-lead {
  margin: 0 0 1.2rem;
  color: rgba(244, 247, 246, 0.78);
  font-size: 0.92rem;
  max-width: 42ch;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.hero-panel .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: transparent;
}

.hero-panel .btn-outline:hover {
  background: #fff;
  color: var(--teal);
  border-color: #fff;
}

/* Sections */
.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 3rem 1.15rem;
}

.section-head {
  margin-bottom: 1.6rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.section-head h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.4rem, 3.5vw, 1.75rem);
  font-weight: 700;
  color: var(--teal);
}

.section-head p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  max-width: 52ch;
}

/* Services — editorial rows */
.service-grid {
  display: grid;
  gap: 0;
  border-top: 2px solid var(--teal);
}

.service-item {
  padding: 1.2rem 0 1.2rem 0.85rem;
  border-bottom: 1px solid var(--line);
  border-left: 2px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.service-item:hover {
  border-left-color: var(--brass);
  background: rgba(255, 255, 255, 0.55);
}

.service-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.12rem;
  color: var(--teal);
}

.service-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* Workflow diagram */
.process {
  background: var(--bg-soft);
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.process .section-head,
.process-cta {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.1rem;
  padding-right: 1.1rem;
}

.workflow {
  display: grid;
  gap: 1.1rem;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.1rem;
}

.wf-step {
  position: relative;
  display: grid;
  gap: 0.7rem;
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: none;
}

.wf-photo {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.wf-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wf-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 0;
  background: var(--teal);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
}

.wf-body {
  padding: 0 0.95rem 1rem;
}

.wf-body h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.wf-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.wf-arrow {
  display: none;
}

.process-cta {
  margin-top: 1.4rem;
  text-align: center;
}

/* Why */
.why-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.why-grid li {
  padding: 1rem 1.05rem;
  background: var(--panel);
  border-left: 3px solid var(--teal);
  border-radius: 0;
  box-shadow: none;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.why-grid strong {
  display: block;
  margin-bottom: 0.2rem;
}

.why-grid span {
  color: var(--muted);
  font-size: 0.93rem;
}

.guide-grid {
  display: grid;
  gap: 0.85rem;
}

.guide-grid article {
  padding: 1.05rem 1.1rem;
  background: var(--panel);
  border-radius: 0;
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
}

.guide-grid h3 {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
  color: var(--teal);
}

.guide-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.guide-grid p + p {
  margin-top: 0.55rem;
}

/* Pricing */
.price-grid {
  display: grid;
  gap: 0.75rem;
}

.price-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 1.2rem 1.15rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.price-item:hover {
  border-color: var(--teal);
  background: #fff;
}

.price-item:active {
  transform: none;
}

.price-item.highlight {
  border-color: var(--teal);
  border-top: 3px solid var(--brass);
  background: var(--panel);
}

.price-item.is-active {
  border-color: var(--teal);
  box-shadow: inset 0 0 0 1px var(--teal);
  background: #fff;
}

.price-item.highlight.is-active {
  border-color: var(--teal);
  box-shadow: inset 0 0 0 1px var(--teal);
}

.price-item .tag {
  margin: 0 0 0.45rem;
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  background: transparent;
  padding: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--brass);
}

.price-item .tag.soft {
  color: var(--teal-bright);
  border-bottom-color: var(--teal-bright);
  background: transparent;
}

.price-item h3 {
  margin: 0 0 0.25rem;
}

.price-item .price {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--teal);
}

.price-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.price-hint {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--teal);
}

.price-item.is-active .price-hint {
  color: var(--coral-deep);
}

.price-detail {
  margin-top: 0.9rem;
  padding: 1.15rem 1.1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--teal-bright);
  border-radius: var(--radius);
  animation: detail-in 0.28s ease;
}

.price-detail[hidden] {
  display: none;
}

@keyframes detail-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.price-detail-inner h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  color: var(--teal);
}

.price-detail-lead {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.item-list {
  margin: 0 0 0.85rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.item-list li {
  position: relative;
  padding: 0.45rem 0.7rem 0.45rem 1.7rem;
  background: var(--bg-soft);
  border-radius: 8px;
  font-size: 0.93rem;
}

.item-list li::before {
  content: "";
  position: absolute;
  left: 0.65rem;
  top: 0.85rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
}

.price-detail-note {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.price-detail .btn-wa {
  width: 100%;
}

.price-tip {
  margin: 1.1rem 0 0;
  padding: 0.95rem 1rem;
  background: var(--bg-soft);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.92rem;
}

.price-tip a {
  display: inline-block;
  margin-top: 0.35rem;
  color: var(--teal);
  font-weight: 700;
}

@media (min-width: 720px) {
  .item-list {
    grid-template-columns: 1fr 1fr;
  }

  .price-detail .btn-wa {
    width: auto;
  }
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.35rem;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 0.95rem 1.5rem 0.95rem 0;
  font-weight: 700;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--coral);
  font-size: 1.25rem;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0 0 0.95rem;
  color: var(--muted);
}

/* Contact */
.contact-box {
  padding: 2rem 1.35rem;
  border-radius: 0;
  background: var(--teal);
  color: #fff;
  text-align: center;
  box-shadow: none;
  border-top: 3px solid var(--brass);
}

.contact-logo {
  margin: 0 auto 0.7rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
}

.contact-box h2 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
}

.contact-box > p {
  margin: 0 0 1.1rem;
  color: rgba(255, 255, 255, 0.85);
}

.contact-meta {
  margin: 0 0 1.2rem;
  display: grid;
  gap: 0.75rem;
  text-align: left;
}

.contact-meta dt {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.contact-meta dd {
  margin: 0.1rem 0 0;
  font-weight: 700;
}

/* Footer */
.site-footer {
  padding: 1.6rem 1.1rem 1.2rem;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  gap: 0.7rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-brand img {
  border-radius: 9px;
}

.footer-brand strong {
  display: block;
  font-size: 0.95rem;
}

.footer-brand span {
  font-size: 0.75rem;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
}

.footer-nav a {
  color: var(--teal);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.site-footer p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.site-footer p a {
  color: inherit;
  font-weight: 600;
}

.footer-legal {
  max-width: 52rem;
  line-height: 1.45;
  font-size: 0.75rem !important;
  color: var(--muted);
}

.brand,
.brand-logo,
.hero-brand,
.footer-brand {
  -webkit-user-select: none;
  user-select: none;
}

.brand-logo,
.contact-logo,
.footer-brand img,
.carousel-slide img {
  -webkit-user-drag: none;
}

.site-mirror-banner {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.65rem 1rem;
  text-align: center;
  font-size: 0.88rem;
  line-height: 1.4;
  color: #3b1d08;
  background: #fff3cd;
  border-bottom: 1px solid #f0d48a;
}

.quote-lock-note {
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid #f0d48a;
  background: #fff8e6;
  color: #3b1d08;
  font-size: 0.9rem;
  font-weight: 600;
}

html.site-mirror-lock #quote-form {
  opacity: 0.72;
  pointer-events: none;
}

html.site-mirror-lock #quote-dock {
  display: none !important;
}

/* WhatsApp dock / FAB */
.wa-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 0.6rem 0.8rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, transparent, rgba(31, 41, 55, 0.35));
}

.wa-dock-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 48px;
  border-radius: var(--radius);
  background: var(--wa);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.wa-dock-btn svg {
  width: 1.3rem;
  height: 1.3rem;
}

.wa-fab {
  display: none;
}

/* Tablet+ */
@media (min-width: 720px) {
  body {
    padding-bottom: 0;
  }

  .brand-zh {
    font-size: 1rem;
  }

  .nav-toggle {
    display: none;
  }

  .nav-desktop {
    display: flex;
  }

  .header-quote {
    display: none;
  }

  .header-wa {
    display: inline-flex !important;
    min-height: 40px;
    padding: 0.4rem 0.9rem;
    font-size: 0.88rem;
  }

  .nav-mobile {
    display: none !important;
  }

  .carousel {
    min-height: 380px;
    max-height: 460px;
  }

  .carousel-slide img {
    min-height: 380px;
    max-height: 460px;
  }

  .hero-panel {
    padding: 1.8rem 1.5rem 2rem;
  }

  .hero-panel h1 {
    font-size: 1.8rem;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .section {
    padding: 3.2rem 1.5rem;
  }

  .section-head h2 {
    font-size: 1.7rem;
  }

  .service-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0 1.5rem;
  }

  .workflow {
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
    padding: 0 1.5rem;
  }

  .process .section-head,
  .process-cta {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  /* connector arrows between steps on tablet */
  .wf-step:not(:nth-child(2n)) .wf-arrow {
    display: block;
    position: absolute;
    right: -0.7rem;
    top: 28%;
    width: 14px;
    height: 14px;
    border-right: 3px solid var(--teal-bright);
    border-top: 3px solid var(--teal-bright);
    transform: rotate(45deg);
    z-index: 2;
    background: transparent;
  }

  .why-grid {
    grid-template-columns: 1fr 1fr;
  }

  .guide-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .contact-box {
    padding: 2.2rem;
  }

  .contact-meta {
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
  }

  .wa-dock {
    display: none;
  }

  .wa-fab {
    display: grid;
    place-items: center;
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    z-index: 60;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--wa);
    color: #fff;
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.4);
  }

  .wa-fab svg {
    width: 1.65rem;
    height: 1.65rem;
  }
}

@media (min-width: 1024px) {
  .hero {
    display: block;
    position: relative;
    min-height: 560px;
  }

  .carousel {
    min-height: 560px;
    max-height: none;
    height: 560px;
  }

  .carousel-track,
  .carousel-slide img {
    min-height: 560px;
    max-height: none;
    height: 100%;
  }

  .carousel-veil {
    background:
      linear-gradient(100deg, rgba(8, 28, 27, 0.9) 0%, rgba(8, 28, 27, 0.62) 38%, rgba(8, 28, 27, 0.15) 68%),
      linear-gradient(180deg, transparent 50%, rgba(8, 28, 27, 0.45) 100%);
  }

  .hero-panel {
    position: absolute;
    left: 0;
    right: auto;
    bottom: 0;
    top: 0;
    width: min(480px, 42%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.75rem 2.4rem;
    background: transparent;
    border-bottom: 0;
    border-left: 4px solid var(--brass);
  }

  .hero-brand {
    font-size: 2.05rem;
  }

  .hero-panel h1 {
    font-size: 1.45rem;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .carousel-dots {
    justify-content: flex-end;
    padding-right: 1.5rem;
  }

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

  .wf-step:not(:nth-child(3n)) .wf-arrow {
    display: block;
  }

  .wf-step:nth-child(2n) .wf-arrow {
    display: block;
  }

  .wf-step:nth-child(3n) .wf-arrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .carousel-slide {
    transition: none;
  }

  .carousel-slide.is-active img {
    animation: none;
  }
}

/* —— 自助報價 —— */
.quote {
  position: relative;
  background:
    linear-gradient(180deg, rgba(11, 61, 58, 0.06) 0%, transparent 42%),
    var(--bg);
  border-top: 4px solid var(--coral);
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(154, 123, 47, 0.35);
}

.quote .section-head a {
  color: var(--teal);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.quote-head {
  padding: 1.15rem 1.1rem 1.25rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #0b3d3a 0%, #145c56 55%, #1a6b4f 100%);
  color: #f4f7f6;
  border-left: 5px solid var(--brass);
  box-shadow: 0 12px 28px rgba(11, 61, 58, 0.18);
}

.quote-head h2 {
  color: #fff;
  margin: 0 0 0.65rem;
}

.quote-head > p:last-child {
  color: rgba(244, 247, 246, 0.86);
  margin: 0;
}

.quote-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.65rem;
  padding: 0.35rem 0.7rem;
  background: #ffe8a8;
  color: #0b3d3a;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-left: 4px solid var(--brass);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.quote-head .quote-ref-banner {
  background: rgba(255, 255, 255, 0.12);
  color: #ffe8a8;
  border-left-color: var(--brass);
}

.quote-form {
  display: grid;
  gap: 0.9rem;
}

.quote-card {
  margin: 0;
  padding: 1.15rem 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 0;
  border-top: 3px solid var(--coral);
  background: var(--panel);
  box-shadow: 0 8px 20px rgba(11, 61, 58, 0.06);
}

.quote-card legend {
  padding: 0 0.35rem;
  font-weight: 700;
  color: var(--teal);
}

.quote-card .req {
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--coral-deep);
}

.quote-fields {
  display: grid;
  gap: 0.75rem;
}

.quote-fields label,
.quote-other {
  display: grid;
  gap: 0.3rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.quote-fields label.full,
.quote-other {
  grid-column: 1 / -1;
}

.quote-fields .addr-combo {
  position: relative;
}

.quote-fields .addr-hint {
  margin: 0.3rem 0 0;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
}

.addr-suggest {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 0.3rem 0;
  list-style: none;
  max-height: 240px;
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.addr-suggest[hidden] {
  display: none;
}

.addr-suggest li {
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  display: grid;
  gap: 0.1rem;
}

.addr-suggest li strong {
  font-size: 0.9rem;
}

.addr-suggest li span {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
}

.addr-suggest li.is-active,
.addr-suggest li:hover {
  background: var(--bg-soft);
}

.addr-suggest-status {
  cursor: default;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 400;
}

.quote-fields .stairs-floors[hidden] {
  display: none !important;
}

.quote-fields .stairs-floors {
  background: var(--bg-soft);
  border: 1px dashed var(--teal-mid);
  border-radius: var(--radius);
  padding: 0.55rem 0.65rem;
}

.quote-fields input,
.quote-fields select,
.quote-fields textarea,
.quote-other textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-weight: 400;
  background: var(--panel);
  color: var(--ink);
}

.quote-fields input.is-invalid,
.quote-fields select.is-invalid,
.quote-fields textarea.is-invalid {
  border-color: var(--coral-deep);
  background: rgba(255, 92, 106, 0.08);
  outline: 2px solid rgba(255, 92, 106, 0.25);
}

.quote-fields textarea,
.quote-other textarea {
  min-height: 72px;
  resize: vertical;
}

.quote-hint {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 400;
}

.quote-tabs {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.15rem 0 0.65rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
  position: sticky;
  top: calc(var(--header-h) + 4px);
  z-index: 5;
  background: var(--panel);
}

.quote-tabs::-webkit-scrollbar {
  display: none;
}

.quote-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 38px;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}

.quote-tab.is-active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.quote-tab--all:not(.is-active) {
  border-color: var(--brass);
  color: var(--teal);
  background: rgba(154, 123, 47, 0.12);
}

.quote-tab.has-items:not(.is-active) {
  border-color: var(--teal-bright);
  color: var(--teal);
}

.tab-badge {
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.3rem;
  border-radius: 2px;
  background: var(--coral);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
}

.quote-tab.is-active .tab-badge {
  background: #fff;
  color: var(--teal);
}

.tab-badge[hidden] {
  display: none;
}

.quote-tab-panels {
  min-height: 220px;
}

.quote-tab-panel[hidden] {
  display: none;
}

.quote-item-search {
  display: block;
  margin: 0 0 0.75rem;
}

.quote-item-search-input {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  background: var(--panel);
  color: var(--ink);
}

.quote-item-search-input:focus {
  outline: 2px solid rgba(11, 61, 58, 0.25);
  border-color: var(--teal);
}

.quote-kind-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.85rem;
}

.quote-kind-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 34px;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
}

.quote-kind-chip .item-kind-svg {
  width: 0.95rem;
  height: 0.95rem;
}

.quote-kind-chip.is-active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.quote-kind-chip--all:not(.is-active) {
  border-color: var(--brass);
  color: var(--teal);
  font-weight: 800;
  background: rgba(154, 123, 47, 0.12);
}

.quote-kind-chip:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.quote-room-heading {
  margin: 1rem 0 0.55rem;
  padding-bottom: 0.3rem;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--teal);
  border-bottom: 2px solid var(--brass);
}

.quote-room-heading:first-of-type {
  margin-top: 0.25rem;
}

.quote-room-heading[hidden] {
  display: none !important;
}

.quote-kind-section {
  margin: 0 0 1rem;
}

.quote-kind-heading {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--teal);
}

.quote-kind-heading .item-kind-icon {
  width: 1.55rem;
  height: 1.55rem;
}

.quote-items-empty {
  margin: 0.5rem 0 0;
  padding: 0.75rem;
  color: var(--muted);
  font-size: 0.88rem;
  background: var(--bg-soft);
  border-left: 3px solid var(--line);
}

.quote-item-grid {
  display: grid;
  gap: 0.4rem;
}

.quote-item-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 0.55rem;
  padding: 0.65rem 0.65rem;
  background: var(--bg-soft);
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.quote-item-row.is-selected {
  background: linear-gradient(105deg, #fff8e8 0%, #e7f3f1 45%, #dceeea 100%);
  border-color: var(--teal);
  border-width: 2px;
  box-shadow:
    inset 6px 0 0 var(--brass),
    0 0 0 2px rgba(154, 123, 47, 0.45),
    0 8px 22px rgba(11, 61, 58, 0.2);
}

.quote-item-row.is-selected::after {
  content: "已選";
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  min-height: 24px;
  padding: 0.2rem 0.55rem;
  background: var(--coral);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  box-shadow: -2px 2px 0 rgba(11, 61, 58, 0.15);
}

.quote-item-row.is-selected .quote-item-name {
  font-weight: 800;
  color: #063330;
  font-size: 0.98rem;
}

.quote-item-row.is-selected .quote-item-kind-label {
  color: var(--coral-deep);
  font-weight: 800;
}

.quote-item-row.is-selected .item-kind-icon {
  background: var(--teal);
  border-color: var(--brass);
  border-width: 2px;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(154, 123, 47, 0.4);
  transform: scale(1.05);
}

.quote-item-row.is-selected .qty-block.has-qty {
  background: #fff;
  border: 2px solid var(--teal);
  box-shadow: 0 0 0 2px rgba(11, 61, 58, 0.1);
}

.quote-item-row.is-selected .qty.has-qty,
.quote-item-row.is-selected .qty-preset.has-qty .qty-preset-select {
  background: rgba(11, 61, 58, 0.1);
  border-color: var(--teal);
  font-weight: 800;
}

.quote-item-row[hidden] {
  display: none !important;
}

.quote-kind-section[hidden] {
  display: none !important;
}

.quote-item-row--dual {
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .quote-item-row--dual {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

.quote-item-main {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  min-width: 0;
}

.item-kind-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--teal);
}

.item-kind-svg {
  width: 1.2rem;
  height: 1.2rem;
}

.quote-item-text {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.quote-item-kind-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brass);
  letter-spacing: 0.04em;
}

.quote-item-name {
  font-size: 0.9rem;
  font-weight: 500;
  min-width: 0;
  text-align: left;
}

.qty-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  width: 100%;
}

@media (min-width: 560px) {
  .qty-dual {
    width: auto;
    min-width: 16rem;
  }
}

.qty-block {
  display: grid;
  gap: 0.25rem;
  padding: 0.4rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.qty-block.has-qty {
  border-color: var(--teal-bright);
}

.qty-kind {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.qty-block[data-kind="dispose"] .qty-kind {
  color: var(--coral-deep);
}

.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;
}

.qty-preset {
  display: grid;
  gap: 0.35rem;
  width: 100%;
}

.qty-preset.has-qty .qty-preset-select {
  border-color: var(--teal-bright);
  background: rgba(11, 61, 58, 0.06);
}

.qty-preset-select,
.qty-preset-other {
  width: 100%;
  min-height: 36px;
  padding: 0.3rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  background: var(--white);
  color: var(--ink);
}

.qty-preset-other {
  border-color: var(--teal-bright);
  background: rgba(11, 61, 58, 0.04);
}

.qty-preset-other:focus {
  outline: 2px solid rgba(11, 61, 58, 0.25);
  outline-offset: 1px;
}

.qty-preset-other[hidden] {
  display: none !important;
}

.qty {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.15rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.1rem;
}

.qty.has-qty {
  border-color: var(--teal-bright);
  background: rgba(11, 61, 58, 0.06);
}

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  font-size: 1.1rem;
  line-height: 1;
  color: var(--teal);
  font-weight: 700;
}

.qty-btn:hover {
  background: var(--bg-soft);
}

.qty-val {
  width: 1.6rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

.quote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.btn-teal {
  background: var(--teal);
  color: #fff;
}

.btn-teal:hover {
  background: #0d5f59;
}

.btn-teal:disabled,
.btn-outline:disabled {
  opacity: 0.65;
  cursor: wait;
}

.btn-ghost-dark {
  background: transparent;
  color: var(--muted);
  border: 1px dashed var(--line);
  opacity: 0.75;
  cursor: not-allowed;
}

.btn-sm {
  min-height: 38px;
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
}

.quote-privacy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.quote-feedback {
  margin: 0.5rem 0 0;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: rgba(20, 184, 166, 0.12);
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 600;
}

.quote-feedback.is-error {
  background: rgba(255, 92, 106, 0.12);
  color: var(--coral-deep);
}

.quote-feedback[hidden] {
  display: none;
}

.quote-jump a {
  color: var(--teal);
  font-weight: 700;
}

/* Sticky bottom preview */
.quote-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  background: rgba(255, 255, 255, 0.97);
  border-top: 2px solid var(--teal);
  box-shadow: 0 -8px 28px rgba(15, 118, 110, 0.14);
  backdrop-filter: blur(10px);
  max-height: 70vh;
  overflow: auto;
}

.quote-dock[hidden] {
  display: none;
}

.quote-dock-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.7rem 1rem;
}

.quote-dock-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}

.quote-dock-range {
  margin: 0.1rem 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1.2;
}

.quote-dock-meta {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.quote-dock-actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

body.has-quote-dock {
  padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px));
}

body.has-quote-dock .wa-dock {
  display: none;
}

body.has-quote-dock .wa-fab {
  bottom: 6.5rem;
}

/* Preview modal */
.quote-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: end center;
}

.quote-modal[hidden] {
  display: none;
}

.quote-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.quote-modal-panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(88vh, 900px);
  background: var(--panel);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -8px 28px rgba(11, 61, 58, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-top: 3px solid var(--brass);
}

.quote-modal-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.quote-modal-bar h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--teal);
}

.quote-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.quote-modal-body {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0;
  background: #fff;
}

.quote-followup {
  padding: 1rem 1.1rem 1.35rem;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  text-align: center;
}

.quote-followup p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.quote-followup .btn-wa {
  width: 100%;
}

.quote-modal-actions .btn-wa svg,
.quote-actions .btn-wa svg,
.quote-followup .btn-wa svg {
  width: 1.1rem;
  height: 1.1rem;
}

.quote-sheet {
  width: 100%;
  background: #fff;
  color: #1f2937;
  padding: 1.25rem 1.1rem 1.5rem;
  /* Prefer system CJK fonts so preview matches PDF/print */
  font-family: "PingFang HK", "PingFang TC", "Heiti TC", "Microsoft JhengHei",
    "Noto Sans TC", sans-serif;
}

body.quote-modal-open {
  overflow: hidden;
}

.qsum-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.qsum-range {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--teal);
}

.qsum-tier {
  margin: 0.25rem 0 0.75rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.qsum-meta {
  margin: 0 0 0.75rem;
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
}

.qsum-meta dt {
  display: inline;
  font-weight: 700;
  margin-right: 0.35rem;
}

.qsum-meta dd {
  display: inline;
  margin: 0;
}

.qsum-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.85rem;
}

.qsum-table col.col-item {
  width: auto;
}

.qsum-table col.col-qty {
  width: 4.25rem;
}

.qsum-table col.col-amt {
  width: 4.5rem;
}

.qsum-table th,
.qsum-table td {
  padding: 0.45rem 0.45rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.qsum-table th:nth-child(1),
.qsum-table td:nth-child(1) {
  text-align: left;
}

.qsum-table th:nth-child(2),
.qsum-table td:nth-child(2),
.qsum-table th:nth-child(3),
.qsum-table td:nth-child(3),
.qsum-table .qty-cell {
  text-align: center;
  white-space: nowrap;
  font-size: 0.8rem;
}

.qsum-table th:nth-child(4),
.qsum-table td:nth-child(4),
.qsum-table .amt-cell,
.qsum-table .num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.qsum-breakdown {
  margin: 0.9rem 0 0.5rem;
  padding: 0.75rem 0.9rem;
  background: var(--bg-soft);
  border-radius: var(--radius);
  display: grid;
  gap: 0.4rem;
}

.qsum-breakdown div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.qsum-breakdown span {
  color: var(--muted);
}

.qsum-breakdown strong {
  font-variant-numeric: tabular-nums;
}

.qsum-table thead th {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.78rem;
}

.qsum-extra,
.qsum-note,
.qsum-time {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.55rem 0 0;
}

.quote-ref-banner {
  margin: 0 0 0.55rem !important;
  padding: 0.65rem 0.85rem;
  background: rgba(199, 62, 74, 0.1);
  color: var(--coral-deep);
  font-weight: 700;
  border-radius: var(--radius);
  font-size: 0.95rem;
  border-left: 3px solid var(--coral);
}

.qsum-disclaimer {
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.7rem;
  background: rgba(255, 92, 106, 0.12);
  color: var(--coral-deep);
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 8px;
}

.qsum-disclaimer--extra {
  background: rgba(234, 88, 12, 0.14);
  color: #c2410c;
}

.qsum-flag-extra,
.qsum-surcharge-list .is-extra-fee,
.qsum-extra-fee-note {
  color: #c2410c;
}

.qsum-extra-fee-note {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
}

.qsum-list-title {
  margin: 1rem 0 0.55rem;
  font-size: 1rem;
  color: var(--teal);
}

.qsum-cat {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.7rem 0.75rem;
  background: var(--bg-soft);
  border-radius: var(--radius);
  border-left: 3px solid var(--teal);
}

.qsum-cat-title {
  margin: 0 0 0.4rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--teal);
}

.qsum-cat-meta {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.qsum-surcharge-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink);
  font-size: 0.9rem;
}

.qsum-total {
  margin: 1rem 0 0.5rem;
  padding: 0.9rem 1rem;
  background: var(--teal);
  color: #fff;
  border-radius: 0;
  border-left: 4px solid var(--brass);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.qsum-total span {
  font-size: 0.88rem;
  font-weight: 600;
}

.qsum-total strong {
  font-size: 1.35rem;
}

.qsum-empty {
  margin: 0.5rem 0;
  color: var(--muted);
}

.qsum-cat .qsum-table {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

@media (min-width: 720px) {
  .quote-fields {
    grid-template-columns: 1fr 1fr;
  }

  .quote-item-grid {
    grid-template-columns: 1fr 1fr;
  }

  .quote-modal {
    place-items: center;
  }

  .quote-modal-panel {
    border-radius: var(--radius-lg);
    max-height: min(85vh, 860px);
  }
}

/* Print is handled via a dedicated popup document (quote.js) for reliable Chinese */
