/* ========================================
   全局重置 & 基础样式
   ======================================== */
/* 分类标题带背景图 */
/* 只在产品页生效的标题背景图样式 */
.product-page-header {
    position: relative;
    padding: 0 !important;
    height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-page-header .page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: background-image 0.5s ease;
    z-index: 1;
    background-color: #f6f5f2;
}
.product-page-header .page-header-bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.25);
}
.product-page-header .page-header-text {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}
.product-page-header .page-header-text h1 {
    font-size: 42px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: #fff !important;
}
.product-page-header .page-header-text p {
    font-size: 16px;
    letter-spacing: 1px;
    color: #eee !important;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
    background-color: #f6f5f2;
    color: #1a1a1a;
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: #1a1a1a;
    transition: color 0.3s ease;
}

a:hover {
    color: #8b7d6b;
}

/* ========================================
   顶部提示栏（固定顶部）
   ======================================== */

.top-tip {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #191919;
  text-align: center;
  padding: 8px 0;
  z-index: 99;
}

.top-tip p {
    color: #b9b9b9;
    font-size: 12px;
    letter-spacing: 1.5px;
    font-weight: 300;
}

/* ========================================
   导航栏固定定位
   ======================================== */

/* 2. 第一个 header（菜单 + 品牌） */
.header-nav:nth-of-type(1) {
  position: fixed;
  top: 34px;
  left: 0;
  width: 100%;
  background: #fff;
  z-index: 98;
}

/* 3. 第二个 header（筛选下拉） */
/* 3. 第二个 header（筛选下拉） */
.header-nav:nth-of-type(2) {
  position: fixed;
  top: 129px;
  left: 0;
  width: 100%;
  background: #fff;
  z-index: 97;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  height: 60px !important;
  display: flex;
  align-items: center;
  padding-left: 3%;
  border-bottom: 1px solid #e5e2db;

  /* ✅ 修复下拉菜单被遮挡：关键代码 */
  overflow: visible !important;
  clip: auto !important;
}
/* 页面内容不被遮挡 */
body {
  padding-top: 189px !important;
}

.header-nav {
    width: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3%;
    height: 95px;
    border-bottom: 1px solid #e5e2db;
    position: relative;
    z-index: 9;
}

.left-actions,
.right-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.menu-trigger {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    letter-spacing: 1px;
    color: #2b2b2b;
    transition: color 0.3s ease;
    font-weight: 500;
}

.menu-trigger:hover {
    color: #8b7d6b;
}

.brand-name h1 {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 3px;
    color: #1a1a1a;
}

.nav-link {
    font-size: 12px;
    letter-spacing: 1px;
    color: #1a1a1a;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #8b7d6b;
}

/* ========================================
   侧边栏菜单系统
   ======================================== */

.sidebar-mask{
    position:fixed;
    top:0;left:0;
    width:100%;height:100%;
    background:rgba(0,0,0,0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index:99;
}
.sidebar-mask.open {
    opacity: 1;
    pointer-events: auto;
}
.sidebar-nav{
    position:fixed;
    top:0;left:0;
    width:320px;
    height:100%;
    background:#fff;
    transform:translateX(-100%);
    transition:transform 0.3s ease;
    z-index:100;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    will-change: transform;
    backface-visibility: hidden;
}
.sidebar-nav.open{
    transform:translateX(0);
}
.sidebar-close{
    padding:20px;
    text-align:right;
    border-bottom: 1px solid #f0ede7;
}
.sidebar-close button{
    background:none;
    border:none;
    font-size:24px;
    cursor:pointer;
    color:#666;
    transition: color 0.3s;
}
.sidebar-close button:hover {
    color: #8b7d6b;
}
.sidebar-menu{
    list-style:none;
    padding:0;
}
.sidebar-menu li{
    border-bottom:1px solid #f0ede7;
}
.sidebar-menu a{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:16px 20px;
    text-decoration:none;
    color:#222;
    font-size:15px;
    transition: all 0.3s;
}
.sidebar-menu a:hover {
    background: #f6f5f2;
    color: #8b7d6b;
}
.sidebar-menu .arrow{
    font-size:18px;
    color:#888;
}

/* ========================================
   自定义下拉菜单（产品筛选）
   ======================================== */

.custom-dropdown {
    position: relative;
    display: inline-block;
    font-size: 15px;
    color: #222;
    cursor: pointer;
    letter-spacing: 1px;
    overflow: visible !important;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    padding: 0;
    font-size: 15px;
    color: #222;
    letter-spacing: 1px;
    cursor: pointer;
}

.dropdown-trigger .arrow {
    font-size: 1rem;
    transition: transform 0.2s;
}

.dropdown-trigger.open .arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.25rem;
    background: #fff;
    border: none;
    box-shadow: none;
    display: none;
    min-width: 220px;
    z-index: 105;

    /* ✅ 让超长菜单可以滚动，显示全部选项 */
    max-height: 70vh;
    overflow-y: auto;
}
/* 隐藏滚动条 */
.dropdown-menu::-webkit-scrollbar {
  display: none;
}
.dropdown-menu {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.dropdown-menu.open {
    display: block;
}

.dropdown-item {
    padding: 16px 20px;
    font-size: 15px;
    color: #222;
    letter-spacing: 1px;
    background: transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}

.dropdown-item:hover,
.dropdown-item.active {
    background: #f6f5f2;
    color: #8b7d6b;
}

/* ========================================
   二级筛选（已完整修复 ✅）
   ======================================== */
    
#subFilterWrap {
    display: none;
    justify-content: center;
    gap: 12px;
    padding: 20px 3%;
    background: #fff;
    flex-wrap: wrap;
    border-bottom: 1px solid #f0ede7;
}
#subFilterWrap.show {
    display: flex;
}

