* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.site-header {
  width: 100%;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 25px;
  background: #fff;
}

.logo img {
  height: 50px;
}

.search-box {
  flex: 1;
  max-width: 500px;
  margin: 0 20px;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ccc' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E") no-repeat center;
  opacity: 0.5;
  pointer-events: none;
}

.search-box input {
  width: 100%;
  height: 40px;
  padding: 0 15px 0 40px;
  border: 1px solid #ddd;
  border-radius: 4px;
  outline: none;
}

.search-box input::placeholder {
  color: #ccc;
}

/* 红色渐变版本 */
.user-bar a.register {
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #ff4d4d, #cc0000);
  padding: 8px 20px;
  border-radius: 40px;
  transition: all 0.2s ease;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(204,0,0,0.3);
  border: none;
}

.user-bar a.register:hover {
  background: linear-gradient(135deg, #ff6666, #dd0000);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(204,0,0,0.4);
}

.user-bar a.register:active {
  transform: translateY(0px);
}

.user-info-area {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* 考试信息显示区域 */
.exam-info {
  font-size: 13px;
  color: #333;
  background: #f5f5f5;
  padding: 5px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
}

.edit-icon {
  width: 18px;
  height: 18px;
  opacity: 0.6;
  cursor: pointer;
  margin-left: 5px;
}

.edit-icon:hover {
  opacity: 1;
}

/* VIP/SVIP 徽章容器和悬浮卡片 */
.vip-badge-container, .svip-badge-container {
  position: relative;
  display: inline-block;
}

.vip-link {
  display: block;
  font-size: 14px;
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.svip-link {
  display: block;
  font-size: 14px;
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vip-link.vip-gray {
  color: #999;
  background: #f0f0f0;
}

.vip-link.vip-red {
  color: #fff;
  background: #ff4d4d;
}

.svip-link.svip-gray {
  color: #999;
  background: #f0f0f0;
}

.svip-link.svip-gold {
  color: #fff;
  background: linear-gradient(135deg, #ffd700, #ffaa00);
}

/* VIP悬浮卡片 */
.vip-hover-card, .svip-hover-card {
  position: absolute;
  top: 45px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  z-index: 1001;
  overflow: hidden;
  animation: fadeInUp 0.2s ease;
}

.vip-hover-card::before, .svip-hover-card::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #fff;
}

.vip-card-content, .svip-card-content {
  padding: 16px;
  text-align: center;
}

.vip-card-title {
  font-size: 18px;
  font-weight: bold;
  color: #ff4d4d;
  margin-bottom: 8px;
}

.svip-card-title {
  font-size: 18px;
  font-weight: bold;
  color: #ffaa00;
  margin-bottom: 8px;
}

.vip-card-price, .svip-card-price {
  font-size: 24px;
  font-weight: bold;
  color: #ff7a00;
  margin-bottom: 12px;
}

.vip-card-feature, .svip-card-feature {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 15px;
  padding: 0 8px;
}

.vip-card-btn {
  width: 100%;
  padding: 10px;
  background: #ff4d4d;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.svip-card-btn {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.vip-card-btn:hover {
  background: #cc0000;
}

.svip-card-btn:hover {
  opacity: 0.9;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* 用户头像 */
.user-avatar {
  position: relative;
  cursor: pointer;
}

.user-avatar img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

/* ==================== 下拉菜单样式（增强版） ==================== */
.user-dropdown {
  position: absolute;
  top: 40px;
  right: 0;
  width: 320px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  z-index: 1000;
  overflow: hidden;
  animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  right: 15px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #fff;
}

.dropdown-content {
  padding: 0;
}

/* 手机号显示区域 */
.dropdown-phone {
  padding: 14px 16px;
  font-size: 14px;
  color: #333;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
  font-weight: 500;
}

/* 会员按钮行 - 桔红色背景，两个按钮在一行 */
.dropdown-vip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #ff7a00;
  margin: 0;
}

.vip-btn, .svip-btn {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid rgba(255,255,255,0.3);
}

.vip-btn:hover, .svip-btn:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.02);
  border-color: rgba(255,255,255,0.6);
}

/* 菜单项行 - 四个选项用 | 分隔 */
.dropdown-menu-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 14px 16px;
  background: #fff;
}

.menu-item {
  font-size: 13px;
  color: #999;
  cursor: pointer;
  transition: color 0.2s ease;
}

.menu-item:hover {
  color: #ff7a00;
}

.menu-separator {
  font-size: 13px;
  color: #ddd;
  margin: 0 10px;
}

/* ==================== 模态框样式 ==================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-box {
  width: 360px;
  background: #fff;
  border-radius: 12px;
  padding: 25px 20px;
  position: relative;
  margin: 0 auto;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-close {
  position: absolute;
  right: 15px;
  top: 12px;
  font-size: 22px;
  cursor: pointer;
  color: #999;
}

.modal-close:hover {
  color: #333;
}

.login-tabs {
  display: flex;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

.login-tabs .tab {
  font-size: 16px;
  font-weight: bold;
  padding: 0 20px 8px 0;
  cursor: pointer;
  color: #999;
}

.login-tabs .tab.active {
  color: #333;
  border-bottom: 2px solid #ff7a00;
}

.login-panel {
  display: none;
}

.login-panel.active {
  display: block;
}

.input-item {
  margin-bottom: 14px;
}

.input-item input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  outline: none;
  font-size: 14px;
}

.input-item input:focus {
  border-color: #ff7a00;
  box-shadow: 0 0 0 2px rgba(255,122,0,0.1);
}

.code-row {
  display: flex;
  gap: 8px;
}

.code-row input {
  flex: 1;
}

.code-btn {
  width: 110px;
  height: 42px;
  border: 1px solid #ff7a00;
  background: #fff;
  color: #ff7a00;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.code-btn:hover {
  background: #ff7a00;
  color: #fff;
}

.login-btn {
  width: 100%;
  height: 42px;
  background: #ff7a00;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.2s;
}

.login-btn:hover {
  background: #e66a00;
}

.login-footer {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #999;
}

.links a {
  color: #ff7a00;
  text-decoration: none;
  margin: 0 3px;
}

/* 简单模态框 */
.simple-modal-box {
  width: 380px;
  background: #fff;
  border-radius: 12px;
  padding: 24px 22px;
  position: relative;
  margin: 0 auto;
  animation: modalFadeIn 0.3s ease;
}

.simple-modal-close {
  position: absolute;
  right: 18px;
  top: 15px;
  font-size: 22px;
  cursor: pointer;
  color: #999;
  line-height: 1;
}

.simple-modal-close:hover {
  color: #333;
}

.simple-modal-title {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  text-align: left;
}

.simple-input-group {
  margin-bottom: 12px;
}

.simple-input-group input,
.simple-input-group select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  outline: none;
  font-size: 14px;
}

