
/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

header {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    animation: fadeInDown 1s ease-in-out;
}

header p {
    font-size: 1.2em;
    opacity: 0.9;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

.article, .data-display {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    position: relative;
}

.article h2, .data-display h2 {
    font-size: 2em;
    margin-bottom: 15px;
    border-bottom: 2px solid #00c6ff;
    padding-bottom: 10px;
}

.article h3, .data-display h3 {
    font-size: 1.5em;
    margin-top: 20px;
    color: #ffdd57;
}

.article p, .data-display p {
    margin: 15px 0;
    font-size: 1em;
    opacity: 0.9;
}

.article pre, .data-display pre {
    background: #2a5298;
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 10px 0;
}

.article code, .data-display code {
    color: #ffdd57;
    font-family: 'Courier New', Courier, monospace;
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

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

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

.footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.footer p {
    font-size: 1em;
    opacity: 0.9;
}

button {
    background: linear-gradient(45deg, #ff6a00, #ee0979);
    border: none;
    padding: 10px 20px;
    color: #ffffff;
    font-size: 1em;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

button:hover::before {
    width: 200px;
    height: 200px;
}

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

    .article h2, .data-display h2 {
        font-size: 1.8em;
    }
}

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

    .image-gallery {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    header {
        padding: 30px 15px;
    }

    .container {
        grid-template-columns: 1fr;
    }

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

    button {
        width: 100%;
        padding: 12px 0;
    }
}

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

    .article h2, .data-display h2 {
        font-size: 1.5em;
    }

    .image-gallery {
        flex-direction: column;
    }
}

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

    header h1 {
        font-size: 1.2em;
    }

    .article h2, .data-display h2 {
        font-size: 1.2em;
    }

    button {
        font-size: 0.9em;
    }
}

