/* ============================================
   木小匠实木大板工厂 — 手机优先响应式样式
   Mobile-First Design
   ============================================ */

/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root {
  --primary: #5c3d1e;
  --primary-light: #7a5830;
  --accent: #c8922a;
  --accent-light: #e0aa3e;
  --bg: #faf6f1;
  --white: #ffffff;
  --text: #2c2015;
  --text-light: #6b5a47;
  --border: #e0d0c0;
  --shadow: rgba(92, 61, 30, 0.1);
  --bottom-bar-height: 64px;
}
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 15px;
  padding-bottom: calc(var(--bottom-bar-height) + 12px); /* 给底部栏留空间 */
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ===== HEADER ===== */
header {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  position: relative;
  flex-wrap: wrap;
}
.logo { font-size: 20px; font-weight: 700; color: var(--primary); letter-spacing: 1px; white-space: nowrap; }
.logo span { color: var(--accent); }
.logo a { color: var(--primary); }

nav ul li a {
  display: block;
  padding: 10px 20px;
  font-size: 15px;
  color: var(--primary);
  text-align: center;
  border-radius: 20px;
  margin: 6px 12px;
  background: rgba(139,90,43,0.08);
  border: 1px solid rgba(139,90,43,0.15);
  transition: all 0.2s ease;
}
nav ul li:last-child a { margin-bottom: 0; }
nav ul li a.active,
nav ul li a:hover {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

/* Header CTA hidden on mobile */
.header-contact { display: none; }

/* ===== PAGE HERO ===== */
.page-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  padding: 40px 0 32px;
  text-align: center;
}
.page-hero h1 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.page-hero p { font-size: 14px; opacity: 0.85; }

/* ===== BANNER (HOME) ===== */






/* ===== BANNER SLIDESHOW ===== */

.banner-slideshow {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
}
.banner-slideshow .slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}
.banner-slideshow .slide.active {
  opacity: 1;
}
.banner-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(62,39,20,0.9), rgba(90,58,31,0.85));
  z-index: 1;
}
.banner .container {
  position: relative;
  z-index: 2;
  padding: 20px 16px;
}

.banner-btns { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 13px 32px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: all 0.2s;
  min-width: 180px;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-light); color: #fff; }
.btn-secondary { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.btn-secondary:hover { background: rgba(255,255,255,0.25); color: #fff; }

/* ===== SECTION ===== */
.section { padding: 36px 0; }
.section-title {
  text-align: center;
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 6px;
  font-weight: 700;
}
.section-sub {
  text-align: center;
  color: var(--text-light);
  font-size: 13px;
  margin-bottom: 28px;
}
.breadcrumb {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 20px;
  padding-top: 12px;
}
.breadcrumb a { color: var(--primary); }

/* ===== FEATURES ===== */
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 32px; }
.feature-card {
  background: var(--white);
  border-radius: 8px;
  padding: 16px 12px;
  text-align: center;
  box-shadow: 0 2px 8px var(--shadow);
}
.feature-icon { font-size: 28px; margin-bottom: 8px; }
.feature-card h3 { font-size: 14px; font-weight: 600; color: var(--primary); margin-bottom: 4px; }
.feature-card p { font-size: 12px; color: var(--text-light); line-height: 1.6; }

/* ===== PRODUCTS GRID (MOBILE: 2 COLS) ===== */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.product-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px var(--shadow); }
.product-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: var(--border);
}
.product-card .info { padding: 10px 12px; }
.product-card h3 { font-size: 14px; font-weight: 600; color: var(--primary); margin-bottom: 4px; }
.product-card p { font-size: 12px; color: var(--text-light); line-height: 1.6; margin-bottom: 8px; }
.product-card .price { font-size: 14px; color: var(--accent); font-weight: 700; }
.product-card .more {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  margin-top: 6px;
  padding: 4px 12px;
  border: 1px solid var(--accent);
  border-radius: 4px;
}
.product-card .more:hover { background: var(--accent); color: #fff; }

/* 查看详情按钮样式 */
.product-card .pbtn {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(180,130,70,0.08);
  border: 1px solid var(--accent);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}
.product-card .pbtn:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(180,130,70,0.25);
}

/* ===== PRODUCT DETAIL ===== */
.product-detail-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.product-detail-grid img { width: 100%; border-radius: 8px; background: var(--border); }
.product-detail-info { }
.product-detail-info h1 { font-size: 20px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.price-tag { font-size: 20px; color: var(--accent); font-weight: 700; margin-bottom: 12px; display: block; }
.price-note { font-size: 12px; color: var(--text-light); }
.product-detail-info .desc { font-size: 14px; color: var(--text); line-height: 2; margin-bottom: 16px; }
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 13px; }
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table td { padding: 8px 0; }
.spec-table td:first-child { color: var(--text-light); width: 90px; }
.spec-table td:last-child { color: var(--text); font-weight: 500; }

