
/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Roboto:wght@400;500&display=swap');

/* Body Styles */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #2980B9, #8E44AD);
    background-size: 400% 400%;
    animation: gradientBackground 15s ease infinite;
    color: #ffffff;
    line-height: 1.6;
    padding: 20px;
}

/* Gradient Animation */
@keyframes gradientBackground {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3em;
    background: -webkit-linear-gradient(#E84C3D, #F1C40F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

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

/* Navigation Styles */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 10px;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #F1C40F;
}

/* Main Content Styles */
main {
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Article Styles */
article {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

article h2, article h3 {
    font-family: 'Montserrat', sans-serif;
    color: #F1C40F;
    margin-bottom: 15px;
}

article p {
    margin-bottom: 15px;
    font-size: 1em;
}

article ul, article ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

article li {
    margin-bottom: 10px;
}

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

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

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

article code {
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 4px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    color: #f1c40f;
    word-wrap: break-word;
}

article pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    color: #ecf0f1;
    margin-bottom: 15px;
}

/* Buttons with Ripple Effect */
.button {
    position: relative;
    display: inline-block;
    padding: 12px 24px;
    color: #ffffff;
    background: linear-gradient(45deg, #FF6B6B, #f06595);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: background 0.3s;
}

.button:hover {
    background: linear-gradient(45deg, #f06595, #FF6B6B);
}

.button::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: scale(0);
    opacity: 0;
    transition: transform 0.5s, opacity 1s;
}

.button:active::after {
    transform: scale(4);
    opacity: 1;
    transition: 0s;
}

/* Image Styles */
img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 10px;
    margin: 10px 0;
}

/*示例数据展示 Styles*/
.sample-data {
    background: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
}

.sample-data h2 {
    font-family: 'Montserrat', sans-serif;
    color: #1ABC9C;
    margin-bottom: 20px;
}

.sample-data pre, .sample-data code {
    background: rgba(0, 0, 0, 0.6);
    color: #2ECC71;
    padding: 10px;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    overflow-x: auto;
}

.sample-data table {
    width: 100%;
    border-collapse: collapse;
}

.sample-data th, .sample-data td {
    border: 1px solid #ffffff;
    padding: 8px;
    text-align: center;
}

.sample-data th {
    background: linear-gradient(135deg, #2C3E50, #4CA1AF);
    color: #ecf0f1;
}

.sample-data td {
    background: rgba(255, 255, 255, 0.1);
}

/* Footer Styles */
footer {
    text-align: center;
    margin-top: 40px;
    font-size: 1em;
    color: #bdc3c7;
}

/* Responsive Design */
@media (max-width: 1440px) {
    header h1 {
        font-size: 2.5em;
    }
}

@media (max-width: 1200px) {
    .container {
        padding: 15px;
    }
}

@media (max-width: 1024px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    main {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    .button {
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    nav a {
        margin: 5px 0;
    }

    article, .sample-data {
        padding: 20px;
    }

    header h1 {
        font-size: 1.8em;
    }
}

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

    header h1 {
        font-size: 1.5em;
    }

    .button {
        padding: 8px 16px;
    }
}

