
/* 全局样式 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: radial-gradient(circle, rgba(26,26,26,1) 0%, rgba(26,26,26,1) 50%, rgba(26,26,26,0) 100%);
    color: #FFFFFF;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    animation: backgroundMove 30s linear infinite;
}

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

header {
    background: linear-gradient(135deg, #6F00FF, #B300FF);
    padding: 20px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

header h1 {
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5em;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

main {
    flex: 1;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

section {
    background: rgba(34,34,34,0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.5);
    position: relative;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8em;
    color: #B300FF;
    margin-bottom: 15px;
    text-align: center;
}

article {
    font-family: 'Roboto', sans-serif;
}

h2, h3, h4 {
    color: #FF55AA;
    margin-top: 20px;
}

p {
    margin: 15px 0;
    font-size: 1em;
}

ul, ol {
    margin: 15px 0 15px 40px;
}

li {
    margin-bottom: 10px;
}

pre {
    background: #1A1A1A;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    margin: 15px 0;
}

code {
    color: #00FFAA;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

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

th {
    background: #333333;
    color: #FF55AA;
}

.card {
    background: #2A2A2A;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}

button, .btn {
    background: linear-gradient(to right, #6F00FF, #B300FF);
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out, background 0.5s;
    font-size: 1em;
}

button:hover, .btn:hover {
    transform: scale(1.1);
    background: linear-gradient(to right, #B300FF, #6F00FF);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 10px 0;
}

.code-preview {
    background: #1A1A1A;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}

.footer {
    background: linear-gradient(135deg, #6F00FF, #B300FF);
    text-align: center;
    padding: 15px;
    font-size: 0.9em;
    color: #FFFFFF;
    position: sticky;
    bottom: 0;
}

@media (min-width: 320px) and (max-width: 479px) {
    header h1 {
        font-size: 1.8em;
    }
    .section-title {
        font-size: 1.5em;
    }
    p, li, table, pre, code {
        font-size: 0.9em;
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    main {
        grid-template-columns: 1fr;
    }
    header h1 {
        font-size: 2em;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    main {
        grid-template-columns: 1fr 1fr;
    }
    .section-title {
        font-size: 1.6em;
    }
}

@media (min-width: 1024px) and (max-width: 1199px) {
    main {
        grid-template-columns: 1fr 1fr 1fr;
    }
    header h1 {
        font-size: 2.5em;
    }
}

@media (min-width: 1200px) and (max-width: 1439px) {
    main {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

@media (min-width: 1440px) {
    main {
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    }
}

/* 动态粒子背景 */
.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: particleMove 10s infinite linear;
}

@keyframes particleMove {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-100vh); opacity: 0; }
}

/* 融入动态背景 */
.section-background {
    position: relative;
    overflow: hidden;
}

.section-background::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 0;
}

.section-background .particle {
    top: 0;
    left: 0;
}

/* 微交互元素 */
a {
    color: #6F00FF;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #B300FF;
}

a[rel="nofollow"]::after {
    content: '';
}

/* 代码块预览效果 */
pre code {
    background: #2A2A2A;
    padding: 10px;
    border-radius: 5px;
    display: block;
    overflow-x: auto;
}

/* 表单元素隐藏 */
input, textarea, select, button[type="submit"] {
    display: none;
}

