/* 對齊原站色票與版面：初茶弁飯 customer-web */
:root {
  --color-main-0: #d45a16;
  --color-main-1: #ed6d23;
  --color-main-2: #261613;
  --color-main-3: #f9fafb;
  --radius: 1rem;
  --max-width: 1280px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Noto Sans TC",
    "PingFang TC", "Microsoft JhengHei", sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-main-2);
  background: var(--color-main-3);
  line-height: 1.5;
  min-height: 100vh;
}

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

img {
  max-width: 100%;
  display: block;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #e8e8e8;
  box-shadow: inset 0 -1px 3px rgba(0, 0, 0, 0.03);
}

.site-header__inner {
  position: relative;
  min-height: 80px;
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
  align-items: stretch;
  gap: 1rem;
}

.brand {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--color-main-0);
  font-size: 1.125rem;
}

.brand__logo {
  display: block;
  width: 88px;
  height: 75px;
  object-fit: contain;
  object-position: left top;
}

.brand__en {
  margin-top: 8px;
  line-height: 1;
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(38, 22, 19, 0.6);
}

/* Top nav：桌機置中；平板／手機改漢堡選單 */
.site-nav {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 5;
  max-width: 100%;
}

.site-nav__inner {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.15rem;
  overflow: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.site-nav__inner::-webkit-scrollbar {
  display: none;
}

.site-nav__item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0.4rem 0.8rem 0.45rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(38, 22, 19, 0.7);
  border-bottom: 3px solid transparent;
  margin-bottom: -1px; /* 蓋住 header 底線，視覺貼齊 */
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.site-nav__item:hover {
  color: var(--color-main-2);
}

.site-nav__item.is-active {
  color: var(--color-main-2);
  font-weight: 700;
  border-bottom-color: #6a9e42;
}

.site-nav__drop {
  position: relative;
  flex: 0 0 auto;
}

.site-nav__menu {
  position: absolute;
  top: calc(100% - 2px);
  left: 50%;
  z-index: 50;
  min-width: 8.75rem;
  padding: 0.35rem 0;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.75rem;
  box-shadow: 0 14px 32px rgba(38, 22, 19, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(-0.35rem);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}

.site-nav__drop:hover .site-nav__menu,
.site-nav__drop:focus-within .site-nav__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.site-nav__sub {
  display: block;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(38, 22, 19, 0.78);
  white-space: nowrap;
}

.site-nav__sub:hover,
.site-nav__sub.is-active {
  color: var(--color-main-2);
  background: rgba(106, 158, 66, 0.08);
}

.nav-toggle {
  display: none;
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--color-main-2);
  cursor: pointer;
  padding: 0;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: rgba(38, 22, 19, 0.06);
  outline: none;
}

.nav-toggle__icon--close {
  display: none;
}

.site-header.is-nav-open .nav-toggle__icon--menu {
  display: none;
}

.site-header.is-nav-open .nav-toggle__icon--close {
  display: block;
}

/* 平板／手機：右側漢堡，點開向下展開 */
@media (max-width: 1023px) {
  .page {
    touch-action: pan-y;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    bottom: auto;
    transform: none;
    z-index: 30;
    max-width: none;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  }

  .site-header.is-nav-open .site-nav {
    display: block;
  }

  .site-nav__inner {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0;
    overflow: visible;
    padding: 0.35rem 0.75rem 0.75rem;
  }

  .site-nav__item {
    width: 100%;
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 0;
    font-size: 1rem;
  }

  .site-nav__item:last-child {
    border-bottom: none;
  }

  .site-nav__item.is-active {
    border-bottom-color: rgba(0, 0, 0, 0.06);
    background: rgba(106, 158, 66, 0.08);
    border-left: 3px solid #6a9e42;
    padding-left: calc(0.75rem - 3px);
  }

  .site-nav__drop {
    width: 100%;
  }

  .site-nav__menu {
    position: static;
    left: auto;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    min-width: 0;
    margin: 0 0 0.15rem;
    padding: 0 0 0.25rem 0.85rem;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    transition: none;
  }

  .site-nav__drop:hover .site-nav__menu,
  .site-nav__drop:focus-within .site-nav__menu {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-nav__sub {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .site-nav__item.is-active:last-child {
    border-bottom: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn:hover {
  opacity: 0.9;
}

.btn--primary {
  background: var(--color-main-1);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--color-main-0);
  border: 1px solid var(--color-main-0);
}

.btn--outline:hover {
  background: rgba(0, 69, 135, 0.05);
  opacity: 1;
}

.btn--sm {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

.btn--lg {
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
}

/* Main */
.main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Hero */
.hero {
  position: relative;
  padding: 2.5rem 1rem 2rem;
  text-align: center;
  overflow: hidden;
}

.hero--banner {
  display: block;
  width: 100%;
  min-height: 0;
  max-height: 640px;
  padding: 0;
  overflow: hidden;
}

.hero__bg {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 640px;
  object-fit: cover;
  object-position: center;
}

.hero--banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0)
  );
}

.hero__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-main-0);
  line-height: 1.375;
}

