/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00A6B2;
    --secondary-color: #005EC9;
    --accent-color: #00C78E;
    --text-color: #333;
    --light-text: #666;
    --bg-color: #fff;
    --light-bg: #f5f7fa;
    --border-color: #e5e9f2;
    --gradient-primary: linear-gradient(129deg, #005EC9 0%, #00A6B2 52%, #00B2B0 74%, #00C78E 100%);
    --gradient-nav: linear-gradient(90deg, rgba( 25,110,237,0.95) 0%, rgba(0,166,178,0.95) 100%);
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* 导航栏样式 */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: var(--gradient-nav);
    padding: 0.5rem 0;
}

nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 1.2rem 5%;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 50px;
    width: auto;
    margin-left:40px;
}

.logo h1 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 500;
    opacity: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: #fff;
    font-weight: 400;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    bottom: -2px;
    left: 0;
    transition: width 0.3s ease;
}

.nav-links a:hover:after {
    width: 100%;
}

/* 主要内容区域 */
main {
    margin-top: -35px;
}

/* Hero区域 */
.hero {
    position: relative;
    height: 700px;
    overflow: hidden;
    /* background: var(--gradient-primary); */
    background-image: url('images/hm_swiper.jpg');
    background-size: cover;
    background-position: center;
    margin-top:120px;
}

@media screen and (max-width: 768px) {
    .hero {
        height: 500px;
        background: linear-gradient(180deg, #196EED 0%, #00A6B2 100%);
    }

    .hero-content {
        align-items: center;
        text-align: center;
        padding: 0 1.5rem;
    }

    .hero-content h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 300px;
    }

    .cta-button {
        width: 100%;
        padding: 1rem;
        font-size: 1.1rem;
    }

    .cta-button.primary {
        background-color: #fff;
        color: var(--secondary-color);
    }

    .cta-button.secondary {
        background-color: transparent;
        border: 2px solid #fff;
        color: #fff;
    }
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 5%;
    color: #fff;
}

.hero-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.cta-button {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button.primary {
    background-color: #fff;
    color: var(--secondary-color);
}

.cta-button.secondary {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 产品展示区域 */
.products {
    padding: 6rem 0;
    background-color: var(--light-bg);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.product-card {
    background: var(--bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.product-img {
    width: 100%;
    padding: 2rem;
    background: var(--light-bg);
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-img img {
    width: 80%;
    height: auto;
    transition: transform 0.4s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.product-info p {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    flex-grow: 1;
}

.product-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

.product-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,166,178,0.3);
}

/* 关于我们区域 */
.about {
    padding: 6rem 0;
    background: var(--bg-color);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    gap: 4rem;
    align-items: center;
}

.about-img {
    flex: 1;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--light-text);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

/* 解决方案区域 */
.solutions {
    padding: 6rem 0;
    background: var(--bg-color);
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.solution-item {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 12px;
    background: var(--light-bg);
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.solution-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.solution-item:hover::before {
    transform: scaleX(1);
}

.solution-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.solution-icon {
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.solution-item h3 {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.solution-item p {
    color: var(--light-text);
    line-height: 1.7;
}

/* 联系我们区域 */
.contact {
    padding: 6rem 0;
    background: var(--light-bg);
    position: relative;
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    align-items: start;
}

.contact-info {
    background: var(--bg-color);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: var(--light-bg);
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
}

.contact-form {
    background: var(--bg-color);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.contact-form h3 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.contact-form h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0,166,178,0.1);
    outline: none;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form button {
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,166,178,0.3);
}

/* 通用部分样式 */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--light-text);
    font-size: 1.1rem;
}

/* Footer样式 */
footer {
    background: var(--light-bg);
    padding: 4rem 0 0;
    margin-top: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.footer-column h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient-primary);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: var(--light-text);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-column ul li a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-column ul li a:hover::before {
    opacity: 1;
    left: -15px;
}

.footer-bottom {
    margin-top: 3rem;
    padding: 1.5rem 0;
    background: var(--gradient-primary);
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.footer-logo {
    height: 30px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-bottom p {
    color: white;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 移动端菜单按钮 */
.menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .product-grid,
    .solution-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-features {
        justify-content: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--gradient-nav);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .hero-content {
        text-align: center;
        align-items: center;
        padding: 0 1rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .product-grid,
    .solution-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .contact-form,
    .contact-info {
        padding: 1.5rem;
    }
}