/*----===========SCHEDULE/RESULTS PAGE STYLES============*/

/* 使用主题文件中的CSS变量 */

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

/* 赛程内容区域 */
.schedule-content-area {
  background: var(--bg-secondary);
  padding: 20px 0 40px;
  min-height: calc(100vh - 400px);
}

/* 固钉布局 */
.schedule-flex-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  max-width: 1230px;
  margin: 0 auto;
  gap: 10px;
}

.schedule-main-container {
  flex: 1 1 0;
  min-width: 0;
  width: 1200px;
  margin: 0 auto;
  background: var(--pure-white);
  padding: 30px;
  border-radius: 0;
  box-shadow: none;
}

/* 赛程章节 */
.schedule-section,
.results-section {
  margin-bottom: 2px;
}

.schedule-section:last-child,
.results-section:last-child {
  margin-bottom: 0;
}

.placeholder-content h3 {
  color: var(--text-foot);
  font-family: Arial;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.2;
}

.placeholder-content p {
  color: var(--text-secondary);
  font-family: Arial;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}

/* 当有实际内容时的样式 */
/* .schedule-table,
.results-table {
  width: 100%;
  height: 100%;
  background: var(--pure-white);
  border-collapse: collapse;
  font-family: Arial;
}

.schedule-table th,
.schedule-table td,
.results-table th,
.results-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  color: var(--text-foot);
  font-size: 14px;
  line-height: 1.4;
}

.schedule-table th,
.results-table th {
  background: #f9fafb;
  font-weight: bold;
  font-size: 16px;
  color: var(--text-foot);
  border-bottom: 2px solid #d1d5db;
} */

.schedule-title {
  font-family: Arial;
  font-size: 54px;
  font-weight: bold;
  line-height: 74px;
  letter-spacing: normal;
  color: #3d3d3d;
}

.schedule-description {
  font-family: Arial;
  font-size: 18px;
  font-weight: normal;
  line-height: normal;
  letter-spacing: normal;
  color: #3d3d3d;
  margin-top: 10px;
  margin-bottom: 20px;
}

.schedule-sub-title {
  margin-top: 35px;
  font-family: Arial;
  font-size: 26px;
  font-weight: bold;
  line-height: normal;
  text-align: center;
  letter-spacing: normal;
  color: #3d3d3d;
  margin-bottom: 20px;
}

.schedule-container {
  display: flex;
  gap: 39px;
}

.schedule-container > div {
  flex: 1;
}

.schedule-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  border-spacing: 0;
}

.schedule-table th {
  font-family: Arial;
  font-size: 16px;
  font-weight: bold;
  line-height: 20px;
  letter-spacing: normal;
  /* 纯白 */
  color: #ffffff;
  background: #1a1a1a;
  box-shadow: inset 0px -1px 0px 0px #000000;
  padding: 10px;
  z-index: 1;
}

.schedule-table td {
  text-align: center;
  /* 表格背景色/1 */
  background: #eef1f6;
  height: 40px;
}

/* 斑马纹 */
.schedule-group-table tr:nth-child(even) td {
  background: #dbe0e7;
}

.schedule-table .odd td {
  /* 基数行样式 */
  background: #f5f7fa;
}

.schedule-table .even td {
  /* 偶数行样式 */
  background: #dbe0e7;
}

.schedule-span-table {
  width: 100%;
}

.schedule-group-table {
  width: 100%;
}

.schedule-group-table th:first-child {
  width: 40px;
}

.schedule-table-w th:first-child {
  width: 50px;
}

.schedule-table-value {
  font-weight: bold;
  color: #fff;
}
.m-t-55 {
  margin-top: 55px;
}

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

.schedule-table-setp th:first-child {
  width: 100px;
}

.schedule-affix {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  margin-left: 700px;
}

@media (max-width: 1540px) {
  .schedule-affix {
    margin-left: 650px;
  }
  .affix-card{
    width: 50px;
    height: 50px;
    font-size: 14px;
  }
}

/* 响应式设计 */

/* 平板和移动端 (<1230px) */
@media (max-width: 1229px) {
  .page-title-area {
    padding: 60px 0 30px;
  }

  .page-title {
    font-size: 42px;
    line-height: 42px;
  }

  .schedule-main-container {
    width: calc(100% - 40px);
    margin: 0 20px;
    padding: 20px;
  }

  .placeholder-content h3 {
    font-size: 22px;
  }

  .placeholder-content p {
    font-size: 15px;
  }

  .schedule-container {
    display: block;
  }


  .schedule-flex-wrapper {
    display: block;
  }
}

