/* 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.
 *   "Microsoft YaHei", "Noto Sans SC", "PingFang SC", "Helvetica Neue", Arial, sans-serif; Font stack
 *   #fafafa; Background color of the site
 *   #505050; Foreground (text) color of the site
 *   #02468f; Central South University blue, current page in navigation, English title text
 *   #01346b; Deep blue hover color
 *   #02468f; Heading color and Central South University blue
 *   #8a6500; Accessible dark gold, color for links
 */

*{
    box-sizing: border-box;
    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: "Microsoft YaHei", "Noto Sans SC", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size:1em;
    line-height:1.5em;
    margin: 48px auto;
    max-width: 1000px;
    width: calc(100% - 48px);
}

a{color: #8a6500; text-decoration:none;}
a.current{color: #02468f;}
a.current:hover{color: #01346b;}
a:hover{color: #01346b;}
a:active{color: #8a6500;}
h1,h2,h3,h4{clear:left; color: #02468f; margin:1.5em 0em 1em 0em; font-weight:600; text-shadow: 1px 1px 2px #d0d0d0;}
h1{font-size:2.67em;}
h2{font-size:1.75em;}
h3{font-size:1.67em;}
h4{font-size:1.33em;}
h5{font-size:1.08em; font-weight:bold; margin:1em 0 0.35em;}
p {
    list-style: none;
    margin: 20px 0;
    padding: 0px;
    max-width: 900px;
    width: 100%;
    text-align: left;
}
li a, p a {text-decoration:underline; text-decoration-color:#8a6500;}
ul{list-style:none; margin:24px auto 24px auto; padding:0px; max-width:800px; width:100%; 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: 100%;
    margin: 12px auto 24px auto;
    float: none;
    /* 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; /* 创建定位上下文 */
    font-family: "Microsoft YaHei", "Noto Sans SC", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background-color: #ffffff;
    color: white;
    padding: 0; /* 移除padding改用子元素控制间距 */
    text-align: center;
    display: flex;
    flex-direction: column; /* 垂直排列 */
    margin-bottom: 20px;
}

.banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* 顶部文字（图片上方） */
.top-left {
    order: 1; /* 放在最顶部 */
    padding: 18px 20px 12px;
    font-size: 2em;
    line-height: 1.25;
    background-color: rgb(255, 255, 255); /* 可选背景色 */
}

/* 底部文字（图片下方） */
.bottom-right {
    order: 3; /* 放在最底部 */
    padding: 12px 20px 18px;
    font-size: 1.5em;
    line-height: 1.35;
    color: #050505; 
    background-color: rgb(255, 255, 255); /* 可选背景色 */
}

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

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

.people-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 900px;
    margin: 16px 0 28px;
}

.people-list > div {
    align-items: baseline;
    display: flex;
    gap: 28px;
    line-height: 1.45;
}

.people-list > div > div:first-child {
    flex: 0 0 300px;
    margin-right: 0;
    width: auto;
}

.people-list > div > div:last-child {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.contact-list > div > div:first-child {
    flex-basis: 390px;
}

.speaker-list > div {
    display: grid;
    grid-template-columns: 145px 160px 190px minmax(0, 1fr);
    column-gap: 18px;
}

.speaker-list > div > div {
    min-width: 0;
    overflow-wrap: anywhere;
}

.speaker-list > div > div:first-child,
.speaker-list > div > div:nth-child(3) {
    white-space: nowrap;
}

.speaker-list > div > div:first-child {
    flex: initial;
}

.speaker-list > div > div:nth-child(2),
.speaker-list > div > div:nth-child(4) {
    color: #505050;
}

.route-list {
    max-width: 900px;
    margin: 16px 0 28px;
}

.route-card {
    border-left: 3px solid #02468f;
    margin-bottom: 24px;
    padding-left: 18px;
}

.route-card p {
    margin: 8px 0;
}

.route-card ol {
    margin: 8px 0 14px 1.35em;
    padding-left: 0;
}

.route-card li {
    margin: 4px 0;
}

.venue-photo {
    margin: 18px auto 30px;
    max-width: 520px;
}

.venue-photo img {
    border: 1px solid #d8d8d8;
    display: block;
    height: 560px;
    object-fit: cover;
    object-position: center 55%;
    width: 100%;
}

.venue-photo figcaption {
    color: #666666;
    font-size: 0.92em;
    line-height: 1.45;
    margin-top: 8px;
    text-align: center;
}

/* Sponsor Images */
table.sponsors{max-width:800px; width:100%;}
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: #02468f; 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: #02468f; height:32px; font-weight:600; text-shadow: 1px 1px 2px #d0d0d0; }
td.title-special{padding: 4px 12px 4px 4px; width: 90%; vertical-align:top; font-size:1.67em; color: #02468f; height:32px; font-weight:600; 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; max-width:100%; width:700px; height:1400px; border:none;}
iframe.directions{display:block; margin:1em auto 2em auto; max-width:100%; width:800px; height:400px; border:none;}
img.center{display:block; width:67%; margin:1em auto 2em auto;}

/* Flyer Images */
table.flyers{max-width:800px; width:100%;}
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;}

/* Mobile layout */
@media only screen and (max-width: 760px) {
    body {
        margin: 24px auto;
        width: calc(100% - 28px);
    }

    h2 {
        font-size: 1.6em;
        line-height: 1.25;
    }

    p {
        font-size: 1em;
        line-height: 1.65;
    }

    .title1 {
        display: inline-block;
        font-size: 22px !important;
    }

    .title2 {
        display: inline-block;
        font-size: 19px !important;
    }

    .bottom-right span {
        font-size: 17px !important;
    }

    table.navigation {
        width: 100%;
    }

    td.navigation {
        font-size: 1em;
        padding: 0 4px;
        white-space: normal;
    }

    .people-list > div {
        flex-direction: column;
        gap: 2px;
        margin-bottom: 8px;
    }

    .people-list > div > div:first-child {
        flex-basis: auto;
        width: 100%;
    }

    .speaker-list > div {
        display: block;
        margin-bottom: 10px;
        padding-bottom: 10px;
        border-bottom: 1px solid #e0e0e0;
    }

    .speaker-list > div > div {
        display: inline;
        overflow-wrap: normal;
        word-break: normal;
    }

    .speaker-list > div > div:first-child::after {
        content: "，";
    }

    .speaker-list > div > div:nth-child(2),
    .speaker-list > div > div:nth-child(4) {
        padding-left: 0;
    }

    .speaker-list > div > div:nth-child(3)::before {
        content: "";
        display: block;
    }

    .speaker-list > div > div:nth-child(3)::after {
        content: ", ";
    }

    .venue-photo {
        max-width: 100%;
    }

    .venue-photo img {
        height: 560px;
    }

}

.map-container {
    width: 100%; /* 设置宽度 */
    height: 400px; /* 设置高度 */
}
