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

body {
    font-family: 'Lato', sans-serif;
    background: linear-gradient(135deg, #0F4C81, #1E90FF);
    color: #FFFFFF;
    line-height: 1.6;
    padding: 20px;
}

header {
    text-align: center;
    padding: 50px 0;
    background: linear-gradient(135deg, #1E90FF, #0F4C81);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5em;
    color: #FFD700;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2em;
    color: #FFFFFF;
}

nav {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

nav a {
    color: #FFFFFF;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1em;
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #FFD700;
    transition: width 0.3s;
    position: absolute;
    bottom: -5px;
    left: 0;
}

nav a:hover {
    color: #FFD700;
}

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

.container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2em;
    color: #FFD700;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    width: 50px;
    height: 4px;
    background: #FFD700;
    display: block;
    margin: 10px auto 0;
    border-radius: 2px;
}

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

.card:hover {
    transform: translateY(-10px);
    background: rgba(255, 215, 0, 0.2);
}

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

.card h3 {
    font-family: 'Roboto Slab', serif;
    font-size: 1.5em;
    color: #FFD700;
    margin-bottom: 10px;
}

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

pre {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 20px;
}

code {
    color: #FFD700;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

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

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

th {
    background: #1E90FF;
    color: #FFD700;
}

ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    background: linear-gradient(135deg, #1E90FF, #0F4C81);
    border-radius: 10px;
    box-shadow: 0 -4px 6px rgba(0,0,0,0.1);
}

.footer-text {
    font-size: 0.9em;
    color: #FFFFFF;
}

.notice {
    text-align: center;
    font-size: 1em;
    color: #FFD700;
    margin-top: 20px;
    animation: fadeIn 2s ease-in-out;
}

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

.button {
    display: inline-block;
    padding: 10px 20px;
    background: #FFD700;
    color: #0F4C81;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    text-decoration: none;
    font-weight: bold;
}

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

@media (min-width: 320px) and (max-width: 480px) {
    header h1 {
        font-size: 2em;
    }
    nav a {
        margin: 0 10px;
        font-size: 0.9em;
    }
    .card h3 {
        font-size: 1.2em;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .container {
        grid-template-columns: 1fr 1fr;
    }
    header {
        padding: 40px 0;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (min-width: 1025px) and (max-width: 1200px) {
    .container {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

@media (min-width: 1201px) {
    .container {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 动画与交互效果 */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

@media (prefers-reduced-motion: no-preference) {
    .animate-fade-in {
        opacity: 0;
        animation: fadeIn 1s forwards;
    }
}

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

.sample-article h2, .sample-article h3 {
    color: #FFD700;
    font-family: 'Roboto Slab', serif;
}

.sample-data {
    background: rgba(255, 215, 0, 0.2);
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
    font-family: 'Courier New', Courier, monospace;
    color: #000000;
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.image-gallery img {
    width: 100%;
    max-width: 150px;
    border-radius: 5px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .image-gallery {
        justify-content: center;
    }
}

