
/* 基础样式设置 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #121212;
    color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
}
a {
    color: #00FFAA;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #00CC88;
}
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}
h1, h2, h3, h4, h5, h6 {
    color: #00DDFF;
    margin-top: 30px;
    margin-bottom: 15px;
}
p {
    font-size: 1rem;
    margin-bottom: 15px;
}
pre {
    background-color: #222222;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}
code {
    color: #00FFAA;
}

/* 头部导航栏设计 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5));
    z-index: 1000;
    transition: background 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}
.header.scrolled {
    background: rgba(0, 0, 0, 0.9);
}
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00FFAA;
}
.nav-links {
    display: flex;
    gap: 20px;
}
.nav-links a {
    font-size: 1rem;
    padding: 5px 10px;
    border-radius: 5px;
}
.nav-links a:hover {
    background-color: rgba(0, 255, 170, 0.2);
}

/* 主内容区域布局 */
.main-content {
    padding-top: 100px;
    min-height: calc(100vh - 150px);
}
.hero-section {
    height: 100vh;
    background: url('https://images.gptkong.com/demo/sample1.png'), linear-gradient(135deg, #000033, #121212);
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #FFFFFF;
}
.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}
.hero-section p {
    font-size: 1.2rem;
    max-width: 600px;
}

/* 卡片布局设计 */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 50px;
}
.card {
    background-color: #222222;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}
.card:hover {
    transform: translateY(-10px);
}
.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.card-content {
    padding: 15px;
}
.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.card-content p {
    font-size: 0.9rem;
}

/* 动态背景与视差滚动 */
.parallax {
    height: 500px;
    background-image: url('https://images.gptkong.com/demo/sample2.png');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFFFFF;
    text-align: center;
}
.parallax h2 {
    font-size: 2.5rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-links {
        flex-direction: column;
        gap: 10px;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
    .card-container {
        grid-template-columns: 1fr;
    }
}

/* 底部区域设计 */
.footer {
    background: linear-gradient(to top, #000033, #121212);
    color: #CCCCCC;
    padding: 30px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}
.footer-section {
    margin-bottom: 20px;
}
.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}
.footer-section ul {
    list-style: none;
    padding: 0;
}
.footer-section ul li {
    margin-bottom: 5px;
}
.social-icons {
    display: flex;
    gap: 15px;
}
.social-icons a {
    font-size: 1.5rem;
    color: #FFFFFF;
    transition: color 0.3s ease;
}
.social-icons a:hover {
    color: #00FFAA;
}

