
/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局字体与背景 */
body {
    font-family: 'Lato', sans-serif;
    background: linear-gradient(135deg, #F5F5F5, #B2FFFC);
    color: #FFFFFF;
    line-height: 1.6;
    padding: 20px;
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 31, 68, 0.8);
    padding: 15px 30px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    margin-bottom: 30px;
}

.navbar a {
    color: #FFFFFF;
    text-decoration: none;
    margin: 0 10px;
    font-family: 'Roboto Slab', serif;
    font-weight: bold;
}

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

/* 主容器样式 */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* 磨砂玻璃卡片样式 */
.frosted-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.frosted-glass:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* 标题样式 */
h1, h2, h3, h4 {
    font-family: 'Roboto Slab', serif;
    color: #FFFFFF;
    margin-bottom: 15px;
}

h1 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
}

h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
}

h4 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

/* 文字内容样式 */
p {
    font-family: 'Lato', sans-serif;
    font-size: 1em;
    color: #FFFFFF;
    margin-bottom: 15px;
    line-height: 1.8;
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background: #FFC8DD;
    color: #0A1F44;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none;
    font-weight: bold;
}

.button:hover {
    background: #B2FFFC;
}

/* 图像样式 */
.frosted-glass img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.frosted-glass img:hover {
    transform: scale(1.05);
}

/* 网格布局样式 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.grid-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.grid-item:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

/* 代码块样式 */
pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    color: #B2FFFC;
    margin-bottom: 15px;
}

code {
    color: #B2FFFC;
}

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

table, th, td {
    border: 1px solid #FFFFFF;
}

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

th {
    background: #0A1F44;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .navbar {
        padding: 10px 20px;
    }

    h1 {
        font-size: 2.2em;
    }

    h2 {
        font-size: 1.8em;
    }

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

@media (max-width: 1200px) {
    .container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.6em;
    }
}

@media (max-width: 1024px) {
    .navbar a {
        font-size: 0.9em;
    }

    .frosted-glass {
        padding: 15px;
    }

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

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

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

    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.4em;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .navbar {
        padding: 10px;
    }

    h1 {
        font-size: 1.5em;
    }

    h2 {
        font-size: 1.2em;
    }

    .button {
        padding: 8px 16px;
        font-size: 0.9em;
    }
}

@media (max-width: 320px) {
    .navbar a {
        font-size: 0.8em;
    }

    h1 {
        font-size: 1.2em;
    }

    h2 {
        font-size: 1em;
    }

    .button {
        padding: 6px 12px;
        font-size: 0.8em;
    }
}

/* 提示信息样式 */
.reference-note {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-left: 5px solid #B2FFFC;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    font-style: italic;
}

/* 粒子动画样式 */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: transparent;
    z-index: -1;
}

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

/* 矩阵单元动画 */
.grid-item {
    animation: fadeIn 0.5s ease forwards;
}


