/* 懒加载图片占位样式 */
img.lazy {
    /* 占位背景色，匹配网站风格 */
    background-color: #FF999B;
    /* 防止图片闪烁 */
    min-height: 200px;
    /* 渐变加载动画（可选） */
    background-image: linear-gradient(90deg, #FF999B 25%, #FFC0C2 50%, #FF999B 75%);
    background-size: 200% 100%;
    animation: placeholder-loading 1.5s infinite;
}

@keyframes placeholder-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}
 
a {
 color: inherit;
 text-decoration: none;
}

.show-phone {
    display: none;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    width: 70%;
    max-width: 1200px;
    margin: 0 auto;
}


/* 导航栏样式 */
.header {
    background-color: #ffeff5;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: #fff;
    font-size: 1.8rem;
}

.header {
    background-color: #FF999B;
; /* 保留原有粉色背景 */
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 80%;
    max-width: none;
}

.logo h1 {
    color: #e85d75;
    font-size: 1.8rem;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

/* 核心修改：导航链接默认样式（加粗+白色） */
.nav-menu a {
    text-decoration: none;
    color: #ffffff; /* 白色字体 */
    font-weight: 700; /* 加粗（700=bold） */
    font-size: 1rem; /* 可选：调整字体大小，保持协调 */
    padding: 0.5rem 0; /* 为下划线预留空间 */
    position: relative; /* 用于下划线定位 */
    transition: all 0.3s ease; /* 过渡动画，hover更丝滑 */
}

/* 核心：hover时显示下划线 */
.nav-menu a:hover {
    color: #ffffff; /* hover时仍保持白色，避免变色 */
}

/* 下划线样式（伪元素实现，更美观） */
.nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0; /* 默认隐藏下划线 */
    height: 2px; /* 下划线粗细 */
    background-color: #ffffff; /* 下划线白色，与文字一致 */
    transition: width 0.3s ease; /* 下划线展开动画 */
}

/* hover时展开下划线 */
.nav-menu a:hover::after {
    width: 100%; /* 下划线展开为100%宽度 */
}

/* 响应式适配：小屏幕下导航链接间距调整 */
@media (max-width: 480px) {
    .header{
        padding: 0;
    }
    .header .container {
        display: block;
        width: 100%;
    }

    .container{
        width: 85%;
    }
    .logo{
        width: 40%;
        margin: 0 auto;
    }
    .nav-menu ul {
        gap: 1rem;
    }
    .nav-menu a {
        font-size: 0.9rem;
    }
}

/* Banner轮播样式 */
.banner-section {
    position: relative;
    overflow: hidden;
    height: 90vh;
    min-height: 500px;
}

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

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

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.banner-text h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.banner-text p {
    font-size: 1.5rem;
}

/* 轮播控制按钮 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255,255,255,0.5);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s;
}

.carousel-btn:hover {
    background-color: rgba(232, 93, 117, 0.8);
    color: #fff;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

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

.indicator.active {
    background-color: #e85d75;
}

/* 品牌故事样式 */
.brand-section {
    padding: 4rem 0;
    background-color: #FF999B;
}

.section-title {
    font-size: 2.2rem;
    color: #D37778;
    text-align: center;
    margin-bottom: 2rem;
}

.brand-content {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.brand-text {
    flex: 1;
    line-height: 1.8;
}

.brand-text h3 {
    color: #e85d75;
    margin-bottom: 1rem;
}

.brand-img {
    flex: 1;
}

.brand-img img {
    width: 100%;
    border-radius: 8px;
}

/* 品牌故事板块 - 匹配参考图样式 */
.brand-story-section {
  padding: 1rem 0 0 0;
  /* 浅粉→浅黄渐变背景，匹配参考图色调 */
  background: url(/img/brandstory-bg.png);
  background-position: left -3rem center; 
  background-size: cover;
  position: relative;
  overflow: hidden;
}

/* 星星装饰（参考图背景星星） */
.brand-story-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* 星星SVG背景（淡粉色半透明） */
  /* background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23E85D75' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'%3E%3C/polygon%3E%3C/svg%3E"); */
  background-repeat: repeat;
  opacity: 0.15;
  z-index: 0;
}

.brand-story-content {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
  position: relative;
  z-index: 1; /* 确保内容在星星背景之上 */
}

/* 文字内容区 */
.brand-story-text {
  flex: 1.5;
  color: #D37778;
  line-height: 1.8; /* 提升阅读舒适度 */
}

.brand-story-main-title {
  font-size: 2.5rem;
  color: #D37778; /* 品牌主粉色 */
  margin-bottom: 1rem;
  font-weight: 700;
}

