/* =========================================================
   IM CAKE — Neighborhood Bakery Cafe
   Shared stylesheet (all pages)
   Palette: warm caramel brown / cream / honey (community bakery)
   Breakpoints: 1024 (tablet / narrow) | 768 (mobile)
   ========================================================= */

/* =========================================================
   Fonts — self-hosted WOFF2 (no third-party CDN request)
   Inter      : variable (wght 100-900), latin + latin-ext
   Noto Serif : 600 roman (latin + latin-ext), 400 italic (latin)
   NOTE: latin-ext is shipped on purpose — it is the subset that
   carries U+20B1 (Philippine peso ₱) used in every price.
   CJK is intentionally NOT web-loaded: PingFang SC / Microsoft
   YaHei / Noto Sans CJK are already the best native faces on
   macOS, iOS, Windows and Android, and cost 0 KB.
   ========================================================= */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Noto Serif';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/noto-serif-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Noto Serif';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/noto-serif-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Noto Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/noto-serif-400-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
  --cream:      #FBF6EF;   /* page background            */
  --cream-2:    #F3E9DA;   /* alternating section bg     */
  --brown:      #6B4A32;   /* brand brown                */
  --brown-dark: #3A261A;   /* headings / body text       */
  --caramel:    #C98A4B;   /* primary accent             */
  --honey:      #E9B872;   /* soft accent                */
  --sage:       #7C8B6F;   /* secondary accent           */
  --line:       #E7DAC7;   /* borders                    */
  --white:      #FFFFFF;
  --muted:      #7A6759;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 6px 24px rgba(58, 38, 26, .08);
  --shadow-lg: 0 18px 48px rgba(58, 38, 26, .14);
  --max: 1200px;
  /* Display / headings — Latin first, then CJK.
     Latin: Noto Serif (self-hosted), Georgia fallback.
     CJK  : Noto Serif SC -> Songti SC (macOS/iOS) -> SimSun (Windows). */
  --font-display: 'Noto Serif', Georgia, 'Times New Roman', 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', 'STSong', 'SimSun', serif;
  /* Body / nav / buttons — Latin first, then CJK.
     Latin: Inter (self-hosted variable), -apple-system for iOS/macOS.
     CJK  : Noto Sans SC -> PingFang SC (macOS/iOS) -> Microsoft YaHei (Windows). */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans SC', 'Source Han Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--brown-dark);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word; /* long addresses / URLs must not push layout wide */
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.25; margin: 0 0 .5em; color: var(--brown-dark); }
p  { margin: 0 0 1em; }
strong { color: var(--brown); font-weight: 600; }
b { font-weight: 600; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 40px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .22s ease;
  font-family: var(--font-body);
  line-height: 1.2;
}
.btn-primary { background: var(--caramel); color: #fff; }
.btn-primary:hover { background: var(--brown); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { border-color: var(--brown); color: var(--brown); background: transparent; }
.btn-outline:hover { background: var(--brown); color: #fff; }
.btn-light { background: #fff; color: var(--brown); }
.btn-light:hover { background: var(--honey); transform: translateY(-2px); }
.btn-sm { padding: 9px 22px; font-size: 14px; }

/* ---------- Eyebrow / section heading ---------- */
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--caramel);
  margin-bottom: 12px;
}
.section { padding: 88px 0; }
.section-alt { background: var(--cream-2); }
.section-head { max-width: 660px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head .lede { color: var(--muted); font-size: 17px; }
.section-head--left { text-align: left; margin-left: 0; }

/* =========================================================
   Header + navigation
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 246, 239, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.logo { display: flex; align-items: center; gap: 11px; }
.logo-img { display: block; height: 29px; width: auto; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a { font-size: 15px; font-weight: 500; color: var(--brown-dark); position: relative; padding: 6px 0; }
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--caramel); transition: width .25s ease;
}
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav a.active { color: var(--caramel); }
.nav .btn { margin-left: 6px; }

/* ---------- Language switch (中文 / EN) ---------- */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  margin-left: 6px; padding: 3px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, .7);
}
.lang-switch a, .lang-switch span {
  display: inline-block;
  padding: 5px 13px; border-radius: 999px;
  font-size: 13px; font-weight: 600; line-height: 1.25;
  color: var(--muted); white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.lang-switch a::after { display: none; }          /* 关掉导航下划线动效 */
.lang-switch a:hover { background: rgba(201, 138, 75, .12); color: var(--brown-dark); }
.lang-switch .is-active { background: var(--brown); color: #fff; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; cursor: pointer; padding: 0;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--brown); transition: all .25s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Home hero
   ========================================================= */
.hero { position: relative; min-height: 560px; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(46,28,17,.82) 0%, rgba(46,28,17,.58) 46%, rgba(46,28,17,.18) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 620px; padding: 90px 0; color: #fff; }
.hero-inner .eyebrow { color: var(--honey); }
.hero-inner h1 { color: #fff; font-size: clamp(36px, 5.4vw, 58px); margin-bottom: 18px; }
.hero-inner p { font-size: 18px; color: rgba(255,255,255,.9); margin-bottom: 32px; max-width: 480px; }
.hero-inner p strong { color: #fff; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 28px; margin-top: 42px; flex-wrap: wrap; }
.hero-meta div { font-size: 13.5px; color: rgba(255,255,255,.78); }
.hero-meta strong { display: block; font-size: 22px; color: #fff; font-family: var(--font-display); }

/* =========================================================
   Category strip (5 pillars)
   ========================================================= */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease;
  display: block;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cat-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.cat-body { padding: 16px 18px 20px; text-align: center; }
.cat-body h3 { font-size: 18px; margin: 0; }
.cat-body span { font-size: 13px; color: var(--muted); }

/* =========================================================
   Generic split (text + image)
   ========================================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { font-size: clamp(28px, 3.4vw, 38px); }
.split .eyebrow { margin-bottom: 10px; }
.signature {
  font-family: var(--font-display); font-style: italic;
  font-size: 19px; color: var(--caramel); margin-top: 26px;
}

/* checklist */
.check-list { margin: 22px 0 30px; }
.check-list li { position: relative; padding-left: 32px; margin-bottom: 12px; color: var(--muted); }
.check-list li strong { color: var(--brown-dark); }
.check-list li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  width: 21px; height: 21px; border-radius: 50%;
  background: var(--honey); color: var(--brown-dark);
  font-size: 12px; font-weight: 600; display: grid; place-items: center;
}

/* =========================================================
   Product cards
   ========================================================= */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.product-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card-media { position: relative; overflow: hidden; }
.product-card-media img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .45s ease; }
.product-card:hover .product-card-media img { transform: scale(1.05); }
.badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--caramel); color: #fff;
  font-size: 9px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 12px;
}
.badge--sage { background: var(--sage); }
.badge--inline { position: static; display: inline-block; margin-bottom: 12px; }
.product-card-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.product-card-body h3 { font-size: 18px; margin-bottom: 6px; }
.product-card-body h3 a:hover { color: var(--caramel); }
.product-card-body p { font-size: 14px; color: var(--muted); margin: 0 0 14px; flex: 1; }
.price { font-family: var(--font-display); font-size: 19px; color: var(--caramel); font-weight: 600; }
.price small { font-family: var(--font-body); font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 4px; }

/* =========================================================
   Why us / value props
   ========================================================= */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.why-grid--4 { grid-template-columns: repeat(4, 1fr); }
.why-card { background: var(--white); border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow); }
.why-card .num {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--cream-2); color: var(--caramel);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-bottom: 18px;
}
.why-card h3 { font-size: 19px; margin-bottom: 8px; }
.why-card p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* =========================================================
   Timeline (about page)
   ========================================================= */
.timeline { position: relative; max-width: 780px; margin: 0 auto; padding-left: 34px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; margin-bottom: 36px; }
.timeline li::before {
  content: ''; position: absolute; left: -32px; top: 8px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--cream); border: 3px solid var(--caramel);
}
.timeline .year { font-family: var(--font-display); font-size: 21px; font-weight: 600; color: var(--caramel); }
.timeline h3 { font-size: 18px; margin: 4px 0 6px; }
.timeline p { color: var(--muted); font-size: 15px; margin: 0; }

