/* 服务选购沿用官网的品牌色、字体与间距令牌。 */
.cart-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--brand-700);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.cart-trigger svg { width: 19px; height: 19px; }
.cart-badge {
  min-width: 20px;
  padding: 0 5px;
  border-radius: 20px;
  background: var(--brand-100);
  color: var(--brand-700);
  font-size: 11px;
  line-height: 20px;
}
.purchase-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.purchase-actions .btn { min-height: 44px; padding: 11px 17px; font-size: 14px; }
.service-selection { background: linear-gradient(180deg, #fff, var(--brand-50)); scroll-margin-top: 90px; }
.service-selection-head { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 30px; }
.service-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service-choice {
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-xs);
}
.service-choice h3 { font-size: 20px; margin-bottom: 12px; }
.service-choice > p { font-size: 14px; line-height: 1.9; margin-bottom: 14px; flex: 1; }
.service-choice:last-child { grid-column: 1 / -1; }
.service-choice:last-child > p { margin-bottom: 8px; }
.product-purchase { padding: 28px 0; background: var(--brand-50); border-bottom: 1px solid var(--line); }
.product-purchase .wrap { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.product-purchase strong { color: var(--ink); font-size: 20px; }
.product-purchase .purchase-actions { margin: 0; flex-shrink: 0; }
.cart-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(590px, 100%);
  max-width: 100%;
  height: 100%;
  height: 100dvh;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 22px 0 0 22px;
  background: #fff;
  color: var(--text);
  box-shadow: -15px 0 80px rgba(4, 18, 42, .18);
  font: inherit;
}
.cart-dialog[open] { display: flex; flex-direction: column; }
.cart-dialog::backdrop { background: rgba(4, 18, 42, .48); backdrop-filter: blur(3px); }
.cart-dialog [hidden], .cart-steps[hidden] { display: none !important; }
.cart-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 28px 30px 12px; }
.cart-head h2 { margin-top: 5px; font-size: 27px; letter-spacing: -.02em; }
.cart-close { width: 44px; height: 44px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--text); font-size: 28px; line-height: 1; cursor: pointer; }
.cart-intro { padding: 0 30px; font-size: 13px; line-height: 1.8; }
.cart-steps { display: flex; gap: 28px; margin: 22px 30px 0; padding: 0 0 20px; border-bottom: 1px solid var(--line); list-style: none; font-size: 13px; color: var(--muted); }
.cart-steps li { display: flex; align-items: center; gap: 8px; }
.cart-steps span { width: 24px; height: 24px; display: grid; place-items: center; background: var(--bg-mute); border-radius: 50%; font-family: var(--font-num); font-size: 12px; }
.cart-steps [aria-current="step"] { color: var(--brand-600); font-weight: 700; }
.cart-steps [aria-current="step"] span { background: var(--brand-600); color: #fff; }
.cart-notice { padding: 10px 30px 0; color: var(--brand-700); font-size: 12px; line-height: 1.6; }
.cart-notice:empty { display: none; }
.cart-content { overflow-y: auto; overscroll-behavior: contain; flex: 1; padding: 22px 30px max(24px, env(safe-area-inset-bottom)); }
.cart-empty, .cart-success { text-align: center; padding: 45px 8px; }
.cart-empty-icon, .cart-success-icon { display: grid; place-items: center; margin: 0 auto 24px; width: 64px; height: 64px; background: var(--brand-50); color: var(--brand-600); border-radius: 20px; font-size: 30px; }
.cart-success-icon { background: #e8f7f1; color: #087253; }
.cart-empty h3, .cart-success h3 { font-size: 22px; margin-bottom: 12px; }
.cart-empty p, .cart-success p { font-size: 14px; line-height: 1.9; margin-bottom: 24px; }
.cart-empty > a { display: table; margin: 16px auto 0; }
.cart-list-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
.cart-text-link { border: 0; background: transparent; padding: 0; color: var(--brand-600); font: inherit; font-size: 13px; cursor: pointer; text-decoration: none; }
button.cart-text-link { min-height: 44px; }
.cart-text-link:hover { text-decoration: underline; }
.cart-items { list-style: none; padding: 0; margin: 0; }
.cart-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-item-name { color: var(--ink); font-size: 17px; font-weight: 700; }
.cart-item-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.cart-quantity { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 9px; overflow: hidden; }
.cart-item-button { border: 0; background: #fff; color: var(--ink); font: inherit; min-width: 44px; height: 44px; cursor: pointer; }
.cart-item-button:disabled { color: #9ba8bd; cursor: default; background: var(--bg-soft); }
.cart-quantity input { width: 46px; height: 44px; padding: 0; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-radius: 0; text-align: center; font: inherit; font-size: 14px; appearance: textfield; }
.cart-quantity input::-webkit-inner-spin-button, .cart-quantity input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.cart-remove { color: var(--muted); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.cart-actions { padding-top: 24px; }
.cart-fine { font-size: 12px; color: var(--muted); line-height: 1.8; }
.cart-actions .cart-fine { margin-bottom: 18px; }
.cart-actions .btn { min-height: 48px; }
.cart-continue { display: block; margin: 8px auto 0; }
.cart-summary { background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 12px; padding: 16px 18px; margin: 8px 0 24px; }
.cart-summary > span { font-size: 11px; color: var(--brand-600); font-weight: 700; }
.cart-summary > p { margin-top: 7px; font-size: 13px; line-height: 1.9; color: var(--brand-800); }
.cart-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 22px; }
.cart-field { min-width: 0; }
.cart-intent { margin-bottom: 22px; }
.cart-field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 9px; }
.cart-field label span { font-size: 11px; font-weight: 400; color: var(--muted); }
.cart-field input, .cart-field textarea, .cart-field select { display: block; width: 100%; padding: 12px; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; line-height: 1.5; }
.cart-field textarea { resize: vertical; min-height: 130px; }
.cart-field input::placeholder, .cart-field textarea::placeholder { color: #74819a; font-size: 13px; }
.cart-field .cart-fine { margin-top: 8px; }
.cart-dialog :focus-visible, .cart-trigger:focus-visible, .purchase-actions button:focus-visible { outline: 3px solid var(--brand-500); outline-offset: 3px; }
.cart-error { margin-top: 18px; padding: 14px; background: #fff0ef; border-radius: 9px; color: #a62c25; font-size: 13px; line-height: 1.8; }
.cart-form [disabled] { opacity: .65; cursor: wait; }
@media (max-width: 1240px) and (min-width: 1081px) {
  .cart-trigger-label { display: none; }
  .site-header .wrap { gap: 10px; }
  .nav-link { padding-left: 9px; padding-right: 9px; }
}
@media (max-width: 860px) {
  .service-selection-head { display: block; }
  .service-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-purchase .wrap { align-items: start; flex-direction: column; }
}
@media (max-width: 620px) {
  .service-choices { grid-template-columns: 1fr; gap: 14px; }
  .service-choice { padding: 22px; }
  .cart-trigger { gap: 5px; padding: 0 8px; }
  .cart-trigger-label { display: none; }
  .header-actions { gap: 8px; }
  .cart-dialog { border-radius: 0; }
  .cart-head { padding: 22px 20px 10px; }
  .cart-intro { padding: 0 20px; }
  .cart-steps { margin: 18px 20px 0; padding-bottom: 16px; }
  .cart-content { padding: 16px 20px max(24px, env(safe-area-inset-bottom)); }
  .cart-notice { padding: 10px 20px 0; }
  .cart-form-grid { grid-template-columns: 1fr; gap: 16px; }
}
@media print {
  .cart-dialog, .purchase-actions, .cart-trigger { display: none !important; }
}
