
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    overflow-x: hidden;
}
h1, h2, h3 {
    color: #0074D9;
    text-transform: uppercase;
    letter-spacing: 1px;
}
p {
    line-height: 1.6;
    font-size: 1rem;
}
a {
    text-decoration: none;
    color: #FFC300;
    transition: color 0.3s ease;
}
a:hover {
    color: #FF8C00;
}
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.header {
    background: linear-gradient(135deg, #6A5ACD, #4B0082);
    color: #fff;
    padding: 20px;
    text-align: center;
    position: relative;
}
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
}
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.menu-icon {
    display: none;
    cursor: pointer;
}
.nav-links {
    display: flex;
    gap: 20px;
}
.nav-links a {
    color: #fff;
    font-weight: bold;
}
.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}
.card:hover {
    transform: translateY(-10px);
}
.card img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
.card-content {
    padding: 20px;
}
.footer {
    background: #2E2E2E;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .menu-icon {
        display: block;
    }
    .container {
        grid-template-columns: 1fr;
    }
}
button {
    background: #FFC300;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}
button:hover {
    background: #FF8C00;
    transform: scale(1.1);
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}
th {
    background: #f4f4f4;
}
pre {
    background: #f4f4f4;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}
/* 特殊样式 */
.special-note {
    background: #FFC300;
    color: #000;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin: 20px 0;
}

