:root {
  --bg: #FDF8EE;
  --primary: #B1947A;
  --text: #4B4948;
  --text-dark: #4C4948;
  --text-light: #595757;
  --white: #FFFFFF;
  --accent-light: #DBCDC0;
  --brown: #8C6845;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { min-width: 375px; scroll-behavior: smooth; background-color: var(--bg); overflow-x: auto; }
body { background: transparent; color: var(--text); font-family: 'PingFang SC', -apple-system, 'Microsoft YaHei', sans-serif; font-synthesis: none; overflow-x: clip; width: 375px; margin: 0 auto; position: relative; }
/* 背景层：跟随 body 宽度，居中显示，留白区域由 html 背景色填充 */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 375px; height: 100vh;
  background: var(--bg) url('/images/Home/Background.png') center/cover no-repeat;
  z-index: -1;
}
@media (min-width: 769px) {
  html { min-width: 1440px; }
  body { width: 1440px; }
  body::before { width: 1440px; }
}
/* 用户开启"减少动画"时禁用所有过渡和动画 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
.page, .buy-page { overflow-x: hidden; }

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  width: 100%; height: 88px;
  display: flex; align-items: center; justify-content: center;
}
.nav::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--nav-header-bg, url('/images/Home/Header.png')) center/cover no-repeat fixed;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease, bottom 0.3s ease;
}
.nav:hover::before, .nav.expanded::before { opacity: 1; }
.nav.scrolled::before { opacity: 1; }
.nav.expanded::before {
  bottom: var(--dropdown-h, -250px);
}
.nav-inner {
  width: calc(100% - 200px);
  max-width: calc(1440px - 200px);
  display: flex; align-items: center;
}
.nav-logo {
  display: flex; align-items: center;
  text-decoration: none; line-height: 1;
}
.nav-logo-img { height: 17px; width: 141px; display: block; }
.nav-items { display: flex; align-items: center; gap: 32px; margin-left: 40px; }
.nav-link {
  font-family: 'OPPO Sans 4.0 SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 14px; font-weight: 400; letter-spacing: 0.03em;
  color: #8C6845; text-decoration: none; white-space: nowrap;
}
.nav-link:hover, .nav-link.active,
.nav-items a:hover, .nav-items a.active { color: #8C6845; }

/* 下拉菜单 */
.nav-item { position: relative; }
.nav-item > .nav-link { position: relative; }
.nav-item > .nav-link::after {
  content: ''; position: absolute; bottom: -8px; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%; height: 2px; background: #8C6845;
  transition: transform 0.25s ease;
}
.nav-item:hover > .nav-link::after { transform: translateX(-50%) scaleX(1); }
.nav-item:hover > .nav-link { color: #8C6845; }
.nav-dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  min-width: 120px; padding: 40px 0 8px 0; z-index: 101;
}
.nav-item:hover .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block; padding: 8px 20px 8px 0;
  font-family: 'OPPO Sans 4.0 SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 14px; color: #8C6845; text-decoration: none; white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.nav-dropdown a:hover { color: #8C6845; background: rgba(140, 104, 69, 0.08); }

/* 桌面 769~1440px：页面为 1440px 固定画布，窗口较窄时整页横向滚动。
   此时导航与底层背景若 position:fixed 会锚定视口、与内容脱节，导致右侧「更多」等
   菜单项被裁掉、背景纹理不同步。改为 sticky 后随页面内容一起横向滚动（纵向仍吸顶）。 */
