
/* 
整体页面设置：采用深蓝色作为主色调，搭配亮紫色和青色的渐变细节，营造出强烈的科技感和未来感。使用现代无衬线字体Roboto，确保文本的清晰可读性。
*/
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    color: #fff;
    line-height: 1.6;
}

/* 
导航栏样式：固定在顶部，使用半透明背景，包含品牌logo和导航链接。导航链接在悬停时颜色发生变化，增强互动性。
*/
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 42, 108, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    z-index: 1000;
}

.navbar a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s;
}

.navbar a:hover {
    color: #fdbb2d;
}

/* 
主视觉区样式：全屏高度，背景为抽象科技插画，中央对齐的标题和CTA按钮。CTA按钮具有悬停放大和颜色变化效果。
*/
.hero {
    height: 100vh;
    background: url('https://images.gptkong.com/demo/sample1.png') center center / cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease-out;
}

.cta-button {
    padding: 15px 30px;
    background: #fdbb2d;
    border: none;
    border-radius: 25px;
    color: #1a2a6c;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.cta-button:hover {
    background: #fff;
    transform: scale(1.05);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 
章节导航样式：固定在页面一侧，包含各章节的链接，点击后平滑滚动到对应内容区域。
*/
.chapter-nav {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.chapter-nav a {
    color: #fff;
    text-decoration: none;
    margin: 10px 0;
    padding: 10px;
    background: rgba(26, 42, 108, 0.7);
    border-radius: 5px;
    transition: background 0.3s, transform 0.3s;
}

.chapter-nav a:hover {
    background: #fdbb2d;
    transform: translateX(5px);
}

/* 
内容模块样式：模块化布局，使用CSS Grid实现响应式设计。每个模块具有阴影和悬停提升效果。
*/
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 100px 50px;
    background: rgba(26, 42, 108, 0.8);
}

.feature-module {
    background: #fff;
    color: #1a2a6c;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.feature-module h3 {
    margin-bottom: 15px;
    font-size: 1.5em;
}

/* 
文章内容样式：文章区块采用白色背景和圆角，文字颜色为深蓝，与整体风格协调。代码块具有独特的背景和字体样式。
*/
.article {
    padding: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 50px;
}

.article h2, .article h3 {
    color: #fdbb2d;
}

.article pre {
    background: #1a2a6c;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

.article code {
    color: #fdbb2d;
    font-family: 'Courier New', Courier, monospace;
}

/* 
用户评价区样式：水平滚动布局，卡片式设计，每个评价卡片具有圆角和阴影效果。
*/
.testimonials {
    display: flex;
    overflow-x: scroll;
    padding: 50px;
    background: #1a2a6c;
}

.testimonial {
    flex: 0 0 300px;
    background: #fff;
    color: #1a2a6c;
    margin-right: 20px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.testimonial img {
    border-radius: 50%;
    margin-bottom: 15px;
    width: 60px;
    height: 60px;
}

.testimonial p {
    font-style: italic;
}

/* 
联系表单样式：简洁的表单设计，透明背景，圆角输入框和按钮，具有悬停效果。
*/
.contact-form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto 50px auto;
    padding: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.contact-form input,
.contact-form textarea {
    margin-bottom: 15px;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
}

.contact-form button {
    padding: 15px;
    background: #fdbb2d;
    border: none;
    border-radius: 25px;
    color: #1a2a6c;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    font-size: 1em;
}

.contact-form button:hover {
    background: #fff;
    transform: scale(1.05);
}

/* 
折叠区域样式：次要信息采用隐藏内容，通过点击按钮展开，增强页面层次感。
*/
.collapsible {
    background-color: rgba(26, 42, 108, 0.7);
    color: #fff;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1.2em;
    border-radius: 5px;
    margin-top: 20px;
}

.active, .collapsible:hover {
    background-color: #fdbb2d;
    color: #1a2a6c;
}

.content {
    padding: 0 18px;
    display: none;
    overflow: hidden;
    background-color: rgba(26, 42, 108, 0.5);
    border-radius: 5px;
    margin-bottom: 20px;
}

.content p {
    padding: 18px;
}

/* 
加载动画样式：页面加载时显示的旋转加载器。
*/
.loading-spinner {
    border: 8px solid rgba(255, 255, 255, 0.3);
    border-top: 8px solid #fdbb2d;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 100px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 
响应式设计：确保在不同屏幕尺寸下布局自适应，没有横向滚动条。
*/
@media (max-width: 768px) {
    .navbar {
        padding: 10px 20px;
    }

    .chapter-nav {
        display: none;
    }

    .features {
        padding: 50px 20px;
    }

    .contact-form {
        padding: 30px;
    }
}

/* 
图像样式：所有装饰性图片采用圆角、阴影和悬停放大效果。
*/
.decorative-image {
    width: 320px;
    height: 320px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.decorative-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

