
/* 导入字体 */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@700&family=Open+Sans&display=swap');

/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: #ffffff;
    overflow-x: hidden;
}

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

header {
    text-align: center;
    padding: 50px 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

header h1 {
    font-family: 'Roboto Bold', sans-serif;
    font-size: 3em;
    margin: 0;
    color: #ffffff;
    background: linear-gradient(90deg, #ff8a00, #e52e71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s, transform 0.3s;
}

nav a:hover {
    color: #ff8a00;
    transform: scale(1.1);
}

.section {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    margin: 20px 0;
    border-radius: 10px;
}

.section h2 {
    font-family: 'Roboto Bold', sans-serif;
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    color: #ffffff;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.card {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    width: 300px;
    padding: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    transition: transform 0.3s, background 0.3s;
}

.card:hover {
    transform: scale(1.05);
    background: rgba(0, 0, 0, 0.4);
}

.card img {
    width: 100%;
    border-radius: 5px;
}

.card h3 {
    margin: 15px 0 10px;
    font-family: 'Roboto Bold', sans-serif;
    color: #ff8a00;
}

.card p {
    font-size: 1em;
    line-height: 1.6;
    color: #ffffff;
}

.code-block {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    color: #00ff00;
    margin: 20px 0;
}

article {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    padding: 30px;
    border-radius: 10px;
    margin: 40px 0;
}

article h2, article h3, article h4 {
    color: #ffffff;
}

article p, article ul, article table {
    color: #dddddd;
    line-height: 1.8;
}

article ul {
    list-style: disc inside;
}

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

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

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

footer {
    text-align: center;
    padding: 30px 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-text {
    font-size: 1em;
}

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

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

body {
    animation: aurora-move 15s linear infinite;
    background-size: 400% 400%;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background: #ff8a00;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    text-decoration: none;
}

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

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

@media (max-width: 1200px) {
    .card-container {
        justify-content: space-between;
    }
}

@media (max-width: 1024px) {
    nav {
        flex-direction: column;
        gap: 10px;
    }
    .section {
        padding: 40px 0;
    }
}

@media (max-width: 768px) {
    body {
        background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    }
    header h1 {
        font-size: 2em;
    }
    .section h2 {
        font-size: 1.8em;
    }
    .card {
        width: 100%;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8em;
    }
    nav a {
        font-size: 1em;
    }
    .section h2 {
        font-size: 1.5em;
    }
    .button {
        padding: 8px 16px;
        font-size: 0.9em;
    }
}

@media (max-width: 320px) {
    header h1 {
        font-size: 1.5em;
    }
    .section h2 {
        font-size: 1.2em;
    }
    .card {
        padding: 15px;
    }
    .button {
        padding: 6px 12px;
        font-size: 0.8em;
    }
}

