/* Global Styles */
:root {
  --primary-color: #336699;
  --secondary-color: #f8f9fa;
  --text-color: #333;
  --light-text: #666;
  --highlight: #f39c12;
  --border-color: #e2e2e2;
  --bg-color: #ffffff;
  --card-bg: #ffffff;
  --shadow-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
  --primary-color: #64a0e0;
  --secondary-color: #1a1a1a;
  --text-color: #ffffff;
  --light-text: #c0c0c0;
  --highlight: #f7b64c;
  --border-color: #555555;
  --bg-color: #121212;
  --card-bg: #1e1e1e;
  --shadow-color: rgba(0, 0, 0, 0.4);
}

body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.85);
  line-height: 1.6;
  background-color: var(--bg-color);
  transition: background-color 0.3s ease, color 0.3s ease;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #0366d6;
  font-weight: 500;
  text-decoration: none;
}

a:hover {
  color: #0056b3;
  text-decoration: underline;
}

.no-break {
  white-space: nowrap;
  font-weight: 400;
}

/* Navbar */
.navbar {
  padding: 0.5rem 1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  font-weight: 700;
}

.nav-link {
  padding: 0.5rem 1rem;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.75);
}

/* Cards and components */
.card {
  border-radius: 4px;
  transition: all 0.3s ease;
}

.text-profile-position {
  color: var(--light-text);
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

.text-profile-bio {
  font-size: 1rem;
  line-height: 1.6;
}

.text-profile-bio p {
  margin-bottom: 1rem;
}

h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: #333;
  font-size: 1rem;
}

/* Media sections */
.media {
  margin-bottom: 1rem;
}

.media-body {
  line-height: 1.4;
}

/* Small list styles */
.list.small {
  font-size: 0.9rem;
}

/* Footer */
.footer {
  padding: 1rem 0;
  font-size: 0.85rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .figure {
    float: none !important;
    margin: 0 auto 1rem auto !important;
    text-align: center;
  }
}

/* Additional utility classes */
.rounded-sm {
  border-radius: 0.2rem;
}

.email-text:after {
  content: ".edu";
  display: none;
}

.lazy {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Border colors */
.border-gray {
  border-color: #dee2e6 !important;
}

/* Abstract links section */
.abstract-links a {
  margin-right: 0.5rem;
}

/* Image thumbnails */
.img-thumbnail {
  padding: 0.25rem;
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  max-width: 100%;
  height: auto;
}

/* Adjust for small mobile view */
@media (max-width: 576px) {
  .card-body {
    padding: 1.25rem;
  }
}

*{margin:0; padding:0;}


.CERVENA {
	font-size: 100%;
	font-style: normal;
	color: #F30;
}


body {
/* font-family: Georgia; */
/* font-family: arial; */
font-size: 16px;
font-family: optima, lato, arial, Georgia, serif;
/* font-size: 17px; */
background: #ffffff;
color: #333;
Margin:10px;
padding:0px;
line-height: 135%;
}


p
{
padding:0.2cm 0cm 0.2cm 0cm;
}


a { color: #336699; text-decoration: none; }
a:hover { text-decoration: none; color : #880000; }

img { border:none; padding: 0; vertical-align:middle;}
img a {border:none; }

ul { list-style-type: none; }

#page {
	background: #fff;
}

.main{
	width: 900px;
	margin: 0 auto;
}


#header {
height: 220px;
position: relative;
}

#header h1{
padding-top: 0px;
padding-bottom: 5px;
font-size: 30px;
font-weight: 400;
}

#header h2{
font-weight: 100;
margin-top: 10px;
font-size: 18px;
}

#header h3{
	position: absolute;
	right: 0;
	top: 0.3cm;
	background: #ccc;
	font-weight: 100;
	color: #fff;
	padding: 15px;
	border-radius:5px;
	margin-top: 12px;
	font-size: 15px;
}

#header h1 a {
color: #336699;
}

#header h1 a:hover {
color: #111;
}

#menu h2 {
text-align:right;
color: #aaa;
font-size: 13px;
font-weight: 600;
padding-right: 30px;
}

#publicLecture {
text-align:center;
margin-top: 12px;
}

#menu {
background: #000;
height: 20px;
}

#menu ul {
list-style-type: none;
margin: 0;
padding-left: 30px;
}

#menu ul li {
display: block;
float: left;
}

#menu ul li a {
display: block;
padding: 0 5px 0 5px;
text-decoration: none;
color: #aaa;
font-size: 13px;
font-weight: 200;
}

#menu ul li a:hover {
color: #fff;
}

