
/* 基本重置与字体设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #001f3f, #8e44ad);
    color: #ffffff;
    line-height: 1.6;
    padding: 20px;
    background-attachment: fixed;
    background-size: cover;
    transition: background 0.5s ease-in-out;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    margin-bottom: 15px;
}

h1 {
    font-size: 2.5em;
    letter-spacing: 2px;
}

h2 {
    font-size: 2em;
    margin-top: 30px;
}

h3 {
    font-size: 1.75em;
    margin-top: 25px;
}

p {
    margin-bottom: 20px;
    font-size: 1em;
}

a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    overflow-y: auto;
    transition: transform 0.3s ease-in-out;
}

.navbar a {
    display: block;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #ecf0f1;
}

.navbar a:hover {
    color: #1abc9c;
}

@media (max-width: 768px) {
    .navbar {
        width: 100%;
        height: auto;
        position: relative;
        transform: none;
    }

    body {
        padding-left: 0;
    }
}

/* 主内容区域 */
.main-content {
    margin-left: 270px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
    }
}

/* 卡片式设计 */
.card {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.card h3 {
    margin-bottom: 10px;
}

.card p {
    font-size: 0.95em;
}

/* 3D地球模型 */
.earth-model {
    width: 300px;
    height: 300px;
    margin: 0 auto 30px auto;
    background: url('https://images.gptkong.com/demo/sample3.png') no-repeat center/cover;
    border-radius: 50%;
    animation: rotateEarth 20s linear infinite;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

@keyframes rotateEarth {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

/* 动画与过渡效果 */
.animated-button {
    background: linear-gradient(135deg, #2980b9, #8e44ad);
    border: none;
    padding: 10px 20px;
    color: #fff;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.animated-button:hover {
    background: linear-gradient(135deg, #1abc9c, #9b59b6);
    transform: scale(1.05);
}

/* 代码块样式 */
pre {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    color: #ecf0f1;
    margin-bottom: 20px;
}

code {
    font-size: 0.95em;
}

/* 提示信息 */
.reference-note {
    background: rgba(46, 204, 113, 0.8);
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .earth-model {
        width: 200px;
        height: 200px;
    }
}

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

    .earth-model {
        width: 150px;
        height: 150px;
    }

    .card {
        padding: 15px;
    }

    .navbar {
        display: none;
    }

    .main-content {
        margin-left: 0;
    }
}

/* 滚动动画 */
@keyframes aurora-move {
    0% { background: radial-gradient(circle, rgba(255,87,34,1) 0%, transparent 70%); }
    50% { background: radial-gradient(circle, rgba(34,193,195,1) 0%, transparent 70%); }
    100% { background: radial-gradient(circle, rgba(255,87,34,1) 0%, transparent 70%); }
}

.aurora {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    animation: aurora-move 15s linear infinite;
}

/* 图片样式 */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.image-gallery img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
}

