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

/* 设置背景渐变和星光效果 */
body {
    background: linear-gradient(to bottom, #000428, #004e92);
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    background-size: cover;
    position: relative;
    overflow-x: hidden;
}

/* 添加星光点阵 */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent url('https://images.gptkong.com/demo/sample5.png') repeat;
    opacity: 0.05;
    pointer-events: none;
}

/* 容器样式 */
.container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 主要内容 */
.main-content {
    grid-column: 3 / span 8;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

/* 侧边栏 */
.sidebar {
    grid-column: 11 / span 2;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

/* 标题样式 */
h1, h2, h3 {
    font-family: 'Roboto', sans-serif;
    color: #00bcd4;
    margin-bottom: 20px;
}

h1 {
    font-size: 3rem;
    letter-spacing: 2px;
}

h2 {
    font-size: 2rem;
    margin-top: 40px;
}

h3 {
    font-size: 1.5rem;
    margin-top: 30px;
}

/* 段落样式 */
p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* 代码块样式 */
pre {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

code {
    font-family: 'Courier New', Courier, monospace;
    color: #00e5ff;
}

/* 图片样式 */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
}

/* 按钮样式 */
button, .cta-button {
    background-color: #00bcd4;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 4px;
}

button:hover, .cta-button:hover {
    background-color: #0097a7;
}

/* 链接样式 */
a {
    color: #00bcd4;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .container {
        max-width: 1000px;
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 900px;
    }
}

@media (max-width: 1024px) {
    .container {
        max-width: 750px;
    }
    .sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    .main-content {
        grid-column: 1 / span 1;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 1.75rem;
    }
    h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 320px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    h3 {
        font-size: 1rem;
    }
}

/* 提示信息样式 */
.reference-note {
    text-align: center;
    margin: 20px 0;
    font-style: italic;
    color: #ccc;
}