.hero__subtitle {
  margin: 0.75rem auto 0;
  max-width: 36rem;
  color: rgba(38, 22, 19, 0.7);
}

.hero__actions {
  position: relative;
  z-index: 2;
  margin-top: 0;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero--banner .hero__actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(1.25rem + 80px);
  z-index: 2;
}

@media (max-width: 1023px) {
  .hero--banner .hero__actions {
    left: 50%;
    right: auto;
    top: calc(50% + 50px);
    bottom: auto;
    width: max-content;
    max-width: calc(100% - 1.5rem);
    transform: translate(-50%, -50%);
  }
}

.hero--banner .btn--outline {
  color: var(--color-main-0);
  border-color: var(--color-main-0);
  background: rgba(255, 247, 237, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 1.5rem;
  padding: 1.125rem 2.25rem;
  border-radius: 0.75rem;
}

.hero--banner .btn--outline:hover {
  background: rgba(255, 247, 237, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--color-main-0);
  border-color: var(--color-main-0);
  opacity: 1;
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 1.875rem;
  }

  .hero--photo {
    min-height: 420px;
  }
}

/* How it works：手機 2×2 卡片、桌機橫向四步 */
.how {
  --how-orange: #e8652b;
  --how-ink: #1c1614;
  --how-script: "Ma Shan Zheng", "STKaiti", "KaiTi", "DFKai-SB", cursive;
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 1.2rem 0.75rem 1.4rem;
  background: #f7f1e8;
  border-radius: 0;
}

.how__inner {
  position: relative;
  z-index: 1;
  max-width: 22.5rem;
  margin: 0 auto;
}

.how__title {
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.12em;
  text-align: center;
  font-size: clamp(1.12rem, 4.6vw, 1.55rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--how-ink);
  line-height: 1.15;
}

.how__title-num {
  font-family: var(--how-script);
  color: var(--how-orange);
  font-size: 1.85em;
  font-weight: 400;
  line-height: 0.72;
  transform: translateY(0.06em);
}

.how__title-rest {
  font-weight: 800;
}

.how__sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0.4rem 0 0;
  font-size: clamp(0.68rem, 2.8vw, 0.82rem);
  letter-spacing: 0.12em;
  color: var(--how-ink);
}

.how__sub::before,
.how__sub::after {
  content: "";
  width: 2.1rem;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}

.how__steps {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 0.6rem;
}

.how__step {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 0.4rem;
  padding: 0.85rem 0.7rem 0.85rem 0.6rem;
  background: #fff;
  border-radius: 0.95rem;
  box-shadow: 0 8px 20px rgba(90, 40, 10, 0.08);
}

