/* main.css */

/* These are the colors and fonts used throughout the webpage.
 * I've listed them here so that a user may easily
 * do a search-and-replace for these to change the site theme.
 *   'Roboto',sans-serif; Font for the title text
 *   'Roboto-Slab',serif; Font for the body text 
 *   #fafafa; Background color of the site
 *   #505050; Foreground (text) color of the site
 *   #52739e; Navy, "Template" in the logo, current page in navigation, special titles in the Program
 *   #b2132e; Reddish, "Conference" in the logo, hover color for links
 *   #813c54; Heading color, titles in the Program
 *   #b8860b; Dark Goldenrod, color for links
 */

@import url('https://fonts.googleapis.com/css?family=Roboto%7CRoboto+Slab');

*{
    border:0;
    font:inherit;
    font-size:1em;
    margin:0;
    padding:0;
    vertical-align:baseline;
}

body{
    background-color: #fafafa;
    background-size: cover;
    background-attachment: fixed;
    color: #505050; 
    text-align:left;
    font-family:'Roboto',sans-serif;
    font-size:1em;
    line-height:1.5em;
    margin: 60px auto;
    width: 1000px;
}

a{color: #b8860b; text-decoration:none;}
a.current{color: #52739e;}
a.current:hover{color: #e82945;}
a:hover{color: #b2132e;}
a:active{color: #e82945;}
h1,h2,h3,h4{clear:left; color: #813c54; margin:1.5em 0em 1em 0em; font-family:'Roboto Slab',serif; text-shadow: 1px 1px 2px #d0d0d0;}
h1{font-size:2.67em;}
h2{font-size:2.00em;}
h3{font-size:1.67em;}
h4{font-size:1.33em;}
p{list-style:none; margin:24px auto 24px auto; padding:0px; width:900px; text-align:left;}
li a, p a {text-decoration:underline; text-decoration-color:#b8860b;}
ul{list-style:none; margin:24px auto 24px auto; padding:0px; width:800px; text-align:left;}
ul li{list-style:none; margin:0px auto 0px auto; padding:0px; text-align:left;}
i,em{font-style:italic;}
b,strong{font-weight:bold;}
sup{
    vertical-align: super;
    font-size: 0.8em;
    line-height: 0;
}
sub{
    vertical-align: sub;
    font-size: 0.8em;
    line-height: 0;
}
table{
    width: 1000px;
    margin: 12px auto 24px auto;
    float: center;
    /* UNCOMMENT THIS FOR DEBUGGING THE ALIGNMENT */
    /*border: 1px solid black;*/
}
th,td{
    text-align: left;
    /* UNCOMMENT THIS FOR DEBUGGING THE ALIGNMENT */
    /*border: 1px solid black;*/
}

/* Website Banner */
.banner {
    position: relative;
    width: 1000px;
    height: 360px;
    margin: 0 auto;
    overflow: hidden;
    font-family: 'Roboto Slab', serif;
}

.banner img {
    display: block;
    width: 1000px;
    height: 360px;
    object-fit: cover;
}

.top-left {
    font-size: 5.33em;
    color: #505050;
    background: #fafafa;
    text-align: center;
    width: 1000px;
    height: 67px;
    position: absolute;
    padding: 36px 0 0 0;
    top: 0px;
    left: 0px;
}

.bottom-right {
    font-size: 2.33em;
    color: #fafafa;
    line-height: 1.5em;
    width: auto;
    height: 100px;
    padding: 0px 27px 27px 0px;
    text-align: right;
    position: absolute;
    bottom: 0px;
    right: 0px;
    text-shadow: 0px 0px 6px #000000;
}

/* Conference Title Logo */
.title1{color: #b2132e; text-shadow: 1px 1px 3px #c0c0c0;} 
.title2{color: #52739e; text-shadow: 1px 1px 3px #c0c0c0;}
.year{color: #505050; font-size:0.67em; font-weight: lighter;}

/* Navigation Links (Home, Registration, etc) */
table.navigation{width:800px;}
td.navigation{font-size:1.67em; white-space:nowrap; width:25%; text-align:center; vertical-align:middle; padding:0px 0px 0px 0px;}

/* Sponsor Images */
table.sponsors{width:800px;}
td.sponsor{white-space:nowrap; width:33%; text-align:center; vertical-align:middle; padding:0px 0px 0px 0px;}
td.sponsor img{width: 100%}

/* The Table on the Program Page */
td.room{padding: 4px 12px 4px 4px; width: 90%; vertical-align:bottom; font-size:1.67em; color: #52739e; height:32px;}
td.date{white-space:nowrap; width:130px; text-align:right; vertical-align:top; padding:4px 16px 0px 0px;}
td.title{padding: 4px 12px 4px 4px; width: 90%; vertical-align:top; font-size:1.5em; color: #813c54; height:32px; font-family:'Roboto Slab',serif; text-shadow: 1px 1px 2px #d0d0d0; }
td.title-special{padding: 4px 12px 4px 4px; width: 90%; vertical-align:top; font-size:1.67em; color: #52739e; height:32px; font-family:'Roboto Slab',serif; text-shadow: 1px 1px 2px #d0d0d0;}
td.speaker{padding: 4px 12px 4px 4px; font-style: italic; font-size:1em; max-height:999999px}
td.abstract{padding: 4px 12px 12px 4px; font-size:1em; max-height:999999px}
td.abstract img{display: block; margin: 4px auto 8px auto}
table.plenary{padding-top: 8px; background: #ffffff;}

/* Registration and Directions iframes and Images */
iframe.registration{display:block; margin:1em auto 2em auto; width:700px; height:1400px; border:none;}
iframe.directions{display:block; margin:1em auto 2em auto; width:800px; height:400px; border:none;}
img.center{display:block; width:67%; margin:1em auto 2em auto;}

/* Flyer Images */
table.flyers{width:800px;}
td.flyer{white-space:nowrap; width:50%; text-align:center; vertical-align:middle; padding:0px 0px 0px 0px;}
td.sponsor img{width: 100%}

footer{font-size:0.875em; margin-top:12em; text-align:center;}

/* My hacky way of making the site mobile-friendly */
@media only screen and (max-width: 1100px) {
    h2{font-size:3.00em;}
    p{font-size:1.5em; line-height:1.5em;}
    th,td,tr{font-size:1.5em; line-height:1.5em;}
    td.date{font-size:1em; padding-top:0.5em;}
    td.navigation{font-size:1.5em; padding:0px 20px 0px 20px;}
    table.footer{font-size:0.33em;}
}

/* Organizers and Partners Section */
.partner-group {
    width: 900px;
    margin: 2.5em auto;
}

.partner-group h3 {
    text-align: center;
    margin-bottom: 1em;
    color: #813c54;
    font-family: 'Roboto Slab', serif;
}

.logo-row {
    width: 900px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 28px 24px;
}

.logo-item {
    width: 200px;
    text-align: center;
}

.logo-item p {
    width: auto;
    margin: 0 0 10px 0;
    padding: 0;
    text-align: center;
    font-weight: bold;
    line-height: 1.3em;
    min-height: 2.6em;
}

/* 关键：严格限制图片显示盒子 */
.logo-item img {
    display: block;
    width: 180px;
    height: 80px;
    margin: 0 auto;
    object-fit: contain;
    overflow: hidden;
}

.qrcode-box {
    width: 900px;
    margin: 2em auto;
    text-align: center;
}

.qrcode-pdf {
    width: 320px;
    height: 420px;
    display: inline-block;
    border: 1px solid #d0d0d0;
    background: #ffffff;
}

.registration-note {
    text-align: center;
}

/* Organizing Committee Cards */
.organizer-section {
    width: 900px;
    margin: 2.5em auto;
}

.organizer-section h3 {
    text-align: center;
    margin-bottom: 1em;
}

.organizer-grid {
    width: 900px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
}

.organizer-card {
    width: 160px;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: left;
}

.organizer-card img {
    display: block;
    width: 160px;
    height: 180px;
    object-fit: cover;
}

.organizer-info {
    padding: 10px 10px 12px 10px;
    height: 58px;
    overflow: hidden;
}

.organizer-info h4 {
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
    width: auto !important;
    clear: none !important;
    color: #202020 !important;
    font-family: 'Roboto', sans-serif !important;
    font-size: 13px !important;
    line-height: 16px !important;
    font-weight: 700 !important;
    text-shadow: none !important;
}

.organizer-info p {
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    color: #8a8a8a !important;
    font-size: 11px !important;
    line-height: 14px !important;
    text-align: left !important;
}


/* Program overview table */
table.program-overview {
    width: 900px;
    margin: 24px auto 36px auto;
    border-collapse: collapse;
    table-layout: fixed;
    background: #ffffff;
}

table.program-overview th,
table.program-overview td {
    border: 1px solid #808080;
    padding: 14px 12px;
    text-align: center;
    vertical-align: middle;
    line-height: 1.4em;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
}

table.program-overview th {
    background: #4d74d9;
    color: #ffffff;
    font-family: 'Roboto Slab', serif;
    font-size: 1.2em;
    font-weight: bold;
}

table.program-overview td {
    font-size: 1.00em;
    color: #202020;
}

table.program-overview td:first-child {
    width: 140px;
    font-weight: bold;
}

table.program-overview td:nth-child(2) {
    width: 170px;
    white-space: nowrap;
}

table.program-overview td[colspan="3"],
table.program-overview td[colspan="4"] {
    text-align: center;
    font-weight: 500;
}



/* Featured talks */
.talk-list {
    width: 900px;
    margin: 24px auto 48px auto;
}

.talk-item {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    margin: 40px 0 56px 0;
    padding: 20px 0 0 0;
    border-top: 1px solid #d8d8d8;
    overflow: visible !important;
    position: relative;
    z-index: 1;
}

.talk-item.reverse {
    flex-direction: row-reverse;
}

.talk-photo {
    width: 180px !important;
    flex: 0 0 180px !important;
    text-align: center;
    overflow: visible !important;
    position: relative;
    z-index: 20;
}

.speaker-photo {
    position: relative;
    width: 180px !important;
    height: 220px !important;
    margin: 0 auto 12px auto;
    overflow: visible !important;
    z-index: 30;
}

.speaker-photo img {
    display: block !important;
    width: 180px !important;
    height: 220px !important;
    max-width: 180px !important;
    max-height: 220px !important;
    min-width: 180px !important;
    min-height: 220px !important;
    object-fit: cover !important;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
}

.speaker-name {
    font-size: 18px;
    line-height: 22px;
    font-weight: bold;
    color: #202020;
    margin-bottom: 6px;
}

.speaker-affiliation {
    font-size: 13px;
    line-height: 17px;
    color: #777777;
}

.talk-content {
    flex: 1 1 auto;
    min-width: 0;
    overflow: visible !important;
    position: relative;
    z-index: 1;
}

.talk-content h3 {
    clear: none;
    margin: 0 0 14px 0;
    font-size: 30px;
    line-height: 1.15em;
}

.talk-abstract {
    width: auto;
    margin: 0;
    font-size: 16px;
    line-height: 1.75em;
    text-align: left;
}

.speaker-bio-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    transform: translateX(-50%);
    width: 320px;
    padding: 14px 16px;
    background: rgba(32, 32, 32, 0.96);
    color: #ffffff;
    font-size: 13px;
    line-height: 1.55em;
    text-align: left;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.20);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease;
    z-index: 9999;
    pointer-events: none;
}

.speaker-bio-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: rgba(32, 32, 32, 0.96) transparent transparent transparent;
}

.speaker-photo.has-bio:hover .speaker-bio-tooltip {
    opacity: 1;
    visibility: visible;
}

.speaker-name a {
    color: #202020;
    text-decoration: none;
}

.speaker-name a:hover {
    color: #813c54;
    text-decoration: underline;
}

@media only screen and (max-width: 1100px) {
    .talk-list {
        width: 94%;
    }

    .talk-item,
    .talk-item.reverse {
        flex-direction: column;
        align-items: center;
        gap: 18px;
    }

    .talk-photo {
        width: 180px !important;
        flex: 0 0 180px !important;
    }

    .speaker-photo {
        width: 180px !important;
        height: 220px !important;
    }

    .speaker-photo img {
        width: 180px !important;
        height: 220px !important;
        max-width: 180px !important;
        max-height: 220px !important;
        min-width: 180px !important;
        min-height: 220px !important;
    }

    .talk-content {
        width: 100%;
    }

    .talk-content h3 {
        font-size: 26px;
    }

    .talk-abstract {
        font-size: 16px;
        line-height: 1.7em;
    }

    .speaker-bio-tooltip {
        width: 280px;
    }
}

.program-overview {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5em;
  font-size: 0.98em;
}

.program-overview th,
.program-overview td {
  border: 1px solid #d8d8d8;
  padding: 12px 10px;
  vertical-align: middle;
  text-align: center;
  line-height: 1.5;
}

.program-overview th {
  background: #f4f4f4;
  font-weight: 700;
}

.program-overview td:first-child,
.program-overview td:nth-child(2) {
  white-space: nowrap;
}

.program-overview tr:nth-child(even) td {
  background: #fcfcfc;
}

.program-overview td:nth-child(3) {
  text-align: center;
}

.program-overview td:nth-child(4) {
  background: #f3fbff;
}

.program-overview td:nth-child(5) {
  background: #fff8f0;
}

@media screen and (max-width: 900px) {
  .program-overview {
    font-size: 0.9em;
  }

  .program-overview th,
  .program-overview td {
    padding: 8px 6px;
  }
}
