/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: '微软雅黑', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* 导航栏样式 */
.navbar {
    background: #ffffff;
    padding: 1rem 5%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}
.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}
.nav-links a {
    text-decoration: none;
    color: #34495e;
    font-weight: 500;
    transition: color 0.3s;
}
.nav-links a:hover {
    color: #3498db;
}

/* 主内容区域 */
main {
    margin-top: 80px;
    padding: 2rem 5%;
}

/* 首页 banner */
.banner {
    background: linear-gradient(rgba(52, 152, 219, 0.9), rgba(52, 152, 219, 0.9)), url('../images/banner-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 4rem 2rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 3rem;
}
.banner h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.banner p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* 通用卡片样式 */
.card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

/* 页脚 */
/* 原页脚样式（假设选择器为footer） */
footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 5%;
    text-align: center;
    margin-top: 3rem;
}
.footer p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

/* 产品展示样式 */
.product-showcase {
    margin: 3rem 0;
}
.section-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.product-card {
    transition: transform 0.3s;
}
.product-card:hover {
    transform: translateY(-5px);
}
.product-img {
    width: 100%;
    height: 200px; /* 固定高度 */
    object-fit: cover; /* 裁剪图片保持比例 */
    object-position: center; /* 居中显示 */
    border-radius: 8px; /* 圆角 */
} 
.product-name {
    font-size: 1.2rem;
    color: #34495e;
    margin-bottom: 0.5rem;
}
.product-desc {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 1rem;
    min-height: 48px;
}
.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.product-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #e74c3c;
}
.product-tag {
    background: #3498db;
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
}
/* 可选：调整美元符号样式（若需强调） */
.product-price::before {
    content: "$"; /* 确保已直接在HTML中添加$符号时无需此代码 */
    font-size: 0.9em;
    margin-right: 2px;
}
/* 修改后 */
/* 页脚 */
footer .beian {
    color: #ffffff; /* 白色文本 */
}
footer {
    width: 100%;
    padding: 20px 0;
    background-color: #ffffff; /* 修改为白色，#ffffff或white均可 */
    text-align: center;
    color: #333; /* 可选：根据白色背景调整文字颜色 */
}