/* 官网操作：相同轮廓和尺寸，通过实心、描边区分主次。 */
body[data-page] :is(.button,.nav-order,.collection-toggle,.hero-secondary,.store-order,.mobile-dock>a,.mobile-dock>button,.store-search button,.product-bottom .text-link,.store-card .text-link,.brand-story-actions .text-link,.home-origin-ending .text-link,button.text-link[data-order]) {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:10px 20px;
  border:1px solid var(--jade);
  border-radius:8px;

  font-family:inherit;
  font-size:14px;
  font-weight:500;
  line-height:1.5;
  letter-spacing:.04em;
  cursor:pointer;
  transition:background-color .18s,color .18s,border-color .18s;
}
body[data-page] :is(.hero-secondary,.collection-toggle,.store-order,.mobile-dock>a) {
  background:transparent;
  border-color:#a6b4a6;
  color:var(--jade);
}
body[data-page] :is(.hero-secondary,.collection-toggle,.store-order,.mobile-dock>a):hover {
  background:var(--celadon);
  border-color:var(--jade);
}
/* 点单用浅青瓷底，门店与合作入口用乳白底。 */
body[data-page] :is(.home-stores .button,.home-cooperation .button,.mobile-dock>a) {
  color:var(--ink);
  background:var(--paper);
  border-color:#a9b4a5;
}
body[data-page] button[data-order]:not(footer *) {
  color:var(--ink);
  background:#e1e9de;
  border-color:#a1b39e;
}
body[data-page] :is(button[data-order],.home-stores .button,.home-cooperation .button,.mobile-dock>a):not(footer *):hover {
  background:#d5e1d3;
  border-color:#7c947e;
  color:#233e33;
}
body[data-page] .hero-secondary span { margin:0; }
body[data-page] .order-cup {
  display:inline-block;
  flex:none;
  width:19px;
  height:19px;
  background:currentColor;
  -webkit-mask:url('/brand-assets/order-cup.svg') center/contain no-repeat;
  mask:url('/brand-assets/order-cup.svg') center/contain no-repeat;
}
body[data-page] footer [data-order] { display:inline-flex; align-items:center; gap:6px; }
body[data-page] footer .order-cup { width:15px; height:15px; }
body[data-page] #order-dialog {
  width:min(390px,calc(100% - 36px));
  padding:36px 28px 28px;
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:0 18px 60px #193d3024;
  text-align:center;
}
body[data-page] #order-dialog .order-flavor-photo {
  width:84px;
  height:84px;
  object-fit:cover;
  border-radius:50%;
  margin:16px auto;
  mix-blend-mode:multiply;
}
body[data-page] #order-dialog #miniprogram-qr:not([hidden]) {
  box-sizing:content-box;
  padding:12px;
  background:white;
  margin:16px auto;
}
body[data-page] #order-dialog img[hidden] { display:none; }
body[data-page] #order-dialog::backdrop { background:#19372f65; }
@media(max-width:700px) {
  body[data-page] :is(.button,.hero-secondary,.store-order) { padding-inline:14px; }
  body[data-page] .store-order { margin-left:8px; }
}

