
/* 全局样式 */
body {
    font-family: 'Roboto', 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0A1F44, #6C5CE7);
    color: #fff;
    line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
p {
    margin-bottom: 1rem;
    font-size: 1rem;
    letter-spacing: 0.5px;
}
a {
    color: #38E54D;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
pre {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    font-size: 0.9rem;
}
code {
    color: #FFD700;
    font-family: 'Consolas', monospace;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}
th, td {
    padding: 1rem;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
th {
    background-color: rgba(255, 255, 255, 0.1);
    font-weight: bold;
}

/* 布局与模块化设计 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
.card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* 动态微交互效果 */
.button {
    position: relative;
    display: inline-block;
    background-color: #38E54D;
    color: #0A1F44;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    overflow: hidden;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}
.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.5s ease-out forwards;
}
@keyframes ripple {
    0% { width: 0; height: 0; opacity: 1; }
    100% { width: 200%; height: 200%; opacity: 0; }
}
.button:hover {
    background-color: #6C5CE7;
}

/* 自适应布局 */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
    .container {
        padding: 1rem;
    }
    pre {
        font-size: 0.8rem;
    }
}

