
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    color: #ffffff;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    background-attachment: fixed;
    overflow-x: hidden;
}

/* 动画效果 */
@keyframes aurora-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body {
    animation: aurora-move 15s linear infinite;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(44, 62, 80, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px;
    z-index: 1000;
}

.navbar .logo {
    font-size: 24px;
    font-weight: bold;
    color: #f7b731;
}

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

.navbar ul li a {
    text-decoration: none;
    color: #ffffff;
    transition: color 0.3s ease;
}

.navbar ul li a:hover {
    color: #f7b731;
}

/* 英雄区样式 */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.4), transparent);
    z-index: -1;
    animation: aurora-move 20s linear infinite;
}

.hero h1 {
    font-size: 48px;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 18px;
    margin-top: 20px;
    color: #dcdcdc;
}

/* 主体内容样式 */
.container {
    padding: 100px 50px 50px 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: rgba(44, 62, 80, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, background 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
    background: rgba(44, 62, 80, 1);
}

.card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.card h3 {
    margin-top: 15px;
    font-size: 22px;
    color: #f7b731;
}

.card p {
    font-size: 16px;
    margin-top: 10px;
    color: #dcdcdc;
}

/* 示例展示样式 */
.example-section {
    background: rgba(44, 62, 80, 0.85);
    padding: 50px;
    border-radius: 10px;
    margin-top: 50px;
}

.example-section h2 {
    text-align: center;
    font-size: 28px;
    color: #f7b731;
    margin-bottom: 20px;
}

.example-section article {
    max-width: 800px;
    margin: 0 auto;
    color: #ffffff;
}

.example-section pre {
    background: #2c3e50;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

.example-section code {
    font-family: 'Courier New', Courier, monospace;
    color: #f1c40f;
}

/* 提示样式 */
.reference-note {
    text-align: center;
    font-size: 16px;
    color: #f1c40f;
    margin-top: 30px;
}

/*  Footer样式 */
.footer {
    background: rgba(44, 62, 80, 0.9);
    padding: 20px 50px;
    text-align: center;
    color: #dcdcdc;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .navbar {
        padding: 10px 40px;
    }
}

@media (max-width: 1200px) {
    .navbar {
        padding: 10px 30px;
    }

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

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

@media (max-width: 1024px) {
    .container {
        padding: 80px 30px 30px 30px;
    }

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

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

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar ul {
        flex-direction: column;
        width: 100%;
    }

    .navbar ul li {
        width: 100%;
        text-align: left;
        margin: 5px 0;
    }

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

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

    .container {
        padding: 60px 20px 20px 20px;
    }

    .example-section {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 10px 20px;
    }

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

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

    .container {
        padding: 40px 10px 10px 10px;
    }

    .card h3 {
        font-size: 18px;
    }

    .card p {
        font-size: 12px;
    }

    .example-section h2 {
        font-size: 24px;
    }

    .reference-note {
        font-size: 14px;
    }
}

@media (max-width: 320px) {
    .navbar ul li a {
        font-size: 14px;
    }

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

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

    .card h3 {
        font-size: 16px;
    }

    .card p {
        font-size: 10px;
    }
}

