/* 全局重置 */
* {
    box-sizing: border-box;
}

body,html {
    margin: 0;
    padding: 0;
    width: 100%;
    /* 防止手机端横向溢出 */
    overflow-x: hidden; 
}

/* --- Hero 区块样式 --- */
.hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* PC高度 */
    
    /* 背景图 */
    background-color: #ff4500; /* 备用橙色 */
    background-image: url('images/banner.webp'); /* 替换你的路径 */
    
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    
    /* ★关键：消除默认边距，让图片顶到头★ */
    margin-top: 0;
    padding-top: 0;
}

/* --- 居中容器 --- */
:root {
    /* 【在这里修改高度】如果你觉得100px太高，改成80px即可 */
    --nav-height: 50px; 
}
.container {
    /* 设置内容的最大宽度，使其在屏幕中间显示，模拟草稿图的对齐方式 */
    max-width: 1000px;
    width: 90%;
    margin: 0 auto; /* 水平居中 */
    height: 100%;
}

/* --- 导航栏样式 --- */
.navbar {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    
    /* ★关键点：初始状态必须完全透明★ */
    background-color: transparent !important;
    
    /* 确保层级最高 */
    z-index: 9999;
    
    transition: background-color 0.3s ease, height 0.3s ease;
    
    /* 布局 */
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1000px;
    height: 100%;
}

.logo {
    font-size: 30px;
    font-weight: bold;
    color: #ffffff; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); /* 加阴影防止背景太亮看不清 */
}

.menu-list {
    list-style: none;
    display: flex;
    gap: 40px;
}

