/*----===========TOURNAMENT RULES PAGE STYLES============*/

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

/* 主容器 */
.rules-content-area {
  background: var(--bg-secondary);
  padding: 20px 0;
}

.rules-content-area .typography .typography-item {
  display: flex;
  gap: 10px;
}
.rules-content-area .typography .typography-sub-item {
  display: flex;
  gap: 10px;
  padding-left: 35px;
}

.rules-content-area .typography .typography-list {
  padding: 20px;
}

.rules-content-area .typography p,
.rules-content-area .typography span,
.rules-content-area .typography text,
.rules-content-area .typography ol,
.rules-content-area .typography ul {
  font-family: Arial;
  font-size: 18px;
  font-weight: normal;
  line-height: 22px;
  letter-spacing: normal;
  color: var(--text-primary);
}

.rules-content-area .typography .typography-number {
  margin-right: 10px;
}

.rules-main-container {
  width: 1200px;
  margin: 0 auto;
  background: var(--bg-white);
  padding: 40px;
}

/* 规则章节容器 */
.rule-section {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

/* 规则标题样式 */
.rule-title {
  width: 100%;
  color: var(--text-primary);
  font-family: Arial;
  font-size: 18px;
  font-weight: bold;
  line-height: 40px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.rule-title-ex {
  font-weight: normal !important;
}

/* 图片展示区域 */
.tournament-images {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  width: 100%;
}

.tournament-image {
  flex: 1;
  height: 480px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-box);
}

/* 特殊规则样式 */
.rule-section.rule-10 .rule-content-wrapper {
  flex-direction: column;
}

.rule-host-note {
  color: var(--text-primary);
  font-family: Arial;
  font-size: 18px;
  font-weight: normal;
  line-height: 28px;
  margin-left: 20px;
  margin-bottom: 10px;
}

/* 积分系统列表样式 */
.rule-text ul {
  margin: 0;
  padding-left: 20px;
}

.rule-text li {
  margin-bottom: 8px;
  line-height: 22px;
}

/* 响应式设计 */

/* 平板和移动端 (<1230px) */
@media (max-width: 1229px) {
  .rules-main-container {
    width: calc(100% - 40px);
    margin: 0 20px;
    padding: 20px;
  }

  .rule-title {
    font-size: 22px;
    line-height: 34px;
  }

  .tournament-images {
    width: 100%;
    height: auto;
    flex-direction: column;
    gap: 20px;
  }

  .tournament-image {
    height: 250px;
  }
}

/* 移动端 (<768px) */
@media (max-width: 767px) {
  .rules-main-container {
    width: calc(100% - 20px);
    margin: 0 10px;
    padding: 15px;
  }

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

  .rule-content-wrapper {
    flex-direction: column;
    gap: 5px;
    padding: 10px 15px;
  }

  .rule-numbers {
    width: auto;
    margin-bottom: 5px;
  }

  .rule-text,
  .rule-numbers {
    font-size: 16px;
    line-height: 20px;
  }

  .tournament-image {
    height: 200px;
  }

  .tournament-images {
    display: block;
  }
  .tournament-images img {
    width: 100% !important;
  }
}

/* 小屏移动端 (<576px) */
@media (max-width: 575px) {
  .rules-main-container {
    width: calc(100% - 10px);
    margin: 0 5px;
    padding: 10px;
  }

  .rule-title {
    font-size: 18px;
    line-height: 24px;
  }

  .rule-text,
  .rule-numbers {
    font-size: 14px;
    line-height: 18px;
  }

  .tournament-image {
    height: 150px;
  }
}

/* 规则内容容器 */
.rule-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* 单个规则项 */
.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 15px 20px;
  background: #fafbfc;
  border-radius: 5px;
  border-left: 3px solid #e0e4e7;
}

.rule-item:hover {
  background: #f5f6f7;
  border-left-color: var(--primary-color);
  transition: all 0.3s ease;
}

/* 规则编号 */
.rule-number {
  color: var(--primary-color);
  font-family: Arial;
  font-size: 18px;
  font-weight: bold;
  line-height: 20px;
  min-width: 40px;
  text-align: center;
  background: #fff;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* 规则文本 */
.rule-item p {
  color: var(--body-text);
  font-family: Arial;
  font-size: 18px;
  line-height: 28px;
  margin: 0;
  flex: 1;
}

/* 子规则 */
.sub-rules {
  margin-top: 15px;
  margin-left: 20px;
  border-left: 2px solid #e0e4e7;
  padding-left: 20px;
}

.sub-rule-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 10px 15px;
  margin-bottom: 10px;
  background: #f8f9fa;
  border-radius: 3px;
}

