
/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 字体与全局样式 */
body {
    font-family: 'Roboto', sans-serif;
    color: #ffffff;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    background-size: 200% 200%;
    animation: auroraFlow 15s linear infinite;
    line-height: 1.6;
}

/* 动画定义 */
@keyframes auroraFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes blossomExpand {
    from { transform: scale(1); opacity: 1; }
    to { transform: scale(1.5); opacity: 0; }
}

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

/* 头部样式 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

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

nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #ff6f61;
}

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

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
}

.hero .cta-button {
    padding: 15px 30px;
    background: #ff6f61;
    border: none;
    border-radius: 50px;
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.hero .cta-button:hover {
    background: #ff3b2e;
}

/* 卡片样式 */
.card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

/* 示例展示 */
.sample-article {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    margin: 40px 0;
}

.sample-article h2,
.sample-article h3,
.sample-article h4 {
    color: #ff6f61;
    margin-bottom: 15px;
}

.sample-article p {
    margin-bottom: 15px;
}

.sample-article pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 15px;
}

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

.sample-article a {
    color: #ff6f61;
    text-decoration: none;
}

.sample-article a:hover {
    text-decoration: underline;
}

/* 花朵动画 */
.blossom {
    width: 50px;
    height: 50px;
    background: url('https://images.gptkong.com/demo/sample7.png') no-repeat center center;
    background-size: cover;
    transition: transform 0.5s ease;
}

.blossom:hover {
    animation: blossomExpand 0.5s forwards;
}

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

@media (max-width: 1200px) {
    .container {
        width: 95%;
    }
}

@media (max-width: 1024px) {
    nav a {
        margin-left: 15px;
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
    }

    nav {
        margin-top: 10px;
    }

    .card {
        padding: 15px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

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

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

    .hero p {
        font-size: 0.8rem;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 0.8rem;
    }

    nav a {
        margin-left: 10px;
        font-size: 0.8rem;
    }
}

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

    .hero p {
        font-size: 0.7rem;
    }

    .cta-button {
        padding: 8px 15px;
        font-size: 0.7rem;
    }

    .card {
        padding: 10px;
    }
}

/* 提示文字 */
.reference-note {
    text-align: center;
    font-size: 0.9rem;
    margin-top: 40px;
    color: #ffffff;
    opacity: 0.8;
}

