/* ========== 全局重置 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #f8f9fc;
}

/* ========== 页面头部 ========== */
.header {
  width: 100%;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ========== 主容器 ========== */
.container {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
}

/* ========== box1 容器 ========== */
.box1 {
  position: relative;
  padding-top: 40px;
}

/* ========== 返回按钮 ========== */
.back-btn {
  position: absolute;
  top: 0;
  right: 0;
  text-decoration: none;
  color: #667eea;
  background-color: #fff;
  padding: 8px 16px;
  border: 1px solid #667eea;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}
.back-btn:hover {
  background-color: #667eea;
  color: #fff;
}

/* ========== 院校详情布局 ========== */
.college-detail {
  text-align: left;
  padding: 0 15px;
}

/* ========== 核心信息 ========== */
.core-info {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
}
.logo-col {
  flex-shrink: 0;
}
.detail-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 4px;
}
.text-col {
  flex: 1;
}
.college-name {
  font-size: 28px;
  font-weight: 900;
  color: #333;
  margin-bottom: 12px;
}
.base-info,
.classics-info,
.address-info,
.contact-info {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
  line-height: 1.5;
}
.contact-info a {
  color: #667eea;
  text-decoration: none;
}
.contact-info a:hover {
  text-decoration: underline;
}

/* ========== 标题导航栏 ========== */
.title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 15px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.title-item {
  font-size: 15px;
  color: #333;
  font-weight: 600;
  padding: 6px 12px;
  background: #f5f7ff;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.title-item:hover {
  background: #667eea;
  color: #fff;
}
.title-item.active {
  background: #667eea;
  color: #fff;
}

/* ========== box2 内容展示区 ========== */
.box2 {
  margin-top: 2px;
  padding: 10px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  min-height: 400px;
}

/* ========== 院校概况 ========== */
.overview-container {
  width: 100%;
}
.overview-content {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  text-align: justify;
}

/* ========== 招生资讯列表 ========== */
.enrollment-list-container {
  padding: 10px 0;
}
.enrollment-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.enrollment-item {
  padding: 12px 16px;
  background: #f5f7ff;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.enrollment-item:hover {
  background: #e8edff;
  transform: translateY(-2px);
}
.enrollment-title-item {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin-right: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.enrollment-time {
  font-size: 14px;
  color: #666;
  white-space: nowrap;
}
.enrollment-detail-container {
  padding: 20px;
}
.back-to-list-btn {
  padding: 10px 20px;
  background: #667eea;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  margin: 10px 0;
  transition: all 0.2s ease;
}
.back-to-list-btn:hover {
  background: #5568d3;
}
.enrollment-detail-title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin: 15px 0;
}
.enrollment-detail-content {
  font-size: 15px;
  line-height: 1.8;
  color: #444;
}

/* ========== 院校分数线样式 ========== */
.college-score-container {
  width: 100%;
  padding: 10px 0;
}
.score-filter-row {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  padding: 15px 20px;
  background: #f5f7ff;
  border-radius: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.score-select {
  padding: 8px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
}
.score-select:focus {
  border-color: #667eea;
  outline: none;
}
.score-table-wrap {
  overflow-x: auto;
}
.score-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}
.score-table th,
.score-table td {
  padding: 12px 15px;
  text-align: center;
  border: 1px solid #e8edff;
  font-size: 14px;
}
.score-table th {
  background-color: #667eea;
  color: #fff;
  font-weight: 600;
}
.score-table tr:nth-child(even) {
  background-color: #f5f7ff;
}
.score-table tr:hover {
  background-color: #e8edff;
}

/* ========== 专业分数线样式 ========== */
.major-score-container {
  width: 100%;
  padding: 10px 0;
}
.major-score-filter-row {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  padding: 15px 20px;
  background: #f5f7ff;
  border-radius: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.filter-label {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}
.major-score-select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
  min-width: 120px;
}
.major-score-table-wrap {
  overflow-x: auto;
}
.major-score-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1000px;
}
.major-score-table th,
.major-score-table td {
  padding: 12px 10px;
  text-align: center;
  border: 1px solid #e8edff;
  font-size: 13px;
}
.major-score-table th {
  background-color: #667eea;
  color: #fff;
  font-weight: 600;
}
.major-score-table tr:nth-child(even) {
  background-color: #f5f7ff;
}
.major-score-table tr:hover {
  background-color: #e8edff;
}
.subject-name-cell {
  text-align: left;
  min-width: 150px;
}

/* ========== 硕博点样式 ========== */
.master-phd-container {
  width: 100%;
}
.master-phd-point-container {
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}
.point-title {
  font-size: 20px;
  font-weight: 900;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}
