/* ============================================================
   CHSI (学信网 - 高等教育信息) 1:1 像素级复刻样式表
   ============================================================ */

:root {
  --chsi-bg: #F5F6F8;
  --chsi-primary-green: #2CB67E;
  --chsi-header-green: #2CB67E;
  --chsi-text-main: #1F2329;
  --chsi-text-sub: #8C929C;
  --chsi-text-link: #2CB67E;
  
  /* 精确卡片渐变与微阴影 */
  --card-green-bg: linear-gradient(135deg, #34BD83 0%, #27B379 100%);
  --card-blue-bg: linear-gradient(135deg, #4A93F8 0%, #3C83ED 100%);
  --card-indigo-bg: linear-gradient(135deg, #4F6DF2 0%, #3F5DE4 100%);
  --card-teal-bg: linear-gradient(135deg, #3FB8CE 0%, #32A7BC 100%);
  
  /* 苹果官方与中文原生清晰字体栈 */
  --font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: #E2E8F0;
  font-family: var(--font-family);
  color: var(--chsi-text-main);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-x: hidden;
}

/* 页面外层居中容器 */
.phone-viewport-wrapper {
  width: 100%;
  max-width: 420px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--chsi-bg);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow-x: hidden;
}

.iphone-frame {
  width: 100%;
  min-height: 100vh;
  background: var(--chsi-bg);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* 核心滚动内容区域 */
.chsi-screen-container {
  flex: 1;
  width: 100%;
  background-color: var(--chsi-bg);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ------------------------------------------------------------
   1. 经典学信绿顶栏（高等教育信息 - 1:1 对标真机）
   ------------------------------------------------------------ */
.chsi-sub-header {
  background-color: var(--chsi-header-green);
  height: 52px;
  width: 100%;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  position: relative;
  flex-shrink: 0;
  z-index: 10;
}

.sub-header-back {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 4px;
}

.sub-header-back svg {
  width: 22px;
  height: 22px;
  stroke: #FFFFFF;
  stroke-width: 2.4;
}

.sub-header-title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.2px;
  text-align: center;
}

/* ------------------------------------------------------------
   2. 内容卡片区域 (紧凑饱满，铺满屏幕)
   ------------------------------------------------------------ */
.chsi-content-body {
  padding: 16px 14px 32px 14px;
  flex: 1;
  width: 100%;
}

.section-group {
  margin-bottom: 18px;
}

.section-group:last-child {
  margin-bottom: 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  padding: 0 2px;
}

.section-title-wrap {
  font-size: 16.5px;
  font-weight: 600;
  color: #1F2329;
  letter-spacing: 0.1px;
}

.section-count {
  font-weight: 600;
  margin-left: 2px;
}

.section-action-link {
  font-size: 13px;
  color: #8C929C;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
  user-select: none;
}

.section-action-link .highlight {
  color: #2CB67E;
  font-weight: 500;
}

/* 信息彩色卡片 1:1 质感 */
.info-card {
  position: relative;
  border-radius: 10px;
  padding: 18px 18px 16px 18px;
  margin-bottom: 12px;
  color: #FFFFFF;
  transition: transform 0.15s ease;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(44, 182, 126, 0.15);
}

.info-card:last-child {
  margin-bottom: 0;
}

.info-card:active {
  transform: scale(0.995);
}

.info-card.card-green {
  background: var(--card-green-bg);
}

.info-card.card-blue {
  background: var(--card-blue-bg);
  box-shadow: 0 2px 8px rgba(60, 131, 237, 0.15);
}

.info-card.card-indigo {
  background: var(--card-indigo-bg);
  box-shadow: 0 2px 8px rgba(63, 93, 228, 0.18);
}

.info-card.card-teal {
  background: var(--card-teal-bg);
  box-shadow: 0 2px 8px rgba(50, 167, 188, 0.15);
}

.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.school-name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1.25;
}

/* 层次胶囊标签 (1:1 饱满圆润大圆角) */
.level-tag {
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.98);
  font-size: 13px;
  font-weight: 500;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.2px;
  line-height: 1.2;
}

.card-bottom-row {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.4;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.card-divider {
  opacity: 0.65;
  font-weight: 300;
}

/* ------------------------------------------------------------
   3. 空状态白底卡片 (1:1 像素级校准，高度适宜铺满视口)
   ------------------------------------------------------------ */
.empty-state-card {
  background: #FFFFFF;
  border: 1px solid #ECEEF2;
  border-radius: 10px;
  padding: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  user-select: none;
  cursor: pointer;
  overflow: hidden;
}

.empty-state-main-wrap {
  padding: 24px 16px 20px 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.empty-state-main-text {
  font-size: 17px;
  color: #1F2329;
  font-weight: 500;
  line-height: 1.55;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 90%;
}

.empty-state-kaoyan-title {
  font-size: 17px;
  font-weight: 600;
  color: #1D2129;
  margin-bottom: 8px;
}

.empty-state-kaoyan-sub {
  font-size: 13px;
  color: #8C929C;
  line-height: 1.55;
  max-width: 92%;
}

.empty-state-divider {
  width: 100%;
  height: 1px;
  background-color: #F2F4F7;
}

.empty-state-bottom-btn {
  width: 100%;
  padding: 12px 0;
  font-size: 13.5px;
  color: #2CB67E;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #FFFFFF;
}

.question-circle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14.5px;
  height: 14.5px;
  border-radius: 50%;
  border: 1.2px solid #8C929C;
  color: #8C929C;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  margin-left: 2px;
}

/* ------------------------------------------------------------
   移动端与各种视口 100% 满屏适配
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  html, body {
    background-color: var(--chsi-bg);
  }

  .phone-viewport-wrapper {
    max-width: 100vw;
    box-shadow: none;
  }
}
