/* 萃迪烘焙 Trinity Bakery 官网，按 VI v4（2026-10-06）。
   主色沿用原Logo取色：墨褐 #231816、奶油白 #F8F6EA；暖灰 #70645C 为次级文字。
   字体：大标题思源黑体 Heavy，品名/价格/信息 MiSans，未安装时回退系统黑体。
   间距从 24 / 32 / 64 起步；图片与色块直角，按钮 8px 圆角。 */
:root {
  --ink: #231816;
  --cream: #f8f6ea;
  --raised: #fffdf6;
  --muted: #70645c;
  --muted-on-dark: #b5a99f;
  --line: rgba(35, 24, 22, 0.16);
  --line-on-dark: rgba(248, 246, 234, 0.2);
  --font-heavy: "Source Han Sans SC", "Noto Sans SC", "Noto Sans CJK SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-info: MiSans, "Source Han Sans SC", "Noto Sans SC", "Noto Sans CJK SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --space-8: 8px;
  --space-12: 12px;
  --space-24: 24px;
  --space-32: 32px;
  --space-64: 64px;
  --section-gap: clamp(64px, 9vw, 128px);
  --shell: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-height: 72px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--font-info);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.shell {
  width: 100%;
  max-width: calc(var(--shell) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  z-index: 100;
  top: -60px;
  left: 16px;
  padding: 10px 16px;
  color: var(--cream);
  background: var(--ink);
}
.skip-link:focus { top: 12px; }

/* 眉标：英文大写短词，暖灰 */
.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow::before {
  width: 36px;
  height: 2px;
  flex: 0 0 auto;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

h1, h2 {
  font-family: var(--font-heavy);
  font-weight: 900;
  letter-spacing: 0;
  text-wrap: balance;
}

/* 按钮 */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 22px;
  white-space: nowrap;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.button-dark { color: var(--cream); background: var(--ink); }
.button-dark:hover { background: #3a2a26; }
.button-outline { color: var(--ink); border-color: var(--ink); }
.button-outline:hover { background: var(--raised); }
.button-light { color: var(--ink); background: var(--cream); }
.button-light:hover { background: var(--raised); }
.button-outline-light { color: var(--cream); border-color: var(--cream); }
.button-outline-light:hover { background: rgba(248, 246, 234, 0.1); }
.stores :focus-visible, .site-footer :focus-visible { outline-color: var(--cream); }

/* 页头 */
.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  align-items: center;
  gap: var(--space-32);
  height: var(--header-height);
  padding-inline: var(--gutter);
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  flex: 0 0 auto;
}
.brand-mark { width: auto; height: 36px; }
.brand-name {
  display: flex;
  flex-direction: column;
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
}
.brand-name span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 40px);
  margin-inline: auto;
}
.main-nav a {
  position: relative;
  padding-block: 24px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 24px;
  white-space: nowrap;
}
.main-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  content: "";
  transform: scaleX(0);
  transition: transform 180ms ease;
}
.main-nav a:hover,
.main-nav a.is-active { color: var(--ink); }
.main-nav a:hover::after,
.main-nav a.is-active::after { transform: scaleX(1); }

.header-order { min-height: 40px; padding: 0 18px; font-size: 14px; }

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}
.menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 首屏 */
.hero { padding-block: clamp(32px, 5vw, 64px) var(--section-gap); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-64);
  align-items: end;
}
.hero-copy { display: grid; gap: var(--space-24); padding-bottom: var(--space-12); }
.hero h1 {
  font-size: clamp(56px, 7.4vw, 104px);
  line-height: 1.04;
}
.hero-core {
  font-family: var(--font-heavy);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  line-height: 1.3;
}
.hero-intro {
  max-width: 30em;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-12); padding-top: var(--space-8); }
.hero-visual { aspect-ratio: 4 / 3; overflow: hidden; background: var(--raised); }
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus-desktop, 50% 50%);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-32);
  margin-top: var(--space-64);
}
.facts > div { padding-top: var(--space-24); border-top: 1px solid var(--ink); }
.facts dt { font-family: var(--font-heavy); font-size: 20px; font-weight: 700; line-height: 1.4; }
.facts dd { margin-top: var(--space-8); color: var(--muted); font-size: 15px; line-height: 1.7; }

