/*
 * 企业商品展示平台样式表
 * 这个文件目前是空的，但将来可以用来替代内联样式
 * 将样式从HTML文件移动到这个CSS文件中是一个良好的实践
 */

/* 全局样式 */
body {
    font-family: 'Microsoft YaHei', sans-serif;
    color: #333;
    background-color: #f8f9fa;
    position: relative;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.navbar-brand img {
    height: 40px;
}

/* 搜索框样式 */
.search-container {
    background-color: #f0f2f5;
    padding: 40px 0;
    margin-bottom: 30px;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
}

/* 商品卡片样式 */
.product-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 25px;
    background-color: #fff;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-img {
    height: 200px;
    object-fit: cover;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-price {
    color: #e74c3c;
    font-weight: 600;
    font-size: 16px;
}

.product-description {
    color: #777;
    font-size: 14px;
    margin-bottom: 15px;
}

/* 特色区域样式 */
.feature-section {
    padding: 60px 0;
    background-color: #fff;
    margin: 40px 0;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

/* 页脚样式 */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 40px 0 20px;
}

.footer-heading {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

.footer-link {
    color: #bdc3c7;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #fff;
}

.social-icon {
    width: 36px;
    height: 36px;
    margin-right: 10px;
}

.copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 咨询功能样式 */
.consultation-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #2980b9;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s;
}

.consultation-btn:hover {
    background-color: #3498db;
    transform: scale(1.05);
}

.consultation-panel {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 300px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 20px;
    z-index: 999;
    display: none;
    transition: all 0.3s;
}

.consultation-panel.active {
    display: block;
    animation: fadeIn 0.3s;
}

.consultation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.consultation-close {
    cursor: pointer;
    font-size: 20px;
    color: #7f8c8d;
}

.consultation-form .form-control {
    margin-bottom: 15px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
