/* ===== Standings 特有样式 - NPB standings.html ===== */

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(135deg, #1d3557 0%, #e63946 100%);
  padding: 3rem 1rem;
  text-align: center;
}

.hero__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.hero__title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.hero__desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .hero { padding: 2rem 1rem; }
  .hero__title { font-size: 1.5rem; }
  .hero__desc { font-size: 0.9rem; }
}

/* ===== Page Header ===== */
.page-header {
  text-align: center;
  padding: 2rem 0 1.5rem;
}

.page-header__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1d3557;
  margin-bottom: 0.5rem;
}

.page-header__desc {
  font-size: 1rem;
  color: #7a7266;
}

@media (max-width: 768px) {
  .page-header__title { font-size: 1.35rem; }
  .page-header__desc { font-size: 0.9rem; }
}

/* ===== Quick Navigation ===== */
.quick-nav {
  text-align: center;
  margin-bottom: 2rem;
}

.quick-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}

.quick-nav__link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #fff;
  border: 1px solid #d4cbbf;
  border-radius: 0.625rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2d2a24;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.quick-nav__link:hover {
  background: #e63946;
  color: #fff;
  border-color: #e63946;
}

/* ===== Section Block ===== */
.section-block {
  background: #fff;
  border: 1px solid #d4cbbf;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
  margin-bottom: 2rem;
}

/* ===== Section Title ===== */
.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding: 0.6rem 1rem;
  border-radius: 0.625rem;
  color: #fff;
  text-align: left;
}

.section-title.comparison-bg {
  background: linear-gradient(135deg, #e63946 0%, #f4a261 100%);
}

.section-title.central-bg {
  background: #1d3557;
}

.section-title.pacific-bg {
  background: #c1121f;
}

.section-title.interleague-bg {
  background: linear-gradient(135deg, #2a9d8f 0%, #264653 100%);
}

.section-title.all-teams-bg {
  background: linear-gradient(135deg, #1d3557 0%, #e63946 100%);
}

/* ===== Table Wrap ===== */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 0.625rem;
  border: 1px solid #d4cbbf;
  margin-bottom: 1rem;
}

/* ===== Standings Table ===== */
.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 750px;
  background: #fff;
}

.standings-table thead {
  background: #1d3557;
}

.standings-table th {
  padding: 0.65rem 0.75rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border-bottom: 3px solid #e63946;
}

.standings-table th:first-child,
.standings-table td:first-child {
  text-align: center;
  min-width: 80px;
  width: auto;
}

.standings-table th:nth-child(2),
.standings-table td:nth-child(2) {
  text-align: left;
  min-width: 130px;
}

.standings-table td {
  padding: 0.6rem 0.75rem;
  text-align: center;
  border-bottom: 1px solid rgba(212,203,191,0.3);
  font-weight: 500;
  font-size: 0.85rem;
  white-space: nowrap;
}

.standings-table tbody tr:hover td {
  background: rgba(230,57,70,0.04);
}

.standings-table tbody tr:nth-child(even) td {
  background: rgba(240,235,227,0.4);
}

.standings-table tbody tr:nth-child(even):hover td {
  background: rgba(230,57,70,0.06);
}

/* 排名样式 */
.t-rank {
  display: inline-block;
  font-weight: 700;
  color: #7a7266;
  white-space: nowrap;
}

.t-rank.top-one {
  color: #e63946;
  font-size: 1rem;
}

/* ===== Update Info ===== */
.update-info {
  background: #fff;
  border: 1px solid #d4cbbf;
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin-top: 2rem;
}

.update-info p {
  color: #7a7266;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.update-info a {
  color: #e63946;
  font-weight: 600;
}

.update-info a:hover {
  text-decoration: underline;
}

/* ===== NPB原始表格样式适配 ===== */
.bis_table.wrapfix {
  width: 100%;
  overflow-x: auto;
}

.bis_table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 700px;
}

.bis-table-head th {
  padding: 0.6rem 0.5rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  background: #1d3557;
  border-bottom: 3px solid #e63946;
}

.bis-table-head th.name_w17 {
  text-align: left;
  min-width: 120px;
  padding-left: 1rem;
}

.bis-table-body td {
  padding: 0.55rem 0.5rem;
  text-align: center;
  border-bottom: 1px solid rgba(212,203,191,0.3);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
}

.bis-table-body tr:nth-child(even) td {
  background: rgba(240,235,227,0.4);
}

.bis-table-body tr:hover td {
  background: rgba(230,57,70,0.04);
}

/* ===== 响应式调整 ===== */
@media (max-width: 768px) {
  .section-block {
    padding: 1rem;
  }

  .section-title {
    font-size: 1.05rem;
    padding: 0.5rem 0.75rem;
  }

  .standings-table {
    font-size: 0.78rem;
    min-width: 600px;
  }

  .standings-table th,
  .standings-table td {
    padding: 0.5rem 0.4rem;
    font-size: 0.78rem;
  }

  .standings-table th:nth-child(2),
  .standings-table td:nth-child(2) {
    min-width: 100px;
  }

  .bis_table table {
    font-size: 0.75rem;
    min-width: 600px;
  }

  .bis-table-head th,
  .bis-table-body td {
    padding: 0.45rem 0.35rem;
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .standings-table {
    font-size: 0.7rem;
    min-width: 520px;
  }

  .standings-table th,
  .standings-table td {
    padding: 0.4rem 0.3rem;
    font-size: 0.7rem;
  }

  .standings-table th:nth-child(2),
  .standings-table td:nth-child(2) {
    min-width: 85px;
  }

  .bis_table table {
    min-width: 520px;
  }

  .bis-table-head th,
  .bis-table-body td {
    padding: 0.35rem 0.25rem;
    font-size: 0.65rem;
  }
}