.menu-list li a {
    text-decoration: none;
    color: #ffffff;
    font-size: 20px;
    font-family: "Courier New", Courier, monospace;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.navbar.scrolled {
    background-color: #000000 !important; /* 滚动后变黑 */
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* 滚动后文字变白 */
.navbar.scrolled .logo,
.navbar.scrolled .menu-list li a {
    color: #ffffff; 
}

.btn-banner {
    margin-top: 30px;
    background-color: #000000;
    color: #ffffff;
    border: none; /* 去掉默认边框 */
    /* 圆角设置：数值越大越圆，50px通常能形成胶囊形状 */
    border-radius: 50px; 
    
    /* 尺寸控制：通过内边距来撑开按钮大小 */
    /* 上下 12px，左右 32px -> 你可以修改这里来改变按钮大小 */
    padding: 12px 32px; 
    
    /* 字体设置 */
    font-size: 16px;
    font-weight: bold;
    cursor: pointer; /* 鼠标放上去变成小手 */
    
    /* 交互动画设置：0.3秒平滑过渡 */
    transition: all 0.3s ease; 
    text-decoration: none;  /* 去掉链接默认的下划线 */
    display: inline-block;  /* 确保 padding 和宽高生效 */
    text-align: center;     /* 确保文字居中 */
}

.btn-banner:hover{
    /* 悬浮时变为深灰色 */
    background-color: #333333; 
    
    /* 增加一点上浮效果，更有交互感 */
    transform: translateY(-2px);
    
    /* 增加阴影，增加立体感 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); 
}
/* --- 中间文字内容样式 --- */
.hero-content {
    padding-top: 150px; /* PC端让出导航栏高度 */
    
    display: flex;
    flex-direction: column;
    justify-content: center; /* 垂直居中 */
    height: 100%;
}

/* 第一行文字：特殊的打字机字体样式 */
.immersive-text {
    font-family: "Courier New", Courier, monospace;
    font-size: 20px;
    margin-bottom: 30px; /* 与下方文字的间距 */
    color: #333;
}

.price-wrapper {
    /* 与上下内容的间距 */
    display: flex;
    align-items: baseline;
    margin-bottom: 20px;
    color: #fff; /* 文字改白，适应橙色背景 */
}

/* "Hot Sale" 标签样式 */
.sale-label {
    font-size: 20px;
    font-weight: bold;
    margin-right: 10px;
    text-transform: uppercase;
    margin-top: 220px;
}

/* "$199" 价格样式 - 视觉焦点 */
.sale-price {
    font-size: 45px;     /* 超大字号，极其醒目 */
    font-weight: 900;    /* 特粗字体 */
    color: #FFE500; /* 使用鲜艳的红色 (或者改成 #FCE300 纯黑) */
    line-height: 1;      /* 紧凑的行高 */
    font-family: Arial, sans-serif; /* 确保数字显示清晰 */
    
    /* 可选：给价格加一点文字阴影，使其浮起 */
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    :root {
        /* 1. 手机导航栏高度设为 60px */
        --nav-height: 60px;
    }
    /* 1. Hero区域高度自适应，防止内容溢出 */
    .hero-section {
       height: 500px; 
        background-position: 52% 100%; 
    }
    .navbar {
        /* 强制确保高度生效 */
        background-color: transparent; /* 初始透明 */
    }

    /* 2. 导航栏布局调整 */
    .navbar .container {
        width: 100%;
        background-color: #000000 !important;
        height: 60px !important; /* 确保滚动后高度不崩 */
        padding:0 10px 0 10px;
    }

    .logo {
        font-size: 22px; /* Logo变小 */
    }

    .menu-list {
        gap: 15px; /* 菜单间距变小 */
    }

    .menu-list li a {
        font-size: 18px; /* 菜单文字变小 */
    }

    /* 3. 内容区域调整 */
    .hero-content {
        padding-top: 100px; 
        align-items: center; /* 居中对齐 */
        text-align: center;
    }

    /* 价格文字大小调整 */
    .price-wrapper {
        margin-top: 20px;
        justify-content: center;
    }
    
    .sale-price {
        font-size: 36px; /* 价格字体稍微改小，防止换行 */
    }
    .sale-label{
        margin-top: -220px;
    }
}
/*区块2*/
.promo-section, .split-section {
    position: relative;
    z-index: 1; /* 层级比 navbar(9999) 低 */
}
/* =========================================
   横向滚动促销区块 (Promo Section)
   ========================================= */

/* 1. 外层容器：使用 Flexbox 左右布局 */
.promo-section {
    display: flex;
    width: 100%;
    height: 300px; /* 根据需要调整高度 */
    margin-top: 50px; /* 与上方内容的间距 */
}

/* --- 左侧广告栏样式 --- */
.promo-sidebar {
    /* 宽度固定，颜色取自你的参考图(橙色) */
    width: 250px; 
    background-color: #f4b183; 
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* 内容靠左对齐 */
    padding: 30px;
    flex-shrink: 0; /* 防止被右侧挤压 */
    box-shadow: 2px 0 5px rgba(0,0,0,0.1); /* 右侧加一点阴影区分层级 */
    z-index: 2; /* 确保在滚动层之上 */
}

/* 广告语文字 */
.slogan-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
    font-family: "Courier New", Courier, monospace; /* 保持之前的风格 */
}

.slogan-desc {
    font-size: 18px;
    margin-bottom: 30px;
    font-weight: bold;
}


/* --- 右侧滚动区域样式 --- */
.scroll-window {
    flex-grow: 1; /* 占据剩余所有宽度 */
    background-color: #2e75b6; /* 颜色取自参考图(蓝色) */
    overflow: hidden; /* 核心：隐藏溢出的卡片 */
    display: flex;
    align-items: center; /* 垂直居中卡片 */
    position: relative;
}

/* 滚动轨道：承载所有卡片的容器 */
.scroll-track {
    display: flex;
    gap: 20px; /* 卡片之间的间距 */
    padding-left: 20px;
    
    /* 动画设置 */
    /* 
       scroll-left: 动画名称
       20s: 滚动一圈需要的时间 (数值越小滚得越快)
       linear: 匀速运动
       infinite: 无限循环 
    */
    animation: scroll-left 20s linear infinite;
    
    /* 只要总宽度足够宽，flex布局就不会换行 */
    width: max-content; 
}

/* 悬停暂停功能 */
.scroll-track:hover {
    animation-play-state: paused;
}

/* 定义关键帧动画 */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {

        transform: translateX(-50%);
    }
}


/* --- 商品卡片 (Product Card) 样式 --- */
.product-card {
    background-color: #fff;
    width: 200px;  /* 卡片宽度 */
    height: 240px; /* 卡片高度 */
    border-radius: 15px; /* 圆角矩形 */
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0; /* 防止卡片被压缩 */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

/* 可选：鼠标放在单个卡片上时，卡片稍微变大 */
.product-card:hover {
    transform: scale(1.05);
}

/* 卡片里的图片占位符 */
.card-img {
    width: 100%;       /* 宽度填满卡片 */
    height: 140px;     /* 固定高度，确保所有卡片一样高 */
    object-fit: cover; /* 关键：自动裁切图片，防止拉伸变形 */
    border-radius: 10px; /* 圆角 */
    margin-bottom: 10px; /* 图片和下方文字的间距 */
    background-color: #f0f0f0; /* 图片加载失败时的灰色背景 */
    display: block;    /* 防止图片底部产生多余空隙 */
}

.card-info h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
    /* 限制文字行数，防止太长 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 原价：下划线+灰色 */
.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
}

/* 折后价：红色+加粗 */
.discount-price {
    color: #e74c3c;
    font-weight: bold;
    font-size: 18px;
}


.split-section {
    display: flex;
    width: 100%;
    /* 设置一个最小高度，确保内容不够多时也有足够的高度 */
    min-height: 500px; 
    margin-top: 100px;
    /* 响应式断点：如果屏幕太窄（如手机），可以设为 column 让其上下排列 */
    flex-wrap: column; 
}

/* --- 左侧图片区域样式 --- */
.split-image {
    flex: 1; /* 占据 50% 宽度 */
    
    /* 
       背景颜色：提取自你提供的草稿图左侧颜色 
       (深灰蓝: #435265)
    */
    background-color: #435265;
    
    /* 
       *** 如何添加图片？***
       取消下面这行的注释，并将路径改为你的图片路径
    */
   background-image: url('images/coupon.webp');
    
    background-size: cover;      /* 确保图片填满整个区域 */
    background-position: center; /* 图片居中剪裁 */
    min-width: 300px; /* 防止在极小屏幕下过度压缩 */
    min-height: 300px; /* 手机版时的高度 */
}

/* --- 右侧文字区域样式 --- */
.split-content {
    flex: 1; /* 占据 50% 宽度 */
    
    /* 
       背景颜色：提取自你提供的草稿图右侧颜色 
       (杏色/淡橙色: #f4d0b5)
    */
    background-color: #f4d0b5;
    
    /* 使用 Flexbox 让文字内容垂直居中 */
    display: flex;
    flex-direction: column;
    justify-content: center; /* 垂直居中 */
    padding: 60px 80px;      /* 内部留白，左右宽一些看起来更高级 */
}

/* 标题样式 */
.split-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

/* 正文段落样式 */
.split-desc {
    font-size: 16px;
    line-height: 1.6; /* 增加行高，提升阅读体验 */
    margin-bottom: 15px;
    color: #4a4a4a;
}
.reviews-summary {
    text-align: center;
    margin-top: 30px;
    max-width: 1000px;   /*稍微加宽一点，因为有了内边距*/
    margin-left: auto;
    margin-right: auto;
    
    /* === 核心修改 === */
    background-color: #4CF584; /* 亮绿色 (霓虹莱姆绿) */
    padding: 30px 40px;        /* 增加内边距：上下50px，左右40px */
    border-radius: 30px;       /* 大圆角，更有现代感 */
    box-shadow: 0 10px 30px rgba(80, 211, 102, 1.00); /* 增加同色系的绿色光晕投影 */
    margin-bottom: 50px;
}

.summary-title {
    font-size: 32px;
    font-weight: 800;
    color: #000;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.summary-desc {
    font-size: 18px;
    line-height: 1.6;
    color: #000;        /* 在亮绿背景上，纯黑文字对比度最好 */
    font-weight: 500;   /* 稍微加粗一点点，更清晰 */
}


/* --- 手机端适配 (可选) --- */
/* 当屏幕宽度小于 768px 时，强制上下排列 */
@media (max-width: 768px) {
    .promo-section {
        flex-direction: column; /* 关键：从“左右”变成“上下” */
        height: auto; /* 高度改为自动，被内容撑开 */
        margin-top: 30px;
    }
    .promo-sidebar {
        width: 100%; /* 宽度填满屏幕 */
        height: auto; /* 高度根据文字自动调整 */
        padding: 30px 20px; /* 调整内边距 */
        
        /* 内容改为居中对齐，视觉更平衡 */
        align-items: center; 
        text-align: center;
        
        /* 调整阴影方向，从“右侧”改为“下方” */
        box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
    }
    .slogan-title {
        font-size: 30px; 
    }
    .slogan-desc {
        font-size: 20px;
        margin-bottom: 5px; /* 减小间距 */
    }
    .scroll-window {
        width: 100%; /* 宽度填满 */
        height: 280px; 
        padding-top: 10px; 
        padding-bottom: 10px;
    }
    .product-card {
        width: 160px; /* 稍微缩小卡片宽度 */
        height: 220px; /* 稍微缩小高度 */
        padding: 10px;
    }
    .card-img {
        height: 100px; /* 图片也相应缩小 */
    }
    .card-info h4 {
        font-size: 14px;
    }
    
    .discount-price {
        font-size: 16px;
    }
    .split-section {
        flex-direction: column;
    }
    
    .split-content {
        padding: 40px 20px;
    }
    .reviews-summary {
        margin-top: 5px;
        /* 手机上两边不留缝隙，或者改为留小缝隙 */
        width: 95%; 
        padding: 10px 20px; /* 手机上内边距减小 */
        border-radius: 20px;
    }
    
    .summary-title {
        font-size: 24px;
    }
    
    .summary-desc {
        font-size: 15px;
    }
}

.title {
    font-size: 32px;
    margin-bottom: 40px;
    color: #333;
    text-align: center;
    margin-top: 100px;
    font-weight: 1000;
}
/* =========================================
   产品网格列表 (Product List Grid)
   ========================================= */

.product-list-section {
    padding: 100px 20px; /* 上下留白 */
    background-color: #f9f9f9; /* 浅灰背景，区分区块 */
    text-align: center;
}

.section-title {
    font-size: 32px;
    margin-bottom: 40px;
    color: #333;
    text-align: center;
}

/* --- 网格核心布局 --- */
.product-grid {
    display: grid;
    /* 
       桌面端：4列
       repeat(4, 1fr) 表示重复4次，每列占据 1份可用空间 
    */
    grid-template-columns: repeat(4, 1fr); 
    
    /* 卡片之间的间距 */
    gap: 20px; 
    
    /* 限制最大宽度并居中 */
    max-width: 1200px;
    margin: 0 auto;
}

/* --- 单个产品卡片样式 --- */
.product-item {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    text-align: center; /* 内容居中 */
    transition: transform 0.3s, box-shadow 0.3s;
    
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* 保证按钮在底部 */
}

/* 鼠标悬浮卡片效果 */
.product-item:hover {
    transform: translateY(-5px); /* 上浮 */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); /* 投影 */
}