/* =========================================================
   Page hero (inner pages)
   ========================================================= */
.page-hero {
  background: var(--brown-dark); color: #fff;
  padding: 72px 0; text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 18% 30%, rgba(233,184,114,.16), transparent 42%),
                    radial-gradient(circle at 82% 70%, rgba(201,138,75,.18), transparent 44%);
}
.page-hero h1 { color: #fff; font-size: clamp(32px, 4.6vw, 48px); margin-bottom: 12px; position: relative; }
.page-hero p { color: rgba(255,255,255,.72); max-width: 560px; margin: 0 auto; font-size: 16.5px; position: relative; }
.page-hero p strong { color: #fff; }

.breadcrumb { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--caramel); }
.breadcrumb span { color: var(--brown); }

/* =========================================================
   Products / news listing (sidebar + content)
   ========================================================= */
.listing { display: grid; grid-template-columns: 250px 1fr; gap: 44px; align-items: start; }
.sidebar { position: sticky; top: 100px; }
.sidebar h3 {
  font-family: var(--font-body); font-size: 12.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 14px;
}
.filter-list li { margin-bottom: 4px; }
.filter-list a {
  display: block; padding: 10px 16px; border-radius: var(--radius-sm);
  font-size: 15px; color: var(--brown-dark); transition: all .2s ease;
  border: 1px solid transparent;
}
.filter-list a:hover { background: var(--cream-2); }
.filter-list a.active { background: var(--brown); color: #fff; font-weight: 600; }
.filter-list a span { float: right; font-size: 13px; opacity: .65; }

.listing-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; gap: 16px; flex-wrap: wrap; }
.listing-head h2 { font-size: 26px; margin: 0; }
.listing-head p { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- Cake size guide banner (HTML card) ---------- */
.size-guide {
  grid-column: 1 / -1;
  background: var(--cream-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 26px 18px;
}
.size-guide-tag {
  display: inline-block;
  background: var(--brown);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}
.size-guide-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--brown-dark);
  margin: 12px 0 2px;
}
.size-guide-sub { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.size-guide-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.size-guide-cell {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  text-align: center;
}
.size-guide-cell .sz  { margin: 0; font-size: 14px; font-weight: 600; color: var(--brown-dark); }
.size-guide-cell .ppl { margin: 2px 0 6px; font-size: 12px; color: var(--muted); }
.size-guide-cell .pr  { margin: 0; font-size: 15px; font-weight: 600; color: var(--caramel); }
.size-guide-note {
  margin-top: 12px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--brown);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.size-guide-note b { font-weight: 600; color: var(--brown-dark); }
.size-guide-note .lead { margin-left: auto; font-size: 12px; color: var(--muted); }

@media (max-width: 768px) {
  .size-guide { padding: 16px 16px 14px; }
  .size-guide-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .size-guide-note .lead { margin-left: 0; }
}

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 46px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 42px; height: 42px; padding: 0 14px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); font-size: 15px; font-weight: 600;
  background: var(--white); color: var(--brown-dark); border: 1px solid var(--line);
}
.pagination a:hover { border-color: var(--caramel); color: var(--caramel); }
.pagination .current { background: var(--caramel); border-color: var(--caramel); color: #fff; }
.pagination .dots { border: none; background: none; }

/* =========================================================
   News cards
   ========================================================= */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.news-card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.news-card-body { padding: 20px 22px 24px; flex: 1; }
.news-card-body time { font-size: 12.5px; color: var(--caramel); font-weight: 400; letter-spacing: .06em; text-transform: uppercase; }
.news-card-body h3 { font-size: 18px; margin: 8px 0; line-height: 1.4; }
.news-card-body h3 a:hover { color: var(--caramel); }
.news-card-body p { font-size: 14px; color: var(--muted); margin: 0; }

/* =========================================================
   Article (news detail)
   ========================================================= */
.article { max-width: 760px; margin: 0 auto; }
.article-header { text-align: center; margin-bottom: 40px; }
.article-header h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.3; }
.article-meta { font-size: 14px; color: var(--muted); display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.article-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 40px; box-shadow: var(--shadow); }
.article-cover img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.article-body { font-size: 17px; line-height: 1.85; color: #4A362A; letter-spacing: .01em; }
.article-body h2 { font-size: 25px; margin: 1.8em 0 .6em; }
.article-body h3 { font-size: 20px; margin: 1.6em 0 .5em; }
.article-body img { border-radius: var(--radius-sm); margin: 1.6em auto; }
.hero-placeholder { display: flex; align-items: center; justify-content: center; min-height: 240px; background: #F6F0E5; border: 1px dashed #D8CFC0; }
.hero-placeholder-inner { text-align: center; padding: 28px 24px; }
.hero-placeholder .hp-tag { display: block; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #A99B86; }
.hero-placeholder .hp-need { display: block; margin: 10px auto 0; font-size: 15px; color: #5B4636; max-width: 440px; line-height: 1.6; }
.article-figure { margin: 2em 0; }
.article-figure figcaption { text-align: center; font-size: 14px; color: var(--muted); margin-top: 10px; }
.article-body ul { margin: 0 0 1.4em; padding-left: 22px; list-style: disc; }
.article-body ol { margin: 0 0 1.4em; padding-left: 24px; list-style: decimal; }
.article-body blockquote {
  margin: 1.8em 0; padding: 20px 26px;
  background: var(--cream-2); border-left: 4px solid var(--caramel);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-display); font-style: italic; font-size: 18px; color: var(--brown);
}
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
.article-nav a {
  padding: 20px 24px; background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); font-size: 14px; color: var(--muted);
  transition: transform .22s ease;
}
.article-nav a:hover { transform: translateY(-3px); }
.article-nav a strong { display: block; font-size: 15.5px; color: var(--brown-dark); margin-top: 4px; font-weight: 600; }
.article-nav .next { text-align: right; }

/* =========================================================
   Product detail
   ========================================================= */
.detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
.detail-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.detail-media img { width: 100%; }
.detail-info h1 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 14px; }
.detail-info .price { font-size: 26px; margin-bottom: 20px; display: block; }
.detail-info .desc { color: var(--muted); font-size: 16.5px; margin-bottom: 28px; }
.detail-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-bottom: 30px; }
.spec-table th, .spec-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.spec-table th { width: 130px; color: var(--muted); font-weight: 500; }
.spec-table td { color: var(--brown-dark); font-weight: 500; }

