/* 学校概况二级页面样式 */

/* 页面容器 - 温暖米黄色底色 + 底部底图 */
.page-container {
  position: relative;
  min-height: 100vh;
  background-color: #FDF2DD;
  background-image: url('/images/school-info-bg.png');
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% auto;
}

/* 顶部导航栏 */
.sub-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: rgba(253, 242, 221, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(221, 191, 155, 0.2);
  position: sticky;
  top: 0;
  z-index: 10;
}

.back-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
  position: absolute;
  left: 16px;
}

.back-btn:active {
  background: rgba(221, 191, 155, 0.15);
}

.sub-title {
  font-size: 17px;
  font-weight: 600;
  color: #5C3A1E;
}

.header-placeholder {
  width: 36px;
}

/* 内容区域 */
.info-content {
  padding: 20px 16px 120px;
  min-height: 60vh;
  position: relative;
  z-index: 1;
}

.info-content p {
  font-size: 15px;
  line-height: 1.8;
  color: #4A3728;
  text-indent: 2em;
  margin-bottom: 16px;
}

/* 加载状态 */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  color: #8B7355;
}

.loading-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(221, 191, 155, 0.3);
  border-top-color: #DDBF9B;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 12px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 富文本内容区图片约束 */
.info-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 12px auto;
  border-radius: 8px;
}

/* 错误状态 */
.error-state {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  color: #8B7355;
}
