
/* 基础样式与布局 */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(to bottom right, #0A192F, #7845B6);
    color: #D1D8E0;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: #FFC048;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

a {
    color: #6FCF97;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #FFC048;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to right, rgba(10, 25, 47, 0.8), rgba(120, 69, 182, 0.8));
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #FFC048;
}

.navbar .menu {
    display: flex;
    gap: 20px;
}

.navbar .menu a {
    color: #D1D8E0;
    font-size: 1rem;
    padding: 5px 10px;
    border-radius: 5px;
}

.navbar .menu a:hover {
    background: #6FCF97;
    color: #0A192F;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center/cover, 
                linear-gradient(to bottom, #0A192F, #7845B6);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #D1D8E0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* 动态星河背景 */
.star-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: stars 10s linear infinite;
}

@keyframes stars {
    from { transform: translateY(0); }
    to { transform: translateY(-100%); }
}

/* 模块化卡片设计 */
.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.card p {
    font-size: 0.9rem;
    color: #D1D8E0;
}

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

/* 示例数据展示 */
.data-section {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

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

.data-section li {
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
}

/* 文章内容排版 */
.article {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.article h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.article pre {
    background: #0A192F;
    color: #D1D8E0;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}

.article code {
    background: #7845B6;
    color: #D1D8E0;
    padding: 2px 5px;
    border-radius: 3px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

/* 提示信息 */
.tip {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #FFC048;
}

