﻿/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Fira Sans", sans-serif;
    background: rgb(236, 238, 241);
    color: #333;
    overflow-x: hidden; /* 防止移动端左右晃动 */
}

/* 核心容器自适应 */
.top-container, 
.nav-container, 
.hero-container,
.index_main-banner,
.main-banner,
.schedule-container {
    max-width: 908px;
    width: 100%;
    margin: 0 auto;
}

/* 顶部栏 */
.top-bar {
    background-color: #000;
    padding: 15px 10px;
}

.logo-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* 手机端标题换行 */
}

.logo_image {
    max-width: 180px;
    height: auto;
}

.school-name {
    font-size: 20px;
    font-weight: 400;
    color: #FFD778;
    text-align: right;
    border: 0px solid red;
}

/* 主导航响应式 */
.main-nav {
    background-color: #111;
    min-height: 60px;
    position: sticky; /* 滚动时固定导航 */
    top: 0;
    z-index: 1001;
}

.nav-container {
    display: flex;
    flex-wrap: wrap; /* 允许导航项在小屏幕换行 */
}

.nav-item, .dropdown {
    flex: 1;
    min-width: 80px; 
    text-align: center;
    color: #ccc;
    text-decoration: none;
    font-size: 20px;
    font-weight: 400;
    padding: 18px 5px;
    border-top: 1px solid gray;
    border-bottom: 1px solid gray;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown {
    padding: 0;
    position: relative;
}

/* 下拉菜单内部的链接样式，保持与普通 nav-item 一致 */
.dropdown-link {
    padding: 18px 5px;
    height: 100%;
    cursor: pointer;
}

/* 下拉菜单容器 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #1a1a1a;
    list-style: none;
    display: none;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
 border: 0px solid rebeccapurple;
}

/* 鼠标悬停在 dropdown 项时显示菜单 */
.dropdown:hover .dropdown-menu {
    display: block;
}

/* 下拉菜单里的每一行 */
.dropdown-menu li {
    border: 0px solid blue;
}

/* 下拉菜单里的链接 */
.dropdown-menu li a {
    display: block;
    padding: 15px;
    height: auto;
    border: 0px solid yellow;
    color: #ccc;
    text-decoration: none;
    text-align: center;
    border-bottom: 1px solid #333;
}

/* 悬停在下拉选项上 */
.dropdown-menu li a:hover {
    border: 0px solid red;
    color: #42dcf4;
}

/* 小图标间距 */
.fa-caret-down {
    margin-left: 5px;
    font-size: 12px;
}

.nav-item:last-child {
    border-right: none;
}

.nav-item:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    color: #42dcf4;
    height: auto;
}

.nav-item:hover {
    color: #42dcf4;
    background-color: rgba(255, 255, 255, 0.05);
}

.dropdown-link:hover {
    color: #42dcf4;
}

.dropdown-link.active {
    color: #42dcf4;
    height: 60px;
}

.dropdown.active {
    color: #fff;
    height: 60px;
}

.hero-section {
    background-color: rgb(236, 238, 241);
    width: 100%;
}

.hero-container {
    position: relative;
    background-color: #000;
}

.hero-bg {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0.7);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 7%; /* 使用百分比 padding 适配不同屏幕 */
}

.hero-content {
    color: white;
    max-width: 80%;
}

.hero-title {
    font-size: clamp(1.5rem, 5vw, 2.5rem); /* 字体大小随屏幕缩放，最小1.5rem，最大2.5rem */
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 12%;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1.4rem);
    line-height: 1.4;
    margin-bottom: 12%;
    font-weight: 400;
}

.hero-btn {
    display: inline-block;
    background-color: #7ef9ff;
    color: #000;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 850;
    font-size: clamp(0.9rem, 2.5vw, 1.4rem);
    margin-left: 20%;
    transition: 0.3s ease;
}

.hero-btn:hover {
    background-color: white;
    transform: scale(1.05);
}

/* 内容区域 */
.index_main-banner {
    background: white;
    min-height: 900px;
}

.main-banner {
    background: white;
    min-height: 1024px;
}

.banner-content {
    width: 100%;
    padding: 20px 30px 0px 30px;
}

/* 左侧内容区域 */
.left-content {
    width: 100%;
    margin-bottom: 0;
    padding-bottom: 10px;
}

.left-content h3 {
    color: #0A509E;
    line-height: 1.6;
    margin-bottom: 10px;
}

.abramson-text {
    font-size: 17px;
    color: black;
    line-height: 2em;
    padding-bottom: 20px;
}

