body {
  font-family: “微软雅黑” Arial, sans-serif;
  margin: 0;
  background-color: #f4f4f4;
  color: #333;
  padding-top: 150px; /* Add padding to body to offset for fixed header */
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
/* Header */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  color: white;
  padding: 20px 0;
  padding-top: 0;
  height: 250px;
  background: linear-gradient(to bottom, rgba(169, 44, 42, 1) 0%, rgba(169, 44, 42, 0) 100%);
  z-index: 1000;
}
.logo-container {
  margin-top: 40px;
}
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
}
.logo {
  font-size: 2em;
  font-weight: bold;
}
.logo span {
  font-size: 0.5em;
  display: block;
  font-weight: normal;
}
.nav-wrapper {
  position: relative;
  z-index: 10000;
}
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

.main-nav > ul > li {
  position: relative;
}

.main-nav a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  padding: 6px 4px;
  display: inline-block;
}

.main-nav a.active {
  color: orange;
  border-bottom: 2px solid orange;
}


.main-nav .dropdown {
  position: absolute;
  top: 100%;
  background: #a92c2a;
  border-radius: 6px;
  padding: 8px 0;
  display: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  z-index: 10000;
  left: 0;
}

.main-nav .dropdown-right {
  left: auto;
  right: 0;
}

.main-nav .dropdown li {
  padding: 0;
}

.main-nav .dropdown a {
  display: block;
  padding: 8px 14px;
  white-space: nowrap;
  color: #fff;
}

.main-nav .dropdown a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.main-nav li:hover > .dropdown,
.main-nav li:focus-within > .dropdown {
  display: block;
}

/* Improve visibility on fixed header */
header.scrolled .main-nav .dropdown {
  background: #7e1f1d;
}

.header-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #c0392b;
  padding: 10px 20px;
}
.sub-nav a {
  color: white;
  text-decoration: none;
  margin-right: 20px;
}
.search-bar {
  display: flex;
  margin-bottom: 10px;
}
.search-bar input {
  background-color: transparent;
  border: none;
  border-bottom: 1px solid white;
  padding: 5px;
  color: white;
}

.search-bar input::placeholder {
  color: white;
  opacity: 0.8;
  text-align: center;
}
.search-bar button {
  border: none;
  background: none;
  color: white;
  font-size: 1.2em;
}

main {
  margin-top: -190px;
}

/* Hero Section */
.hero {
  position: relative;
  height: 700px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 50px;
  color: white;
  overflow: hidden;
}

.hero-swiper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-swiper .swiper-slide {
  width: 100%;
  height: 100%;
}

.hero-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero .container {
  width: 1400px;
  display: flex;
  align-items: center; /* vertical align */
  justify-content: space-between; /* left-right layout */
  margin-top: 60px;
  position: relative;
  z-index: 2;
}

.hero-swiper .swiper-pagination {
  z-index: 3;
}

.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
  z-index: 3;
  color: white;
}
.welcome-text {
  position: relative;
  width: fit-content;
  background-color: rgba(255, 255, 255, 0.9);
  color: #d35400;
  padding: 30px;
  padding-left: 80px;
  padding-right: 80px;
  padding-bottom: 50px;
  border-radius: 2px;
  margin-left: 30px;
  box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.5);
  z-index: 1;
}
.welcome-text * {
  font-weight: 500;
}
.welcome-text h1 {
  font-size: 68px;
  margin: 0;
  letter-spacing: 3px;
  line-height: 1.2;
  font-weight: 500;
}
.welcome-text h4 {
  font-size: 51px;
  margin: 0;
  letter-spacing: 2px;
  line-height: 1.2;
  font-weight: 500;
  text-align-last: justify;
}
.welcome-text p {
  font-size: 28px;
  letter-spacing: 2px;
  line-height: 1;
  font-weight: 500;
}
.welcome-languages {
  height: 100%;
  position: static;
  background-color:#ffffff99;
  color: #333;
  padding: 20px;
  border-radius: 10px;
  margin: 0
}
.welcome-languages p {
  margin: 10px 0;
  font-size: 24px;
 
}
.welcome-languages p a{
color:#ffffff;
}
main .container {
  width: 1400px;
  max-width: none;
}

/* Section Title */
.section-title {
  text-align: center;
  margin: 40px 0;
  font-size: 29px;
  color: #333;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-title span {
  padding: 0 24px;
  font-weight: 400;
}

.section-title .more-link {
  position: absolute;
  right: 0;
  font-size: 16px;
  text-decoration: underline;
  color: #00447d;
}

.section-title::before,
.section-title::after {
  content: "";
  height: 8px;
  width: 81px;
  background-color: #9e1112;
  border-radius: 4px;
}

.section-title .more-link {
  position: absolute;
  right: 0;
  font-size: 16px;
  text-decoration: underline;
  color: #00447d;
}

/* Specifics for inform section */
.inform-section .section-title {
  color: white;
}

