/* 全局样式 */
* {
    padding: 0;
    margin: 0;
    text-decoration: none;
    font-family: "Microsoft YaHei", sans-serif;
    box-sizing: border-box;
}

body {
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

/* 头部样式 */
header {
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.9);
}

/* 导航栏样式 */
.headerDiv {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* 导航标题样式 */
.headerDiv div:first-child a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0f172a;
    transition: color 0.3s ease;
}

.headerDiv div:first-child a:hover {
    color: #000000;
}

/* 导航链接样式 */
.headerDiv div:last-child a {
    font-size: 1.1rem;
    font-weight: 500;
    color: #000000;
    margin-left: 1.5rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background-color: #f1f5f9;
}

/* 导航链接悬停样式 */
.headerDiv div:last-child a:hover {
    color: #ffffff;
    background-color: #000000;
}

/* 主内容区域样式 */
main {
    padding: 3rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    min-height: calc(100vh - 180px);
}

/* 主内容区域的标题和描述样式 */
main h1 {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 2.5rem;
    color: #0f172a;
    margin-bottom: 1rem;
    font-weight: 800;
}

main p {
    grid-column: 1 / -1;
    text-align: center;
    color: #64748b;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* 卡片样式 */
.card {
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

/* 卡片悬停样式 */
.card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #8f8f8f;
}

/* 卡片标题样式 */
.card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #000000;
    transition: width 0.3s ease;
}

.card:hover h2::after {
    width: 100%;
}

/* 卡片描述样式 */
.card p {
    color: #64748b;
    margin-bottom: 1.5rem;
    text-align: left;
    font-size: 1rem;
    line-height: 1.6;
}

/* 卡片链接样式 */
.card a {
    color: #000000;
    text-decoration: none;
    background-color: #f1f5f9;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    display: inline-block;
    font-weight: 500;
    text-align: center;
    width: 100%;
}

/* 卡片链接悬停样式 */
.card a:hover {
    color: white;
    background-color: #000000;
    transform: translateY(-2px);
}

/* 页脚样式 */
footer {
    background-color: #ffffff;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem 5%;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    main {
        padding: 2rem 1rem;
    }
    
    main h1 {
        font-size: 2rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .headerDiv div:last-child a {
        margin-left: 1rem;
        padding: 0.4rem 0.8rem;
    }
}