/* css/style.css */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --background-color: #f9f9f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    line-height: 1.6;
    background-color: var(--background-color);
}

/* Navigation */
.navbar {
    background: var(--primary-color);
    padding: 1rem;
    position: sticky;
    top: 0;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 1rem;
    background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.9)),
                url('../assets/banner.jpg'); /* 注意路径调整 */
    background-size: cover;
    color: white;
}

/* Content Sections */
.section {
    padding: 3rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

/* Project Cards */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.project-card h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

/* Publications List */
.publication-item {
    background: white;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--secondary-color);
}

.pub-meta {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 0.5rem;
}

.pub-links a {
    display: inline-block;
    margin-right: 1rem;
    color: var(--secondary-color);
    text-decoration: none;
}

.pub-links a:hover {
    text-decoration: underline;
}

.back-link {
    text-align: center;
    margin-top: 3rem;
}

/* Huggingface Section */
.hf-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.hf-badge {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#about ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    list-style: none;
}

#about li {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

#about li::before {
    display: none; /* 移除符号 */
}

#about li strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}