/* 全局样式和设计系统 */
:root {
  --primary-blue: #4f46e5;
  --primary-light: #6366f1;
  --primary-dark: #3730a3;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --radius: 12px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
  background: linear-gradient(135deg, var(--gray-50) 0%, #e0e7ff 100%);
  color: var(--gray-800);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
}

/* Header 样式 - 全宽铺满 */
.app-header {
  display: block;
  padding: 0;
  margin: 0 -16px 0px -16px;
  width: calc(100% + 32px);
  min-height:62px ;
  position: relative;
  /* 使用顶部定义的三色变量做线性渐变背景，替代原有图片 */
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary-blue) 50%, var(--primary-light) 100%);
  background-size: cover;
  background-position: center center;
}

/* header 内容布局：图标占位 + 主、副标题 */
.app-header .header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center; /* 垂直居中 */
  justify-content: flex-start; /* 水平左对齐 */
  gap: 12px;
  padding: 16px;
}
.app-header .header-icon {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  flex: 0 0 56px;
}
.app-header .header-icon img{width:100%;height:100%;object-fit:cover}
.app-header .header-text { color: #fff; text-align: center }
.app-header .header-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
}
.app-header .header-subtitle {
  font-size: 12px;
  opacity: 0.95;
  margin-top: 4px;
}

/* 移动端适配：让头部内容在小屏幕上有侧边内边距，图标距离左侧有间距 */
@media (max-width: 480px) {
  .app-header {
    padding-left: 18px;
    padding-right: 18px;
  }
  .app-header .header-inner {
    padding: 12px 6px;
  }
  .app-header .header-icon {
    margin-left: 12px; /* 图标与左边保持更大的距离 */
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
  }
  .app-header .header-title { font-size: 16px }
  .app-header .header-subtitle { font-size: 11px }
}

.app-header .logo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 200px;
  border-radius: 0;
}

/* 首页导航网格 */
.nav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.nav-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fff 0%, var(--gray-50) 100%);
  padding: 24px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--gray-700);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 16px;
  position: relative;
  overflow: hidden;
}

.nav-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-light));
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.nav-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: var(--primary-blue);
}

.nav-card:hover::before {
  transform: scaleX(1);
}

.nav-card:active {
  transform: translateY(-2px);
}

/* 表单页面样式 */
.form-container {
  background: #fff;
  padding: 1rch;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200)
}

.form-header{
  display:block;
  height:140px;
  background-image: url('images/header.png');
  background-size: cover;
  background-position: center center;
  border-radius: 0;
  margin: 0 -16px 18px -16px;
  width: calc(100% + 32px);
  overflow:hidden;
  position:relative;
}
.form-header .logo-small{display:none}

.form-header h2 {
  font-size: 26px;
  color: var(--gray-900);
  font-weight: 600;
  margin: 0;
}

/* 表单输入样式 */
.signup-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.signup-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 500;
  color: var(--gray-700);
  font-size: 15px;
}

.signup-form input,
.signup-form select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 2px solid var(--gray-200);
  background: #fff;
  font-size: 16px;
  color: var(--gray-800);
  transition: all 0.2s ease;
}

.signup-form input:focus,
.signup-form select:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.signup-form input::placeholder {
  color: var(--gray-400);
}

/* 文件上传美化 */
.signup-form input[type="file"] {
  padding: 12px;
  background: var(--gray-50);
  border: 2px dashed var(--gray-300);
  cursor: pointer;
}

.signup-form input[type="file"]:hover {
  border-color: var(--primary-blue);
  background: rgba(79, 70, 229, 0.05);
}

/* 按钮样式 */
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  padding: 15px 18px;
  border-radius: 10px;
  border: 0;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  flex: 1;
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-light));
  color: #fff;
  box-shadow: var(--shadow);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn.primary:active {
  transform: translateY(0);
}

.btn:not(.primary) {
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}

.btn:not(.primary):hover {
  background: var(--gray-200);
}

/* 准考证样式 - 完全按照官方模板 */
.admit-container {
  padding: 20px 16px;
}

.admit-card {
  background: #fff;
  border: 2px solid #000;
  border-radius: 0;
  padding: 16px;
  margin: 0 auto;
  width: 100%;
  max-width: 760px;
  font-size: 12px;
  line-height: 1.3;
  position: relative;
  box-sizing: border-box;
}

.admit-header {
  text-align: center;
  margin-bottom: 16px;
}

.admit-title {
  font-size: 16px;
  font-weight: bold;
  color: #000;
  margin-bottom: 4px;
}

.admit-subtitle {
  font-size: 14px;
  font-weight: bold;
  color: #000;
}

/* 考生信息表格 */
.admit-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 12px;
  table-layout: auto;
}