/* ===== ARTICLE LIST (MOBILE) ===== */
.article-list { display: flex; flex-direction: column; gap: 12px; }
.article-card {
  background: var(--white);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 8px var(--shadow);
}
.article-card h3 { font-size: 15px; font-weight: 600; color: var(--primary); margin-bottom: 6px; line-height: 1.5; }
.article-card p { font-size: 13px; color: var(--text-light); line-height: 1.7; margin-bottom: 10px; }
.article-card .meta { font-size: 12px; color: var(--text-light); margin-bottom: 10px; }
.article-card .more { color: var(--accent); font-size: 13px; font-weight: 500; }
.article-card .more:hover { text-decoration: underline; }

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.about-grid img { width: 100%; border-radius: 8px; background: var(--border); }
.about-text h2 { font-size: 18px; color: var(--primary); font-weight: 700; margin-bottom: 12px; }
.about-text p { font-size: 14px; color: var(--text); line-height: 2; margin-bottom: 12px; }
.about-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.about-tag {
  padding: 4px 12px;
  background: var(--primary);
  color: #fff;
  border-radius: 20px;
  font-size: 12px;
}

/* ===== CONTACT FORM ===== */
.contact-form {
  background: var(--white);
  border-radius: 8px;
  padding: 20px 16px;
  box-shadow: 0 2px 12px var(--shadow);
}
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; color: var(--text-light); margin-bottom: 4px; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-group textarea { height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 12px; }

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(135deg, var(--primary), #3d2410);
  color: rgba(255,255,255,0.85);
  padding: 28px 0 20px;
  margin-top: 32px;
}
.footer-grid { display: flex; flex-direction: column; gap: 20px; padding: 0 16px; }
.footer-brand h3 { font-size: 16px; color: #fff; margin-bottom: 8px; font-weight: 700; }
.footer-brand p { font-size: 13px; line-height: 1.8; opacity: 0.8; }
.footer-col h4 { font-size: 14px; color: #fff; font-weight: 600; margin-bottom: 8px; }
.footer-col ul li { font-size: 13px; margin-bottom: 6px; opacity: 0.8; white-space: nowrap; }
.footer-col ul li a { color: rgba(255,255,255,0.8); }
.footer-col ul li a:hover { color: var(--accent-light); }
.footer-bottom {
  text-align: center;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 12px;
  opacity: 0.6;
}

/* ===== BOTTOM FIXED BAR (MOBILE ONLY) ===== */








/* Hide bottom bar on desktop */


/* ============================================
   DESKTOP OVERRIDES (min-width: 769px)
   ============================================ */
/* === DESKTOP BLOCK DISABLED (force mobile) === */
/* @media (min-width: 769px) { */
/*  */
/*   body { font-size: 15px; padding-bottom: 0; } */
/*  */
/*   /* Header */ */
/*   .header-inner { padding: 14px 20px; flex-wrap: nowrap; } */
/*   .logo { font-size: 22px; } */
/*   nav ul { */
/*     display: flex; */
/*     flex-direction: row; */
/*     position: static; */
/*     background: transparent; */
/*     border: none; */
/*     padding: 0; */
/*     gap: 8px; */
/*     box-shadow: none; */
/*   } */
/*   nav ul li { margin-bottom: 0; } */
/*   nav ul li a { */
/*     display: inline-block; */
/*     padding: 7px 18px; */
/*     font-size: 14px; */
/*     color: var(--primary); */
/*     border-radius: 18px; */
/*     background: rgba(139,90,43,0.08); */
/*     border: 1px solid rgba(139,90,43,0.15); */
/*     text-align: center; */
/*     transition: all 0.2s ease; */
/*   } */
/*   nav ul li a:hover, */
/*   nav ul li a.active { */
/*     color: #fff; */
/*     background: var(--primary); */
/*     border-color: var(--primary); */
/*   } */
/*  */
/* /* Large desktop */ */
/* @media (min-width: 1024px) { */
/*   .product-grid { grid-template-columns: repeat(4, 1fr); } */
/* } */
/*  */
/* /* ============================================ */
/*    UTILITY CLASSES */
/*    ============================================ */ */
/* .text-center { text-align: center; } */
/* .mt-16 { margin-top: 16px; } */
/* .mb-16 { margin-bottom: 16px; } */
/*  */
/* /* ============================================ */
/*    ANIMATIONS */
/*    ============================================ */ */
/* @keyframes fadeInUp { */
/*   from { opacity: 0; transform: translateY(20px); } */
/*   to { opacity: 1; transform: translateY(0); } */
/* } */
/* .banner h1, .banner p, .banner-btns { animation: fadeInUp 0.6s ease both; } */
/*  */
/* .banner-btns { animation-delay: 0.2s; } */
/*  */
/* /* ===== NEWS LIST ===== */ */
/* .news-list { display: flex; flex-direction: column; gap: 24px; } */
/* .news-card { */
/*   display: flex; */
/*   background: #fff; */
/*   border-radius: 12px; */
/*   overflow: hidden; */
/*   box-shadow: 0 2px 12px rgba(0,0,0,0.08); */
/*   transition: transform 0.3s ease, box-shadow 0.3s ease; */
/* } */
/* .news-card:hover { */
/*   transform: translateY(-4px); */
/*   box-shadow: 0 8px 24px rgba(0,0,0,0.12); */
/* } */
/* .news-date { */
/*   min-width: 100px; */
/*   padding: 24px; */
/*   background: linear-gradient(135deg, var(--primary), #8B6914); */
/*   color: #fff; */
/*   display: flex; */
/*   flex-direction: column; */
/*   align-items: center; */
/*   justify-content: center; */
/*   text-align: center; */
/* } */
/* .news-date .day { font-size: 20px; font-weight: 700; } */
/* .news-date .month { font-size: 13px; opacity: 0.9; margin-top: 4px; } */
/* .news-content { padding: 24px; flex: 1; } */
/* .news-content h3 { font-size: 18px; color: var(--primary); margin-bottom: 12px; } */
/* .news-content p { color: var(--text-light); line-height: 1.7; margin-bottom: 16px; } */
/* .read-more { color: var(--accent); font-weight: 600; } */
/* .read-more:hover { text-decoration: underline; } */
/*  */
/* @media (max-width: 600px) { */
/*   .news-card { flex-direction: column; } */
/*   .news-date { min-width: auto; padding: 16px; flex-direction: row; gap: 8px; } */
/*   .news-date .day, .news-date .month { margin: 0; } */
/* } */
/*  */
/* /* Footer Enhanced Styles */ */
/* .footer { */
/*   background: #3d2914; */
/*   color: #ffffff; */
/*   padding: 60px 0 30px; */
/* } */
/*  */
/* .footer h4 { */
/*   color: #ffffff; */
/*   font-size: 18px; */
/*   margin-bottom: 20px; */
/*   font-weight: 600; */
/* } */
/*  */
/* .footer p { */
/*   color: #d4c8b5; */
/*   line-height: 1.8; */
/* } */
/*  */
/* .footer-grid { */
/*   display: grid; */
/*   grid-template-columns: repeat(4, 1fr); */
/*   gap: 40px; */
/* } */
/*  */
/* .footer-links { */
/*   display: flex; */
/*   flex-direction: column; */
/*   gap: 10px; */
/* } */
/*  */
/* .footer-links a, */
/* .footer-col a { */
/*   color: #b8a896; */
/*   text-decoration: none; */
/*   font-size: 13px; */
/*   transition: color 0.3s; */
/*   display: block; */
/* } */
/*  */
/* .footer-links a:hover, */
/* .footer-col a:hover { */
/*   color: #d4c8b5; */
/* } */
/*  */
/* .contact-item { */
/*   display: flex; */
/*   align-items: center; */
/*   margin-bottom: 10px; */
/*   flex-wrap: wrap; */
/* } */
/*  */
/* .contact-label { */
/*   color: #a89880; */
/*   font-size: 13px; */
/* } */
/*  */
/* .contact-value { */
/*   color: #b8a896; */
/*   font-size: 13px; */
/*   font-weight: 500; */
/* } */
/*  */
/* .phone-link { */
/*   color: #7cb342; */
/*   text-decoration: none; */
/*   font-weight: 600; */
/* } */
/*  */
/* .phone-link:hover { */
/*   color: #8bc34a; */
/*   text-decoration: underline; */
/* } */
/*  */
/* .wechat-copy { */
/*   cursor: pointer; */
/*   border-bottom: 1px dashed #7cb342; */
/*   padding-bottom: 2px; */
/*   color: #b8a896; */
/* } */
/*  */
/* .wechat-copy:hover { */
/*   color: #7cb342; */
/* } */
/*  */
/* .copy-hint { */
/*   color: #888; */
/*   font-size: 11px; */
/*   margin-left: 8px; */
/* } */
/*  */
/* .copy-toast { */
/*   position: fixed; */
/*   bottom: 100px; */
/*   left: 50%; */
/*   transform: translateX(-50%) translateY(20px); */
/*   background: rgba(0, 0, 0, 0.8); */
/*   color: #fff; */
/*   padding: 12px 24px; */
/*   border-radius: 8px; */
/*   font-size: 14px; */
/*   opacity: 0; */
/*   transition: all 0.3s; */
/*   pointer-events: none; */
/*   z-index: 9999; */
/* } */
/*  */
/* .copy-toast.show { */
/*   opacity: 1; */
/*   transform: translateX(-50%) translateY(0); */
/* } */
/*  */
/* .footer-bottom { */
/*   text-align: center; */
/*   padding-top: 30px; */
/*   margin-top: 40px; */
/*   border-top: 1px solid rgba(255, 255, 255, 0.1); */
/* } */
/*  */
/* .footer-bottom p { */
/*   color: #888; */
/*   font-size: 13px; */
/* } */
/*  */
/* @media (max-width: 768px) { */
/*   .header-inner { */
/*     flex-wrap: wrap; */
/*   } */
/*   .mobile-menu { */
/*     display: block; */
/*     order: 2; */
/*   } */
/*   nav { */
/*     display: none; */
/*     width: 100%; */
/*     order: 10; */
/*   } */
/*   nav.show { */
/*     display: block; */
/*   } */
/*   nav ul { */
/*     flex-direction: column; */
/*     background: var(--white); */
/*     border-top: 1px solid var(--border); */
/*     padding: 8px 0 12px; */
/*     gap: 0; */
/*     box-shadow: 0 4px 12px var(--shadow); */
/*   } */
/*   nav ul li { margin-bottom: 0; } */
/*   nav ul li a { */
/*     display: block; */
/*     padding: 12px 20px; */
/*     font-size: 15px; */
/*     color: var(--primary); */
/*     text-align: center; */
/*     border-radius: 20px; */
/*     margin: 4px 12px; */
/*     background: rgba(139,90,43,0.08); */
/*     border: 1px solid rgba(139,90,43,0.15); */
/*     transition: all 0.2s ease; */
/*   } */
/*   nav ul li:last-child a { margin-bottom: 0; } */
/*   nav ul li a:hover { */
/*     color: #fff; */
/*     background: var(--primary); */
/*     border-color: var(--primary); */
/*   } */
/*   .footer-grid { */
/*     grid-template-columns: 1fr 1fr; */
/*     gap: 30px; */
/*   } */
/*   .banner-content h2 { font-size: 26px; } */
/*   .banner-content p { font-size: 14px; } */
/* } */
/* } */
/* === END DISABLED BLOCK === */

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}
/* ===== 移动端导航 ===== */
nav {
  display: none;
  width: 100%;
  order: 10;
}
nav.show {
  display: block;
}
.mobile-menu {
  display: block;
  font-size: 26px;
  cursor: pointer;
  color: var(--primary);
  padding: 8px 12px;
  line-height: 1;
  -webkit-user-select: none;
  user-select: none;
  min-width: 44px;
  min-height: 44px;
  background: rgba(139,90,43,0.1);
  border: 2px solid rgba(139,90,43,0.25);
  border-radius: 8px;
  text-align: center;
}
.mobile-menu:active {
  background: rgba(139,90,43,0.2);
}
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }
  .mobile-menu {
    display: block;
    order: 2;
  }
  nav {
    display: none;
    width: 100%;
    order: 10;
  }
  nav.show {
    display: block;
  }
  nav ul {
    flex-direction: column;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 8px 0 12px;
    gap: 0;
    box-shadow: 0 4px 12px var(--shadow);
  }
  nav ul li { margin-bottom: 0; }
  nav ul li a {
    display: block;
    padding: 12px 20px;
    font-size: 15px;
    color: var(--primary);
    text-align: center;
    border-radius: 20px;
    margin: 4px 12px;
    background: rgba(139,90,43,0.08);
    border: 1px solid rgba(139,90,43,0.15);
    transition: all 0.2s ease;
  }
  nav ul li:last-child a { margin-bottom: 0; }
  nav ul li a:hover {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .banner-content h2 { font-size: 26px; }
  .banner-content p { font-size: 14px; }
}
  nav.show {
    display: block;
  }
  nav ul {
    flex-direction: column;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 8px 0 12px;
    gap: 0;
    box-shadow: 0 4px 12px var(--shadow);
  }
  nav ul li a {
    display: block;
    padding: 12px 20px;
    font-size: 15px;
    color: var(--primary);
    text-align: center;
    border-radius: 20px;
    margin: 4px 12px;
    background: rgba(139,90,43,0.08);
    border: 1px solid rgba(139,90,43,0.15);
    transition: all 0.2s ease;
  }
  nav ul li:last-child a { margin-bottom: 0; }
  nav ul li a.active,
  nav ul li a:hover {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
  }


