/* 科目选择页面专用样式 */

/* 容器样式 */
.subject-container {
  background: rgba(0, 122, 204, 0.3);
  border-radius: 20px;
  padding: 30px 0;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90%;
  max-width: 1200px;
}

.subject-container .container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.subject-form-wrapper {
  width: 100%;
  max-width: 1000px;
  padding: 0 20px;
  display: flex;
  justify-content: center;
}

.subject-form-wrapper .row {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 400px;
}

/* 左侧内容样式 */
.left-column {
  display: flex;
  flex-direction: column;
  padding-top: 0;
}

/* 现代简约风格 - 位置和年级选择器 */
.location-selector,
.grade-selector {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  color: #333;
  padding: 16px 20px;
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  width: 100%;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
  height: 52px;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.04),
    0 1px 2px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(10px);
}

.location-selector:hover,
.grade-selector:hover {
  transform: translateY(-1px);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.08),
    0 2px 4px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.12);
  background: linear-gradient(135deg, #ffffff 0%, #f0f1f3 100%);
}

/* 年级选择器特殊样式 */
.grade-selector {
  background: linear-gradient(135deg, #fff9e6 0%, #fff3d3 100%);
  border-color: rgba(247, 201, 76, 0.3);
}

.grade-selector:hover {
  background: linear-gradient(135deg, #fff6d9 0%, #ffeed1 100%);
  border-color: rgba(247, 201, 76, 0.5);
}

.dropdown-arrow {
  display: inline-block;
  margin-left: 5px;
}

.avatar-wrapper {
  background-color: white;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 340px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.avatar-display {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.avatar-display img {
  max-width: 150px;
  max-height: 280px;
  object-fit: contain;
}

/* 右侧内容样式 */
.right-column {
  display: flex;
  flex-direction: column;
}

/* 成绩榜按钮 */
.ranking-button {
  background-color: rgba(0, 176, 240, 0.6);
  color: white;
  border: none;
  border-radius: 15px;
  padding: 8px 20px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  align-self: flex-end;
  margin-bottom: 15px;
}

.ranking-button:hover {
  background-color: rgba(0, 176, 240, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* 科目网格 */
.subject-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  width: 100%;
}

.subject-item {
  background-color: white;
  border-radius: 10px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 80px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.subject-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.subject-item.selected {
  background-color: white !important;
  box-shadow: 0 0 8px rgba(255, 102, 0, 0.3);
  transform: translateY(-2px);
}

.subject-item.selected::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #ff6600, #ff9933);
}

.subject-name {
  font-size: 1.4rem;
  font-weight: bold;
  color: #333;
}

/* 弹出框样式 */
.modal-base {
  display: none;
  position: fixed;
  z-index: 1100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 102, 204, 0.8);
  overflow: auto;
}

.modal-content {
  position: relative;
  background: linear-gradient(to bottom, #0099ff, #66ccff);
  margin: 10% auto;
  padding: 0;
  border-radius: 15px;
  width: 80%;
  max-width: 500px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: modalFadeIn 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes modalFadeIn {
  from {opacity: 0; transform: translateY(-30px);}
  to {opacity: 1; transform: translateY(0);}
}

.modal-header {
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h4 {
  margin: 0;
  color: white;
  font-weight: bold;
  letter-spacing: 1px;
}

.modal-close {
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  opacity: 0.8;
}

.modal-close:hover {
  opacity: 1;
}

.modal-body {
  padding: 15px 20px;
  max-height: 60vh;
  overflow-y: auto;
}

/* 标签和面板样式 */
.tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 15px;
}

.tab {
  padding: 10px 15px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
}

.tab.active {
  color: white;
  font-weight: bold;
}

.tab.active:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: white;
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.panel-item {
  padding: 12px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: background-color 0.2s;
  color: white;
}

.panel-item:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.panel-item:last-child {
  border-bottom: none;
}

/* 滚动条样式 */
.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.6);
}

/* 响应式样式 */
@media (max-width: 768px) {
  .subject-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  
  .subject-item {
    height: 60px;
    padding: 8px;
  }
  
  .subject-name {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .subject-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
  }
  
  .subject-item {
    height: 50px;
    padding: 5px;
  }
  
  .subject-name {
    font-size: 0.9rem;
  }
} 