/* 全局样式 */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --text-color: #333;
    --light-bg: #f8f9fa;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* LOGO样式 */
.logo {
    font-family: 'Arial Black', sans-serif;
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
}

/* 导航栏样式 */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-nav .nav-link {
    color: var(--primary-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--secondary-color);
}

/* 主页横幅 */
.hero {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9), rgba(52, 152, 219, 0.9)),
                url('../images/hero-bg.jpg') center/cover;
    color: white;
    padding: 0;
    margin-top: 76px;
}

.hero-content {
    min-height: 60vh;
    padding: 60px 0;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* 章节样式 */
.section {
    padding: 5rem 0;
}

#guide.section {
    background-color: #f8f9fa;
    width: 100%;
    min-height: 100px;
    position: relative;
    overflow: visible;
    padding-left: 0;
    padding-right: 0;
}

#guide .container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

#guide .row {
    margin-left: 0;
    margin-right: 0;
}

#guide .col-md-4 {
    padding: 0 16px;
    margin-bottom: 32px;
}


.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-weight: bold;
}



/* 品牌卡片 */
.brand-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    height: 100%;
}

.brand-card .card {
    height: 100%;
}

.brand-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.brand-card .card-body {
    display: flex;
    flex-direction: column;
    height: 150px;
    padding: 1rem;
}

.brand-card .card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.brand-card .card-text {
    font-size: 0.9rem;
    color: #6c757d;
    flex-grow: 1;
    margin-bottom: 0;
}

/* 品牌轮播 */
.brand-swiper {
    padding: 1rem 3rem;
    margin: -1rem;
    position: relative;
}