.inform-section .section-title span {
  color: white;
}

.inform-section .section-title .more-link {
  color: white;
  text-decoration: underline;
}

.inform-section .section-title::before {
  background: white;
}

/* News Section */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.news-card {
  background-color: white;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}
.news-card img {
  width: 100%;
  height: 252px;
  object-fit: cover;
}

.news-card-content {
  padding: 20px;
  background-color: white;
  color: #333;
}
.news-card-content h3 {
  margin-top: 0;
  height: 80px;
  overflow: hidden;
}

.news-card-content p {
  font-size: 16px;
  line-height: 1.3;
  height: 42px;
  overflow: hidden;
}

.news-card-content .date {
  font-size: 14px;
  line-height: 1;
  height: auto;
  margin-top: 22px;
}
.news-card:hover .news-card-content {
  background-color: #9b1517;
  color: white;
}

/* Inform Section */
.inform-section {
  width: 100%;
  height: 382px;
  background-image: url(../img/inform.png);
  background-size: 100% 100%;
  background-position: top center;
  padding: 20px 0;
  margin-top: 50px;
}

.inform-section .section-title {
  color: white;
}

.inform-section .section-title::before,
.inform-section .section-title::after {
  background-color: white;
}
.inform-grid {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  width: 1400px;
  height: 466px;
  margin: 0 auto;
  box-shadow: 0 14px 14px rgba(0, 0, 0, 0.1);
}
.inform-main {
  background-color: #9e1112;
  color: white;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  width: 454px;
  flex-shrink: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 30px;
}
.inform-main h3 {
  font-size: 22px;
  margin-bottom: 30px;
}
.inform-main p:nth-of-type(1) {
  width: 390px;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 30px;
  height: 168px;
  overflow: hidden;
}
.inform-main .date {
  font-size: 14px;
  line-height: 1.5;
  height: auto;
}
.inform-sidebar {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  justify-content: space-between;
}
.inform-card {
  background-color: rgb(255, 255, 255);
  padding-left: 30px;
  padding-right: 90px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid #ddd;
}
.inform-card:nth-of-type(1) {
  border-top-right-radius: 10px;
}
.inform-card:nth-last-of-type(1) {
  border-bottom-right-radius: 10px;
  border-bottom: none;
}
.inform-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  margin-top: 0px;
  color: #333;
}
.inform-card p {
  font-size: 16px;
  color: #666;
  line-height: 1.5;
}

/* About Section */
.about-section {
  background-color: white;
  padding: 50px 36px;
  padding-top: 36px;
  padding-bottom: 50px;
  margin: 50px auto;
  border-radius: 10px;
  width: calc(1400px - 72px);
  margin-top: 290px;
}

.about-section h2 {
  color: #d35400;
  margin-top: 0;
}
.about-section p {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 1.2em;
  color: #666;
}
.about-section h3 {
  color: #333;
  font-size: 23px;
}
.about-section h4 {
  font-size: 18px;
}
.about-section a {
  font-size: 18px;
  color: #cc6600;
}

.part1 {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
}

.part1-content {
  width: 650px;
  margin-right: 40px;
}
.part1-content h2 {
  font-size: 35px;
  margin-bottom: 24px;
}
.part1 p {
  width: 550px;
}

.part1-image {
  position: absolute;
  right: 0;
  flex-shrink: 0;
  top: -44px;
}

.part1-image img {
  width: 681px;
  height: 443px;
  object-fit: cover;
  border-radius: 10px;
  position: relative;
  top: -50px;
}

/* Key Dates Section */
.key-dates-section {
  background: url(../img/keydate.png) no-repeat center center/cover;
  padding: 50px 0;
  padding-top: 40px;
  color: white;
  height: calc(709px - 100px);
  display: flex;
  align-items: center;
}
.key-dates-section h2 {
  color: white;
  font-size: 48px;
  margin-bottom: 32px;
  margin-top: 0;
}
.key-dates-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 1400px;
  max-width: none;
  padding: 0;
}
.timeline {
  list-style: none;
  padding: 0;
  position: relative;
}
.timeline li {
  margin-bottom: 32px;
  display: flex;
  align-items: center;
}
.timeline-dot {
  width: 22px;
  height: 22px;
  background-color: #cccccc;
  border-radius: 50%;
  margin-right: 20px;
  border: 8px solid #888888;
}
.timeline-content {
  display: flex;
  align-items: center;
  font-size: 20px;
}

.timeline li.active .timeline-dot {
  background-color: #cc6600;
  border-color: rgb(125, 89, 16);
}

