/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* 确保所有图片都是响应式的 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.navbar-brand {
    flex: 0 0 auto;
}

.logo {
    height: 50px;
    width: auto;
}

.search-bar {
    flex: 1;
    max-width: 400px;
    margin: 0 30px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
}

.search-bar button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-menu {
    flex: 0 0 auto;
}

.menu {
    display: flex;
    list-style: none;
}

.menu li {
    margin: 0 15px;
}

.menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.menu a:hover {
    color: #007bff;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: transparent;
    color: #007bff;
    border: 1px solid #007bff;
}

.btn-secondary:hover {
    background-color: #007bff;
    color: #fff;
}

.btn-link {
    background-color: transparent;
    color: #007bff;
    padding: 0;
    font-size: 14px;
}

.btn-large {
    padding: 12px 30px;
    font-size: 16px;
}

.qrcode img {
    width: 40px;
    height: 40px;
}

/* 英雄区样式 */
.hero {
    background: url('./img/lab.jpg') center/cover no-repeat;
    color: #fff;
    padding: 150px 0;
    text-align: left;
    position: relative;
    /* height: 100vh; */
    height: 60vh;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 123, 255, 0.1));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    border-radius: 50px;
    padding: 20px 50px;
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hero-buttons .btn-primary {
    background-color: #ff6b35;
    border: 2px solid #ff6b35;
    animation: pulse 0.8s infinite;
}

.hero-buttons .btn-primary:hover {
    background-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3);
}

