
/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局字体和背景 */
body {
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #0F204A, #000000);
    color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 容器 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    padding: 40px 0;
}

/* 头部样式 */
header {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #0F204A, #001F54);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .logo {
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    font-weight: bold;
    color: #34C759;
}

nav {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #FFFFFF;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #34C759;
}

/* 英雄区域 */
.hero {
    grid-column: 1 / -1;
    height: 80vh;
    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;
    position: relative;
}

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

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

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

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

.hero .btn {
    padding: 12px 24px;
    background: #34C759;
    color: #FFFFFF;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.hero .btn:hover {
    background: #28a745;
    transform: scale(1.05);
}

/* 主要内容区域 */
.main {
    grid-column: 1 / -1;
    padding: 40px 0;
    background: linear-gradient(135deg, #001F54, #0F204A);
}

.section {
    grid-column: 1 / -1;
    margin-bottom: 40px;
}

.section h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 32px;
    color: #34C759;
    margin-bottom: 20px;
}

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

.section ul {
    list-style: disc inside;
    margin-bottom: 20px;
}

.section ul li {
    margin-bottom: 10px;
    color: #FFFFFF;
}

.section .code-block {
    background: #1a1a1a;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    color: #34C759;
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 20px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature {
    background: #002B61;
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.feature:hover {
    transform: translateY(-10px);
    background: #003C8F;
}

.feature img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 15px;
}

.feature h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    color: #34C759;
    margin-bottom: 10px;
}

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

/* 示例数据展示 */
.example-data {
    grid-column: 1 / -1;
    padding: 40px;
    background: #001F54;
    border-radius: 8px;
    margin-bottom: 40px;
}

.example-data h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 28px;
    color: #FF9500;
    margin-bottom: 20px;
    text-align: center;
}

.example-data article {
    max-height: 600px;
    overflow-y: auto;
}

.example-data pre {
    background: #2c2c2c;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
}

.example-data code {
    color: #34C759;
    font-family: 'Courier New', Courier, monospace;
}

/* 页脚 */
footer {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #0F204A, #001F54);
    padding: 20px 0;
    text-align: center;
    color: #FFFFFF;
    font-size: 14px;
}

/* 提示信息 */
.notice {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(52, 199, 89, 0.9);
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 1000;
    animation: fadeInOut 5s forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; }
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .hero h1 {
        font-size: 42px;
    }
    .hero p {
        font-size: 16px;
    }
}

@media (max-width: 1200px) {
    .container {
        width: 95%;
    }
}

@media (max-width: 1024px) {
    nav ul {
        display: none;
    }
    .hamburger {
        display: block;
        cursor: pointer;
        color: #FFFFFF;
        font-size: 24px;
    }
    .mobile-nav {
        display: none;
        position: absolute;
        top: 60px;
        right: 20px;
        background: #0F204A;
        padding: 20px;
        border-radius: 8px;
    }
    .mobile-nav ul {
        flex-direction: column;
        gap: 10px;
    }
    .mobile-nav.open {
        display: flex;
    }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: repeat(6, 1fr);
        padding: 20px 0;
    }
    .hero h1 {
        font-size: 36px;
    }
    .hero p {
        font-size: 14px;
    }
    .features {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .container {
        grid-template-columns: repeat(4, 1fr);
    }
    .hero h1 {
        font-size: 28px;
    }
    .hero p {
        font-size: 12px;
    }
    .features {
        grid-template-columns: 1fr;
    }
}

