﻿/* CSS Reset / Basic Styling */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f8f8f8;
    /* 页面背景色 */
}

div {
    box-sizing: border-box;
    /* 确保 padding 和 border 不增加元素尺寸 */
}

/* Image/Icon Placeholder Styling */
.placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* 防止内容或背景溢出 */
    position: relative;
    /* 用于内部绝对定位 */
}

/* Header Bar */
.header {
    display: flex;
    align-items: center;
    padding: 15px;
    /* 估算内边距 */
    background-color: #fff;
    /* 背景色 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* 阴影 */
}

.menu-icon {
    width: 28px;
    /* 估算尺寸 */
    height: 32px;
    margin-right: 15px;
    /* 估算间距 */
}

.search-bar {
    flex-grow: 1;
    /* 占据剩余空间 */
    display: flex;
    align-items: center;
    background-color: #f0f0f0;
    /* 搜索框背景色 */
    border-radius: 20px;
    /* 圆角 */
    padding: 8px 15px;
    /* 估算内边距 */
}

.search-icon {
    width: 18px;
    /* 估算尺寸 */
    height: 18px;
    margin-right: 8px;
    /* 估算间距 */
}

.search-input {
    flex-grow: 1;
    /* 占据剩余空间 */
    border: none;
    outline: none;
    background: none;
    font-size: 14px;
    /* 估算字体大小 */
    color: #333;
}

    .search-input::placeholder {
        color: #999;
        /* 占位符颜色 */
    }

/* Main Banner Image */
.main-banner {
    width: 100%;
    padding: 8px;
    /* 估算内边距 */
    background-color: #fff;
    /* 背景色 */
}

.banner-image {
    width: 100%;
    height: 200px;
    /* 估算高度 */
    border-radius: 8px;
    /* 估算圆角 */
}

/* Info Section (公告/购买须知) */
.info-section {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    /* 估算内边距 */
    background-color: #F7F7F7;
    /* 背景色 */
    margin-bottom: 8px;
    /* 与下方区域间距 */
}

.info-icon {
    width: 40px;
    /* 估算尺寸 */
    height: 40px;
    margin-right: 8px;
    /* 估算间距 */
}

.info-text {
    font-size: 15px;
    /* 估算字体大小 */
    font-weight: 500;
    color: #536F59;
}

/* Section Title (商品推荐) */
.section-title {
    display: flex;
    align-items: center;
    padding: 15px;
    /* 估算内边距 */
    background-color: #f8f8f8;
    /* 背景色 */
    font-size: 16px;
    /* 估算字体大小 */
    font-weight: bold;
    color: #333;
}

    .section-title::before {
        /* 左侧黄色竖条 */
        content: '';
        display: block;
        width: 4px;
        /* 估算宽度 */
        height: 16px;
        /* 估算高度 */
        background-color: #DEC17F;
        /* 示例颜色 */
        margin-right: 8px;
        /* 估算间距 */
        border-radius: 2px;
        /* 估算圆角 */
    }

/* Product List */
.product-list {
    display: flex;
    flex-wrap: wrap;
    /* 允许换行 */
    padding: 0 10px;
    /* 估算左右内边距 */
    justify-content: space-between;
    /* 项目之间留白 */
    background-color: #fff;
    /* 背景色 */
    padding-bottom: 80px;
    /* 为底部导航栏留出空间 */
}

.product-item {
    width: calc(50% - 10px);
    /* 估算宽度，减去一半的间距 */
    margin-bottom: 20px;
    /* 估算下方间距 */
    background-color: #fff;
    /* 背景色 */
    border-radius: 8px;
    /* 估算圆角 */
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 180px;
    /* 估算高度 */
}

.product-details {
    padding: 10px;
    /* 估算内边距 */
}

.product-name {
    font-size: 16px;
    /* 估算字体大小 */
    color: #333;
    margin-bottom: 5px;
    /* 估算间距 */
    font-weight: 600;
}

.product-price {
    font-size: 16px;
    /* 估算字体大小 */
    font-weight: bold;
    color: #9A6F45;
    /* 红色价格 */
}

/* Fixed Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    /* 估算高度 */
    background-color: #F7F7F7;
    border-top: 1px solid #eee;
    /* 估算分隔线 */
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
    /* 估算阴影 */
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    /* 估算字体大小 */
    color: #999;
    /* 默认颜色 */
}

.nav-icon {
    width: 28px;
    /* 估算尺寸 */
    height: 28px;
    margin-bottom: 5px;
    /* 估算间距 */
    /* 移除 placeholder 默认的黑色边框 */
    border: none;
}

.nav-item.active {
    color: #ff9800;
    /* 激活颜色 (示例颜色，图上是橙色) */
}

.imgs {
    width: 100%;
    height: 100%;
}

a {
    text-decoration: none;
    /* 去除下划线 */
    color: inherit;
    /* 使用继承的颜色，而不是默认的蓝色 */
    outline: none;
    /* 去除点击时的外部轮廓线 */
}