
/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #1e1e1e, #2c2c2c);
    color: #e0e0e0;
    font-family: 'Roboto', 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 标题样式 */
h1, h2, h3, h4 {
    font-family: 'Orbitron', sans-serif;
    color: #00ffbf;
    margin: 20px 0 10px 0;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-top: 40px;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
}

/* 段落样式 */
p {
    font-family: 'Roboto', sans-serif;
    color: #dcdcdc;
    margin-bottom: 20px;
    padding: 0 20px;
}

/* 按钮样式 */
.button {
    display: inline-block;
    background: linear-gradient(45deg, #00ffbf, #8a2be2);
    color: #ffffff;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    text-decoration: none;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    font-size: 1rem;
    margin: 10px;
}

.button:hover {
    box-shadow: 0 0 15px #00ffbf, 0 0 30px #8a2be2;
    transform: translateY(-3px);
}

/* 容器样式 */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 卡片样式 */
.card {
    background-color: #2c2c2c;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.card img {
    width: 100%;
    height: auto;
    display: block;
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #8a2be2;
}

.card-text {
    font-size: 1rem;
    color: #dcdcdc;
}

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

a:hover {
    text-decoration: underline;
}

/* 代码块样式 */
pre {
    background-color: #1e1e1e;
    padding: 15px;
    border-radius: 10px;
    overflow: auto;
    margin: 20px;
}

code {
    color: #00ffbf;
    font-family: 'Courier New', Courier, monospace;
}

/* 示例数据展示样式 */
.demo-section {
    background-color: #1c1c1c;
    padding: 40px 20px;
    margin: 40px 0;
    border-radius: 15px;
}

.demo-section h2 {
    text-align: center;
    color: #ff4081;
}

.demo-section article {
    max-width: 1000px;
    margin: 0 auto;
}

/* 提示信息样式 */
.reference-note {
    text-align: center;
    font-size: 1.2rem;
    color: #ffeb3b;
    margin: 20px 0;
}

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

    h2 {
        font-size: 1.8rem;
    }
}

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

    .card-content {
        padding: 15px;
    }
}

@media (max-width: 1024px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

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

@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        padding: 20px 10px;
    }

    .button {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

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

    h2 {
        font-size: 1.2rem;
    }

    p {
        padding: 0 10px;
        font-size: 0.9rem;
    }

    .button {
        padding: 6px 12px;
        font-size: 0.7rem;
    }
}

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

    h2 {
        font-size: 1rem;
    }

    p {
        font-size: 0.8rem;
    }

    .button {
        padding: 5px 10px;
        font-size: 0.6rem;
    }
}

/* 动画效果 */
@keyframes glow {
    from {
        box-shadow: 0 0 5px #00ffbf, 0 0 10px #8a2be2;
    }
    to {
        box-shadow: 0 0 20px #00ffbf, 0 0 30px #8a2be2;
    }
}

.button:hover {
    animation: glow 1s infinite alternate;
}

/* 滚动视差效果 */
.parallax {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

