
/* 全局样式 */
body {
    margin: 0;
    font-family: 'Fira Code', sans-serif;
    background: linear-gradient(to bottom right, #0A0A2A, #1E004B);
    color: #ffffff;
    line-height: 1.6;
}

/* 容器布局 */
.container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 20px;
    padding: 20px;
    max-width: 1440px;
    margin: 0 auto;
}

.main-content {
    grid-column: 1;
}

.side-bar {
    grid-column: 2;
    background: rgba(0, 255, 170, 0.1);
    border-radius: 10px;
    padding: 15px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    .side-bar {
        display: none;
    }
}

/* 标题样式 */
.title {
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 0px 0px 10px rgba(0, 255, 170, 0.8);
    color: #ffffff;
    text-align: center;
    margin-bottom: 30px;
}

.subtitle {
    font-size: 1.8rem;
    color: #00FFAA;
    text-align: center;
    margin-bottom: 20px;
}

/* 段落与内容 */
p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.section {
    padding: 50px 20px;
    margin-bottom: 30px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

th {
    background: rgba(0, 255, 170, 0.2);
    font-weight: bold;
}

/* 按钮样式 */
.button {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(45deg, #a0a0a0, #c0c0c0);
    color: #0A0A2A;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    overflow: hidden;
    box-shadow: inset 0px 0px 10px rgba(0, 0, 0, 0.5), 0px 4px 6px rgba(0, 0, 0, 0.2);
}

.button::after {
    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.6s ease-out;
}

@keyframes ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

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

/* 提示信息 */
.tip {
    text-align: center;
    font-size: 0.9rem;
    color: #00FFAA;
    margin-top: 20px;
}

/* 示例文章样式 */
article {
    background: rgba(0, 255, 170, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

article h2 {
    font-size: 2rem;
    color: #00FFAA;
    margin-bottom: 15px;
}

article h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 10px;
}

article pre {
    background: rgba(0, 255, 170, 0.1);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
}

article code {
    font-family: 'Fira Code', monospace;
    color: #00FFAA;
}

/* 渐变背景层 */
.gradient-layer {
    background: linear-gradient(to bottom right, #0A0A2A, #1E004B);
    padding: 20px;
    border-radius: 10px;
}

