* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    overflow: hidden;
    font-size: 18px;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    background: rgba(255,255,255,0.98);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    z-index: 1000;
}
/* Logo 样式 */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1; /* 占据可用空间的1份 */
}

.logo-img {
    height: 40px;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    flex: 1; /* 占据可用空间的1份 */
    justify-content: flex-end; /* 右对齐 */
}

.nav-links a {
    color: #2c3e50;
    text-decoration: none;
    position: relative;
    padding: 8px 0;
    font-size: 1.1em;
    font-weight: 500;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #3498db;
    transition: width 0.3s;
}

.nav-links a.active::after,
.nav-links a:hover::after {
    width: 100%;
}

/* 页面容器 */
.page-container {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

/* 渐变背景 */
.page {
    position: absolute;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 100px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    animation-fill-mode: forwards;
    clip-path: circle(150% at 50% 50%);
    opacity: 1; /* 初始状态为透明 */
    transition: opacity 0.3s ease;
    will-change: opacity; /* 优化动画性能 */
}

#home {
    background: linear-gradient(135deg, #f0f5ff 0%, #e6edff 100%);
}

#blog {
    background: linear-gradient(135deg, #e8f8f5 0%, #dbf1ec 100%);
}

#knowledge {
    background: linear-gradient(135deg, #fff9e6 0%, #fff2cc 100%);
}

#about {
    background: linear-gradient(135deg, #f5e8ff 0%, #eedcf9 100%);
}

/* 内容区域 */
.page-content {
    max-width: 900px;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 25px;
    color: #2c3e50;
    line-height: 1.3;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

p {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 35px;
    color: #4a5568;
    max-width: 700px;
}

/* 按钮样式 - 修改为悬停变橘色 */
.btn {
    display: inline-flex;
    padding: 15px 40px;
    background: linear-gradient(45deg, #3498db, #67b2e0);
    color: white;
    border-radius: 35px;
    text-decoration: none;
    margin: 15px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    border: none;
    cursor: pointer;
}
.btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(255, 190, 118, 0.4);
        background: linear-gradient(45deg, #ffb26b, #ffd56b);
}



.btn-external {
    background: linear-gradient(45deg, #2ecc71, #54d68d);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.btn-external:hover {
        background: linear-gradient(45deg, #ffb26b, #ffd56b);
}

/* 知识库列表样式 */
.knowledge-list {
    width: 100%;
    max-width: 700px;
    margin: 30px 0;
    text-align: left;
}

.knowledge-list ul {
    list-style-type: disc;
    padding-left: 30px;
    font-size: 1.2rem;
    line-height: 1.8;
}

.knowledge-list li {
    margin-bottom: 12px;
    color: #4a5568;
}

.copyright {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

.bottom-div {
    position: absolute;
    bottom: 0;
}

/* 现有样式保留，新增以下内容 */

/* 基础移动端重置 */
@media screen and (max-width: 768px) {
    html {
        font-size: 14px;
        -webkit-text-size-adjust: 100%;
    }

    body {
        overflow-x: hidden;
        touch-action: manipulation;
    }

    /* 页面容器调整 */
    .page-content {
        padding: 20px 15px;
        min-height: auto;
        width: 100%;
    }

    /* 标题优化 */
    h1 {
        font-size: 1.8rem;
        line-height: 1.4;
        margin-bottom: 15px;
    }

    /* 段落优化 */
    p {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* 导航栏优化 */
    .navbar {
        height: 60px;
        padding: 0 10px;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-links a {
        font-size: 0.9em;
    }

    /* 按钮优化 */
    .btn {
        padding: 12px 25px;
        min-width: 160px;
        font-size: 1rem;
    }

    /* 版权信息调整 */
    .about-copyright {
        font-size: 0.7rem;
        padding: 10px 0;
    }

}
/* 语言切换器样式 */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.flag-icon {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
}

/* 切换开关样式 */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #3498db;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2ecc71;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .navbar {
        padding: 0 10px;
    }
    
    .language-switcher {
        position: static;
        transform: none;
        order: 3; /* 放到最后 */
        margin-left: auto; /* 右对齐 */
    }
    
    .logo {
        flex: none;
    }
    
    .nav-links {
        display: none; /* 移动端可以隐藏导航链接或使用汉堡菜单 */
    }
}