.how__icon {
  position: relative;
  width: 2.65rem;
  height: 2.65rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.how__icon svg {
  width: 86%;
  height: 86%;
}

.how__num {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 9999px;
  background: var(--how-orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  z-index: 2;
}

.how__copy {
  min-width: 0;
}

.how__step-title {
  margin: 0;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--how-ink);
  letter-spacing: 0.01em;
}

.how__step-title::after {
  content: "";
  display: block;
  width: 1.35rem;
  height: 2px;
  margin: 0.22rem 0 0.2rem;
  background: var(--how-orange);
}

.how__step-desc {
  margin: 0;
  color: rgba(38, 22, 19, 0.58);
  font-size: 0.68rem;
  line-height: 1.35;
}

.how__tag {
  margin: 0.85rem 0 0;
  text-align: center;
  font-family: var(--how-script);
  font-size: clamp(1rem, 4.2vw, 1.2rem);
  color: var(--how-ink);
  letter-spacing: 0.04em;
}

.how__tag-accent {
  position: relative;
  color: var(--how-orange);
  display: inline-block;
  padding-bottom: 0.08em;
}

.how__tag-accent::after {
  content: "";
  position: absolute;
  left: -6%;
  right: -10%;
  bottom: -0.04em;
  height: 0.28em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 8' fill='none'%3E%3Cpath d='M1.5 5.2C18 8.1 42 1.2 78.5 4.4' stroke='%23e8652b' stroke-width='2.3' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.how__deco,
.how__bg {
  display: none;
}

.how__deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

@media (min-width: 768px) {
  .how {
    padding: 0;
    background: #fbf3e9;
    min-height: min(403px, calc(100vw * 373 / 1776));
  }

  .how__bg--desktop {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
    filter: blur(10px);
    transform: scale(1.06);
  }

  .how::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
      radial-gradient(
        ellipse 52% 68% at 50% 48%,
        rgba(251, 243, 233, 0.78) 0%,
        rgba(251, 243, 233, 0.48) 52%,
        rgba(251, 243, 233, 0.16) 100%
      );
  }

  .how__inner {
    position: relative;
    z-index: 2;
    max-width: 56rem;
    margin: 0 auto;
    padding: 1.1rem 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: min(403px, calc(100vw * 373 / 1776));
  }

  .how__title {
    font-size: 2rem;
  }

  .how__title-num {
    font-size: 2.05em;
  }

  .how__sub {
    margin-top: 0.55rem;
    font-size: 0.92rem;
    letter-spacing: 0.16em;
  }

  .how__sub::before,
  .how__sub::after {
    width: 3.2rem;
  }

  .how__steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    grid-template-columns: none;
    gap: 0;
    margin-top: 1.15rem;
  }

  .how__step {
    flex: 1 1 0;
    width: 0;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    padding: 0 0.35rem;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }

  .how__step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 1.35rem;
    right: -0.2rem;
    width: 0.42rem;
    height: 0.42rem;
    border-right: 2px solid var(--how-orange);
    border-top: 2px solid var(--how-orange);
    transform: rotate(45deg);
    z-index: 2;
  }

  .how__icon {
    width: 4.1rem;
    height: 4.1rem;
    background: #fff;
    box-shadow: 0 3px 12px rgba(80, 40, 10, 0.08);
  }

  .how__icon svg {
    width: 64%;
    height: 64%;
  }

  .how__num {
    top: -0.12rem;
    left: calc(50% - 2.2rem);
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.72rem;
  }

  .how__step-title {
    margin: 0.5rem 0 0;
    font-size: 1.02rem;
  }

  .how__step-title::after {
    display: none;
  }

  .how__step-desc {
    margin: 0.15rem 0 0;
    font-size: 0.82rem;
    color: rgba(38, 22, 19, 0.58);
  }

  .how__tag {
    margin-top: 1.1rem;
    font-size: 1.55rem;
  }
}

@media (min-width: 768px) and (max-width: 1099px) {
  .how__title {
    font-size: 1.55rem;
  }

  .how__icon {
    width: 3.2rem;
    height: 3.2rem;
  }

  .how__num {
    left: calc(50% - 1.75rem);
  }

  .how__step-title {
    font-size: 0.88rem;
  }

  .how__step-desc {
    font-size: 0.72rem;
  }

  .how__tag {
    font-size: 1.25rem;
  }
}

@media (min-width: 1100px) {
  .how__inner {
    padding: 1rem 2rem 1.15rem;
    max-width: 62rem;
  }

  .how__title {
    font-size: 2.15rem;
  }

  .how__icon {
    width: 4.5rem;
    height: 4.5rem;
  }

  .how__num {
    left: calc(50% - 2.4rem);
  }
}

/* Buildings */
.buildings {
  padding: 2rem 1rem 2.5rem;
}

.buildings__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-main-0);
}

.buildings__city {
  margin: 1rem 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(38, 22, 19, 0.7);
}

.buildings__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.building-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: #fff;
  padding: 0.75rem 1rem;
  transition: border-color 0.15s ease;
}

.building-card:hover {
  border-color: var(--color-main-1);
}

.building-card__thumb {
  flex: 0 0 3.25rem;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.5rem;
  object-fit: cover;
  object-position: center;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  background: #e8e4df;
}

.building-card__text {
  min-width: 0;
  flex: 1;
}

.building-card__name {
  display: block;
  font-weight: 500;
  color: var(--color-main-2);
}

