
/* 全局样式设置 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1E272E, #6D21A1);
    color: white;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    color: #4CAF50;
}

a {
    color: #FFC107;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

.header {
    position: sticky;
    top: 0;
    background: rgba(30, 39, 46, 0.9);
    padding: 20px 0;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    font-size: 18px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #FF5722;
}

.hero {
    height: 400px;
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center/cover, linear-gradient(135deg, #1E272E, #6D21A1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero h1 {
    font-size: 48px;
    z-index: 1;
}

.split-container {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.left-section, .right-section {
    flex: 1;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.left-section {
    background: #1E272E;
}

.right-section {
    background: #6D21A1;
}

.split-container:hover .left-section {
    transform: translateX(-10px);
}

.split-container:hover .right-section {
    transform: translateX(10px);
}

.card {
    background: white;
    color: black;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.article {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-top: 40px;
    color: white;
}

.article pre {
    background: #1E272E;
    color: #FFC107;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}

.footer {
    margin-top: auto;
    padding: 20px 0;
    background: rgba(30, 39, 46, 0.9);
    width: 100%;
    text-align: center;
}

@media (max-width: 768px) {
    .split-container {
        flex-direction: column;
    }

    .hero h1 {
        font-size: 36px;
    }
}

