
/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #fff;
    background: linear-gradient(135deg, #0a0c27, #1e214d);
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #ff9800;
}
p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}
a {
    color: #00bcd4;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
button {
    cursor: pointer;
    border: none;
    outline: none;
}

/* 头部区域 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 12, 39, 0.9);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}
header nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}
header nav ul li a {
    font-size: 1rem;
    transition: color 0.3s ease;
}
header nav ul li a:hover {
    color: #ff5722;
}
header .menu-icon {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* 英雄图区域 */
.hero {
    height: 100vh;
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center/cover, linear-gradient(135deg, #0a0c27, #1e214d);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}
.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.hero p {
    font-size: 1.2rem;
    max-width: 600px;
}

/* 视差滚动效果 */
.parallax {
    height: 100vh;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.parallax:nth-of-type(odd) {
    background-image: url('https://images.gptkong.com/demo/sample2.png');
}
.parallax:nth-of-type(even) {
    background-image: url('https://images.gptkong.com/demo/sample3.png');
}

/* 内容模块 */
.content-section {
    padding: 4rem 2rem;
    text-align: center;
}
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    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.3);
}
.card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* 按钮交互 */
.button {
    background: #ff9800;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 50px;
    transition: transform 0.3s ease, background 0.3s ease;
}
.button:hover {
    transform: scale(1.1);
    background: #e65100;
}

/* 加载动画 */
.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #ff9800;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    header nav ul {
        display: none;
    }
    header .menu-icon {
        display: block;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .grid-container {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 480px) {
    .hero p {
        font-size: 1rem;
    }
}

