
/* 全局样式与基础布局 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #12192C;
    color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
}
h1, h2, h3 {
    font-family: 'Bebas Neue', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}
a {
    color: #47B39C;
    text-decoration: none;
    transition: all 0.3s ease;
}
a:hover {
    color: #6A0DAD;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.header, .footer {
    background: linear-gradient(to right, #6A0DAD, #47B39C);
    padding: 20px;
    text-align: center;
    position: relative;
}
.header::before, .footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    padding: 10px 20px;
}
.nav-links {
    display: flex;
    gap: 20px;
}
.nav-links a {
    padding: 10px 15px;
    border-radius: 5px;
}
.nav-links a:hover {
    background: #47B39C;
    color: #12192C;
}
.hero-section {
    position: relative;
    height: 100vh;
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFFFFF;
    text-shadow: 0 0 10px #000;
}
.hero-section h1 {
    font-size: 4rem;
    animation: fadeIn 2s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px #47B39C;
}
button {
    background: #47B39C;
    border: none;
    padding: 10px 20px;
    color: #12192C;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}
button:hover {
    background: #6A0DAD;
    transform: scale(1.1);
}
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}
.image-gallery img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: all 0.3s ease;
}
.image-gallery img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px #47B39C;
}
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    .hero-section h1 {
        font-size: 2.5rem;
    }
}
/* 暗黑模式切换 */
body.dark-mode {
    background-color: #000000;
    color: #FFFFFF;
}
body.dark-mode .card {
    background: rgba(255, 255, 255, 0.05);
}
body.dark-mode button {
    background: #6A0DAD;
}
body.dark-mode button:hover {
    background: #47B39C;
}

