
/* 基础样式 */
body {
    margin: 0;
    font-family: 'Roboto Mono', monospace;
    background: linear-gradient(to bottom, #121212, #340068);
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #39FF14;
    text-shadow: 0 0 5px rgba(57, 255, 20, 0.8);
}
h1 { font-size: 3rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
p { font-size: 1rem; color: #d4d4d4; }
a {
    color: #39FF14;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover { color: #00ff00; }

/* 卡片样式 */
.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin: 20px auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    backdrop-filter: blur(5px);
}
.card img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* 视差滚动效果 */
.parallax {
    background-image: url('https://images.gptkong.com/demo/sample1.png');
    height: 500px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}
.parallax::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}
.parallax-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    color: #fff;
}

/* 动画效果 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #39FF14;
    color: #000;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-weight: bold;
}
.button:hover {
    background-color: #00ff00;
}
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #39FF14;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
    display: block;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 代码块样式 */
pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}
code {
    color: #39FF14;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    .card { padding: 10px; }
    pre { font-size: 0.8rem; }
}
@media (max-width: 480px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.2rem; }
    p { font-size: 0.9rem; }
    .parallax { height: 300px; }
}

/* 额外装饰 */
.icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: #39FF14;
    border-radius: 50%;
    margin-right: 10px;
}
.tip {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #39FF14;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
}

