
/* 全局样式与色彩设计 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(to bottom right, #003f73, #8a2be2);
    color: white;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    position: relative;
}

/* 左侧固定导航栏 */
.sidebar {
    width: 250px;
    background: linear-gradient(to bottom, #ff9a00, #ffcc00);
    padding: 20px;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 10;
}

.sidebar h3 {
    text-align: center;
    color: #fff;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 20px;
}

.sidebar a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.sidebar a:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

/* 主内容区 */
.main-content {
    margin-left: 270px;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

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

.header-section h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 2.5em;
    font-weight: bold;
    font-style: italic;
    color: #ffcc00;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.header-section p {
    font-size: 1.2em;
    color: #fff;
}

.content-block {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.content-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 动态旋转圆环 */
.rotating-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: linear-gradient(to right, #ff9a00, #ffcc00);
    border-radius: 50%;
    animation: spin 10s infinite linear;
    z-index: 5;
}

@keyframes spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 粒子效果 */
.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: particleAnimation 3s infinite;
}

@keyframes particleAnimation {
    from { transform: translateX(-50%); opacity: 1; }
    to { transform: translateX(150%); opacity: 0; }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
    }

    .header-section h1 {
        font-size: 2em;
    }
}

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

    .content-block {
        padding: 15px;
    }
}

/* 按钮样式 */
button {
    background: linear-gradient(to right, #ff9a00, #ffcc00);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

/* 文章样式 */
.article-container {
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
}

.article-container h2 {
    font-size: 1.8em;
    color: #ffcc00;
    margin-bottom: 20px;
}

.article-container h3 {
    font-size: 1.2em;
    color: #fff;
    margin-bottom: 15px;
}

.article-container p {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 15px;
}

.article-container pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

.article-container code {
    color: #ffcc00;
    font-size: 0.9em;
}

