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

/* 设置字体与背景 */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    color: #ffffff;
    line-height: 1.6;
    padding: 20px;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    z-index: 1000;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navbar li {
    position: relative;
}

.navbar a {
    text-decoration: none;
    color: #ffffff;
    font-size: 1rem;
    transition: color 0.3s;
}

.navbar a:hover {
    color: #ffd700;
}

/* 下拉菜单样式 */
.navbar li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 10px;
    list-style: none;
}

.navbar li:hover ul {
    display: block;
    transition: all 0.3s ease;
}

.navbar li ul li {
    margin: 10px 0;
}

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

/* 玻璃拟态卡片样式 */
.card {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    transition: transform 0.3s, background 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.25);
}

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

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

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

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

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

table th {
    background: rgba(0, 0, 0, 0.5);
}

table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.1);
}

/* 代码块样式 */
pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 10px;
    overflow: auto;
    margin-bottom: 20px;
}

code {
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(45deg, #6a11cb, #2575fc);
    border: none;
    border-radius: 50px;
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
    text-decoration: none;
    font-size: 1rem;
}

.button:hover {
    transform: scale(1.05);
    background: linear-gradient(45deg, #2575fc, #6a11cb);
}

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

img:hover {
    transform: scale(1.05);
}

/* 折叠区域样式 */
.details {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 20px;
}

summary {
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
        background: rgba(0, 0, 0, 0.8);
        position: absolute;
        top: 60px;
        right: 20px;
        width: 200px;
        display: none;
    }

    .navbar ul.show {
        display: flex;
    }

    .container {
        grid-template-columns: 1fr;
    }
}

/* 提示信息样式 */
.banner {
    background: rgba(255, 215, 0, 0.8);
    color: #000000;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

/* 链接样式 */
a {
    color: #00ffff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

