
/* 全局样式 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(to bottom, #003366, #4d79ff);
    color: #333;
    padding: 20px;
    box-sizing: border-box;
    background-attachment: fixed;
}

/* 头部样式 */
header {
    background: radial-gradient(circle, rgb(255, 87, 34), transparent);
    padding: 40px 20px;
    text-align: center;
    color: white;
    animation: aurora-move 15s linear infinite;
    border-radius: 10px;
    margin-bottom: 30px;
}

/* 标题样式 */
h1, h2, h3, h4 {
    font-family: 'Roboto', sans-serif;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5em;
}

h2 {
    font-size: 2em;
}

h3 {
    font-size: 1.75em;
}

h4 {
    font-size: 1.5em;
}

/* 卡片式设计 */
.card {
    background: #ffffff;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.2);
    border-radius: 12px;
    margin: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.card:hover {
    box-shadow: 0px 0px 20px rgba(255,255,255,0.8);
    transform: translateY(-5px);
}

/* 按钮样式 */
.button {
    background: #ff9900;
    color: white;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.2s, background 0.3s;
    font-size: 1em;
}

.button:hover {
    background: #e68a00;
}

.button:active {
    transform: scale(0.95);
}

/* 渐变背景 */
.background-gradient {
    background: linear-gradient(to right, #004e92, #000428);
    padding: 50px;
    border-radius: 10px;
    margin-bottom: 30px;
}

/* CSS动画关键帧 */
@keyframes aurora-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 1200px) {
    .card {
        padding: 20px;
    }
}

@media (max-width: 1024px) {
    header {
        padding: 30px 15px;
    }
}

@media (max-width: 768px) {
    .card {
        width: 100%;
        box-shadow: none;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    header {
        padding: 20px 10px;
    }
    h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 1.75em;
    }
}

/* 代码块样式 */
pre {
    background: #f4f4f4;
    padding: 15px;
    overflow-x: auto;
    border-radius: 5px;
    margin-bottom: 20px;
}

code {
    font-family: 'Courier New', Courier, monospace;
    color: #c7254e;
    background-color: #f9f2f4;
    padding: 2px 4px;
    border-radius: 3px;
}

/* 图片响应 */
img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* 导航链接 */
a {
    color: #4d79ff;
    text-decoration: none;
}

a[rel="nofollow"] {
    /* 特定样式，可保持默认 */
}

/* 网格系统 */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* 文字排版 */
p, ul, ol {
    line-height: 1.6;
    margin-bottom: 20px;
}

/* 列表样式 */
ul {
    list-style-type: disc;
    padding-left: 20px;
}

ol {
    list-style-type: decimal;
    padding-left: 20px;
}

/* 预览效果 */
.preview {
    background: #e8e8e8;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}

/* Footer样式 */
.footer {
    text-align: center;
    padding: 20px;
    background: #003366;
    color: white;
    border-radius: 10px;
    margin-top: 30px;
}

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

th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

th {
    background-color: #4d79ff;
    color: white;
}

/* 添加更多视觉元素以增强设计 */
.icon {
    width: 50px;
    height: 50px;
    margin-right: 10px;
    vertical-align: middle;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
    }
}

