
/* 全局样式重置与基础配置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", Arial, sans-serif;
}

/* 茶叶专属背景：浅米白，贴合茶叶自然质感，不刺眼 */
body {
    background-color: #f5f3ef;
    color: #333;
    line-height: 1.6;
}

/* 保留原文件clearfix清除浮动功能 */
.clearfix::after {
    content: "";
    display: block;
    clear: both;
    visibility: hidden;
    height: 0;
}

.clearfix {
    zoom: 1; /* 兼容IE6/7 */
}

/* 店铺招牌样式优化 */
#shopsign {
    display: block;
    height: auto;
    margin: 0 auto 15px auto;
    border-bottom: 2px solid #d4c9b8; /* 加深茶褐色边框，更有质感 */
    box-shadow: 0 2px 6px rgba(212, 201, 184, 0.4); /* 新增轻微阴影，突出招牌 */
    padding-bottom: 10px;
    object-fit: cover;
    border-radius: 0 0 8px 8px; /* 底部轻微圆角，更柔和 */
}

/* 轮播图容器样式：浅阴影更柔和，贴合雅致风格 */
#slides {
    width: 94%;
    margin: 0 auto 20px auto;
    border-radius: 12px;
    /* 多层阴影：增强立体感，比单层阴影更酷炫 */
    box-shadow: 0 4px 15px rgba(121, 149, 111, 0.2), 0 2px 6px rgba(121, 149, 111, 0.1);
    transform: translateY(-2px); /* 轻微上移，营造悬浮感 */
    transition: all 0.3s ease-in-out; /* 顺滑过渡，配合悬浮效果 */
}

    #slides img {
        display: block;
        width: 100%;
        height: auto;
        object-fit: cover;
    }

/* 导航区域核心美化：茶叶配色 + 严格等列方阵 + 图标放大 + 整体居中 */
.icon-btns {
    text-align: center;
    padding-bottom: 20px;
    width: 94%; /* 收窄宽度，配合margin:0 auto实现整体居中 */
    margin: 0 auto 25px auto; /* 左右auto实现容器整体居中 */
    border-radius: 12px;
    background: linear-gradient(to bottom, #ffffff, #faf9f7);
    border-radius: 12px;
    /* 升级：多层阴影，更立体 */
    box-shadow: 0 4px 15px rgba(121, 149, 111, 0.15), 0 2px 6px rgba(121, 149, 111, 0.1);
}

    /* 核心：统一导航项宽度，实现每行个数完全一致（默认4列，可按需调整） */
    .icon-btns a {
        display: inline-block;
        width: calc((100% - 3 * 15px) / 4);
        height: 110px; /* 固定高度，确保所有导航项上下对齐 */
        text-align: center;
        text-decoration: none;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: transform 0.3s ease;
        flex-shrink: 0; /* 禁止收缩/拉伸，确保宽度固定 */
        flex-grow: 0;
    }

        /* 导航项悬浮效果：轻微上浮，配合浅绿背景，交互更柔和 */
        .icon-btns a:hover {
            transform: translateY(-3px);
        }

        /* 图标容器：茶叶浅绿背景，贴合品类属性，正方形更统一 */
        .icon-btns a .icon {
            width: 75px;
            height: 75px; /* 严格正方形 */
            margin-bottom: 8px;
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: 8px;
            background-color: #eaf1ea; /* 浅茶绿背景，清新自然 */
            flex-shrink: 0; /* 禁止收缩，保持正方形不变 */
        }

            /* 图标本身：放大正方形，不变形，视觉统一 */
            .icon-btns a .icon img {
                width: 65px;
                height: 65px; /* 严格正方形 */
                object-fit: contain;
                display: block;
            }

        /* 文字样式：深绿文字，与茶叶配色呼应，宽度与图标一致 + 完整显示 */
        .icon-btns a .name {
            font-size: 13px;
            color: #1f491f; /* 茶叶深绿文字，醒目且雅致 */
            line-height: 1.4;
            display: block;
            width: 75px; /* 与图标容器宽度一致 */
            font-weight: 500;
            text-align: center; /* 强制文字居中 */
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

/* 内容卡片样式：纯白背景 + 浅绿阴影，贴合茶叶风格 */
.pbox {
    width: 94%;
    margin: 0 auto 25px auto;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(121, 149, 111, 0.1); /* 浅绿阴影，柔和统一 */
    transition: box-shadow 0.3s ease;
}

    /* 卡片悬浮效果：阴影加深，更有层次感 */
    .pbox:hover {
        box-shadow: 0 4px 15px rgba(121, 149, 111, 0.15);
    }

/* 专题区域图片样式 */
.new-style.act img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* 热卖好茶标题样式：茶叶墨绿主色，视觉突出，贴合品类 */
.hot-sell {
    font-size: 18px;
    font-weight: 600;
    color: #1f491f; /* 茶叶墨绿，高端雅致 */
    margin-bottom: 15px;
    position: relative;
    padding: 0 10px;
    text-align: center; /* 标题居中，更美观 */
}

    /* 标题前后分隔线：浅茶褐色，与整体配色呼应 */
    .hot-sell::before, .hot-sell::after {
        content: "";
        display: inline-block;
        width: 25%;
        height: 1px;
        background-color: #e6e0d6; /* 浅茶褐分隔线，柔和不刺眼 */
        vertical-align: middle;
        margin: 0 10px;
    }

/* 热卖商品列表样式 */
.hot-commodity {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

    /* 商品项悬浮效果：轻微上浮，提升交互体验 */
    .hot-commodity li:hover {
        transform: translateY(-15px);
    }

    .hot-commodity li img {
        width: 100%;
        height: 160px;
        object-fit: cover;
        border-radius: 8px 8px 0 0;
        margin-bottom: 8px;
    }

    /* 商品名称：深灰文字，清晰可读 */
    .hot-commodity li .product-name {
        font-size: 14px;
        color: #333;
        margin-bottom: 5px;
        padding: 0 5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* 商品价格：茶红配色，醒目不浮夸，贴合茶叶商城风格 */
    .hot-commodity li .product-price {
        font-size: 16px;
        color: #a84242; /* 茶红色价格，比纯红更雅致 */
        font-weight: 600;
    }

/* 底部文字样式：浅灰文字，柔和不抢眼 */
p.text-center, p[align="center"] {
    color: #666;
    margin-bottom: 10px !important;
}

/* 底部链接样式：茶叶墨绿，与整体配色统一，hover效果更柔和 */
a {
    color: #1f491f; /* 茶叶墨绿链接，贴合风格 */
    text-decoration: none;
    transition: color 0.3s ease;
}

    a:hover {
        color: #2f5e2f; /* 浅一点的墨绿，hover效果自然 */
        text-decoration: underline;
    }
