
/* 
总体页面样式
使用深蓝色作为主色调，银灰色作为辅色，亮橙色作为点缀色，符合黄金比配色原则
确保页面在不同设备上响应良好，采用Flexbox和Grid布局
*/

/* 通用字体与背景 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    color: #333;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
    background: linear-gradient(90deg, #001f3f, #7f8c8d); /* 渐变背景 */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px;
    transition: background 0.5s ease;
}

.navbar:hover {
    background: linear-gradient(90deg, #002f5e, #95a5a6);
}

.navbar a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    padding: 10px 15px;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #f39c12; /* 点缀色高亮 */
}

/* 首屏横幅样式 */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center / cover;
    position: relative;
    color: #fff;
    text-align: center;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 31, 63, 0.5); /* 半透明覆盖层 */
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

.hero p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* 模块化内容区域 */
.section {
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 64px 0 rgba(31, 38, 135, 0.37);
}

.section img {
    width: 320px;
    height: 320px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.section img:hover {
    transform: scale(1.05);
}

.section-content {
    max-width: 800px;
    text-align: left;
    margin-top: 20px;
}

.section-content h2 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.section-content p {
    font-size: 16px;
    color: #ecf0f1;
    margin-bottom: 15px;
}

/* 代码块样式 */
.code-block {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    margin: 20px 0;
}

.code-block code {
    display: block;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

thead {
    background-color: #001f3f;
    color: #fff;
}

th, td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

th {
    font-family: 'Montserrat', sans-serif;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #f39c12;
    color: #fff;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
}

/* 动态导航高亮 */
.navbar a.active {
    border-bottom: 2px solid #f39c12;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }
    .hero {
        height: 60vh;
    }
    .section {
        padding: 40px 10px;
    }
    .hero h1 {
        font-size: 32px;
    }
    .hero p {
        font-size: 16px;
    }
    .section img {
        width: 240px;
        height: 240px;
    }
    .section-content h2 {
        font-size: 20px;
    }
    .section-content p {
        font-size: 14px;
    }
}

