:root {
  color-scheme: light;
  --ink: #17201d;
  --muted: #59635f;
  --line: #d8ddd6;
  --paper: #fbfaf5;
  --panel: #ffffff;
  --leaf: #365f4c;
  --leaf-dark: #233c31;
  --wheat: #d79c4b;
  --berry: #9a3f46;
  --shadow: 0 18px 55px rgba(23, 32, 29, 0.14);
  font-family:
    "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  background: rgba(251, 250, 245, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  border-radius: 8px;
  background: var(--leaf);
  color: #fff;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.82rem;
}

.nav {
  display: flex;
  gap: clamp(0.7rem, 3vw, 1.6rem);
  color: var(--muted);
  font-weight: 700;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--leaf-dark);
}

.hero {
  position: relative;
  min-height: clamp(520px, 78vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 17, 13, 0.78), rgba(8, 17, 13, 0.14) 64%),
    linear-gradient(0deg, rgba(23, 32, 29, 0.72), rgba(23, 32, 29, 0.04) 42%);
}

.hero-content {
  max-width: 760px;
  padding: clamp(3rem, 8vw, 7rem) clamp(1rem, 5vw, 5rem);
  color: #fff;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--wheat);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(2.35rem, 7vw, 5.4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 550px;
  margin: 1.2rem 0 1.6rem;
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.primary-link,
.submit-button,
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.8rem 1.1rem;
  border: 0;
  border-radius: 8px;
  background: var(--wheat);
  color: #1b1712;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.primary-link:hover,
.submit-button:hover,
.copy-button:hover {
  filter: brightness(0.96);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.intro-band div {
  padding: 1.1rem clamp(1rem, 4vw, 3rem);
  background: #f4f6ef;
}

.intro-band strong,
.intro-band span {
  display: block;
}

.intro-band span {
  color: var(--muted);
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1rem, 4vw, 2rem);
}

.section-heading {
  max-width: 710px;
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
}

.section-heading p:last-child {
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.product-card {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(23, 32, 29, 0.06);
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.category {
  color: var(--berry);
  font-size: 0.85rem;
  font-weight: 900;
}

.stock {
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  background: #e9f2ec;
  color: var(--leaf-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.product-card h3 {
  margin: 0;
  font-size: 1.24rem;
  line-height: 1.25;
}

.product-card p {
  margin: 0.75rem 0 1rem;
  color: var(--muted);
}

.price-row,
.quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.price {
  font-size: 1.2rem;
  font-weight: 900;
}

.quantity-row {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.stepper {
  display: inline-grid;
  grid-template-columns: 40px 46px 40px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stepper button {
  min-height: 40px;
  border: 0;
  background: #f2f4ec;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
}

.stepper output {
  display: grid;
  min-height: 40px;
  place-items: center;
  background: #fff;
  font-weight: 900;
}


.announcement-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.1fr);
  gap: 1.25rem;
  align-items: start;
}

.announcement-heading {
  margin-bottom: 0;
}

.daily-board {
  padding: clamp(1.1rem, 3vw, 1.6rem);
  border-radius: 18px;
  background: #555553;
  color: #fffdf4;
  box-shadow: 0 22px 50px rgba(23, 32, 29, 0.2);
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  line-height: 1.7;
}

.daily-board p {
  margin: 0;
}

.daily-board ol {
  margin: 0.1rem 0 0.9rem;
  padding-left: 1.35rem;
}

.daily-board li {
  padding-left: 0.1rem;
}

.board-date {
  font-weight: 900;
}

.board-ps {
  margin-top: 1rem !important;
}

.notice-helper {
  grid-column: 2;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(215, 156, 75, 0.45);
  border-radius: 14px;
  background: #fff8e9;
  color: var(--ink);
}

.notice-helper strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--berry);
  font-size: 1.05rem;
}

.notice-helper p {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

.notice-helper a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  background: var(--leaf);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}
.delivery {
  max-width: none;
  background: #e9eee8;
}

.delivery .section-heading,
.delivery-grid {
  max-width: 1180px;
  margin-inline: auto;
}

.delivery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.delivery-grid article {
  padding: 1.25rem;
  border-left: 5px solid var(--leaf);
  background: #fff;
}

.delivery-grid h3 {
  margin: 0;
  font-size: 1.25rem;
}

.delivery-grid p {
  color: var(--muted);
}

.delivery-grid strong {
  color: var(--berry);
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.8fr);
  gap: 1.2rem;
  align-items: start;
}

.order-form,
.cart-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.order-form {
  padding: clamp(1rem, 3vw, 1.5rem);
}

fieldset {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.5rem;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 0.7rem;
  font-size: 1.2rem;
  font-weight: 900;
}

label {
  display: grid;
  gap: 0.4rem;
  color: var(--ink);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  background: #fff;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(215, 156, 75, 0.5);
  outline-offset: 3px;
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.choice-row label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f8f3;
}

.choice-row input {
  width: auto;
  min-height: auto;
}

.submit-button {
  width: 100%;
  background: var(--leaf);
  color: #fff;
}

.cart-panel {
  position: sticky;
  top: 88px;
  padding: 1.25rem;
}

.cart-panel h3 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
}

.cart-items {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.cart-items.empty {
  padding: 1rem;
  border: 1px dashed var(--line);
  color: var(--muted);
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.cart-line small {
  color: var(--muted);
}

.totals {
  display: grid;
  gap: 0.6rem;
  margin: 0;
}

.totals div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.totals dt {
  color: var(--muted);
}

.totals dd {
  margin: 0;
  font-weight: 900;
}

.grand-total {
  margin-top: 0.4rem;
  padding-top: 0.8rem;
  border-top: 2px solid var(--ink);
  font-size: 1.15rem;
}

.order-result {
  margin-top: 1.2rem;
  padding: 1rem;
  border-radius: 8px;
  background: #eef4ef;
}

.order-result h4 {
  margin: 0 0 0.5rem;
}

.order-result pre {
  overflow: auto;
  white-space: pre-wrap;
  margin: 0.8rem 0;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
}

.copy-button {
  width: 100%;
  background: var(--berry);
  color: #fff;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem clamp(1rem, 4vw, 3rem);
  background: var(--leaf-dark);
  color: #fff;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .product-grid,
  .announcement-layout,
  .delivery-grid,
  .order-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-layout {
    align-items: stretch;
  }

  .cart-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: 610px;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(8, 17, 13, 0.72), rgba(8, 17, 13, 0.3)),
      linear-gradient(0deg, rgba(23, 32, 29, 0.78), rgba(23, 32, 29, 0.1) 46%);
  }

  .intro-band,
  .announcement-layout,
  .product-grid,
  .delivery-grid,
  .order-layout,
  .choice-row {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: auto;
  }

  .notice-helper {
    grid-column: auto;
  }
}