.brand-story-subtitle {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.brand-story-part {
  margin-bottom: 2rem;
}

.part-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.part-text {
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* 右侧图片区 */
.brand-story-img {
  flex: 0.8; /* 图片宽度略窄于文字区，匹配参考图比例 */
}

.brand-story-img img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  /* box-shadow: 0 4px 15px rgba(232, 93, 117, 0.1);  */
}
/* 响应式适配 */
@media (max-width: 768px) {

  .brand-story-content {
    flex-direction: column;
    gap: 2rem;
  }
  .brand-story-main-title,
  .brand-story-subtitle {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .brand-story-section {
    padding: 1rem 0;
  }
  .brand-story-main-title {
    font-size: 1.8rem;
  }
  .part-text {
    font-size: 0.95rem;
  }
  .brand-story-part{
    margin-bottom: 0;
  }
}


/* 明星产品样式 */
.products-section {
    padding: 4rem 0;
    color: #D37778 !important;
    font-weight: bold;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.product-card {
    text-align: center;
    transition: transform 0.3s;
}

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

.product-card img {
    width: 100%;
    /* border-radius: 8px; */
    /* margin-bottom: 1rem; */
}

.product-card {
    /* position: relative; */
    text-align: center;
    /* border-radius: 8px; */
    overflow: hidden;
    /* box-shadow: 0 2px 8px rgba(0,0,0,0.06); */
    transition: all 0.4s ease;
    cursor: pointer;
    background-color: #fff;
}

.product-card>div { 
    position: relative;
}

/* 卡片 hover 上浮效果 */
.product-card:hover {
    transform: translateY(-8px);
    /* box-shadow: 0 8px 20px rgba(232, 93, 117, 0.12); */
}

/* 图片容器（保留原有class：card-link） */
.card-link {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3/4; /* 和原有保持一致的宽高比 */
    overflow: hidden;
}

/* 通用图片样式（新增class：card-img，不影响原有） */
.card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保证图片不变形 */
    transition: opacity 0.1s ease; /* 淡入淡出过渡 */
}

/* 默认显示主图，隐藏 hover 图 */
.main-img {
    opacity: 1;
}
.hover-img {
    opacity: 0;
}

/* hover 时切换图片 */
.product-card:hover .main-img {
    opacity: 0;
}
.product-card:hover .hover-img {
    opacity: 1;
}

/* 产品名称/描述（保留原有样式） */
.product-card .product-name {
    padding: 1rem 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.product-card .product-desc {
    padding: 0 1rem 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

/* 响应式适配（保留原有逻辑） */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    .products-section{
        padding: 1rem 0;
    }
}

/* 加入我们样式 */
/* 加入我们板块 - 完全重构 */
.join-section {
    background-color: #FF99AA; /* 参考图的粉色背景 */
    padding: 4rem 2rem;
    color: #FFFFFF; /* 文字默认白色 */
}

.join-container {
    max-width: 75%;
    margin: 0 auto;
}

/* 顶部标题 */
.join-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
    letter-spacing: 1px;
}

/* 核心内容容器 */
.join-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* 正文部分 */
.join-intro {
    line-height: 1.8;
}

.join-subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.join-text {
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* 联系+表单区 */
.join-contact-form {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
}

/* 左侧联系方式 */
.contact-info {
    flex: 1;
}

.contact-info ul {
    list-style: none;
    padding: 0;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.contact-info li i {
    font-size: 1.2rem;
    margin-top: 2px; /* 图标垂直居中 */
}

/* 右侧：社交+表单 */
.form-social-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* gap: 1.5rem; */
}

/* 社交图标 */
.social-icons {
    display: flex;
    gap: 1.2rem;
    /* margin-bottom: 1rem; */
}

.social-icons a {
    color: #FFFFFF;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.1);
}

/* 表单样式 */
.join-form {
    display: flex;
    flex-direction: column;
    width: 45%;
    gap: 0.8rem;
}

.join-form label {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.join-form input {
    width: 100%;
    padding: 0.8rem;
    border: none;
    outline: none;
    background-color: #FFFFFF;
    color: #333;
    font-size: 1rem;
    box-sizing: border-box;
}

.join-form .submit-btn {
    background-color: #B35868; /* 参考图的深粉色按钮 */
    color: #FFFFFF;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: auto; /* 按钮宽度自适应 */
}

.join-form .submit-btn:hover {
    background-color: #9E4A58;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .join-contact-form {
        flex-direction: column;
        gap: 2rem;
    }

    .join-title {
        font-size: 2rem;
        margin-bottom: 0;
    }

    .social-icons {
        align-self: center;
    }

    .join-form {
        align-items: center;
        width: 100%;
    }

    .join-form input {
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .join-section {
        padding: 2rem 1rem;
    }

    .join-title {
        font-size: 1.8rem;
    }

    .contact-info li {
        font-size: 0.9rem;
    }
}

/* 页脚样式 */
.footer {
    background-color: #FF999B;
    padding: 2rem 0;
    text-align: center;
    color: #FFF;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .brand-content, .join-content {
        flex-direction: column;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .banner-text h2 {
        font-size: 2rem;
    }
    .banner-text p {
        font-size: 1.2rem;
    }
}

@media (max-width: 1580px) { 
        .show-phone {
        display: block;
    }
    .brand-story-section{
        background: url(/img/brandstory-bg-1.png);
        background-size: cover;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2,1fr);
    }
    .nav-menu ul {
        gap: 1rem;
        justify-content: center;
    }
    .banner-section {
        height: 25vh;
        min-height: unset;
    }
    .join-form .submit-btn{
        width: 100%;
    }
}

/* 热卖产品楼层样式 */
/* 热卖产品楼层样式 */
.best-sellers-section {
    padding: 3rem 0;
    background-color: #fff;
}

.best-sellers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 固定4列 */
    gap: 1.5rem;
}

.best-seller-card {
    position: relative;
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
    /* box-shadow: 0 2px 6px rgba(0,0,0,0.05); */
    transition: all 0.4s ease; /* 统一过渡动画 */
    cursor: pointer;
}

/* 核心：hover时卡片上浮+阴影加深 */
.best-seller-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(232, 93, 117, 0.15);
}

/* 产品图片容器（相对定位，承载遮罩） */
.best-seller-card img {
    width: 100%;
    object-fit: cover; /* 防止变形 */
    transition: transform 0.4s ease; /* 图片缩放动画 */
}

/* hover时图片轻微缩放 */
.best-seller-card:hover img {
    transform: scale(1.05);
}

/* 新增：叠加遮罩层（默认隐藏） */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.1), rgba(232, 93, 117, 0.7)); /* 渐变半透明遮罩 */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* 默认透明 */
    transition: opacity 0.4s ease; /* 淡入动画 */
    z-index: 2; /* 确保在图片上方 */
}

