
/* 全局样式重置，确保不同浏览器下的一致性 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 设置基础字体和背景 */
body {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    color: #FFFFFF;
    background: linear-gradient(135deg, #0F0F0F, #1E1E1E);
    line-height: 1.6;
    overflow-x: hidden;
    padding: 20px;
}

/* 固定导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(30, 144, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 15px 0;
}

/* 导航栏内链接样式 */
.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.navbar li {
    position: relative;
}

.navbar a {
    text-decoration: none;
    color: #FFFFFF;
    font-size: 18px;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #00FF7F;
}

/* 下拉菜单样式 */
.navbar li ul {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    background: #00FF7F;
    padding: 10px 0;
    border-radius: 5px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.navbar li:hover ul {
    display: block;
    animation: dropdown 0.3s ease-in-out;
}

@keyframes dropdown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 主容器样式 */
.container {
    max-width: 1200px;
    margin: 100px auto 50px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

/* 模块样式 */
.module {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 35px rgba(0,0,0,0.2);
}

/* 标题样式 */
h2, h3, h4 {
    font-family: 'Orbitron', sans-serif;
    color: #00FF7F;
    margin-bottom: 15px;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 20px;
}

h4 {
    font-size: 18px;
}

/* 段落样式 */
p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #CCCCCC;
}

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

a:hover {
    color: #00FF7F;
}

/* 图片样式 */
img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

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

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

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

tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
}

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

code {
    color: #00FF7F;
    font-family: 'Courier New', Courier, monospace;
    font-size: 15px;
}

/* 按钮样式 */
button {
    background: #00FF7F;
    color: #0F0F0F;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    font-size: 16px;
}

button:hover {
    background: #1E90FF;
    transform: scale(1.05);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
        gap: 20px;
    }

    .container {
        grid-template-columns: 1fr;
        margin: 120px 20px 50px 20px;
    }

    h2 {
        font-size: 22px;
    }

    h3 {
        font-size: 18px;
    }

    h4 {
        font-size: 16px;
    }

    p {
        font-size: 15px;
    }
}

/* 视觉引导区样式 */
.hero {
    background: linear-gradient(135deg, #1E90FF, #00FF7F);
    padding: 100px 20px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    margin-bottom: 50px;
    animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 折叠区域样式 */
.details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.details.show {
    max-height: 1000px;
}

.toggle-button {
    background: none;
    border: none;
    color: #1E90FF;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 10px;
}

.toggle-button:hover {
    text-decoration: underline;
}


