/*----===========HISTORY PAGE CSS----============*/

/* 页面背景 */
body {
  background-color: var(--bg-secondary);
}

/* History Content Area */
.history-content-area {
  padding: 20px 0;
  background-color: var(--bg-secondary);
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.history-content {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  background-color: var(--pure-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 30px;
  box-sizing: border-box;
}

/* Section Title - Previous Tournaments */
.section-title {
  margin-bottom: 30px;
}

.section-title h2 {
  font-family: Arial;
  font-size: 26px;
  font-weight: bold;
  line-height: 54px;
  color: var(--text-primary);
  margin: 0;
  text-align: left;
}

/* Tournaments Table Container */
.tournaments-table-container {
  width: 100%;
  margin-bottom: 20px;
  overflow: auto;
}

/* Tournaments Table */
.tournaments-table {
  width: 100%;
  font-family: Arial, sans-serif;
}

/* Table Header */
.tournaments-table thead {
  background-color: var(--primary-blue);
}

.tournaments-table thead th {
  height: 40px;
  padding: 10px;
  color: var(--pure-white);
  font-family: Arial;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  line-height: 20px;
  text-align: left;
  border: none;
  box-sizing: border-box;
}

/* Table Header Column Widths */
.tournaments-table .col-year {
  width: 120px;
  min-width: 120px;
}

.tournaments-table .col-country {
  width: 1010px;
  min-width: 1010px;
}

/* Table Body */
.tournaments-table tbody tr {
  height: 40px;
}

.tournaments-table tbody td {
  height: 40px;
  padding: 10px;
  font-family: Arial;
  font-size: 16px;
  font-weight: normal;
  line-height: 20px;
  color: var(--text-primary);
  vertical-align: middle;
  box-sizing: border-box;
}

/* Alternating Row Colors - 严格按照设计稿 */
.tournaments-table tbody .row-odd {
  background-color: var(--table-row-odd-bg);
}

.tournaments-table tbody .row-even {
  background-color: var(--table-row-even-bg);
}

/* History Details Section */

/* History Item */
.history-item {
  margin-bottom: 40px;
  /* padding: 20px 0; */
}

.history-item:last-child {
  margin-bottom: 0;
}

/* History Year Title */
.history-year {
  font-family: Arial;
  font-size: 26px;
  font-weight: bold;
  line-height: 54px;
  color: var(--text-primary);
  margin: 0 0 20px 0;
  text-align: left;
}

/* History Image */
.history-image {
  margin: 20px 0;
}

.history-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
}

/* History Text */
.history-text {
  margin: 20px 0;
}

.history-text p {
  font-family: Arial;
  font-size: 18px;
  font-weight: normal;
  line-height: 24px;
  color: var(--text-primary);
  margin: 0 0 16px 0;
  text-align: left;
}

.history-text p:last-child {
  margin-bottom: 0;
}

.history-text p strong {
  font-family: Arial;
  font-weight: bold;
}

/* 响应式设计 */

/* 平板和移动端（<1230px） */
@media (max-width: 1229px) {
  .history-content-area {
    padding: 20px 15px;
  }

  .history-content {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
  }

  .tournaments-table-container {
    overflow-x: auto;
  }

  .tournaments-table {
    min-width: 800px;
  }

  .section-title h2 {
    font-size: 24px;
    line-height: 48px;
  }

  .history-year {
    font-size: 24px;
    line-height: 48px;
  }
}

/* 移动端（<768px） */
@media (max-width: 767px) {
  .history-content-area {
    padding: 20px 10px;
  }

  .history-content {
    padding: 15px;
    border-radius: 6px;
  }

  .section-title h2 {
    font-size: 22px;
    line-height: 40px;
  }

  .history-year {
    font-size: 22px;
    line-height: 40px;
  }

  .tournaments-table thead th {
    padding: 8px;
    font-size: 14px;
  }

  .tournaments-table tbody td {
    padding: 8px;
    font-size: 14px;
  }

  .history-text p {
    font-size: 16px;
    line-height: 22px;
  }

  /* 调整列宽以适应移动端 */
  .tournaments-table .col-year {
    width: 80px;
    min-width: 80px;
  }

  .tournaments-table .col-country {
    min-width: 200px;
    width: auto;
  }
}

/* 小屏移动端（<576px） */
@media (max-width: 575px) {
  .history-content {
    padding: 10px;
  }

  .section-title h2 {
    font-size: 20px;
    line-height: 36px;
  }

  .history-year {
    font-size: 20px;
    line-height: 36px;
  }

  .tournaments-table thead th {
    padding: 6px;
    font-size: 12px;
  }

  .tournaments-table tbody td {
    padding: 6px;
    font-size: 12px;
  }

  .history-text p {
    font-size: 14px;
    line-height: 20px;
  }

  /* 进一步调整列宽 */
  .tournaments-table .col-year {
    width: 70px;
    min-width: 70px;
  }

  /* 国家列允许换行 */
  .tournaments-table .col-country {
    min-width: 150px;
    word-break: break-word;
  }
}

/* 表格滚动条样式 */
.tournaments-table-container::-webkit-scrollbar {
  height: 8px;
}

.tournaments-table-container::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 4px;
}

.tournaments-table-container::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 4px;
}

.tournaments-table-container::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* 加载动画兼容性 */
.tournaments-table-container.wow {
  visibility: hidden;
}

.tournaments-table-container.wow.animated {
  visibility: visible;
}

.history-item.wow {
  visibility: hidden;
}

.history-item.wow.animated {
  visibility: visible;
}

.section-title.wow {
  visibility: hidden;
}

.section-title.wow.animated {
  visibility: visible;
}

/* 打印样式 */
@media print {
  .history-content-area {
    padding: 20px 0;
    background-color: white;
  }

  .history-content {
    box-shadow: none;
    margin: 0;
  }

  .section-title h2,
  .history-year {
    color: black !important;
  }
}
