
/* 全局样式 */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Roboto&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    background: linear-gradient(135deg, #0A2463, #FF6F61);
    background-attachment: fixed;
    background-size: cover;
    padding: 20px;
    line-height: 1.6;
}

header {
    background: rgba(10, 36, 99, 0.8);
    padding: 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

header .logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    color: #FF6F61;
    float: left;
}

nav {
    float: right;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

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

.main {
    margin-top: 80px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.hero {
    position: relative;
    background: url('https://images.gptkong.com/demo/sample1.png') center center/cover no-repeat;
    height: 400px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    text-align: center;
    background-blend-mode: overlay;
    background-color: rgba(10, 36, 99, 0.6);
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.section {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.section h2 {
    font-family: 'Montserrat', sans-serif;
    color: #0A2463;
    margin-bottom: 20px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-bottom: 15px;
}

.card h3 {
    font-family: 'Montserrat', sans-serif;
    color: #FF6F61;
    margin-bottom: 10px;
}

.card p {
    color: #333333;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.article-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.article-section h2 {
    font-family: 'Montserrat', sans-serif;
    color: #0A2463;
    margin-bottom: 20px;
    text-align: center;
}

.article-section article {
    max-width: 800px;
    margin: 0 auto;
}

.article-section pre {
    background: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.article-section code {
    font-family: 'Roboto', monospace;
    color: #D14;
}

.footer {
    text-align: center;
    padding: 20px;
    color: #FFFFFF;
    background: rgba(10, 36, 99, 0.8);
    border-radius: 10px;
    margin-top: 20px;
}

@media (min-width: 320px) {
    .hero h1 {
        font-size: 32px;
    }
}

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

@media (min-width: 768px) {
    .main {
        grid-template-columns: 2fr 1fr;
    }

    nav ul {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .hero {
        height: 500px;
    }

    .cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .article-section {
        padding: 40px;
    }
}

@media (min-width: 1200px) {
    .hero h1 {
        font-size: 48px;
    }

    .cards {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1440px) {
    body {
        padding: 40px;
    }

    .hero {
        height: 600px;
    }

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

    .cards {
        grid-template-columns: repeat(5, 1fr);
    }

    .section, .article-section {
        padding: 50px;
    }
}

/* 动画效果 */
@keyframes aurora-move {
    0% { background: radial-gradient(circle, rgb(255, 87, 34), transparent); }
    50% { background: radial-gradient(circle, rgb(34, 193, 195), transparent); }
    100% { background: radial-gradient(circle, rgb(255, 87, 34), transparent); }
}

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

