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

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #008CFF, #7F00FF);
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

/* 全局容器 */
.container {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* 磨砂玻璃卡片 */
.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, backdrop-filter 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
    backdrop-filter: blur(15px);
}

/* 标题样式 */
h1, h2, h3, h4 {
    font-family: 'Inter', sans-serif;
    font-weight: bold;
    margin-bottom: 15px;
    color: #ffffff;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 30px;
}

h2 {
    font-size: 2rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
}

h3 {
    font-size: 1.5rem;
    margin-top: 20px;
}

h4 {
    font-size: 1.2rem;
    margin-top: 15px;
}

/* 段落样式 */
p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #dddddd;
}

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

li {
    margin-bottom: 10px;
}

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

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

/* 图片样式 */
img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

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

a:hover {
    color: #7F00FF;
}

/* 加载动画 */
.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #ffffff;
    border-top: 5px solid #ff6f61;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 50px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 1440px) {
    h1 {
        font-size: 2.2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
}

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

@media (max-width: 1024px) {
    body {
        padding: 15px;
    }
    .container {
        gap: 15px;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    h2 {
        font-size: 1.4rem;
    }
    .card {
        padding: 15px;
    }
}

@media (max-width: 320px) {
    h1 {
        font-size: 1.6rem;
    }
    h2 {
        font-size: 1.2rem;
    }
    .container {
        grid-template-columns: 1fr;
    }
}

/* 提示信息样式 */
.reference-note {
    text-align: center;
    font-size: 1rem;
    margin-bottom: 20px;
    color: #ffdd57;
}

/* 代码示例预览 */
.code-preview {
    background: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.code-preview code {
    color: #00FFAA;
    font-size: 0.9rem;
}

