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

/* 设定主体字体和背景渐变 */
body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #00c6ff, #6c5ce7);
    color: #ffffff;
    line-height: 1.6;
    padding: 20px;
}

/* 固定顶部导航栏样式 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.5);
    transition: background 0.5s;
    z-index: 1000;
}

/* 滚动时导航栏背景渐变 */
header.scrolled {
    background: linear-gradient(135deg, #6c5ce7, #00c6ff);
}

/* 导航菜单样式 */
nav ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ff00e0;
}

/* 主页英雄区样式 */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #00c6ff, #6c5ce7);
    animation: auroraFlow 10s infinite alternate;
}

@keyframes auroraFlow {
    0% { background: linear-gradient(135deg, #00c6ff, #6c5ce7); }
    100% { background: linear-gradient(135deg, #6c5ce7, #00c6ff); }
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-align: center;
}

.hero p {
    font-size: 1.5rem;
    max-width: 600px;
    text-align: center;
    margin-bottom: 40px;
}

.hero button {
    padding: 15px 30px;
    font-size: 1rem;
    border: none;
    border-radius: 30px;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
}

.hero button:hover {
    transform: scale(1.1);
    background: linear-gradient(90deg, #ff7eff, #ff00e0);
}

/* 内容区样式 */
.content {
    padding: 100px 40px 40px 40px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    margin-top: 100vh;
}

/* 文章标题和副标题样式 */
.content h2, .content h3 {
    margin-bottom: 15px;
    color: #ffffff;
}

/* 文章段落、代码块和表格样式 */
.content p, .content pre, .content code, .content table {
    margin-bottom: 20px;
    line-height: 1.6;
}

.content pre {
    background: #2d2d2d;
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
}

.content code {
    background: #333333;
    padding: 2px 5px;
    border-radius: 5px;
}

.content table {
    width: 100%;
    border-collapse: collapse;
}

.content table, .content th, .content td {
    border: 1px solid #ffffff;
}

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

/* 示例数据展示区样式 */
.sample-data {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-top: 40px;
}

.sample-data h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #ff00e0;
}

.sample-data ul {
    list-style: disc inside;
}

.sample-data li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
}

.sample-data li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 10px;
    height: 10px;
    background: #ff00e0;
    border-radius: 50%;
}

.sample-data img {
    width: 100%;
    max-width: 320px;
    margin: 10px 0;
    border-radius: 10px;
}

/* 页脚样式 */
.footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
}

/* 响应式设计媒体查询 */
@media (max-width: 1440px) {
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 1200px) {
    .hero h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 1024px) {
    .hero p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
        max-width: 100%;
    }
    nav ul {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    header {
        padding: 15px 20px;
    }
    nav ul li a {
        font-size: 1rem;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .hero p {
        font-size: 0.9rem;
    }
}

@media (max-width: 320px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    .hero p {
        font-size: 0.8rem;
    }
}

