
/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #3498db, #9b59b6, #e74c3c);
    background-size: 200% 200%;
    animation: gradient-animation 15s linear infinite;
    color: #fff;
    line-height: 1.6;
}

/* 动画关键帧 */
@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

/* 头部样式 */
header {
    text-align: center;
    padding: 50px 0;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

header h1 {
    font-family: 'Inter', sans-serif;
    font-size: 3em;
    margin: 0;
    background: -webkit-linear-gradient(#ff7e5f, #feb47b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 提示语 */
.reference-note {
    text-align: center;
    margin: 20px 0;
    font-size: 1.2em;
    color: #ffeb3b;
    animation: blink 2s infinite;
}

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

/* 主内容区 */
main {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* 文章展示区 */
.article-section {
    flex: 2;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
}

.article-section h2,
.article-section h3,
.article-section h4 {
    font-family: 'Inter', sans-serif;
    color: #fff;
}

.article-section p {
    color: #f0f0f0;
}

.article-section pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

.article-section code {
    font-family: 'Courier New', Courier, monospace;
    color: #ffeb3b;
}

/* 示例展示 */
.example-display {
    margin-top: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-left: 5px solid #ff7e5f;
}

.example-display h3 {
    margin-top: 0;
}

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

.example-display th,
.example-display td {
    border: 1px solid #fff;
    padding: 10px;
    text-align: left;
}

.example-display th {
    background: rgba(0, 0, 0, 0.3);
}

.example-display td {
    background: rgba(0, 0, 0, 0.1);
}

/* 图片展示区 */
.image-gallery {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.image-gallery img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s;
}

.image-gallery img:hover {
    transform: scale(1.05);
}

/* 按钮样式 */
.button {
    background: #3498db;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
    font-size: 1em;
}

.button:hover {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
                inset 0 0 10px rgba(255, 255, 255, 0.8);
    background: #2980b9;
}

/* 响应式设计 */

/* 小尺寸手机 (320px) */
@media (max-width: 320px) {
    header h1 {
        font-size: 2em;
    }

    .article-section, .image-gallery {
        flex: 1 1 100%;
    }
}

/* 大尺寸手机 (480px) */
@media (max-width: 480px) {
    header h1 {
        font-size: 2.5em;
    }
}

/* 竖屏平板 (768px) */
@media (max-width: 768px) {
    main {
        flex-direction: column;
    }

    .image-gallery {
        flex-direction: row;
        overflow-x: scroll;
    }

    .image-gallery img {
        min-width: 100px;
    }
}

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

/* 桌面显示器 (1200px) */
@media (max-width: 1200px) {
    header h1 {
        font-size: 3em;
    }
}

/* 大尺寸桌面显示器 (1440px及以上) */
@media (min-width: 1440px) {
    header h1 {
        font-size: 4em;
    }

    .article-section {
        padding: 30px;
    }

    .image-gallery img {
        height: 200px;
        object-fit: cover;
    }
}

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

a[rel="nofollow"]::after {
    content: '';
}

/* 其他视觉元素 */
.geometric-shape {
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: 20%;
    left: 10%;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