/* 通用分区 */
.section { padding-block: var(--section-gap); }
.section h2 { margin-top: var(--space-24); font-size: clamp(34px, 4.4vw, 56px); line-height: 1.2; }
.section-heading { max-width: 820px; }
.section-heading > p:last-child {
  max-width: 40em;
  margin-top: var(--space-24);
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}
/* 滚动显现：仅 JS 生效时隐藏初始态（html.js 由 head 内联脚本标记），无 JS 内容始终可见 */
.reveal { transition: opacity 500ms ease, transform 500ms ease; }
html.js .reveal { opacity: 0; transform: translateY(24px); }
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* 关于 */
.about { background: var(--raised); border-block: 1px solid var(--line); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 7vw, 112px);
  align-items: start;
}
.story { display: grid; gap: var(--space-12); margin-top: var(--space-32); max-width: 34em; font-size: 16px; line-height: 1.9; }
.about blockquote {
  margin-top: var(--space-32);
  padding-top: var(--space-24);
  border-top: 1px solid var(--line);
  font-family: var(--font-heavy);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.6;
}
.about-visual img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: var(--focus-desktop, 50% 50%); }
.about-visual figcaption { margin-top: var(--space-12); color: var(--muted); font-size: 14px; }

.principles { margin-top: var(--space-64); }
.principles h3 { font-family: var(--font-heavy); font-size: 22px; font-weight: 700; }
.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-32);
  margin-top: var(--space-24);
}
.principle-grid article { padding-top: var(--space-24); border-top: 1px solid var(--line); }
.principle-grid h4 { font-size: 18px; font-weight: 700; line-height: 1.5; }
.principle-grid p { margin-top: var(--space-8); color: var(--muted); font-size: 15px; line-height: 1.8; }

/* 产品 */
.filters {
  display: flex;
  gap: var(--space-24);
  margin-top: var(--space-32);
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.filters button {
  position: relative;
  flex: 0 0 auto;
  padding: 12px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.filters button::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--ink);
  content: "";
  transform: scaleX(0);
  transition: transform 160ms ease;
}
.filters button:hover,
.filters button.is-active { color: var(--ink); }
.filters button.is-active::after { transform: scaleX(1); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-32) var(--space-24);
  margin-top: var(--space-32);
}
.product-card.is-hidden { display: none; }
.product-media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--raised); }
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus-desktop, 50% 50%);
  transition: transform 400ms ease;
}
.product-card:hover .product-media img { transform: scale(1.03); }
.product-body { display: grid; gap: var(--space-8); padding-top: var(--space-24); }
.product-body small,
.news-body small,
.news-list small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.product-body h3 { font-size: 22px; font-weight: 700; line-height: 1.35; }
.product-body p { color: var(--ink); font-size: 15px; line-height: 1.7; }
.product-body span {
  padding-top: var(--space-12);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-24);
  margin-top: var(--space-64);
  padding: var(--space-32);
  border: 1px solid var(--line);
  background: var(--raised);
}
.callout h3 { font-family: var(--font-heavy); font-size: 22px; font-weight: 700; }
.callout p { margin-top: var(--space-8); color: var(--muted); font-size: 15px; }

/* 门店：墨褐大底 */
.stores { color: var(--cream); background: var(--ink); }
.stores .eyebrow,
.stores .intro { color: var(--muted-on-dark); }
.stores-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 7vw, 112px);
  align-items: center;
}
.stores .intro { margin-top: var(--space-24); max-width: 34em; font-size: 16px; line-height: 1.8; }
.store-info { display: grid; margin-top: var(--space-32); border-top: 1px solid var(--line-on-dark); }
.store-info > div {
  display: grid;
  grid-template-columns: 7em minmax(0, 1fr);
  gap: var(--space-24);
  padding-block: var(--space-24);
  border-bottom: 1px solid var(--line-on-dark);
}
.store-info dt { color: var(--muted-on-dark); font-size: 14px; line-height: 1.7; }
.store-info dd { display: grid; gap: 4px; }
.store-info strong { font-size: 18px; font-weight: 700; line-height: 1.5; font-variant-numeric: tabular-nums; }
.store-info span { color: var(--muted-on-dark); font-size: 14px; line-height: 1.7; }
.stores-actions { display: flex; flex-wrap: wrap; gap: var(--space-12); margin-top: var(--space-32); }
.store-visual img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: var(--focus-desktop, 50% 50%); }
.store-visual figcaption { margin-top: var(--space-12); color: var(--muted-on-dark); font-size: 14px; }

/* 新鲜动态 */
.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: var(--space-64);
  margin-top: var(--space-64);
  align-items: start;
}
.featured-news { display: block; }
.news-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--raised); }
.news-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus-desktop, 50% 50%); transition: transform 400ms ease; }
.featured-news:hover img { transform: scale(1.03); }
.news-body { display: grid; gap: var(--space-8); padding-top: var(--space-24); }
.news-body h3 { font-family: var(--font-heavy); font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; line-height: 1.4; }
.news-body time,
.news-list time { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }

