:root {
    --text-main: #333;
    --text-light: #666;
    --link-color: #0066cc;
    --bg-color: #ffffff;
    --surface: #f8f9fa;
    --border: #eee;
    --section-spacing: 20px;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-color);
}

a {
    color: var(--link-color);
    text-decoration: none;
}

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

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    max-width: 900px;
    margin: 0 auto;
    padding: 22px 20px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.nav-links {
    display: inline-flex;
    align-items: center;
    gap: 22px;
}

.nav-links a {
    position: relative;
    color: #555;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 2px 0;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--link-color);
}

.nav-links a[aria-current="page"] {
    color: #111;
}

.nav-links a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -15px;
    height: 2px;
    background: var(--link-color);
}

.hero {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: var(--section-spacing);
}

.hero-image {
    flex: 0 0 270px;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.hero-text {
    flex: 1;
}

h1 {
    font-size: 2.5rem;
    margin: 0 0 15px 0;
    color: #000;
}

h2 {
    font-size: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
    margin-top: var(--section-spacing);
    margin-bottom: 10px;
}

.pub-section h2 {
    border-bottom: none;
    margin-bottom: 0;
}

.pub-section {
    margin-top: 26px;
}

.publication-header {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--border);
    padding-bottom: 9px;
    margin-bottom: 10px;
}

.scholar-row {
    font-size: 0.95rem;
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.scholar-row i {
    color: #4285f4;
}

.bullet-list {
    padding-left: 20px;
    list-style-type: disc;
}

.bullet-list li {
    margin-bottom: 8px;
}

.pub-list {
    padding-left: 0;
    list-style-type: none;
}

.pub-list li {
    margin-bottom: 4px;
    padding: 8px 10px;
    margin-left: -10px;
    margin-right: -10px;
    border-bottom: 1px solid #f5f5f5;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    font-size: 0.94rem;
    line-height: 1.45;
}

.pub-list li:last-child {
    border-bottom: none;
}

.pub-list li:hover {
    background-color: var(--surface);
}

.pub-list a {
    font-size: 0.98rem;
    display: block;
    margin-bottom: 1px;
    font-weight: 600;
    color: #111;
}

.pub-list a:hover {
    color: var(--link-color);
    text-decoration: underline;
}

.social-links {
    margin-top: 25px;
    display: flex;
    gap: 20px;
    font-size: 1.4rem;
}

.social-links a {
    color: #888;
    transition: color 0.2s;
    font-weight: normal;
}

.social-links a:hover {
    color: var(--link-color);
    text-decoration: none;
}

.pub-authors {
    display: block;
    font-size: 0.82rem;
    color: #555;
    margin-top: -21px;
}

.pub-venue {
    display: block;
    font-size: 0.82rem;
    color: #555;
    margin-top: 1px;
}

.pub-topic {
    margin: 22px 0 5px 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.pub-topic .badge {
    flex: 0 0 auto;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #666;
    background: #f1f3f5;
    border-radius: 999px;
    padding: 3px 8px;
    line-height: 1;
}

.pub-topic .title {
    flex: 1 1 auto;
    font-size: 1.08rem;
    font-weight: 750;
    color: #111;
    margin: 0;
    line-height: 1.15;
}

.pub-topic-desc {
    margin: 4px 0 8px 0;
    color: #666;
    font-size: 0.86rem;
}

.page-header {
    margin-bottom: 28px;
}

.page-header p {
    max-width: 680px;
    color: var(--text-light);
    margin: 0;
}

.blog-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-list li {
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
}

.blog-list li:first-child {
    padding-top: 0;
}

.blog-list a {
    display: inline-block;
    color: #111;
    font-size: 1.18rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.blog-list a:hover {
    color: var(--link-color);
    text-decoration: underline;
}

.home-blog .blog-list {
    display: grid;
    gap: 12px;
}

.home-blog .blog-list li {
    position: relative;
    padding: 18px 52px 18px 18px;
    border: 1px solid #e6edf5;
    border-radius: 8px;
    background: linear-gradient(135deg, #fbfdff 0%, #f6f8fb 100%);
    box-shadow: 0 8px 24px rgba(20, 36, 58, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.home-blog .blog-list li::after {
    content: "→";
    position: absolute;
    right: 20px;
    top: 24px;
    color: var(--link-color);
    font-size: 1.2rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.home-blog .blog-list li:hover {
    border-color: #c9ddf3;
    box-shadow: 0 12px 30px rgba(20, 36, 58, 0.1);
    transform: translateY(-1px);
}

.home-blog .blog-list li:hover::after {
    transform: translateX(3px);
}

.home-blog .blog-list a {
    display: inline;
    color: #111;
    font-size: 1.16rem;
    line-height: 1.3;
    margin-bottom: 0;
}

.home-blog .blog-list a:hover {
    color: #111;
    text-decoration: none;
}

.home-blog .post-meta {
    display: inline-flex;
    align-items: center;
    margin: 0 0 8px;
    color: #526071;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.home-blog .post-summary {
    margin-top: 7px;
    max-width: 680px;
}

.post-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0 0 6px;
}

.post-summary {
    color: #444;
    margin: 0;
}

.post {
    max-width: 760px;
}

.post header {
    border-bottom: 1px solid var(--border);
    margin-bottom: 28px;
    padding-bottom: 18px;
}

.post h1 {
    line-height: 1.15;
    margin-bottom: 10px;
}

.post h2 {
    margin-top: 34px;
}

.post p,
.post li {
    font-size: 1.02rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 22px;
    color: #555;
    font-weight: 600;
}

.back-link:hover {
    color: var(--link-color);
}

@media (max-width: 768px) {
    .site-nav {
        justify-content: flex-start;
    }

    .hero {
        flex-direction: column;
        align-items: center;
    }

    .hero-image {
        width: 250px;
    }

    .pub-list li {
        margin-left: 0;
        margin-right: 0;
    }

    .home-blog .blog-list li {
        padding-right: 42px;
    }
}
