
/* 基础样式与字体定义 */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0A1F44, #000000);
    color: #C0C0C0;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}
h1, h2, h3 {
    font-family: 'Exo', sans-serif;
    color: #8B00FF;
    margin-top: 20px;
}
a {
    color: #00FF7F;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* 网格布局与模块设计 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}
.grid-item {
    background: #0A1F44;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease-in-out;
    padding: 15px;
}
.grid-item:hover {
    transform: scale(1.05);
}

/* 按钮与交互效果 */
.button {
    position: relative;
    overflow: hidden;
    background-color: #00FF7F;
    color: #000000;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    margin: 10px 0;
    border-radius: 5px;
}
.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::before {
    width: 200px;
    height: 200px;
}

/* 图片与装饰性元素 */
img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 10px 0;
}
.decorative-img {
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* 代码块与表格样式 */
pre {
    background: #0A1F44;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}
code {
    color: #00FF7F;
    font-family: monospace;
    font-size: 14px;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
th, td {
    border: 1px solid #8B00FF;
    padding: 10px;
    text-align: center;
}
th {
    background: #000000;
    color: #FFD700;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
    pre {
        font-size: 12px;
    }
    table {
        font-size: 12px;
    }
}
@media (min-width: 1200px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