.building-card__area {
  display: block;
  margin-top: 0.125rem;
  font-size: 0.75rem;
  color: rgba(38, 22, 19, 0.5);
}

.buildings__cta-wrap {
  margin-top: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .buildings__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .buildings__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 2rem 1rem;
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.site-footer__brand {
  font-weight: 700;
  color: var(--color-main-0);
  font-size: 1rem;
}

.site-footer__desc {
  margin: 0.5rem 0 0;
  max-width: 28rem;
  font-size: 0.875rem;
  color: rgba(38, 22, 19, 0.65);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.875rem;
}

.site-footer__nav a:hover {
  color: var(--color-main-1);
}

.site-footer__copy {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(38, 22, 19, 0.5);
}

@media (min-width: 768px) {
  .site-footer__inner {
    grid-template-columns: 1.5fr 1fr;
    align-items: start;
  }
}

/* Login page */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}

.login-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.35;
}

.login-bg__grid {
  transform: rotate(24.65deg);
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 220px));
  gap: 14px;
}

.login-bg__tile {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(
    135deg,
    rgba(0, 69, 135, 0.15),
    rgba(234, 85, 57, 0.25)
  );
}

.login-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  width: 100%;
  max-width: 24rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.login-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-main-0);
  text-align: center;
}

.login-card__hint {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(38, 22, 19, 0.55);
  text-align: center;
}

.login-card form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.login-card label {
  font-size: 0.8125rem;
  color: rgba(38, 22, 19, 0.7);
}

.login-card input {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
}

.login-card input:focus {
  outline: 2px solid rgba(234, 85, 57, 0.35);
  border-color: var(--color-main-1);
}

.login-card .btn {
  width: 100%;
  margin-top: 0.25rem;
}

.login-back {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(38, 22, 19, 0.55);
}

.login-back:hover {
  color: var(--color-main-1);
}

/* Buildings standalone page */
.page-head {
  padding: 2rem 1rem 0.5rem;
}

.page-head h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-main-0);
}

.page-head p {
  margin: 0.5rem 0 0;
  color: rgba(38, 22, 19, 0.65);
}

.content-page {
  padding: 2rem 0 3.5rem;
  background: var(--color-main-3);
}

.content-page__inner {
  max-width: 720px;
}

.content-page__inner--narrow {
  max-width: 520px;
  text-align: center;
}

.page-hero,
.contact-hero,
.order-banner {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 0;
  max-height: 640px;
  background: #e8eef3;
}

.page-hero::after,
.contact-hero::after,
.order-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0)
  );
}

.main:has(.page-hero),
.main:has(.contact-hero),
.main:has(.hero--banner),
.main:has(.order-page) {
  max-width: none;
}

.main:has(.hero--banner) .how {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.main:has(.hero--banner) .buildings {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.page-hero img,
.contact-hero img,
.order-banner img {
  position: relative;
  inset: auto;
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 640px;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 767px) {
  .hero--banner .btn--outline {
    font-size: 1.05rem;
    padding: 0.7rem 1.35rem;
  }
}

.contact-body {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.content-page__title {
  margin: 0 0 1.5rem;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-main-2);
}

.content-page__title--center {
  color: #fc6832;
  margin-bottom: 0.75rem;
}

.content-page__lead {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #999;
}

.contact-qr {
  display: block;
  width: 210px;
  max-width: 100%;
  margin: 0 auto 1.5rem;
}

.contact-qr img {
  width: 100%;
  height: auto;
}

.content-page__line {
  display: inline-flex;
}

.content-page__hint,
.content-page__more {
  margin: 1.5rem 0 0;
  font-size: 0.9rem;
  color: rgba(38, 22, 19, 0.65);
}

.content-page__hint a,
.content-page__more a {
  color: var(--color-main-0);
  font-weight: 600;
}

.content-page__hint a:hover,
.content-page__more a:hover {
  text-decoration: underline;
}

.faq-hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 0;
  max-height: 640px;
  background: #eee;
}

.faq-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0)
  );
}

.faq-hero img {
  position: relative;
  inset: auto;
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 640px;
  object-fit: cover;
  object-position: center;
}

.main:has(.faq-hero) {
  max-width: none;
}

.faq-guide {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 2rem;
  width: 100%;
}

.faq-guide__eyebrow {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-main-0);
}

.faq-guide__join {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.faq-guide__join-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-main-2);
  letter-spacing: 0.02em;
}