/* ---------- Long description blocks ---------- */
.prose { max-width: 780px; margin: 0 auto; font-size: 16.5px; line-height: 1.85; color: #4A362A; letter-spacing: .01em; }
.prose h2 { font-size: 26px; margin: 1.8em 0 .6em; }
.prose ul { padding-left: 22px; list-style: disc; margin-bottom: 1.3em; }

/* =========================================================
   Contact page
   ========================================================= */
.contact-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: stretch; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; height: 100%; }
.info-card { display: flex; flex-direction: column; gap: 14px; padding: 28px 30px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); height: 100%; box-sizing: border-box; }
.info-card-head { display: flex; align-items: center; gap: 14px; }
.info-card .icon {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  background: var(--cream-2); color: var(--caramel);
  display: grid; place-items: center; font-size: 22px;
}
.info-card-head h3 { margin-bottom: 0; }
.info-card h3 { font-size: 16.5px; font-family: var(--font-body); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 7px; }
.info-card p { margin: 0; font-size: 16.5px; line-height: 1.75; color: var(--muted); }
.info-card a { color: var(--caramel); text-decoration: underline; text-underline-offset: 3px; transition: color .2s ease; display: inline-block; }
.info-card a:hover { color: var(--brown); }
.info-card .card-note { margin-top: 10px; font-size: 14px; color: var(--muted); }
.contact-list { display: grid; grid-template-columns: max-content 1fr; column-gap: 10px; row-gap: 4px; align-items: baseline; margin: 4px 0; }
.tips-list .contact-list { margin: 6px 0; }
.info-card .card-note [aria-hidden] { margin-right: 4px; }

