/* Apple-inspired design system for Ban Teck Han */

:root {
  --bg: #fbfbfd;
  --bg-elevated: #ffffff;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --accent: #b91c1c;
  --accent-hover: #991b1b;
  --border: rgba(0, 0, 0, 0.08);
  --header-height: 64px;
  --max-width: 1080px;
  --radius: 18px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47059;
  letter-spacing: -0.022em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* 普通链接 hover 加下划线；按钮不要继承成红字/黑字 */
a.btn,
a.btn:hover,
a.btn:focus,
a.btn:active,
a.btn:visited {
  text-decoration: none !important;
}

img {
  max-width: 100%;
  display: block;
}

/* Header — frosted glass like apple.com */
.site-header.bth-apple-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  overflow: visible;
  z-index: 100000;
  display: block;
  padding: 0;
  margin: 0;
  height: var(--header-height);
  max-height: var(--header-height);
  background: rgba(251, 251, 253, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.bth-apple-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(251, 251, 253, 0.96);
}

.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  overflow: visible;
}

.logo-mark {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 40px;
  flex-wrap: nowrap;
}

.nav-links li {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.nav-links a {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  color: var(--text);
  text-decoration: none;
  opacity: 0.92;
  letter-spacing: 0.01em;
  padding: 0 4px;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 1;
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Desktop: 单行 flex — 只在 .nav-inner 上布局，header 本身保持定高块级 */
@media (min-width: 1181px) {
  .site-header.bth-apple-header {
    display: block;
    padding: 0;
    margin: 0;
    height: var(--header-height);
    max-height: var(--header-height);
  }

  .bth-apple-header .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    padding: 0 clamp(20px, 3vw, 40px);
    gap: clamp(16px, 2vw, 32px);
    box-sizing: border-box;
  }

  .bth-apple-header .logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
  }

  .bth-apple-header .nav-links {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: static;
    min-width: 0;
    gap: clamp(18px, 2.2vw, 40px);
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .bth-apple-header .nav-links a {
    display: inline-block;
    padding: 0 6px;
    line-height: 1.2;
    margin: 0;
  }

  .bth-apple-header .nav-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
  }

  .bth-apple-header .bth-hamburger,
  .bth-apple-header .nav-backdrop {
    display: none !important;
  }
}

@media (min-width: 1181px) and (max-width: 1320px) {
  .bth-apple-header .nav-links a {
    font-size: 14px;
    padding: 0 4px !important;
  }
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--text);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}

.icon-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.nav-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 980px;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none !important;
  transition: background 0.2s;
  line-height: 1.2;
  box-sizing: border-box;
}

.nav-cta:hover {
  background: var(--accent-hover);
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

body.bth-nav-open .bth-apple-header .nav-backdrop {
  display: block;
}

/* 覆盖 Hello/子主题 button:hover 粉红全宽条 */
.bth-hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

body.bth-apple-template .bth-apple-header .bth-hamburger,
body.bth-apple-template .bth-apple-header .bth-hamburger:hover,
body.bth-apple-template .bth-apple-header .bth-hamburger:focus,
body.bth-apple-template .bth-apple-header .bth-hamburger:active,
body.bth-apple-template .bth-apple-header .bth-hamburger:focus-visible {
  flex: 0 0 auto !important;
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: 44px !important;
  padding: 8px !important;
  margin: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  color: var(--text) !important;
  border: none !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  outline: none !important;
  cursor: pointer;
  position: relative;
  z-index: 100003;
  -webkit-appearance: none;
  appearance: none;
}

body.bth-apple-template .bth-apple-header .bth-hamburger:hover,
body.bth-apple-template .bth-apple-header .bth-hamburger:focus-visible {
  background: rgba(0, 0, 0, 0.05) !important;
}

.bth-hamburger__bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
  border-radius: 0;
  transition: transform 0.2s ease;
}

/* Hero — 左侧文案、右侧露出产品图，避免大图时被白雾盖住 */
.hero {
  position: relative;
  min-height: min(100vh, 900px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding: calc(var(--header-height) + 48px) clamp(20px, 5vw, 64px) 72px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before{
  content:"";
  position:absolute;
  top:0;left:0;right:0;
  height:120px;
  background:linear-gradient(180deg, rgba(251,251,253,.75), rgba(251,251,253,0));
  pointer-events:none;
  z-index:1;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg__img{
  width: 100%;
  height: 100%;
  object-fit: cover;      /* 不拉伸 */
  object-position: center;
  display: block;
}

/* 左侧略暗方便读字，右侧保持照片清晰 */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(251, 251, 253, 0.88) 0%,
    rgba(251, 251, 253, 0.55) 32%,
    rgba(251, 251, 253, 0.15) 52%,
    rgba(251, 251, 253, 0.02) 72%,
    transparent 100%
  );
  pointer-events: none;
}

.hero-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--header-height) + 24px);
  background: linear-gradient(
    180deg,
    rgba(251, 251, 253, 0.9) 0%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: min(540px, 92vw);
  margin: 0;
  padding: 0;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  border-radius: 0;
}

