/* 前台自定义样式 - 基于 FastAdmin Bootstrap 框架 */

/* 通用样式 */
body {
    font-family: "Helvetica Neue", Helvetica, Arial, "Microsoft YaHei", sans-serif;
}

.section-padding {
    padding: 60px 0;
}

.bg-light {
    background-color: #f8f9fa;
}

.section-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.section-subtitle {
    font-size: 16px;
    color: #999;
    margin-bottom: 20px;
}

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

.navbar-default .navbar-nav > li > a {
    color: #333;
    font-size: 15px;
    padding: 20px 15px;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li.active > a {
    color: #337ab7;
    background-color: transparent;
}

/* 轮播图样式 */
.carousel {
    margin-top: 0;
}

.carousel-inner > .item > img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

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

.carousel-caption h2 {
    font-size: 48px;
    margin-bottom: 15px;
}

.carousel-caption p {
    font-size: 20px;
    margin-bottom: 20px;
}

/* 产品卡片样式 */
.product-item {
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 30px;
    transition: all 0.3s;
}

.product-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.product-item a {
    text-decoration: none;
    color: inherit;
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 15px;
}

.product-info h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.product-info p {
    font-size: 13px;
    margin-bottom: 10px;
}

/* 新闻卡片样式 */
.news-item {
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 30px;
    transition: all 0.3s;
}

.news-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.news-item a {
    text-decoration: none;
    color: inherit;
}

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

.news-content {
    padding: 20px;
}

.news-content h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.news-content p {
    font-size: 13px;
    margin-bottom: 5px;
}

/* 环保责任卡片样式 */
.responsibility-item {
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 30px;
    transition: all 0.3s;
}

.responsibility-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.responsibility-item a {
    text-decoration: none;
    color: inherit;
}

.responsibility-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.responsibility-content {
    padding: 20px;
}

.responsibility-content h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.responsibility-content p {
    font-size: 14px;
    color: #666;
}

/* 底部样式 */
.footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 60px 0 20px;
    margin-top: 60px;
}

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

.footer p,
.footer a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.footer a:hover {
    color: #fff;
    text-decoration: none;
}

.footer .list-unstyled {
    padding-left: 0;
}

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

.footer hr {
    border-color: rgba(255,255,255,0.1);
    margin: 40px 0 20px;
}

/* 页面头部样式 */
.page-header-custom {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 80px 0 60px;
    text-align: center;
    margin-top: 0;
}

.page-header-custom h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.page-header-custom .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 14px;
}

.page-header-custom .breadcrumb a {
    color: #fff;
}

/* 图片横幅页面头部 */
.page-header-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    text-align: center;
    margin: 0 0 30px 0;
    position: relative;
    width: 100%;
    height: 500px !important;
    min-height: 500px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    overflow: hidden;
}
.page-header-image .page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}
.page-header-image .container {
    position: relative;
    z-index: 2;
}
.page-header-image h1 {
    font-size: 42px;
    margin-bottom: 15px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.page-header-image .lead {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
.page-header-image .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 14px;
}
.page-header-image .breadcrumb a {
    color: #fff;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .carousel-caption h2 {
        font-size: 28px;
    }

    .carousel-caption p {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .navbar-default .navbar-nav > li > a {
        padding: 10px 15px;
    }
}

/* 按钮样式增强 */
.btn-primary {
    background-color: #337ab7;
    border-color: #337ab7;
}

.btn-primary:hover {
    background-color: #286090;
    border-color: #286090;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #337ab7;
    color: #fff;
    text-align: center;
    line-height: 50px;
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
    display: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.back-to-top:hover {
    background: #286090;
}
