/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    touch-action: pan-y pinch-zoom; /* 允许垂直滚动，禁止双指缩放 */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

a:hover {
    color: #1f9eee;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* 容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮 */
.btn-primary {
    padding: 12px 24px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 18px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: #fff;
}

/* 标题 */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    position: relative;
    padding-bottom: 15px;
}

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

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.navbar-logo img {
    height: 60px;
    vertical-align: middle;
}

.navbar-logo .company-name {
    font-size: 26px;
    font-weight: bold;
    color: #333;
    margin-left: 5px;
    vertical-align: middle;
}

.navbar-menu {
    position: absolute;
    right: 100px;
}

.navbar-menu ul {
    display: flex;
}

.navbar-menu li {
    margin-left: 30px;
}

.navbar-menu a {
    font-size: 22px;
    font-weight: 500;
    color: #333;
    position: relative;
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #007bff;
    transition: width 0.3s ease;
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
    width: 100%;
}

.navbar-menu a.active {
    color: #007bff;
}

.navbar-toggle {
    display: none;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.navbar-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* 横幅轮播 */
.banner-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

/* 移动端banner高度调整 */
@media (max-width: 768px) {
    .banner-slider {
        height: 50vh;
    }
}

.banner-slides {
    position: relative;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 0 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.banner-slide.active {
    opacity: 1;
    visibility: visible;
}

.banner-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.banner-controls {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
}

.banner-prev,
.banner-next {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-prev:hover,
.banner-next:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.banner-dots {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10;
}

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

.banner-dot.active {
    background-color: #fff;
    transform: scale(1.2);
    width: 40px;
    border-radius: 25px;
    height: 10px;
}

.banner-content p {
    font-size: 20px;
    margin-bottom: 30px;
}

/* 公司简介 */
.about-brief {
    padding: 100px 0;
    background-color: #fff;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.about-brief.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.about-content {
    margin: 0 auto;
    text-align: left;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.8;
}

.core-values {
    margin-top: 40px;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.core-values h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #007bff;
}

.core-values p {
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

/* 产品中心 */
.products {
    padding: 100px 0;
    background-color: #f8f9fa;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.products.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.product-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.product-logo {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    flex-shrink: 0;
}

.product-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.product-title {
    flex-grow: 1;
}

.product-title h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.product-status {
    display: inline-block;
    font-size: 15px;
}

.product-status.online {
    color: green;
}

.product-status.developing {
    color: #dc0f24;
}

.product-gallery-btn {
   padding: 6px 14px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 22px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
}

.product-gallery-btn:hover {
    background-color: #e9ecef;
}

.product-description {
    margin-bottom: 20px;
}

.description-text {
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    min-height: 4.5em;
}

.description-text.expanded {
    -webkit-line-clamp: unset;
}

.toggle-btn {
    background: none;
    border: none;
    color: #007bff;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
}

.toggle-btn:hover {
    text-decoration: underline;
}

.product-features {
    border-top: 1px solid #dee2e6;
    padding-top: 20px;
}

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

.feature-item h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
    margin: 0;
}

.feature-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.feature-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.feature-content.expanded {
    max-height: 500px;
}

.feature-content ul {
    padding-left: 20px;
}

.feature-content li {
    list-style-type: disc;
    margin-bottom: 5px;
}

/* 公司业务 */
.services {
    padding: 100px 0;
    background-color: #fff;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.services.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.service-item {
    text-align: center;
    padding: 30px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background-color: #becbd6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: #007bff;
}

.service-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.service-item p {
    color: #666;
}

/* 服务流程 */
.process {
    padding: 100px 0;
    background-color: #f8f9fa;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.process.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 50px;
    right: 50px;
    height: 2px;
    background-color: #dee2e6;
    z-index: 1;
}

.process-step {
    width: 180px;
    text-align: center;
    position: relative;
    z-index: 2;
    margin-bottom: 30px;
}

.step-number {
    width: 80px;
    height: 80px;
    background-color: #fff;
    border: 2px solid #007bff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    font-weight: 700;
    color: #007bff;
}

.process-step h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.process-step p {
    font-size: 14px;
    color: #666;
}

/* 关于我们 */
.about {
    padding: 100px 0;
    background-color: #fff;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.about.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.about-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-left: 25%;
    transform: translateX(-20%);
}

.about-image {
    flex: 1;
    min-width: 300px;
    margin-right: 50px;
    margin-bottom: 30px;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 60%;
    margin-left: 30%;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #007bff;
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* 发展历程 */
.history {
    padding: 100px 0;
    background-color: #f8f9fa;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.history.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50px;
    width: 2px;
    background-color: #007bff;
}

.timeline-item {
    position: relative;
    padding-left: 100px;
    margin-bottom: 50px;
}

.timeline-date {
    position: absolute;
    left: 0;
    top: 0;
    width: 80px;
    height: 40px;
    background-color: #007bff;
    color: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.timeline-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.timeline-content p {
    color: #666;
}

/* 联系我们 */
.contact {
    padding: 100px 0;
    background-color: #fff;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.contact.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    margin-left: 20%;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #007bff;
}

.contact-info ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-info i {
    width: 30px;
    font-size: 18px;
    color: #007bff;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-form h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #007bff;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 60px;
}

.footer-links ul {
    display: flex;
    flex-wrap: wrap;
}

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

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

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

.footer-contact ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    width: 20px;
    margin-right: 10px;
}

.footer-contact a {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 14px;
    color: #999;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
}

/* 二维码弹窗 */
.qrcode-popup {
    position: fixed;
    bottom: 30px;
    right: 100px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    padding: 20px;
    z-index: 998;
    transition: all 0.3s ease;
}

.qrcode-popup:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.qrcode-content {
    text-align: center;
    position: relative;
}

.qrcode-close-btn {
    position: absolute;
    top: -10px;
    right: -15px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #333;
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
    display: block;
}

.qrcode-content img {
    width: 150px;
    height: 150px;
    margin-bottom: 10px;
}

.qrcode-content p {
    font-size: 14px;
    text-align: center;
    color: #333;
    margin: 0;
}

.qrcode-popup.hidden {
    display: none;
}

/* 产品图片画廊弹窗 */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    overflow: auto;
}

.gallery-content {
    position: relative;
    max-width: 1000px;
    margin: 50px auto;
    padding: 20px;
}

.gallery-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

.gallery-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-image {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.05);
}

.gallery-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
}

/* 图片预览弹窗 */
.image-preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    overflow: auto;
    align-items: center;
    justify-content: center;
}