/* ===== 桌面端导航 ===== */
/* === DESKTOP BLOCK DISABLED (force mobile) === */
/* @media (min-width: 769px) { */
/*   nav { */
/*     display: block; */
/*     width: auto; */
/*     order: 0; */
/*   } */
/*   nav ul { */
/*     display: flex; */
/*     flex-direction: row; */
/*     gap: 8px; */
/*   } */
/*   nav ul li a { */
/*     display: inline-block; */
/*     padding: 7px 18px; */
/*     font-size: 14px; */
/*     color: var(--primary); */
/*     border-radius: 18px; */
/*     background: rgba(139,90,43,0.08); */
/*     border: 1px solid rgba(139,90,43,0.15); */
/*     transition: all 0.2s ease; */
/*   } */
/*   nav ul li a:hover, */
/*   nav ul li a.active { */
/*     color: #fff; */
/*     background: var(--primary); */
/*     border-color: var(--primary); */
/*   } */
/* } */
/* === END DISABLED BLOCK === */


.carousel-container { position: relative; height: 200px; }
.carousel-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.5s ease; display: none; }
.carousel-slide.active { opacity: 1; display: block; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.7)); color: #fff; padding: 50px 20px 30px; text-align: center; }
.carousel-caption h2 { font-size: 28px; margin-bottom: 8px; }
.carousel-caption p { font-size: 16px; opacity: 0.9; }
.carousel-dots { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; }
.dot.active { background: #fff; }
.carousel-prev, .carousel-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.4); color: #fff; border: none; width: 44px; height: 44px; font-size: 18px; cursor: pointer; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 10; }
.carousel-prev { left: 15px; }
.carousel-next { right: 15px; }
.carousel-prev:hover, .carousel-next:hover { background: rgba(0,0,0,0.6); }
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }
  .mobile-menu {
    display: block;
    order: 2;
  }
  nav {
    display: none;
    width: 100%;
    order: 10;
  }
  nav.show {
    display: block;
  }
  nav ul {
    flex-direction: column;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 8px 0 12px;
    gap: 0;
    box-shadow: 0 4px 12px var(--shadow);
  }
  nav ul li { margin-bottom: 0; }
  nav ul li a {
    display: block;
    padding: 12px 20px;
    font-size: 15px;
    color: var(--primary);
    text-align: center;
    border-radius: 20px;
    margin: 4px 12px;
    background: rgba(139,90,43,0.08);
    border: 1px solid rgba(139,90,43,0.15);
    transition: all 0.2s ease;
  }
  nav ul li:last-child a { margin-bottom: 0; }
  nav ul li a:hover {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .banner-content h2 { font-size: 26px; }
  .banner-content p { font-size: 14px; }
} .carousel-caption h2 { font-size: 20px; } .carousel-caption p { font-size: 14px; } 

