
/* 基本样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(to bottom right, #f5ebeb, #e9f5e1);
    color: #3a4f40;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Roboto', sans-serif;
    color: #2c3e50;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 0.5em;
}

h2 {
    font-size: 2em;
    margin-bottom: 0.6em;
}

h3 {
    font-size: 1.75em;
    margin-bottom: 0.6em;
}

h4 {
    font-size: 1.5em;
    margin-bottom: 0.5em;
}

p {
    margin-bottom: 1em;
}

a {
    color: #d4af37;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #87ceeb;
}

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

.header {
    background-color: #d4af37;
    color: #ffffff;
    padding: 20px 0;
    text-align: center;
    position: relative;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.9), transparent);
    animation: aurora-move 15s linear infinite;
}

.header h1 {
    font-family: 'HandwritingFont', cursive;
    font-size: 3em;
}

.navbar {
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    background-color: rgba(52, 73, 94, 0.8);
}

.navbar a {
    color: #ecf0f1;
    font-size: 1.1em;
    rel: "nofollow";
}

.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center;
    background-size: cover;
    padding: 60px 20px;
    border-radius: 15px;
    margin-bottom: 40px;
}

.hero-text {
    flex: 1 1 300px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
}

.hero-text h2 {
    font-family: 'HandwritingFont', cursive;
    color: #3a4f40;
}

.hero-text p {
    font-size: 1.1em;
}

.hero-image {
    flex: 1 1 300px;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
}

.section {
    margin-bottom: 40px;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
    color: #2c3e50;
}

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

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

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

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

.card h3 {
    margin-bottom: 10px;
    color: #3a4f40;
}

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

.code-block {
    background-color: #f0f0f0;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 20px;
}

.code-block code {
    display: block;
    white-space: pre-wrap;
    word-wrap: break-word;
}

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

.article-section h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.article-section h3 {
    font-size: 1.75em;
    margin-top: 20px;
    color: #2c3e50;
}

.article-section pre {
    background-color: #f0f0f0;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
}

.article-section ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

@keyframes aurora-move {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 动画效果 */
.icon {
    transition: transform 0.3s ease, color 0.3s ease;
}

.icon:hover {
    transform: scale(1.1);
    color: #d4af37;
}

.background {
    background: linear-gradient(to right, #87ceeb, #F0FFF0);
}

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

@media (max-width: 1200px) {
    .navbar {
        flex-direction: column;
    }

    .hero {
        flex-direction: column;
    }
}

@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .hero-text, .hero-image {
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2em;
    }

    .navbar a {
        font-size: 1em;
        margin: 5px 0;
    }

    .section-title {
        font-size: 1.75em;
    }
}

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

    .hero {
        padding: 40px 10px;
    }

    .hero-text h2 {
        font-size: 1.5em;
    }

    .hero-text p {
        font-size: 1em;
    }

    .section-title {
        font-size: 1.5em;
    }
}

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

    .hero-text h2 {
        font-size: 1.2em;
    }

    .grid {
        grid-template-columns: 1fr;
    }
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background: #87ceeb;
    color: #ffffff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.button:hover {
    background: #d4af37;
    transform: scale(1.05);
}

/* 提示信息样式 */
.reference-note {
    text-align: center;
    font-size: 1.2em;
    color: #555555;
    margin-top: 40px;
}

/* 图文混排样式 */
.image-text {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 30px;
}

.image-text img {
    flex: 1 1 300px;
    max-width: 100%;
    border-radius: 10px;
    margin-right: 20px;
}

.image-text .text {
    flex: 2 1 300px;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table, th, td {
    border: 1px solid #dddddd;
}

th, td {
    padding: 12px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}


