
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #2c3e50 70%, #34495e 25%, #1abc9c 5%);
    color: #ecf0f1;
    line-height: 1.6;
    font-size: 16px;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(44, 62, 80, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar a {
    color: #ecf0f1;
    text-decoration: none;
    padding: 10px 20px;
    transition: color 0.3s ease;
}

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

/* 主视觉区块 */
.header {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center/cover;
    position: relative;
}

.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.6);
}

.header-content {
    position: relative;
    z-index: 1;
}

.header-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #1abc9c;
}

.header-content p {
    font-size: 1.2rem;
    max-width: 600px;
}

/* 内容区块样式 */
.section {
    padding: 80px 50px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.section:nth-child(even) {
    background: rgba(255, 255, 255, 0.1);
}

.section:nth-child(odd) {
    background: rgba(44, 62, 80, 0.8);
}

.section img {
    width: 320px;
    height: 320px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

.section-content {
    flex: 1;
}

.section-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #1abc9c;
}

.section-content p {
    font-size: 1rem;
    margin-bottom: 15px;
}

.section-content pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 0.9rem;
}

.section-content pre code {
    color: #ecf0f1;
}

/* 导航锚点样式 */
.nav-anchor {
    display: none;
}

/* 底部样式 */
.footer {
    background: rgba(44, 62, 80, 0.9);
    padding: 40px 50px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    color: #ecf0f1;
}

.footer a {
    color: #1abc9c;
    text-decoration: none;
    margin-bottom: 10px;
    display: block;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #ecf0f1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }
    .section {
        flex-direction: column;
        text-align: center;
    }
    .section-content {
        order: -1;
    }
}

/* 微交互效果 */
.button {
    background: linear-gradient(45deg, #1abc9c, #16a085);
    border: none;
    border-radius: 25px;
    color: #ecf0f1;
    padding: 10px 30px;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.button:hover {
    background: linear-gradient(45deg, #16a085, #1abc9c);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* 高级CSS3效果 */
.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}


