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

/* 背景与动画 */
body {
    font-family: 'Roboto', sans-serif;
    background: radial-gradient(circle, rgba(34,193,195,1) 0%, rgba(253,187,45,1) 100%);
    color: #333;
    line-height: 1.6;
    padding: 20px;
    animation: aurora-move 15s linear infinite;
}

@keyframes aurora-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* 头部样式 */
header {
    text-align: center;
    padding: 40px 0;
    background: linear-gradient(135deg, #6B73FF 0%, #000DFF 100%);
    color: white;
    border-radius: 8px;
    margin-bottom: 40px;
}

header h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 3em;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2em;
    color: #f0f0f0;
}

/* 导航栏 */
nav {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

nav a {
    text-decoration: none;
    color: #333;
    padding: 10px 20px;
    margin: 0 10px;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav a:hover {
    background-color: #4CAF50;
    color: white;
}

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

/* 文章样式 */
article {
    flex: 2;
    min-width: 300px;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

article h2 {
    font-family: 'Great Vibes', cursive;
    color: #8B4513;
    margin-bottom: 20px;
    font-size: 2em;
}

article h3, article h4 {
    font-family: 'Great Vibes', cursive;
    color: #6B8E23;
    margin-top: 20px;
    margin-bottom: 10px;
}

article p {
    font-family: 'Roboto', sans-serif;
    margin-bottom: 20px;
}

article pre {
    background: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

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

/* 示列展示 */
.demo-section {
    border: 2px dashed #FF4500;
    padding: 20px;
    border-radius: 8px;
    margin-top: 40px;
    background: #fff8e1;
}

.demo-section h2 {
    font-size: 1.8em;
    color: #FF4500;
}

.demo-section p {
    font-size: 1em;
    color: #555;
}

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

/* 卡片样式 */
.card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
    flex: 1;
    min-width: 250px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.card h3 {
    font-family: 'Great Vibes', cursive;
    color: #4CAF50;
    margin-bottom: 10px;
}

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

/* 按钮样式 */
button.primary {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1em;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button.primary:hover {
    background: #45a049;
}

/* 底部样式 */
footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
    color: white;
    border-radius: 8px;
}

footer p {
    font-size: 1em;
}

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

@media (max-width: 1200px) {
    .main-content {
        flex-direction: column;
    }

    .card {
        width: 100%;
    }
}

@media (max-width: 1024px) {
    header {
        padding: 30px 0;
    }

    header h1 {
        font-size: 2em;
    }

    nav a {
        padding: 8px 16px;
        margin: 0 5px;
        font-size: 0.9em;
    }

    article h2 {
        font-size: 1.8em;
    }

    .demo-section h2 {
        font-size: 1.5em;
    }
}

@media (max-width: 768px) {
    header {
        padding: 20px 0;
    }

    header h1 {
        font-size: 1.8em;
    }

    .main-content {
        flex-direction: column;
    }

    .card {
        min-width: 100%;
    }

    article {
        padding: 15px;
    }
}

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

    nav {
        flex-direction: column;
    }

    nav a {
        margin: 5px 0;
    }

    .card img {
        height: 140px;
    }

    button.primary {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}

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

    .demo-section h2 {
        font-size: 1.2em;
    }

    article h2 {
        font-size: 1.5em;
    }

    article h3, article h4 {
        font-size: 1.2em;
    }

    .card img {
        height: 120px;
    }
}

/* 代码块样式 */
pre code {
    display: block;
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 0.9em;
}

/* 互动元素 */
a {
    color: #ff7e5f;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

a:hover {
    color: #feb47b;
}

a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #feb47b;
    transition: width .3s;
    position: absolute;
    bottom: -2px;
    left: 0;
}

a:hover::after {
    width: 100%;
}

/* 提示信息 */
.notice {
    background: #fff3cd;
    color: #856404;
    padding: 10px 20px;
    border-radius: 4px;
    margin: 20px 0;
    border: 1px solid #ffeeba;
}

/* 链接属性 */
a[rel="nofollow"] {
    /* 不需显示说明 */
}

/* 动态粒子效果 */
.particle-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: url('https://images.gptkong.com/demo/sample1.png') repeat;
    opacity: 0.1;
    animation: particles 20s linear infinite;
}

@keyframes particles {
    from { transform: translate(0, 0); }
    to { transform: translate(-1000px, 1000px); }
}