/* hover时显示遮罩 */
.best-seller-card:hover .card-overlay {
    opacity: 1;
}

/* 叠加文字样式（匹配参考图） */
.overlay-text {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    letter-spacing: 2px;
}

.best-seller-card .product-name {
    padding: 0.8rem 0;
    font-weight: 600;
    color: #333;
    position: relative;
    z-index: 3; /* 确保在遮罩下方，hover时不被遮挡 */
}

.best-seller-card .product-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #e85d75;
    color: #fff;
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    z-index: 3; /* 标签在最上层 */
}

/* 响应式适配 */
@media (max-width: 768px) {
    .best-sellers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .overlay-text {
        font-size: 2rem; /* 平板端缩小文字 */
    }
}

@media (max-width: 480px) {
    .best-sellers-grid {
        grid-template-columns: repeat(2,1fr);
    }
    .best-seller-card img {
        /* height: 180px; */
    }
    .overlay-text {
        font-size: 1.8rem; /* 手机端进一步缩小 */
    }
}
/* 原有样式（明星产品、懒加载等）不变 */

/* 新增：品牌主张核心模块样式（明星产品与加入我们之间） */
.brand-value-section {
    padding: 4rem 0;
    background: url(/img/Group2.png); /* 浅粉色背景，匹配设计图视觉 */
    background-size: cover;
    /* margin: 2rem 0; */
    /* border-radius: 12px; */
}

.brand-value-section>.container { 
    max-width: 1350px;
}

.brand-value-content {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.brand-value-img {
    flex: 1;
}

.brand-value-img img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(232, 93, 117, 0.15);
}

.brand-value-text {
    flex: 1;
    line-height: 1.8;
    background-color: rgba(255,255,255,0.5);
    padding: 2.5rem;
    border-radius: 8px;
}

.brand-value-text h3 {
    color: #D37778;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.brand-value-list {
    list-style: none;
    margin: 1.5rem 0;
}

.brand-value-list li {
    margin: 0.8rem 0;
    color: #555;
}

.brand-value-list li i {
    color: #D37778;
    margin-right: 0.8rem;
}

.brand-value-contact {
    margin-top: 1.5rem;
    color: #333;
}

.brand-value-contact a {
    color: #D37778;
    text-decoration: none;
    font-weight: 600;
}

/* 响应式适配：小屏幕下改为上下布局 */
@media (max-width: 768px) {
    .brand-value-content {
        flex-direction: column;
        gap: 2rem;
        margin-bottom: 2rem;
    }
    .brand-value-text h3 {
        font-size: 1.5rem;
        text-align: center;
    }
    .brand-value-list {
        padding-left: 1rem;
        margin: 0.5rem 0;
    }
    .brand-value-section{
        padding: 1rem 0;
        margin-bottom: -1px;
    }
    .brand-value-text{
        padding: 0.5rem;
    }
    .brand-value-text h3{
        padding-bottom: 0.5rem;
    }
    .join-content-wrapper{
        gap: 1rem;
    }
    .join-container{
        width: 85%;
    }
}

/* 加入我们样式（简化后） */
.join-section {
    padding: 4rem 0;
    background-color: #FF999B;
}

/* 原有样式不变 */