
/* 全局样式 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    color: white;
    background: linear-gradient(135deg, #0A192F, #1C2E4A);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

a {
    color: #FFC700;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #38B69A;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 磨砂玻璃效果 */
.card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 10px 0;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 粒子动画 */
.particle {
    width: 5px;
    height: 5px;
    background: #FFC700;
    position: absolute;
    animation: particles 2s infinite;
    border-radius: 50%;
}

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

/* 响应式布局 */
@media (min-width: 768px) {
    .container {
        flex-direction: row;
        justify-content: space-between;
    }

    .card {
        width: 48%;
    }
}

@media (min-width: 1024px) {
    .card {
        width: 31%;
    }
}

/* 视差效果 */
.parallax {
    background-image: url('https://images.gptkong.com/demo/sample1.png');
    height: 400px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    margin: 40px 0;
}

/* 代码块样式 */
pre {
    background: rgba(0, 0, 0, 0.4);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Consolas', monospace;
    font-size: 0.9em;
    color: #FFC700;
}

code {
    color: #FFC700;
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 5px;
    border-radius: 3px;
}

/* 装饰性图片 */
.image-deco {
    width: 100%;
    max-width: 320px;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 提示文字 */
.tip {
    text-align: center;
    font-size: 0.9em;
    color: #FFC700;
    margin: 20px 0;
}

