/* 现代化样式 - 2024版 */
:root {
  --primary-color: #3498db;
  --primary-dark: #2980b9;
  --secondary-color: #2ecc71;
  --text-color: #333333;
  --light-text: #666666;
  --border-color: #e0e0e0;
  --background-color: #f9f9f9;
  --success-color: #2ecc71;
  --error-color: #e74c3c;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --border-radius: 6px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
  color: var(--text-color);
}

body {
  background-color: var(--background-color);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
}

/* 顶部导航栏 */
.sub_top {
  height: 60px;
  background: var(--primary-color);
  box-shadow: var(--shadow);
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.sub_top .title {
  color: white;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

.sub_top .back {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
}

.sub_top .back a {
  color: white;
  padding: 8px 12px;
  border-radius: var(--border-radius);
  background-color: rgba(255, 255, 255, 0.2);
  font-size: 14px;
}

.sub_top .back a:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

/* 主内容区 */
.main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px 60px;
}

/* 表单元素 */
.select {
  margin: 0 auto;
  width: 100%;
  max-width: 500px;
  margin-bottom: 15px;
}

.select select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: white;
  height: 48px;
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23666" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

.select select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.so_box {
  margin: 0 auto;
  width: 100%;
  max-width: 500px;
  margin-bottom: 15px;
  position: relative;
}

.so_box .txts {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  height: 48px;
  font-size: 16px;
  transition: all 0.3s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.so_box .txts:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.so_box .more {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.so_box .more img {
  height: 36px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 按钮样式 */
.so_boxes {
  margin: 0 auto;
  width: 100%;
  max-width: 500px;
  margin-bottom: 15px;
}

.buts {
  width: 100%;
  padding: 12px 15px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  height: 48px;
  text-align: center;
}

.buts:hover {
  background-color: var(--primary-dark);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

/* 说明文本 */
.so_boxed {
  margin: 0 auto;
  width: 100%;
  max-width: 500px;
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-color);
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--light-text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* 查询结果表格 */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px auto;
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

table caption {
  font-size: 1.8em;
  font-weight: bold;
  color: #e74c3c;
  padding: 15px;
  text-align: center;
  background-color: rgba(231, 76, 60, 0.05);
  border-bottom: 1px solid var(--border-color);
}

table td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--border-color);
}

table tr:last-child td {
  border-bottom: none;
}

table .r {
  font-weight: 600;
  background-color: rgba(52, 152, 219, 0.05);
  width: 30%;
}

table .span {
  color: var(--secondary-color);
}

/* 学生照片样式 */
.student-photo {
  background: white;
  padding: 15px;
  margin: 15px 0;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow);
}

.student-photo img {
  max-width: 200px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 底部样式 */
.foot {
  margin: 0 auto;
  height: 50px;
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  border-top: 1px solid var(--border-color);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  z-index: 100;
}

.foot .title {
  width: 100%;
  text-align: center;
  font-size: 14px;
  color: var(--light-text);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .main {
    padding: 0 10px 60px;
  }
  
  .sub_top {
    height: 50px;
  }
  
  .sub_top .title {
    font-size: 16px;
  }
  
  table {
    font-size: 14px;
  }
  
  table caption {
    font-size: 1.4em;
    padding: 10px;
  }
  
  table td {
    padding: 8px 10px;
  }
  
  .so_boxed {
    font-size: 13px;
    padding: 10px;
  }
}

/* 特殊状态样式 */
.error-border {
  border-color: var(--error-color) !important;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2) !important;
}

.success-border {
  border-color: var(--success-color) !important;
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2) !important;
}

/* 打印样式 */
@media print {
  .sub_top, .foot, .so_boxes, form {
    display: none;
  }
  
  .main {
    padding: 0;
  }
  
  table {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}