.eyebrow {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin: 0 0 12px;
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.9);
}

.hero h1 {
  font-size: clamp(36px, 5.5vw, 58px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  color: var(--accent);
  text-shadow:
    0 2px 24px rgba(255, 255, 255, 0.95),
    0 1px 2px rgba(255, 255, 255, 0.6);
}

.hero-sub {
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 500;
  color: #2c2c2e;
  max-width: 480px;
  margin: 0 0 28px;
  line-height: 1.45;
  text-shadow: 0 1px 16px rgba(255, 255, 255, 0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-start;
}

@media (max-width: 734px) {
  .hero {
    justify-content: center;
    text-align: center;
    min-height: 100vh;
  }

  .hero-content {
    margin: 0 auto;
    max-width: 100%;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-bg::after {
    background: linear-gradient(
      180deg,
      rgba(251, 251, 253, 0.75) 0%,
      rgba(251, 251, 253, 0.35) 45%,
      rgba(251, 251, 253, 0.1) 70%,
      transparent 100%
    );
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  font-size: 17px;
  font-weight: 400;
  border-radius: 980px;
  text-decoration: none !important;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:visited {
  background: var(--accent-hover);
  color: #fff !important;
  transform: scale(1.02);
}

.btn-ghost {
  color: var(--accent) !important;
  box-shadow: inset 0 0 0 1px var(--accent);
  background: transparent;
}

.btn-ghost:hover,
.btn-ghost:focus,
.btn-ghost:active {
  color: var(--accent) !important;
  background: rgba(185, 28, 28, 0.06);
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-secondary);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* Feature sections */
.feature-strip {
  padding: 100px 0;
}

.feature-card {
  max-width: 1200px;
  margin: 0 auto 120px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.feature-card--reverse .feature-visual {
  order: 2;
}

.feature-card--reverse .feature-copy {
  order: 1;
}

.feature-visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: #e8e8ed center / cover no-repeat;
  overflow: hidden;
}

.feature-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-visual--care {
  background-image: var(--bth-img-feature-care, none),
    linear-gradient(145deg, #e8e4df 0%, #c9bfb4 100%);
  background-size: cover;
  background-position: center;
}

.feature-visual--promo {
  background-image: var(--bth-img-feature-promo, none),
    linear-gradient(145deg, #f0ebe3 0%, #d8cfc4 100%);
  background-size: cover;
  background-position: center;
}

.feature-copy h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0 0 16px;
}

.feature-copy p {
  font-size: 19px;
  color: var(--text-secondary);
  margin: 0 0 24px;
  max-width: 480px;
}

.link-arrow {
  font-size: 17px;
  color: var(--accent);
  font-weight: 500;
}

.link-arrow::after {
  content: " ›";
}

.link-arrow--light {
  color: #fff;
}

/* Categories */
.categories {
  padding: 80px 24px 120px;
  background: #000;
  color: #f5f5f7;
}

.section-intro {
  max-width: var(--max-width);
  margin: 0 auto 48px;
  text-align: center;
}

.section-intro h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}

.section-intro p {
  font-size: 19px;
  color: #a1a1a6;
  margin: 0;
}

.category-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.category-tile {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none !important;
  transition: transform 0.4s var(--ease);
}

.category-tile:hover {
  transform: scale(1.02);
}

.category-tile__bg {
  position: absolute;
  inset: 0;
  background: #333 center / cover no-repeat;
  transition: transform 0.6s var(--ease);
}

.category-tile:hover .category-tile__bg {
  transform: scale(1.05);
}

.category-tile__bg--plastic {
  background-image: var(--bth-img-cat-plastic, none),
    linear-gradient(160deg, #3d3d3d 0%, #1a1a1a 100%);
  background-size: cover;
  background-position: center;
}

.category-tile__bg--bio {
  background-image: var(--bth-img-cat-bio, none),
    linear-gradient(160deg, #5a6b52 0%, #2d3828 100%);
  background-size: cover;
  background-position: center;
}

.category-tile__bg--paper {
  background-image: var(--bth-img-cat-paper, none),
    linear-gradient(160deg, #8b7355 0%, #4a3f32 100%);
  background-size: cover;
  background-position: center;
}

.category-tile__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.65) 0%, transparent 55%);
}

.category-tile h3 {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 8px;
  color: #fff;
}

/* Products */
.products {
  padding: 100px 24px;
}

.product-scroll {
  max-width: 1200px;
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  display: block;
  color: inherit;
  text-decoration: none !important;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.product-card:hover {
  text-decoration: none !important;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.product-card__img {
  aspect-ratio: 1;
  border-radius: 12px;
  background-color: #e8e8ed;
  background-image: var(--bth-img-product-1, none);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  margin-bottom: 16px;
}

.product-card__img[style*="background-image"] {
  background-size: cover;
  background-position: center;
}

.product-scroll-fallback {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-secondary);
}

.product-card h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 6px;
}

.product-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

/* Newsletter */
.newsletter-band {
  position: relative;
  margin: 0;
  padding: 100px 24px 120px;
  background-color: #f5f5f7;
  background-image: var(--bth-img-newsletter, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.newsletter-band::before {
  content: "";
  position: absolute;
  inset: 0;
  /* 蒙层变淡，背景餐盒更清晰；两侧仍略提亮保文字可读 */
  background: linear-gradient(
    105deg,
    rgba(251, 251, 253, 0.55) 0%,
    rgba(251, 251, 253, 0.42) 42%,
    rgba(251, 251, 253, 0.48) 58%,
    rgba(251, 251, 253, 0.58) 100%
  );
  pointer-events: none;
}

.newsletter {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 44px 48px;
  text-align: center;
  background: rgba(251, 251, 253, 0.72);
  border-radius: 22px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.newsletter h2 {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 0 0 20px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
}

.newsletter > p {
  color: var(--text-secondary);
  font-size: 19px;
  line-height: 1.55;
  max-width: 520px;
  margin: 0 auto 36px;
}

.newsletter-form {
  display: flex;
  gap: 14px;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 16px 20px;
  font-size: 17px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elevated);
  font-family: inherit;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.15);
}

body.bth-apple-template .bth-apple-main .newsletter p.newsletter-note,
.newsletter-note {
  display: block;
  margin: 20px auto 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  color: var(--text-secondary);
  opacity: 0.9;
}

/* Testimonials */
.testimonials {
  padding: 60px 24px 100px;
  background: var(--bg-elevated);
}

.testimonial-carousel {
  max-width: 1200px;
  margin: 40px auto 0;
}

.testimonial-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  cursor: grab;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.testimonial-viewport::-webkit-scrollbar {
  display: none;
}

.testimonial-viewport.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
  user-select: none;
}

.testimonial-viewport:focus-visible {
  outline: 2px solid var(--accent, #b91c1c);
  outline-offset: 4px;
  border-radius: var(--radius);
}

.testimonial-track {
  display: flex;
  gap: 24px;
  padding: 0 2px;
}

.testimonial {
  flex: 0 0 calc((100% - 48px) / 3);
  scroll-snap-align: start;
  margin: 0;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  min-width: 280px;
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin: 0 0 14px;
  line-height: 1;
}

.testimonial-stars .star {
  font-size: 15px;
  color: #e8a317;
  letter-spacing: 0.02em;
}

.testimonial-stars .star--empty {
  color: #d1d1d6;
}

.testimonial p {
  font-size: 17px;
  line-height: 1.5;
  margin: 0 0 20px;
  color: var(--text);
}

.testimonial footer {
  font-size: 14px;
  color: var(--text-secondary);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.testimonial-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #d1d1d6;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.testimonial-dots button:hover {
  background: #a1a1a6;
}

.testimonial-dots button.is-active {
  background: var(--accent, #b91c1c);
  transform: scale(1.2);
}

.testimonial-dots button:focus-visible {
  outline: 2px solid var(--accent, #b91c1c);
  outline-offset: 2px;
}

/* Footer */
.site-footer.bth-apple-footer {
  box-sizing: border-box;
  padding: 48px 24px calc(32px + env(safe-area-inset-bottom, 0px));
  background: #f5f5f7;
  border-top: 1px solid var(--border);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 32px;
}

.footer-grid h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin: 0 0 12px;
}

.footer-grid p,
.footer-grid ul {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 8px;
  line-height: 1.6;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
}

.footer-grid a {
  color: var(--text-secondary);
}

.footer-copy {
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 8px;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tablet / mobile: 汉堡在 .nav-inner 内，与 Logo / 按钮同一行 */
@media (max-width: 1180px) {
  .bth-apple-header .nav-inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
    padding: 0 12px 0 20px;
    gap: 8px;
    min-width: 0;
    box-sizing: border-box;
  }

  .bth-apple-header .logo {
    flex-shrink: 0;
  }

  .bth-apple-header .nav-links {
    display: none !important;
  }

  .bth-apple-header .nav-actions {
    margin-left: auto;
    min-width: 0;
    flex-shrink: 0;
  }

  .bth-apple-header .nav-inner .bth-hamburger {
    display: flex !important;
    flex: 0 0 44px;
    flex-shrink: 0;
    pointer-events: auto !important;
    z-index: 100003;
    margin-left: 0;
  }

  body.bth-nav-open .bth-apple-header {
    background: rgba(251, 251, 253, 0.98) !important;
  }

  body.bth-nav-open .bth-apple-header .nav-inner {
    background: transparent !important;
  }

  body.bth-nav-open {
    overflow: hidden;
  }

  body.bth-nav-open .bth-apple-header .nav-links {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: var(--header-height) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 100002 !important;
    gap: 0;
    margin: 0;
    padding: 16px 22px 24px;
    list-style: none;
    background: #fbfbfd !important;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.admin-bar.bth-apple-template.bth-nav-open .bth-apple-header .nav-links {
    top: calc(var(--header-height) + 32px) !important;
    max-height: calc(100vh - var(--header-height) - 32px);
  }

  body.bth-nav-open .bth-apple-header .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--border);
    color: var(--text) !important;
  }

  body.bth-nav-open .bth-apple-header .nav-links li:last-child a {
    border-bottom: none;
  }

  body.bth-nav-open .bth-apple-header .bth-hamburger__bar:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  body.bth-nav-open .bth-apple-header .bth-hamburger__bar:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .feature-card,
  .feature-card--reverse {
    grid-template-columns: 1fr;
  }

  .feature-card--reverse .feature-visual,
  .feature-card--reverse .feature-copy {
    order: unset;
  }

  .category-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .product-scroll {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial {
    flex: 0 0 calc((100% - 24px) / 2);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 734px) {
  .bth-apple-header .nav-actions {
    gap: 8px;
  }

  .bth-apple-header .nav-cta {
    display: inline-flex !important;
    font-size: 12px;
    padding: 6px 12px;
    flex-shrink: 0;
  }

  .icon-btn {
    width: 34px;
    height: 34px;
  }

  .newsletter {
    padding: 40px 28px 36px;
  }

  .newsletter > p {
    margin-bottom: 32px;
  }

  .newsletter-form {
    flex-direction: column;
    gap: 12px;
  }

  .testimonial {
    flex: 0 0 calc(100% - 48px);
    min-width: 0;
  }

  body.bth-apple-template .newsletter p.newsletter-note,
  .newsletter-note {
    margin-top: 18px;
    font-size: 12px;
  }

  .product-scroll {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* WordPress template overrides */
html {
  overflow-x: clip;
}

body.bth-apple-template {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: clip;
}

body.bth-apple-template #page,
body.bth-apple-template .site,
body.bth-apple-template #content,
body.bth-apple-template .elementor-location-header,
body.bth-apple-template #masthead,
body.bth-apple-template .site-header:not(.bth-apple-header),
body.bth-apple-template .site-footer:not(.bth-apple-footer) {
  display: none !important;
}

/* 登录后台时避免内容顶到 admin bar 下面被裁切 */
body.admin-bar.bth-apple-template {
  margin-top: 0 !important;
}

body.admin-bar.bth-apple-template .bth-apple-main {
  padding-top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar.bth-apple-template .bth-apple-main {
    padding-top: 46px;
  }
}

body.admin-bar.bth-apple-template .site-header.bth-apple-header:not([style*="top"]) {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar.bth-apple-template .site-header.bth-apple-header:not([style*="top"]) {
    top: 46px;
  }
}

.bth-apple-header .logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  line-height: 0;
}

.logo-img {
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

/* 子主题 woocommerce.css / Hello 主题常把 :hover 链接改成深色 — 按钮强制白字 */
body.bth-apple-template .bth-apple-main a.btn-primary,
body.bth-apple-template .bth-apple-main a.btn-primary:hover,
body.bth-apple-template .bth-apple-main a.btn-primary:focus,
body.bth-apple-template .bth-apple-main a.btn-primary:visited {
  color: #fff !important;
  text-decoration: none !important;
}

body.bth-apple-template .bth-apple-main a.btn-ghost:hover,
body.bth-apple-template .bth-apple-main a.btn-ghost:focus {
  color: var(--accent) !important;
  text-decoration: none !important;
}

/* 旧版 slideout 菜单、主题 button 样式 — preview 页禁用 */
body.bth-apple-template .oom-slideout-menu-panel {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.bth-apple-template .bth-apple-header .nav-links a:hover {
  color: var(--text) !important;
  background: transparent !important;
}

@media (max-width: 1068px) {
  .nav-inner {
    padding: 0 20px;
    gap: 16px;
  }

  .logo-img {
    height: 42px;
  }
}

.logo-img--footer {
  height: 32px;
  margin-bottom: 12px;
}

