
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #0000ff, #8a2be2);
    transition: background 0.5s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px 0;
    text-align: center;
    position: relative;
}

header h1 {
    font-size: 36px;
    margin: 0;
    color: #ffffff;
    animation: fadeIn 2s ease-in-out;
}

nav {
    margin-top: 10px;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    position: relative;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ff5722;
}

.banner {
    position: relative;
    height: 400px;
    background: url('https://images.gptkong.com/demo/sample1.png') center center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: particleMove 15s linear infinite;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255,87,34,0.5), transparent);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.banner-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ffffff;
    animation: slideIn 2s ease-out;
}

.banner-content p {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 30px;
    animation: fadeIn 3s ease-in;
}

.banner-content a {
    background: linear-gradient(45deg, #ff5722, #8a2be2);
    padding: 15px 30px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 18px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.banner-content a:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255,87,34,0.7);
}

.section {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.05);
}

.section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #ffffff;
    position: relative;
}

.section h2::after {
    content: '';
    width: 60px;
    height: 4px;
    background: #ff5722;
    display: block;
    margin: 10px auto 0;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 0 20px;
}

.card {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.5);
}

.card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #ffffff;
}

.card p {
    font-size: 16px;
    color: #dddddd;
}

.footer {
    background: rgba(0, 0, 0, 0.7);
    padding: 30px 0;
    text-align: center;
    color: #ffffff;
}

.footer p {
    margin: 0;
    font-size: 16px;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes particleMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 按钮微交互 */
.button {
    background-color: #0000ff;
    color: white;
    border: none;
    padding: 10px 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 5px;
}

.button:hover {
    background-color: #8a2be2;
    transform: scale(1.05);
}

/* 响应式设计 */
@media (max-width: 1440px) {
    header h1 {
        font-size: 32px;
    }
    .banner-content h2 {
        font-size: 40px;
    }
    .banner-content p {
        font-size: 18px;
    }
}

@media (max-width: 1200px) {
    .container {
        padding: 15px;
    }
    .section {
        padding: 50px 0;
    }
}

@media (max-width: 1024px) {
    nav ul {
        flex-direction: column;
    }
    nav ul li {
        margin: 10px 0;
    }
}

@media (max-width: 768px) {
    .banner {
        height: 300px;
    }
    .banner-content h2 {
        font-size: 32px;
    }
    .banner-content p {
        font-size: 16px;
    }
    .grid-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 28px;
    }
    .banner-content h2 {
        font-size: 28px;
    }
    .banner-content p {
        font-size: 14px;
    }
    nav ul li a {
        font-size: 16px;
    }
    .card h3 {
        font-size: 20px;
    }
    .card p {
        font-size: 14px;
    }
}

@media (max-width: 320px) {
    .banner {
        height: 250px;
    }
    header h1 {
        font-size: 24px;
    }
    .banner-content h2 {
        font-size: 24px;
    }
    .banner-content p {
        font-size: 12px;
    }
    .nav ul li a {
        font-size: 14px;
    }
}

