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

/* 体裁样式 */
body {
    font-family: 'Helvetica', sans-serif;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 头部样式 */
.header {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(to right, #363795, #0f2027);
    position: relative;
    overflow: hidden;
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.navbar a {
    color: #ffffff;
    font-size: 1.1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #ff6f61;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Mono', monospace;
    color: #ff6f61;
    margin-bottom: 20px;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

/* 段落样式 */
p {
    margin-bottom: 15px;
    font-size: 1rem;
}

/* 链接样式 */
a {
    color: #ff8e53;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffffff;
}

/* 容器样式 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

/* 按钮样式 */
.button {
    background-color: #ff6f61;
    color: #ffffff;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.button:hover {
    background-color: #ff8e53;
}

/* 图片样式 */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.05);
}

/* 文章样式 */
.article {
    background: rgba(0, 0, 0, 0.7);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
}

.article h2 {
    margin-top: 0;
}

.article pre {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 5px;
    overflow: auto;
    margin-bottom: 15px;
}

.article code {
    font-family: 'Roboto Mono', monospace;
    color: #ff8e53;
}

/* 进度条样式 */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 5px;
    background-color: #ff6f61;
    z-index: 999;
    transition: width 0.25s;
}

/* 页脚样式 */
.footer {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(to right, #0f2027, #203a43);
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .container {
        width: 85%;
    }
}

@media (max-width: 1200px) {
    .container {
        width: 90%;
    }
}

@media (max-width: 1024px) {
    .header {
        padding: 40px 20px;
    }
    h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
    h1 {
        font-size: 2.5rem;
    }
    .button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    .button {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

@media (max-width: 320px) {
    h1 {
        font-size: 1.5rem;
    }
    .button {
        padding: 6px 12px;
        font-size: 0.7rem;
    }
}

/* 动画与视觉元素 */
.geometry-shape {
    width: 120px;
    height: 120px;
    background: rgba(255, 111, 97, 0.3);
    border-radius: 50%;
    position: absolute;
    top: 15%;
    left: 5%;
    animation: float 8s infinite ease-in-out;
}

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

.starfield {
    position: relative;
    width: 100%;
    height: 400px;
    background: url('https://images.gptkong.com/demo/sample9.png') repeat;
    background-size: cover;
    animation: twinkle 12s infinite;
}

@keyframes twinkle {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* 交互动画 */
.element-hover-scale:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.element-hover-color:hover {
    background-color: #ff8e53;
    transition: background-color 0.3s ease;
}

/* 代码块样式 */
.highlight {
    background: #1e1e1e;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}