/* 图片占位符 */
.p-image-box {
    width: 100%;
    height: 250px;      /* PC端高度固定，保证对齐 */
    object-fit: cover;  /* 关键：自动裁剪图片，填满方框，不拉伸变形 */
    background-color: #f0f0f0; /* 图片未加载时的背景色 */
    margin-bottom: 15px;
    border-radius: 4px; /* 轻微圆角 */
    display: block;     /* 消除图片底部默认间隙 */
}

/* 产品名字 */
.p-name {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    font-weight: normal;
}

/* 产品价格 */
.p-price {
    font-size: 18px;
    font-weight: bold;
    color: #000;
    margin-bottom: 15px;
}

/* 购买按钮（卡片内部小按钮） */
.p-buy-btn {
    width: 100%;
    padding: 10px;
    background-color: transparent;
    border: 1px solid #000;
    color: #000;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.3s;
    text-decoration: none;  /* 去掉链接默认的下划线 */
    display: inline-block;  /* 确保 padding 和宽高生效 */
    text-align: center;     /* 确保文字居中 */
}

.p-buy-btn:hover {
    background-color: #000;
    color: #fff;
}

/* --- 底部的大按钮容器 --- */
.load-more-container {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}
/* =========================================
   页脚样式 (Footer)
   ========================================= */