/* ===== 产品轮播 ===== */
.carousel-section { background: #f9f6f2; }
.carousel { position: relative; max-width: 900px; margin: 0 auto; overflow: hidden; border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.15); }
.carousel-container { position: relative; height: 200px; background: #1a1a1a; }
.carousel-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.6s ease; display: none; }
.carousel-slide.active { opacity: 1; display: block; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: #fff; padding: 30px 20px 25px; text-align: center; font-size: 20px; font-weight: 500; }
.carousel-dots { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.3s; }
.dot.active { background: #fff; transform: scale(1.2); }
.carousel-prev, .carousel-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.9); color: var(--primary); border: none; width: 44px; height: 44px; font-size: 18px; cursor: pointer; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 10; transition: all 0.3s; }
.carousel-prev { left: 15px; }
.carousel-next { right: 15px; }
.carousel-prev:hover, .carousel-next:hover { background: #fff; transform: translateY(-50%) scale(1.1); }
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }
  .mobile-menu {
    display: block;
    order: 2;
  }
  nav {
    display: none;
    width: 100%;
    order: 10;
  }
  nav.show {
    display: block;
  }
  nav ul {
    flex-direction: column;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 8px 0 12px;
    gap: 0;
    box-shadow: 0 4px 12px var(--shadow);
  }
  nav ul li { margin-bottom: 0; }
  nav ul li a {
    display: block;
    padding: 12px 20px;
    font-size: 15px;
    color: var(--primary);
    text-align: center;
    border-radius: 20px;
    margin: 4px 12px;
    background: rgba(139,90,43,0.08);
    border: 1px solid rgba(139,90,43,0.15);
    transition: all 0.2s ease;
  }
  nav ul li:last-child a { margin-bottom: 0; }
  nav ul li a:hover {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .banner-content h2 { font-size: 26px; }
  .banner-content p { font-size: 14px; }
}
  .carousel-caption { font-size: 16px; padding: 40px 15px 20px; }
  .carousel-prev, .carousel-next { width: 36px; height: 36px; font-size: 14px; }


