
/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0F3460, #4C2A85);
    color: #FFFFFF;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(15, 52, 96, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    box-sizing: border-box;
    z-index: 1000;
}

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

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

.navbar ul li {
    position: relative;
}

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

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

/* 英雄区样式 */
.hero {
    height: 100vh;
    background: url('https://images.gptkong.com/demo/sample1.png') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.hero h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #FFD700, #FFFFFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.hero .btn {
    padding: 12px 30px;
    font-size: 16px;
    background-color: #FFD700;
    color: #0F3460;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.hero .btn:hover {
    background-color: #FFFFFF;
}

/* 主内容区样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 50px 20px;
    box-sizing: border-box;
}

.section-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
    color: #FFD700;
}

.article {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.article h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.article h3 {
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.article p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.article pre {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

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

.article ul {
    list-style: disc inside;
    margin-bottom: 15px;
}

.article table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.article table, .article th, .article td {
    border: 1px solid #FFD700;
}

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

.article img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 10px;
}

/* 示例数据展示样式 */
.sample-data {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    margin-top: 50px;
}

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

.sample-data ul {
    list-style: none;
    padding: 0;
}

.sample-data li {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
}

.sample-data li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #FFD700;
}

/* 提示信息样式 */
.reference-note {
    text-align: center;
    font-size: 14px;
    color: #FFFFFF;
    margin: 40px 0;
}

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

@media (max-width: 1200px) {
    .navbar {
        padding: 15px 30px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .container {
        padding: 80px 15px 40px 15px;
    }
}

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 32px;
    }

    .navbar ul {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar ul {
        flex-direction: column;
        width: 100%;
    }

    .navbar ul li {
        width: 100%;
    }

    .navbar ul li a {
        display: block;
        width: 100%;
        padding: 10px 0;
    }

    .hero h1 {
        font-size: 28px;
    }

    .article {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 10px 20px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .container {
        padding: 60px 10px 30px 10px;
    }

    .section-title {
        font-size: 28px;
    }

    .article h2 {
        font-size: 24px;
    }

    .article h3 {
        font-size: 20px;
    }
}

@media (max-width: 320px) {
    .navbar ul {
        display: none;
    }

    .hero h1 {
        font-size: 20px;
    }

    .article pre {
        font-size: 14px;
    }
}

/* 动画效果 */
.fade-in {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.fade-in.visible {
    opacity: 1;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #0F3460;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

/* 按钮悬停效果 */
.btn:hover {
    background-color: #FFFFFF;
    color: #0F3460;
}

/* 图标样式 */
.icon-lock, .icon-star {
    fill: #FFD700;
    width: 24px;
    height: 24px;
}

