
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
}

/* 容器样式 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

/* 标题样式 */
h1, h2, h3 {
    font-weight: bold;
    color: #ffffff;
}

h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

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

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

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

/* 列表样式 */
ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

li {
    margin-bottom: 10px;
}

/* 按钮样式 */
button {
    background-color: #4a90e2;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    transform: scale(1.1);
    background-color: #357edd;
}

/* 卡片样式 */
.card {
    border: 1px solid #ffffff;
    border-radius: 8px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* 网格布局 */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* 图片样式 */
img {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

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

/* 背景几何图形 */
.background-geometry {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

/* 导航栏样式 */
nav {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 30px;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #00ffea;
}

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

a:hover {
    text-decoration: underline;
}

/* 响应式设计 */

/* 320px 和更小 */
@media (max-width: 320px) {
    h1 {
        font-size: 28px;
    }
    h2 {
        font-size: 22px;
    }
    h3 {
        font-size: 18px;
    }
    p, li {
        font-size: 14px;
    }
}

/* 480px */
@media (max-width: 480px) {
    .container {
        padding: 30px 0;
    }
    nav ul {
        flex-direction: column;
        gap: 15px;
    }
}

/* 768px */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }
    h1 {
        font-size: 32px;
    }
    h2 {
        font-size: 26px;
    }
}

/* 1024px */
@media (max-width: 1024px) {
    .container {
        width: 95%;
    }
}

/* 1200px */
@media (max-width: 1200px) {
    .container {
        width: 90%;
    }
}

/* 1440px 及以上 */
@media (min-width: 1440px) {
    h1 {
        font-size: 40px;
    }
    h2 {
        font-size: 30px;
    }
    h3 {
        font-size: 24px;
    }
}