.timeline li.active .timeline-content {
  color: #cc9933;
}
.timeline-content strong {
  display: block;
  width: 300px;
  font-size: 20px;
}
.call-for-papers-card {
  background-color: rgba(204, 153, 51, 0.6);
  padding: 10px 50px;
  padding-bottom: 8px;
  width: 464px;
  height: 363px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 20px;
  margin-top: -30px;
}
.call-for-papers-card h3 {
  margin-top: 0;
  font-size: 1.5em;
}
.call-for-papers-card .date {
  margin-top: 0;
  font-size: 20px;
}
.call-for-papers-card .title {
  font-size: 30px;
  margin-top: 10px;
  margin-bottom: 20px;
}
.call-for-papers-card p {
  font-size: 20px;
  margin-bottom: 1.4em;
  line-height: 1.2;
}

/* Conference Info Section */
.conference-info {
  position: relative;
  padding: 50px 20px;
  background-color: #fff;
  margin: 50px auto;
  border-radius: 10px;
  max-width: 1160px;
  height: 1200px;
  box-shadow:
    0 15px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.conference-info .theme-bg {
  position: absolute;
  bottom: -11px;
  right: 0;
  height: auto;
  z-index: 1;
}
.info-block {
  margin-bottom: 30px;
  font-size: 18px;
  color: #333;
}
.info-block p {
  line-height: 1.5;
  font-weight: 400;
}
.info-block .date {
  font-size: 20px;
  color: #333;
  margin-top: 10px;
  font-weight: 500;
}
.info-block h3 {
  color: #cc6600;
  font-size: 24px;
  position: relative;
  padding-left: 48px; /* Add space for the dot */
  display: flex;
  align-items: center;
}

.info-block h3::before {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 16px;
  background-color: #44b0db; /* Blue color */
  border: 9px solid #82cae6; /* Light blue border */
  border-radius: 50%;
}
.theme-block {
  padding-left: 50px;
}
.theme-block h3 {
  margin-left: -50px;
}
.theme-block p {
  font-size: 24px;
  color: #999;
  margin-bottom: 12px;
  margin-top: 16px;
  line-height: 1.1em;
}
.theme-block strong {
  color: #333;
  font-size: 24px;
  font-weight: 400;
}
.theme-block ol {
  font-size: 18px;
  color: #333;
  padding-left: 40px;
  margin-top: 12px;
  list-style-type: decimal;
}
.theme-block ol li {
  line-height: 1.4em;
  display: list-item;
  list-style-type: decimal;
  list-style-position: inside;
}
.timeline-graphic {
  text-align: center;
  margin-top: 40px;
}
.timeline-graphic img {
  max-width: 100%;
}

/* Footer */
.footer-main {
  padding: 40px 0;
  background-color: #2d2d2d;
  padding-top: 20px;
}

.footer-grid {
  width: 1200px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  max-width: none;
  margin: 0 auto;
}

.footer-col h3 {
  color: white;
  border-top: 2px solid white;
  padding-top: 4px;
  display: inline-block;
  font-size: 24px;
  margin-bottom: 14px;
}

.footer-col p,
.footer-col a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.6em;
}
.footer-col a {
  line-height: 1.6em;
}

.footer-col .visitor-label {
  display: inline-block;
  width: 115px;
  margin-left: 10px;
}

.footer-col a:hover {
  color: white;
}
.footer-col .email {
  color: #cc6600;
  text-decoration: none;
}
.copyright {
  background-color: black;
  color: #bdc3c7;
  padding: 20px 0;
  text-align: center;
}

.copyright .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.copyright .container p {
  font-size: 14px;
  color: white;
}

/* New Header Layout Styles */
header .container {
  width: 1400px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: none;
}

.nav-and-search {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.highlight {
  background-color: yellow;
} /* Add blue dot before h3 in info-block */
/* Add yellow left border to the first info-block */
.info-block:first-child {
  position: relative;
  padding-left: 25px; /* Add some padding to prevent text from touching the border */
}

.info-block:first-child::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 7px; /* Width of the border */
  height: 33.33%; /* 1/3 of the container's height */
  background-color: #ffc107;
  border-radius: 3px;
}

/* Horizontal Timeline Styles */
.timeline-container-h {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 50px 0;
  padding: 0 40px;
}

.timeline-container-h::before {
  display: none;
}

.timeline-event:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 85px;
  left: 50%;
  width: 100%;
  height: 60px; /* Adjust height to match your image */
  background-image: url("../img/marker.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 90%;
  transform: translateY(-50%);
  z-index: 1;
}

.timeline-event {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  position: relative;
}

.timeline-date {
  margin-bottom: 40px;
  color: #333;
}

.timeline-description {
  margin-top: 40px;
  color: #333;
  font-weight: 600;
}

.timeline-marker-wrapper {
  position: relative;
  z-index: 2;
}

.timeline-marker {
  width: 40px;
  height: 40px;
  background-color: #e55a4f;
  transform: rotate(45deg);
  border-radius: 8px;
}

/* Styles for the fixed header on scroll */
header.scrolled {
  position: fixed;
  height: auto;
  background: #a92c2a;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  animation: slideDown 0.3s ease-out;
  z-index: 9999
}

header.scrolled .logo-container {
  margin-top: 0;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}