
/* 整体页面样式设定 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    color: #ffffff;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    overflow-x: hidden;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.navbar a {
    color: #00C6FF;
    text-decoration: none;
    margin: 0 20px;
    font-size: 18px;
    transition: color 0.3s, transform 0.3s;
}

.navbar a:hover {
    color: #ffffff;
    transform: scale(1.1);
}

/* 主内容区样式 */
.main-content {
    padding-top: 80px;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 40px;
}

/* 侧边导航样式 */
.sidebar {
    position: sticky;
    top: 100px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
}

.sidebar h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #00C6FF;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.sidebar ul li a:hover {
    color: #00C6FF;
}

/* 文章内容样式 */
.article {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.article h2, .article h3 {
    color: #00C6FF;
    font-family: 'Montserrat', sans-serif;
}

.article p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.article pre {
    background-color: rgba(0, 198, 255, 0.2);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 20px;
}

.article pre .code-example {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #ffffff;
    padding: 10px;
    border-radius: 5px;
}

.article img {
    width: 100%;
    max-width: 320px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
}

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

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: relative;
        top: 0;
    }
}

/* 背景动态星河效果 */
.background {
    background: url('https://images.gptkong.com/demo/sample1.png') repeat;
    animation: stars 100s linear infinite;
    background-size: cover;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* 星河动画关键帧 */
@keyframes stars {
    from { background-position: 0 0; }
    to { background-position: -10000px 5000px; }
}

/* 按钮样式 */
.button {
    background-color: #00C6FF;
    border: none;
    padding: 10px 20px;
    color: #ffffff;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s;
}

.button:hover {
    transform: scale(1.05);
    background-color: #007BFF;
}

/* 强调文字 */
.highlight {
    color: #00C6FF;
    font-weight: bold;
}

/* 加载动画样式 */
.loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loader::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 5px solid #00C6FF;
    border-top: 5px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 旋转动画关键帧 */
@keyframes spin {
    to { transform: rotate(360deg); }
}

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

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

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

/* 数据图表样式 */
.chart {
    width: 100%;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    position: relative;
}

.bar {
    width: 30px;
    background-color: #00C6FF;
    position: absolute;
    bottom: 0;
    transition: height 0.5s, background-color 0.3s;
}

.bar:hover {
    background-color: #007BFF;
    height: 80%;
}

/* 图标样式 */
.icon {
    width: 24px;
    height: 24px;
    fill: #00C6FF;
    transition: fill 0.3s;
}

.icon:hover {
    fill: #ffffff;
}


