/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:        #8B6340;
  --brand-dark:   #6A4A2E;
  --brand-light:  #C4996A;
  --brand-pale:   #F5EDE3;
  --text-dark:    #1A1A1A;
  --text-mid:     #4A4A4A;
  --text-light:   #888;
  --bg-white:     #FFFFFF;
  --bg-gray:      #F8F5F1;
  --footer-bg:    #2A2A2A;
  --radius:       12px;
  --shadow-sm:    0 2px 10px rgba(0,0,0,.08);
  --shadow-md:    0 6px 24px rgba(0,0,0,.12);
  --shadow-lg:    0 16px 48px rgba(0,0,0,.16);
  --transition:   .35s cubic-bezier(.4,0,.2,1);
  --nav-h:        70px;
  --font-sans:    'PingFang SC','Microsoft YaHei','Hiragino Kaku Gothic ProN',
                  'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--brand);
  z-index: 1000;
  transition: box-shadow var(--transition), background var(--transition);
}
.nav--scrolled {
  background: rgba(139,99,64,.97);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.nav__inner {
  max-width: 1300px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 20px;
}
.nav__logo img {
  height: 46px;
  width: auto;
  mix-blend-mode: screen;
  display: block;
}
.nav__menu {
  display: flex;
  gap: 4px;
  margin-left: 24px;
}
.nav__link {
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.nav__link:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
}
.nav__lang {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.lang-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,.5);
  color: rgba(255,255,255,.8);
  font-size: .8rem;
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
}
.lang-btn:hover,
.lang-btn.active {
  background: #fff;
  color: var(--brand);
  border-color: #fff;
  font-weight: 600;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none; border: none; cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  height: 2px; width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: all .3s;
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  display: none;
  flex-direction: column;
  background: var(--brand-dark);
  padding: 12px 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.nav__mobile.open { max-height: 400px; }
.nav__mobile .nav__link {
  padding: 12px 28px;
  border-radius: 0;
  font-size: 1rem;
}
.nav__mobile .nav__link:hover { background: rgba(255,255,255,.1); }
.nav__lang--mobile {
  padding: 12px 24px;
  margin-left: 0;
  border-top: 1px solid rgba(255,255,255,.15);
  margin-top: 6px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
  margin-top: var(--nav-h);
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero__slide.active { opacity: 1; }

.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  gap: 20px;
}
.hero__title {
  font-size: clamp(1.6rem, 4vw, 3rem);
  color: #fff;
  font-weight: 700;
  letter-spacing: .04em;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
  line-height: 1.3;
}
.hero__sub {
  font-size: clamp(.95rem, 2vw, 1.25rem);
  color: rgba(255,255,255,.88);
  letter-spacing: .06em;
  text-shadow: 0 1px 6px rgba(0,0,0,.35);
}
.hero__btn {
  display: inline-block;
  margin-top: 8px;
  padding: 14px 40px;
  background: var(--brand);
  color: #fff;
  border-radius: 40px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .06em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 18px rgba(139,99,64,.5);
}
.hero__btn:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139,99,64,.55);
}

/* Dots */
.hero__dots {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 10px;
}
.hero__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.hero__dot.active { background: #fff; transform: scale(1.3); }

/* Arrows */
.hero__arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.18);
  border: none; color: #fff;
  font-size: 2.4rem; line-height: 1;
  width: 52px; height: 52px;
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.hero__arrow:hover { background: rgba(255,255,255,.35); }
.hero__arrow--prev { left: 20px; }
.hero__arrow--next { right: 20px; }

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section {
  padding: 88px 24px 80px;
}
.section--gray { background: var(--bg-gray); }

.section__head {
  text-align: center;
  margin-bottom: 56px;
}
.section__tag {
  display: inline-block;
  background: var(--brand-pale);
  color: var(--brand);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.section__title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: .04em;
}
.section__divider {
  width: 50px; height: 3px;
  background: var(--brand);
  border-radius: 2px;
  margin: 16px auto 0;
}

/* ============================================================
   COMPANY
   ============================================================ */
.company__body {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: start;
}
.body-text {
  color: var(--text-mid);
  font-size: 1rem;
  line-height: 2;
  text-indent: 2em;
}
.company__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat-card {
  background: var(--brand-pale);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid rgba(139,99,64,.12);
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-card__num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
}
.stat-card__num sup { font-size: .9rem; }
.stat-card__label {
  font-size: .85rem;
  color: var(--text-mid);
  font-weight: 500;
}