.faq-guide__logo {
  display: block;
  width: 100px;
  height: 86px;
  object-fit: contain;
  object-position: center;
  flex: 0 0 auto;
}

.faq-guide__qr {
  display: block;
  width: 364px;
  max-width: 100%;
}

.faq-guide__qr img,
.faq-guide__steps {
  display: block;
  width: 100%;
  height: auto;
}

.faq-guide__steps {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin-top: 0.5rem;
}

@media (max-width: 639px) {
  .faq-guide__join-text {
    font-size: 1.05rem;
  }

  .faq-guide__logo {
    width: 80px;
    height: 69px;
  }
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 1rem;
  padding: 0.15rem 1.1rem 0.15rem;
}

.faq-item__q {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.9rem 0;
  font-weight: 700;
  color: var(--color-main-2);
}

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

.faq-item__icon {
  flex: 0 0 auto;
  color: var(--color-main-0);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-item__icon {
  transform: rotate(180deg);
}

.faq-item__a {
  margin: 0 0 1rem;
  padding-top: 0.15rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(38, 22, 19, 0.75);
}

/* ===== 訂餐頁（大樓選擇） ===== */
.visually-hidden,
.fl-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.is-hidden {
  display: none !important;
}

.order-page {
  padding: 1.25rem 0 3rem;
  background: var(--color-main-3);
}

.order-page__inner {
  max-width: 720px;
}

.order-banner {
  padding: 0;
  margin: 0;
  border-radius: 0;
}

.order-banner__bg {
  z-index: 0;
  object-position: center;
}

.order-banner__bg.is-pending {
  opacity: 0;
}

.order-banner__bg.is-loaded {
  opacity: 1;
  transition: opacity 0.28s ease;
}

.order-banner--photo {
  padding: 0;
  background: #e8eef3;
}

.order-banner--carousel .order-banner__stage {
  position: relative;
  width: 100%;
  aspect-ratio: auto;
  overflow: hidden;
}

.order-banner--carousel .order-banner__bg:not(.is-active) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  opacity: 0;
  z-index: 0;
}

.order-banner--carousel .order-banner__bg.is-active {
  position: relative;
  inset: auto;
  display: block;
  width: 100%;
  height: auto;
  max-height: 640px;
  object-fit: cover;
  opacity: 1;
  z-index: 1;
  transition: opacity 0.45s ease;
}

.order-banner__nav,
.order-banner__dots {
  position: absolute;
  z-index: 2;
}

.order-banner__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #261613;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(38, 22, 19, 0.16);
}

.order-banner__nav--prev {
  left: 0.75rem;
}

.order-banner__nav--next {
  right: 0.75rem;
}

.order-banner__nav:hover,
.order-banner__nav:focus-visible {
  background: #fff;
}

.order-banner__dots {
  left: 0;
  right: 0;
  bottom: 0.75rem;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}

.order-banner__dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.order-banner__dot.is-active {
  width: 1.35rem;
  background: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .order-banner--carousel .order-banner__bg {
    transition: none;
  }
}

.order-banner--photo .order-banner__copy,
.order-banner--photo .order-banner__pays {
  position: relative;
  z-index: 1;
}

.order-banner--photo .order-banner__title {
  color: #fff;
}

.order-banner--photo .order-banner__sub {
  color: rgba(255, 255, 255, 0.85);
}

.order-banner--photo .order-banner__pay-icon {
  background: rgba(255, 255, 255, 0.95);
}

.order-banner--photo .order-banner__pay-label {
  color: rgba(255, 255, 255, 0.8);
}

.order-banner__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: #1f1a17;
  letter-spacing: 0.02em;
}

.order-banner__title em {
  font-style: normal;
  color: var(--color-main-0);
}

.order-banner__sub {
  margin: 0.4rem 0 0;
  color: rgba(38, 22, 19, 0.65);
  font-size: 0.95rem;
}

.order-banner__badge {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--color-main-0);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

.order-banner__pays {
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.order-banner__pays li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 3.25rem;
}

.order-banner__pay-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-main-0);
}

.order-banner__pay-label {
  font-size: 0.65rem;
  color: rgba(38, 22, 19, 0.55);
  text-align: center;
}

