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

/* 全局样式 */
body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(to bottom, #0074D9, #6a11cb);
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}
h1, h2, h3, h4 {
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
section {
    margin-bottom: 50px;
    position: relative;
}

/* 标题与副标题 */
header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(to right, #0074D9, #6a11cb);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
header h1 {
    font-size: 3rem;
    margin: 0;
    color: #ffdd57;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}
header p {
    font-size: 1.2rem;
    color: #eaeaea;
    margin-top: 10px;
}

/* 模块化布局 */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.grid-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* 图片样式 */
img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* 文章排版 */
article {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
article h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #ffdd57;
}
article h3 {
    font-size: 1.5rem;
    margin-top: 30px;
    color: #fff;
}
article p {
    font-size: 1rem;
    color: #eaeaea;
    margin-bottom: 15px;
}
article pre {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}
article code {
    color: #ffdd57;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}
th, td {
    padding: 10px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #eaeaea;
}
th {
    background: rgba(255, 255, 255, 0.2);
    font-weight: bold;
}

/* 按钮样式 */
button {
    background: #ffdd57;
    color: #0074D9;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.3s ease;
}
button:hover {
    background: #e0c140;
    transform: scale(1.05);
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    article {
        padding: 20px;
    }
    .grid {
        grid-template-columns: 1fr;
    }
}