/* 内页操作沿用首页的点单、跳转与选中状态。 */
body[data-page]:not([data-page=home]) :is(.button,.collection-toggle,.store-search button,.product-bottom .text-link,.store-card .text-link,.brand-story-actions .text-link,.home-origin-ending .text-link,.mobile-dock>a):not([data-order]) {
  color:#29463d;
  background:#faf7f0;
  border-color:#a9b4a5;
}
body[data-page]:not([data-page=home]) :is(.submit-button,#miniprogram-link) {
  color:#29463d;
  background:#e1e9de;
  border-color:#a1b39e;
}
body[data-page] .product-filters {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
body[data-page] .product-filters button {
  min-height:44px;
  padding:8px 14px;
  border:1px solid #a9b4a5;
  border-radius:8px;
  background:#faf7f0;
  color:#29463d;
}
body[data-page] .product-filters button[aria-pressed=true] {
  border-color:#7c947e;
  background:#e1e9de;
  font-weight:600;
}
body[data-page]:not([data-page=home]) :is(.button,.collection-toggle,.store-search button,.product-bottom .text-link,.store-card .text-link,.brand-story-actions .text-link,.home-origin-ending .text-link,.mobile-dock>a,.product-filters button):not([data-order]):not(:disabled):hover {
  color:#233e33;
  background:#d5e1d3;
  border-color:#7c947e;
}
body[data-page] .dialog-close {
  top:12px;
  right:12px;
  z-index:3;
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  padding:0;
  border:1px solid #29463d12;
  border-radius:50%;
  background:#eef0e9;
  color:#29463d;
  font-size:0;
  line-height:1;
  box-shadow:none;
  transition:background .18s ease,border-color .18s ease;
}
body[data-page] .dialog-close::before,
body[data-page] .dialog-close::after {
  content:"";
  position:absolute;
  top:50%;
  left:50%;
  width:15px;
  height:1.5px;
  border-radius:2px;
  background:currentColor;
  transform:translate(-50%,-50%) rotate(45deg);
  pointer-events:none;
}
body[data-page] .dialog-close::after { transform:translate(-50%,-50%) rotate(-45deg); }
body[data-page] .dialog-close:hover {
  background:#e0e7dc;
  border-color:#29463d30;
}
body[data-page] .dialog-close:active { background:#d4dfd0; }
body[data-page] .dialog-close:focus-visible {
  outline:2px solid #9c7446;
  outline-offset:3px;
}
@media(prefers-reduced-motion:reduce) {
  body[data-page] .dialog-close { transition:none; }
}
/* 风味分类与品牌页导航保持一致，选中项以细线标识。 */
body[data-page=products] .product-filters {
  gap:clamp(20px,2.5vw,36px);
  border-bottom:1px solid #dedfd3;
}
body[data-page=products] .product-filters button {
  position:relative;
  min-height:48px;
  padding:10px 0;
  border:0;
  border-bottom:2px solid transparent;
  border-radius:0;
  background:transparent;
  color:#606d62;
  font-size:14px;
  font-weight:400;
}
body[data-page=products] .product-filters button[aria-pressed=true] {
  border-color:#294f43;
  background:transparent;
  color:#294f43;
  font-weight:600;
}
body[data-page=products] .product-filters button:not(:disabled):hover {
  background:transparent;
  border-color:#a9b4a5;
  color:#294f43;
}
body[data-page=products] .product-filters button[aria-pressed=true]:hover {
  border-color:#294f43;
}
body[data-page=products] .product-filters button:focus-visible {
  outline:2px solid #294f43;
  outline-offset:3px;
}
@media(max-width:700px) {
  body[data-page=products] .product-filters { gap:8px 20px; }
  body[data-page=products] .product-filters button { font-size:13px; }
}

body[data-page=products]:not([data-page=home]) .product-filters button:not(:disabled):hover {
  background:transparent;
  border-color:#a9b4a5;
}
body[data-page=products]:not([data-page=home]) .product-filters button[aria-pressed=true]:hover {
  border-color:#294f43;
}

/* 全站主导航采用统一的乳白底和青瓷点单入口。 */
body[data-page] .site-header {
  background:rgba(250,247,240,.97);
  border-color:#dedfd3;
}
body[data-page] .site-header nav > a {
  color:#29463d;
}
body[data-page] .site-header nav > a[aria-current=page] {
  color:#294f43;
  border-bottom:1px solid #294f43;
}
body[data-page] .site-header .nav-order {
  color:#29463d;
  background:#e1e9de;
  border:1px solid #a1b39e;
  border-radius:8px;
}
body[data-page] .site-header .nav-order:hover {
  color:#233e33;
  background:#d5e1d3;
  border-color:#7c947e;
}
body[data-page] .site-header .menu-toggle { color:#29463d; }
@media(max-width:700px) {
  body[data-page] .site-header { gap:12px; }
  body[data-page] .site-header .menu-toggle {
    display:flex; align-items:center; justify-content:center;
    width:44px; height:44px; padding:10px; flex-shrink:0;
    border:0; background:transparent; border-radius:0;
  }
  body[data-page] .menu-toggle .menu-icon {
    position:relative; display:block; width:22px; height:1px;
    margin:0; background:currentColor; transition:background .2s;
  }
  body[data-page] .menu-icon::before,
  body[data-page] .menu-icon::after {
    content:""; position:absolute; left:0; width:22px; height:1px;
    background:currentColor; transition:transform .2s,top .2s;
  }
  body[data-page] .menu-icon::before { top:-7px; }
  body[data-page] .menu-icon::after { top:7px; }
  body[data-page] .menu-toggle[aria-expanded=true] .menu-icon { background:transparent; }
  body[data-page] .menu-toggle[aria-expanded=true] .menu-icon::before { top:0; transform:rotate(45deg); }
  body[data-page] .menu-toggle[aria-expanded=true] .menu-icon::after { top:0; transform:rotate(-45deg); }
  body[data-page] .site-header nav.is-open {
    padding:16px 24px 28px; gap:0;
    max-height:calc(100svh - 144px); overflow-y:auto;
    box-shadow:0 18px 28px #29463d0d;
  }
  body[data-page] .site-header nav>a { font-size:17px; padding:18px 0; letter-spacing:2px; }
  body[data-page] .site-header nav .nav-order { margin:24px 0 0; justify-content:center; }
}
@media(max-width:700px) {
  body[data-page] .site-header nav { background:#faf7f0; }
}
