/* 全局样式 */
:root {
    --primary-color: #1a5fb4;
    --primary-light: #3584e4;
    --primary-dark: #0d3a7b;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --text-light: #666;
    --success-color: #28a745;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 确保列表项中的图标和文字在同一行 */
li {
    display: flex;
    align-items: flex-start;
}

li i {
    flex-shrink: 0;
    margin-right: 0.5rem;
}

/* 针对产品详情中的列表项优化 */
.list-group-item {
    display: flex;
    align-items: flex-start;
    flex-wrap: nowrap;
    word-break: break-word;
}

.list-group-item i {
    flex-shrink: 0;
    margin-right: 0.5rem;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--primary-dark);
}

/* 按钮样式 */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 24px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 95, 180, 0.3);
}

/* 链接样式 */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* 容器间距 */
.section {
    padding: 80px 0;
}

.section-title {
    position: relative;
    margin-bottom: 40px;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* 产品分类标签样式 */
.product-filter-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    padding: 10px 24px;
    transition: all 0.3s ease;
}

.product-filter-btn:hover {
    background-color: transparent;
}

/* 自定义动画 */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 媒体查询 */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
}

/* 通知条样式 */
.notice-bar {
    background-color: red !important;
    color: white !important;
    padding: 20px !important;
    font-size: 24px !important;
    text-align: center !important;
    font-weight: bold !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
}

/* 图片比例容器 */
.image-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.image-container-ratio {
    padding-bottom: 66.67%; /* 400/600 = 66.67% */
    position: relative;
    overflow: hidden;
}

.image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-container img.logo-image {
    object-fit: contain;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .image-container {
        max-width: 100%;
    }
}

/* 新闻板块样式 */
#news {
    background-color: #fafafa;
}

/* 新闻卡片样式优化 */
.news-card {
    background-color: white;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* 新闻标题样式 */
.news-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.news-card h3 a {
    color: var(--primary-dark);
    text-decoration: none;
    display: inline-block;
    position: relative;
    transition: color 0.3s ease;
}

.news-card h3 a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.news-card h3 a:hover {
    color: var(--primary-color);
}

.news-card h3 a:hover::after {
    width: 100%;
}

/* 新闻元信息样式 */
.news-meta {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.news-meta i {
    margin-right: 0.5rem;
    color: var(--primary-light);
}

.news-meta span {
    margin-right: 1rem;
}

/* 新闻标签样式 */
.news-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.news-tag.industry {
    background-color: var(--primary-color);
    color: white;
}

.news-tag.health {
    background-color: var(--success-color);
    color: white;
}

.news-tag.lifestyle {
    background-color: #17a2b8;
    color: white;
}

/* 新闻摘要样式 */
.news-excerpt {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 阅读全文链接样式 */
.news-detail-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-color);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.news-detail-link:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

.news-detail-link i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.news-detail-link:hover i {
    transform: translateX(3px);
}

/* 新闻网格布局优化 */
#news .grid {
    gap: 2rem;
}

/* 响应式新闻卡片调整 */
@media (max-width: 768px) {
    #news .col-md-2 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    #news .col-md-10 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .news-card h3 {
        font-size: 1.125rem;
    }
}