/* 全局重置+基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft Yahei", sans-serif;
}
body {
  background-color: #f0f7ff;
  color: #333;
  min-height: 100vh;
}
a {
  text-decoration: none;
  color: #1e88e5;
}
/* 按钮样式（蓝色主按钮+绿色成功+红色危险+退出按钮） */
.btn {
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}
.primary-btn {
  background-color: #1e88e5;
  color: #fff;
}
.primary-btn:hover {
  background-color: #1976d2;
  box-shadow: 0 4px 12px rgba(30, 136, 229, 0.3);
}
.success-btn {
  background-color: #2ecc71;
  color: #fff;
}
.success-btn:hover {
  background-color: #27ae60;
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}
.danger-btn {
  background-color: #e74c3c;
  color: #fff;
}
.danger-btn:hover {
  background-color: #c0392b;
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}
.logout-btn {
  background-color: #64b5f6;
  color: #fff;
  padding: 8px 16px;
  font-size: 14px;
}
.logout-btn:hover {
  background-color: #42a5f5;
}
/* 表单通用样式 */
.form-box {
  width: 100%;
  max-width: 450px;
  margin: 50px auto;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  border-top: 5px solid #1e88e5;
}
.form-item {
  margin-bottom: 20px;
  width: 100%;
}
.form-item label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #2d3748;
}
.form-item input, .form-item select, .form-item textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 15px;
  transition: border 0.3s;
}
.form-item input:focus, .form-item select:focus, .form-item textarea:focus {
  outline: none;
  border-color: #1e88e5;
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}
/* 记住密码+自动登录 样式 */
.remember-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 14px;
}
.remember-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.remember-item input {
  width: 16px;
  height: 16px;
  cursor: pointer;
}
/* 页面头部通用样式 */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  background: #fff;
  border-bottom: 1px solid #e3f2fd;
  margin-bottom: 30px;
}
.page-header h2 {
  color: #1e88e5;
  font-weight: 600;
}
/* 登录页专属样式 */
.login-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}
.login-title {
  text-align: center;
  margin-bottom: 30px;
  color: #1e88e5;
  font-size: 24px;
}
/* 大屏展示页（四分屏）专属样式 - 适配电视全屏，自动展示所有内容 */
.screen-wrap {
  width: 100vw;
  height: 100vh;
  padding: 0;
  margin: 0;
  background: #0f172a;
  color: #fff;
  overflow: hidden;
}
.screen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  width: 100%;
  height: 100%;
  gap: 10px;
  padding: 10px;
}
.screen-card {
  background: rgba(14, 29, 52, 0.8);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid #1e88e5;
}
.card-1 .notice-title {font-size: 28px;color: #64b5f6;margin-bottom: 15px;}
.card-1 .notice-num {font-size: 60px;font-weight: 700;color: #fff;}
.card-2 .notice-title {font-size: 28px;color: #64b5f6;margin-bottom: 15px;}
.card-2 .notice-num {font-size: 60px;font-weight: 700;color: #fff;}
.card-3 {padding: 0;overflow: hidden;}
.carousel {width: 100%;height: 100%;position: relative;}
.carousel-item {width: 100%;height: 100%;object-fit: cover;display: none;}
.carousel-item.active {display: block;}
.card-4 .scenic-logo {width: 120px;height: 120px;object-fit: contain;margin-bottom: 15px;}
.card-4 .scenic-name {font-size: 36px;color: #1e88e5;margin-bottom: 20px;font-weight: 600;}
.card-4 .scenic-notice {font-size: 20px;color: #bbdefb;line-height: 1.5;}
/* 管理员页面专属样式 */
.admin-wrap {padding: 20px;}
.admin-module {background: #fff;padding: 25px;border-radius: 10px;box-shadow: 0 2px 10px rgba(0,0,0,0.05);margin-bottom: 30px;}
.admin-module h3 {color: #1e88e5;margin-bottom: 20px;padding-bottom: 10px;border-bottom: 2px solid #e3f2fd;}
.banner-preview {display: flex;flex-wrap: wrap;gap: 15px;margin: 15px 0;}
.banner-item {width: 120px;height: 80px;border-radius: 6px;overflow: hidden;border: 1px solid #d1d5db;}
.banner-item img {width: 100%;height: 100%;object-fit: cover;}
.user-table {width: 100%;border-collapse: collapse;margin-top: 15px;}
.user-table th, .user-table td {padding: 12px 15px;text-align: left;border-bottom: 1px solid #e3f2fd;}
.user-table th {background-color: #e3f2fd;color: #1e88e5;}
/* 售票/检票页 专属样式（模拟输入+回车确认） */
.card-operate-wrap {max-width: 600px;margin: 0 auto;background: #fff;padding: 35px;border-radius: 12px;box-shadow: 0 6px 20px rgba(0,0,0,0.1);border-top: 5px solid #1e88e5;}
.operate-tips {font-size: 18px;text-align: center;margin: 25px 0;padding: 15px;border-radius: 8px;background-color: #e3f2fd;color: #1976d2;min-height: 50px;line-height: 1.5;}
.btn-group {display: flex;gap: 15px;justify-content: center;margin-top: 20px;}
.btn:disabled {background-color: #90caf9;cursor: not-allowed;box-shadow: none;}
/* 自动登出提示框 */
.tips-modal {position: fixed;top: 50%;left: 50%;transform: translate(-50%, -50%);background: #fff;padding: 25px 30px;border-radius: 10px;box-shadow: 0 4px 20px rgba(0,0,0,0.2);z-index: 9999;border-top: 3px solid #1e88e5;display: none;}
.tips-modal p {color: #333;font-size: 16px;text-align: center;margin-bottom: 20px;}