/* 全局重置与基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
}

body {
    background: linear-gradient(to right, #e6f7ff, #f0f8ff);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative; /* 为页脚绝对定位做支撑 */
}

/* 头部导航样式 */
header {
    padding: 2rem 5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain; /* 保证logo图标不变形 */
}
nav{ margin:0 6rem 0 0;}
nav a {
    text-decoration: none;
    color: #333;
    font-size: 1.1rem;
    margin-left: 2.5rem;
    transition: all 0.3s ease;
}

nav a.active {
    background: #0066cc;
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
}

nav a:hover:not(.active) {
    color: #0066cc;
}

/* 主内容区域样式 */
main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5rem;
    margin-top: 3rem;
}

main.indexmain{margin-top: 20rem;}

.text-section {
    flex: 1;
    max-width: 40%;
}



.btn {
    display: inline-block;
    background: #0066cc;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 2rem;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #0052a3;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

/* 图像区域样式 */
.image-section {
    flex: 1;
    display: flex;
    justify-content: center;
}

.ai-illustration {
    width: 100%;
    max-width: 800px;
    height: auto;
    object-fit: contain;
}


/*全局背景*/
#indexbg {
   background: url(../images/bg1.jpg) center 100% no-repeat;
    /* 核心：让背景图自适应容器/窗口大小 */
    background-size: cover; /* 覆盖整个容器，保持比例，超出部分裁剪 */
    background-attachment: fixed; /* 可选：固定背景，滚动时不跟随（增强视觉体验） */
    min-height: 100vh; /* 确保容器至少占满视口高度，适配窗口大小 */
    width: 100%; /* 宽度铺满窗口 */
}
#aboutbg {
    background: url(../images/bg2.jpg) center 100% no-repeat;
    /* 核心：让背景图自适应容器/窗口大小 */
    background-size: cover; /* 覆盖整个容器，保持比例，超出部分裁剪 */
    background-attachment: fixed; /* 可选：固定背景，滚动时不跟随（增强视觉体验） */
    min-height: 100vh; /* 确保容器至少占满视口高度，适配窗口大小 */
    width: 100%; /* 宽度铺满窗口 */
}

/* 关于我们内容样式 */
.about-main {
    align-items: flex-start; /* 文字顶部对齐 */
    padding-top: 1rem;
}

.about-text {
    max-width: 45%; /* 适配文字宽度 */
}

.about-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-top: 1.5rem;
}

.about-image {
    max-width: 55%; /* 适配插画宽度 */
}

.about-illustration {
    width: 100%;
    max-width: 850px;
    height: auto;
    object-fit: contain;
}

/* 页脚样式 */
footer {
    position: absolute;
    bottom: 5rem;
    left: 20%;
    transform: translateX(-50%);
    color: #666;
    font-size: 0.9rem;
    text-align: left;
	line-height: 1.4rem;
}

footer img{width: 14px;height: 14px;}

/* 响应式适配 - 平板及以下 */
@media (max-width: 1200px) {
    main {
        flex-direction: column;
        text-align: left;
    }

    .text-section {
        max-width: 100%;
        margin-bottom: 3rem;
    }

    .ai-illustration {
        max-width: 600px;
    }
}

/* 响应式适配 - 手机 */
@media (max-width: 768px) {
    header {
        padding: 1.5rem 2rem;
        flex-direction: column;
        gap: 1rem;
    }

    nav {
        margin-top: 1rem;
    }

    nav a {
        margin-left: 1rem;
        font-size: 1rem;
    }

    main {
        padding: 0 2rem;
    }

    .text-section .cn-title {
        font-size: 2.2rem;
    }

    footer {
        font-size: 0.8rem;
        padding: 0 1rem;
    }
}