/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 导航栏样式 */
.navbar {
    background-color: #00E0FF;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.nav-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Hero区域样式 */
.hero {
    height: 50vh;
    min-height: 400px;
    background: linear-gradient(135deg, #00E0FF, #0099ff);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-top: 70px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
}

.hero-title {
    font-size: 3.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
}

.hero-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hero-link {
    display: inline-block;
    padding: 12px 30px;
    background-color: white;
    color: #0099ff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.hero-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* API分类区域样式 */
.api-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #00E0FF;
    margin: 10px auto;
    border-radius: 2px;
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.api-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
    width: 350px; /* 增加卡片宽度 */
    display: flex;
    flex-direction: column;
}

.api-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    height: 150px; /* 增加头部高度以适应更多内容 */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 限制标题最多显示2行 */
    -webkit-box-orient: vertical;
}

.card-description {
    color: #666;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 限制描述最多显示2行 */
    -webkit-box-orient: vertical;
}

.card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.card-link {
    display: inline-block;
    margin-right: 15px;
    color: #0099ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.card-link:hover {
    color: #0077cc;
    text-decoration: underline;
}

.card-repo {
    display: inline-block;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.card-repo:hover {
    color: #333;
    text-decoration: underline;
}

/* Footer样式 */
.footer {
    background-color: #0099ff;
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.social-link {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: opacity 0.3s;
}

.social-link:hover {
    opacity: 0.8;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 成员页面样式 */
.members-section {
    padding: 100px 0 50px;
}

.member-category {
    margin-bottom: 60px;
}

.category-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #333;
    position: relative;
}

.category-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #00E0FF;
    margin: 10px auto;
    border-radius: 2px;
}

.members-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.member-card {
    width: 200px;
    text-align: center;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.member-card:hover {
    transform: translateY(-10px);
}

.member-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 20px auto;
    border: 3px solid #333;
    object-fit: cover;
}

.member-name {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #333;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-links a {
        margin: 5px;
    }
    
    .hero {
        height: 100vh;
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .hero-link {
        width: 80%;
        max-width: 250px;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
    }
    
    .members-container {
        flex-direction: column;
        align-items: center;
    }
    
    .member-card {
        width: 90%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
}