
/* 全局样式重置 */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 字体引入 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Roboto+Mono:wght@400;700&display=swap');

/* 渐变背景与动画 */
body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0074D9, #6F5EF8);
    background-size: 400% 400%;
    animation: gradient-animation 15s ease infinite;
    color: #ffffff;
    line-height: 1.6;
    padding: 20px;
}

/* 渐变动画关键帧 */
@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 20px;
}

/* 侧边栏样式 */
.sidebar {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
}

/* 主内容样式 */
.main-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
}

/* 文章标题样式 */
h1, h2, h3, h4 {
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    margin-bottom: 15px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    border-bottom: 2px solid #ffffff;
    padding-bottom: 10px;
    margin-top: 30px;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 20px;
}

h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 15px;
}

/* 段落样式 */
p {
    font-family: 'Roboto Mono', monospace;
    font-size: 1rem;
    color: #f0f0f0;
    margin-bottom: 15px;
}

/* 代码块样式 */
pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

code {
    font-family: 'Roboto Mono', monospace;
    color: #00ffea;
}

/* 按钮样式 */
.button {
    background: linear-gradient(90deg, #1E90FF, #3CB371);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
}

.button:hover {
    transform: scale(1.1);
    background: linear-gradient(90deg, #3CB371, #1E90FF);
}

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

/* 链接样式 */
a {
    color: #ffdd57;
    text-decoration: none;
    position: relative;
}

a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #ffdd57;
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .container {
        max-width: 1100px;
    }
}

@media (max-width: 1200px) {
    .container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    h1 {
        font-size: 2.2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 320px) {
    h1 {
        font-size: 1.5rem;
    }
    p {
        font-size: 0.9rem;
    }
}

/* 视觉提示样式 */
.notice {
    text-align: center;
    font-size: 1.2rem;
    margin-top: 30px;
    color: #ffdd57;
}

/* 列表样式 */
ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

li {
    margin-bottom: 10px;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    border: 1px solid #ffffff;
    padding: 10px;
    text-align: left;
}

th {
    background: rgba(255, 255, 255, 0.2);
}

tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.1);
}

