
/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', 'Roboto', sans-serif;
    background: linear-gradient(135deg, #000066, #4B0082);
    color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: #E0FFFF;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

p {
    margin-bottom: 20px;
    font-size: 16px;
}

a {
    color: #7FFFD4;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #ADFF2F;
}

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

header {
    text-align: center;
    padding: 50px 0;
    background: linear-gradient(135deg, #000066, #4B0082);
}

header h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

header p {
    font-size: 20px;
    color: #FFD700;
}

section {
    margin-bottom: 60px;
}

.article-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.article-section h2 {
    border-bottom: 2px solid #7FFFD4;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.article-section pre {
    background: #2F4F4F;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

.article-section code {
    color: #7FFFD4;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
}

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

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

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

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

th {
    background: #556B2F;
}

img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 10px;
    margin: 10px;
    transition: transform 0.3s;
}

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

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.footer {
    text-align: center;
    padding: 20px 0;
    background: linear-gradient(135deg, #4B0082, #000066);
    color: #FFFFFF;
}

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

/* 动画与交互 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background: #ADFF2F;
    color: #000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    perspective: 1000px;
    transition: background 0.3s;
}

.button:hover {
    background: #7CFC00;
}

.card {
    position: relative;
    padding: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
    transition: transform 0.3s ease-in-out;
}

.card:hover {
    transform: translateY(0);
}

.custom-shape {
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    background: linear-gradient(135deg, #7FFFD4, #ADFF2F);
    width: 100px;
    height: 100px;
    margin: 20px auto;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    header h1 {
        font-size: 40px;
    }
    .article-section h2 {
        font-size: 28px;
    }
}

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

@media (max-width: 1024px) {
    .image-gallery {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 32px;
    }
    .article-section h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 24px;
    }
    .article-section h2 {
        font-size: 20px;
    }
    p {
        font-size: 14px;
    }
}

@media (max-width: 320px) {
    header h1 {
        font-size: 20px;
    }
    .article-section h2 {
        font-size: 18px;
    }
    p {
        font-size: 12px;
    }
}

/* 其他视觉元素 */
.background {
    background: linear-gradient(135deg, #000066, #4B0082);
}

.button-flip {
    transform-style: preserve-3d;
    transform: rotateY(180deg);
    transition: transform 0.5s;
}

.background-animation {
    animation: backgroundMove 10s infinite alternate;
}

@keyframes backgroundMove {
    from {
        background-position: 0% 50%;
    }
    to {
        background-position: 100% 50%;
    }
}

