
/* 基础样式重置 */
body, h1, h2, h3, p, ul, ol, li, button, a {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', Arial, sans-serif;
}
body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}
h1, h2, h3 {
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 1rem;
}
p {
    font-size: 1rem;
    margin-bottom: 1rem;
}
ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}
button, a {
    text-decoration: none;
    cursor: pointer;
}
/* 全局容器布局 */
.container {
    width: 90%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 2rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #003366;
    color: #fff;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
}
.navbar ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}
.navbar ul li a {
    color: #fff;
    font-size: 1rem;
    transition: color 0.3s ease-in-out;
}
.navbar ul li a:hover {
    color: #ff9800;
}
/* 首页横幅 */
.hero-banner {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, #003366, #4b0082);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    margin-top: 60px; /* 确保不被导航栏遮挡 */
}
.hero-banner h1 {
    font-size: 3rem;
    animation: fadeIn 2s ease-in-out;
}
.hero-banner p {
    font-size: 1.25rem;
    margin-top: 1rem;
    animation: slideUp 2s ease-in-out;
}
.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center/cover;
    opacity: 0.1;
    transform: rotate(30deg);
    z-index: -1;
}
/* 模块化内容区块 */
.module {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.module:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}
.module h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.module p {
    font-size: 1rem;
    color: #666;
}
.module .icon {
    display: block;
    font-size: 2rem;
    color: #007BFF;
    margin-top: 1rem;
    text-align: center;
}
/* 示例文章展示 */
.article-section {
    background-color: #e9ecef;
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
}
.article-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.article-section pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    font-size: 0.9rem;
}
.article-section code {
    color: #d45a3c;
    font-family: 'Courier New', monospace;
}
/* 加载动画 */
.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #ccc;
    border-top: 5px solid #007BFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
    display: block;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
/* 响应式设计 */
@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
        gap: 1rem;
    }
    .hero-banner h1 {
        font-size: 2rem;
    }
    .module {
        padding: 1.5rem;
    }
}
/* 提示信息 */
.notice {
    text-align: center;
    font-size: 1.25rem;
    color: #555;
    margin-top: 2rem;
}

