
/* 页面全局样式设置 */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0a0a0a, #1c0c38); /* 深邃背景渐变 */
    color: #ffffff;
    overflow-x: hidden; /* 防止水平滚动条 */
}

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

/* 标题通用样式 */
h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: bold;
    color: #00ffff; /* 鲜艳标题颜色 */
    text-shadow: 0 0 10px #00ffff; /* 标题文字阴影 */
    margin-bottom: 20px;
    text-align: center;
}

/* 段落文本通用样式 */
p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #d0d0d0; /* 柔和文本颜色 */
    margin-bottom: 15px;
}

/* 链接通用样式 */
a {
    color: #00bbff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #00ffff;
}

/* 分隔线样式 */
hr {
    border: 0;
    border-top: 1px solid #333; /* 细分隔线 */
    margin: 30px 0;
}

/* 代码块通用样式 */
pre {
    background-color: #1e1e1e; /* 深色代码背景 */
    color: #f8f8f2; /* 代码文字颜色 */
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto; /* 水平滚动条，代码过长时可滚动 */
    tab-size: 4;
    -moz-tab-size: 4;
    white-space: pre-wrap; /* 代码自动换行 */
}

pre code {
    font-family: 'Courier New', Courier, monospace;
    display: block; /* 确保代码块占据整行 */
}

/* 列表通用样式 */
ul {
    list-style-type: square;
    padding-left: 25px;
    margin-bottom: 15px;
}

ul li {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #d0d0d0;
    margin-bottom: 8px;
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(to right, #4b0082, #800080); /* 按钮渐变背景 */
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* 头部区域样式 */
header {
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0.7)); /* 头部背景渐变 */
    padding: 30px 0;
    text-align: center;
}

header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    color: #00ffff;
    margin-bottom: 10px;
    text-shadow: 0 0 15px #00ffff;
}

header p {
    font-size: 1.2rem;
    color: #eee;
}

/* Hero区域样式 */
.hero {
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    background: linear-gradient(to right, #220044, #000022); /* Hero背景渐变 */
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 4rem;
    margin-bottom: 25px;
}

.hero p {
    font-size: 1.3rem;
    color: #ddd;
    margin-bottom: 40px;
}

.hero-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2; /* 背景图片透明度 */
    display: flex;
    justify-content: space-around;
    align-items: center;
    pointer-events: none; /* 避免图片遮挡内容 */
}

.hero-images img {
    max-height: 150px;
}

/* 主要内容区域样式 */
.main-content {
    padding: 50px 0;
    background-color: #111; /* 主要内容背景色 */
}

.section {
    margin-bottom: 60px;
    padding: 0 20px;
}

.section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    color: #00ffff;
    margin-bottom: 30px;
    text-shadow: 0 0 8px #00ffff;
    text-align: center;
}

.grid-data {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.data-item {
    background-color: #1e1e1e;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease-in-out;
}

.data-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
}

.data-item h3 {
    font-size: 1.5rem;
    color: #00bbff;
    margin-bottom: 15px;
}

.data-item p {
    font-size: 1rem;
}

/* 文章展示区域样式 */
.article-section {
    background-color: #181818; /* 文章区域背景色 */
    padding: 50px 0;
}

.article-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    background-color: #222;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

.article-container h2 {
    font-size: 2.8rem;
    text-align: left;
    margin-bottom: 25px;
}

.article-container h3 {
    font-size: 1.8rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #00ccff;
}

.article-container pre {
    margin: 20px 0;
}

/* 页脚样式 */
footer {
    background-color: #0a0a0a; /* 页脚背景色 */
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

/* 响应式布局 */
@media screen and (max-width: 1024px) {
    .container {
        max-width: 960px;
    }
    h2 {
        font-size: 2.2rem;
    }
    .hero h2 {
        font-size: 3.5rem;
    }
    .hero p {
        font-size: 1.2rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .article-container {
        padding: 25px;
    }
    .article-container h2 {
        font-size: 2.5rem;
    }
    .article-container h3 {
        font-size: 1.6rem;
    }
}

@media screen and (max-width: 768px) {
    .container {
        max-width: 720px;
        padding: 15px;
    }
    h2 {
        font-size: 2rem;
    }
    .hero h2 {
        font-size: 3rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .grid-data {
        grid-template-columns: 1fr;
    }
    .data-item {
        padding: 20px;
    }
    .article-container {
        padding: 20px;
    }
    .article-container h2 {
        font-size: 2.2rem;
    }
    .article-container h3 {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 10px;
    }
    h2 {
        font-size: 1.8rem;
    }
    .hero h2 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .article-container {
        padding: 15px;
    }
    .article-container h2 {
        font-size: 2rem;
    }
    .article-container h3 {
        font-size: 1.4rem;
    }
    pre {
        padding: 10px;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 320px) {
    h2 {
        font-size: 1.6rem;
    }
    .hero h2 {
        font-size: 2.2rem;
    }
    .section-title {
        font-size: 1.4rem;
    }
    .article-container h2 {
        font-size: 1.8rem;
    }
}

