
/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #002347, #4C2B8F);
    color: #ffffff;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    color: #ffffff;
}

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

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #00FFAA;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #4C2B8F, #00FFAA);
    border-radius: 15px;
    margin: 20px 0;
}

.hero h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    max-width: 800px;
}

.section {
    margin: 40px 0;
}

.section h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    margin-bottom: 20px;
    color: #FFD700;
}

.section p {
    font-size: 16px;
    margin-bottom: 15px;
}

.code-block {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 20px;
}

.code-block code {
    color: #00FFAA;
}

.table-responsive {
    overflow-x: auto;
}

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

table th, table td {
    border: 1px solid #ffffff;
    padding: 10px;
    text-align: left;
}

table th {
    background: rgba(255, 215, 0, 0.3);
}

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

.gallery img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05);
}

.footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    margin-top: 40px;
}

.footer p {
    font-size: 14px;
}

@media (max-width: 1440px) {
    header, .hero, .section, .footer {
        padding: 20px;
    }

    .hero h2 {
        font-size: 28px;
    }
}

@media (max-width: 1200px) {
    nav ul {
        gap: 10px;
    }

    .hero p {
        font-size: 16px;
    }

    .section h3 {
        font-size: 22px;
    }

    .section p {
        font-size: 14px;
    }
}

@media (max-width: 1024px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .hero {
        padding: 40px 10px;
    }
}

@media (max-width: 768px) {
    .hero h2 {
        font-size: 24px;
    }

    .section h3 {
        font-size: 20px;
    }

    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

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

    nav ul li a {
        font-size: 14px;
    }

    .hero h2 {
        font-size: 20px;
    }

    .hero p {
        font-size: 14px;
    }

    .section h3 {
        font-size: 18px;
    }

    .section p {
        font-size: 12px;
    }

    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

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

    .hero {
        padding: 30px 5px;
    }

    .footer {
        padding: 10px;
    }
}

/* 按钮样式 */
.button {
    background-color: #00FFAA;
    color: #002347;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.button:hover {
    background-color: #007BFF;
    transform: scale(1.05);
}

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

.fade-in {
    animation: fadeIn 2s ease-in-out;
}

/* 视差滚动效果 */
.parallax {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/* 卡片式布局 */
.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.5);
}

