
/* 全局样式设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #00008B, #8A2BE2, #4682B4);
    color: white;
    overflow-x: hidden;
}
h1, h2, h3 {
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #FFA500;
}
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px;
}

/* 英雄区设计 */
.hero-section {
    position: relative;
    height: 100vh;
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center, 
                linear-gradient(135deg, #00008B, #8A2BE2, #4682B4);
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.hero-section .content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}
.hero-section .button {
    padding: 15px 30px;
    background-color: #FFD700;
    color: #000;
    border-radius: 50px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}
.hero-section .button:hover {
    background-color: #FFA500;
}

/* 网格布局 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.grid-item {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.grid-item:hover {
    transform: translateY(-5px);
}
.grid-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* 动画效果 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-section .content h1 {
        font-size: 2.5rem;
    }
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}
@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    .hero-section .content h1 {
        font-size: 2rem;
    }
    .hero-section .button {
        padding: 10px 20px;
    }
}

/* 文章排版 */
.article {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    margin-top: 40px;
}
.article h2 {
    margin-bottom: 20px;
}
.article pre {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}
.article code {
    color: #FFD700;
}

