/* 基础样式设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

body {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

/* 导航栏样式 */
.layui-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    /* 添加以下属性确保导航栏不随滚动条滚动 */
    transform: translateZ(0);
    will-change: transform;
}

/* 导航栏logo上下居中 */
.layui-header .layui-container {
    display: flex;
    align-items: center;
    height: 60px; /* 设置导航栏高度 */
}

.layui-logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.layui-logo img {
    /* height: 40px; */
    width: auto;
}

/* 为页面主体内容添加上边距，避免被固定导航栏遮挡 */
.hero-section {
    margin-top: 80px; /* 根据导航栏高度调整 */
}


.layui-nav {
    background-color: red;
}

.layui-nav-item a {
    font-size: 16px;
}

.layui-btn-red{
    background-color: red;
}
/* 新增导航栏容器样式 */
.nav-container {
    position: absolute;
    top: 15px;
    right: 20px;
    display: flex;
    gap: 10px;
    background-color: transparent;
}

.nav-btn {
    background-color: transparent !important;
    color: rgb(196, 47, 47) !important;
    border: 1px solid rgba(85, 6, 6, 0.5) !important;
    border-radius: 20px;
    margin: 0 5px;
    transition: all 0.3s ease;
    font-weight: bold; /* 添加这行使文字变粗 */
}

.nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-color: white !important;
}

/* 移动端菜单按钮样式 */
.mobile-menu-btn {
    display: none;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #333;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
}


/* 移动端导航菜单样式 */
.mobile-nav {
    display: none;
    position: fixed;
    top: 60px;
    right: 0;
    width: 250px;
    height: calc(100vh - 60px);
    background-color: white;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav ul {
    list-style: none;
    padding: 20px 0;
}

.mobile-nav ul li {
    padding: 12px 30px;
}

.mobile-nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    display: block;
    transition: color 0.3s ease;
}

.mobile-nav ul li a:hover {
    color: #007bff;
}

/* 桌面端导航容器 */
.desktop-nav {
    display: block;
}

/* 响应式设计：手机端显示菜单按钮，隐藏桌面端导航 */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .mobile-nav {
        display: block;
    }
    
    /* 调整英雄区域的上边距，适应导航栏高度 */
    .hero-section {
        margin-top: 60px;
    }
}
 
/* 通用区域标题样式 */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 60px;
}

.section-title h2 {
    font-size: 36px;
    color: #333;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #ff6b00;
}

/* 介绍区域样式 */
.intro-section {
    padding: 80px 0;
}

.intro-section h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
}

.intro-section p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.intro-buttons {
    margin-top: 30px;
}

.intro-buttons a {
    margin-right: 15px;
}

.intro-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 产品区域样式 */
.products-section {
    padding: 80px 0;
}

.product-item {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.product-item h3 {
    font-size: 18px;
    color: #333;
}

/* 更多产品按钮样式 */
.more-products-btn {
    margin-top: 30px; 
    border: 2px solid #c91f2c;
    color: #c91f2c;
    background-color: transparent;
    transition: all 0.3s ease;
}

.more-products-btn:hover {
    background-color: #c91f2c;
    color: white;
}

/* 文本居中 */
.text-center {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* 优势区域样式 */
.advantages-section {
    padding: 80px 0;
}

.advantage-item {
    text-align: center;
    padding: 30px 20px;
    transition: all 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-10px);
}

.advantage-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    color: #ff6b00;
}

.advantage-item h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}

.advantage-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 时间轴样式 */
.about-section {
    padding: 80px 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: #ff6b00;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-year {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: white;
    color: #ff6b00;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #ff6b00;
    z-index: 10;
}

.timeline-content {
    position: relative;
    width: 45%;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.timeline-item:nth-child(odd) .timeline-content {
    left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    left: 55%;
}

.timeline-content h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 客户评价样式 */
.testimonials-section {
    padding: 80px 0;
}

.testimonial-item {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.testimonial-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.testimonial-name {
    font-size: 16px;
    color: #333;
    font-weight: bold;
}

/* 联系我们样式 */
.contact-section {
    padding: 80px 0;
}

.contact-info h3,
.contact-form h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 30px;
}

.contact-info ul {
    list-style: none;
}

.contact-info li {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    padding-left: 30px;
    position: relative;
}

.contact-info li i {
    position: absolute;
    left: 0;
    top: 5px;
    color: #ff6b00;
    font-size: 20px;
}

.contact-form .layui-form-item {
    margin-bottom: 20px;
}

.contact-form .layui-input,
.contact-form .layui-textarea {
    height: 50px;
    font-size: 16px;
}

.contact-form .layui-textarea {
    height: 120px;
}

/* 页脚样式 */
.layui-footer {
    background-color: #333;
    color: white;
    padding: 60px 0 30px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
}

.footer-logo p {
    font-size: 14px;
    color: #999;
    line-height: 1.6;
}

.footer-links,
.footer-contact {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-contact li {
    color: #999;
    padding-left: 30px;
    position: relative;
}

.footer-contact li i {
    position: absolute;
    left: 0;
    top: 5px;
    color: #ff6b00;
}

.footer-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #444;
    color: white;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: #ff6b00;
    transform: translateY(-5px);
}

.footer-qrcode {
    margin-top: 30px;
}

.footer-qrcode img {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
}

.footer-qrcode p {
    font-size: 12px;
    color: #999;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    margin-top: 30px;
}

.footer-bottom p {
    font-size: 14px;
    color: #999;
}

/* 备案号链接样式 */
.footer-bottom a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #fff;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .layui-col-md6,
    .layui-col-md3,
    .layui-col-md2 {
        width: 100%;
    }
    
    .timeline-line {
        left: 50px;
    }
    
    .timeline-year {
        left: 50px;
        transform: translateX(-50%);
    }
    
    .timeline-content {
        width: calc(100% - 120px);
        left: 120px !important;
    }
    
    .play-button {
        width: 80px;
        height: 80px;
    }
    
    .play-button i {
        font-size: 32px;
    }
}