/* 底部 */
.footer-banner {
    width: 100%;
    height: 60px;
    background: #000;
    padding: 20px;
    text-align: center;
}

.footer-container {
  max-width: 90%;
  margin-left: 25%;
  padding: 0 20px;
  border: 0px solid yellow;
}

.footer-text {
    color: #fff;
    font-size: 14px;
}

/* 空内容区域样式 */
.empty-content {
    text-align: center;
    padding: 10px 30px;
}

.empty-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: black;
}


/* 标题样式 */
.content-p {
    font-size: 24px;
    font-weight: 400;
    color: #0A509E;
    line-height: 1.25 !important;
    margin-bottom: 20px;
    padding-top: 20px;
    font-family: "Fira Sans", sans-serif;
    text-align: left;
}

.program-text {
    font-size: 17px;
    padding-top: 20px;
    color: black;
    line-height: 2em;
    margin-left: 0;
    margin-bottom: 5px;
    text-align: left;
}

/*for Scheduled Speakers*/
.gray_class {
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.white_class {
    background-color: #ffffff;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.sche_cont {
    font-size: 17px;
    color: black;
    line-height: 1.3;
    margin-left: 30px;
    margin-bottom: 5px;
    text-align: left;
}

.title {
    text-align: center;
    font-size: 24px;
    font-weight: 400;
    color: #0A509E;
    line-height: 1.25 !important;
    font-family: "Fira Sans", sans-serif;
    margin-bottom: 40px;
    padding-top:30px;
    letter-spacing: 1px;
}

/* 布局控制 */
.contact-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    padding: 0 30px;
}

/* 左侧地图 */
.map-container {
    flex: 1;
    min-width: 300px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 右侧表单 */
.form-container {
    flex: 1;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 表单首行分两列 */
.form-row {
    display: flex;
    gap: 15px;
}

.form-row input {
    flex: 1;
}

/* 输入框通用样式 */
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 2px;
    font-size: 16px;
    box-sizing: border-box; /* 确保padding不撑破宽度 */
    outline-color: #00205b;
}

textarea {
    resize: vertical;
}

/* 提交按钮 */
.submit-btn {
    background-color: #00205b;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 2px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    width: fit-content;
    transition: background 0.3s;
}

.submit-btn:hover {
    background-color: #003a8c;
}

/* 平板及以下 (768px) */
@media (max-width: 768px) {
    .contact-content {
        flex-direction: column;
    }
  
    .form-row {
        flex-direction: column;
    }

    .logo-section {
        flex-direction: column;
        text-align: center;
    }
    
    .school-name {
        text-align: center;
        margin-top: 10px;
        font-size: 16px;
    }

    .nav-item, .dropdown {
        flex: 1 1 33.33%; /* 导航变为两行，每行三个 */
        font-size: 16px;
    }

    .hero-overlay {
        padding-left: 25px; /* 减少侧边距 */
    }
}

/* 手机端 (480px) */
@media (max-width: 480px) {
    .nav-item, .dropdown {
        flex: 1 1 50%; /* 极窄屏幕一行两个 */
    }

    .left-content h3 {
        font-size: 18px;
    }

    .hero-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        margin-bottom: 20px;
        br { display: none; } /* 窄屏隐藏换行符，文字自然排布 */
    }

    .hero-btn {
        padding: 8px 15px;
    }

    .banner-content {
        padding: 15px;
    }
}

/* for sponsors */
.sponsor_img {
    width: 40%;
    margin-top: 20px;
    margin-bottom: 40px;
}

/*for schedule*/
/* 日程表容器 */
.schedule-container {
    max-width: 908px;
    margin: 0px 0 auto; /* 与上方表单保持间距 */
    padding: 0px 30px 30px 30px;
}