.site-footer {
    background-color: #000000; /* 纯黑背景 */
    color: #ffffff;            /* 白色文字 */
    padding: 60px 0 40px;      /* 上下留白 */
    font-family: Arial, sans-serif;
           /* 与上方内容的间距 */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap; /* 允许换行，方便适配 */
    justify-content: space-between;
    padding: 0 20px;
}

/* --- 通用列样式 --- */
.footer-col {
    margin-bottom: 30px;
}

/* 1. 品牌列样式 */
.brand-col {
    display: flex;          /* 启用 Flex 布局 */
    align-items: flex-start;/*以此保证 Logo 和第一行文字顶部对齐 */
    gap: 20px;              /* Logo 和文字之间的间距 */
    flex: 2;        
}

.footer-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%; /* 圆形图片 */
    object-fit: cover;
    margin-bottom: 15px;
    display: none;
}

.brand-text-side {
    display: flex;
    flex-direction: column; /* 文字内部依然是上下排 */
    text-align: left;       /* 确保文字左对齐 */
    margin-left: 80px;
}

.footer-title {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
    line-height: 1.2; 
}

.footer-subtitle {
    font-size: 16px;
    color: #fff;
    margin-bottom: 20px; /* 这里的间距对应原稿中 "Sneaker..." 和 "Copyright" 之间的距离 */
    font-weight: normal;
}

