:root {
  --green-start: #43a580;
  /* 稍微调回一点点深 */
  --green-end: #54d2a4;
  /* 稍微调回一点点深 */
  --button-green: #5cd2a5;
  /* 同步，微调得亮一点点 */
  --text-main: #2b2b2b;
  --text-label: #888888;
  --bg-color: #ffffff;
}

* {
  box-sizing: border-box;
}

/* Force Mobile View on Desktop */
html {
  background-color: #f2f4f7;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 414px;
  /* iPhone Max Width */
  background: var(--bg-color);
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.08);
  /* shadow to distinguish mobile frame */
  position: relative;
  overflow-x: hidden;
}

.page-shell {
  padding-bottom: 20px;
}

.page {
  width: 100%;
  margin: 0;
}

/* Status Banner (横向几乎占满，悬空一段距离) */
.status-banner {
  position: relative;
  margin: 15px 16px 25px;
  /* 增加了 bottom margin，制造悬空感 */
  padding: 12px 16px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: auto;
  /* 占满屏幕剩余空间 */
}

.status-banner::after {
  content: "";
  position: absolute;
  left: 40px;
  bottom: -5px;
  width: 10px;
  height: 10px;
  background: #ffffff;
  transform: rotate(45deg);
  box-shadow: 3px 3px 4px rgba(0, 0, 0, 0.04);
  z-index: 10;
}

.status-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-icon {
  width: 20px;
  height: 20px;
  background: #2ebd8a;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.status-icon::before {
  content: '';
  position: absolute;
  top: -15px;
  right: -15px;
  bottom: -15px;
  left: -15px;
}

.status-icon::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 6px;
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.status-banner strong {
  display: block;
  font-weight: normal;
  font-size: 15px;
  line-height: 20px;
  color: #333;
}

.status-link {
  border: none;
  background: none;
  color: #999;
  font-size: 15px;
  padding: 0;
  margin-left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 20px;
  line-height: 20px;
  transform: translateX(-4px);
}

.status-link-text {
  display: block;
  line-height: 20px;
  transform: translateX(1px);
}

.status-link-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: block;
  stroke: currentColor;
  stroke-width: 1;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(0);
}

/* Green Profile Card */
.profile-card {
  background: linear-gradient(180deg, var(--green-start) 0%, var(--green-end) 100%);
  border-radius: 6px;
  margin: 12px 16px;
  padding: 18px 16px;
  color: #ffffff;
  box-shadow: 0 4px 9px rgba(72, 184, 141, 0.4), 0 0 4px rgba(72, 184, 141, 0.2);
  /* 发光强度不变，但宽度为二分之一 */
}

.card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.photo-stack {
  display: flex;
  gap: 10px;
}

.photo-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.photo-frame {
  width: 54px;
  height: 74px;
  background-color: #8bbce1;
  /* flat blue */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 6px;
  /* 明显一点的圆角 */
  border: 1px solid rgba(255, 255, 255, 0.85);
  /* 很细的白边 */
}

.photo-frame.muted {
  background-color: #e2e6eb;
  /* flat grey */
}

.photo-item figcaption {
  margin-top: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
}

.photo-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #f45a5d;
  color: #fff;
  font-size: 14px;
  line-height: 18px;
  text-align: center;
  font-weight: 500;
  border: 2px solid #ffffff;
}

.person-info {
  margin-top: 2px;
}

.person-info h1 {
  margin: 0;
  font-size: 17px;
  /* 字体稍微小一点，显得不加粗 */
  font-weight: normal;
}

.person-info p {
  margin: 6px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 16px;
  /* 间距翻倍 */
}

.person-divider {
  display: none;
  /* Just using explicit gaps */
}

.school-block {
  margin-top: 20px;
}

.school-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.school-title-row h2 {
  margin: 0;
  font-size: 19px;
  font-weight: normal;
  line-height: 1.3;
}

.level-pill {
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.16);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.2;
}

.school-subline {
  margin: 8px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
}

.subline-divider {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.6);
  margin: 0 8px;
}

/* Detail Sheet */
.detail-sheet {
  position: relative;
  padding: 10px 16px;
  margin-top: 10px;
}

/* 夹层容器，用于限制水印不会撑出页面左右边缘，对其上方卡片边界 */
.detail-watermark-container {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 16px;
  right: 16px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* 夹层容器，限制水印不撑出页面左右边缘，对其上方卡片边界 */
.detail-watermark-container {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 16px;
  right: 16px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* 整个网格组斜45度排列的水印 */
.detail-watermark {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='110' height='65'%3E%3Ctext x='15' y='40' fill='rgba(235, 235, 235, 0.9)' font-family='sans-serif' font-size='13'%3E学信网%3C/text%3E%3C/svg%3E");
  transform: rotate(45deg);
  pointer-events: none;
  z-index: 0;
}

.detail-list {
  position: relative;
  z-index: 1;
  margin: 0;
}

.detail-row {
  display: grid;
  /* 左侧分界线再向右移大概一个汉字的宽度 (15px) */
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.detail-row dt {
  margin: 0;
  color: var(--text-label);
  text-align: right;
  font-size: 15px;
  line-height: 1.4;
  white-space: nowrap;
}

.detail-row dd {
  margin: 0;
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.4;
  word-break: break-all;
}

/* Action Button */
.action-button {
  display: block;
  width: calc(100% - 32px);
  margin: 12px auto 0px;
  background: var(--button-green);
  color: #fff;
  font-size: 17px;
  padding: 13px 0;
  border: none;
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
}

/* Template Tools */
.template-tools {
  margin: 20px 16px;
  padding: 15px;
  background: #fdfdfd;
  border: 1px dashed #dcdcdc;
  border-radius: 6px;
}

.template-tools[hidden] {
  display: none;
}

.template-tools h3 {
  margin: 0 0 12px;
  font-size: 14px;
  color: #333;
}

.tool-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upload-field,
.text-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #555;
}

.upload-field input,
.text-field input {
  font-size: 14px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fbfbfb;
}

.text-field input:focus {
  border-color: var(--green-start);
  outline: none;
}
