body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #0a001f, #1e0045);
  color: #e0e0e0;
}

header {
  text-align: center;
  padding: 25px 0;
  background: rgba(20, 0, 50, 0.8);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

header h1 {
  font-size: 2.2em;
  color: #00ffff;
  margin: 0;
  text-shadow: 0 0 10px #00ffff;
}

header h2 {
  color: #ffd700;
  font-weight: 400;
  margin: 5px 0 0 0;
  text-shadow: 0 0 8px #ffd700;
}

.school-logo {
  width: 60px; /* 调整 logo 大小 */
  height: 60px;
  margin-bottom: 10px; /* 与标题保持距离 */
  border-radius: 50%; /* 如果需要圆形 */
  object-fit: cover;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.container {
  display: flex;
  justify-content: center;
  padding: 40px;
}

.input-section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 30px;
  width: 360px;
  backdrop-filter: blur(5px);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.input-section h2 {
  text-align: center;
  color: #00ffff;
  margin-bottom: 20px;
}

label {
  color: #ffd700;
  display: block;
  margin-bottom: 5px;
}

input[type="text"], input[type="date"], input[type="file"] {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  outline: none;
}

button {
  width: 100%; /* 默认宽度 */
  margin-top: 10px;
  padding: 12px;
  background: #00ffff;
  border: none;
  border-radius: 8px;
  color: #000;
  font-size: 1.1em;
  cursor: pointer;
  transition: 0.3s;
}

.export-button { /* 导出按钮的缩小样式 */
  width: auto; /* 自动宽度 */
  padding: 12px 30px; /* 调整内边距 */
  display: block; /* 保持块级元素特性 */
  margin-left: auto; /* 居中 */
  margin-right: auto; /* 居中 */
}

button:hover {
  background: #fff;
  box-shadow: 0 0 15px #00ffff;
}

/* === 学生证样式 === */
.id-card {
  width: 460px;
  height: 270px;
  border-radius: 15px;
  background: linear-gradient(135deg, #0044cc, #001233);
  color: white;
  padding: 20px 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
}

.id-card-header {
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.id-card-header .school-logo-card { /* 学生证内部的 logo 样式 */
  width: 50px;
  height: 50px;
  margin-right: 10px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 8px #ffd700;
}

.id-card-header h3 {
  margin: 0;
  font-size: 1.1em;
  color: #00ffff;
}

.id-card-header p {
  margin: 0;
  font-size: 0.9em;
  color: #ccc;
}

.id-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.photo-box {
  width: 110px;
  height: 140px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #ffd700;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255,255,255,0.1);
}

.photo-preview-wrapper .photo-preview { /* 确保 index.html 中的预览图片不显示 */
  display: none;
}

.photo-preview-wrapper .photo-placeholder-icon { /* 确保 index.html 中的占位符始终显示 */
  display: block;
}

.photo-box img { /* export.html 中的图片 */
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none; /* 默认隐藏，由 JS 控制显示 */
}

#card-photo-placeholder { /* export.html 中的占位符 */
  color: #ffd700;
  font-size: 3em;
}

.info-box {
  flex: 1;
  margin-left: 20px;
}

.info-box p {
  margin: 6px 0;
  font-size: 0.9em;
}

.info-box strong {
  color: #00ffff;
}

footer {
  text-align: center;
  margin: 30px 0;
  color: #777;
}
