/* Lato Font Face Declarations */
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAUi-qNiXg7eU0.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAXC-qNiXg7Q.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_FQftx9897sxZ.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_Gwftx9897g.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjxAwXiWtFCfQ7A.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjx4wXiWtFCc.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwaPGQ3q5d0N7w.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwiPGQ3q5d0.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================
   vinthony/academic 风格 - 简洁学术主页样式
   ============================================ */

/* Reset */
*, *:before, *:after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables - Claude Code 暖色调配色 */
:root {
    --accent: #2563EB;
    --accent-hover: #1E40AF;
    --dark-brown: #1E293B;
    --darker-brown: #0F172A;
    --brown: #475569;
    --light-border: #CBD5E1;
    --bg: #FFFFFF;
    --bg-card: #F8FAFC;
    --bg-hover: #EFF6FF;
    --white: #FFFFFF;
    --font-main: 'Lato', Helvetica, Arial, sans-serif;
    --font-heading: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Base */
html {
    font-size: 100%;
}

body {
    background: #F7F5EF;
    font-family: var(--font-main);
    font-size: 16px;
    color: var(--dark-brown);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
    cursor: pointer;
}

a:hover, a:focus {
    color: var(--accent-hover);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--darker-brown);
    font-weight: bold;
    line-height: 1.4;
    margin: 0;
    padding: 0;
}

h2 {
    font-size: 24px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--light-border);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

h3 {
    font-size: 18px;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--dark-brown);
}

p {
    margin-bottom: 12px;
    line-height: 1.7;
}

img {
    max-width: 100%;
}

strong {
    font-weight: 700;
}

ul {
    list-style-type: disc;
}

ol {
    list-style-type: decimal;
}

/* Main Container */
#main {
    max-width: 860px;
    margin: 0 auto;
    padding: 20px 30px;
}
.icon-location {
    color: #DC2626;
}

.icon-email {
    color: #2563EB;
}

.icon-scholar {
    color: #7C3AED;
}

.icon-orcid {
    color: #16A34A;
}
/* ============================================
   Masthead / Header
   ============================================ */
.masthead {
    padding: 20px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--light-border);
}

.masthead-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 3px;
}

.site-avatar {
    flex-shrink: 0;
    position: relative;
}

.site-avatar img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50% 40% 40% 50% / 50% 50% 40% 40%;
    border: 3px solid var(--dark-brown);
    transition: all 0.4s ease-in-out;
    position: relative;
    z-index: 2;
}

.site-avatar img:hover {
    border-color: var(--accent);
    transform: scale(1.05) rotate(3deg);
    border-radius: 50%;
}

.site-info {
    flex: 1;
    min-width: 200px;
}

.site-name {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--darker-brown);
    margin: 0;
}

.site-name-cn {
    margin: 4px 0;
}

.name-image {
    width: 180px;
    height: auto;
    vertical-align: middle; 
}
.site-description {
    font-size: 20px;
    color: #000000;
    font-weight: 600;
   margin: 12px 0 0 0;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    align-items: center;
}

.site-nav a {
    color: #111827;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.site-nav a:hover {
    color: #000000;
}

.site-nav a i {
    margin-right: 2px;
}

/* ============================================
   Callout Box
   ============================================ */
.callout-box {
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    border-left: 4px solid var(--accent);
    border-radius: 10px;
    padding: 16px 22px;
    margin-bottom: 36px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--dark-brown);
}

.callout-box a {
    font-weight: 600;
}

/* ============================================
   Section
   ============================================ */
.section {
    margin-bottom: 36px;
}

.section-note {
    color: var(--brown);
    font-size: 14px;
    margin-bottom: 16px;
}

/* ============================================
   News
   ============================================ */
.news-list {
    max-height: 350px;
    overflow-y: auto;
    border: 1px solid var(--light-border);
    border-radius: 4px;
    padding: 8px 0;
    background: var(--white);
}
.award-text {
    color: #dc2626 !important;
    background: #fee2e2 !important;
    border-radius: 6px;
    padding: 2px 6px;
}
.award-text i {
    color: #dc2626 !important;
}
.author-me {
    color: #0F172A !important;
    background: #F1F5F9 !important;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    padding: 1px 6px;
    font-weight: 900 !important;
}
.news-list::-webkit-scrollbar {
    width: 6px;
}

