
/* 基本样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: radial-gradient(circle, #0A2463, #121212);
    color: #ffffff;
    line-height: 1.6;
}

/* 容器 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header .logo {
    font-size: 24px;
    font-weight: bold;
    color: #00FF9F;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navbar ul li a {
    color: #ffffff;
    text-decoration: none;
    position: relative;
}

.navbar ul li a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #00FF9F;
    transition: width 0.3s;
    position: absolute;
    bottom: -5px;
    left: 0;
}

.navbar ul li a:hover::after {
    width: 100%;
}

/* 英雄部分 */
.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 60px 0;
    background: linear-gradient(135deg, #0A2463, #00FF9F);
    border-radius: 10px;
    margin: 20px 0;
}

.hero .hero-text {
    flex: 1 1 500px;
    padding: 20px;
}

.hero h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    animation: fadeIn 2s ease-out;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

.hero .cta-button {
    background: linear-gradient(to right, #0A2463, #00FF9F);
    border: none;
    padding: 15px 30px;
    color: #ffffff;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    transition: transform 0.3s, background 0.3s;
}

.hero .cta-button:hover {
    transform: scale(1.1);
    background: #00FF9F;
}

.hero .hero-image {
    flex: 1 1 400px;
    padding: 20px;
    animation: fadeIn 2s ease-out;
}

.hero .hero-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 159, 0.5);
}

/* 模块样式 */
.modules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 40px 0;
}

.module {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

.module:hover {
    transform: scale(1.05);
}

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

.module h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #00FF9F;
}

.module p {
    font-size: 16px;
}

.module .icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    fill: #00FF9F;
}

/* 示例展示 */
.sample-display {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    padding: 30px;
    margin: 40px 0;
}

.sample-display h2 {
    font-size: 28px;
    color: #00FF9F;
    margin-bottom: 20px;
}

.sample-display article {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

.sample-display pre {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

.sample-display code {
    color: #00FF9F;
    font-family: 'Courier New', Courier, monospace;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
    font-size: 14px;
    color: #aaaaaa;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* 交互动效 */
.button:hover, .cta-button:hover {
    transform: scale(1.05);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar ul {
        flex-direction: column;
        gap: 10px;
    }

    .hero {
        flex-direction: column;
    }

    .hero h1 {
        font-size: 32px;
    }

    .modules {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        font-size: 16px;
    }

    .module h3 {
        font-size: 20px;
    }

    .module p {
        font-size: 14px;
    }
}

@media (min-width: 1440px) {
    .container {
        width: 80%;
    }

    .hero h1 {
        font-size: 60px;
    }

    .module h3 {
        font-size: 28px;
    }
}

