/* 重置默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

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

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

.nav-logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
}

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

.nav-item {
    margin-left: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #3498db;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* 主页横幅样式 */
.hero {
    height: 100vh;
    background: url('images/thu.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 1rem;
    position: relative;
}

.hero-container {
    max-width: 800px;
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 10px;
}



.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.evaluation-framework {
    margin: 2rem 0;
    color: white;
    text-align: center;
}

.evaluation-framework h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.framework-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.framework-item {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 1.2rem 0.8rem;
    border-radius: 12px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.framework-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.framework-item:hover {
    transform: translateY(-8px) scale(1.05);
    background-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.framework-item:hover:before {
    opacity: 1;
}

/* 为不同项添加不同的强调色 */
.framework-item:nth-child(1) { border-left: 4px solid #3498db; }
.framework-item:nth-child(2) { border-left: 4px solid #2ecc71; }
.framework-item:nth-child(3) { border-left: 4px solid #e74c3c; }
.framework-item:nth-child(4) { border-left: 4px solid #f39c12; }
.framework-item:nth-child(5) { border-left: 4px solid #9b59b6; }
.framework-item:nth-child(6) { border-left: 4px solid #1abc9c; }
.framework-item:nth-child(7) { border-left: 4px solid #34495e; }
.framework-item:nth-child(8) { border-left: 4px solid #e67e22; }
.framework-item:nth-child(9) { border-left: 4px solid #16a085; }

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #fff;
    color: #0984e3;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #f1f2f6;
}

/* 通用容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

/* 关于我们部分样式 */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.about-text h3 {
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem 0;
    color: #2c3e50;
}

.about-text ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.about-text li {
    margin-bottom: 0.8rem;
}

.about-image {
    text-align: center;
}

.about-image img {
    max-width: 80%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Learn More按钮样式 */
.about-text .cta-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

/* 倡议部分样式 */
.initiatives {
    background-color: #f8f9fa;
}

.initiative-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.initiative-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

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

.initiative-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

/* 资源部分样式 */
.resource-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.resource-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.resource-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.resource-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.resource-link:hover {
    background-color: #2980b9;
}

/* 联系我们部分样式 */
.contact {
    background-color: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.contact-info ul {
    list-style: none;
    margin-top: 1rem;
}

.contact-info li {
    padding: 0.5rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #2980b9;
}

/* 页脚样式 */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #3498db;
}

/* 响应式设计 */
@media screen and (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: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1rem 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1),
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .framework-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    @media screen and (max-width: 480px) {
        .framework-items {
            grid-template-columns: 1fr;
        }
    }

    .about-image img {
        max-width: 80%;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* AI评估原则信息图样式 */
.evaluation-principles-full-width {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 2rem 0;
    background-color: #f8f9fa;
}

.evaluation-principles-full-width img {
    max-width: 90%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 团队成员部分样式 */
.team {
    background-color: #fff;
    padding: 4rem 0;
}

.team-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.team-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.team-intro p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
}

.section-subtitle {
    font-size: 1.8rem;
    color: #2c3e50;
    text-align: center;
    margin: 3rem 0 2rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    border: 5px solid #e9ecef;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h3 {
    font-size: 1.3rem;
    margin: 1rem 0 0.5rem;
    color: #2c3e50;
}

.team-member .position {
    font-weight: 600;
    color: #3498db;
    margin-bottom: 0.5rem;
}

.team-member .bio {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.team-member-link {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.team-member-link:hover {
    color: #3498db;
    text-decoration: underline;
}

/* Prof Wong 个人资料页面样式 */
.profile {
    background-color: #fff;
    padding: 4rem 0;
}

.profile-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.profile-intro {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: center;
}

.profile-image {
    flex: 0 0 auto;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #e9ecef;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-details {
    flex: 1;
    min-width: 300px;
}

.profile-details h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.profile-details p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.profile-description,
.research-areas,
.publications,
.achievements {
    margin-bottom: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.profile-description h3,
.research-areas h3,
.publications h3,
.achievements h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.profile-description p {
    line-height: 1.8;
    color: #555;
    font-size: 1.1rem;
}

.research-areas ul,
.achievements ul {
    padding-left: 1.5rem;
}

.research-areas li,
.publications li,
.achievements li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.publications ol {
    padding-left: 1.5rem;
}

.publications li {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Latest News Page Styles */
.news-banner {
    height: 30vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 1rem;
}

.news-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.news-content {
    padding: 4rem 0;
    background-color: #fff;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.news-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
}

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

.news-date {
    color: #3498db;
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.news-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    line-height: 1.4;
}

.news-card p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.read-more {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    color: #3498db;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid #3498db;
}

.read-more:hover {
    background-color: #3498db;
    color: white;
}

/* Responsive design for news page */
@media screen and (max-width: 768px) {
    .news-banner h1 {
        font-size: 2rem;
    }
    
    .news-banner p {
        font-size: 1rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .news-card {
        padding: 1.5rem;
    }
}