
/* 引入字体 */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Roboto&display=swap');

/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0A092B, #4F46E5);
    color: #FFFFFF;
    overflow-x: hidden;
}

/* 动态星空粒子效果 */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -1;
    pointer-events: none;
    background-image: url('https://images.gptkong.com/demo/sample1.png'), url('https://images.gptkong.com/demo/sample2.png'), url('https://images.gptkong.com/demo/sample3.png');
    background-size: 50px 50px;
    animation: moveStars 60s linear infinite;
}

@keyframes moveStars {
    from { background-position: 0 0, 50px 50px, 100px 100px; }
    to { background-position: -1000px 1000px, -1050px 1050px, -1100px 1100px; }
}

/* 标题样式 */
h1, h2, h3 {
    font-family: 'Orbitron', sans-serif;
    color: #FFFFFF;
    text-align: center;
    margin: 20px 0;
}

h1 {
    font-size: 48px;
    background: linear-gradient(90deg, #FF00CC, #33FF99);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 36px;
}

h3 {
    font-size: 28px;
}

/* 段落样式 */
p {
    font-size: 18px;
    line-height: 1.6;
    padding: 0 20px;
}

/* 按钮样式 */
.button {
    background: linear-gradient(135deg, #4F46E5, #0A092B);
    border: 2px solid #FFFFFF;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2), inset 0 -4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: inline-block;
    margin: 20px auto;
}

.button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(255, 255, 255, 0.3), inset 0 -6px 12px rgba(0, 0, 0, 0.4);
}

/* 表格样式 */
table {
    width: 90%;
    margin: 20px auto;
    border-collapse: collapse;
}

th, td {
    border: 1px solid #FFFFFF;
    padding: 12px;
    text-align: left;
}

th {
    background: rgba(255, 255, 255, 0.2);
}

td {
    background: rgba(0, 0, 0, 0.2);
}

/* 代码块样式 */
pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px;
}

code {
    font-family: 'Roboto', monospace;
    color: #00FFCC;
}

/* 图片样式 */
img {
    width: 100%;
    max-width: 320px;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 10px;
}

/* 模块化设计 */
.section {
    padding: 40px 0;
    text-align: center;
}

.float-element {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

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

/* 示范文章展示 */
.sample-article {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    margin: 40px auto;
    width: 90%;
}

.sample-article h2, .sample-article h3 {
    color: #FFD700;
}

.sample-article p {
    color: #FFFFFF;
}

.sample-article table, .sample-article th, .sample-article td {
    color: #FFFFFF;
}

.sample-article pre {
    background: rgba(0, 0, 0, 0.9);
}

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

    h2 {
        font-size: 32px;
    }

    h3 {
        font-size: 24px;
    }

    p {
        font-size: 16px;
    }
}

@media (max-width: 1200px) {
    .button {
        font-size: 14px;
        padding: 8px 16px;
    }
}

@media (max-width: 1024px) {
    table {
        width: 100%;
    }
}

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

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 20px;
    }

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

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

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 18px;
    }

    p {
        font-size: 14px;
        padding: 0 5px;
    }

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

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

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 16px;
    }

    p {
        font-size: 12px;
    }

    .button {
        font-size: 10px;
        padding: 4px 8px;
    }
}

