
/* 基本样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1A253E, #6F2CFA);
    color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
    padding: 20px;
    transition: background 0.5s ease;
}

/* 响应式布局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 3em;
    color: #00FFA8;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    }
    to {
        text-shadow: 0 0 20px rgba(0,255,168,0.8);
    }
}

.navigation {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.navigation a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1.2em;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.navigation a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background: #00FFA8;
    left: 0;
    bottom: 0;
    transition: width 0.3s ease;
}

.navigation a:hover::after {
    width: 100%;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media(min-width: 768px) {
    .main-content {
        grid-template-columns: 2fr 1fr;
    }
}

.article-content {
    background: rgba(26, 37, 62, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,255,168,0.5);
}

.article-content h2 {
    font-size: 2em;
    color: #6F2CFA;
    margin-bottom: 20px;
}

.article-content h3 {
    font-size: 1.5em;
    color: #00FFA8;
    margin-top: 20px;
    margin-bottom: 10px;
}

.article-content h4 {
    font-size: 1.2em;
    color: #00FFA8;
    margin-top: 15px;
    margin-bottom: 5px;
}

.article-content p {
    margin-bottom: 15px;
    color: #E0E0E0;
}

.article-content ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content pre {
    background: #1A253E;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 15px;
}

.article-content code {
    color: #00FFA8;
    font-family: 'Courier New', Courier, monospace;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.article-content table, .article-content th, .article-content td {
    border: 1px solid #00FFA8;
}

.article-content th, .article-content td {
    padding: 10px;
    text-align: left;
}

.sidebar {
    background: rgba(26, 37, 62, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,255,168,0.5);
}

.sidebar h3 {
    font-size: 1.5em;
    color: #00FFA8;
    margin-bottom: 15px;
}

.sidebar img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.sidebar img:hover {
    transform: scale(1.05);
}

.footer {
    text-align: center;
    margin-top: 40px;
    color: #CCCCCC;
    font-size: 0.9em;
}

.notice {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(26, 37, 62, 0.9);
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0,255,168,0.5);
    font-size: 1em;
    color: #00FFA8;
    animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background: #00FFA8;
    color: #1A253E;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    font-size: 1em;
}

.button:hover {
    box-shadow: 0 0 10px #00FFA8;
    transform: scale(1.05);
}

.button:active {
    transform: scale(0.95);
}

.code-block {
    background: #1A253E;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 15px;
}

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

@media(max-width: 480px) {
    header h1 {
        font-size: 2em;
    }

    .navigation a {
        font-size: 1em;
    }

    .article-content h2 {
        font-size: 1.5em;
    }

    .sidebar h3 {
        font-size: 1.2em;
    }

    .button {
        font-size: 0.9em;
        padding: 8px 16px;
    }
}

@media(min-width: 1024px) {
    .main-content {
        grid-template-columns: 3fr 1fr;
    }
}

@media(min-width: 1440px) {
    .container {
        padding: 40px;
    }

    .article-content h2 {
        font-size: 2.5em;
    }

    .navigation a {
        font-size: 1.3em;
    }
}

@media(min-width: 1200px) {
    .sidebar img {
        height: 200px;
        object-fit: cover;
    }
}

/* 动态粒子效果 */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: transparent;
}

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

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

/* 生成动态粒子 */
body.loaded .particles .particle {
    animation-duration: calc(5s + 10s * var(--i));
    left: calc(100% * var(--i));
    top: 100%;
    background: rgba(0,255,168, 0.7);
}

/* 全息效果 */
.hologram {
    position: relative;
    display: inline-block;
}

.hologram::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0,255,168,0.5), transparent);
    animation: shine 3s linear infinite;
}

@keyframes shine {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(100%);
    }
}

