
/* 基础样式 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0F2027, #000000);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2, h3 {
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

p {
    font-family: 'Open Sans', sans-serif;
    font-weight: normal;
    line-height: 1.6;
    margin-bottom: 15px;
}

a {
    color: #FFC300;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 动态背景效果 */
.background-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent),
                linear-gradient(135deg, #0F2027, #000000);
    animation: aurora-move 15s linear infinite;
}

@keyframes aurora-move {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    animation: star-dust 10s infinite alternate;
}

@keyframes star-dust {
    0% { transform: translateY(0) scale(1); opacity: 0.2; }
    100% { transform: translateY(-100vh) scale(2); opacity: 1; }
}

/* 按钮与交互元素 */
button, .btn {
    background-color: #FFC300;
    color: #000000;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

button:hover, .btn:hover {
    background-color: #FFD700;
    transform: scale(1.05);
}

/* 选项卡布局 */
.tabs {
    display: flex;
    justify-content: space-around;
    background-color: rgba(255, 195, 0, 0.2);
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.tabs button {
    background-color: transparent;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.tabs button.active {
    background-color: #FFC300;
    color: #000000;
    border-radius: 5px;
}

.tab-content {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    padding: 20px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1);
}

.tab-content.active {
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tabs {
        flex-direction: column;
    }

    .tabs button {
        width: 100%;
        margin-bottom: 10px;
    }

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

/* 文章排版 */
article {
    margin-top: 40px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

article pre {
    background-color: #000000;
    color: #FFC300;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

article code {
    color: #FFC300;
    font-size: 14px;
}

.separator {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin: 20px 0;
}

/* 图片装饰 */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.gallery img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

