/* 全局变量：集中管理 Figma 设计稿中的主色、浅色背景、边框色和阴影。 */
:root {
  --color-ink: #3d440d;
  --color-muted: #47483b;
  --color-green: #386a1b;
  --color-lime: #b5f090;
  --color-cream: #fafce0;
  --color-soft: #f4f6da;
  --color-line: rgba(200, 199, 183, 0.3);
  --shadow-card: 0 12px 30px rgba(61, 68, 13, 0.08);
  --radius-card: 12px;
  --max-width: 1280px;
}

/* 基础重置：去掉浏览器默认空隙，保证盒模型更容易控制。 */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-cream);
  color: var(--color-muted);
  font-family: "Manrope", "Nimbus Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

/* 背景音乐按钮：固定在右下角，不遮挡主要内容 */
.music-toggle {
  position: fixed;
  z-index: 30;
  right: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: rgba(250, 252, 224, 0.95);
  color: var(--color-ink);
  box-shadow: 0 4px 16px rgba(61, 68, 13, 0.12);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.music-toggle:hover {
  background: #fff;
  transform: translateY(-1px);
}

.music-toggle.is-playing {
  background: var(--color-ink);
  color: #fff;
  border-color: var(--color-ink);
}

.music-toggle__icon {
  font-size: 16px;
  line-height: 1;
}

.music-toggle.is-playing .music-toggle__icon {
  animation: music-pulse 1.2s ease-in-out infinite;
}

@keyframes music-pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.55;
  }
}

/* 可访问性辅助类：视觉隐藏，但屏幕阅读器仍可读取。 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* 顶部导航：使用半透明奶油色背景和模糊效果，贴近设计稿的玻璃质感。 */
.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 114px;
  padding: 13px 60px;
  border-bottom: 1px solid var(--color-line);
  background: rgba(250, 252, 224, 0.9);
  backdrop-filter: blur(6px);
}

.brand {
  position: absolute;
  z-index: 2;
  left: 60px;
  width: 274px;
}

.brand img {
  display: block;
  width: 274px;
  height: auto;
  /* 原图是绿字黑底：用 screen 让黑底融入浅色背景，只保留绿色 logo */
  mix-blend-mode: screen;
}

.footer-brand img {
  display: block;
  width: 137px;
  height: auto;
  mix-blend-mode: normal;
  /* 页脚为浅色实底，用滤镜显示与顶部一致的手绘绿色 logo */
  filter: brightness(0) saturate(100%) invert(46%) sepia(52%) saturate(520%) hue-rotate(56deg) brightness(92%) contrast(90%);
}

.main-nav {
  display: flex;
  gap: 0;
  align-items: center;
  color: var(--color-muted);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.main-nav a {
  padding: 0 28px;
  transition: color 0.2s ease;
}

/* 导航项之间的细竖线分隔 */
.main-nav a:not(:last-child) {
  border-right: 1px solid rgba(61, 68, 13, 0.28);
}

.main-nav a:hover,
.main-nav .active {
  color: var(--color-ink);
}

/* 导航栏右侧语言切换：德语 / 英语，深绿色品牌色 */
.lang-switch {
  position: absolute;
  z-index: 2;
  right: 60px;
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--color-ink);
  border-radius: 999px;
  background: var(--color-cream);
}

