
/* 全局样式与渐变背景 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #002F5D, #344E7B);
    color: #fff;
    overflow-x: hidden;
}
h1, h2, h3 {
    font-weight: bold;
    color: #34C759;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}
pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
}
code {
    color: #FFD700;
    font-family: 'Courier New', monospace;
}
.button {
    display: inline-block;
    padding: 10px 20px;
    background: #34C759;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: transform 0.3s ease, background 0.3s ease;
}
.button:hover {
    background: #2ecc71;
    transform: scale(1.1);
}
/* 首屏Banner样式 */
.hero {
    position: relative;
    height: 100vh;
    background: linear-gradient(135deg, #002F5D, #344E7B);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 10%, transparent 10.01%);
    animation: rotate 10s linear infinite;
}
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.hero h1 {
    font-size: 3rem;
    z-index: 2;
}
/* 文章内容样式 */
.article {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
}
.article h2 {
    margin-top: 0;
    color: #34C759;
}
.article p {
    color: #dcdcdc;
}
.article table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.article th, .article td {
    border: 1px solid #444;
    padding: 10px;
    text-align: left;
    color: #fff;
}
.article th {
    background: #344E7B;
}
/* 响应式布局调整 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    .grid {
        grid-template-columns: 1fr;
    }
    pre {
        font-size: 0.9rem;
    }
}

