
/* 全局样式定义 */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(to bottom, #1e005f, #4c00a6);
    color: white;
    line-height: 1.6;
    overflow-x: hidden;
}
h1, h2, h3, h4, p, a {
    margin: 0;
    padding: 0;
    text-decoration: none;
    color: inherit;
}
.container {
    max-width: 1440px;
    margin: auto;
    padding: 20px;
}
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}
nav .logo {
    font-size: 24px;
    font-weight: bold;
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff;
}
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}
nav ul li a {
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}
nav ul li a:hover {
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff;
}
.hero-section {
    height: 100vh;
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center/cover, linear-gradient(to bottom, #1e005f, #4c00a6);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}
.hero-section h1 {
    font-size: 48px;
    font-weight: bold;
    text-shadow: 0 0 15px #ff00ff, 0 0 30px #ff00ff;
    animation: glowText 3s infinite alternate;
}
@keyframes glowText {
    from { text-shadow: 0 0 15px #ff00ff; }
    to { text-shadow: 0 0 30px #ff00ff, 0 0 40px #ff00ff; }
}
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 100px;
}
.grid-item {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #ff00ff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}
.grid-item:hover {
    transform: scale(1.05);
}
.grid-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}
.grid-item h3 {
    margin-top: 15px;
    font-size: 20px;
    color: #ff00ff;
}
.grid-item p {
    font-size: 14px;
    margin-top: 10px;
    color: #ccc;
}
button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    border: 2px solid #ffffff;
    background: transparent;
    color: #fff;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}
button:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px #ffffff;
}
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
    .hero-section h1 {
        font-size: 36px;
    }
    .grid-container {
        grid-template-columns: 1fr;
    }
}
@media (min-width: 1200px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}
footer {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    text-align: center;
    margin-top: 50px;
}
footer p {
    font-size: 14px;
    color: #ccc;
}

