
/* 导入字体 */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Roboto:wght@400;700&display=swap');

/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: radial-gradient(circle at top center, #1a237e, #000000);
    color: #ffffff;
    overflow-x: hidden;
}

/* 动态星河效果 */
@keyframes aurora-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
}

/* 主要内容区域 */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* 示例展示文章样式 */
.article-section {
    background: rgba(25, 25, 112, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(30, 144, 255, 0.5);
}

.article-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
    border-bottom: 2px solid #1E90FF;
    padding-bottom: 10px;
}

.article-section p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.article-section pre {
    background: #2c2c54;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

.article-section code {
    font-family: 'Roboto Mono', monospace;
    color: #FFD700;
}

.article-section table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.article-section table, .article-section th, .article-section td {
    border: 1px solid #1E90FF;
}

.article-section th, .article-section td {
    padding: 10px;
    text-align: left;
}

.article-section .highlight {
    color: #FFA500;
    font-weight: bold;
}

.article-section .success {
    color: #32CD32;
    font-weight: bold;
}

.article-section .icon {
    font-size: 32px;
    color: #FFD700;
    margin-right: 8px;
}

/* 提示信息 */
.reference-note {
    font-size: 14px;
    color: #FFA500;
    text-align: center;
    margin-bottom: 30px;
}

/* 卡片网格布局 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* 单个卡片样式 */
.card {
    background: rgba(25, 25, 112, 0.9);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #1E90FF;
    box-shadow: 0 4px 8px rgba(30, 144, 255, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.card:hover {
    box-shadow: 0 8px 16px rgba(30, 144, 255, 0.8);
    transform: scale(1.05);
}

.card img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
}

.card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #1E90FF;
}

.card p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.card .button-group {
    display: flex;
    gap: 10px;
}

.card .button-group a {
    text-decoration: none;
    padding: 8px 12px;
    background: #1E90FF;
    color: #ffffff;
    border-radius: 5px;
    font-size: 14px;
    transition: background 0.3s ease;
}

.card .button-group a:hover {
    background: #00BFFF;
}

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

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

@media (max-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

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

    .article-section h2 {
        font-size: 24px;
    }

    .card h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .article-section h2 {
        font-size: 20px;
    }

    .card h3 {
        font-size: 16px;
    }

    .reference-note {
        font-size: 12px;
    }
}

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

    .article-section h2 {
        font-size: 18px;
    }

    .card h3 {
        font-size: 14px;
    }
}

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

th, td {
    padding: 10px;
    border: 1px solid #1E90FF;
}

th {
    background: #1E90FF;
    color: #ffffff;
}

td {
    background: rgba(25, 25, 112, 0.7);
    color: #ffffff;
}

/* 按钮样式 */
button, .button {
    background: #1E90FF;
    color: #ffffff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 14px;
}

button:hover, .button:hover {
    background: #00BFFF;
}

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

a:hover {
    text-decoration: underline;
}

/* 图标样式 */
.icon {
    font-size: 24px;
    color: #FFD700;
}

/* 表单样式（如果有） */
input, textarea, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #1E90FF;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    margin-bottom: 10px;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #00BFFF;
}

/* 图片描述属性 */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