@media (min-width: 769px) and (max-width: 1440px) {
  /* 底层背景：由「视口固定」改为「画布吸顶」，横向随 1440px 画布滚动对齐 */
  body::before {
    position: sticky;
    top: 0;
    left: auto;
    transform: none;
    display: block;
    width: 100%; /* 等于 1440px 画布宽度 */
    height: 100vh;
    margin-bottom: -100vh; /* 抵消吸顶占位，不占用页面高度 */
  }
  /* 导航：sticky 吸顶 + 随画布横向滚动 */
  .nav {
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
    width: 100%; /* 等于 1440px 画布宽度，随内容横向滚动 */
    margin-bottom: -88px; /* 抵消吸顶占位，保持原有的悬浮覆盖布局 */
  }
  .nav::before { background-attachment: scroll; }
  /* 右侧安全边距：略收紧菜单项间距，避免「更多」贴住画布右缘/滚动条 */
  .nav-items { gap: 24px; }
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 24px; height: 24px;
  cursor: pointer; z-index: 110;
}
.nav-hamburger span {
  display: block; width: 100%; height: 2px;
  background: #8C6845; transition: all 0.3s ease;
}
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 249, 239, 0.98); z-index: 105;
  flex-direction: column; align-items: flex-start; justify-content: flex-start;
  gap: 32px; padding: 100px 40px 40px;
  overflow-y: auto;
}
.mobile-nav.active { display: flex; }
.mobile-nav > a {
  font-family: 'OPPO Sans 4.0 SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 20px; color: #8C6845; text-decoration: none; letter-spacing: 0.03em;
}
.mobile-nav a:hover, .mobile-nav a.active { color: #8C6845; }

/* 移动端子菜单 */
.mobile-nav-group {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0;
}
.mobile-nav-parent {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
}
.mobile-nav-parent > a {
  font-family: 'OPPO Sans 4.0 SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 20px; color: #8C6845; text-decoration: none; letter-spacing: 0.03em;
  pointer-events: auto;
}
.mobile-nav-arrow {
  display: inline-block; width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #8C6845;
  transition: transform 0.3s ease;
}
.mobile-nav-parent.open .mobile-nav-arrow {
  transform: rotate(180deg);
}
.mobile-nav-sub {
  display: none;
  flex-direction: column; align-items: flex-start; gap: 16px;
  padding-top: 20px; padding-bottom: 4px;
  padding-left: 8px;
}
.mobile-nav-sub.open { display: flex; }
.mobile-nav-sub a {
  font-family: 'OPPO Sans 4.0 SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 16px; color: #8C6845; text-decoration: none; letter-spacing: 0.03em;
  opacity: 0.85;
}
.mobile-nav-sub a:hover { opacity: 1; }

@media (max-width: 768px) {
  .nav-items { gap: 24px; }
}

@media (max-width: 768px) {
  .nav-inner { width: calc(100% - 48px); max-width: none; }
  .nav-items { gap: 14px; margin-left: 14px; }
  .nav-link, .nav-items a { font-size: 14px; }
}

/* ========== 门店查询 ========== */
.store-finder { padding: 120px 100px 120px; background-position: center; background-size: cover; background-repeat: no-repeat; }
.store-header { margin-bottom: 40px; }
.store-header .label { font-family: 'OPPO Sans 4.0 SC', 'PingFang SC', sans-serif; font-size: 40px; font-weight: 500; line-height: 1.2; letter-spacing: 0.0025em; color: var(--white); }
.store-header .eng { font-family: 'Cormorant Garamond', serif; font-size: 40px; font-style: italic; line-height: 1.2; letter-spacing: 0.0025em; color: var(--white); display: block; margin-top: 4px; padding-left: 2em; }
.store-grid { display: flex; gap: 50px; margin-bottom: 48px; }
.store-sub-header { margin: 24px 0 48px; }
.store-sub-item { font-family: 'OPPO Sans 4.0 SC', 'PingFang SC', sans-serif; font-size: 28px; font-weight: 400; color: var(--white); letter-spacing: 0.03em; line-height: 1.8; }
.store-sub-en { font-family: 'OPPO Sans 4.0 SC', 'PingFang SC', sans-serif; font-size: 24px; font-weight: 400; color: var(--white); }
.online-store-row { display: flex; justify-content: space-between; margin: 32px 0 48px; }
.online-store-item { display: flex; flex-direction: column; align-items: center; gap: 8px; height: 95px; cursor: pointer; position: relative; }
.online-store-link { text-decoration: none; cursor: pointer; }
.online-store-link .online-store-item { cursor: pointer; }
.online-store-item img { width: 46px; height: 46px; object-fit: contain; }
.online-store-item .online-store-hover-img { position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%); width: 150px; height: 150px; border-radius: 12px; object-fit: cover; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; z-index: 10; }
.online-store-hover:hover .online-store-hover-img,
.online-store-hover.active .online-store-hover-img,
.online-store-link:hover .online-store-hover-img { opacity: 1; }
.online-store-cn { font-family: 'OPPO Sans 4.0 SC', 'PingFang SC', sans-serif; font-size: 14px; font-weight: 400; color: var(--white); letter-spacing: 0.03em; }
.online-store-en { font-family: 'OPPO Sans 4.0 SC', 'PingFang SC', sans-serif; font-size: 12px; font-weight: 400; color: rgba(255,255,255,0.7); }
/* 线上渠道轮播：数量超过 5 个时启用（一屏 5 个），左右按钮手动切换 */
.online-store-carousel { position: relative; }
.online-store-arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: none;
  color: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s, transform 0.3s;
}
.online-store-arrow svg { width: 24px; height: 24px; display: block; }
.online-store-arrow:hover { transform: translateY(-50%) scale(1.15); }
.online-store-arrow[disabled] { opacity: 0.25; cursor: default; }
.online-store-arrow-prev { left: -52px; }
.online-store-arrow-next { right: -52px; }
.store-finder--buy .online-store-arrow { color: #8C6845; }
.online-store-carousel.is-carousel .online-store-arrow { display: flex; }
.online-store-carousel.is-carousel .online-store-row { justify-content: flex-start; flex-wrap: nowrap; gap: 0; }
.online-store-carousel.is-carousel .online-store-entry { flex: 0 0 20%; display: flex; justify-content: center; }
.store-card { width: 380px; overflow: hidden; }
.store-card img { width: 100%; height: 253px; object-fit: cover; display: block; }
.store-info { padding: 12px 0; }
.store-name { font-size: 14px; font-weight: 500; color: var(--white); letter-spacing: 0.02em; margin-bottom: 4px; }
.store-address { font-size: 12px; color: rgba(255,255,255,0.7); line-height: 1.4; }
/* 线下渠道轮播：数量超过 3 个时启用（桌面一屏 3 个 / 移动一屏 1 个），左右按钮手动切换 */
.offline-store-carousel { position: relative; }
.offline-store-arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: none;
  color: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s, transform 0.3s;
}
.offline-store-arrow svg { width: 24px; height: 24px; display: block; }
.offline-store-arrow:hover { transform: translateY(-50%) scale(1.15); }
.offline-store-arrow[disabled] { opacity: 0.25; cursor: default; }
.offline-store-arrow-prev { left: -52px; }
.offline-store-arrow-next { right: -52px; }
.store-finder--buy .offline-store-arrow { color: #8C6845; }
.offline-store-carousel.is-carousel .offline-store-arrow { display: flex; }
.store-btn-wrap { display: flex; justify-content: center; }
.store-btn { display: inline-flex; align-items: center; justify-content: center; width: 300px; height: 40px; background: var(--bg); color: var(--primary); font-family: 'PingFang SC', -apple-system, 'Microsoft YaHei', sans-serif; font-size: 15px; font-weight: 500; letter-spacing: 0.05em; text-decoration: none; border: none; cursor: pointer; transition: all 0.3s ease; }
.store-btn:hover { background: #FFF; transform: translateY(-2px); }
.store-btn .sep { margin: 0 2px; opacity: 0.6; }

.store-btn--verify { width: 380px; height: 40px; background: #8C6845; color: #FDF8EE; font-size: 14px; letter-spacing: 0.04em; text-align: center; line-height: 1.6; white-space: pre-line; }
.store-btn--verify:hover { background: #7A5A3B; transform: translateY(-2px); }

/* 购买渠道页：门店查询文字颜色统一为 #8C6845 */
.store-finder--buy .store-sub-item,
.store-finder--buy .store-sub-en,
.store-finder--buy .online-store-cn,
.store-finder--buy .online-store-en,
.store-finder--buy .store-name,
.store-finder--buy .store-address { color: #8C6845; }

.store-finder--buy { padding-top: 40px; padding-bottom: 60px; }

/* ========== 页脚信息 ========== */
/* min-height + 自适应高度：items 增多时页脚自动增高，背景图（cover）随之铺满，
   保证所有页脚内容都在 Footer.png 内；items 为 3 条时高度与原先一致（居中位置不变） */
.footer-banner { position: relative; padding: 12px 100px; min-height: 110px; display: flex; align-items: center; background: url('/images/Home/Footer.png') center/cover no-repeat; }
.footer-info-grid { display: grid; grid-template-columns: auto auto; gap: 6px 180px; justify-content: start; }
.footer-info-item { font-family: 'PingFang SC', -apple-system, 'Microsoft YaHei', sans-serif; font-size: 13px; color: rgba(255,255,255,0.85); line-height: 1.6; letter-spacing: 0.02em; text-align: left; white-space: nowrap; }
/* 页脚信息中的图标 + 跳转链接（备案信息等）：配置 icon 时图标占位并撑开文字，未配置时文字左对齐 */
.footer-info-link { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; transition: color 0.2s ease; }
.footer-info-link:hover { color: #FFF; text-decoration: underline; }
.footer-info-icon { width: 20px; height: 20px; flex: 0 0 auto; object-fit: contain; }

@media (max-width: 768px) {
  .store-finder { padding: 80px 24px 80px; }
  .store-btn--verify { width: 100%; max-width: 500px; }
}

/* 移动端线上/线下渠道轮播：箭头移到列表下方居中，避免遮挡内容 */
@media (max-width: 768px) {
  .online-store-carousel.is-carousel { padding-bottom: 44px; }
  .online-store-carousel.is-carousel .online-store-row { margin-bottom: 8px; }
  .online-store-carousel.is-carousel .online-store-arrow { top: auto; bottom: 0; transform: none; width: 36px; height: 36px; }
  .online-store-carousel.is-carousel .online-store-arrow:hover { transform: scale(1.15); }
  .online-store-carousel.is-carousel .online-store-arrow-prev { left: calc(50% - 46px); right: auto; }
  .online-store-carousel.is-carousel .online-store-arrow-next { left: calc(50% + 10px); right: auto; }
  .offline-store-carousel.is-carousel { padding-bottom: 44px; }
  .offline-store-carousel.is-carousel .store-grid { margin-bottom: 8px; }
  .offline-store-carousel.is-carousel .offline-store-arrow { top: auto; bottom: 0; transform: none; width: 36px; height: 36px; }
  .offline-store-carousel.is-carousel .offline-store-arrow:hover { transform: scale(1.15); }
  .offline-store-carousel.is-carousel .offline-store-arrow-prev { left: calc(50% - 46px); right: auto; }
  .offline-store-carousel.is-carousel .offline-store-arrow-next { left: calc(50% + 10px); right: auto; }
}

@media (max-width: 768px) {
  body { background-attachment: scroll; }
  .nav { height: 64px; }
  .nav::before { background-attachment: scroll; }
  .nav-items { display: none; }
  .nav-inner { max-width: calc(375px - 48px); }
  .nav-hamburger { display: flex; position: absolute; top: 20px; right: calc((100vw - 375px) / 2 + 24px); }
  .nav-logo-img { height: 32px; width: auto; }

  .store-finder { padding: 60px 24px 80px; }
  .store-header .label { font-size: 20px; }
  .store-header .eng { font-size: 20px; }
  .store-sub-item { font-size: 12px; margin-top: 100px; }
  .store-sub-item:first-child { margin-top: 0; }
  .store-sub-en { font-size: 12px; }
  .online-store-cn { font-size: 12px; }
  .online-store-en { font-size: 10px; }
  .store-grid { flex-direction: column; gap: 16px; }
  .store-card { width: 100%; }
  .store-name { font-size: 12px; }
  .store-address { font-size: 10px; }
  .store-btn { width: 240px; height: 44px; font-size: 12px; }
  .store-btn--verify { width: 100%; height: 44px; min-height: 44px; font-size: 12px; padding: 0; }
  .online-store-row { flex-wrap: wrap; justify-content: space-between; gap: 8px; }
  .online-store-item { flex: 0 0 auto; width: 44px; height: 50px; overflow: visible; }
  .online-store-item img { width: 44px; height: 50px; }
  .online-store-item .online-store-hover-img { width: 150px; height: 150px; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); bottom: auto; z-index: 1000; }
  .footer-banner { padding: 6px 24px; min-height: 120px; }
  .footer-info-grid { grid-template-columns: 1fr; gap: 0; font-size: 8px; }
  .footer-info-item:nth-child(odd) { order: 0; }
  .footer-info-item:nth-child(even) { order: 1; }
  .footer-info-item:nth-child(2) { margin-top: 8px; }
  .footer-info-item { font-size: 8px; white-space: normal; }
}

@media (max-width: 375px) {
  .store-finder { padding: 60px 24px 80px; }
  .store-header .label { font-size: 20px; }
  .store-header .eng { font-size: 20px; }
  .store-sub-item { font-size: 12px; margin-top: 100px; }
  .store-sub-item:first-child { margin-top: 0; }
  .store-sub-en { font-size: 12px; }
  .online-store-cn { font-size: 12px; }
  .online-store-en { font-size: 10px; }
  .store-grid { flex-direction: column; gap: 16px; }
  .store-card { width: 100%; }
  .store-name { font-size: 12px; }
  .store-address { font-size: 10px; }
  .store-btn { width: 240px; height: 44px; font-size: 12px; }
  .store-btn--verify { width: 100%; height: 44px; min-height: 44px; font-size: 12px; padding: 0; }
  .online-store-row { flex-wrap: wrap; justify-content: space-between; gap: 8px; }
  .online-store-item { flex: 0 0 auto; width: 44px; height: 50px; overflow: visible; }
  .online-store-item img { width: 44px; height: 50px; }
  .online-store-item .online-store-hover-img { width: 150px; height: 150px; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); bottom: auto; z-index: 1000; }
  .footer-banner { padding: 6px 24px; min-height: 120px; }
  .footer-info-grid { grid-template-columns: 1fr; gap: 0; font-size: 8px; }
  .footer-info-item:nth-child(odd) { order: 0; }
  .footer-info-item:nth-child(even) { order: 1; }
  .footer-info-item:nth-child(2) { margin-top: 8px; }
  .footer-info-item { font-size: 8px; white-space: normal; }
}