
/* 全局样式 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0a0c27, #1e3c72);
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    color: #fff;
}
p, li {
    line-height: 1.8;
    font-size: 1rem;
}
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}
/* 头部导航栏 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 12, 39, 0.9);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}
.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff6f61;
}
.navbar .menu {
    display: flex;
    gap: 20px;
}
.navbar .menu a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}
.navbar .menu a:hover {
    color: #ff6f61;
}
/* 英雄区 */
.hero {
    height: 100vh;
    background: url('https://images.gptkong.com/demo/sample1.png'), linear-gradient(135deg, #1e3c72, #2a5298);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 12, 39, 0.6);
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}
.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
}
.cta-button {
    background: #ff6f61;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 111, 97, 0.5);
}
/* 网格布局 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    margin-top: 120px;
}
.card {
    background: #fff;
    color: #333;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}
.card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}
.card-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
}
.card-description {
    font-size: 1rem;
    color: #666;
}
/* 滚动动画 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}
.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}
/* 响应式设计 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .grid-container {
        grid-template-columns: repeat(6, 1fr);
    }
}
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    .hero p {
        font-size: 0.9rem;
    }
    .grid-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