.sub-filter-btn {
    border: none;
    background: transparent;
    padding: 8px 16px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 2px;
}
.sub-filter-btn:hover,
.sub-filter-btn.active {
    background: #1a1a1a;
    color: #fff;
}

.sub-filter-btn:first-child {
    display: inline-block !important;
}


/* ========================================
   轮播 / 首页大图
   ======================================== */

.hero-carousel {
    width: 100%;
    position: relative;
    z-index: 1;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.carousel-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
}

.carousel-content h2 {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.carousel-content p {
    font-size: 18px;
    letter-spacing: 1px;
    font-weight: 300;
}

.carousel-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 3;
}

.control-btn {
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid white;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.6);
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* ========================================
   产品列表 & 产品卡片
   ======================================== */

.page-header {
    padding: 60px 3%;
    text-align: center;
    background: #f6f5f2;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 16px;
    color: #888;
    letter-spacing: 1px;
}

.products-section {
    padding: 60px 3%;
    background: #ffffff;
}

.products-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.product-item {
    background: white;
    content-visibility: auto;
    contain-intrinsic-size: 500px;
}

.product-images-carousel {
    position: relative;
    width: 100%;
    height: 400px;
    background: #f6f5f2;
    overflow: hidden;
}

.product-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 2;
}

.img-nav-btn {
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: 1px solid white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-nav-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.product-details {
    padding: 30px;
    background: white;
}

.product-details h3 {
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.product-desc {
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
}

.product-specs {
    font-size: 12px;
    color: #999;
    letter-spacing: 0.5px;
}

/* ========================================
   产品悬停换图
   ======================================== */

.product-hover-images {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  background: #f6f5f2;
}

.product-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.4s ease;
}

.default-img {
  opacity: 1;
  z-index: 1;
}
.hover-img {
  opacity: 0;
  z-index: 2;
}
.product-hover-images:hover .default-img {
  opacity: 0;
}
.product-hover-images:hover .hover-img {
  opacity: 1;
}

/* ========================================
   产品详情页
   ======================================== */

.detail-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.detail-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f8f8;
  flex-direction: column;
  gap: 20px;
  padding: 40px 20px;
}
.detail-image img {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  width: auto;
  height: auto;
  display: block;
}
.detail-info {
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.product-title {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 10px;
}
.product-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 40px;
}
.btn-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.btn-back {
  display: block;
  text-align: center;
  padding: 14px;
  background: transparent;
  border: 1px solid #000;
  color: #000;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: 0.2s;
}
.btn-back:hover {
  background: #000;
  color: #fff;
}
.btn-wechat {
  display: block;
  text-align: center;
  padding: 14px;
  background: #07c160;
  border: none;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: 0.2s;
}
.btn-wechat:hover {
  opacity: 0.9;
}

/* ========================================
   产品卡片
   ======================================== */

.featured-products {
    padding: 80px 3%;
    background: #f6f5f2;
    text-align: center;
}

.featured-products h2 {
    font-size: 36px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 60px;
    color: #1a1a1a;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.product-info {
    padding: 25px;
    text-align: left;
}

