
/* 基础样式 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0A1931, #1C0F4B);
    color: #FFFFFF;
    line-height: 1.6;
    letter-spacing: 0.5px;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
p {
    font-size: 1rem;
    margin-bottom: 1.2rem;
}
a {
    color: #8A2BE2;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #4B0082;
}
button {
    background-color: #4B0082;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}
button:hover {
    background-color: #8A2BE2;
}

/* 网格布局 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    padding: 20px;
}
.card {
    grid-column: span 4;
    background-color: #1E1E1E;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
}
@media (max-width: 768px) {
    .card {
        grid-column: span 12;
    }
}

/* 背景与装饰 */
.background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image: url('https://images.gptkong.com/demo/sample1.png');
    background-repeat: repeat;
    z-index: -1;
}
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* 代码块样式 */
pre {
    background-color: #1E1E1E;
    color: #8A2BE2;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
code {
    color: #8A2BE2;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}
th, td {
    border: 1px solid #4B0082;
    padding: 10px;
    text-align: left;
}
th {
    background-color: #1E1E1E;
    color: #8A2BE2;
}

/* 自适应优化 */
@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    p {
        font-size: 0.9rem;
    }
}

