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

:root {
    --primary-color: #1E90FF; /* 深蓝色 */
    --accent-color: #FF6347; /* 亮橙色 */
    --background-gradient: linear-gradient(135deg, #1E3C72, #2A5298);
    --text-color: #FFFFFF;
    --secondary-color: #B0C4DE;
    --highlight-color: #39FF14; /* 荧光绿 */
    --font-family: 'Roboto', sans-serif;
    --transition-speed: 0.3s;
}

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

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background: var(--background-gradient);
    overflow-x: hidden;
    position: relative;
}

header {
    text-align: center;
    padding: 60px 20px;
    background: rgba(0, 0, 0, 0.5);
}

header h1 {
    font-size: 3em;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #8A2BE2, #FF69B4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    font-size: 1.2em;
    color: var(--secondary-color);
}

main {
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

article {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

article h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #FFD700;
}

article h3, article h4 {
    color: #ADFF2F;
}

article p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: #F0F8FF;
}

article pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 15px;
}

article code {
    font-family: 'Courier New', Courier, monospace;
    color: #7FFF00;
}

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

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

th, td {
    padding: 10px;
    text-align: left;
    color: #F0F8FF;
}

.data-display {
    grid-column: span 2;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.data-display h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #FFD700;
}

.data-display ul {
    list-style: none;
}

.data-display li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.data-display img {
    width: 320px;
    height: 320px;
    object-fit: cover;
    margin-right: 15px;
    border-radius: 5px;
    transition: transform var(--transition-speed);
}

.data-display img:hover {
    transform: scale(1.05);
}

.footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: #A9A9A9;
}

a {
    color: var(--highlight-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--accent-color);
}

.code-example {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

@media (max-width: 1440px) {
    main {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1200px) {
    main {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1024px) {
    main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2.5em;
    }
    main {
        padding: 20px 10px;
    }
    .data-display img {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2em;
    }
    article h2 {
        font-size: 1.5em;
    }
    main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 320px) {
    header h1 {
        font-size: 1.8em;
    }
    article h2 {
        font-size: 1.3em;
    }
}