.schedule-title {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

/* 表格样式 */
.schedule-table {
    width: 100%;
    border-collapse: collapse; /* 合并边框 */
    background-color: #fff;
    font-size: 15px;
}

.schedule-table th, 
.schedule-table td {
    border: 1px solid #ccc;
    padding: 12px 15px;
    text-align: center;
    vertical-align: middle;
    font-weight: normal;
}

.section-header th {
    background-color: #f8f9fa;
    text-align: center;
    font-size: 15px;
}

/* 时间列宽度 */
.time {
    width: 180px;
    white-space: nowrap;
    color: #444;
}

.break-row {
    background-color: #fff;
    text-align: center;
}

.break-row td:last-child {
    text-align: center;
}

.paper-title {
    color: #777;
    font-size: 14px;
    display: inline-block;
    margin-top: 4px;
}

/* 移动端优化 */
@media (max-width: 600px) {
    .time {
        width: 100px;
        font-size: 13px;
    }
    .schedule-table td {
        padding: 8px;
        font-size: 13px;
    }
}

/* 表格响应式包装器 */
.table-responsive {
    width: 100%;
    overflow-x: auto; /* 屏幕太小时允许左右滑动查看表格 */
    margin-top: 0px;
}

/* for 2024 */
.schedule-section {
    max-width: 908px;
    margin: 0 auto;
    font-family: "Fira Sans", sans-serif;
    padding-bottom: 30px;
}

.modern-schedule {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

/* 表头颜色 */
.modern-schedule thead th {
    background-color: #7a7a7a;
    color: white;
    padding: 15px;
    font-weight: 400;
    text-align: center;
    letter-spacing: 1px;
}

.session-header td {
    background-color: #e0e0e0;
    color: #333;
    padding: 12px;
    text-align: center;
    border-top: 2px solid #ccc;
}

/* 单元格通用样式 */
.modern-schedule td {
    padding: 18px 15px;
    border-bottom: 1px solid #eee;
    text-align: left;
    vertical-align: middle;
    line-height: 1.5;
}

/* 交替行背景色 */
.modern-schedule tbody tr:nth-child(even):not(.session-header) {
    background-color: #f9f9f9;
}

/* 表格内下拉框样式 */
.table-select {
    width: 100%;
    padding: 8px 30px 8px 15px; /* 右侧留出空间给箭头，防止文字重叠 */
    border: 1px solid #ccc;
    border-radius: 20px;
    background-color: #f1f3f4;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    font-size: 14px;
    cursor: pointer;
    
    /* 核心省略号样式 */
    white-space: nowrap;       /* 强制不换行 */
    overflow: hidden;          /* 隐藏超出部分 */
    text-overflow: ellipsis;   /* 显示省略号 */
    
    /* 针对不同浏览器的兼容性处理 */
    appearance: none;          /* 移除原生样式以确保省略号生效 */
    -webkit-appearance: none;
    -moz-appearance: none;
}

.table-select:focus {
    outline: none;
    border-color: #0A509E;
    box-shadow: 0 0 5px rgba(10, 80, 158, 0.2);
}


/* 单位和链接样式 */
.org {
    display: block;
    font-style: italic;
    color: #555;
    font-size: 0.95em;
    margin: 3px 0;
}

.link-info, .link-abs {
    color: #0056b3;
    text-decoration: none;
    font-size: 0.9em;
}

.link-info:hover, .link-abs:hover {
    text-decoration: underline;
}

/* 列宽度 */
.modern-schedule td:first-child,
.modern-schedule td:nth-child(2) {
    width: 240px;
    font-weight: 400;
}

.speaker-section {
    padding: 0px 30px 20px 30px;
}

.speaker-card-new {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    display: flex;
    margin-bottom: 30px;
    overflow: hidden;
    border: 1px solid #efefef;
}

.speaker-card-new:hover {
    transform: translateY(-5px);
}

.speaker-content {
    flex: 1;
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
}

.session-type {
    color: #00767c;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.presentation-title {
    font-size: 22px;
    color: #111;
    line-height: 1.3;
    margin-bottom: 18px;
}

.speaker-meta {
    margin-bottom: 20px;
}

.speaker-meta p {
    font-size: 17px;
    color: #444;
    margin-bottom: 2px;
}

/* 图标与文字间距优化 */
.speaker-meta i, .session-details i {
    color: #00767c;
    margin-right: 5px;
    font-size: 15px;
}

.meta-sub {
    font-size: 14px; 
    color: #666;
    padding-left: 20px; 
    margin-bottom: 15px;
}

.session-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: #555;
    margin-bottom: 20px;
}

.learn-more-btn {
    background-color: #006b6e;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    width: fit-content;
}

.learn-more-btn:hover {
    background-color: #004d4f;
    color: white;
}

.speaker-image-container {
    width: 35%;
    min-width: 250px;
}

.speaker-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 确保图片充满容器不变形 */
}

/* 移动端适配 */
@media (max-width: 768px) {
    .speaker-card-new {
        flex-direction: column-reverse; /* 手机端图片在上或在下 */
    }
    
    .speaker-image-container {
        width: 100%;
        height: 250px;
    }
    
    .session-details {
        flex-direction: column;
        gap: 10px;
    }
}

/* 定义一个自定义链接样式的类 */
.no-default-link {
  text-decoration: none;
  color: white;
}

.no-default-link:hover {
  color: #0077cc;
}