/* 买家服务页与机身共用纸色、油墨和压边。机身内部控件沿用首页样式。 */
.theme-vending {
  --page-paper: #fffaf0;
  --page-edge: #9a9c83;
  --page-red: #a33f28;
  --page-shadow: 0 3px 0 #d4ccb5;
}
.theme-vending .page-main {
  max-width: 1120px;
  padding: clamp(22px, 4vw, 52px) clamp(16px, 3vw, 40px);
}
.theme-vending .reading-page { max-width: 870px; }
.theme-vending .page-main h1 {
  line-height: 1.22;
  text-wrap: balance;
  letter-spacing: -.035em;
}
.theme-vending .page-main h1::before {
  content: "";
  display: block;
  width: 88px;
  height: 10px;
  border: 1px solid #a9503c;
  border-radius: 3px 3px 5px 5px;
  background: repeating-linear-gradient(105deg, #b84b32 0 10px, #fff4d7 10px 20px);
  margin-bottom: 15px;
}
.theme-vending :is(.result-panel,.product-showcase) h1::before { margin-inline: auto; }
.theme-vending .page-main :is(.panel,.product-showcase,.orders-workspace,.product-card) {
  background-color: var(--page-paper);
  border: 1px solid var(--page-edge);
  border-radius: 14px;
  box-shadow: var(--page-shadow);
}
.theme-vending .reading-page :is(article.panel,section.panel) { padding: clamp(20px, 4vw, 40px); }
.theme-vending .reading-page h2 { font-size: 21px; margin-block: 1.4em .55em; }
.theme-vending .reading-page h2:first-child { margin-top: 0; }
.theme-vending .reading-page p { line-height: 1.85; }
.theme-vending .reading-page > :is(section,article,div) + :is(section,article,div) { margin-top: 24px; }
.theme-vending .pickup-steps { margin: 0; padding-left: 1.6em; }
.theme-vending .pickup-steps li { padding: 8px 0 8px 6px; }
.theme-vending .pickup-steps li::marker { font: 700 14px var(--mono); color: var(--page-red); }
.theme-vending .pickup-steps strong { display: block; }
.theme-vending .reading-page details { border-bottom: 1px dashed #bdb8a2; padding-block: 4px; }
.theme-vending .reading-page summary,
.theme-vending .orders-workspace summary {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-weight: 650;
  cursor: pointer;
}
.theme-vending .reading-page summary::after,
.theme-vending .orders-workspace summary::after { content: "+"; color: var(--page-red); font-size: 20px; }
.theme-vending :is(.reading-page,.orders-workspace) details[open] > summary::after { content: "−"; }
.theme-vending .reading-page details p { margin: 0 0 12px; }
.theme-vending .topic-page .product-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.theme-vending .topic-page .product-card { padding: 20px; }
.theme-vending .topic-page .product-copy h2 { margin: 4px 0; }
.theme-vending .topic-page .product-buy { gap: 12px; flex-wrap: wrap; }
.theme-vending .topic-page .product-benefits { display: none; }
.theme-vending .page-main .button {
  min-height: 46px;
  border: 1px solid #304d3e;
  border-radius: 9px;
  box-shadow: 0 3px 0 #b7baa3;
  text-align: center;
}
.theme-vending .page-main .button.secondary { background: #f6efdc; color: #294837; }
.theme-vending .page-main .button:not(:disabled):hover { background: #365b48; color: white; }
.theme-vending .page-main .button:not(:disabled):active { transform: translateY(2px); box-shadow: none; }
.theme-vending .page-main :is(input:not([type=hidden]),select,textarea) {
  color: var(--ink);
  background-color: #fffefa;
  border: 1px solid #8c927b;
  border-radius: 8px;
  font: inherit;
}
.theme-vending .page-main :is(input:not([type=radio],[type=checkbox]),select,textarea) { min-height: 46px; }
.theme-vending .page-main :is(input,select,textarea):hover:not(:disabled) { border-color: #4c6351; }
.theme-vending .page-main input:is([type=radio],[type=checkbox]) {
  appearance: none;
  width: 20px;
  height: 20px;
  margin: 0 .3em 0 0;
  vertical-align: middle;
}
.theme-vending .page-main input[type=radio] { border-radius: 50%; }
.theme-vending .page-main input[type=checkbox] { border-radius: 5px; }
.theme-vending .page-main input:is([type=radio],[type=checkbox]):checked {
  background: #315441;
  box-shadow: inset 0 0 0 4px #fffaf0;
}
.theme-vending .page-main input[type=checkbox]:checked::after {
  content: "✓"; display: grid; place-items: center; height: 100%; background: #315441; color: white;
}
.theme-vending .page-main .payment-option:has(:checked) { border-color: #45634e; background: #e6eddd; }
.theme-vending .page-main :is(input,select,textarea):is(:user-invalid,[aria-invalid=true]) {
  border: 2px solid #a52e1b;
  background-color: #fff3ed;
}
.theme-vending .page-main :is(button,input,select,textarea):disabled {
  background-color: #e8e4d7;
  color: #625f53;
  opacity: 1;
  box-shadow: none;
  cursor: not-allowed;
}
.theme-vending :is(.page-main,.site-header,.site-footer) :focus-visible {
  outline: 3px solid var(--page-red);
  outline-offset: 3px;
}
.theme-vending .page-main .result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.theme-vending .support-note { margin-top: 24px; padding-top: 12px; border-top: 1px dashed var(--page-edge); }
.theme-vending .panel.result-panel { padding: clamp(24px, 4vw, 48px); }
.theme-vending .result-panel > :last-child { margin-bottom: 0; }
.theme-vending .page-main :is(.receipt,.order-ticket) {
  position: relative;
  background: #fffdf4;
  border: 1px solid #aaa38a;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 3px 9px #56422717;
  margin-bottom: 14px;
}
.theme-vending .page-main :is(.receipt,.order-ticket)::before {
  content: "";
  position: absolute;
  top: calc(100% - 1px);
  left: -1px;
  right: -1px;
  height: 9px;
  background: linear-gradient(135deg,#fffdf4 33%,#aaa38a 35% 40%,transparent 42%) 0 0 / 16px 10px repeat-x,
              linear-gradient(225deg,#fffdf4 33%,#aaa38a 35% 40%,transparent 42%) 0 0 / 16px 10px repeat-x;
}
.theme-vending .page-main :is(.receipt,.order-ticket)::after {
  content: "";
  display: block;
  width: 86px;
  height: 16px;
  margin: 25px auto 0;
  background: repeating-linear-gradient(90deg,#415648 0 2px,transparent 2px 4px,#415648 4px 5px,transparent 5px 7px,#415648 7px 11px,transparent 11px 14px);
}
.theme-vending :is(.order-number,.price-tag,.order-ticket .summary-line > :last-child,#remaining,.summary-total strong) {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.theme-vending :is(.price-tag,.summary-line strong,.topic-page .price,.order-amount) {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid #c2a46d;
  border-radius: 4px;
  background: #ffedbc;
  color: #6a351b;
  font-variant-numeric: tabular-nums;
}
.theme-vending .summary-line { gap: 12px; }
.theme-vending .summary-line > :last-child { min-width: 0; overflow-wrap: anywhere; }
.theme-vending .product-showcase {
  background: radial-gradient(ellipse at 50% 34%,#fff9dc,transparent 65%), #eee4c8;
}
.theme-vending .product-showcase .can { width: 158px; height: 204px; }
.theme-vending .product-showcase .can-showcase { min-height: 240px; }
.theme-vending .product-showcase .can-logo > span { font-size: 30px; }
.theme-vending .page-main form + .button { margin-top: 16px; }
.theme-vending .orders-heading { margin-bottom: 24px; }
.theme-vending .order-search-panel h2 { margin-top: 0; }
.theme-vending .orders-main .query-form { gap: 8px; }
.theme-vending .orders-main .query-form > label { margin: 0; }
.theme-vending .orders-main .query-form label .form-input { display: block; margin-top: 8px; }
.theme-vending .orders-main .form-input { width: 100%; padding-inline: 14px; }
.theme-vending .order-input-wrap .form-input { padding-left: 46px; }
.theme-vending .order-input-hint { margin: 0 0 8px; }
.theme-vending .query-form button { margin-top: 8px; }
.theme-vending .order-search-panel details { margin-top: 24px; border-block: 1px dashed var(--page-edge); }
.theme-vending .order-search-panel details form { padding-bottom: 18px; }
.theme-vending .order-search-panel details p,
.theme-vending .pickup-hint { font-size: 14px; line-height: 1.7; color: var(--muted); }
.theme-vending .order-result-panel { background-color: #eee9d9; }
.theme-vending .order-ticket { padding: clamp(16px, 3vw, 30px); }
.theme-vending .order-status[data-state=pending] { color: #73501c; }
.theme-vending .buyer-order p { margin: 6px 0; }
.theme-vending .buyer-order .button { margin-top: 12px; }
.theme-vending .buyer-signin,
.theme-vending .buyer-nav :is(summary,button,a) { min-height: 44px; min-width: 44px; }
.theme-vending .buyer-nav > div { background: var(--page-paper); color: var(--ink); border: 1px solid var(--page-edge); box-shadow: var(--page-shadow); }
.theme-vending .buyer-nav summary { padding: 0 10px; border: 1px solid var(--page-edge); border-radius: 8px; }
.theme-vending .buyer-nav :is(a,button):hover { background: #eee8d4; }
.theme-vending .footer-bottom { flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.theme-vending .footer-bottom nav { display: flex; flex-wrap: wrap; gap: 0 14px; }
.theme-vending :is(.footer-bottom nav,.header-inner nav) a { white-space: nowrap; }
@media (max-width: 760px) {
  .theme-vending .page-main { padding-inline: 16px; }
  .theme-vending .page-main h1 { font-size: clamp(26px, 7.8vw, 34px); }
  .theme-vending .page-main .panel { padding: 22px 18px; }
  .theme-vending .footer-bottom { display: flex; flex-direction: column; align-items: flex-start; }
  .theme-vending .footer-bottom nav { display: grid; grid-template-columns: repeat(3,max-content); gap: 0 16px; }
  .theme-vending .header-inner:has(.buyer-nav,.buyer-signin) nav { flex-basis: 100%; order: 2; justify-content: flex-start; }
  .theme-vending .order-search-panel,.theme-vending .order-result-panel { padding: 22px 18px; }
  .theme-vending .order-ticket-heading { flex-wrap: wrap; }
}
.theme-vending .header-inner :is(.buyer-signin,.buyer-nav summary) {
  color:#264c3a; border-color:#73856e; background:#faf4de; box-shadow:0 2px 0 #d3cbb1;
}
.theme-vending .header-inner :is(.buyer-signin:hover,.buyer-nav[open] summary) { background:#e9ecda; }
.theme-vending .checkout-methods { display:grid; gap:12px; margin-top:16px; }
.theme-vending .pickup-steps + .button { margin-top:18px; }
.theme-vending .product-detail + .topic-links { margin-top:24px; }
.theme-vending .topic-links ul { list-style:none; padding:0; display:grid; gap:8px; }
.theme-vending .topic-links li a { display:flex; padding:8px 14px; border:1px solid var(--page-edge); border-radius:8px; background:#f5f0df; }
.theme-vending .topic-links li a::after { content:""; flex:none; width:7px; height:7px; margin-left:auto; border:solid currentColor; border-width:1.5px 1.5px 0 0; transform:rotate(45deg); }
.theme-vending .order-search-panel details.recovery-card {
  padding:8px 16px; border:1px solid var(--page-edge); border-radius:10px; background:#f6f2e4;
}
.theme-vending .order-search-panel .pickup-hint { margin-top:20px; padding-top:16px; border-top:1px dashed var(--page-edge); }
.theme-vending .topic-page .product-card { display:grid; grid-template-columns:112px minmax(0,1fr); align-content:start; align-items:center; gap:10px 16px; min-height:0; }
.theme-vending .topic-page .can-showcase { grid-row:span 2; margin:0; height:auto; width:auto; }
.theme-vending .topic-page .can { width:108px; height:143px; }
.theme-vending .topic-page .can b { font-size:14px; white-space:normal; overflow-wrap:anywhere; }
.theme-vending .topic-page .product-buy { margin:0; justify-content:flex-start; }
.theme-vending .topic-page .product-copy h2 a { white-space:normal; }
.theme-vending .topic-page .product-copy .description { margin:4px 0; }
.theme-vending .pickup-line { border-top:1px dashed var(--page-edge); padding:12px 0 20px; }
.theme-vending .buyer-status { display:inline-block; padding:1px 9px; border-radius:20px; font-weight:650; background:#ebe6da; color:#565346; }
.theme-vending .buyer-status[data-state=paid] { background:#dcebdd; color:#235436; }
.theme-vending .buyer-status[data-state=pending] { background:#ffebbb; color:#75490c; }
.theme-vending .buyer-status[data-state=refund] { background:#f3dfd7; color:#7b3a2c; }
.payment-items { max-width:32rem; margin:16px auto; }
.payment-items > div { display:flex; justify-content:space-between; gap:16px; padding:8px 0; border-bottom:1px dashed var(--line); }
.payment-items dd { margin:0; text-align:right; }