.sub-rule-number {
  color: var(--secondary-color);
  font-family: Arial;
  font-size: 16px;
  font-weight: bold;
  min-width: 50px;
  text-align: left;
}

.sub-rule-item p {
  font-size: 16px;
  line-height: 24px;
  margin: 0;
}

/* 积分列表 */
.points-list {
  margin: 15px 0;
  padding-left: 20px;
}

.points-list li {
  color: var(--body-text);
  font-family: Arial;
  font-size: 18px;
  line-height: 26px;
  margin-bottom: 8px;
}

/* 阶段章节 */
.phase-section {
  margin: 20px 0;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 5px;
  border: 1px solid #e9ecef;
}

.phase-section h4 {
  color: var(--primary-color);
  font-family: Arial;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 8px;
}

.phase-section ol {
  margin: 10px 0;
  padding-left: 25px;
}

.phase-section ol li {
  color: var(--body-text);
  font-family: Arial;
  font-size: 16px;
  line-height: 24px;
  margin-bottom: 8px;
}

/* 行为分数列表 */
.conduct-points {
  margin: 15px 0;
  padding: 15px 20px;
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 5px;
}

.conduct-points li {
  color: #856404;
  font-family: Arial;
  font-size: 16px;
  line-height: 24px;
  margin-bottom: 5px;
  list-style-type: disc;
}

/* 比赛图片画廊 */
.image-gallery {
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: center;
}

.tournament-images img {
  width: 33.33%;
}

/*----===========TOURNAMENT RULES RESPONSIVE STYLES============*/

/*----===========TABLET AND MOBILE (<1230px)============*/
@media (max-width: 1229px) {
  .rules-content {
    margin: 0 20px;
    padding: 30px 25px;
  }

  .rule-title {
    font-size: 24px;
    line-height: 36px;
  }

  .rule-item {
    flex-direction: column;
    gap: 10px;
    padding: 15px;
  }

  .rule-number {
    align-self: flex-start;
    margin-bottom: 5px;
  }

  .image-gallery {
    flex-direction: column;
    gap: 20px;
  }

  .tournament-image {
    max-width: 100%;
  }
}

/*----===========MOBILE (<768px)============*/
@media (max-width: 767px) {
  .rules-content {
    margin: 0 15px;
    padding: 20px 15px;
  }

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

  .rule-item p {
    font-size: 16px;
    line-height: 24px;
  }

  .rule-intro p {
    font-size: 16px;
    line-height: 24px;
  }

  .rule-number {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }

  .sub-rule-item {
    flex-direction: column;
    gap: 5px;
    padding: 10px;
  }

  .sub-rule-number {
    font-size: 14px;
  }

  .sub-rule-item p {
    font-size: 14px;
    line-height: 20px;
  }

  .points-list li {
    font-size: 16px;
    line-height: 22px;
  }

  .phase-section {
    padding: 15px;
  }

  .phase-section h4 {
    font-size: 18px;
  }

  .phase-section ol li {
    font-size: 14px;
    line-height: 20px;
  }

  .conduct-points li {
    font-size: 14px;
    line-height: 20px;
  }
}

/*----===========SMALL MOBILE (<576px)============*/
@media (max-width: 575px) {
  .rules-content {
    margin: 0 10px;
    padding: 15px 10px;
  }

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

  .rule-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
  }

  .rule-item {
    padding: 12px;
  }

  .rule-item p {
    font-size: 14px;
    line-height: 20px;
  }

  .rule-intro {
    padding: 12px 15px;
  }

  .rule-intro p {
    font-size: 14px;
    line-height: 20px;
  }

  .rule-number {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .phase-section {
    padding: 12px;
  }

  .phase-section h4 {
    font-size: 16px;
  }

  .phase-section ol li {
    font-size: 13px;
    line-height: 18px;
  }

  .conduct-points {
    padding: 12px 15px;
  }

  .conduct-points li {
    font-size: 13px;
    line-height: 18px;
  }
}
