
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #4B0082, #6495ED);
    color: #333333;
    line-height: 1.6;
}

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

/* 顶部导航栏 */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.navbar a {
    color: #FFFFFF;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #39FF14;
}

/* 主要内容区域 */
main {
    padding-top: 80px;
}

/* 标题样式 */
h1, h2, h3 {
    color: #FFFFFF;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5em;
    text-align: center;
    letter-spacing: 2px;
}

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

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

/* 段落样式 */
p {
    margin-bottom: 20px;
    font-size: 1em;
}

/* 强调文本 */
b {
    color: #FFD700;
}

/* 按钮样式 */
.button {
    background-color: #FF4500;
    color: #FFFFFF;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
}

.button:hover {
    transform: scale(1.1);
    background-color: #FF6347;
}

/* 代码块样式 */
pre {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    color: #39FF14;
    font-family: 'Courier New', Courier, monospace;
}

code {
    font-size: 0.9em;
}

/* 列表样式 */
ul, ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

li {
    margin-bottom: 10px;
    color: #F5F5F5;
}

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

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

th {
    background-color: rgba(255, 215, 0, 0.3);
}

td {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 图片样式 */
.img-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.img-grid img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}

/* 示例展示样式 */
.sample-display {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 10px;
    margin-top: 40px;
}

.sample-display h2 {
    color: #FFD700;
    text-align: center;
    margin-bottom: 20px;
}

/* 底部工具栏 */
footer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    text-align: center;
    color: #FFFFFF;
    position: fixed;
    width: 100%;
    bottom: 0;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    h1 {
        font-size: 2.2em;
    }

    h2 {
        font-size: 1.8em;
    }
}

@media (max-width: 1200px) {
    .navbar {
        flex-direction: column;
    }

    .navbar a {
        margin: 10px 0;
    }
}

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

@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.6em;
    }

    .img-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

@media (max-width: 480px) {
    .navbar {
        flex-direction: column;
    }

    h1 {
        font-size: 1.8em;
    }

    .img-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}

@media (max-width: 320px) {
    h1 {
        font-size: 1.5em;
    }

    p, li, code {
        font-size: 0.9em;
    }
}

/* 过渡动画 */
a, .button {
    transition: all 0.3s ease;
}

/* 视觉冲击力增强 */
.main-visual {
    position: relative;
    height: 60vh;
    background: linear-gradient(135deg, #4B0082, #6495ED);
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-visual img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    object-fit: cover;
    animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

