
/* 基本样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #0A2463, #87CEEB);
    color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 36, 99, 0.9);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 36, 99, 1);
}

.navbar .logo {
    font-size: 24px;
    font-weight: bold;
    color: #FFD700;
    text-decoration: none;
}

.navbar ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.navbar ul li {
    margin-left: 20px;
}

.navbar ul li a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.navbar ul li a:hover {
    color: #FFD700;
}

/* 英雄区样式 */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('https://images.gptkong.com/demo/sample5.png') center center / cover no-repeat;
    position: relative;
    text-align: center;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 36, 99, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 18px;
    color: #FFFFFF;
}

.hero .cta-button {
    margin-top: 30px;
    padding: 15px 30px;
    background-color: #FFD700;
    color: #0A2463;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

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

/* 主要内容区 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 50px 20px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.section {
    grid-column: span 12;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.section h2 {
    font-size: 32px;
    color: #FFD700;
    margin-bottom: 20px;
}

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

.section img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 20px;
}

/* 模块化布局 */
.module {
    grid-column: span 4;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, background 0.3s ease;
}

.module:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
}

.module h3 {
    font-size: 24px;
    color: #FFD700;
    margin-bottom: 10px;
}

.module p {
    font-size: 14px;
    color: #FFFFFF;
}

/* 按钮样式 */
.button-primary {
    display: inline-block;
    padding: 10px 20px;
    background-color: #FFD700;
    color: #0A2463;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.button-primary:hover {
    background-color: #FFB700;
    transform: scale(1.05);
}

/* 示例数据展示区 */
.sample-data {
    grid-column: span 12;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.sample-data h2 {
    font-size: 28px;
    color: #FFD700;
    margin-bottom: 15px;
}

.sample-data article {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.sample-data article h2 {
    font-size: 24px;
    color: #FFD700;
    margin-bottom: 10px;
}

.sample-data article h3 {
    font-size: 20px;
    color: #FFD700;
    margin-top: 20px;
    margin-bottom: 10px;
}

.sample-data article p {
    font-size: 14px;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.sample-data article code {
    display: block;
    background: #0A2463;
    color: #FFD700;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 10px;
}

.sample-data article pre {
    background: #0A2463;
    color: #FFD700;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
}

.sample-data article table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.sample-data article table, 
.sample-data article th, 
.sample-data article td {
    border: 1px solid #FFFFFF;
}

.sample-data article th, 
.sample-data article td {
    padding: 10px;
    text-align: left;
}

.sample-data article th {
    background: #FFD700;
    color: #0A2463;
}

/* 提示信息样式 */
.notice {
    text-align: center;
    padding: 20px;
    background: rgba(255, 215, 0, 0.8);
    color: #0A2463;
    font-size: 18px;
    border-radius: 10px;
    margin: 20px 0;
}

/* 页脚样式 */
.footer {
    grid-column: span 12;
    text-align: center;
    padding: 20px;
    background: rgba(10, 36, 99, 0.9);
    color: #FFFFFF;
}

.footer p {
    margin: 0;
    font-size: 14px;
}

/* 响应式设计 */
/* 小尺寸手机 */
@media (max-width: 320px) {
    .navbar {
        padding: 10px 20px;
    }
    .navbar .logo {
        font-size: 20px;
    }
    .navbar ul li {
        margin-left: 10px;
    }
    .hero h1 {
        font-size: 28px;
    }
    .hero p {
        font-size: 14px;
    }
    .container {
        padding: 80px 10px 30px 10px;
    }
    .module {
        grid-column: span 12;
    }
}

/* 大尺寸手机 */
@media (max-width: 480px) {
    .navbar ul li a {
        font-size: 14px;
    }
    .hero h1 {
        font-size: 32px;
    }
    .hero p {
        font-size: 16px;
    }
    .module {
        grid-column: span 6;
    }
}

/* 竖屏平板 */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 30px;
    }
    .hero h1 {
        font-size: 36px;
    }
    .container {
        padding: 90px 15px 40px 15px;
    }
    .module {
        grid-column: span 6;
    }
}

/* 中等屏幕 */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 40px;
    }
    .module {
        grid-column: span 4;
    }
}

/* 桌面显示器 */
@media (max-width: 1200px) {
    .container {
        padding: 100px 20px 50px 20px;
    }
    .module {
        grid-column: span 3;
    }
}

/* 大尺寸桌面显示器 */
@media (min-width: 1440px) {
    .hero h1 {
        font-size: 56px;
    }
    .container {
        padding: 120px 40px 60px 40px;
    }
    .module {
        grid-column: span 3;
    }
}

/* 动画与过渡效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 2s ease-in-out;
}

/* 自适应代码块 */
pre, code {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Courier New', Courier, monospace;
}

/* 段落留白 */
section p {
    margin-bottom: 1em;
}

/* 链接样式 */
a {
    color: #FFD700;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