.image-preview-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.image-preview-close {
    position: absolute;
    top: -40px;
    right: -40px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

.image-preview-img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 4px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .banner-content h1 {
        font-size: 36px;
    }

    .banner-content p {
        font-size: 18px;
    }

    .process-steps {
        justify-content: center;
    }

    .process-step {
        margin: 0 10px 30px;
    }

    .process-steps::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .navbar-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    .navbar-menu.active {
        transform: translateY(0);
    }

    .navbar-menu ul {
        flex-direction: column;
        align-items: center;
    }

    .navbar-menu li {
        margin: 10px 0;
    }

    .navbar-toggle {
        display: block;
    }

    .banner-content h1 {
        font-size: 28px;
    }

    .banner-content p {
        font-size: 18px;
    }

    .about-content,
    .contact-content {
        flex-direction: column;
    }

    .about-image {
        margin-right: 0;
    }

    .timeline-item {
        padding-left: 80px;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-date {
        width: 60px;
        height: 35px;
        font-size: 14px;
    }

    .footer-content {
        display: none;
    }

    .footer-bottom{
        border-top: 0;
        padding-top: 0;
    }

    .footer-links ul {
        justify-content: center;
        margin: 20px 0;
    }

    .qrcode-popup {
       display: none;
    }

    #serive_progress {
        display: none;
    }

    .about-brief{
        background-color: #f8f9fa;
    }

    .banner-prev, .banner-next{
        display: none;
    }

    .banner-slider .container{
        padding: 0;
        padding-top: 5vh;
    }
}

@media (max-width: 576px) {
    .section-title h2 {
        font-size: 24px;
    }

    .banner-content h1 {
        font-size: 24px;
    }

    .banner-content p {
        font-size: 18px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .product-header {
        align-items: flex-start;
    }

    .product-logo {
        margin-bottom: 10px;
    }

    .product-gallery-btn {
        margin-left: 0;
    }

    .gallery-images {
        grid-template-columns: 1fr 1fr;
    }

    .image-preview-close {
        right: 0;
    }

    #serive_progress {
        display: none;
    }

    .about-brief{
        background-color: #f8f9fa;
    }

    .about-image img {
        transform: translateX(-20%);
    }

    .banner-prev, .banner-next{
        display: none;
    }

    .banner-slider .container{
        padding: 0;
        padding-top: 5vh;
    }
}

/* 新闻信息 */
.news {
    background-color: #f8f9fa;
    padding-bottom: 100px;
}

.news-slider-container {
    position: relative;
    margin-top: 40px;
}

.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.news-item {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.news-item-content {
    padding: 20px;
}

.news-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.news-item .date {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    display: block;
}

.news-item p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-item .read-more {
    display: inline-block;
    color: #007bff;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.news-slider-prev, .news-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.news-slider-prev {
    left: 10px;
}

.news-slider-next {
    right: 10px;
}