.copyright-box p {
    font-size: 14px;
    color: #E4E4E4;
    line-height: 1.6;
    margin: 0;
}

.typewriter-text {
    font-family: "Courier New", Courier, monospace;
    color: #fff !important;
    letter-spacing: 1px;
    margin-top: 5px; 
}

/* 2 & 3. 链接列样式 (服务/联系) */
.links-col {
    flex: 1;
    min-width: 150px;
}

.footer-heading {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: bold;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #f55a31; 
}
.menu-list a:hover{
    color:#000;
}

/* 4. 右侧信息列样式 */
.info-col {
    flex: 1.8; /* 占据最宽 */
    min-width: 280px;
    padding-left: 30px;
    border-left: 1px solid #444; /* 左侧分割线 */
}

/* 上半部分：文字 + 商店图标 */
.info-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.info-text-group {
    text-align: center; /* 文字居中 */
    flex: 1;
}

.highlight-text {
    font-size: 14px;
    margin-bottom: 10px;
}

.work-hours {
    font-size: 12px;
    color: #bbb;
    margin-bottom: 5px;
}

.time-range {
    font-size: 14px;
    font-weight: bold;
}

/* 商店图标样式 */
.shop-icon img {
    width: 75px;
    height: auto;
    margin-left: 15px;
}

/* 社交图标行 */
.social-row {
    display: flex;
    gap: 15px;
    /* justify-content: center; /* 图标居中 */
    margin-left: 45px;
    margin-top: 20px;
}

.social-icon img {
    width: 32px;
    height: 32px;
    border-radius: 25px; /* 稍微圆角 */
    /* 以下是模拟你图片里的颜色，如果你有真实图片，这些背景色可以去掉 */
    background-color: #fff; 
    display: block;
}

@media (max-width: 768px) {
    .product-grid {
        /* 
           移动端：强制变为 2列
           因为你有16个产品，变成2列后，自然会自动排列成 8行 (2 * 8 = 16)
        */
        grid-template-columns: repeat(2, 1fr); 
        gap: 10px; /* 手机屏幕小，间距调小一点 */
    }
    
    .p-image-box {
        height: 150px; /* 手机上图片高度减小 */
    }
    
    .product-list-section {
        padding: 40px 10px;
    }
}

/* =========================================
   Why Choose Us (Reviews) Section
   ========================================= */

.reviews-section {
    padding: 100px 0 50px;
    background-color: #fff;
    /* 限制内容最大宽度，避免在大屏上过宽 */
    max-width: 1200px; 
    margin: 0 auto;
    position: relative;
}

/* 轮播外部容器（用于定位箭头） */
.carousel-wrapper {
    position: relative;
    padding: 0 50px; /* 两侧给箭头留出空间 */
}

/* --- 滚动轨道 (Track) --- */
.reviews-track {
    display: flex;
    gap: 20px; /* 卡片之间的间距 */
    overflow-x: auto; /* 允许横向滚动 */
    
    /* 隐藏滚动条 (Firefox) */
    scrollbar-width: none; 
    /* 隐藏滚动条 (IE/Edge) */
    -ms-overflow-style: none;
    
    /* 关键：CSS 滚动捕捉，让滑动停止时自动对齐到卡片开头 */
    scroll-snap-type: x mandatory; 
    
    padding-bottom: 20px; /* 防止阴影被切断 */
}

