/* 全局样式 */
* {
    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: 80px; 
    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;
}

.nav-link:hover {
    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, var(--primary), var(--primary-light));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100px;
    color: var(--white);
    box-shadow: 0 10px 30px rgba(22,93,255,0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* 页脚 - 统一样式 */
.footer {
    background-color: #f5f5f5;
    padding: 50px 20px 60px;
    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: 64px;
    width: auto;
    object-fit: contain;
    display: block;
}

.footer-brand-name {
    font-size: 20px;
    font-weight: 800;
    color: #222;
    letter-spacing: 0.5px;
}

.footer-brand p {
    color: #555;
    font-size: 18px;
}

/* 链接列 */
.footer-column h3 {
    font-size: 22px;    
    font-weight: 600;   
    color: #222;        
    letter-spacing: 0.5px; 
}

.footer-column a {
    text-decoration: underline;
    font-size: 18px;
}

/* 页脚链接默认样式 + 平滑过渡 */
.footer-column a {
    font-size: 18px;    
    color: #666;        
    text-decoration: underline; 
    transition: color 0.3s ease;
}

/* 鼠标悬停变色 */
.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;
    }
}
