
/* 主色调变量定义 */
:root {
    --primary-color: #0d47a1; /* 深蓝色，传达专业与科技感 */
    --secondary-color: #eceff1; /* 灰白色，作为主背景色 */
    --accent-color-orange: #ff9800; /* 亮橙色，用于按钮和交互元素 */
    --accent-color-green: #4caf50; /* 绿色，用于辅助交互元素 */
    --text-color: #424242; /* 正文字体颜色 */
    --background-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --font-family: 'Helvetica Neue', Arial, sans-serif; /* 全局字体 */
}

/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    background: var(--background-gradient);
    color: var(--text-color);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden; /* 防止出现水平滚动条 */
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--primary-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease;
}

.navbar a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: var(--accent-color-orange);
}

/* 首屏大横幅样式 */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: var(--background-gradient);
    position: relative;
    overflow: hidden;
    padding-top: 60px; /* 避免导航栏遮挡内容 */
}

.hero::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background-image: url('https://images.gptkong.com/demo/sample1.png');
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.1;
    transform: rotate(45deg);
    animation: moveBackground 20s linear infinite;
}

.hero-content {
    position: relative;
    text-align: center;
    color: var(--secondary-color);
    z-index: 1;
}

.hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

@keyframes moveBackground {
    from {
        transform: rotate(45deg) translateX(0);
    }
    to {
        transform: rotate(45deg) translateX(100px);
    }
}

/* 文章内容容器 */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
    padding: 60px 20px 40px 20px;
}

/* 文章模块样式 */
.module {
    background-color: var(--secondary-color);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.module:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.2);
}

.module h2, .module h3 {
    color: var(--primary-color);
}

.module p {
    font-size: 16px;
    color: var(--text-color);
}

/* 图片样式 */
.module img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 代码块样式 */
pre {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    overflow: auto;
    position: relative;
}

pre::before {
    content: '代码块示例';
    position: absolute;
    top: -20px;
    left: 10px;
    background-color: #0d47a1;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

code {
    font-family: 'Courier New', Courier, monospace;
    color: #d32f2f;
}

/* 按钮样式 */
.btn {
    padding: 12px 24px;
    background-color: var(--accent-color-green);
    color: var(--secondary-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background-color: var(--accent-color-orange);
    transform: translateY(-5px);
}

/* 客户评价样式 */
.testimonials {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 40px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 8px;
}

.testimonial {
    background-color: var(--secondary-color);
    color: #424242;
    padding: 20px;
    border-left: 4px solid var(--accent-color-green);
    transition: border-left-color 0.3s ease;
}

.testimonial:hover {
    border-left-color: var(--accent-color-orange);
}

.testimonial-author {
    margin-top: 10px;
    font-weight: bold;
    text-align: right;
}

/* 多语言切换器样式 */
.language-switcher {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.language-switcher button {
    background-color: var(--secondary-color);
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.language-switcher button:hover {
    background-color: var(--accent-color-orange);
    color: var(--primary-color);
}

/* Footer样式 */
.footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 40px 20px;
    text-align: center;
}

.footer a {
    color: var(--accent-color-orange);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--accent-color-green);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: center;
    }

    .navbar a {
        padding: 10px 0;
    }

    .hero-title {
        font-size: 32px;
    }

    .container {
        grid-template-columns: 1fr;
        padding: 40px 10px 20px 10px;
    }
}

