
/* 全局样式 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    color: #ffffff;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    overflow-x: hidden;
    line-height: 1.6;
}
h1, h2, h3 {
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}
a {
    color: #4a90e2;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #2c78d6;
}
code {
    display: block;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    color: #a6e22e;
}
pre {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow-x: auto;
}

/* 头部设计 */
header {
    position: relative;
    height: 100vh;
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center/cover;
    background-attachment: fixed;
}
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}
header .title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}
header .title h1 {
    font-size: 3rem;
    animation: slideIn 2s forwards;
}
header .title p {
    font-size: 1.2rem;
    color: #bdc3c7;
}

/* 动画效果 */
@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
section {
    padding: 4rem 2rem;
    animation: fadeIn 1.5s ease-in-out;
}
section:nth-child(even) {
    background: radial-gradient(circle, rgba(255, 87, 34, 0.1), transparent);
}

/* 模块化布局 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.card:hover {
    transform: translateY(-10px);
}
.card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header .title h1 {
        font-size: 2rem;
    }
    section {
        padding: 2rem 1rem;
    }
    code {
        font-size: 0.9rem;
    }
}

/* 尾部样式 */
footer {
    background: #0f2027;
    color: #bdc3c7;
    padding: 2rem;
    text-align: center;
}
footer a {
    margin: 0 10px;
    rel="nofollow";
}