.product-info h3 {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.product-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.btn-explore {
    font-size: 12px;
    letter-spacing: 1px;
    color: #8b7d6b;
    transition: color 0.3s ease;
    display: inline-block;
}

.btn-explore:hover {
    color: #1a1a1a;
}

/* ========================================
   关于我们 / 联系我们 / 通用页面
   ======================================== */

.brand-story,
.about-story,
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 80px 3%;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.story-content h2,
.story-text h2 {
    font-size: 36px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.story-content p,
.story-text p {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.8;
}

.btn-primary {
    display: inline-block;
    padding: 12px 35px;
    background: #1a1a1a;
    color: white;
    font-size: 12px;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    margin-top: 15px;
}
.btn-primary:hover {
    background: #8b7d6b;
    color: white;
}

.story-image {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
}

/* 价值观卡片 */
.values {
    padding: 80px 3%;
    background: white;
}

.values h2 {
    font-size: 36px;
    font-weight: 300;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 60px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.value-card {
    background: #f6f5f2;
    padding: 40px;
    text-align: center;
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.value-card h3 {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.value-card p {     
    font-size: 14px;
    color: #666;
}
/* 联系表单 */
.contact-section {
    padding: 80px 3%;
    background: white;
}
.form-group {
    margin-bottom: 25px;
}
.form-group label {
    display: block;
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e5e2db;
    background: #f9f8f6;
    font-family: inherit;
    font-size: 13px;
    color: #333;
    transition: border-color 0.3s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8b7d6b;
    background: white;
}
.btn-submit {
    width: 100%;
    padding: 14px;
    background: #1a1a1a;
    color: white;
    border: none;
    font-size: 12px;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}
.btn-submit:hover {
    background: #8b7d6b;
}

.contact-info h2,
.contact-form h2 {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 1.5px;
    margin-bottom: 40px;
}

.contact-item {
    margin-bottom: 40px;
}

.contact-item h3 {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.contact-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 5px;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-btn {
    display: inline-block;
    padding: 8px 20px;
    background: #f6f5f2;
    border: 1px solid #e5e2db;
    font-size: 12px;
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: #1a1a1a;
    color: white;
}

/* FAQ */
.faq {
    padding: 80px 3%;
    background: white;
}
.faq h2 {
    font-size: 36px;
    font-weight: 300;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 60px;
}
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid #e5e2db;
    margin-bottom: 20px;
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}
.faq-question:hover {
    color: #8b7d6b;
}
.faq-question span:first-child {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}
.faq-toggle {
    font-size: 20px;
    transition: transform 0.3s ease;
}
.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}
.faq-answer {
    padding: 0 0 20px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    display: none;
}

/* ========================================
   页脚
   ======================================== */

.footer {
    background: #191919;
    color: #b9b9b9;
    padding: 60px 3%;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}
.footer-section h4 {
    color: white;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 15px;
}
.footer-section p {
    font-size: 12px;
    color: #999;
    line-height: 1.8;
}
.footer-section ul {
    list-style: none;
}
.footer-section ul li {
    margin-bottom: 8px;
}
.footer-section ul li a {
    font-size: 12px;
    color: #999;
    transition: color 0.3s ease;
}
.footer-section ul li a:hover {
    color: #b9b9b9;
}
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    font-size: 11px;
    color: #fffdfd;
    letter-spacing: 0.5px;
}

/* ========================================
   微信悬浮按钮
   ======================================== */

.wechat-fab {
    position: fixed;
    bottom: 40px;
    right: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    background: #07c160;
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(7, 193, 96, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}
.wechat-fab:hover {
    background: #06ad56;
    box-shadow: 0 6px 20px rgba(7, 193, 96, 0.5);
    transform: translateY(-2px);
    color: #fff;
}
.fab-icon {
    font-size: 20px;
    line-height: 1;
}
.fab-text {
    letter-spacing: 0.5px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .wechat-fab {
        bottom: 20px;
        right: 15px;
        padding: 12px 16px;
        font-size: 13px;
    }
    .fab-text {
        display: none;  /* 小屏只显示图标 */
    }
}

/* ========================================
   响应式适配
   ======================================== */

@media (max-width: 1024px) {
    .sidebar-nav { width: 280px; }
    .brand-name h1 { font-size: 22px; }
    .carousel-content h2 { font-size: 36px; }
    .brand-story, .about-story, .contact-container { grid-template-columns: 1fr; }

    /* 页脚 */
    .footer {
        padding: 40px 2%;
    }

    .footer-content {
        gap: 30px;
    }

    .footer-section h4 {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .sidebar-nav{ width: 100% !important; }
    .detail-container { grid-template-columns: 1fr; }
    .detail-image { padding: 30px 16px; gap: 16px; }
    .detail-image img { max-width: 100%; max-height: 60vh; }
    .detail-info { padding: 40px 20px; }
    .products-gallery { grid-template-columns: 1fr; }
    .header-nav { height: 80px; }
    .brand-name h1 { font-size: 18px; }
}

@media (max-width: 480px) {
    .nav-link { display: none; }
    .carousel-controls { display: none; }
}
section, div, img, ul, li {
  overflow-x: hidden !important;
}