.order-channels {
  position: relative;
  isolation: isolate;
  display: flex;
  width: min(19.8rem, 100%);
  margin: 0 auto 1.15rem;
  padding: 4px;
  gap: 0;
  background: #e8e8e8;
  border-radius: 999px;
  box-shadow:
    inset 2px 3px 5px rgba(0, 0, 0, 0.28),
    inset 0 2px 3px rgba(0, 0, 0, 0.16);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.order-channels__thumb {
  position: absolute;
  z-index: 0;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  width: calc((100% - 8px) / var(--ch-n, 2));
  border-radius: 999px;
  background: var(--color-main-1);
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.18),
    0 5px 10px rgba(0, 0, 0, 0.22);
  transform: translate3d(calc(var(--ch-i, 0) * 100%), 0, 0);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  will-change: transform;
}

.order-channels__item {
  position: relative;
  z-index: 1;
  flex: 1;
  display: block;
  text-align: center;
  text-decoration: none;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.8);
  line-height: 1.2;
  background: transparent;
  outline: none;
  box-shadow: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  transition: color 0.38s cubic-bezier(0.22, 1, 0.36, 1), transform 0.2s ease, text-shadow 0.2s ease;
}

.order-channels__item:not(.is-active) {
  background-image: linear-gradient(
    105deg,
    rgba(38, 22, 19, 0.78) 0%,
    rgba(38, 22, 19, 0.78) 42%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(38, 22, 19, 0.78) 58%,
    rgba(38, 22, 19, 0.78) 100%
  );
  background-size: 240% 100%;
  background-position: 120% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: order-ch-shine 2.8s ease-in-out infinite;
}

.order-channels__item:visited,
.order-channels__item:focus,
.order-channels__item:active {
  outline: none;
  box-shadow: none;
}

.order-channels__item.is-active,
.order-channels__item.is-active:visited,
.order-channels__item.is-active:hover,
.order-channels__item.is-active:focus,
.order-channels__item.is-active:active {
  background: transparent;
  background-image: none;
  color: #fff;
  -webkit-text-fill-color: #fff;
  animation: none;
  transform: none;
  text-shadow: none;
  cursor: default;
  box-shadow: none;
}

.order-channels__item:focus-visible {
  outline: 2px solid var(--color-main-1);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .order-channels__item:not(.is-active):hover {
    animation: none;
    background-image: none;
    color: var(--color-main-1);
    -webkit-text-fill-color: var(--color-main-1);
    text-shadow: 0 0 10px rgba(237, 109, 35, 0.35);
    transform: translateY(-1px) scale(1.04);
  }
}

@keyframes order-ch-shine {
  0%, 12% {
    background-position: 120% 0;
  }
  42%, 100% {
    background-position: -20% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .order-channels__thumb {
    transition: none;
  }

  .order-channels__item:not(.is-active) {
    animation: none;
    background-image: none;
    color: rgba(0, 0, 0, 0.8);
    -webkit-text-fill-color: rgba(0, 0, 0, 0.8);
  }

  .order-channels__item:not(.is-active):hover {
    transform: none;
  }
}

.order-select__title {
  margin: 0 0 1rem;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1f1a17;
}

.order-filters {
  display: grid;
  gap: 0.65rem;
}

.order-filters__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.order-select select,
.order-search input {
  width: 100%;
  border: 1px solid #e5e5e5;
  border-radius: 0.75rem;
  background: #fff;
  color: #1f1a17;
  font: inherit;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.15s ease;
}

.order-select select:focus,
.order-search input:focus {
  border-color: var(--color-main-0);
}

.order-tabs {
  margin-top: 1.25rem;
  display: flex;
  gap: 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.order-tabs__item {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.65rem 0.1rem;
  font: inherit;
  font-weight: 600;
  color: rgba(38, 22, 19, 0.45);
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
}

.order-tabs__item.is-active {
  color: var(--color-main-0);
  border-bottom-color: var(--color-main-0);
}

.order-grid {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0.35rem; /* 預留 hover 上浮空間，避免被裁切 */
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  overflow: visible;
}

.order-card-wrap {
  --order-pad-y: 0.7rem;
  --order-pad-x: 0.8rem;
  --order-fav-size: 2.6rem;
  --order-fav-right: 0.7rem;
  --order-title-clear: calc(var(--order-fav-size) + var(--order-fav-right) - var(--order-pad-x) + 0.2rem);
  position: relative;
  z-index: 0;
  transition: z-index 0s linear 0.22s;
}

.order-card-wrap:hover {
  z-index: 5;
  transition-delay: 0s;
}

.order-card {
  --order-card-img: 6.5rem; /* 約為舊直式卡片高度的一半；比首頁 thumb 3.25rem 大 */
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.85rem;
  padding: var(--order-pad-y) var(--order-pad-x);
  min-height: calc(var(--order-card-img) + 1.4rem);
  border-radius: 1rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  transform: translateY(0);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

a.order-card {
  cursor: pointer;
}

/* 卡片上浮＋陰影；不 scale 整卡，避免文字被放大後變糊 */
.order-card-wrap:hover .order-card {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

.order-card__media {
  position: relative;
  flex: 0 0 var(--order-card-img);
  width: var(--order-card-img);
  height: var(--order-card-img);
  border-radius: 0.7rem;
  overflow: hidden;
  background:
    linear-gradient(135deg, hsla(var(--hue), 55%, 62%, 0.85), hsla(calc(var(--hue) + 40), 45%, 42%, 0.9)),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.08) 0 8px,
      transparent 8px 16px
    );
}

.order-card__media--photo {
  background: #e8e4df;
}

.order-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.28s ease;
}

.order-card-wrap:hover .order-card__img {
  transform: scale(1.06);
}

.order-card-wrap:hover .order-card__media:not(.order-card__media--photo) {
  transform: scale(1.04);
}

.order-card__body {
  flex: 1;
  min-width: 0;
  min-height: var(--order-card-img);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0;
}

.order-card__head {
  padding: 0 var(--order-title-clear) 0 0;
  margin: 0;
  flex-shrink: 0;
}

.order-card__name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-weight: 700;
  color: #1f1a17;
  font-size: 1.05rem;
  line-height: 1.3;
}