/* 隐藏滚动条 (Chrome/Safari) */
.reviews-track::-webkit-scrollbar {
    display: none;
}

/* --- 单个评价卡片 --- */
.review-card {
    /* 
       PC端默认逻辑：
       显示3个：宽度 = (总宽 - 2个间距) / 3 
       flex-shrink: 0 保证不被压缩
    */
    flex: 0 0 calc((100% - 40px) / 3);
    
    /* 关键：滚动捕捉对齐点，保证每次滑动都刚好停在卡片开头 */
    scroll-snap-align: start; 
    
    background-color: #f8f8f8;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s;
    border: 1px solid #eee;
}

.review-card:hover {
    border-color: #ddd;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* 头部：星星和日期 */
.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    align-items: center;
}

.stars {
    color: #f1c40f; /* 金色星星 */
    font-size: 18px;
    letter-spacing: 2px;
}

.review-date {
    color: #999;
    font-size: 12px;
}

/* 评价内容 */
.review-text {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 20px;
    font-style: italic; /* 斜体增加引用感 */
    /* 限制文字显示行数，防止卡片高度不一 */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 用户晒图列表 */
.review-imgs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.r-img {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    /* 关键属性：让图片像背景图一样填充，不拉伸变形 */
    object-fit: cover; 
    border: 1px solid #eee; /*以此增加一点边框质感*/
    cursor: pointer; /* 鼠标放上去显示小手 */
}

/* 底部：客户信息 */
.customer-info {
    display: flex;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%; /* 圆形 */
    margin-right: 12px;
    /* 关键属性：确保长方形头像也能变成完美的圆形 */
    object-fit: cover; 
}

.customer-name {
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

/* --- 切换箭头样式 --- */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #fff;
    border: 1px solid #ddd;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18
}
.prev-btn { left: 0; }
.next-btn { right: 0; }
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column; /* 上下排列 */
        text-align: center; /* 手机上文字居中 */
    }

    .info-col {
        border-left: none; /* 手机上去掉分割线 */
        padding-left: 0;
        border-top: 1px solid #333; /* 改为上方分割线 */
        padding-top: 30px;
        margin-top: 20px;
    }
    
    .footer-logo {
        width: 80px;      /* 根据设计图调整大小 */
        height: 80px;
        border-radius: 50%;
        object-fit: cover;
        margin-bottom: 0;
        display: flex;
    }
    .brand-col {
        flex-direction: column; /* 手机上变回上下垂直排列 */
        align-items: center;    /* 居中对齐 */
        text-align: center;
    }

    .brand-text-side {
        align-items: center; /* 让文字块内部也居中 */
        text-align: center;
        margin-left: 0;
    }
    
    .info-content {
        justify-content: center; /* 居中 */
    }
    .shop-icon {
        margin-right: 25px;
    }
    .social-row {
        justify-content: center;
    }
    
}
@media (max-width: 768px) {
    
    /* 
       1. 调整容器内边距 
       手机屏幕窄，左右留白减小，给内容更多空间
    */
    .carousel-wrapper {
        padding: 0 10px; 
    }

    /* 
       2. 修改卡片宽度
       强制卡片宽度为 100%，从而实现“只显示一个评论” 
    */
    .review-card {
        flex: 0 0 100%;
    }

    /* 
       3. 调整按钮位置
       手机上按钮放在外侧会挤压内容，
       这里可以选择稍微调小按钮，或者让按钮浮在内容上层
    */
    .nav-btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
        background-color: rgba(255, 255, 255, 0.9); /* 半透明背景 */
        z-index: 10;
    }
}
.r-img {
    cursor: zoom-in; /* 鼠标放上去变成放大镜图标 */
    transition: transform 0.2s; /* 点击时的按压效果 */
}
.r-img:active {
    transform: scale(0.95);
}

