
/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto Light', sans-serif;
    background: linear-gradient(135deg, #8e9eab 0%, #eef2f3 100%);
    color: #333;
    line-height: 1.6;
}

/* 头部样式 */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5em;
    color: #4A90E2;
    margin: 0;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

/* 主内容区 */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
}

.card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 30px;
    margin: 20px;
    max-width: 800px;
    width: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.card h2, .card h3, .card h4 {
    font-family: 'Poppins', sans-serif;
    color: #6B5B95;
    margin-top: 0;
}

.card p {
    font-family: 'Roboto Light', sans-serif;
    color: #333;
}

.card pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
}

.card code {
    font-family: 'Courier New', Courier, monospace;
    background: #eaeaea;
    padding: 2px 4px;
    border-radius: 4px;
    color: #c7254e;
}

/* 图片样式 */
.image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.image-grid img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
}

/* 示例展示区 */
.example-section {
    background: rgba(240, 240, 240, 0.9);
    border-left: 5px solid #FFA500;
    padding: 20px;
    margin: 30px 0;
    position: relative;
}

.example-section::before {
    content: "示例展示";
    position: absolute;
    top: -15px;
    left: 20px;
    background: #FFA500;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9em;
}

.example-section article {
    max-width: 750px;
    margin: 0 auto;
}

.example-section h2 {
    font-size: 1.8em;
    color: #333;
}

.example-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.example-section table, .example-section th, .example-section td {
    border: 1px solid #ddd;
}

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

.example-section th {
    background-color: #f2f2f2;
}

/* 提示信息 */
.notice {
    background: rgba(255, 255, 255, 0.7);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin: 20px;
    font-family: 'Roboto Light', sans-serif;
    color: #555;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 动态粒子效果 */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: rgba(255, 165, 0, 0.7);
    border-radius: 50%;
    animation: moveParticles 10s linear infinite;
}

@keyframes moveParticles {
    from {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 1;
    }
    to {
        transform: translateY(-1000px) translateX(1000px) scale(0.5);
        opacity: 0;
    }
}

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

@media (max-width: 1200px) {
    .card {
        padding: 25px;
    }
}

@media (max-width: 1024px) {
    main {
        padding: 30px 15px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    .card {
        padding: 20px;
        margin: 15px;
    }
    .image-grid img {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8em;
    }
    .card {
        padding: 15px;
        margin: 10px;
    }
    .image-grid img {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 320px) {
    header h1 {
        font-size: 1.5em;
    }
    .card {
        padding: 10px;
        margin: 8px;
    }
    .image-grid img {
        width: 50px;
        height: 50px;
    }
}