.simple-input-group input:focus,
.simple-input-group select:focus {
  border-color: #ff7a00;
  box-shadow: 0 0 0 2px rgba(255,122,0,0.1);
}

.code-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.code-group input {
  flex: 1;
}

.simple-code-btn {
  width: 110px;
  height: 42px;
  border: 1px solid #ff7a00;
  background: #fff;
  color: #ff7a00;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.simple-code-btn:hover {
  background: #ff7a00;
  color: #fff;
}

.simple-code-btn:disabled {
  border-color: #ffc494;
  color: #ffc494;
  background: #fff;
  cursor: not-allowed;
}

.simple-confirm-btn {
  width: 100%;
  height: 42px;
  background: #ff7a00;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
}

.simple-confirm-btn:hover {
  background: #e66a00;
}

.simple-modal-footer {
  margin-top: 12px;
  text-align: right;
  font-size: 14px;
  color: #999;
}

.simple-modal-footer a {
  color: #ff7a00;
  text-decoration: none;
}

/* 选科样式 */
.subject-select {
  margin: 14px 0 10px 0 !important;
  padding: 12px 0 !important;
  border-top: 1px solid #f5f5f5;
}

.subject-title {
  font-size: 14px !important;
  color: #555 !important;
  margin: 0 0 8px 0 !important;
  font-weight: 500 !important;
}

.radio-group,
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px !important;
  margin-bottom: 12px !important;
}

