/* 研究项目页面专用样式 */
/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    width: 95%;
    margin: 0 auto;
    padding: 0;
}

/* 导航栏样式 */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-container {
    width: 95%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h2 {
    color: #000;
    font-weight: 700;
    font-size: 2rem;
    text-transform: uppercase;
    position: relative;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.nav-logo h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #000;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    padding: 10px 0;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.5px;
    font-family: 'Arial', 'Helvetica', sans-serif;
}

.nav-link.active {
    border-bottom: 2px solid #000;
}

.nav-link:hover {
    color: #666;
}

.search-icon {
    font-size: 1.1rem;
}

/* 下拉菜单 */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    padding: 10px 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    text-transform: none;
}

.dropdown-menu li a:hover {
    background-color: #f5f5f5;
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #000;
    margin: 3px 0;
    transition: 0.3s;
}

/* 页面头部 */
.page-header {
    background: #333;
    color: white;
    padding: 120px 0 60px;
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #333 0%, #555 100%);
    z-index: -1;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.page-header h1::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background-color: #fff;
    margin: 20px auto 0;
}

.breadcrumb {
    font-size: 1rem;
    color: #ccc;
    font-family: 'Arial', 'Helvetica', sans-serif;
}

.breadcrumb a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #ccc;
}

/* 项目列表 */
.projects-section {
    padding: 60px 0;
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.project-item {
    display: flex;
    gap: 40px;
    padding: 40px;
    background: white;
    margin-bottom: 40px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.project-item:hover {
    background-color: #f8f9fa;
}

.project-image {
    flex-shrink: 0;
}

.project-image img {
    width: 400px;
    height: 300px;
    object-fit: cover;
    border: 1px solid #eee;
}

.project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.3;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.project-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-weight: 400;
}

.project-desc {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    font-family: 'Arial', 'Helvetica', sans-serif;
}

/* 页脚 */
.footer {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 40px 0;
    margin-top: 80px;
    font-size: 1rem;
    font-family: 'Arial', 'Helvetica', sans-serif;
}

.footer p {
    margin: 0;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .project-item {
        flex-direction: column;
        gap: 20px;
        width: 95%;
    }

    .project-image img {
        width: 100%;
        height: 250px;
    }

    .project-title {
        font-size: 20px;
    }

    .project-desc {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
    }

    .nav-container {
        width: 95%;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .project-item {
        padding: 20px;
    }

    .project-title {
        font-size: 18px;
    }

    .project-desc {
        font-size: 15px;
    }
}

/* 加载状态样式 */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.loading i {
    font-size: 2rem;
    color: #666;
    margin-bottom: 20px;
    animation: spin 1s linear infinite;
}

.loading p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 错误状态样式 */
.error-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.error-message i {
    font-size: 2rem;
    color: #e74c3c;
    margin-bottom: 20px;
}

.error-message p {
    color: #e74c3c;
    font-size: 1.1rem;
    margin: 0;
} 