#wrapper {
background: url(imgs/shad.jpg) no-repeat top;
}

#content {
float: left;
width: 900px;
margin: 20px 0;
}

#sidebar {
float: right;
width: 210px;
margin: 20px 0px;
padding-left: 5px;
border-left: 1px solid #e2e2e2;
}

#footer {
margin: 0 0;
font-weight: 100;
font-size: 12px;
text-align: center;
color: #666;
height: 300px;
line-height: 50px;
}

#footer p { color: #aaa; }
#footer a { color: #aaa; text-decoration: none; }
#footer a:hover { text-decoration: underline; }


#content h1 {
font-size: 20px;
font-weight: 500;
color:rgb(204, 102, 0)	;
padding-top: 16px;
padding-bottom: 16px;
}

#content h2 {
font-size: 18px;
font-weight: 300;
color:rgb(204, 102, 0)	;
margin: 16px 0px 16px 0px;
padding: 0 0 0px;
}

#content h3 {
font-weight: 100;
font-size: 14px;
margin: 0px 0; padding: 3px 10px 3px 0px;
color: #666;
}

#content h4 {
font-weight: 100;
font-size: 12px;
color: #666;
padding-left: 0px;
}

#content h5 {
font-weight: 100;
font-size: 10px;
color: #666;
padding-left: 0px;
}

#content h6 {
font-weight: 100;
font-size: 8px;
color: #666;
padding-left: 0px;
}

#content img {
margin: 0px;
padding: 0 10px 10px 0;
}

#content ol {
color: #555555;
margin: 0px;
padding: 10px 20px ;
}

#content ol li {
padding: 3px 0px;
}

#content ul {
color: #555555;
margin: 0px;
padding: 10px 20px ;
}


#content ul li {
list-style-type: square;
padding: 3px 0px;
}

#sidebar ul {
    list-style-type: none;
}

#sidebar p {
  padding: 0 20px 20px 20px;
  text-align:justify;
}

#sidebar h2 {
    height: 40px;
    line-height: 40px;
    margin: 0; padding: 0;
    text-align:center;

font-weight: 100;
font-size: 14px;
margin: 0px 0;
color: #666;
}

#sidebar h6 {
font-weight: 100;
font-size: 10px;
margin: 0px 0;
color: #666;
}

/* Sidebar list items */
#sidebar ul li {
  margin-bottom: 5px;
}

#sidebar ul {
padding: 10px 0 5px 20px;
}

#sidebar ul li {
    padding: 2px 0 2px 22px;
}
#sidebar ul li a { font-size: 13px; }

:required
{
    background-color: red;
}


li{
    margin: -3px 0;
}


.menu li{
	display: inline-block;
}

.menu a.active{
	border: 2px solid #e2e2e2;
	border-bottom: 2px solid #fff;
	margin-bottom: -2px;
	color:rgb(204, 102, 0) ;
}

.menu a:hover{
	color: rgb(204, 102, 0);
}
.menu a{
	color: rgb(51,51,51);
	display: block;
	padding: 6px 15px ;
	height: 20px;
	line-height: 20px;
}
.menu{
	text-align: left;
	border-bottom: 2px solid #e2e2e2;
}

.menu li,
.menu {
	padding: 0;
	margin: 0;
	list-style: none;
}

.important{
	color:rgb(247, 148, 29)	;
}

g_right{float: right;}
g_left{	float: left;
}
g_clear{clear: both;
}

/* Awards list with better bullets */
.awards-list {
  list-style-type: disc;
  padding-left: 1.2rem;
}

.awards-list li {
  margin-bottom: 0.5rem;
}

.awards-list li::marker {
  color: var(--text-color);
  font-size: 1rem;
}

/* Adjust spacing for sections */
.section-container {
  margin-bottom: 1.5rem;
}

/* Logo image styling */
.org-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-right: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background-color: #fff;
  padding: 2px;
}

