
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica', 'Arial', sans-serif;
    color: #FFFFFF;
    background: linear-gradient(135deg, #1E3C72, #2A5298);
    overflow-x: hidden;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(30, 60, 114, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.navbar a {
    color: #FFFFFF;
    text-decoration: none;
    margin: 0 15px;
    font-family: 'Roboto Bold', sans-serif;
    transition: color 0.3s ease;
}
.navbar a:hover {
    color: #50E3C2;
}
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-content {
    display: none;
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    z-index: 1;
}
.dropdown:hover .dropdown-content {
    display: block;
}
.dropdown-content a {
    color: #333333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-family: 'Roboto', sans-serif;
    transition: background-color 0.3s ease;
}
.dropdown-content a:hover {
    background-color: #f1f1f1;
}

/* 主内容区样式 */
.header {
    background: linear-gradient(135deg, #1E3C72 0%, #2A5298 100%);
    color: #FFFFFF;
    padding: 100px 20px 60px 20px;
    text-align: center;
    font-family: 'Roboto Bold', sans-serif;
}
.header h1 {
    font-size: 36px;
    margin-bottom: 20px;
}
.header p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
}

/* 容器和卡片布局 */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 40px;
    padding: 60px 20px;
}
.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}
.card h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #50E3C2;
}
.card p {
    font-size: 16px;
    line-height: 1.6;
}
.card pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 5px;
    overflow: auto;
    margin-top: 15px;
}
.card code {
    color: #FFD700;
    font-family: 'Courier New', Courier, monospace;
}
.card pre code::before {
    content: "代码示例:";
    display: block;
    font-size: 14px;
    color: #50E3C2;
    margin-bottom: 5px;
}

/* 图片样式 */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 40px 20px;
}
.image-gallery img {
    width: 320px;
    height: 320px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.image-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}
.section {
    opacity: 0;
    animation: fadeInUp 1s forwards;
}
.section.visible {
    opacity: 1;
}

/* 按钮样式 */
.button-interactive {
    background: linear-gradient(45deg, #6A11CB, #2575FC);
    color: #FFFFFF;
    padding: 15px 32px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    display: inline-block;
}
.button-interactive:hover {
    background: linear-gradient(45deg, #2575FC, #6A11CB);
    transform: scale(1.05);
}

/* 提示语样式 */
.notice {
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    text-align: center;
    font-size: 18px;
    margin: 40px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .header {
        padding: 80px 10px 40px 10px;
    }
    .header h1 {
        font-size: 28px;
    }
    .header p {
        font-size: 16px;
    }
    .card h2 {
        font-size: 20px;
    }
    .card p {
        font-size: 14px;
    }
    .button-interactive {
        padding: 10px 20px;
        font-size: 14px;
    }
}

