/* 自定义样式 */
body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    padding-top: 70px;
}

/* 导航栏 */
.navbar-default {
    background-color: #fff;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar-brand {
    font-weight: bold;
    color: #4CAF50 !important;
}

.navbar-nav > li > a {
    color: #333 !important;
}

.navbar-nav > li > a:hover,
.navbar-nav > li.active > a {
    color: #4CAF50 !important;
    background-color: transparent !important;
}

/* 轮播图 */
.carousel {
    margin-bottom: 30px;
}

.carousel-caption {
    background: rgba(0,0,0,0.5);
    padding: 15px;
    border-radius: 5px;
}

/* 内容区块 */
.content-section {
    padding: 60px 0;
}

.content-section.bg-white {
    background-color: #fff;
}

.content-section.bg-gray {
    background-color: #f8f8f8;
}

.content-section.bg-success {
    background-color: #4CAF50;
}

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

.section-title h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #333;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #4CAF50;
}

.section-title p {
    font-size: 16px;
    color: #666;
}

/* 产品卡片 */
.product-card {
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    transition: transform 0.3s ease;
    border: 2px solid #e0e0e0;
}

.product-card:hover {
    border-color: #4CAF50;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card-img {
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* 4:3 宽高比 */
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
}

.product-card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-card-body {
    padding: 20px;
}

.product-card-title {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.product-card-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* 面板样式 */
.panel-success {
    border-color: #4CAF50;
}

.panel-success > .panel-heading {
    background-color: #4CAF50;
    border-color: #4CAF50;
    color: #fff;
}

/* 按钮样式 */
.btn-success {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

.btn-success:hover,
.btn-success:focus {
    background-color: #449d44;
    border-color: #449d44;
}

.btn-white {
    background-color: #fff;
    color: #4CAF50;
    border: 2px solid #fff;
}

.btn-white:hover {
    background-color: transparent;
    color: #fff;
}

/* 计数器 */
.counter {
    font-size: 36px;
    font-weight: bold;
    color: #4CAF50;
}

/* 页脚 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 30px 0;
    margin-top: 50px;
}

.footer h4 {
    color: #fff;
    margin-bottom: 20px;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
}

.copyright {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #aaa;
}

/* 新闻资讯卡片样式 */
.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.news-card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #4CAF50;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.news-card-date .day {
    display: block;
    font-size: 20px;
    line-height: 1;
}

.news-card-date .month {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
}

.news-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card-title {
    font-size: 18px;
    margin: 0 0 15px 0;
    line-height: 1.4;
    font-weight: 600;
}

.news-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-card-title a:hover {
    color: #4CAF50;
}

.news-card-meta {
    margin-bottom: 15px;
    font-size: 13px;
    color: #888;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.news-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-card-meta .glyphicon {
    font-size: 12px;
}

.news-card-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-card-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.news-card-footer .btn-link {
    color: #4CAF50;
    font-weight: 500;
    text-decoration: none;
    padding: 0;
    transition: all 0.3s ease;
}

.news-card-footer .btn-link:hover {
    color: #449d44;
    transform: translateX(5px);
}

.news-card-footer .glyphicon {
    transition: transform 0.3s ease;
}

.news-card-footer .btn-link:hover .glyphicon {
    transform: translateX(3px);
}

/* 加载状态样式 */
.news-loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

.news-loading .glyphicon {
    font-size: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 新闻模块响应式优化 */
@media (max-width: 768px) {
    .news-card {
        margin-bottom: 20px;
    }
    
    .news-card-image {
        height: 180px;
    }
    
    .news-card-content {
        padding: 20px;
    }
    
    .news-card-title {
        font-size: 16px;
    }
    
    .news-card-meta {
        font-size: 12px;
        gap: 10px;
    }
    
    .news-card-excerpt {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .news-card-image {
        height: 160px;
    }
    
    .news-card-date {
        padding: 6px 10px;
    }
    
    .news-card-date .day {
        font-size: 18px;
    }
    
    .news-card-date .month {
        font-size: 11px;
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .carousel-caption h3 {
        font-size: 20px;
    }
    
    .carousel-caption p {
        font-size: 14px;
    }
}