/* 防止Honors & Awards项目换行 */
.awards-list li .d-flex {
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.awards-list li .d-flex div:first-child {
  max-width: 85%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.awards-list li .d-flex div:last-child {
  min-width: 80px;
  text-align: right;
}

/* Theme toggle button */
.theme-toggle {
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 5px;
  margin-left: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

/* Visitor Map Markers */
.visitor-marker {
  width: 10px;
  height: 10px;
  background-color: #ff3b30;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 10px rgba(255, 59, 48, 0.7);
  cursor: pointer;
  animation: pulse 2s infinite;
  position: absolute;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(255, 59, 48, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
  }
}

.theme-toggle:hover {
  color: var(--highlight);
}

.theme-toggle i {
  pointer-events: none;
}

/* Dark mode adaptations */
[data-theme="dark"] .card {
  background-color: var(--card-bg) !important;
  box-shadow: 0 0.125rem 0.25rem var(--shadow-color) !important;
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .bg-light {
  background-color: var(--bg-color) !important;
}

[data-theme="dark"] .bg-white {
  background-color: var(--card-bg) !important;
}

[data-theme="dark"] .navbar-light {
  background-color: var(--card-bg) !important;
}

[data-theme="dark"] .navbar-light .navbar-brand,
[data-theme="dark"] .navbar-light .nav-link {
  color: #ffffff !important;
}

[data-theme="dark"] .navbar-light .navbar-toggler {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

[data-theme="dark"] .navbar-light .navbar-toggler-icon {
  filter: invert(1) grayscale(100%) brightness(200%);
}

[data-theme="dark"] .navbar-light .nav-link:hover {
  color: var(--highlight) !important;
}

[data-theme="dark"] .text-muted {
  color: #c0c0c0 !important;
}

[data-theme="dark"] .border-gray,
[data-theme="dark"] .border-bottom {
  border-color: var(--border-color) !important;
}

[data-theme="dark"] .shadow-sm {
  box-shadow: 0 0.125rem 0.25rem var(--shadow-color) !important;
}

/* 增强深色模式下的文字对比度 */
[data-theme="dark"] h6 {
  color: #ffffff !important;
}

[data-theme="dark"] p {
  color: #ffffff !important;
}

[data-theme="dark"] .text-profile-position {
  color: #d0d0d0 !important;
}

[data-theme="dark"] a {
  color: #80b7f0 !important;
}

[data-theme="dark"] a:hover {
  color: #b0d0ff !important;
}

/* 调整深色模式下的页脚文字颜色 */
[data-theme="dark"] .footer .text-muted {
  color: #c0c0c0 !important;
}

/* 改善深色模式下的文字对比度 */
[data-theme="dark"] .awards-list li {
  color: #ffffff !important;
}

[data-theme="dark"] .awards-list li::marker {
  color: #80b7f0 !important;
}

[data-theme="dark"] .awards-list li .d-flex div:first-child {
  color: #ffffff !important;
}

[data-theme="dark"] .awards-list li .d-flex div:last-child {
  color: #d0d0d0 !important;
}

[data-theme="dark"] .media-body {
  color: #ffffff !important;
}

[data-theme="dark"] .small {
  color: #d0d0d0 !important;
}

[data-theme="dark"] strong {
  color: #ffffff !important;
}

[data-theme="dark"] .no-break {
  color: #d0d0d0 !important;
}

[data-theme="dark"] em {
  color: #d0d0d0 !important;
}

[data-theme="dark"] .img-thumbnail {
  background-color: #333333 !important;
  border-color: #555555 !important;
}

[data-theme="dark"] .navbar {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .navbar-brand strong {
  color: #ffffff !important;
}

[data-theme="dark"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

[data-theme="dark"] .fa-map {
  color: #ffffff !important;
}

[data-theme="dark"] .visitor-marker {
  border-color: #333333;
  box-shadow: 0 0 10px rgba(255, 59, 48, 0.9);
}

/* 增强小字体的清晰度 */
.small, small, .text-muted, .awards-list, .nav-link {
    font-weight: 400;
    color: rgba(0, 0, 0, 0.75);
}

html[data-theme="dark"] .small,
html[data-theme="dark"] small,
html[data-theme="dark"] .text-muted,
html[data-theme="dark"] .awards-list,
html[data-theme="dark"] .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

/* 增强标题文本 */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: rgba(0, 0, 0, 0.9);
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6,
html[data-theme="dark"] .h1,
html[data-theme="dark"] .h2,
html[data-theme="dark"] .h3,
html[data-theme="dark"] .h4,
html[data-theme="dark"] .h5,
html[data-theme="dark"] .h6 {
    color: rgba(255, 255, 255, 0.95);
}

/* 改善文本在浅色背景上的可读性 */
html[data-theme="dark"] .text-profile-bio p {
    color: rgba(255, 255, 255, 0.85);
}

/* 加强时间线样式 */
.no-break {
    white-space: nowrap;
    font-weight: 400;
}

/* 按钮样式增强 */
.btn {
    font-weight: 500;
    letter-spacing: 0.01em;
}

.btn-outline-primary, 
.btn-outline-info {
    border-width: 1.5px;
}
