
/* 基本样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    color: #333;
    background: linear-gradient(135deg, #0b4f6c, #e91e63);
    background-size: cover;
    background-attachment: fixed;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(11, 79, 108, 0.9);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

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

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

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    position: relative;
}

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

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

.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center/cover;
    position: relative;
    text-align: center;
    color: #fff;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 79, 108, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease-out forwards;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out forwards;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 18px;
    color: #fff;
    background-color: #e91e63;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

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

section {
    padding: 100px 20px;
    background: rgba(255, 255, 255, 0.9);
    margin-top: 80px;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    color: #0b4f6c;
    text-align: center;
    margin-bottom: 40px;
}

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

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

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

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

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

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

.article-section {
    padding: 50px 20px;
    background: #f9f9f9;
}

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

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

.article-section h2, .article-section h3, .article-section h4 {
    font-family: 'Montserrat', sans-serif;
    color: #0b4f6c;
}

.article-section p {
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
}

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

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

.footer {
    background: rgba(11, 79, 108, 0.9);
    color: #fff;
    text-align: center;
    padding: 20px;
}

.footer a {
    color: #e91e63;
    text-decoration: none;
    margin: 0 10px;
}

.footer a:hover {
    text-decoration: underline;
}

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

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

/* 响应式设计 */
@media (max-width: 1440px) {
    .hero h1 {
        font-size: 40px;
    }
}

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

@media (max-width: 1024px) {
    nav ul {
        flex-direction: column;
        background: rgba(11, 79, 108, 0.95);
        position: absolute;
        top: 70px;
        right: 20px;
        width: 200px;
        display: none;
    }

    nav ul.active {
        display: flex;
    }

    header .menu-toggle {
        display: block;
        cursor: pointer;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 28px;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 15px 20px;
    }

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

    .section-title {
        font-size: 24px;
    }

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

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

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

    .section-title {
        font-size: 20px;
    }

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

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