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

/* 全局字体与背景 */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #121C3B, #5E34B7, #00D1AE);
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

.navbar a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 20px;
    font-size: 16px;
}

.navbar a:hover {
    text-decoration: underline;
}

/* 主页全屏布局 */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding-top: 80px;
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center;
    background-size: cover;
    position: relative;
    animation: gradientAnimation 10s ease infinite;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 28, 59, 0.6);
}

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

.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 48px;
    margin-bottom: 20px;
    color: #FFD700;
    animation: fadeIn 2s ease-in-out;
}

.hero button {
    background-color: #FFD700;
    color: #000000;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.hero button:hover {
    background-color: #FFA500;
}

/* 动画效果 */
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 内容区布局 */
.content {
    padding: 60px 20px;
    background: rgba(0, 0, 0, 0.5);
    flex: 1;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 36px;
    text-align: center;
    margin-bottom: 40px;
    color: #FFD700;
}

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

.card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, background 0.3s;
}

.card:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #FF9F1C, #FFC83D);
    box-shadow: 0 8px 20px rgba(255, 159, 28, 0.5);
}

.card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    margin-bottom: 10px;
}

.card p {
    font-size: 16px;
    line-height: 1.5;
}

/* 示例文章展示 */
.sample-article {
    margin-top: 60px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.sample-article h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    margin-bottom: 20px;
    color: #FFD700;
}

.sample-article p, .sample-article h3, .sample-article h4, .sample-article pre {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.sample-article pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 8px;
    overflow-x: auto;
}

.sample-article code {
    color: #00D1AE;
}

/* 提示信息 */
.footer-note {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    font-size: 14px;
    color: #ffffff;
}

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

@media (max-width: 1200px) {
    .navbar {
        padding: 15px 30px;
    }
    .hero h1 {
        font-size: 36px;
    }
    .section-title {
        font-size: 28px;
    }
}

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

@media (max-width: 768px) {
    .navbar a {
        margin-left: 10px;
        font-size: 14px;
    }
    .hero h1 {
        font-size: 28px;
    }
    .section-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 24px;
    }
    .hero button {
        padding: 12px 25px;
        font-size: 16px;
    }
    .section-title {
        font-size: 18px;
    }
}

@media (max-width: 320px) {
    .hero h1 {
        font-size: 20px;
    }
    .hero button {
        padding: 10px 20px;
        font-size: 14px;
    }
    .section-title {
        font-size: 16px;
    }
}