.radio-item,
.checkbox-item {
  display: inline-flex;
  align-items: center;
  font-size: 14px !important;
  color: #666;
  cursor: pointer;
  padding: 4px 2px;
}

.radio-item input,
.checkbox-item input {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  accent-color: #ff7a00;
  cursor: pointer;
}

.subject-tip {
  font-size: 12px;
  color: #ff7a00;
  margin-top: 6px;
}

/* ==================== 导航栏样式 ==================== */
.nav-personal-wrapper {
  display: flex;
  align-items: center;
  background: #ff7a00;
}

.nav-container {
  flex: 1;
}

.nav-menu ul {
  display: flex;
  justify-content: center;
  list-style: none;
}

.nav-menu ul li {
  margin: 0 22px;
}

.nav-menu ul li a {
  display: block;
  height: 50px;
  line-height: 50px;
  color: #fff;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.2s;
}

.nav-menu ul li a.active,
.nav-menu ul li a:hover {
  border-bottom: 2px solid #fff;
}

.personal-center {
  width: 120px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.personal-center a {
  color: #fff;
  font-size: 16px;
  text-decoration: none;
}

/* ==================== 响应式样式 ==================== */
@media (max-width: 992px) {
  .header-top {
    padding: 12px 20px;
  }
  .logo img {
    height: 40px;
  }
  .search-box {
    max-width: 350px;
    margin: 0 15px;
  }
  .nav-menu ul li {
    margin: 0 15px;
  }
  .nav-menu ul li a {
    font-size: 16px;
    height: 45px;
    line-height: 45px;
  }
  .personal-center {
    width: 100px;
    height: 45px;
  }
}

@media (max-width: 768px) {
  .header-top {
    flex-wrap: wrap;
    padding: 10px 15px;
    gap: 10px;
  }
  .logo {
    order: 1;
  }
  .logo img {
    height: 35px;
  }
  .search-box {
    order: 3;
    max-width: 100%;
    margin: 0;
  }
}

/* ==================== 成绩修改弹窗 - 单选按钮和复选框大小调整 ==================== */

/* 成绩修改弹窗内的单选按钮和复选框整体容器 */
#editScoreModal .simple-input-group {
  margin-bottom: 16px;
}

/* 统一缩小单选按钮和复选框的尺寸 */
#editScoreModal input[type="radio"],
#editScoreModal input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  margin-right: 6px !important;
  accent-color: #ff7a00;
  cursor: pointer;
  flex-shrink: 0;
}

/* 单招十大类网格布局 - 优化显示 */
#singleRecruitPanel .grid-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px 15px;
  margin-top: 8px;
}

#singleRecruitPanel .grid-item {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  padding: 4px 0;
}

#singleRecruitPanel .grid-item input[type="radio"] {
  width: 14px !important;
  height: 14px !important;
  margin-right: 8px !important;
}

/* 全国统考再选科目复选框组 */
#nationwidePanel .checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 8px;
}

#nationwidePanel .checkbox-group label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  color: #333;
}

/* 八类细分科目单选按钮组 */
#edit_eight_category_group .radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 8px;
}

#edit_eight_category_group .radio-group label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  color: #333;
}

/* 考试类型行 */
.exam-type-row {
  display: flex;
  gap: 30px;
  margin: 10px 0;
}

.exam-type-row label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  color: #333;
}

/* 省份年份行 */
.province-year-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.province-year-row select {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}

.province-year-row select:focus {
  border-color: #ff7a00;
  box-shadow: 0 0 0 2px rgba(255,122,0,0.1);
}

/* 表单标签样式 */
.form-label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 10px;
}

/* 提示文字 */
.hint-text {
  font-size: 12px;
  color: #ff7a00;
  margin-top: 6px;
}

/* 成绩位次输入框 */
.score-rank-row {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.score-rank-row .simple-input-group {
  flex: 1;
  margin-bottom: 0;
}

/* 响应式 - 手机端调整 */
@media (max-width: 576px) {
  #singleRecruitPanel .grid-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 12px;
  }
  
  .exam-type-row {
    gap: 15px;
    flex-wrap: wrap;
  }
  
  .province-year-row {
    flex-direction: column;
    gap: 10px;
  }
  
  .score-rank-row {
    flex-direction: column;
    gap: 10px;
  }
  
  #nationwidePanel .checkbox-group {
    gap: 12px;
  }
}