/* 移动端 (<768px) */
@media (max-width: 767px) {
  .page-title-area {
    padding: 40px 0 20px;
  }

  .page-title {
    font-size: 32px;
    line-height: 32px;
  }

  .schedule-main-container {
    width: calc(100% - 20px);
    margin: 0 10px;
    padding: 15px;
  }

  .schedule-placeholder,
  .results-placeholder {
    height: 250px;
    margin-top: 10px;
  }

  .placeholder-content {
    padding: 20px;
  }

  .placeholder-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .placeholder-content p {
    font-size: 14px;
  }

  .schedule-title {
    font-size: 32px;
    line-height: 32px;
  }

  .schedule-sub-title {
    font-size: 20px;
  }

  .schedule-table th,
  .schedule-table td,
  .results-table th,
  .results-table td {
    padding: 8px 10px;
    font-size: 12px;
  }

  .schedule-table th,
  .results-table th {
    font-size: 14px;
  }
}

/* 小屏移动端 (<576px) */
@media (max-width: 575px) {
  .page-title-area {
    padding: 30px 0 15px;
  }

  .page-title {
    font-size: 28px;
    line-height: 28px;
  }

  .schedule-main-container {
    width: calc(100% - 10px);
    margin: 0 5px;
    padding: 10px;
  }

  .schedule-placeholder,
  .results-placeholder {
    height: 200px;
    margin-top: 8px;
  }

  .placeholder-content {
    padding: 15px;
  }

  .schedule-title {
    font-size: 28px;
    line-height: 28px;
  }

  .schedule-sub-title {
    margin-top: 20px;
    font-size: 20px;
  }

  .placeholder-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .placeholder-content p {
    font-size: 13px;
  }

  .schedule-table th,
  .schedule-table td,
  .results-table th,
  .results-table td {
    padding: 6px 8px;
    font-size: 11px;
  }

  .schedule-table th,
  .results-table th {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .schedule-title {
    font-size: 20px;
    line-height: 20px;
  }
}

/* 额外的样式，为将来的实际内容做准备 */

/* 比赛时间样式 */
.match-time {
  color: var(--primary-blue);
  font-weight: bold;
}

/* 队伍名称样式 */
.team-name {
  color: var(--text-foot);
  font-weight: 500;
}

/* 比分样式 */
.match-score {
  color: var(--text-foot);
  font-weight: bold;
  text-align: center;
}

/* 胜利队伍高亮 */
.winner {
  background-color: #f0f9ff;
  color: var(--primary-blue);
}

/* 状态指示器 */
.status-upcoming {
  color: var(--text-muted);
  font-style: italic;
}

.status-live {
  color: var(--accent-red);
  font-weight: bold;
}

.status-finished {
  color: var(--text-secondary);
}

/* 分组标题 */
.group-header {
  background: #f3f4f6;
  color: var(--text-foot);
  font-weight: bold;
  font-size: 16px;
  padding: 15px;
  border-bottom: 2px solid var(--primary-blue);
}

/* 场地信息 */
.venue-info {
  color: var(--text-muted);
  font-size: 12px;
  font-style: italic;
}

/* 动画效果 */
.schedule-container,
.results-container {
  transition: all 0.3s ease;
}

.affix-card {
  width: 100px;
  height: 100px;
  font-family: Source Han Sans;
  font-size: 16px;
  font-weight: normal;
  line-height: normal;
  text-align: center;
  letter-spacing: 0em;

  font-variation-settings: "opsz" auto;
  font-feature-settings: "kern" on;
  color: #3d3d3d;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;

  background: #ffffff;

  box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
  transition: all 0.3s ease;
}
.affix-card a {
  text-decoration: none;
  color: inherit;
  outline: none;
}
.affix-card > img {
  display: none;
}
.affix-card a:visited,
.affix-card a:active,
.affix-card a:focus {
  color: inherit;
  text-decoration: none;
  outline: none;
}
.affix-card:last-child {
  margin-bottom: 0;
}

.affix-card.active {
  background: var(--primary-blue, #1b62cb);
  color: #fff;
  box-shadow: 0 4px 16px rgba(27, 98, 203, 0.18);
}

.affix-card.active > a {
  display: none;
}

.affix-card.active > img {
  display: block;
}