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

/* 全局字体与背景 */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(to bottom, #0F3460, #1A202C);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 容器设置 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 32, 44, 0.9);
    padding: 15px 0;
    z-index: 1000;
    transition: background 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-family: 'Raleway', sans-serif;
    font-size: 24px;
    font-weight: bold;
    color: #38B2AC;
}

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

.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: #F56565;
}

/* 移动端菜单 */
.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu div {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 4px 0;
    transition: all 0.3s ease;
}

/* 主视觉区 */
.hero {
    height: 100vh;
    background: url('https://images.gptkong.com/demo/sample1.png') center center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

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

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

.hero-content h1 {
    font-family: 'Raleway', sans-serif;
    font-size: 48px;
    margin-bottom: 20px;
    color: #38B2AC;
}

.hero-content p {
    font-size: 20px;
    color: #ffffff;
}

/* 文章与示例数据展示 */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #38B2AC;
}

.article, .sample-data {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.article h2, .article h3 {
    color: #F56565;
    margin-bottom: 20px;
}

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

.article pre {
    background: #1A202C;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 15px;
}

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

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

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

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

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

.sample-data li {
    margin-bottom: 20px;
}

.sample-data h4 {
    color: #F56565;
    margin-bottom: 10px;
}

.sample-data p {
    font-size: 16px;
}

.sample-data b {
    color: #38B2AC;
}

/* 按钮样式 */
.button {
    background-color: #38B2AC;
    color: #ffffff;
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 16px;
}

.button:hover {
    background-color: #F56565;
}

/* 动画效果 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 表格样式 */
.table-responsive {
    overflow-x: auto;
}

table th {
    background-color: #38B2AC;
    color: #ffffff;
}

table td {
    background-color: rgba(255, 255, 255, 0.1);
}

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

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

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

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

    .mobile-menu {
        display: flex;
    }

    .hero-content h1 {
        font-size: 32px;
    }
}

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

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

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

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 24px;
    }

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

@media (max-width: 320px) {
    .hero-content h1 {
        font-size: 20px;
    }

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