:root {
  --bg: #faf8f4;
  --paper: #ffffff;
  --line: #e4ded2;
  --text: #2b2723;
  --muted: #6e675d;
  --accent: #8a5a3b;
  --accent-dark: #66412a;
  --sand: #efe8dc;
  --clay: #8f5f30;
  --banner: #f6efdd;
  --radius: 14px;
  --serif: "Noto Serif TC", "Songti TC", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.75; }
img { max-width: 100%; height: auto; }
a { color: inherit; }

.demo-banner { background: var(--banner); color: #6b4e00; text-align: center; padding: 8px 16px; font-size: 13px; letter-spacing: .02em; }

.site-header { position: sticky; top: 0; z-index: 10; background: rgba(250, 248, 244, .92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1120px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand span { display: flex; flex-direction: column; line-height: 1.25; }
.brand strong { font-family: var(--serif); font-size: 19px; letter-spacing: .18em; }
.brand small { color: var(--muted); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }
.site-nav { display: flex; gap: 22px; font-size: 14px; }
.site-nav a { text-decoration: none; color: var(--muted); padding-bottom: 2px; border-bottom: 1px solid transparent; }
.site-nav a:hover { color: var(--text); border-bottom-color: var(--accent); }

main { max-width: 1120px; margin: 0 auto; padding: 0 24px 72px; }

.hero-banner {
  /* 這一段渲染在 main 之外，直接吃滿容器寬度即可，不用 100vw 去邊（100vw 含捲軸寬會撐出橫向捲軸） */
  position: relative;
  margin: 0 0 8px;
  width: 100%;
  overflow: hidden;
  min-height: min(76vh, 640px);
  background-image: url("img/hero-banner.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(250, 248, 244, .62) 0%, rgba(250, 248, 244, .34) 55%, rgba(250, 248, 244, .10) 100%);
}
.hero-banner-inner { position: relative; z-index: 1; padding: 40px 24px; max-width: 780px; }
.hero-banner h1 {
  font-family: var(--serif);
  font-size: clamp(26px, 4.2vw, 48px);
  line-height: 1.5;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 32px;
  letter-spacing: .04em;
  text-shadow: 0 1px 14px rgba(250, 248, 244, .7);
}
/* 主標固定兩行；極窄螢幕仍允許自己折行，不讓版面被撐開 */
.hero-banner h1 .line { display: block; }
.eyebrow { margin: 0 0 12px; color: var(--muted); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; }
.eyebrow-light { color: var(--muted); text-shadow: 0 1px 10px rgba(250, 248, 244, .8); }
.lede { color: var(--muted); font-size: 16px; margin: 0 0 24px; }
.button { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; padding: 12px 26px; border-radius: 999px; font-size: 15px; border: 0; cursor: pointer; }
.button:hover { background: var(--accent-dark); }
.button-light { padding: 14px 38px; font-size: 16px; box-shadow: 0 6px 20px rgba(43, 39, 35, .18); }
.text-link { color: var(--accent); text-decoration: none; font-size: 15px; }
.text-link:hover { text-decoration: underline; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pillars-page { border: 0; padding-top: 8px; }
.pillar-en { margin: 0 0 6px; color: var(--clay); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.pillar h2, .pillar h3 { font-family: var(--serif); font-size: 20px; margin: 0 0 10px; font-weight: 600; }
.pillar p { margin: 0; color: var(--muted); font-size: 14.5px; }

.section { padding: 56px 0 8px; }
.section-head { margin-bottom: 26px; }
.section-head h2 { font-family: var(--serif); font-size: 26px; margin: 0 0 6px; font-weight: 600; }
.section-head p { margin: 0; color: var(--muted); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 28px; }
.product-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease; }
.product-card:hover { box-shadow: 0 10px 28px rgba(43, 39, 35, .08); transform: translateY(-2px); }
.card-media { position: relative; display: block; background: var(--sand); }
.card-media img { display: block; width: 100%; }
.badge { position: absolute; top: 12px; left: 12px; background: rgba(255, 255, 255, .92); color: var(--accent-dark); font-size: 11.5px; padding: 3px 10px; border-radius: 999px; letter-spacing: .05em; }
.badge-inline { position: static; display: inline-block; background: var(--sand); margin-bottom: 10px; }
.card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.card-category { margin: 0; color: var(--muted); font-size: 12px; letter-spacing: .12em; }
.card-body h3 { font-family: var(--serif); font-size: 18px; margin: 0; font-weight: 600; }
.card-body h3 a { text-decoration: none; }
.card-subtitle { margin: 0; color: var(--muted); font-size: 13.5px; }
.card-price { margin: 8px 0 0; font-size: 16px; font-weight: 500; }
.card-price s { color: var(--muted); font-size: 13px; margin-left: 8px; font-weight: 400; }


.campaign-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.campaign-card { display: block; text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.campaign-card img { display: block; width: 100%; }
.campaign-card div { padding: 16px 18px 20px; }
.campaign-card h3 { font-family: var(--serif); font-size: 19px; margin: 0 0 6px; font-weight: 600; }
.campaign-card p { margin: 0; color: var(--muted); font-size: 14px; }

.breadcrumb { padding: 22px 0 0; color: var(--muted); font-size: 13px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.product-detail { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; padding: 28px 0 8px; align-items: start; }
.gallery-main { width: 100%; border-radius: var(--radius); background: var(--sand); display: block; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumb { padding: 0; border: 1px solid var(--line); background: var(--sand); border-radius: 8px; overflow: hidden; cursor: pointer; width: 92px; }
.thumb.is-active { border-color: var(--accent); }
.thumb img { display: block; width: 100%; }
.buy-box h1 { font-family: var(--serif); font-size: 30px; margin: 0 0 6px; font-weight: 600; }
.buy-box .subtitle { margin: 0 0 14px; color: var(--muted); }
.price { font-size: 22px; margin: 0 0 16px; }
.price s { color: var(--muted); font-size: 15px; margin-left: 10px; }
.summary { margin: 0 0 12px; }
.story { margin: 0 0 16px; color: var(--muted); }
.checkout-form { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 10px; }
.size-picker { flex: 1 0 100%; border: 0; margin: 4px 0 6px; padding: 0; }
.size-picker legend { padding: 0; color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.size-option { display: inline-flex; align-items: center; margin: 0 8px 8px 0; cursor: pointer; }
.size-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.size-option span {
  display: inline-block; background: var(--paper); border: 1px solid #b9ae9b;
  border-radius: 999px; padding: 7px 16px; font-size: 13.5px; color: var(--text);
  transition: border-color .15s ease, background .15s ease;
}
.size-option:hover span { border-color: var(--accent); }
.size-option input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.size-option input:focus-visible + span { outline: 2px solid var(--accent-dark); outline-offset: 2px; }
/* 高對比模式會覆寫背景與文字色，選中狀態改用外框表示 */
@media (forced-colors: active) {
  .size-option input:checked + span { outline: 3px solid; outline-offset: -3px; }
}
.checkout-form label { font-size: 14px; color: var(--muted); }
.checkout-form select { margin-left: 6px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); font-size: 14px; }
.checkout-form button { background: var(--accent); color: #fff; border: 0; border-radius: 999px; padding: 12px 30px; font-size: 15px; cursor: pointer; }
.checkout-form button:hover { background: var(--accent-dark); }
.hint { color: var(--muted); font-size: 13px; }
.spec { margin: 26px 0 0; border-top: 1px solid var(--line); }
.spec > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--muted); font-size: 14px; margin: 0; }
.spec dd { margin: 0; font-size: 14.5px; }

.page-head { padding: 56px 0 24px; max-width: 760px; }
.page-head h1 { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 36px); line-height: 1.5; margin: 0 0 16px; font-weight: 600; }
.about-band { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.about-band h2 { font-family: var(--serif); font-size: 22px; margin: 0 0 12px; font-weight: 600; }
.about-band p { margin: 0 0 10px; color: var(--muted); }
.about-band img { border-radius: 10px; display: block; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-size: 16px; }
.faq p { margin: 10px 0 0; color: var(--muted); }

.lp-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 56px 0 40px; }
.lp-hero h1 { font-family: var(--serif); font-size: clamp(26px, 3.6vw, 38px); line-height: 1.45; margin: 0 0 16px; font-weight: 600; }
.lp-hero img { border-radius: var(--radius); display: block; }
.lp-bullets { margin: 0 0 24px; padding-left: 20px; color: var(--muted); }
.lp-bullets li { margin-bottom: 6px; }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; margin: 48px auto; max-width: 620px; }
.panel h1 { font-family: var(--serif); font-size: 26px; margin: 0 0 12px; font-weight: 600; }
.order-line { display: flex; align-items: center; gap: 16px; background: var(--sand); border-radius: 10px; padding: 14px 16px; }
.order-line img { border-radius: 6px; }
code { background: var(--sand); padding: 2px 8px; border-radius: 4px; word-break: break-all; font-size: 14px; }

.site-footer { border-top: 1px solid var(--line); background: var(--paper); }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 44px 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; font-size: 13.5px; color: var(--muted); }
.footer-inner a { display: block; text-decoration: none; margin-bottom: 6px; }
.footer-inner a:hover { color: var(--text); }
.footer-brand { font-family: var(--serif); font-size: 17px; color: var(--text); margin: 0 0 6px; letter-spacing: .1em; }
.footer-title { color: var(--text); margin: 0 0 10px; font-size: 13.5px; }
.footer-note { margin: 0 0 8px; }

@media (max-width: 860px) {
  .product-detail, .about-band, .lp-hero { grid-template-columns: 1fr; gap: 28px; }
  .hero-banner { min-height: 58vh; background-image: url("img/hero-banner-mobile.jpg"); }
  .pillars { grid-template-columns: 1fr; gap: 20px; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  main { padding: 0 16px 56px; }
  .header-inner { padding: 10px 16px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .site-nav { gap: 18px; font-size: 13px; }
  .site-nav a { white-space: nowrap; }
}