.lang-switch__btn {
  min-width: 44px;
  padding: 8px 14px;
  border: 0;
  background: transparent;
  color: var(--color-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-switch__btn + .lang-switch__btn {
  border-left: 1px solid var(--color-ink);
}

.lang-switch__btn.is-active {
  background: var(--color-ink);
  color: var(--color-cream);
}

.lang-switch__btn:not(.is-active):hover {
  background: rgba(61, 68, 13, 0.08);
}

/* 手机端汉堡菜单开关（桌面端隐藏） */
.nav-open-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle {
  display: none;
}

/* 按钮组件：首屏和订阅区域复用，保持统一圆角胶囊形状。 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 48px;
  padding: 14px 40px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

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

.btn-outline {
  border: 1px solid #fff;
  color: #fff;
}

/* Hero 首屏：插画背景与页面绿色统一，角色靠右下，左侧留给标题。 */
.hero {
  position: relative;
  min-height: 786px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background-color: #77a454;
  color: #fff;
  text-align: center;
}

.hero-bg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 130%;
  object-fit: cover;
  /* 锚在右下，再整体下移，让白 T 恤与副标题小字大致齐平 */
  object-position: right bottom;
  transform: translateY(22%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(896px, calc(100% - 32px));
  padding-top: 80px;
  /* 整体略向左偏，副标题限制宽度，避开右侧角色白衣服 */
  transform: translateX(-7%);
}

.hero h1 {
  margin: 0;
  color: var(--color-cream);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.hero-desc {
  width: min(480px, 52vw);
  max-width: 480px;
  margin: 16px auto 0;
  color: var(--color-soft);
  font-size: clamp(15px, 1.6vw, 16px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  padding-top: 32px;
  flex-wrap: wrap;
}

/* 通用标题区：用于菜单、氛围和其他内容区。 */
.section-heading {
  width: min(var(--max-width), 100%);
  margin: 0 auto;
  padding: 0 64px;
}

.section-heading h2,
.story-copy h2,
.location-copy h2,
.newsletter h2 {
  margin: 0;
  color: var(--color-ink);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.section-heading p {
  margin: 4px 0 0;
}

.section-heading.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading.center {
  text-align: center;
}

/* 品牌故事区：宽屏两栏，小屏自动堆叠。 */
.section-grid {
  width: min(var(--max-width), 100%);
  margin: 0 auto;
  padding: 48px 64px;
}

.story {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
  min-height: 786px;
}

.story-copy {
  display: grid;
  gap: 16px;
}

.eyebrow,
.product-info small {
  width: fit-content;
  border-radius: 999px;
  background: var(--color-lime);
  color: #3c6f1f;
  padding: 4px 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.story-copy p {
  margin: 0;
  max-width: 640px;
}

.note {
  display: grid;
  gap: 4px;
  padding-top: 32px;
}

.note strong {
  color: var(--color-ink);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.story-image {
  position: relative;
  margin: 0;
  min-height: 690px;
  border-radius: var(--radius-card);
}

.story-image img {
  width: 100%;
  height: 690px;
  object-fit: cover;
  border-radius: var(--radius-card);
}

.story-image figcaption {
  position: absolute;
  right: -16px;
  bottom: -16px;
  max-width: 220px;
  padding: 16px;
  border-radius: var(--radius-card);
  background: var(--color-ink);
  color: #fff;
  box-shadow: var(--shadow-card);
}

/* 菜单产品卡片：横向滚动保留设计稿中的卡片集合感，在手机上也可滑动查看。 */
.collection {
  padding: 48px 0;
  overflow: hidden;
}

.product-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(286px, 1fr);
  gap: 24px;
  width: min(var(--max-width), 100%);
  margin: 24px auto 0;
  padding: 0 64px 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}

.product-card {
  min-height: 396px;
  padding: 9px;
  border: 1px solid rgba(200, 199, 183, 0.1);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-card);
  scroll-snap-align: start;
}

.product-card > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
}

.product-info {
  display: grid;
  gap: 4px;
  padding: 12px 4px 4px;
}

.product-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.product-title h3 {
  margin: 0;
  color: var(--color-ink);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
}

.product-title span {
  color: var(--color-green);
  white-space: nowrap;
}

.product-info p {
  margin: 0;
  font-size: 15px;
}

.product-info small {
  padding: 4px 8px;
  font-size: 10px;
}

/* 氛围区：三张等大横图并排，object-fit 裁剪统一比例 */
.atmosphere {
  padding: 32px 0 40px;
}

.atmosphere .section-heading {
  margin-bottom: 0;
}

.atmosphere-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: min(1040px, calc(100% - 128px));
  margin: 28px auto 0;
  padding: 0;
}

.atmosphere-tile {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-card);
  border: 1px solid rgba(200, 199, 183, 0.2);
  aspect-ratio: 4 / 3;
}

.atmosphere-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 合作伙伴位置地图：居中标题 + 全宽地图图片 */
.partners {
  padding: 48px 0;
  background: var(--color-cream);
}

.partners .section-heading {
  width: min(var(--max-width), 100%);
  margin: 0 auto;
  padding: 0 64px;
}

.partner-map {
  width: min(var(--max-width), 100%);
  margin: 48px auto 0;
  padding: 0 64px;
}

.partner-map img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(200, 199, 183, 0.2);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  object-fit: cover;
}

/* 社交媒体区：浅绿色背景承接设计稿，并用四宫格展示社群照片。 */
.social {
  padding: 48px 64px;
  background: rgba(232, 234, 207, 0.3);
}

.social-top,
.social-grid {
  width: min(calc(var(--max-width) - 128px), 100%);
  margin: 0 auto;
}

.social-top h2 {
  margin: 0;
  color: var(--color-ink);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
}

.social-top p {
  margin: 4px 0 0;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.social-grid img {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid rgba(200, 199, 183, 0.2);
  border-radius: 8px;
  object-fit: cover;
}

/* 门店位置卡片：白色卡片和地图图片区分内容层级。 */
.location {
  padding: 48px 64px;
}

.location-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  width: min(calc(var(--max-width) - 128px), 100%);
  margin: 0 auto;
  padding: 49px;
  border: 1px solid rgba(200, 199, 183, 0.2);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.location-copy {
  display: grid;
  align-content: center;
}

.contact-list {
  display: grid;
  gap: 24px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-list .contact-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  object-fit: contain;
}

.contact-list .contact-icon[src*="location"] {
  width: 16px;
  height: 20px;
}

.contact-list div {
  display: grid;
  gap: 4px;
}

.contact-list strong {
  color: var(--color-ink);
}

.contact-list span {
  display: block;
}

.text-link {
  width: fit-content;
  margin-top: 48px;
  border-bottom: 1px solid var(--color-ink);
  color: var(--color-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.map-image {
  width: 100%;
  height: 400px;
  border: 1px solid rgba(200, 199, 183, 0.3);
  border-radius: var(--radius-card);
  object-fit: cover;
}

/* 订阅区：深色背景与浅色文字形成强对比，突出行动按钮。 */
.newsletter {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 48px 16px;
  background: var(--color-ink);
  color: var(--color-soft);
  text-align: center;
}

.newsletter h2 {
  color: var(--color-cream);
}

.newsletter p {
  width: min(672px, 100%);
  margin: 0;
  opacity: 0.9;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  width: min(448px, 100%);
  padding-top: 16px;
}

.newsletter-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  border-radius: 999px;
  background: #545c23;
  color: #fff;
  padding: 18px 24px;
}

.newsletter-form input::placeholder {
  color: rgba(203, 212, 142, 0.65);
}

.newsletter-form button {
  border: 0;
  border-radius: 999px;
  background: var(--color-green);
  color: #fff;
  padding: 18px 40px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.newsletter small {
  color: rgba(203, 212, 142, 0.65);
}

/* 页脚：四栏结构对应设计稿底部信息区。 */
.site-footer {
  padding: 21px 64px 12px;
  border-top: 1px solid rgba(200, 199, 183, 0.2);
  background: var(--color-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 48px;
  width: min(calc(var(--max-width) - 128px), 100%);
  margin: 0 auto;
}

.footer-brand img {
  margin-bottom: 16px;
}

/* 页脚 logo 容器：避免滤镜影响周围文字 */
.footer-brand {
  isolation: isolate;
}

.footer-brand p {
  max-width: 240px;
  margin: 0;
}

.footer-grid h3 {
  margin: 0 0 16px;
  color: var(--color-ink);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-grid a {
  display: block;
  margin-bottom: 8px;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  background: #eef0d5;
}

.footer-social img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(calc(var(--max-width) - 128px), 100%);
  margin: 28px auto 0;
  padding-top: 17px;
  border-top: 1px solid rgba(200, 199, 183, 0.1);
  color: rgba(71, 72, 59, 0.6);
  font-size: 11px;
  text-transform: uppercase;
}

.footer-bottom p {
  margin: 0;
  text-transform: none;
  font-size: 16px;
}

.footer-bottom div {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

/* 平板适配：缩小左右间距，避免内容在中等屏幕上过挤。 */
@media (max-width: 1024px) {
  .site-header {
    justify-content: flex-end;
    padding-inline: 32px;
  }

  .brand {
    left: 32px;
    width: 232px;
  }

  .brand img {
    width: 232px;
  }

  .main-nav a {
    padding: 0 18px;
  }

  .lang-switch {
    right: 32px;
  }

  .section-heading,
  .section-grid,
  .product-row,
  .atmosphere-grid,
  .partners .section-heading,
  .partner-map,
  .social,
  .location,
  .site-footer {
    padding-left: 32px;
    padding-right: 32px;
  }

  .story,
  .location-card {
    grid-template-columns: 1fr;
  }

  .story-image,
  .story-image img {
    min-height: auto;
    height: 520px;
  }

  .atmosphere-grid {
    grid-template-columns: 1fr;
    width: min(calc(100% - 64px), 1040px);
  }

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

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

/* 手机适配：汉堡菜单、首屏分区排版、按钮竖排 */
@media (max-width: 720px) {
  body:has(#nav-open:checked) {
    overflow: hidden;
  }

  .site-header {
    position: fixed;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr auto auto;
    grid-template-areas: "brand lang toggle";
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 12px 20px;
  }

  .brand {
    position: static;
    grid-area: brand;
    width: 148px;
  }

  .brand img {
    width: 148px;
  }

  .lang-switch {
    position: static;
    grid-area: lang;
    justify-self: end;
  }

  .lang-switch__btn {
    min-width: 36px;
    padding: 6px 10px;
    font-size: 11px;
  }

  .nav-toggle {
    display: inline-flex;
    grid-area: toggle;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--color-ink);
    border-radius: 12px;
    background: var(--color-cream);
    cursor: pointer;
  }

  .nav-toggle__bar {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--color-ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-open-input:checked + .nav-toggle .nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-open-input:checked + .nav-toggle .nav-toggle__bar:nth-child(2) {
    opacity: 0;
  }

  .nav-open-input:checked + .nav-toggle .nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .main-nav {
    position: fixed;
    z-index: 29;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 96px 24px 32px;
    background: rgba(250, 252, 224, 0.98);
    font-size: 18px;
    letter-spacing: 0.04em;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
  }

  .nav-open-input:checked ~ .main-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .main-nav a {
    width: 100%;
    max-width: 280px;
    padding: 14px 16px;
    border-right: 0;
    text-align: center;
    border-radius: 12px;
  }

  .main-nav a:hover,
  .main-nav .active {
    background: rgba(56, 106, 27, 0.1);
  }

  /* 首屏：文字在上方纯色区，角色缩到右下角，避免与白衣服叠字 */
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 100svh;
    min-height: 100dvh;
    padding: 88px 20px 28px;
    text-align: left;
  }

  .hero-bg {
    top: auto;
    left: auto;
    right: -8%;
    bottom: 0;
    width: 78%;
    height: 46%;
    object-fit: contain;
    object-position: right bottom;
    transform: none;
    pointer-events: none;
  }

  .hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: none;
    margin: 0;
    padding-top: 0;
    transform: none;
  }

  .hero h1 {
    max-width: 12em;
    font-size: clamp(26px, 7.2vw, 34px);
    line-height: 1.22;
    text-shadow: 0 2px 12px rgba(61, 68, 13, 0.25);
  }

  .hero-desc {
    width: 100%;
    max-width: 17.5em;
    margin: 14px 0 0;
    font-size: 15px;
    line-height: 1.6;
    text-shadow: 0 1px 8px rgba(61, 68, 13, 0.2);
  }

  .hero-actions {
    justify-content: flex-start;
    padding-top: 22px;
    gap: 12px;
  }

  .hero-actions,
  .newsletter-form,
  .section-heading.split,
  .social-top,
  .footer-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .newsletter-form button {
    width: 100%;
  }

  .section-heading,
  .section-grid,
  .product-row,
  .atmosphere-grid,
  .partners .section-heading,
  .partner-map,
  .social,
  .location,
  .site-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .story {
    min-height: auto;
  }

  .story-image img {
    height: 420px;
  }

  .story-image figcaption {
    right: 12px;
    bottom: 12px;
  }

  .atmosphere-grid {
    width: calc(100% - 40px);
    margin-top: 20px;
  }

  .social-grid,
  .location-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .location-card {
    padding: 24px;
  }

  .map-image {
    height: 320px;
  }

  .footer-bottom div {
    gap: 12px;
  }
}