.order-card__notices {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
  margin: 0 0 var(--order-rule-gap, 0.4rem);
  padding: 0;
  flex-shrink: 0;
}

.order-card__notices:empty {
  min-height: 1.35em;
}

.order-card__notice {
  margin: 0;
  padding: 0;
  max-width: 100%;
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.4;
  color: #992600;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.order-card__notice--bold {
  font-weight: 700;
}

.order-card__notice--red {
  font-weight: 700;
  color: #e52910;
}

.order-card__notice--highlight {
  display: inline-block;
  height: auto;
  min-height: 1.7em;
  padding: 0 0.55em;
  border-radius: 0.28rem;
  background: #992600;
  color: #fff;
  line-height: 1.7;
  white-space: pre-wrap;
}

.order-card__notice--outline {
  display: inline-block;
  height: auto;
  min-height: 1.5em;
  padding: 0 0.55em;
  border-radius: 0.28rem;
  border: 1px solid #ea523e;
  background: #fbe2df;
  color: #e52910;
  font-weight: 700;
  line-height: 1.5;
  white-space: pre-wrap;
}

.order-card__bottom {
  --order-rule-gap: 0.4rem;
  margin-top: auto;
  padding-top: var(--order-rule-gap);
  flex-shrink: 0;
}

.order-card__foot {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-top: 0;
  padding-top: var(--order-rule-gap, 0.4rem);
  flex-shrink: 0;
}

.order-card__foot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: calc(var(--order-fav-right) - var(--order-pad-x));
  height: 1px;
  background: rgba(0, 0, 0, 0.14);
}

.order-card__addr:empty {
  display: none;
}

.order-card__addr {
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(38, 22, 19, 0.78);
}

.order-card__meta {
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(38, 22, 19, 0.48);
}

/* -------------------------------------------------------------------------- */
/* 暫停供餐狀態（獨立模組：.building-paused）                                 */
/* 資料庫 buildings.service_status = paused 時套用                            */
/* -------------------------------------------------------------------------- */
.building-paused__badge {
  display: inline;
  margin-left: 0.25rem;
  font-weight: 700;
  font-size: 0.8rem;
  color: #c62828;
  white-space: nowrap;
}

