
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #0A1F44, #E8F2FF);
    color: #FFFFFF;
    line-height: 1.6;
}

/* 文章容器 */
.article-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 标题样式 */
h1, h2, h3, h4 {
    font-family: 'Inter', 'Poppins', sans-serif;
    color: #00BFA5;
}

h1 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
}

h2 {
    font-size: 2em;
    margin-top: 40px;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
}

h4 {
    font-size: 1.2em;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* 段落样式 */
p {
    font-size: 1em;
    margin-bottom: 15px;
    color: #FFFFFF;
}

/* 代码块样式 */
pre {
    background: rgba(0, 191, 165, 0.2);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
}

code {
    font-family: 'Courier New', Courier, monospace;
    color: #00BFA5;
}

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

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

th {
    background-color: rgba(0, 191, 165, 0.3);
}

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

/* 按钮样式 */
.button {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    background-color: #00BFA5;
    color: #FFFFFF;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.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%);
    opacity: 0;
    transition: all 0.5s ease;
}

.button:hover::before {
    width: 200px;
    height: 200px;
    opacity: 1;
}

.button:hover {
    transform: scale(1.05);
}

/* 浮动卡片 */
.card {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 网格布局 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* 动画效果 */
@keyframes nodeLightUp {
    0% { stroke-dashoffset: 251; }
    100% { stroke-dashoffset: 0; }
}

.svg-animated circle {
    stroke-dasharray: 251;
    stroke-dashoffset: 251;
    animation: nodeLightUp 2s forwards;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    h1 {
        font-size: 2.3em;
    }
}

@media (max-width: 1200px) {
    .article-container {
        padding: 15px;
    }
}

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

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    h1 {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5em;
    }
    .button {
        padding: 8px 16px;
    }
}

@media (max-width: 320px) {
    h1 {
        font-size: 1.2em;
    }
    pre {
        padding: 10px;
    }
}

