
/* 全局样式设定 */
body {
    background: linear-gradient(135deg, #002b5c, #0a3d62);
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
}

/* 头部样式 */
.header {
    background-color: rgba(0, 43, 92, 0.9);
    padding: 20px;
    text-align: center;
    position: relative;
}

.header h1 {
    margin: 0;
    font-size: 2.5em;
    color: #ff6600;
}

.header .subtitle {
    font-size: 1.2em;
    color: #ffffff;
    margin-top: 10px;
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: center;
    background-color: rgba(0, 43, 92, 0.8);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar a {
    color: #ffffff;
    padding: 14px 20px;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
}

.navbar a:hover {
    background-color: #ff6600;
    transform: scale(1.05);
}

/* 主内容区 */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.1);
}

/* 文章样式 */
article {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

article:hover {
    transform: translateY(-10px);
}

article h2 {
    color: #ffcc00;
    font-size: 2em;
    margin-bottom: 10px;
}

article h3 {
    color: #ff6600;
    font-size: 1.5em;
    margin-top: 20px;
}

article p {
    line-height: 1.6;
    color: #ffffff;
}

article pre {
    background-color: #0a3d62;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}

article code {
    color: #ffcc00;
    font-family: 'Courier New', Courier, monospace;
}

/* 按钮样式 */
.button {
    background-color: #ff6600;
    border: none;
    color: #ffffff;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 20px 2px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
}

.button:hover {
    background-color: #e65c00;
    transform: scale(1.1);
}

/* 图片样式 */
img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2em;
    }
    
    .container {
        padding: 20px;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .navbar a {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .header h1 {
        font-size: 1.5em;
    }
    
    .button {
        width: 100%;
        padding: 12px;
    }
}