.building-paused__mask {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background: rgba(55, 55, 55, 0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.building-paused:hover .building-paused__mask,
.building-paused:focus-within .building-paused__mask {
  opacity: 1;
}

.building-paused__msg {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.order-card__fav {
  position: absolute;
  top: calc(var(--order-pad-y) - 0.3rem);
  right: var(--order-fav-right);
  z-index: 3;
  width: var(--order-fav-size);
  height: var(--order-fav-size);
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(38, 22, 19, 0.42);
  font-size: 1.56rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(0);
  transition: transform 0.22s ease;
}

.order-card-wrap:hover .order-card__fav {
  transform: translateY(-4px);
}

.order-card__fav.is-on {
  color: #e85a14;
}

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

.order-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
  background: rgba(38, 22, 19, 0.48);
}

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

.order-modal__panel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(86vh, 86dvh, 820px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #faf7f2;
  color: #261613;
  border-radius: 1.25rem;
  box-shadow: 0 24px 60px rgba(38, 22, 19, 0.28);
  padding: 2.1rem 2rem 1.6rem;
}

.order-modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.9rem;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 999px;
  background: #755b44;
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.order-modal__close:hover {
  background: #5c4635;
}

.order-modal__title {
  margin: 0 2.8rem 1.1rem 0;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.35;
}

.order-modal__body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.7;
  color: #992600;
}

.order-modal__hint {
  margin: 1.2rem 0 0;
  font-size: 0.92rem;
  color: rgba(38, 22, 19, 0.48);
}

.order-modal__actions {
  display: none;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.order-modal__btn {
  flex: 1;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.order-modal__btn--back {
  background: #fff;
  color: #755b44;
  border: 1px solid #755b44;
}

.order-modal__btn--go {
  background: #755b44;
  color: #fff;
}

.order-modal.is-ad .order-modal__actions {
  display: none;
}

.order-modal.is-alert .order-modal__close,
.order-modal.is-alert .order-modal__hint {
  display: none;
}

.order-modal.is-alert .order-modal__title {
  margin-right: 0;
}

.order-modal.is-alert .order-modal__actions {
  display: flex;
}

@media (max-width: 639px) {
  .order-modal {
    align-items: flex-end;
    padding: 0;
  }

  .order-modal__panel {
    width: 100%;
    max-height: min(92vh, 92dvh);
    border-radius: 1.25rem 1.25rem 0 0;
    padding: 1.7rem 1.25rem calc(1.35rem + env(safe-area-inset-bottom));
  }

  .order-modal__close {
    top: 0.65rem;
    right: 0.65rem;
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.75rem;
  }

  .order-modal__title {
    margin-right: 3rem;
    font-size: 1.22rem;
  }

  .order-modal__body {
    font-size: 1.08rem;
  }

  .order-modal__actions {
    flex-direction: column-reverse;
  }

  .order-modal__btn {
    width: 100%;
  }
}

.order-empty {
  margin: 1.5rem 0 0;
  text-align: center;
  color: rgba(38, 22, 19, 0.5);
  grid-column: 1 / -1;
}

@media (min-width: 640px) {
  .order-banner__title {
    font-size: 1.75rem;
  }
}

@media (min-width: 768px) {
  .order-page__inner {
    max-width: 960px;
  }

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

  .order-card {
    --order-card-img: 7rem;
  }
}

/* 導覽切頁：預載後點選不整頁重載（手機仍可左右滑） */
.page-swipe {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
  overflow: hidden;
}

body.has-swipe-live {
  overflow: hidden;
  overscroll-behavior-x: none;
}

body.has-swipe-live .page.is-swipe-parked {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-swipe__sheet {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #f9fafb;
  visibility: hidden;
  will-change: transform;
}

.page-swipe__sheet.is-on,
.page-swipe__sheet.is-live {
  visibility: visible;
}

.page-swipe__sheet.is-live {
  z-index: 2;
  pointer-events: auto;
  box-shadow: none;
}

.page-swipe__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #f9fafb;
  opacity: 0;
  pointer-events: none;
}

.page-swipe__sheet.is-ready .page-swipe__frame {
  opacity: 1;
}

.page-swipe__sheet.is-live.is-ready .page-swipe__frame {
  pointer-events: auto;
}

.page-swipe__label {
  position: absolute;
  left: 50%;
  top: 42%;
  margin: 0;
  transform: translate(-50%, -50%);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-main-0);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.page-swipe__sheet.is-ready .page-swipe__label {
  display: none;
}

@media (max-width: 1023px) {
  body.is-scroll-lock {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
    overscroll-behavior: none;
  }

  body.is-page-swiping .page,
  body.is-page-swiping .page-swipe__sheet {
    pointer-events: none;
    will-change: transform;
  }

  body.is-page-swiping.has-swipe-live .page.is-swipe-parked.is-swipe-on {
    visibility: visible;
  }
}
