/* 全局样式 */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 导航栏样式 */
.navbar {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
}

.logo {
    height: 40px;
    margin-right: 10px;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* 首页横幅样式 */
.hero-section {
    position: relative;
    padding-top: 76px;
    background: var(--dark-color);
}

.carousel {
    position: relative;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
    will-change: opacity, visibility;
}

.carousel-item.active {
    opacity: 1;
    visibility: visible;
    display: block;
}

/* 添加淡入淡出效果 */
.carousel-fade .carousel-item {
    opacity: 0;
    transform: none;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-left,
.carousel-fade .carousel-item-prev.carousel-item-right {
    opacity: 1;
}

.carousel-fade .active.carousel-item-left,
.carousel-fade .active.carousel-item-right {
    opacity: 0;
}

.carousel-fade .carousel-item-next,
.carousel-fade .carousel-item-prev,
.carousel-fade .carousel-item.active,
.carousel-fade .active.carousel-item-left,
.carousel-fade .active.carousel-item-prev {
    transform: translateX(0);
}

/* 优化背景切换效果 */
.carousel-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.6s ease-in-out;
    will-change: opacity;
}

.bg-1 {
    background: linear-gradient(45deg, #1a1a1a, #4a4a4a);
}

.bg-2 {
    background: linear-gradient(45deg, #2c3e50, #3498db);
}

.bg-3 {
    background: linear-gradient(45deg, #16222a, #3a6073);
}

.carousel-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background-size: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.carousel-item .container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 2;
}

.carousel-content {
    color: #fff;
    max-width: 600px;
}

.carousel-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
}

.carousel-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-image {
    position: relative;
    max-width: 100%;
    height: auto;
    animation: float 6s ease-in-out infinite;
}

/* 轮播控制器样式 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    z-index: 3;
    margin: 0;
    padding: 0;
    text-align: center;
}

.carousel-indicators li {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicators li.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.8);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
    background-size: 100%;
}

/* 轮播动画 */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .carousel-inner {
        height: 400px;
    }

    .carousel-content h1 {
        font-size: 2rem;
    }

    .carousel-content p {
        font-size: 1rem;
    }

    .hero-image {
        max-width: 80%;
        margin: 0 auto;
    }
}

/* 通用部分样式 */
.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

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

/* 服务卡片样式 */
.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* 产品卡片样式 */
.product-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

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

.product-info-index {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
}

.product-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
}

.product-info-detail {
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgb(220 219 236 / 80%), transparent);
    color: white;
    border-radius: 0px 0px 5px 5px;
}

/* 联系表单样式 */
.contact-form .form-control {
    border-radius: 10px;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
}

.contact-info {
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* 按钮样式 */
.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    width: 100%;
}

