
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    background: linear-gradient(135deg, #0d47a1 70%, #ff8f00 25%, #00e5ff 5%);
    transition: background 0.5s ease-in-out;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background 0.3s;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 1);
}

.navbar a {
    color: #00e5ff;
    text-decoration: none;
    margin: 0 15px;
    font-family: 'Roboto', sans-serif;
    transition: color 0.3s;
}

.navbar a:hover {
    color: #ff8f00;
}

/* 主视觉区样式 */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.gptkong.com/demo/sample1.png') center center / cover no-repeat;
    opacity: 0.5;
    z-index: -1;
}

.hero-text {
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeIn 2s ease-in-out;
}

/* 渐变背景动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 栅格系统 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 60px 20px;
}

.grid-item {
    background: rgba(30, 30, 30, 0.9);
    color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s, background 0.3s;
}

.grid-item:hover {
    transform: translateY(-10px);
    background: rgba(38, 50, 56, 0.95);
}

/* 按钮样式 */
.button {
    background: #ff8f00;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    font-family: 'Roboto', sans-serif;
}

.button:hover {
    background: #ff6f00;
    transform: translateY(-3px);
}

.button:active {
    background: #e65100;
    transform: translateY(0);
}

/* 图片样式 */
img.decorative {
    width: 100%;
    max-width: 320px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

img.decorative:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

/* 文章样式 */
article {
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.85);
    margin: 40px auto;
    max-width: 1200px;
    border-radius: 10px;
}

article h2, article h3 {
    color: #00e5ff;
    font-family: 'Roboto', sans-serif;
}

article p {
    font-size: 16px;
    line-height: 1.6;
    color: #ffffff;
}

article pre code {
    display: block;
    padding: 15px;
    background: #1e1e1e;
    border-radius: 5px;
    overflow-x: auto;
    color: #00e5ff;
    font-family: 'Courier New', Courier, monospace;
}

/* 章节导航样式 */
.chapter-nav {
    position: fixed;
    top: 100px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 5px;
}

.chapter-nav a {
    display: block;
    color: #00e5ff;
    margin: 5px 0;
    text-decoration: none;
    font-size: 14px;
}

.chapter-nav a:hover {
    color: #ff8f00;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .chapter-nav {
        display: none;
    }
    
    .hero-text {
        font-size: 2rem;
        padding: 0 20px;
    }
    
    .grid-container {
        padding: 30px 10px;
    }
    
    article {
        padding: 20px 10px;
    }
}

