
/* 全局样式 */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #E8F0FE, #D8B4FE);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

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

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s, transform 0.3s;
}

nav ul li a:hover {
    color: #FF8C00;
    transform: scale(1.1);
}

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

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(232, 240, 254, 0.5);
    backdrop-filter: blur(10px);
}

.banner-content {
    position: relative;
    z-index: 1;
    color: #fff;
}

.banner-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #00FF7F, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.banner-content p {
    font-size: 1.2rem;
}

section {
    padding: 100px 50px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.section-title {
    width: 100%;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.card {
    flex: 1 1 calc(33.333% - 30px);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

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

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.card p {
    font-size: 1rem;
    color: #555;
}

.article-section {
    padding: 100px 50px;
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
}

.article-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.article-section article {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.article-section article h2,
.article-section article h3,
.article-section article h4 {
    color: #333;
}

.article-section article p {
    margin-bottom: 15px;
    color: #555;
}

.article-section article pre {
    background: #282c34;
    color: #abb2bf;
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 15px;
}

.article-section article code {
    color: #e06c75;
}

footer {
    padding: 50px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    text-align: center;
    color: #333;
}

.footer-content a {
    color: #FF8C00;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

.footer-content a:hover {
    color: #FFD700;
}

@media (max-width: 1440px) {
    section {
        padding: 80px 40px;
    }

    .card {
        flex: 1 1 calc(50% - 30px);
    }
}

@media (max-width: 1200px) {
    header {
        padding: 15px 30px;
    }

    .banner-content h1 {
        font-size: 2.5rem;
    }

    section {
        padding: 60px 30px;
    }

    .card {
        flex: 1 1 100%;
    }
}

@media (max-width: 1024px) {
    nav ul {
        flex-direction: column;
        background: rgba(255, 255, 255, 0.8);
        position: absolute;
        top: 60px;
        right: 50px;
        border-radius: 10px;
        display: none;
    }

    nav ul.active {
        display: flex;
    }
}

@media (max-width: 768px) {
    header {
        padding: 10px 20px;
    }

    .banner-content h1 {
        font-size: 2rem;
    }

    section {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .banner-content h1 {
        font-size: 1.5rem;
    }

    nav ul {
        position: static;
        flex-direction: row;
        gap: 10px;
    }

    .card {
        flex: 1 1 100%;
    }
}

@media (max-width: 320px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .banner-content h1 {
        font-size: 1.2rem;
    }

    .card {
        padding: 15px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.banner-content, .section-title, .card, .article-section article {
    animation: fadeIn 1s ease-in-out;
}

a[rel="nofollow"] {
    /* 默认链接样式 */
    color: #FF8C00;
}

a[rel="nofollow"]:hover {
    color: #FFD700;
    text-decoration: underline;
}