/* 2. 灯箱遮罩层 (默认隐藏) */
.lightbox-modal {
    display: none; /* 默认不显示 */
    position: fixed; /* 固定在屏幕上，不随滚动条滚动 */
    z-index: 1000;   /* 保证层级最高，遮住所有内容 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* 90%透明度的黑色背景 */
    
    /* 使用 Flexbox 让大图在屏幕正中间 */
    justify-content: center;
    align-items: center;
    
    /* 淡入动画 */
    animation: fadeIn 0.3s ease;
}

/* 3. 灯箱中的大图 */
.lightbox-content {
    max-width: 90%;  /* 宽度最大占屏幕 90% */
    max-height: 90%; /* 高度最大占屏幕 90% */
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    object-fit: contain; /* 保持图片比例 */
    
    /* 弹出动画 */
    animation: zoomIn 0.3s ease;
}

/* 4. 关闭按钮 */
.close-lightbox {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 1001;
}

.close-lightbox:hover {
    color: #bbb;
}

/* --- 动画关键帧 --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}
/*how-to-buy*/
.steps-section {
    padding: 70px 20px;
    background-color: #fff; /* 白色背景 */
    text-align: center;
}

/* 蓝色的大标题 */
.steps-title {
    color: #000; 
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 50px;
}

/* 网格布局容器：4列 */
.steps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4列等宽 */
    gap: 30px; /* 卡片之间的间距 */
    max-width: 1200px;
    margin: 0 auto;
}

/* 单个步骤项 */
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 步骤编号 (STEP 01) */
.step-number {
    color: #00b0f0; /* 浅一点的青蓝色，对应图片中 STEP 01 的颜色 */
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px; /* 编号和卡片的距离 */
    text-transform: uppercase;
    font-family: Arial, sans-serif;
}

/* 杏色背景卡片 */
.step-card {
    background-color: #f7d8c2; /* 提取自图片的杏色背景 */
    width: 100%;
    padding: 30px 20px; /* 卡片内部留白 */
    /* 如果不想让卡片有圆角，可以去掉下面这行 */
    border-radius: 4px; 
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 380px; /* 保证卡片高度一致 */
}

/* 步骤图片 */
.step-img {
    width: 120px;  /* 控制图片大小 */
    height: 120px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 4px; /* 图片本身微圆角 */
    /* 如果图片没有背景色，可以加上下面这行白色背景 */
    /* background-color: #fff; */ 
}

/* 底部说明文字 */
.step-title {
    font-size: 20px;
    color: #000;
    font-weight: 500;
}
.step-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    margin-top: 25px;
}

/* --- 移动端适配 --- */
@media (max-width: 768px) {
    .steps-container {
        /* 手机端变为 2列 (2x2排列) */
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px;
    }

    .steps-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .step-card {
        padding: 20px 10px;
        min-height: 350px;
    }

    .step-img {
        width: 80px;
        height: 80px;
    }
}
/*section 2*/
.warehouse-section {
    padding: 60px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

/* 轮播整体容器 */
.slider-container {
    max-width: 1000px; /* 控制整体宽度 */
    margin: 40px auto 60px;
    display: flex;
    align-items: center; /* 垂直居中箭头 */
    justify-content: center;
    gap: 20px; /* 箭头和卡片的间距 */
    position: relative;
}

/* --- 切换箭头样式 --- */
.slider-arrow {
    background: none;
    border: none;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    color: #000;
    user-select: none; /* 防止双击选中 */
    padding: 10px;
    transition: color 0.3s;
}

.slider-arrow:hover {
    color: #00aeef; /* 悬停变色 */
}

/* 幻灯片包装区 */
.slider-wrapper {
    flex: 1; /* 占据中间所有空间 */
    overflow: hidden; /* 隐藏溢出的内容 */
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); /* 给卡片加一点阴影 */
    min-height: 400px;
}

/* --- 单个幻灯片样式 --- */
.slide-item {
    display: none !important; /* 默认隐藏 */
    width: 100%;
    /* Flex布局：左图右文 */
    
    height: 400px; /* 固定高度，你可以根据需要调整 */
    animation: fadeEffect 0.5s; /* 切换时的淡入效果 */
}

/* 激活状态：显示该幻灯片 */
.slide-item.active {
    display: flex !important; 
    height: 400px;
}