.admit-table td {
  border: 1px solid #000;
  padding: 6px 8px;
  vertical-align: middle;
}

.photo-cell {
  width: 80px;
  text-align: center;
  vertical-align: middle;
}

.admit-photo {
  width: 70px;
  height: 90px;
  border: 1px solid #000;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #666;
  margin: 0 auto;
}

.label-cell {
  background: #f8f8f8;
  font-weight: bold;
  text-align: center;
  width: 100px;
}

.value-cell {
  text-align: center;
  min-width: 100px;
}

/* 考试科目表格 */
.subject-section {
  margin-bottom: 16px;
}

/* 考试安排样式 */
.subject-title{font-weight:700;margin-bottom:8px}
.subject-table{width:100%;border-collapse:collapse;font-size:12px;table-layout:auto}
.subject-table td{border:1px solid #000;padding:8px;text-align:center}
.subject-header td{background:#fff;font-weight:700}
.exam-reminder{display:flex;justify-content:space-between;align-items:center;margin-top:8px;padding:8px 12px;background:#fff;font-weight:700}
.exam-reminder-left{text-align:left}
.exam-reminder-right{text-align:right}


.subject-table tr:first-child + tr td {
  background: #f8f8f8;
  font-weight: bold;
}

/* 考生须知 */
.admit-notice {
  padding-top: 0px;
}

/* 表格响应容器，桌面端随屏幕放大，移动端可横向滚动 */
.table-responsive{overflow-x:auto}

@media (min-width: 900px){
  .admit-card{font-size:14px;padding:20px}
  .admit-table td, .subject-table td{padding:10px 14px}
}

.notice-title {
  font-size: 13px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 8px;
  color: #000;
}

.notice-content {
  font-size: 10px;
  line-height: 1.4;
  text-align: justify;
}

.notice-content p {
  margin-bottom: 6px;
  text-indent: 2em;
}

.admit-actions {
  text-align: center;
  margin-top: 24px;
}

/* 个人中心样式 */
.profile-container {
  padding: 20px 16px;
}

.profile-container h2 {
  font-size: 24px;
  color: var(--gray-900);
  margin-bottom: 24px;
  text-align: center;
}

.profile-container .record {
  background: #fff;
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.record-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.record-info h3 {
  font-size: 18px;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.record-info p {
  color: var(--gray-600);
  font-size: 14px;
}

.record-actions .btn {
  padding: 8px 16px;
  font-size: 14px;
  min-height: auto;
}

/* 成绩查询样式 */
.score-container {
  padding: 20px 16px;
}

.score-container h2 {
  font-size: 24px;
  color: var(--gray-900);
  margin-bottom: 24px;
  text-align: center;
}

.search-box {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 24px;
}

.search-box input {
  flex: 1;
  padding: 14px 16px;
  border-radius: 10px;
  border: 2px solid var(--gray-200);
  font-size: 16px;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.search-box .btn {
  padding: 14px 24px;
  white-space: nowrap;
}

.score-result {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.score-header {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--gray-100);
}

.score-header h3 {
  font-size: 20px;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.score-list {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.score-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--gray-50);
  border-radius: 8px;
  border: 1px solid var(--gray-200);
}

.score-subject {
  font-weight: 500;
  color: var(--gray-700);
}

.score-value {
  font-weight: 600;
  font-size: 18px;
  color: var(--primary-blue);
}

.score-total {
  text-align: center;
  padding: 16px;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-light));
  color: #fff;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 480px) {
  .container {
    padding: 12px;
  }
  
  .form-container {
    padding: 20px;
  }
  
  .form-header h2 {
    font-size: 22px;
  }
  
  .form-header .logo-small {
    width: 44px;
    height: 44px;
  }
  
  .admit-card {
    padding: 16px;
  }
  
  .nav-card {
    padding: 20px 12px;
    font-size: 15px;
  }
  .form-header{height:110px}
}

/* 通用工具类 */
.text-center { text-align: center; }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.mb-4 { margin-bottom: 16px; }
.mt-4 { margin-top: 16px; }

/* 个人记录样式 */
.record{background:#fff;border:1px solid var(--gray-200);padding:12px;border-radius:10px;margin-bottom:12px;display:flex;justify-content:space-between;align-items:flex-start}
.record-main{display:flex;flex-direction:column;gap:6px}
.record-row{display:flex;gap:12px;align-items:center}
.record-row .label{width:80px;color:var(--gray-600);font-weight:600}
.record-row .value{color:var(--gray-800)}
.record-actions{display:flex;flex-direction:column;gap:8px}
.record-actions .btn{min-width:110px}

@media (max-width:600px){
  .record{flex-direction:column;gap:12px}
  .record-actions{flex-direction:row}
}