.point-content {
  display: flex;
  gap: 20px;
  justify-content: space-between;
}
.master-col, .phd-col {
  flex: 1;
}
.point-col-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e8edff;
}
.point-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.point-item {
  font-size: 14px;
  color: #666;
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  background: #f5f7ff;
  border-radius: 6px;
}
.no-point-data {
  color: #666;
  font-size: 14px;
  text-align: center;
  padding: 20px;
  background: #f5f7ff;
  border-radius: 4px;
}
.major-type-switch {
  margin: 20px 0;
  display: flex;
  gap: 12px;
}
.major-type-switch .type-btn {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  background: #fff;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s;
}
.major-type-switch .type-btn.active {
  background-color: #667eea;
  color: #fff;
  border-color: #667eea;
}
.major-type-switch .type-btn:hover:not(.active) {
  border-color: #667eea;
  color: #667eea;
}
.master-phd-major-container {
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.major-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}
.major-table-wrap {
  overflow-x: auto;
}
.major-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}
.major-table th,
.major-table td {
  padding: 12px 15px;
  text-align: left;
  font-size: 14px;
  border: 1px solid #e0e0e0;
}
.major-table th {
  background-color: #f5f7ff;
  color: #333;
  font-weight: 600;
}
.major-table tr.two-digit-code {
  background-color: #d1eaff !important;
}
.no-major-data {
  text-align: center;
  padding: 30px;
  color: #666;
}

/* ========== 院系专业样式 ========== */
.faculty-subject-container {
  padding: 10px;
}
.faculty-subject-header {
  margin-bottom: 24px;
  text-align: center;
}
.faculty-college-name {
  font-size: 24px;
  font-weight: 700;
  color: #333;
}
.faculty-subtitle {
  font-size: 14px;
  color: #888;
  margin-top: 6px;
}
.faculty-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faculty-card {
  background: #fafbff;
  border-radius: 12px;
  padding: 18px;
  transition: all 0.2s;
  border: 1px solid #e8edff;
}
.faculty-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
}
.faculty-name-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}
.faculty-index {
  font-size: 16px;
  font-weight: 700;
  color: #667eea;
  background: #e8edff;
  padding: 4px 10px;
  border-radius: 20px;
}
.faculty-name {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}
.subject-count {
  font-size: 13px;
  color: #888;
  background: #fff;
  padding: 4px 10px;
  border-radius: 20px;
}
.subjects-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.subject-tag {
  background: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  color: #555;
  border: 1px solid #e0e0e0;
  transition: all 0.2s;
}
.subject-tag:hover {
  border-color: #667eea;
  color: #667eea;
}
.no-subject {
  color: #999;
  font-size: 13px;
  padding: 6px 0;
}

/* ========== 优势学科样式 ========== */
.subject-introduce-container {
  padding: 10px;
}
.subject-header {
  text-align: center;
  margin-bottom: 30px;
}
.subject-header-title {
  font-size: 26px;
  font-weight: 700;
  color: #333;
}
.subject-header-subtitle {
  font-size: 14px;
  color: #888;
  margin-top: 6px;
}
.subject-cards-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.subject-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
}
.subject-card:hover {
  transform: translateY(-2px);
}
.subject-card-header {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.subject-icon {
  font-size: 28px;
}
.subject-title-section {
  flex: 1;
}
.subject-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.subject-card-subtitle {
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  margin-top: 4px;
}
.subject-card-content {
  padding: 20px;
}
.subject-items-list, .assessment-subject-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.subject-item-tag, .assessment-subject-tag {
  background: #f5f7ff;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 13px;
  color: #333;
  transition: all 0.2s;
}
.subject-item-tag:hover, .assessment-subject-tag:hover {
  background: #667eea;
  color: #fff;
  cursor: default;
}
.assessment-grade-group {
  margin-bottom: 20px;
}
.assessment-grade-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.assessment-grade-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}
.assessment-grade-count {
  font-size: 13px;
  color: #888;
}
.subject-empty {
  text-align: center;
  padding: 60px 20px;
}
.empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
}
.empty-text {
  font-size: 18px;
  color: #666;
}

/* ========== 招生计划样式 ========== */
.enroll-plan-container {
  width: 100%;
  padding: 10px 0;
}
.enroll-plan-filter-row {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  padding: 15px 20px;
  background: #f5f7ff;
  border-radius: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.enroll-plan-select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
  min-width: 110px;
}
.enroll-plan-table-wrap {
  overflow-x: auto;
}
.enroll-plan-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1000px;
}
.enroll-plan-table th,
.enroll-plan-table td {
  padding: 12px 10px;
  text-align: center;
  border: 1px solid #e8edff;
  font-size: 13px;
}
.enroll-plan-table th {
  background-color: #667eea;
  color: #fff;
  font-weight: 600;
}
.enroll-plan-table tr:nth-child(even) {
  background-color: #f5f7ff;
}
.school-name-cell, .major-name-cell, .major-note-cell {
  text-align: left;
  min-width: 140px;
}
.no-data {
  padding: 40px;
  text-align: center;
  color: #999;
  font-size: 14px;
}
.loading {
  padding: 40px;
  text-align: center;
  color: #888;
}
.error {
  padding: 40px;
  text-align: center;
  color: #ff4d4f;
}

/* ========== 响应式通用 ========== */
@media (max-width: 768px) {
  .core-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .title-row {
    gap: 8px;
  }
  .title-item {
    font-size: 13px;
    padding: 5px 10px;
  }
  .point-content {
    flex-direction: column;
  }
  .major-type-switch .type-btn {
    padding: 8px 12px;
    font-size: 13px;
  }
  .faculty-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
</style>