.news-list::-webkit-scrollbar-track {
    background: var(--bg);
}

.news-list::-webkit-scrollbar-thumb {
    background: var(--light-border);
    border-radius: 3px;
}

.news-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.news-list li {
    display: grid;
    grid-template-columns: 95px 1fr;
    column-gap: 12px;
    padding: 8px 16px;
    border-bottom: 1px solid var(--bg-card);
    font-size: 14px;
    line-height: 1.6;
    color: var(--brown);
}

.news-date {
    color: var(--accent);
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
}

.news-content {
    min-width: 0;
}

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

.news-list li:hover {
    background: var(--bg);
}

.news-date {
    display: inline-block;
    min-width: 85px;
    color: var(--accent);
    font-weight: 600;
    font-size: 13px;
}


/* Badges - hidden */
.badge {
    display: none;
}

.oral {
    color: var(--accent);
    font-weight: bold;
    font-size: 14.5px;
}

/* ============================================
   Publication Entries
   ============================================ */
 .pub-left-info {
    margin-top: 10px;
    padding: 8px 10px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    background: #FFFFFF;
    text-align: center;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.pub-award {
    color: #DC2626;
    font-weight: 800;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 6px;
}

.pub-left .pub-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pub-left .pub-links a {
    font-size: 13px;
    font-weight: 500;
}



   .pub-entry {
    display: flex;
    gap: 20px;
    padding: 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    align-items: flex-start;
    transition: all 0.25s ease;
}

.pub-entry:hover {
    border-color: #2563EB;
    background: #F8FAFC;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.14);
}

.ccfa-badge {
    display: inline-block;
    background: linear-gradient(180deg, #B45309 0%, #D97706 100%);
    color: #FFFFFF;
    font-weight: 700;
    font-style: normal;
    font-size: 12px;
    line-height: 1.2;
    padding: 3px 9px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(180, 83, 9, 0.22);
    vertical-align: baseline;
}

.ccfb-badge {
    display: inline-block;
    background: linear-gradient(180deg, #1D4ED8 0%, #2563EB 100%);
    color: #FFFFFF;
    font-weight: 700;
    font-style: normal;
    font-size: 12px;
    line-height: 1.2;
    padding: 3px 9px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.22);
    vertical-align: baseline;
}

.ccfc-badge {
    display: inline-block;
    background: linear-gradient(180deg, #166534 0%, #15803D 100%);
    color: #FFFFFF;
    font-weight: 700;
    font-style: normal;
    font-size: 12px;
    line-height: 1.2;
    padding: 3px 9px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(22, 101, 52, 0.20);
    vertical-align: baseline;
}
.service-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-item {
    display: grid;
    grid-template-columns: 105px 1fr;
    column-gap: 10px;
    align-items: baseline;
    font-size: 14px;
    color: var(--brown);
    line-height: 1.7;
}

.service-badge {
    justify-self: start;
    white-space: nowrap;
}

.service-text {
    min-width: 0;
}
.bold-text {
    color: #DC2626;
    font-weight: 700;
    font-style: normal;
}
.pub-entry:last-child {
    border-bottom: none;
}

.pub-entry.highlight {
    background: var(--bg-card);
    border: 1px solid var(--light-border);
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 12px;
}

.pub-img {
    flex-shrink: 0;
    width: 180px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
    background: var(--white);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--light-border);
}

.pub-img img,
.pub-img video {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.pub-text {
    flex: 1;
    min-width: 0;
}

.pub-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--darker-brown);
    line-height: 1.45;
    margin-bottom: 6px;
}

.pub-authors {
    font-size: 14.5px;
    color: var(--brown);
    line-height: 1.55;
    margin-bottom: 3px;
}

.pub-venue {
    font-size: 14.5px;
    color: var(--brown);
    margin-bottom: 8px;
}

.pub-note {
    font-size: 12px;
    color: var(--brown);
    font-style: italic;
    margin-bottom: 4px;
}

.pub-tldr {
    font-size: 13px;
    color: var(--dark-brown);
    background: var(--bg-card);
    padding: 6px 10px;
    border-left: 3px solid var(--accent);
    border-radius: 2px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.pub-links a {
    font-size: 14px;
    color: var(--accent);
    font-weight: 500;
}

.pub-links a:hover {
    color: var(--accent-hover);
}

.github-stars {
    margin-top: 4px;
}

/* ============================================
   Education
   ============================================ */
.edu-entry {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--light-border);
}

.edu-entry:last-child {
    border-bottom: none;
}

.edu-logo {
    flex-shrink: 0;
}

.edu-logo img {
    width: 55px;
    height: 55px;
    object-fit: contain;
    border-radius: 4px;
}

.edu-text {
    font-size: 14px;
    color: var(--dark-brown);
    line-height: 1.6;
}

.edu-detail {
    color: var(--brown);
    font-size: 13px;
}

/* ============================================
   Awards
   ============================================ */
.awards-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.awards-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--light-border);
    font-size: 14px;
    line-height: 1.6;
    color: var(--brown);
}

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