.hero-buttons .btn-secondary {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.hero-buttons .btn-secondary:hover {
    background-color: #fff;
    color: #007bff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

/* 服务区域样式 */
.services {
    padding: 50px 0;
    background-color: #fff;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    /* margin-bottom: 50px; */
    margin-bottom: 20px;
    color: #333;
    font-weight: 700;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(190px, 1fr));
    gap: 22px;
}

.service-item {
    background-color: #f9f9f9;
    padding: 32px 22px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

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

.service-icon {
    width: 105px;
    height: 105px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-item h3 {
    font-size: 1.35rem;
    margin-bottom: 16px;
    color: #333;
}

.service-item p {
    color: #666;
    margin-bottom: 20px;
    font-size: 14.5px;
    line-height: 1.65;
}

/* 合作伙伴样式 */
.partners {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.partners::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #007bff, transparent);
}

.partners-description {
    text-align: center;
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    align-items: stretch;
    justify-items: center;
}

.partner-item {
    width: 100%;
    max-width: 260px;
    perspective: 1000px;
}

.partner-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 123, 255, 0.1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.partner-item:hover .partner-card {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 123, 255, 0.15);
    border-color: rgba(0, 123, 255, 0.3);
}

.partner-logo {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transition: all 0.3s ease;
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    margin: 30px auto 0;
}

.partner-item:hover .partner-logo {
    background-color: rgba(227, 242, 253, 0.3);
    /* 保持原有背景图片不变 */
}

.partner-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    background: conic-gradient(from 0deg, #007bff, #6c757d, #007bff);
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

.partner-item:hover .partner-logo::before {
    opacity: 0.2;
}



.logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    z-index: 1;
    position: relative;
    transition: all 0.3s ease;
}

.partner-item:hover .logo-text {
    color: #007bff;
    transform: scale(1.1);
}

/* 不同合作伙伴的颜色主题 */
.partner-logo.vipshop {
    background-color: #ffffff;
    background-image: url('img/weipinhui.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    overflow: hidden;
}

.partner-logo.taobao {
    background-color: #ffffff;
    background-image: url('img/taobao.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    overflow: hidden;
}

.partner-logo.jd {
    background-color: #ffffff;
    background-image: url('img/jd.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    overflow: hidden;
}

.partner-item:hover .partner-logo.jd,
.partner-item:hover .partner-logo.vipshop,
.partner-item:hover .partner-logo.taobao,
.partner-item:hover .partner-logo.pinduoduo,
.partner-item:hover .partner-logo.amazon {
    opacity: 0.9;
    transform: scale(1.05);
}

.partner-logo.pinduoduo {
    background-color: #ffffff;
    background-image: url('img/pinduoduo.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    overflow: hidden;
}

.partner-logo.amazon {
    background-color: #ffffff;
    background-image: url('img/Amazon.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    overflow: hidden;
}



.partner-info {
    padding: 25px 20px;
    text-align: center;
    background: #ffffff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.partner-info h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.partner-item:hover .partner-info h4 {
    color: #007bff;
}

.partner-info p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease 0.1s;
}

.partner-item:hover .partner-info p {
    opacity: 1;
    transform: translateY(0);
}



/* 核心优势样式 */
.advantages {
    padding: 50px 0;
    background-color: #f8f9fa;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.advantage-item {
    text-align: center;
    padding: 30px;
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background-color: #ff6b35;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
}

.advantage-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.advantage-item p {
    color: #666;
    font-size: 14px;
}

/* 检测流程样式 */
.process {
    padding: 50px 0;
    background-color: #fff;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
}

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

.step {
    flex: 1;
    min-width: 150px;
    text-align: center;
    position: relative;
    z-index: 2;
    background-color: #fff;
    padding: 0 10px;
}

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

.step h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

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

/* 关于我们样式 */
.about {
    padding: 50px 0;
    background-color: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 30px;
}

.about-text p {
    margin-bottom: 20px;
    color: #666;
    font-size: 16px;
    line-height: 1.8;
}

.about-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.about-images img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 联系我们样式 */
.contact {
    padding: 50px 0;
    background-color: #fff;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-item i {
    font-size: 1.8rem;
    color: #007bff;
    margin-top: 5px;
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #333;
}

.contact-item p {
    color: #666;
    font-size: 14px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* 页脚样式 */
.footer {
    background-color: #343a40;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #007bff;
}

.footer-section p {
    margin-bottom: 20px;
    color: #ddd;
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: #007bff;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: #0056b3;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.footer-section ul li a:hover {
    color: #007bff;
}

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

/* 响应式设计 */
@media (max-width: 992px) {
    .navbar .container {
        flex-wrap: wrap;
    }
    
    .search-bar {
        order: 3;
        flex-basis: 100%;
        margin: 15px 0;
    }
    
    .hero {
        padding: 100px 0;
        height: auto;
        min-height: 80vh;
    }
    
    .hero-text h1 {
        font-size: 2.8rem;
    }
    
    .hero-text p {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-buttons .btn {
        padding: 15px 40px;
        font-size: 1.1rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .about-text h2 {
        text-align: center;
    }
    
    /* 移动端导航菜单 */
    .navbar-menu.show {
        display: block;
        width: 100%;
        order: 4;
        margin-top: 15px;
    }
    
    .navbar-menu.show .menu {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .navbar-menu {
        display: none;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .hero-text p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .process-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .process-steps::before {
        display: none;
    }
    
    .step {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 1200px) {
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 25px;
    }
    
    .partner-item {
        max-width: 240px;
    }
    
    .partner-logo {
        min-height: 160px;
        padding: 30px 15px;
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 992px) {
    .partners {
        padding: 60px 0;
    }
    
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 20px;
    }
    
    .partner-item {
        max-width: 200px;
    }
    
    .partner-logo {
        min-height: 140px;
        padding: 25px 15px;
        width: 90px;
        height: 90px;
    }
    
    .partner-info h4 {
        font-size: 1.2rem;
    }
    
    .partner-info p {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .partners {
        padding: 50px 0;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .partner-item {
        max-width: 180px;
    }
    
    .partner-logo {
        min-height: 120px;
        padding: 20px 10px;
    }
    
    .partner-logo {
        width: 80px;
        height: 80px;
    }
    
    .partner-info {
        padding: 15px 10px;
    }
    
    .partner-info h4 {
        font-size: 1.1rem;
    }
    
    .partner-info p {
        font-size: 0.85rem;
    }
    
    .partners-description {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 50px 0;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .hero-buttons .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .services,
    .advantages,
    .process,
    .about,
    .contact,
    .partners {
        padding: 50px 0;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .partner-item {
        max-width: 100%;
    }
    
    .partner-logo {
        min-height: 100px;
        padding: 15px 10px;
    }
    
    .partner-logo {
        width: 70px;
        height: 70px;
    }
    
    .partner-info h4 {
        font-size: 1rem;
    }
    
    .partner-info p {
        font-size: 0.8rem;
    }
    
    .partners-description {
        font-size: 1rem;
        margin-bottom: 30px;
        padding: 0 10px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .about-images {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .navbar-actions .btn {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    /* 移动端按钮优化 */
    .btn {
        padding: 12px 20px;
        font-size: 16px;
        border-radius: 8px;
    }
    
    /* 移动端表单优化 */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 15px;
        font-size: 16px;
        border-radius: 8px;
    }
    
    /* 移动端间距优化 */
    .container {
        padding: 0 15px;
    }
    
    /* 移动端图标大小优化 */
    .service-icon,
    .advantage-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .step-number {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 107, 53, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
    }
}

.service-item,
.advantage-item,
.step,
.partner-item {
    animation: fadeInUp 0.6s ease forwards;
}

.service-item:nth-child(1),
.partner-item:nth-child(1) {
    animation-delay: 0.1s;
}

.service-item:nth-child(2),
.partner-item:nth-child(2) {
    animation-delay: 0.2s;
}

.service-item:nth-child(3),
.partner-item:nth-child(3) {
    animation-delay: 0.3s;
}

.service-item:nth-child(4),
.partner-item:nth-child(4) {
    animation-delay: 0.4s;
}

.service-item:nth-child(5),
.partner-item:nth-child(5) {
    animation-delay: 0.5s;
}

.service-item:nth-child(6) {
    animation-delay: 0.6s;
}

/* 滚动效果 */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #007bff;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
}

.scroll-top:hover {
    background-color: #0056b3;
}