/* 下拉菜单样式 */
.dropdown-menu {
    background: rgba(0, 0, 0, 0.9);
    border: none;
    border-radius: 10px;
    padding: 0.5rem;
    margin-top: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.dropdown-item {
    color: white;
    padding: 0.8rem 1.5rem;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.dropdown-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.dropdown-toggle::after {
    margin-left: 0.5rem;
    vertical-align: middle;
}

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

.footer h4 {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #fff;
    opacity: 0.8;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-color);
    padding-left: 10px;
}

.footer-contact li {
    margin-bottom: 1rem;
    opacity: 0.8;
}

.footer-contact i {
    color: var(--primary-color);
}

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    text-align: center;
    line-height: 35px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.border-top {
    border-color: rgba(255,255,255,0.1) !important;
}

/* 响应式设计更新 */
@media (max-width: 768px) {
    .navbar {
        background: rgba(0, 0, 0, 0.95);
    }

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

    .hero-section h1 {
        font-size: 2rem;
    }

    .service-card, .product-card {
        margin-bottom: 2rem;
    }

    .dropdown-menu {
        background: transparent;
        border: none;
        padding-left: 1rem;
    }

    .dropdown-item {
        color: rgba(255,255,255,0.8);
    }

    .dropdown-item:hover {
        background: transparent;
        color: var(--primary-color);
    }

    .footer {
        padding: 2rem 0;
    }
}

/* 产品列表页样式 */
.page-header {
    background: linear-gradient(45deg, #1a1a1a, #4a4a4a);
    padding: 120px 0 60px;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png');
    opacity: 0.3;
    background-size: cover;
}

.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: #fff;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

.nav-pills .nav-link {
    color: var(--dark-color);
    border-radius: 30px;
    padding: 10px 30px;
    margin: 0 5px;
    transition: all 0.3s ease;
}

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

/* 产品详情页样式更新 */
.product-gallery .main-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background: white;
    padding: 20px;
}

.product-gallery .main-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.thumbnail-images {
    margin-top: 20px;
}

.thumbnail-images .thumbnail {
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
    border: 2px solid transparent;
    padding: 5px;
    background: white;
}

.thumbnail-images .thumbnail:hover,
.thumbnail-images .thumbnail.active {
    opacity: 1;
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.product-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

.product-price {
    font-size: 1.8rem;
}

.product-price .price {
    color: var(--primary-color);
    font-weight: 700;
}

.product-price .original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 1.2rem;
    margin-left: 10px;
}

.product-description {
    color: #666;
    line-height: 1.8;
}

.product-meta .meta-item {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.product-meta .label {
    color: #666;
    width: 100px;
}

.product-meta .value {
    color: #333;
    font-weight: 500;
}

.details-title {
    font-size: 1.8rem;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
    margin-bottom: 30px;
}

.detail-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.detail-section h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.module-item {
    text-align: center;
    padding: 20px;
    background: var(--light-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

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

.module-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.module-item h5 {
    font-weight: 600;
    margin-bottom: 10px;
}

.module-item p {
    color: #666;
    margin-bottom: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .product-title {
        font-size: 2rem;
    }

    .product-price {
        font-size: 1.5rem;
    }

    .detail-section {
        padding: 20px;
    }

    .module-item {
        margin-bottom: 20px;
    }
}

/* 新闻详情页样式 */
.news-detail {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.news-content {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

.news-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.news-meta {
    margin-bottom: 5px;
    color: #666;
}

.news-meta span {
    margin-right: 20px;
    font-size: 0.9rem;
}

.news-meta i {
    margin-right: 5px;
    color: #007bff;
}

.news-banner {
    margin-bottom: 30px;
}

.news-banner img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.news-text {
    line-height: 1.8;
    color: #444;
    margin-bottom: 30px;
}

.news-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 30px 0 15px;
    color: #333;
}

.news-text p {
    margin-bottom: 20px;
}

.news-text ul, .news-text ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.news-text li {
    margin-bottom: 10px;
}

.news-text blockquote {
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    padding: 20px;
    margin: 30px 0;
    font-style: italic;
}

.news-text blockquote footer {
    margin-top: 10px;
    color: #666;
}

.news-share {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.news-share span {
    color: #666;
    margin-right: 15px;
}

.share-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 50%;
    margin-right: 10px;
    color: #333;
    transition: all 0.3s ease;
}

.share-link:hover {
    background: #007bff;
    color: #fff;
    transform: translateY(-3px);
}

.news-navigation {
    margin-top: 30px;
}

.prev-post, .next-post {
    display: block;
    color: #007bff;
    transition: all 0.3s ease;
}

.prev-post:hover, .next-post:hover {
    /*color: #007bff;*/
    color: #666;
    text-decoration: none;
}

.prev-post span, .next-post span {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.prev-post h6, .next-post h6 {
    margin: 0;
    font-weight: 600;
    color: #333;
}

/* 侧边栏样式 */
.sidebar-widget {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
    color: #333;
}

.search-form .form-control {
    border-radius: 5px 0 0 5px;
}

.search-form .btn {
    border-radius: 0 5px 5px 0;
}

.hot-news-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.hot-news-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.hot-news-item h5 {
    font-size: 1rem;
    margin: 0 0 5px;
}

.hot-news-item h5 a {
    color: #333;
    transition: all 0.3s ease;
}

.hot-news-item h5 a:hover {
    color: #007bff;
    text-decoration: none;
}

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

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

.category-list li a {
    display: flex;
    justify-content: space-between;
    color: #666;
    transition: all 0.3s ease;
}

.category-list li a:hover {
    color: #007bff;
    text-decoration: none;
    padding-left: 5px;
}

/* 响应式调整 */
@media (max-width: 991px) {
    .news-title {
        font-size: 1.8rem;
    }

    .sidebar-widget {
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .news-title {
        font-size: 1.5rem;
    }

    .news-meta span {
        display: block;
        margin-bottom: 5px;
    }

    .news-content {
        padding: 20px;
    }
}
.current-li a {
    color: #007bff !important;
}

.leave-message-weibo {
    margin-top: 10px
}

.leave-message, .leave-message-weibo {
    border: 1px solid #CBD1D3;
    background-color: #EFEFEF;
    padding: 15px
}

.leave-message h3, .leave-message-weibo h3 {
    border-bottom: 1px solid #CBD1D3;
    padding-bottom: 10px;
    font-size: 14px;
    color: #7A7F81
}

.leave-message ul {
    padding: 15px 0 0 3px
}

.leave-message li {
    line-height: 30px;
    margin-bottom: 8px;
    color: #7A7F81
}

.leave-message li textarea {
    vertical-align: top;
    width: 271px
}

.leave-message li.submit {
    padding: 16px 0px;
    border-top: 1px solid #CBD1D3;
    text-align: right
}

.messages-list .item {
    padding: 8px 0;
    border-bottom: 1px dotted #DEDEDE
}

.messages-list .item .user {
    height: 21px;
    margin-top: 0;
    color: #9C9A9C
}

.messages-list .item .user .u-name {
    float: left
}

.messages-list .item .user .date-ask {
    float: right
}

.messages-list .item dl {
    margin-top: 8px;
    overflow: hidden;
    zoom: 1
}

.messages-list .item .answer {
    color: #0078e7
}

.messages-list .item dt {
    float: left;
    width: 62px;
    text-align: justify
}

.messages-list .item dd {
    float: right;
    width: 536px;
    overflow: hidden
}

.messages-list .item .content {
    float: left;
    width: 536px
}

.messages-list .item .date-answer {
    float: right;
    width: 130px;
    text-align: right;
    color: #9C9A9C;
    margin-top: 8px
}

textarea {
    overflow: auto
}

input, textarea, select {
    display: inline-block;
    padding: 4px;
    font-size: 13px;
    line-height: 18px;
    color: #808080;
    border: 1px solid #ccc;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px
}


.index-left {
    width: 600px;
    display: inline-block;
}

.index-right {
    width: 360px;
    text-align: left;
    display: inline-block;
    vertical-align: top;
}
.news-image {
    overflow: hidden;
    max-height: 200px;
}