/* ==================== 开通服务弹窗样式 ==================== */
.open-service-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 10001;
  align-items: center;
  justify-content: center;
}

.open-service-modal .modal-content {
  background: #fff;
  border-radius: 16px;
  width: 420px;
  max-width: 90%;
  overflow: hidden;
  animation: slideUp 0.3s ease;
}

.open-service-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: linear-gradient(135deg, #ff7a00, #e66a00);
  color: #fff;
}

.open-service-modal .modal-header h3 {
  margin: 0;
  font-size: 18px;
}

.open-service-modal .modal-close {
  font-size: 24px;
  cursor: pointer;
  opacity: 0.8;
}

.open-service-modal .modal-close:hover {
  opacity: 1;
}

.open-service-modal .modal-body {
  padding: 24px;
}

.open-service-modal .price-info {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.open-service-modal .original-price {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
}

.open-service-modal .final-price {
  font-size: 20px;
  font-weight: bold;
  color: #e74c3c;
  margin-top: 8px;
}

.open-service-modal .discount-info {
  color: #27ae60;
  font-size: 14px;
  margin-top: 5px;
}

.open-service-modal .input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.open-service-modal .input-group input {
  flex: 1;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
}

.open-service-modal .apply-coupon-btn {
  padding: 0 20px;
  background: #fff;
  border: 1px solid #ff7a00;
  border-radius: 8px;
  color: #ff7a00;
  cursor: pointer;
  transition: all 0.2s;
}

.open-service-modal .apply-coupon-btn:hover {
  background: #ff7a00;
  color: #fff;
}

.open-service-modal .coupon-msg {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 15px;
}

.open-service-modal .coupon-msg.success {
  background: #d4edda;
  color: #155724;
}

.open-service-modal .coupon-msg.error {
  background: #f8d7da;
  color: #721c24;
}

.open-service-modal .modal-tip {
  font-size: 12px;
  color: #999;
  margin-top: 15px;
  text-align: center;
}

.open-service-modal .modal-footer {
  display: flex;
  gap: 12px;
  padding: 0 24px 24px;
}

.open-service-modal .cancel-btn {
  flex: 1;
  height: 44px;
  background: #f0f0f0;
  border: none;
  border-radius: 8px;
  color: #666;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.open-service-modal .cancel-btn:hover {
  background: #e0e0e0;
}

.open-service-modal .confirm-btn {
  flex: 1;
  height: 44px;
  background: #ff7a00;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.open-service-modal .confirm-btn:hover {
  background: #e66a00;
}

/* ==================== 支付二维码弹窗样式 ==================== */
.service-payment-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 10002;
  align-items: center;
  justify-content: center;
}

.service-payment-modal .modal-content {
  background: #fff;
  border-radius: 16px;
  width: 380px;
  max-width: 90%;
  overflow: hidden;
  animation: slideUp 0.3s ease;
}

.service-payment-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: linear-gradient(135deg, #ff7a00, #e66a00);
  color: #fff;
}

.service-payment-modal .modal-header h3 {
  margin: 0;
  font-size: 18px;
}

.service-payment-modal .modal-close {
  font-size: 24px;
  cursor: pointer;
  opacity: 0.8;
}

.service-payment-modal .modal-close:hover {
  opacity: 1;
}

.service-payment-modal .modal-body {
  padding: 24px;
  text-align: center;
}

.service-payment-modal .pay-qrcode {
  display: flex;
  justify-content: center;
  margin: 10px 0;
}

.service-payment-modal .pay-amount {
  font-size: 18px;
  font-weight: bold;
  color: #e74c3c;
  margin: 15px 0;
}

.service-payment-modal .pay-order-no {
  font-size: 12px;
  color: #999;
  margin-bottom: 10px;
  word-break: break-all;
}

.service-payment-modal .pay-tip {
  font-size: 13px;
  color: #666;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}