
/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(to bottom, #0074D9, #2C3E50);
    color: #fff;
    line-height: 1.6;
    padding: 20px;
    overflow-x: hidden;
}
h1, h2, h3, h4 {
    font-family: 'Inter', sans-serif;
    color: #6C5CE7;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
p {
    color: #eaeaea;
    margin-bottom: 15px;
}
.container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.header {
    text-align: center;
    padding: 40px 0;
    background: linear-gradient(to right, #0074D9, #6C5CE7);
    margin-bottom: 30px;
    border-radius: 10px;
}
.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.header p {
    font-size: 1.2rem;
    color: #F39C12;
}
.image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.image-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.image-grid img:hover {
    transform: scale(1.05);
}
.code-block {
    background: #2C3E50;
    color: #2ECC71;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Consolas', monospace;
    font-size: 0.9rem;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #6C5CE7;
    color: #fff;
    border-radius: 8px;
    overflow: hidden;
}
th, td {
    padding: 10px;
    text-align: left;
    border: 1px solid #fff;
}
th {
    background: #2C3E50;
    color: #F39C12;
}
.button {
    position: relative;
    display: inline-block;
    background: #2ECC71;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    transition: background 0.3s ease;
}
.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%);
    animation: ripple 0.6s ease-out;
    opacity: 0;
}
.button:hover {
    background: #27AE60;
}
.button:hover::before {
    width: 200px;
    height: 200px;
    opacity: 1;
}
@keyframes ripple {
    from {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    to {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    .container {
        grid-template-columns: 1fr;
    }
}

