body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-x: auto;
}

/* ========== 顶部导航栏 ========== */
.top-bar {
  background-color: #fff;
  padding: 10px 0;
  border-bottom: 1px solid #ccc;
}

.top-inner {
  width: 50%; 
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 50px;
}

.title-text {
    font-size: 24px;
    font-weight: bold;
    margin-right: auto; /* 把文字推到导航栏前 */
    }

nav {
  display: flex;
  gap: 40px;
  align-items: center;
  position: relative;
}

.dropdown {
      position: relative;
      display: inline-block;
}
.dropdown-content {
      display: none;
      position: absolute;
      background-color: #f9f9f9;
      min-width: 200px;
      box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
      z-index: 1;
}
.dropdown-content a {
      color: black;
      padding: 10px 16px;
      text-decoration: none;
      display: block;
}
.dropdown-content a:hover {
     background-color: #f1f1f1;
}
.dropdown:hover .dropdown-content {
  display: block;
}
.dropdown:hover .dropbtn {
  color: blue;
}

.dropbtn::after {
  content: " ▼";
  font-size: 12px;
}

nav a {
  color: black;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  position: relative;
}

nav a:hover {
    color: blue;
}


/* ========== Banner 样式 ========== */
.banner2025 {
    background-image: url('atlbanner2025v1.jpg');
    height: 300px; 
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover; 
}

@media (max-width: 600px) {
    .banner2025 {
        height: 120px;
        background-size: cover; 
    }
}

/* ========== 主内容布局 ========== */
.container1 {
    display: flex;
    width: 85%;
    margin: 50px auto 0 auto; 
   /* margin: 0 auto;*/
    background: white; 
}

.main-content {
   flex: 1 0 80%; 
    padding: 20px;
}

.main-content p, .event-description {
    text-align: center; 
}

.sidebar {
  flex: 0 0 20%;
  display: flex;
  flex-direction: column;
  padding: 0;
  box-sizing: border-box;
  background: white;
  font-size: 58px;
  align-items: left;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: left;
    gap: 10px;
}

.logo1 {
    width: 80%;
    height: auto;
    margin-bottom: 10px;
}

.fixed-top-logo {
    width: auto; 
    height: 100px;
}

.image-80 {
    width: 70%;
    height: auto; 
    display: block;
    margin: 0 auto;
}

/*========================*/
.logo-container1 {
    display: flex;
    flex-direction: column;
    align-items: left;
    gap: 10px;
}

.logo2 {
    width: 55%;
    height: auto;
    margin-bottom: 10px;
}

.fixed-top-logo1 {
    width: auto; 
    height: 100px;
}

.image-801 {
    width: 70%;
    height: auto; 
    display: block;
    margin: 0 auto;
}

/*-----------*/
/* ========== 页脚样式 ========== */
.site-footer {
  background-color: #1a2230;
  color: white;
  padding: 40px 0;
  margin-top: 60px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 80%;
  margin: 0 auto;
  gap: 40px;
}

.footer-section h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.footer-section p {
  margin: 0;
  font-size: 15px;
}

/*================*/

body {
    font-family: Arial, sans-serif;
}

.tournament-bracket {
    display: flex;
    justify-content: space-between;
    padding: 20px;
}

.round {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 40px;
}

.match {
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 20px;
    width: 200px;
    text-align: center;
}


/* Line styling */
.tournament-bracket {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    position: relative;
}

.round {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 40px;
}

.match {
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 20px;
    width: 200px;
    text-align: center;
}

.tournament-bracket::before, .tournament-bracket::after {
    content: '';
    position: absolute;
    width: 20px;
    border-top: 1px solid black;
}

.round:not(:last-child) .match {
    position: relative;
}

/*     .round:not(:last-child) .match::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -20px;
    width: 20px;
    height: 1px;
    background-color: black;
}
*/
.score-row {
    display: grid;
    grid-template-columns: repeat(2, 30px); /* 每行两列 */
    gap: 5px;
    align-items: center;
}

.score-num {
    text-align: center;
}

/* ========== Sponsors 样式 ========== */
.sponsor-logos {
  display: flex;
  gap: 20px;
}

.sponsor-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: white;
}

.sponsor-item img {
  height: 60px;
  width: auto;
  border-radius: 6px;
  background-color: white;
  padding: 4px;
  margin-bottom: 6px;
}

.sponsor-item p {
  font-size: 14px;
  margin: 0;
}

.sponsor-item a {
    color: white; /* 默认链接颜色设置为白色 */
    text-decoration: none; /* 移除下划线 */
}
.sponsor-item a:hover {
    color: blue; /* 鼠标悬停时链接颜色变为蓝色 */
}


/*Draws */

 .tournament-bracket {
    display: flex;
    justify-content: space-between;
    flex-direction: column; /* 新增 */
    padding: 20px;
}

.round {
    display: flex;
    justify-content: flex-start;
    position: relative;
}

.match-container {
    position: relative;
    margin-right: 50px;
}

.match {
    background: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 20px;
    position: relative;
    width: 250px;
}

.next-round {
    position: absolute;
    left: 350px; /* 根据需要调整这个值 */
    top: 10px;   /* 根据需要调整这个值，使得与前两个比赛中间对齐 */
}

.match .player {
    display: flex;
    justify-content: space-between;
}

.line {
    position: absolute;
    width: 40px;
    height: 2px;
    background: black;
    top: 50%;
    left: 100%;
}
.line-horizontal {
    position: absolute;
    left: 272px; /* match 宽度 */
    width: 40px;
    height: 2px;
    background-color: #ccc;
}

.line-vertical {
    position: absolute;
    left: 310px;
    width: 2px;
    background-color: #ccc;
}

.line-horizontal-middle {
    position: absolute;
    left: 310px;
    width: 40px;
    height: 2px;
    background-color: #ccc;
}
.match-time-header {
  background-color: #e0e0e0;
  color: #333;
  padding: 7px;
  border-radius: 5px;
  font-weight: bold;
  margin-bottom: 2px;
  width: 250px; /* 与 .match 宽度保持一致 */
  text-align: center;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* 模拟与 .match 类似的阴影效果 */
}
.tournament-bracket::before,
.tournament-bracket::after {
    content: none;
}