.brand-swiper .swiper-button-next,
.brand-swiper .swiper-button-prev {
    width: 40px;
    height: 40px;
    background-color: white;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.brand-swiper .swiper-button-next:after,
.brand-swiper .swiper-button-prev:after {
    font-size: 1.2rem;
    font-weight: bold;
}

.brand-swiper .swiper-button-next:hover,
.brand-swiper .swiper-button-prev:hover {
    background-color: var(--primary-color);
    color: white;
}

.brand-card:hover {
    transform: translateY(-5px);
    text-decoration: none;
    color: inherit;
}

.brand-card .card {
    border: none;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.brand-card:hover .card {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.brand-card .card-img-top {
    height: 150px;
    object-fit: cover;
    background-color: #f8f9fa;
}

.brand-card .card-body {
    padding: 1.25rem;
}

.brand-card .card-title {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.brand-card .card-text {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
    line-height: 1.5;
}

/* 筛选工具栏 */
.filter-toolbar {
    padding: 2rem 0;
    background-color: var(--light-bg);
}

.filter-toolbar .form-select,
.filter-toolbar .input-group {
    height: 46px;
}

.filter-toolbar .form-select,
.filter-toolbar .form-control,
.filter-toolbar .btn {
    font-size: 1rem;
    line-height: 1.5;
    height: 46px;
    padding: 0.375rem 0.75rem;
}

.filter-toolbar .form-select {
    border-radius: 4px;
    border: 1px solid #ced4da;
}

.filter-toolbar .category-filter,
.filter-toolbar .search-box {
    height: 100%;
}

/* 选购指南卡片 */
.guide-card {
    display: block;
    background: white;
    border-radius: 14px;
    padding: 2.5rem 1.5rem 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.10);
    height: 100%;
    transition: box-shadow 0.3s, transform 0.3s;
    text-decoration: none !important;
    color: var(--text-color) !important;
    border: 1px solid #e6e6e6;
    font-size: 1.1rem;
    position: relative;
}

.guide-card:hover {
    box-shadow: 0 8px 30px rgba(52, 152, 219, 0.15);
    transform: translateY(-8px) scale(1.03);
    color: var(--primary-color) !important;
    text-decoration: none !important;
    border-color: var(--secondary-color);
    cursor: pointer;
}

.guide-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.35rem;
    font-weight: bold;
}

.guide-card p {
    color: #666;
    margin-bottom: 0;
    font-size: 1rem;
}

/* 新闻卡片 */
.news-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    height: 100%;
}

.news-card .card {
    height: 100%;
    border: none;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    background-color: #f8f9fa;
}

.news-card:hover {
    transform: translateY(-5px);
    text-decoration: none;
    color: inherit;
}

.news-card:hover .card {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.news-card .card-body {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.news-card .card-title {
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.news-card .card-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.news-card .news-date {
    color: #adb5bd;
    font-size: 0.85rem;
    margin-top: auto;
}

.guide-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* 新闻卡片 */
.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card .content {
    padding: 1.5rem;
}

/* 页面头部样式 */
.page-header, .news-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 120px 0 60px;
    text-align: center;
    margin-bottom: 0;
}

/* 品牌筛选 */
.brand-filter {
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
}

.section-sm {
    padding: 2rem 0;
}

/* 品牌标签 */
.brand-tags {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.brand-tags .badge {
    margin-right: 0;
    font-weight: normal;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
}

@media (max-width: 576px) {
    .brand-tags {
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        gap: 0.5rem;
        -webkit-overflow-scrolling: touch;
        width: 100vw;
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
        min-width: 0;
        box-sizing: border-box;
        height: 80px;
        align-items: center;
    }
    .brand-tags .badge {
        flex: 0 0 auto;
        font-size: 0.95rem;
        line-height: 1.8;
        height: 80px;
        display: inline-flex;
        align-items: center;
    }
}


/* 品牌列表 */
.brand-list .brand-card .card-body {
    display: flex;
    flex-direction: column;
}

.brand-list .brand-card .card-text {
    flex-grow: 1;
    margin-bottom: 0.5rem;
}

.news-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.news-categories .nav-pills .nav-link {
    color: var(--primary-color);
    border-radius: 20px;
    padding: 0.5rem 1.5rem;
    margin: 0 0.5rem;
}

.news-categories .nav-pills .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.news-article {
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    overflow: hidden;
}

.news-article.featured {
    margin-bottom: 2rem;
}

.news-article img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.news-article .content {
    padding: 1.5rem;
}

.news-article .date {
    color: #666;
    font-size: 0.9rem;
}

.news-article h2 {
    margin: 1rem 0;
    color: var(--primary-color);
}

.news-article.small {
    padding: 1rem;
    margin-bottom: 1rem;
}

.news-article.small h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.health-tips {
    list-style: none;
    padding: 0;
}

.health-tips li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.resource-list {
    list-style: none;
    padding: 0;
}

.resource-list li {
    margin-bottom: 1rem;
}

.resource-list a {
    color: var(--primary-color);
    text-decoration: none;
}

.newsletter-section {
    padding: 4rem 0;
    background-color: var(--light-bg);
}

.newsletter-form .input-group {
    max-width: 500px;
    margin: 0 auto;
}

/* 信息列表页面样式 */
.filter-toolbar {
    background-color: var(--light-bg);
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}

.news-list-section {
    padding: 2rem 0 4rem;
}

.news-list-item {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.news-list-item:hover {
    transform: translateY(-5px);
}

.news-list-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-list-item .content {
    padding: 1.5rem;
}

.news-list-item .category {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.news-list-item h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.news-list-item h2 a {
    color: var(--primary-color);
    text-decoration: none;
}

.news-list-item .meta {
    color: #666;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.news-list-item .meta span {
    margin-right: 1.5rem;
}

/* 侧边栏样式 */
.sidebar-widget {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sidebar-widget h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.popular-post-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.popular-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.popular-post-item h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.popular-post-item h4 a {
    color: var(--text-color);
    text-decoration: none;
}

.popular-post-item .views {
    color: #666;
    font-size: 0.9rem;
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 0.8rem;
}

.category-list a {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-list span {
    color: #666;
    font-size: 0.9rem;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background-color: var(--light-bg);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

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

/* 分页样式 */
.pagination-container {
    margin-top: 3rem;
}

.pagination .page-link {
    color: var(--primary-color);
    border-radius: 5px;
    margin: 0 0.2rem;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 页脚样式 */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
}

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

.btn-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}
