
/* 基本样式 */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #ffffff;
    font-family: 'Roboto Mono', monospace;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 布局容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 标题样式 */
header {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border-bottom: 2px solid #ffffff;
}

header h1 {
    font-size: 3em;
    margin: 0;
    color: #f0f0f0;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

/* 主要内容样式 */
main {
    padding: 40px 20px;
}

article {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    margin-bottom: 40px;
}

article h2 {
    font-size: 2em;
    color: #ff6f61;
    margin-bottom: 20px;
    position: relative;
}

article h2::after {
    content: '';
    width: 50px;
    height: 3px;
    background: #ff6f61;
    display: block;
    margin-top: 10px;
    border-radius: 2px;
}

article h3 {
    font-size: 1.5em;
    color: #1cb5e0;
    margin-top: 30px;
    margin-bottom: 15px;
}

article p {
    font-size: 1em;
    color: #ffffff;
    margin-bottom: 15px;
}

article pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

article code {
    color: #1cb5e0;
    font-family: 'Courier New', Courier, monospace;
}

/* 示例展示样式 */
.sample-display {
    background: rgba(50, 50, 50, 0.8);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.sample-display h4 {
    color: #ff6f61;
    margin-bottom: 10px;
}

.sample-display ul {
    list-style: none;
    padding: 0;
}

.sample-display li {
    margin-bottom: 10px;
}

.sample-display li::before {
    content: '•';
    color: #1cb5e0;
    margin-right: 10px;
}

/* 图片样式 */
.images-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    justify-content: center;
}

.images-gallery img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.images-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

/* 提示信息样式 */
.reference-note {
    text-align: center;
    font-size: 1.2em;
    color: #f0f0f0;
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

/* 交互动画 */
.item {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.item:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(255, 255, 255, 0.2);
}

.inspiration-point {
    animation: blink 1s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

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

    article h2 {
        font-size: 1.8em;
    }

    article h3 {
        font-size: 1.3em;
    }
}

@media (max-width: 1200px) {
    .images-gallery img {
        width: 130px;
        height: 130px;
    }
}

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

    article {
        padding: 25px;
    }

    .images-gallery img {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    article h2 {
        font-size: 1.5em;
    }

    article h3 {
        font-size: 1.2em;
    }

    .images-gallery img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }

    article h2 {
        font-size: 1.3em;
    }

    article h3 {
        font-size: 1em;
    }

    .images-gallery img {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 320px) {
    header h1 {
        font-size: 1.2em;
    }

    article {
        padding: 20px;
    }

    .images-gallery img {
        width: 70px;
        height: 70px;
    }
}