.visit-tips { background: var(--white); border-radius: var(--radius); padding: 40px 36px; box-shadow: var(--shadow); height: 100%; display: flex; flex-direction: column; box-sizing: border-box; }
.tips-list a { color: var(--caramel); text-decoration: underline; text-underline-offset: 3px; transition: color .2s ease; display: inline-block; }
.tips-list a:hover { color: var(--brown); }
.tips-list { list-style: none; padding: 0; margin: 0; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.tips-list li { position: relative; padding-left: 22px; font-size: 16px; color: var(--muted); line-height: 1.8; }
.tips-list li::before { content: "•"; position: absolute; left: 0; top: 0; color: var(--caramel); font-weight: 600; }
.tips-list li strong { display: inline-block; color: var(--brown-dark); margin-bottom: 2px; }

.form-card { background: var(--white); border-radius: var(--radius); padding: 38px 36px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; color: var(--brown-dark); }
.form-group label .req { color: #C0503F; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 15px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 15px; font-family: var(--font-body); color: var(--brown-dark);
  background: var(--cream); transition: border-color .2s ease, box-shadow .2s ease;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--caramel); box-shadow: 0 0 0 3px rgba(201,138,75,.14); background: #fff;
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-hint { font-size: 13px; color: var(--muted); margin-top: 5px; }
.form-error { display: none; font-size: 13px; color: #C0503F; margin-top: 5px; }
.form-group.invalid input, .form-group.invalid textarea { border-color: #C0503F; }
.form-group.invalid .form-error { display: block; }
.form-status { display: none; margin-top: 18px; padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14.5px; }
.form-status.ok { display: block; background: #EEF3E7; color: #4F6B3C; border: 1px solid #D3E0C2; }
.form-status.err { display: block; background: #FBEDEA; color: #A8402F; border: 1px solid #F0D2CB; }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-top: 46px; }
.map-embed iframe { width: 100%; height: 380px; border: 0; display: block; }

/* =========================================================
   CTA band
   ========================================================= */
.cta-band {
  background: var(--brown); color: #fff; text-align: center;
  padding: 76px 24px; border-radius: var(--radius);
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 15% 25%, rgba(233,184,114,.18), transparent 40%),
                    radial-gradient(circle at 85% 75%, rgba(124,139,111,.2), transparent 42%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.78); max-width: 520px; margin: 0 auto 28px; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: #2E1D13; color: rgba(255,255,255,.68); margin-top: 88px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 44px; padding: 68px 0 52px; }
.footer-brand .footer-logo { display: block; height: 31px; width: auto; margin-bottom: 6px; }
.footer-brand p { font-size: 14.5px; margin-top: 18px; max-width: 300px; }
.site-footer h4 {
  font-family: var(--font-body); font-size: 12.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 18px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14.5px; transition: color .2s ease; }
.footer-links a:hover { color: var(--honey); }
.footer-hours li { display: flex; justify-content: space-between; font-size: 14.5px; padding: 6px 0; border-bottom: 1px dashed rgba(255,255,255,.12); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; font-size: 13.5px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* =========================================================
   Scroll reveal
   ========================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* =========================================================
   Responsive — 1024 (tablet / narrow screens)
   ========================================================= */
@media (max-width: 1024px) {
  .section { padding: 68px 0; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .why-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .split { gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .listing { grid-template-columns: 210px 1fr; gap: 30px; }
  .detail { grid-template-columns: 1fr; gap: 34px; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .info-grid { grid-template-columns: 1fr; height: auto; }
  .info-card { height: auto; padding: 24px 26px; }

  /* collapse desktop nav into a dropdown panel */
  .nav {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav.open { max-height: 420px; }
  .nav a { padding: 15px 24px; border-top: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav .btn { margin: 14px 24px 18px; text-align: center; border-top: none; }
  .lang-switch { align-self: flex-start; margin: 14px 24px 0; }
  .lang-switch a, .lang-switch span { padding: 7px 16px; }
  .nav-toggle { display: flex; }
}

/* =========================================================
   Responsive — 768 (mobile)
   ========================================================= */
@media (max-width: 768px) {
  body { font-size: 15.5px; }
  .container { padding: 0 18px; }
  .section { padding: 54px 0; }
  .section-head { margin-bottom: 34px; }

  .logo-img { height: 24px; }
  .footer-brand .footer-logo { height: 25px; }

  .hero { min-height: 520px; }
  .hero-inner { padding: 64px 0; }
  .hero-meta { gap: 20px; }

  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .product-card-body { padding: 14px 15px 18px; }
  .product-card-body h3 { font-size: 16px; }
  .product-card-body p { display: none; }
  .news-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .why-grid--4 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split--flip .split-img { order: -1; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; padding: 50px 0 38px; }
  .footer-bottom { flex-direction: column; }

  .listing { grid-template-columns: 1fr; gap: 22px; }

  /* Mobile: sticky, edge-to-edge category bar that shrinks once you scroll down */
  .sidebar {
    position: sticky;
    top: 76px;                 /* pinned just under the 76px site header */
    z-index: 55;
    margin: 0 -18px;           /* bleed out to the screen edges */
    padding: 9px 18px;
    background: rgba(251, 246, 239, .97);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 16px -12px rgba(60, 40, 20, .4);
  }
  .sidebar h3 { display: none; }   /* hide the "产品分类 / 文章分类" label when compact */
  .filter-list {
    display: flex;
    flex-wrap: wrap;          /* comfortable multi-row state at the top of the page */
    gap: 8px;
    margin: 0;
    list-style: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;    /* Firefox */
  }
  .filter-list::-webkit-scrollbar { display: none; }   /* WebKit */
  .filter-list li { margin: 0; }
  .filter-list a {
    display: block;
    white-space: nowrap;
    border: 1px solid var(--line);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--brown-dark);
    transition: background .2s ease, color .2s ease, padding .2s ease;
  }
  .filter-list a.active { background: var(--brown); color: #fff; font-weight: 600; }

  /* scrolled past — collapse into one horizontally-scrollable compact row */
  .sidebar.is-stuck .filter-list { flex-wrap: nowrap; overflow-x: auto; gap: 6px; }
  .sidebar.is-stuck .filter-list a { padding: 6px 13px; font-size: 13px; }
  .sidebar.is-stuck .filter-list a span { display: none; }   /* hide counts to save space */

  .article-nav { grid-template-columns: 1fr; }
  .article-nav .next { text-align: left; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 28px 22px; }
  .page-hero { padding: 54px 0; }
  .map-embed iframe { height: 300px; }
}

/* ---------------- 菜单分组标题（奶茶子类） ---------------- */
.menu-group-head { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 12px;
  margin-top: 20px; padding: 14px 18px; background: var(--cream-2);
  border: 1px solid var(--line); border-radius: var(--radius-sm); }
.menu-group-head h3 { margin: 0; font-family: var(--font-display); font-size: 20px; color: var(--ink); }
.menu-group-head .en { font-family: var(--font-body); font-size: 13px; color: var(--muted); letter-spacing: 0.04em; }
@media (max-width: 768px) { .menu-group-head { padding: 12px 14px; } .menu-group-head h3 { font-size: 18px; } }
