
/* 基础样式与全局设置 */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #f5f5dc, #eaeaea);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}
h1, h2, h3, h4 {
    font-family: 'Times New Roman', serif;
    font-weight: bold;
    color: #003366;
}
a {
    text-decoration: none;
    color: #cc6600;
}
a:hover {
    color: #ff9900;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.header {
    background: linear-gradient(135deg, #003366, #002244);
    color: #fff;
    text-align: center;
    padding: 30px 20px;
    position: relative;
    overflow: hidden;
}
.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 10%, transparent 10.01%);
    animation: rotateHeader 10s linear infinite;
}
@keyframes rotateHeader {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.header h1 {
    font-size: 2.5rem;
    margin: 0;
    position: relative;
    z-index: 1;
}
.content {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    overflow: hidden;
}
.code-block {
    background: #333;
    color: #fff;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    white-space: pre-wrap;
    word-break: break-all;
}
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}
.image-grid img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.image-grid img:hover {
    transform: scale(1.1);
}
.button {
    display: inline-block;
    background: #cc6600;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    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%);
    opacity: 0;
    transition: all 0.5s ease;
}
.button:hover {
    background: #ff9900;
}
.button:hover::before {
    width: 200px;
    height: 200px;
    opacity: 1;
}
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    .header h1 {
        font-size: 2rem;
    }
    .code-block {
        font-size: 0.8rem;
    }
}

