
/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1E1E1E, #2C2C2C);
    color: #D8D8D8;
    line-height: 1.6;
}

/* 渐变背景与动画 */
header {
    background: radial-gradient(circle, rgba(34,193,195,1) 0%, rgba(253,187,45,1) 100%);
    padding: 20px;
    text-align: center;
    color: white;
    position: relative;
    animation: aurora-move 15s linear infinite;
}

@keyframes aurora-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 导航栏 */
nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 10px;
}

nav a {
    text-decoration: none;
    color: #D8D8D8;
    font-weight: bold;
    position: relative;
}

nav a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #7B2CBF;
    transition: width 0.3s;
    margin: 5px auto 0;
}

nav a:hover::after {
    width: 100%;
}

nav a[rel="nofollow"] {
    color: #D8D8D8;
}

/* 主体内容 */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.article {
    flex: 2 1 600px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

.article h2, .article h3, .article h4 {
    color: #7B2CBF;
}

.article pre {
    background: #2C2C2C;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    color: #00FFAA;
}

.article code {
    font-family: 'Courier New', Courier, monospace;
}

.example-section {
    flex: 1 1 300px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

.example-section img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* 图片悬停效果 */
.example-section img:hover {
    transform: scale(1.05);
    transition: transform 0.3s;
}

/* 提示信息 */
.note {
    text-align: center;
    padding: 10px;
    background: #7B2CBF;
    color: white;
    border-radius: 5px;
    margin: 20px;
    font-weight: bold;
}

/* 底部 */
footer {
    text-align: center;
    padding: 20px;
    background: #1E1E1E;
    color: #D8D8D8;
}

/* 按钮样式 */
button {
    background: #7B2CBF;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    font-family: 'Roboto', sans-serif;
}

button:hover {
    background: #5C1F9C;
    transform: scale(1.05);
}

/* 动态SVG动画 */
svg path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw 2s linear forwards;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

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

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

table th {
    background: #3A3A3A;
}

table tr:nth-child(even) {
    background: #2C2C2C;
}

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

@media (max-width: 1200px) {
    .container {
        max-width: 900px;
    }
}

@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .article, .example-section {
        flex: 1 1 100%;
    }

    body {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    nav {
        flex-direction: column;
        gap: 15px;
    }

    button {
        width: 100%;
    }
}

@media (max-width: 320px) {
    body {
        font-size: 14px;
    }

    .note {
        font-size: 14px;
    }
}

/* 粒子特效 */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background: transparent;
}

.particle {
    width: 5px;
    height: 5px;
    background: #FFD700;
    border-radius: 50%;
    position: absolute;
    animation: float 10s infinite;
}

@keyframes float {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-1000px) scale(0.5);
        opacity: 0;
    }
}

/* 动作按钮 */
.action-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