/* ============================================================
   FACTORY
   ============================================================ */
.factory__body {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.factory__carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}
.fslides { position: absolute; inset: 0; }
.fslide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .9s ease;
}
.fslide.active { opacity: 1; }
.fslide__arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.22);
  border: none; color: #fff;
  font-size: 2rem; width: 44px; height: 44px;
  border-radius: 50%; cursor: pointer;
  backdrop-filter: blur(3px);
  transition: background var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.fslide__arrow:hover { background: rgba(255,255,255,.4); }
.fslide__arrow--l { left: 12px; }
.fslide__arrow--r { right: 12px; }

.factory__text .body-text { text-indent: 2em; }

/* ============================================================
   PRODUCT
   ============================================================ */
.product__feature {
  max-width: 1100px;
  margin: 0 auto 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.pf__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 3px solid var(--brand);
}
.pf__body {
  color: var(--text-mid);
  font-size: .95rem;
  line-height: 1.9;
  text-indent: 2em;
}

.product__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.prod-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #fff;
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}
.prod-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}
.prod-card__img {
  width: 100%;
  aspect-ratio: 3/4;
  background-size: cover;
  background-position: center top;
  transition: transform .55s ease;
  overflow: hidden;
}
.prod-card__name {
  text-align: center;
  padding: 14px 8px;
  font-size: .95rem;
  color: var(--text-mid);
  font-weight: 500;
  letter-spacing: .04em;
  background: #fff;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,.8);
}
.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 32px 56px;
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr;
  gap: 48px;
}
.footer__title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  letter-spacing: .06em;
}
.footer__list { display: flex; flex-direction: column; gap: 14px; }
.footer__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .88rem;
  line-height: 1.6;
}
.footer__list svg {
  width: 16px; height: 16px;
  fill: var(--brand-light);
  flex-shrink: 0;
  margin-top: 2px;
}
.footer__col--center { text-align: center; }
.footer__company {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.5;
  margin-bottom: 16px;
}
.footer__slogan {
  font-size: .83rem;
  color: rgba(255,255,255,.55);
  line-height: 1.9;
  letter-spacing: .03em;
}
.footer__col--qr { text-align: center; }
.footer__qr {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 10px;
  margin: 0 auto 10px;
  border: 3px solid rgba(255,255,255,.1);
}
.footer__qr-label {
  font-size: .8rem;
  color: rgba(255,255,255,.45);
}
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 32px;
  text-align: center;
  font-size: .8rem;
  color: rgba(255,255,255,.35);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-top {
  position: fixed;
  bottom: 32px; right: 28px;
  width: 48px; height: 48px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), background var(--transition), transform var(--transition);
  display: flex; align-items: center; justify-content: center;
  z-index: 999;
}
.back-top:hover { background: var(--brand-dark); transform: translateY(-3px); }

/* ============================================================
   RESPONSIVE — Tablet (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .company__body {
    grid-template-columns: 1fr;
  }
  .company__stats {
    grid-template-columns: repeat(4, 1fr);
  }
  .factory__body {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .factory__carousel { aspect-ratio: 16/9; }
  .product__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer__col--qr { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; }
}

/* ============================================================
   RESPONSIVE — Mobile (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  .nav__menu { display: none; }
  .nav__lang  { display: none; }
  .nav__hamburger { display: flex; margin-left: auto; }
  .nav__mobile { display: flex; }

  .hero { height: 80vh; min-height: 420px; }
  .hero__arrow { display: none; }

  .section { padding: 64px 20px 56px; }

  .company__stats { grid-template-columns: 1fr 1fr; }

  .product__feature {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .product__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .footer__inner {
    grid-template-columns: 1fr;
    padding: 48px 24px 40px;
    gap: 32px;
  }
  .footer__col--qr { grid-column: unset; }

  .back-top { bottom: 24px; right: 18px; width: 42px; height: 42px; font-size: 1.4rem; }
}

/* ============================================================
   RESPONSIVE — Small Mobile (≤480px)
   ============================================================ */
@media (max-width: 480px) {
  .product__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { padding: 20px 12px; }
  .stat-card__num { font-size: 1.6rem; }
  .hero__title { font-size: 1.4rem; }
  .hero__btn { padding: 12px 28px; font-size: .9rem; }
}