/* ===== Banner轮播背景 ===== */
.banner-carousel { position: relative; overflow: hidden; min-height: 200px; display: flex; align-items: center; justify-content: center; }
.banner-slides { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.banner-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s ease; }
.banner-slide.active { opacity: 1; }
.banner-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1; }
.banner-content { position: relative; z-index: 2; color: #fff; text-align: center; padding: 30px 20px; }
.banner-content h1 { color: #fff; font-size: 32px; margin-bottom: 16px; }
.banner-content h1 span { color: #f4d03f; }
.banner-content p { color: rgba(255,255,255,0.9); font-size: 16px; max-width: 700px; margin: 0 auto 24px; }
.banner-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.banner-btns .btn-primary { background: #fff; color: #6b3d1e; padding: 12px 28px; border-radius: 24px; font-weight: 600; text-decoration: none; }
.banner-btns .btn-outline { border: 2px solid rgba(255,255,255,0.8); color: #fff; padding: 12px 28px; border-radius: 24px; text-decoration: none; }
.banner-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; }
.bdot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.3s; }
.bdot.active { background: #fff; transform: scale(1.2); }
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }
  .mobile-menu {
    display: block;
    order: 2;
  }
  nav {
    display: none;
    width: 100%;
    order: 10;
  }
  nav.show {
    display: block;
  }
  nav ul {
    flex-direction: column;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 8px 0 12px;
    gap: 0;
    box-shadow: 0 4px 12px var(--shadow);
  }
  nav ul li { margin-bottom: 0; }
  nav ul li a {
    display: block;
    padding: 12px 20px;
    font-size: 15px;
    color: var(--primary);
    text-align: center;
    border-radius: 20px;
    margin: 4px 12px;
    background: rgba(139,90,43,0.08);
    border: 1px solid rgba(139,90,43,0.15);
    transition: all 0.2s ease;
  }
  nav ul li:last-child a { margin-bottom: 0; }
  nav ul li a:hover {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .banner-content h2 { font-size: 26px; }
  .banner-content p { font-size: 14px; }
}
  .banner-content h1 { font-size: 24px; }
  .banner-content p { font-size: 14px; }



.banner { position: relative; overflow: hidden; height: auto; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #3e2714, #5a3a1f); padding: 15px 0; }
.banner .container { position: relative; z-index: 2; text-align: center; color: #fff; padding: 30px 20px; }
.banner h1 { color: #fff; font-size: 24px; margin-bottom: 16px; }
.banner h1 span { color: #f4d03f; }
.banner p { color: rgba(255,255,255,0.9); font-size: 16px; max-width: 700px; margin: 0 auto 24px; }
.banner .btn-primary { background: #fff; color: #6b3d1e; padding: 12px 28px; border-radius: 24px; font-weight: 600; text-decoration: none; display: inline-block; margin: 5px; }
.banner .btn-outline { border: 2px solid rgba(255,255,255,0.8); color: #fff; padding: 12px 28px; border-radius: 24px; text-decoration: none; display: inline-block; margin: 5px; }
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }
  .mobile-menu {
    display: block;
    order: 2;
  }
  nav {
    display: none;
    width: 100%;
    order: 10;
  }
  nav.show {
    display: block;
  }
  nav ul {
    flex-direction: column;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 8px 0 12px;
    gap: 0;
    box-shadow: 0 4px 12px var(--shadow);
  }
  nav ul li { margin-bottom: 0; }
  nav ul li a {
    display: block;
    padding: 12px 20px;
    font-size: 15px;
    color: var(--primary);
    text-align: center;
    border-radius: 20px;
    margin: 4px 12px;
    background: rgba(139,90,43,0.08);
    border: 1px solid rgba(139,90,43,0.15);
    transition: all 0.2s ease;
  }
  nav ul li:last-child a { margin-bottom: 0; }
  nav ul li a:hover {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .banner-content h2 { font-size: 26px; }
  .banner-content p { font-size: 14px; }
}
  .banner h1 { font-size: 24px; }
  .banner p { font-size: 14px; }




.banner h1 { font-size: 18px; margin-bottom: 8px; color: #fff !important; }
.banner h1 span { color: #f4d03f !important; }
.banner p { font-size: 13px; line-height: 1.6; margin-bottom: 12px; color: rgba(255,255,255,0.9) !important; }
.banner .container { padding: 15px 16px; color: #fff !important; }

/* 微信弹窗 */


/* 移动端导航样式 */
@media (max-width: 768px) {
  #mainNav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
  }
  #mainNav.active {
    display: block;
  }
  #navList {
    flex-direction: column;
    padding: 10px 0;
  }
  #navList li {
    border-bottom: 1px solid #eee;
  }
  #navList li:last-child {
    border-bottom: none;
  }
  #navList a {
    display: block;
    padding: 12px 20px;
    color: #333;
  }
  .mobile-menu {
    display: block;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
  }
}


/* 强制显示汉堡菜单 */
.mobile-menu {
  display: block !important;
  font-size: 26px;
  cursor: pointer;
  color: var(--primary);
  padding: 8px 12px;
  line-height: 1;
  -webkit-user-select: none;
  user-select: none;
  min-width: 44px;
  min-height: 44px;
  background: rgba(139,90,43,0.1);
  border: 2px solid rgba(139,90,43,0.25);
  border-radius: 8px;
  text-align: center;
  position: relative;
  z-index: 100;
}

/* ===== BANNER FIX (must be last to win cascade) ===== */
.banner .container { color: #fff !important; }
.banner h1 { color: #fff !important; }
.banner h1 span { color: #f4d03f !important; }
.banner p { color: rgba(255,255,255,0.9) !important; }
.banner .btn-primary {
  background: #fff !important;
  color: #6b3d1e !important;
  border-radius: 24px !important;
}
.banner .btn-outline {
  border: 2px solid rgba(255,255,255,0.8) !important;
  color: #fff !important;
  background: transparent !important;
  border-radius: 24px !important;
}


/* ===== NAV SHOW RULE ===== */
#mainNav.show {
  display: block !important;
}


/* ===== FORCE SHOW HAMBURGER BUTTON - ALWAYS VISIBLE ===== */
.mobile-menu,
button.mobile-menu,
.mobile-menu:active,
.mobile-menu:focus,
.mobile-menu:hover {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 9999 !important;
}

/* Force show nav when .show class is added */
#mainNav.show,
nav.show,
#mainNav.active {
  display: block !important;
  visibility: visible !important;
}


/* ============================================
   Scrollable nav - fix QQ browser bottom bar overlap
   ============================================ */
@media (max-width: 768px) {
  /* Hamburger always visible on mobile */
  .mobile-menu {
    display: block !important;
    order: 2;
  }
  /* Nav hidden by default on mobile */
  nav {
    display: none;
    width: 100%;
  }
  /* Nav scrollable when open */
  nav.show {
    display: block !important;
    max-height: calc(100vh - 160px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 20px !important;
  }
}


/* ================================
   FORCE MOBILE LAYOUT - ALL SCREENS
   ================================ */
@media screen {
  nav {
    display: none !important;
  }
  nav.show {
    display: block !important;
    overflow-y: auto !important;
    max-height: calc(100vh - 160px) !important;
    -webkit-overflow-scrolling: touch !important;
    -webkit-backface-visibility: hidden;
  }
  .mobile-menu {
    display: block !important;
  }
  body .section {
    max-width: 480px !important;
    margin: 0 auto !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  body .products-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  body .product-gallery {
    grid-template-columns: 1fr !important;
  }
  body .footer-content {
    grid-template-columns: 1fr !important;
  }
}


/* FORCE MOBILE LAYOUT */
@media screen {
  nav { display: none !important; }
  nav.show { display: block !important; overflow-y: auto !important; max-height: calc(100vh - 160px) !important; -webkit-overflow-scrolling: touch !important; }
  .mobile-menu { display: block !important; }
  body .section { max-width: 480px !important; margin: 0 auto !important; padding-left: 16px !important; padding-right: 16px !important; }
  body .products-grid { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
}

/* === 强制手机版模式 - 覆盖所有桌面样式 === */
/* === DESKTOP BLOCK DISABLED (force mobile) === */
/* @media (min-width: 769px) { */
/*   nav { */
/*     display: none !important; */
/*   } */
/*   nav ul { */
/*     flex-direction: column !important; */
/*   } */
/*   body .section, */
/*   .container { */
/*     max-width: 480px !important; */
/*     margin: 0 auto !important; */
/*   } */
/*   .product-grid { */
/*     grid-template-columns: repeat(2, 1fr) !important; */
/*   } */
/*   .footer-grid { */
/*     grid-template-columns: 1fr !important; */
/*   } */
/* } */
/* === END DISABLED BLOCK === */




/* ============================================
   FIX v3: 首页产品卡片 + 全局居中
   ============================================ */
@media screen {
  /* 全局 body 居中 */
  body {
    max-width: 480px !important;
    margin: 0 auto !important;
    overflow-x: hidden !important;
  }

  /* 所有容器居中 */
  header,
  .container,
  .section,
  section {
    max-width: 480px !important;
    margin: 0 auto !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* 产品网格强制两列 */
  .products-grid,
  .product-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 产品卡片尺寸 */
  .product-card {
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border-radius: 8px !important;
  }

  /* 卡片图片 */
  .product-card img,
  .product-card .pimg img,
  .pimg img {
    width: 100% !important;
    height: 140px !important;
    max-height: 140px !important;
    min-height: 140px !important;
    object-fit: cover !important;
    display: block !important;
  }

  /* 卡片内文字区 */
  .product-card .info,
  .product-card .pimg ~ * {
    padding: 8px 10px !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
  }

  /* 产品名称 */
  .product-card .pname,
  .product-card h3 {
    font-size: 13px !important;
    font-weight: 600 !important;
    margin: 0 0 4px 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  /* 产品描述 - 限制行数 */
  .product-card .pdesc,
  .product-card p {
    font-size: 11px !important;
    color: #666 !important;
    line-height: 1.4 !important;
    margin: 0 0 4px 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  /* 价格 */
  .product-card .pprice,
  .product-card .price {
    font-size: 13px !important;
    color: #b48246 !important;
    font-weight: 700 !important;
    margin: 0 !important;
  }

  /* 按钮 */
  .product-card .pbtn,
  .product-card .more {
    display: inline-block !important;
    font-size: 11px !important;
    padding: 3px 10px !important;
    margin-top: 6px !important;
    color: #b48246 !important;
    border: 1px solid #b48246 !important;
    border-radius: 999px !important;
    text-decoration: none !important;
  }

  /* 产品画廊 */
  .product-gallery {
    grid-template-columns: 1fr !important;
  }

  /* 页脚 */
  .footer-grid,
  .footer-content {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* 导航隐藏 */
  nav {
    display: none !important;
  }
  nav.show {
    display: block !important;
    overflow-y: auto !important;
    max-height: calc(100vh - 160px) !important;
  }
  .mobile-menu {
    display: block !important;
  }
}


/* Force vertical nav on homepage (match style-v2.css) */
.header-inner { flex-wrap: wrap !important; }
nav ul { flex-direction: column !important; flex-wrap: nowrap !important; }
nav ul li a { display: block !important; }


/* ===== FORCE VERTICAL NAV - index.html (match style-v2.css) ===== */
/* Header inner: wrap so hamburger and nav stack */
.header-inner { flex-wrap: wrap !important; }

/* Nav always hidden by default on all screen sizes */
nav { display: none !important; width: 100% !important; order: 10 !important; }

/* Nav shown when .show class */
nav.show { display: block !important; }

/* Nav list: always vertical */
nav ul { flex-direction: column !important; flex-wrap: nowrap !important; padding: 5px 10px !important; gap: 0 !important; background: var(--white) !important; border-top: 1px solid var(--border) !important; box-shadow: 0 4px 12px var(--shadow) !important; }

/* Nav items: stacked */
nav ul li { display: block !important; margin: 0 !important; padding: 6px 0 !important; border-bottom: 1px solid rgba(139,90,43,0.1) !important; }

/* Nav links: full width block */
nav ul li a { display: block !important; padding: 8px 14px !important; font-size: 14px !important; margin: 2px 6px !important; border-radius: 16px !important; text-align: center !important; }

/* Hamburger always visible */
.mobile-menu { display: block !important; visibility: visible !important; opacity: 1 !important; }

/* .header-inner: hamburger right, nav below */
.header-inner { justify-content: space-between !important; align-items: center !important; flex-wrap: wrap !important; }
