/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;
    scroll-behavior: smooth;
}

:root {
    --primary: #3b71ee;
    --primary-light: #4080FF;
    --primary-dark: #4f75d6;
    --white: #ffffff;
    --light: #f8f9fa;
    --gray: #f5f7fa;
    --text: #333333;
    --text-light: #666666;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
}

body {
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

/* 导航栏 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    height: 80px; 
    max-width: 1200px;
    margin: 0 auto;
}

/* 导航栏 Logo 容器 */
.logo {
    display: flex;
    align-items: center;
    gap: 10px; 
    height: 100%;
}

/* Logo 图片 */
.logo-img {
    height: 50px; 
    width: auto;
    object-fit: contain;
    display: block;
}

/* Logo 文字  */
.logo-text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 28px;
    font-weight: 500;
    color: #222222;
    letter-spacing: 0.02em; 
    line-height: 1;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .logo-img {
        height: 28px;
    }
    .logo-text {
        font-size: 24px;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #222222;          
    font-weight: 600;        
    font-size: 17px;         
    letter-spacing: 0.5px;  
    transition: color 0.3s ease;
}

/* hover 颜色 */
.nav-link:hover {
    color: #6c2bd9;
}

/* 当前页面高亮（关键）*/
.nav-link.active {
    color: #6c2bd9;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* 轮播图 */
.carousel {
    margin-top: 70px;
    height: 450px;
    position: relative;
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(32, 111, 214, 0.85), rgba(137, 229, 143, 0.7));
    color: var(--white);
}

.carousel-item.active {
    opacity: 1;
}

.carousel-content {
    max-width: 800px;
    padding: 0 20px;
}

.carousel-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.carousel-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.carousel-btn {
    display: inline-block;
    padding: 12px 35px;
    background: var(--white);
    color: var(--primary);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--white);
    width: 25px;
    border-radius: 6px;
}

/* 通用标题 */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary);
}

.section-title p {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* 产品服务 */
.products {
    background: var(--gray);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(22,93,255,0.15);
}

.card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: rgba(22,93,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 28px;
    transition: all 0.3s ease;
}

.product-card:hover .card-icon {
    background: var(--primary);
    color: var(--white);
}

.product-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text);
}

.product-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* 公司简介 */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text .section-title {
    text-align: left;
}

.about-text .section-title h2::after {
    left: 0;
    transform: none;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 16px;
}

.about-features {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 500;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-custom-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 保持比例、完整显示 */
    display: block;
}

.image-box {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #e8f0ff, #f0f7ff);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100px;
    color: var(--primary);
    box-shadow: 0 10px 30px rgba(22, 93, 255, 0.12);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* 页脚 - 统一样式 */
.footer {
    background-color: #f5f5f5;
    padding: 40px 20px 40px;
    color: #333;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

/* 品牌列 */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
    display: block;
}

.footer-brand-name {
    font-size: 20px;
    font-weight: 800;
    color: #222;
    letter-spacing: 0.5px;
}

.footer-brand-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.footer-brand p {
    color: #555;
    font-size: 18px;
}

/* 链接列 */
.footer-column h3 {
    font-size: 22px;    
    font-weight: 600;   
    color: #222;         
}

/* 页脚链接默认样式 + 平滑过渡 */
.footer-column a {
    font-size: 18px;
    color: #666;
    text-decoration: underline;
    transition: color 0.3s ease;

    display: inline-block; /* 让上下内边距生效 */
    padding-top: 16px;      /* 字体上方空出 6px，可改 4px~10px */
    line-height: 1.5;      /* 行高，整体更舒服 */
}

/* 鼠标悬停变色 */
.footer-column a:hover {
    color: #0737f8;             
}

/* 版权信息 */
.footer-copyright {
    text-align: center;
    padding-top: 20px;
    color: #555;
    font-size: 15px;
}

/* 移动端适配 */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-logo {
        justify-content: center;
    }
    .footer-column h4 {
        font-size: 28px;
    }
    .footer-column a,
    .footer-column p {
        font-size: 20px;
    }
}

.media-text {
    display: grid;
    align-items: center;
    gap: 40px;
    margin: 40px 0;
}
.media-text.right {
    grid-template-columns: 1fr 32%;
}
.media-text.left {
    grid-template-columns: 41% 1fr;
}
.media-text .title {
    font-size: 30px; /* 标题放大 */
    font-weight: bold;
    margin-bottom: 16px;
}
.media-text p {
    font-size: 20px; /* 正文字体 */
    margin-bottom: 16px;
    line-height: 1.8;
}
.media-text ul {
    font-size: 17px; /* 列表字体 */
    margin-left: 20px;
    line-height: 2;
    margin-bottom: 16px;
}
.media-text-image img {
    width: 100%;
    height: auto;
    display: block;
}
.btn-service {
    display: inline-block;
    padding: 12px 24px;
    background: #3b71ee;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
}

.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}
.pillar-card {
    border: 1px solid #e5e5e5;
    border-bottom: 4px solid #d60000;
    padding: 40px 30px;
    text-align: center;
    background: #fff;
    transition: all 0.3s ease;
}
.pillar-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-6px);
}
.pillar-icon {
    font-size: 46px;
    color: #d60000;
    margin-bottom: 15px;
}
.pillar-title {
    font-size: 20px; /* 卡片标题 */
    font-weight: bold;
    margin-bottom: 15px;
}
.pillar-desc {
    font-size: 16px; /* 卡片描述 */
    color: #555;
    line-height: 1.8;
}

.wa-hero-wrap{
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}
.wa-hero{
    display: flex;
    align-items: center;
    gap: 0;
}
.wa-left{
    flex: 0.9;
    background: #f5f5f5;
    padding: 50px 20px 50px 40px;
    border: 2px solid #333;
}
.wa-left p{
    font-size: 18px; /* 左侧文字 */
    line-height: 1.9;
    color: #333;
}
.wa-right{
    flex: 1.6;
}
.wa-right img{
    width: 100%;
    height: auto;
    display: block;
}
.wa-btn-area{
    text-align: center;
    margin-top: 50px;
}
.wa-btn{
    display: inline-block;
    padding: 16px 60px;
    background: #1677ff;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    border-radius: 6px;
    transition: 0.3s;
}
.wa-btn:hover{
    background: #0e5edc;
}

@media (max-width: 900px){
    .media-text.right,
    .media-text.left {
        grid-template-columns: 1fr;
    }
    .pillars {
        grid-template-columns: 1fr;
    }
    .wa-hero{
        flex-direction: column;
    }
}