.award-date {
    display: inline-block;
    min-width: 100px;
    color: var(--accent);
    font-weight: 600;
    font-size: 13px;
}

/* ============================================
   Academic Service
   ============================================ */
.service-block {
    margin-bottom: 20px;
}

.service-block h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--darker-brown);
    margin-top: 12px;
    margin-bottom: 6px;
}

.service-block p {
    font-size: 14px;
    color: var(--brown);
    line-height: 1.7;
}

/* ============================================
   Collaborators
   ============================================ */
.collab-list {
    font-size: 14px;
    color: var(--brown);
    line-height: 1.8;
}

.collab-list a {
    font-weight: 600;
}

/* ============================================
   Visitor Map
   ============================================ */
.visitor-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.visitor-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--light-border);
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.visitor-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--accent);
    background: var(--bg-hover);
    font-size: 18px;
}

.visitor-number {
    font-size: 24px;
    font-weight: 800;
    color: var(--darker-brown);
    line-height: 1.2;
}

.visitor-label {
    font-size: 13px;
    color: var(--brown);
}

.visitor-map {
    text-align: center;
    padding: 20px 0;
}

.visitor-map h3 {
    margin-top: 0;
}

.visitor-map-widget {
    display: inline-block;
    max-width: 100%;
    padding: 14px;
    border: 1px solid var(--light-border);
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

/* ============================================
   Footer
   ============================================ */
.visit-counter {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 10px 0 18px;
    padding: 12px 16px;
    border-top: 1px solid var(--light-border);
    color: var(--brown);
    font-size: 13px;
}

.visit-counter span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.visit-counter i {
    color: var(--accent);
    font-size: 13px;
}

.visit-counter strong {
    color: var(--darker-brown);
    font-weight: 800;
}

.footer-wrapper {
    margin-top: 30px;
    border-top: 1px solid var(--light-border);
    background: var(--bg-card);
}

.footer {
    max-width: 860px;
    margin: 0 auto;
    padding: 20px 30px;
    text-align: center;
    font-size: 13px;
    color: var(--brown);
}

.footer-update {
    font-size: 12px;
    color: var(--brown);
}

/* ============================================
   Responsive Design
   ============================================ */
@media screen and (max-width: 640px) {
    #main {
        padding: 15px 16px;
    }

    .masthead-container {
        flex-direction: column-reverse;
        text-align: center;
        margin-bottom: 10px;
    }

    .site-avatar img {
        width: 130px;
        height: 130px;
    }

    .site-name {
        font-size: 22px;
    }

    .site-nav {
        justify-content: center;
        gap: 4px 12px;
    }

    .site-nav a {
        font-size: 13px;
    }

    h2 {
        font-size: 20px;
    }

    .pub-entry {
        flex-direction: column;
        gap: 12px;
    }

    .pub-img {
        width: 100%;
        max-width: 250px;
    }

    .edu-entry {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .edu-logo {
        align-self: center;
    }

    .news-date {
        min-width: auto;
    }

    .award-date {
        min-width: auto;
        display: block;
        margin-bottom: 2px;
    }

    .visitor-stats {
        grid-template-columns: 1fr;
    }
}

/* Selection highlight */
::selection {
    color: var(--darker-brown);
    background: var(--light-border);
}

/* Clearfix */
.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}
