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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background-color: #1a365d; /* 学术深蓝 */
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #90cdf4;
}

/* 头部横幅 (Hero Section) */
.hero {
    background-color: #2b6cb0;
    color: #fff;
    padding: 100px 20px;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

.btn {
    display: inline-block;
    background-color: #fff;
    color: #2b6cb0;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #e2e8f0;
}

/* 通用区块样式 */
.section {
    padding: 80px 0;
}

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

.bg-light {
    background-color: #f7fafc;
}

.about-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #4a5568;
}

/* 响应式网格 (Cards) */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-top: 4px solid #2b6cb0;
    transition: transform 0.3s ease;
}

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

.card h3 {
    margin-bottom: 15px;
    color: #2b6cb0;
}

.card p {
    color: #4a5568;
    font-size: 0.95rem;
}

/* 页脚 */
.footer {
    background-color: #1a202c;
    color: #a0aec0;
    text-align: center;
    padding: 30px 0;
}

.footer a {
    color: #90cdf4;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* 手机端适配 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
    }
    .nav-links {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-links li {
        margin: 5px 10px;
    }
}

/* 项目图片专属样式 */
.image-container {
    text-align: center;
    margin: 20px 0 30px 0;
    padding: 10px;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.project-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.project-image:hover {
    transform: scale(1.02);
}

/* ==========================================================
   Logo 专属样式
   ========================================================== */
.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none; /* 移除点击下划线 */
    color: #fff; /* 保持文字白色 */
    transition: opacity 0.3s ease;
}

.logo-container:hover {
    opacity: 0.85; /* 鼠标悬停时整体轻微变灰 */
}

 

.nav-logo-img {
    height: 60px; /* 从 45px 放大到 60px */
    width: 60px;  /* 从 45px 放大到 60px */
    margin-right: 15px; /* 稍微增加一点与文字的间距 */
    border-radius: 50%;
    object-fit: cover;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 手机端适配也同步放大 */
@media (max-width: 768px) {
    .nav-logo-img {
        height: 45px; /* 从 35px 放大到 45px */
        width: 45px;
        margin-right: 10px;
    }
}
/* 主页项目概览卡片内的链接样式 */
.project-link {
    color: #2b6cb0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #1a365d;
    text-decoration: underline;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: #e53e3e; /* 用红色或醒目的颜色突出按钮 */
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    transition: transform 0.2s ease;
}

.read-more:hover {
    text-decoration: underline;
    transform: translateX(5px); /* 鼠标悬浮时有一个向右的小动画 */
}