/* 左侧图片区域 */
.slide-left-img {
    flex: 1; /* 占 50% */
    width: 50%;
    background-color: #ddd;
}

.slide-left-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 图片铺满不变形 */
    display: block;
}

/* 右侧内容区域 */
.slide-right-content {
    flex: 1; /* 占 50% */
    width: 50%;
    background-color: #00aeef; /* 草稿图中的天蓝色背景 */
    padding: 40px;
    
    /* 内容垂直居中 + 左对齐布局 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* 内容居中 */
    text-align: left;
}

.slide-title {
    color: #fff;
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: bold;
    display: block; /* 确保标题独占一行 */
    width: 100%;
}

.slide-desc {
    color: #fff;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* 白色按钮 */
.slide-btn {
    background-color: #fff;
    color: #000;
    border: none;
    padding: 10px 40px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
}

.slide-btn:hover {
    transform: scale(1.05);
}

/* 切换动画 */
@keyframes fadeEffect {
    from {opacity: 0.6;} 
    to {opacity: 1;}
}

/* --- 移动端适配 --- */
@media (max-width: 768px) {
    .slide-item.active {
        flex-direction: column; /* 上下排列 */
        height: auto; 
    }
    
    .slide-left-img {
        height: 200px;
        width: 100%;
    }
    
    .slide-right-content {
        padding: 30px 20px;
        width: 100%;
    }

    .slider-arrow {
        position: absolute;
        top: 150px; /* 调整箭头在手机上的位置 */
        background: rgba(255,255,255,0.7);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .prev-slide { left: 10px; }
    .next-slide { right: 10px; }
}

/*section 3*/
/* =========================================
   购买方法区块 (Purchase Method)
   ========================================= */

.purchase-section {
    padding: 60px 0;
    background-color: #fff;
    text-align: center;
}

.purchase-container {
    max-width: 1000px; /* 控制整体宽度，与之前保持一致 */
    margin: 40px auto 0;
    /* 去掉默认的内边距，让内容贴边 */
    padding: 0 20px; 
}

/* --- 行容器样式 --- */
.method-row {
    display: flex;
    width: 100%;
    /* 两个方法之间留一点距离 */
    margin-bottom: 30px; 
    /* 确保容器内没有空隙 */
    align-items: stretch; 
    min-height: 350px; /* 设置一个最小高度 */
}

/* --- 核心技巧：反转类 --- */
/* 当添加了 .reverse 类时，让内容横向反转 (实现文左图右) */
.method-row.reverse {
    flex-direction: row-reverse;
}

/* --- 图片盒子 --- */
.method-img-box {
    width: 50%; /* 占据一半宽度 */
    position: relative;
}

.method-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 铺满且不变形 */
    display: block;    /* 消除底部缝隙 */
}

/* --- 文字盒子 (蓝色背景) --- */
.method-text-box {
    width: 50%; /* 占据一半宽度 */
    background-color: #00aeef; /* 你的主题蓝色 */
    padding: 40px;
    
    /* 垂直居中 + 左对齐 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.method-title {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.method-desc {
    color: #fff;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: justify; /* 两端对齐，让文字块更方正整齐 */
}

/* 白色长按钮 */
.method-btn {
    background-color: #fff;
    color: #000;
    border: none;
    padding: 12px 0; /* 上下内边距 */
    width: 100%;     /* 宽度 100% 填满容器，或者你可以设固定宽度 */
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    text-align: center;
}

.method-btn:hover {
    background-color: #f0f0f0; /* 悬浮稍微变灰 */
}


/* --- 移动端适配 --- */
@media (max-width: 768px) {
    .method-row {
        flex-direction: column; /* 强制变为上下排列 */
        margin-bottom: 40px; /* 增加手机上两个板块的间距 */
    }

    /* 
       关键点：手机上覆盖掉 .reverse 的效果 
       确保无论方法一还是方法二，都是图片在上，文字在下
    */
    .method-row.reverse {
        flex-direction: column; 
    }

    .method-img-box, 
    .method-text-box {
        width: 100%; /* 宽度变为全屏 */
    }

    .method-img-box {
        height: 250px; /* 手机上限制图片高度 */
    }

    .method-text-box {
        padding: 30px 20px; /* 调整手机上的内边距 */
    }
}