
/* 基本样式设置 */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700&family=Roboto&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: radial-gradient(circle, rgb(10, 36, 99), transparent), radial-gradient(circle, rgb(189, 189, 189), transparent);
    background-blend-mode: overlay;
    color: #FFFFFF;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 导航栏样式 */
.header {
    background: #0A2463;
    padding: 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-item {
    list-style: none;
    margin: 0 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-item:hover {
    color: #39FF14;
    transform: scale(1.1);
}

.nav-item.active {
    color: #FF9F1C;
}

.nav-item img {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.nav-item:hover img {
    filter: brightness(1.5);
    transform: rotate(10deg);
}

/* 主要内容区样式 */
.main-content {
    margin-top: 80px;
    padding: 20px;
    flex: 1;
    background: linear-gradient(135deg, rgba(10,36,99,0.8), rgba(189,189,189,0.8));
    backdrop-filter: blur(10px);
}

.section {
    margin-bottom: 40px;
}

.section h2, .section h3, .section h4 {
    font-family: 'Poppins', sans-serif;
    color: #39FF14;
    margin-bottom: 15px;
}

.section p {
    font-size: 16px;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.section pre {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

.section code {
    font-family: 'Roboto', monospace;
    color: #39FF14;
}

.article-display {
    background: #0A2463;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.article-display h2 {
    color: #FF9F1C;
    margin-bottom: 20px;
}

.article-display img {
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 10px 0;
    border-radius: 5px;
}

.code-preview {
    background: #2d2d2d;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.code-preview code {
    color: #39FF14;
    font-family: 'Roboto', monospace;
    display: block;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* 卡片样式 */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(57, 255, 20, 0.2);
}

.card h3 {
    color: #FF9F1C;
    margin-bottom: 10px;
}

.card p {
    color: #FFFFFF;
    margin-bottom: 10px;
}

.card a {
    text-decoration: none;
    color: #39FF14;
    font-weight: bold;
}

.card a:hover {
    color: #FFFFFF;
}

/* 提示信息样式 */
.reference-note {
    background: rgba(189, 189, 189, 0.2);
    padding: 15px;
    border-left: 5px solid #39FF14;
    margin-bottom: 30px;
    border-radius: 3px;
    font-style: italic;
    color: #FFFFFF;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .main-content {
        padding: 18px;
    }
}

@media (max-width: 1200px) {
    .navbar {
        flex-wrap: wrap;
    }
}

@media (max-width: 1024px) {
    .card-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-item {
        margin: 10px 0;
    }
    .card-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-item {
        font-size: 14px;
    }
    .section h2 {
        font-size: 20px;
    }
    .section p {
        font-size: 14px;
    }
}

@media (max-width: 320px) {
    .nav-item {
        font-size: 12px;
    }
    .section h2 {
        font-size: 18px;
    }
    .section p {
        font-size: 12px;
    }
}

/* 动画效果 */
@keyframes aurora-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
    display: block;
}

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

