
/* 基础全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #12153d, #3c2b7a);
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    gap: 20px;
}
/* 标题与导航栏设计 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to right, #1e255f, #2b1f56);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}
header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}
header nav a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}
header nav a:hover {
    background: linear-gradient(90deg, #4b5bff, #7a6cff);
    border-radius: 5px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}
/* 星河背景动画 */
.background-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.gptkong.com/demo/sample1.png') repeat, 
                url('https://images.gptkong.com/demo/sample2.png') repeat;
    animation: star-flow 60s linear infinite;
    z-index: -1;
}
@keyframes star-flow {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100%); }
}
/* 模块化布局 */
.module {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.module h2 {
    font-size: 24px;
    margin-bottom: 15px;
}
.module p {
    font-size: 16px;
    margin-bottom: 10px;
}
.module img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 10px 0;
}
/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
table th, table td {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px;
    text-align: left;
}
table th {
    background: linear-gradient(90deg, #4b5bff, #7a6cff);
    color: #fff;
    font-weight: bold;
}
table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
}
/* 代码高亮 */
pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}
code {
    color: #ffeb3b;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
}
/* 动画效果 */
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.2; }
    100% { opacity: 1; }
}
.star {
    position: absolute;
    width: 5px;
    height: 5px;
    background: white;
    border-radius: 50%;
    animation: blink 3s infinite ease-in-out;
}
/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    header nav a {
        font-size: 14px;
        padding: 8px 12px;
    }
    h1 {
        font-size: 36px;
    }
    pre {
        font-size: 12px;
    }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1025px) {
    .container {
        grid-template-columns: repeat(3, 1fr);
    }
}

