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

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #000066, #003399);
    color: #ffffff;
    line-height: 1.6;
    padding: 20px;
}

/* 动态星空背景 */
.background-starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.gptkong.com/demo/sample1.png') repeat;
    z-index: -1;
    animation: starfield-move 60s linear infinite;
}

@keyframes starfield-move {
    from { background-position: 0 0; }
    to { background-position: -10000px 5000px; }
}

/* 导航栏样式 */
.navbar {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.navbar a {
    color: #74EBD5;
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold;
    position: relative;
}

.navbar a:hover {
    color: #ffffff;
    transition: color 0.3s ease;
}

/* 主要内容区域 */
.container {
    max-width: 1200px;
    margin: 50px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(15px);
}

.card {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 64px 0 rgba(31, 38, 135, 0.37);
}

/* 标题与文本样式 */
h1, h2, h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    margin-bottom: 15px;
    color: #74EBD5;
}

p {
    font-family: 'Open Sans', sans-serif;
    font-weight: 500;
    margin-bottom: 15px;
    color: #ffffff;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    border: 1px solid #74EBD5;
    padding: 10px;
    text-align: left;
}

th {
    background: rgba(116, 235, 213, 0.3);
    color: #ffffff;
}

tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.1);
}

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

code {
    color: #74EBD5;
    font-family: 'Courier New', Courier, monospace;
}

/* 按钮样式 */
button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

button:hover {
    background-color: #0056b3;
    transform: scale(1.1);
}

/* 响应式设计 */
@media (max-width: 480px) {
    .navbar {
        flex-direction: column;
    }
    .container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (min-width: 1200px) {
    body {
        padding: 40px;
    }
}

@media (min-width: 1440px) {
    .container {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

/* 滚动视差效果 */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 400px;
    border-radius: 15px;
    margin-bottom: 30px;
}

/* 提示文字样式 */
.reference-note {
    text-align: center;
    font-size: 18px;
    margin-top: 40px;
    color: #74EBD5;
}

