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

/* Body 样式 */
body {
    font-family: 'Roboto', sans-serif;
    background: url('https://images.gptkong.com/demo/sample1.png'), url('https://images.gptkong.com/demo/sample2.png');
    background-size: cover;
    background-blend-mode: overlay; /* 添加混合模式 */
    color: #ffffff;
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
    animation: star-move 60s linear infinite;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    height: 100%;
    background: linear-gradient(180deg, #1e3c72, #2a5298);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 50px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.5);
}

.navbar h1 {
    font-size: 24px;
    margin-bottom: 40px;
    color: #39FF14;
    text-align: center;
}

.navbar a {
    text-decoration: none;
    color: #ffffff;
    width: 100%;
    padding: 15px 20px;
    transition: background 0.3s, color 0.3s;
    border-radius: 0 50px 50px 0;
    margin-bottom: 10px;
}

.navbar a:hover {
    background: rgba(57, 255, 20, 0.2);
    color: #39FF14;
}

/* 主内容区域样式 */
.main-content {
    margin-left: 220px;
    padding: 40px;
    background: rgba(0, 0, 0, 0.5);
    flex: none;
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

.main-content h2 {
    color: #39FF14;
    margin-bottom: 20px;
    font-size: 28px;
}

.main-content h3 {
    color: #00FFFF;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 22px;
}

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

.main-content pre {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.main-content code {
    color: #39FF14;
    font-family: 'Courier New', Courier, monospace;
}

.article-display {
    background: #141414;
    padding: 20px;
    border-radius: 10px;
    margin-top: 40px;
}

.article-display h2 {
    color: #FF6B6B;
    margin-bottom: 15px;
}

.article-display h3 {
    color: #FFD93D;
    margin-top: 25px;
    margin-bottom: 10px;
}

.article-display p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.article-display pre {
    background: #2c2c2c;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 15px;
}

.article-display code {
    color: #FF6B6B;
}

.code-example {
    background: #1e1e1e;
    padding: 10px;
    border-left: 4px solid #39FF14;
    margin-bottom: 20px;
    border-radius: 4px;
}

/* 右侧辅助区样式 */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 220px;
    height: 100%;
    background: linear-gradient(180deg, #2a5298, #1e3c72);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 50px;
    box-shadow: -2px 0 5px rgba(0,0,0,0.5);
}

.sidebar .status {
    font-size: 18px;
    color: #39FF14;
    margin-bottom: 30px;
}

.sidebar .tools a {
    text-decoration: none;
    color: #ffffff;
    width: 100%;
    padding: 10px 15px;
    transition: background 0.3s, color 0.3s;
    border-radius: 0 50px 50px 0;
    margin-bottom: 10px;
}

.sidebar .tools a:hover {
    background: rgba(57, 255, 20, 0.2);
    color: #39FF14;
}

/* 图片样式 */
.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.images-grid img {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.3s;
}

.images-grid img:hover {
    transform: scale(1.05);
}

/* 响应式布局 */
@media (max-width: 1200px) {
    .navbar, .sidebar {
        width: 180px;
    }
    .navbar h1 {
        font-size: 20px;
    }
    .sidebar .status {
        font-size: 16px;
    }
}

@media (max-width: 1024px) {
    .main-content {
        padding: 30px;
    }
    .main-content h2 {
        font-size: 24px;
    }
    .main-content h3 {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .navbar, .sidebar {
        display: none;
    }
    .main-content {
        margin: 0;
        padding: 20px;
    }
    .images-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

@media (max-width: 480px) {
    .main-content h2 {
        font-size: 20px;
    }
    .main-content h3 {
        font-size: 18px;
    }
    .article-display h2 {
        font-size: 22px;
    }
    .article-display h3 {
        font-size: 18px;
    }
}

@media (max-width: 320px) {
    .images-grid {
        grid-template-columns: 1fr;
    }
}

/* 动画效果 */
@keyframes star-move {
    0% { background-position: 0 0; }
    100% { background-position: 10000px 5000px; }
}

@keyframes aurora-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.aurora {
    background: radial-gradient(circle, rgba(255,87,34,1) 0%, transparent 70%);
    animation: aurora-move 15s linear infinite;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: -1;
}

