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

/* 全局样式 */
body {
    font-family: 'Roboto', sans-serif;
    background: radial-gradient(circle at center, #0A1F44, #000033);
    color: #F5F5F5;
    line-height: 1.6;
    padding: 20px;
}

/* 导航栏样式 */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 31, 68, 0.9);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    color: #FFD700;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #FFD700;
}

/* 主内容区样式 */
.main-content {
    margin-top: 80px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* 文章样式 */
article h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    color: #FFD700;
    margin-bottom: 20px;
}

article h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    color: #8A2BE2;
    margin-top: 30px;
    margin-bottom: 15px;
}

article h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    color: #FFD700;
    margin-top: 25px;
    margin-bottom: 10px;
}

article p {
    font-size: 16px;
    margin-bottom: 15px;
}

article code {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
}

article pre {
    background: rgba(0, 0, 51, 0.8);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
}

article table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    margin-bottom: 25px;
}

article table, 
article th, 
article td {
    border: 1px solid #FFD700;
}

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

article th {
    background: rgba(138, 43, 226, 0.7);
    color: #FFFFFF;
}

article td {
    background: rgba(255, 215, 0, 0.7);
    color: #000000;
}

/* 卡片布局 */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    color: #FFD700;
    margin-bottom: 10px;
}

.card p {
    font-size: 14px;
    color: #F5F5F5;
}

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

body {
    animation: aurora-move 15s linear infinite;
    background-size: 400% 400%;
}

/* 交互效果 */
.planet:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px #FFD700;
}

button {
    background: #8A2BE2;
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
}

button:hover {
    background: #FFD700;
    transform: rotate(5deg) scale(1.05);
}

/* 响应式设计 */
/* 小尺寸手机 */
@media (max-width: 320px) {
    header h1 {
        font-size: 20px;
    }
    
    nav ul li a {
        font-size: 14px;
    }
    
    article h2 {
        font-size: 24px;
    }
    
    .card h3 {
        font-size: 18px;
    }
}

/* 大尺寸手机 */
@media (min-width: 321px) and (max-width: 480px) {
    header h1 {
        font-size: 22px;
    }
    
    nav ul li a {
        font-size: 15px;
    }
    
    article h2 {
        font-size: 26px;
    }
    
    .card h3 {
        font-size: 19px;
    }
}

/* 竖屏平板 */
@media (min-width: 481px) and (max-width: 768px) {
    header h1 {
        font-size: 24px;
    }
    
    nav ul li a {
        font-size: 16px;
    }
    
    article h2 {
        font-size: 28px;
    }
    
    .card h3 {
        font-size: 20px;
    }
}

/* 中等屏幕 */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* 桌面显示器 */
@media (min-width: 1025px) and (max-width: 1200px) {
    header h1 {
        font-size: 26px;
    }
    
    nav ul li a {
        font-size: 17px;
    }
    
    article h2 {
        font-size: 30px;
    }
    
    .card h3 {
        font-size: 22px;
    }
}

/* 大尺寸桌面显示器 */
@media (min-width: 1201px) {
    .container {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
    
    header h1 {
        font-size: 28px;
    }
    
    nav ul li a {
        font-size: 18px;
    }
    
    article h2 {
        font-size: 32px;
    }
    
    .card h3 {
        font-size: 24px;
    }
}