.news-list { display: grid; border-top: 1px solid var(--ink); }
.news-list article,
.news-list .news-item {
  display: grid;
  gap: var(--space-8);
  padding-block: var(--space-24);
  border-bottom: 1px solid var(--line);
}
.news-list article > span,
.news-list .news-item > span { display: flex; justify-content: space-between; gap: var(--space-12); }
.news-list h3 { font-size: 19px; font-weight: 700; line-height: 1.45; }
.news-list p { color: var(--muted); font-size: 15px; line-height: 1.7; }
.news-list .news-item:hover h3,
.featured-news:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* 合作 */
.cooperation { border-top: 1px solid var(--line); }
.cooperation-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 7vw, 112px);
  align-items: start;
}
.cooperation-visual img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: var(--focus-desktop, 50% 50%); }
.cooperation-copy > p:not(.eyebrow) { margin-top: var(--space-24); max-width: 34em; color: var(--muted); font-size: 16px; line-height: 1.8; }
.cooperation-phone {
  display: inline-block;
  margin-top: var(--space-32);
  font-family: var(--font-info);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  border-bottom: 2px solid var(--ink);
}
.direction-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-32) var(--space-24);
  margin-top: var(--space-64);
}
.direction-list > div { padding-top: var(--space-24); border-top: 1px solid var(--line); }
.direction-list dt { font-size: 18px; font-weight: 700; }
.direction-list dd { margin-top: var(--space-8); color: var(--muted); font-size: 15px; line-height: 1.7; }

/* 页脚 */
.site-footer { padding-block: var(--space-64); color: var(--cream); background: var(--ink); }
.footer-grid {
  display: grid;
  grid-template-columns: auto repeat(3, minmax(0, 1fr));
  gap: var(--space-32) var(--space-64);
  align-items: start;
}
.footer-logo img { width: 132px; height: auto; }
.footer-col { display: grid; gap: var(--space-8); font-size: 15px; }
.footer-col small { color: var(--muted-on-dark); font-size: 13px; }
.footer-col a { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.copyright {
  grid-column: 1 / -1;
  padding-top: var(--space-24);
  border-top: 1px solid var(--line-on-dark);
  color: var(--muted-on-dark);
  font-size: 13px;
}

.mobile-actions { display: none; }
.toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 88px;
  padding: 10px 16px;
  color: var(--cream);
  background: var(--ink);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
}

/* 平板 */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: auto repeat(2, minmax(0, 1fr)); }
  .footer-logo { grid-row: span 2; }
}

/* 导航收起（script.js 在 920px 以上自动关闭菜单） */
@media (max-width: 920px) {
  .menu-button { display: block; }
  .header-order { display: none; }
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-24) var(--gutter);
    background: var(--cream);
    border-top: 1px solid var(--line);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a {
    padding-block: 16px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-family: var(--font-heavy);
    font-size: 22px;
    font-weight: 700;
  }
  .main-nav a::after { display: none; }

  .hero-grid,
  .about-grid,
  .stores-grid,
  .news-layout,
  .cooperation-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: var(--space-32); }
  .hero-visual { order: -1; aspect-ratio: 3 / 2; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: var(--space-32); }
  .facts > div { display: grid; grid-template-columns: 6em minmax(0, 1fr); gap: var(--space-12); padding-block: 16px; border-top-color: var(--line); }
  .facts > div:first-child { border-top-color: var(--ink); }
  .facts dt { font-size: 16px; }
  .facts dd { margin-top: 0; }
  .principle-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .principle-grid article { padding-block: var(--space-24) 0; }
  .store-visual { order: -1; }
  .store-visual img { aspect-ratio: 3 / 2; }
  .cooperation-visual img { aspect-ratio: 3 / 2; }
  .news-layout { gap: var(--space-32); margin-top: var(--space-32); }
}

/* 手机 */
@media (max-width: 600px) {
  :root { --header-height: 64px; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .brand-mark { height: 32px; }
  .hero { padding-top: var(--space-24); }
  .hero h1 { font-size: 56px; }
  .hero-intro { font-size: 16px; }
  .hero-actions .button { flex: 1 1 auto; }
  .section h2 { font-size: 32px; }
  .product-grid { gap: var(--space-24) 16px; }
  .product-body { padding-top: 16px; }
  .product-body h3 { font-size: 18px; }
  .product-body p { font-size: 14px; }
  .callout { padding: var(--space-24); }
  .callout .button { width: 100%; }
  .store-info > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .stores-actions .button { flex: 1 1 auto; }
  .direction-list { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: var(--space-32); }
  .direction-list > div { padding-block: var(--space-24) 0; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-logo { grid-column: 1 / -1; grid-row: auto; }
  .footer-logo img { width: 112px; }

  .mobile-actions {
    position: fixed;
    z-index: 40;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px));
    background: var(--cream);
    border-top: 1px solid var(--line);
  }
  .mobile-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 1px solid var(--ink);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
  }
  .mobile-actions a:last-child { color: var(--cream); background: var(--ink); }

  .hero-visual img,
  .about-visual img,
  .product-media img,
  .store-visual img,
  .news-media img,
  .cooperation-visual img { object-position: var(--focus-mobile, var(--focus-desktop, 50% 50%)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .button:hover { transform: none; }
  html.js .reveal { opacity: 1; transform: none; }
}
