/* 1. 全局样式重置与基础配置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

body {
  background-color: #f5f7fa;
  color: #333;
  line-height: 1.8;-webkit-text-size-adjust: 100% !important;
text-size-adjust: 100% !important;
-moz-text-size-adjust: 100% !important;    font-size: 1.15rem;
}

a {
  text-decoration: none;
  color: #D90A16;
}

/* 2. 通用组件样式（去重合并重复定义） */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}

.card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 24px;
  margin-bottom: 24px;
}

.header {
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 20px;
  font-weight: 600;
  color: #D90A16;
  display: flex;
  align-items: center;
}

.logo i {
  margin-right: 8px;
  font-size: 24px;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav-item {
  color: #666;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}

.nav-item.active {
  color: #D90A16;
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #D90A16;
  border-radius: 3px;
}

.nav-item:hover {
  color: #D90A16;
}

.user-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f0f2f5;
}

/* 按钮样式（去重合并重复定义） */
button, .btn {
  cursor: pointer;
  border: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 16px;
  padding: 5px 15px;
}

.btn-primary {
  background-color: #D90A16;
  color: white;
}

.btn-primary:hover {
  background-color: #B30812;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(217, 10, 22, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(217, 10, 22, 0.2);
}

.btn-secondary {
  background-color: #f0f2f5;
  color: #333;
}

.btn-secondary:hover {
  background-color: #e5e9f2;
}

.btn-success {
  background-color: #00B42A;
  color: white;
}

.btn-success:hover {
  background-color: #009922;
}

.btn-warning {
  background-color: #FF7D00;
  color: white;
}

.btn-warning:hover {
  background-color: #E06A00;
}

.btn-danger {
  background-color: #D90A16;
  color: white;
}

.btn-danger:hover {
  background-color: #D83535;
}

.btn-lv {
  background-color: #00B42A;
  color: white;
}

.btn-lv:hover {
  background-color: #00B42A;
}

.btn-huang {
  background-color: #FF7D00;
  color: white;
}

.btn-huang:hover {
  background-color: #FF7D00;
}

.btn-block {
  width: 100%;
}

/* 表单样式（去重合并重复定义） */
.form-group {
  margin-bottom: 5px;
  text-align: left;
}

.form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #1D2129;
  font-size: 16px;
}

.form-control {
  width: 100%;
  padding: 10px 10px;
  border: 1px solid #E5E9F2;
  border-radius: 8px;
  font-size: 17px;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #D90A16;
  box-shadow: 0 0 0 3px rgba(217, 10, 22, 0.1);
}

.form-hint {
  font-size: 15px;
  color: #86909C;
  margin-top: 8px;
}

.form-row {
  display: flex;
  gap: 24px;
  margin-bottom:10px;
}

.form-col {
  flex: 1;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 20px;    margin-bottom: 80px;
}

/* 标签页样式（统一不同模块的tabs样式） */
.tabs, .login-tabs, .profile-tabs {
  display: flex;
  border-bottom: 1px solid #E5E9F2;
  margin-bottom: 20px;
}

.tab, .login-tab, .profile-tab {
  padding: 15px 10px;
      font-size: 1.05rem;
  font-weight: 500;
  color: #86909C;
  cursor: pointer;
  position: relative;
}

.tab.active, .login-tab.active, .profile-tab.active {
  color: #D90A16;
}

.tab.active::after, .login-tab.active::after, .profile-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #D90A16;
  border-radius: 3px;
}

/* 模态框样式（去重合并重复定义） */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background-color: white;
  border-radius: 12px;
  width: 96%;
  max-width: 500px;
  max-height: 92vh;
  overflow-y: auto;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.modal-backdrop.active .modal {
  transform: translateY(0);
}

.modal-header {
  padding:10px 15px;
  border-bottom: 1px solid #E5E9F2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 20px;
  font-weight: 600;
  color: #1D2129;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2.6rem;
  color: #86909C;
  cursor: pointer;
  padding: 0px; line-height: 0px;
}

.modal-body {
  padding: 14px;
  text-align: center; overflow: hidden;box-sizing: border-box;
}

.modal-icon {
  font-size: 64px;
  color: #00B42A;
  margin-bottom: 24px;
}

.modal-message {
  font-size: 18px;
  color: #1D2129;
  margin-bottom: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #E5E9F2;
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* 3. 页面容器与动画（去重合并） */
.page-container {
  min-height: calc(100vh - 180px);
  padding: 10px 10px;        padding-bottom: 100px;
}

.page {
  animation: fadeIn 0.5s ease;
}

.page.active {
  display: block;
}

.profile-content {
  display: none;
}

.profile-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* 动画定义（统一管理，避免重复） */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 4. 页面专属样式 */
/* 登录注册页面 */
.login-container {
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
}

.login-card {
  padding: 40px 32px;
}

.login-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1D2129;
}

.login-desc {
  color: #86909C;
  margin-bottom: 2px;
  font-size: 14px;
}

.qrcode-container {
  width: 220px;
  height: 220px;
  margin: 0 auto 5px;
  border: 1px solid #E5E9F2;
  border-radius: 8px;
  padding: 12px;
  background-color: white;
}

.qrcode {
  width: 100%;
  height: 100%;
  background-color: #f5f7fa;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #86909C;
}

.divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: #E5E9F2;
}

.divider span {
  padding: 0 16px;
  color: #86909C;
  font-size: 14px;
}

/* 首页样式 */
.banner {
  background: linear-gradient(135deg, #D90A16 0%, #B30812 100%);
  border-radius: 16px;
  padding: 60px 48px;
  color: white;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(50%, -50%);
}

.banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  width: 200px;
  height: 200px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  transform: translate(-50%, 50%);
}

.banner-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.banner-title {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.4;
}

.banner-desc {
  font-size: 18px;
  margin-bottom: 32px;
  opacity: 0.9;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.feature-card {
  padding: 28px;
  border-radius: 12px;
  background-color: white;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: rgba(217, 10, 22, 0.1);
  color: #D90A16;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.feature-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1D2129;
}

.feature-desc {
  color: #86909C;
  font-size: 14px;
}

.reservation-form {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 32px;
}

.form-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 24px;
  color: #1D2129;
  text-align: center;
}

/* 查找人员页面 */
.search-bar {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.search-input {
  flex: 1;
  padding: 14px 16px 14px 48px;
  border: 1px solid #E5E9F2;
  border-radius: 8px;
  font-size: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='%2386909C' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 16px center;
}

.search-input:focus {
  outline: none;
  border-color: #D90A16;
  box-shadow: 0 0 0 3px rgba(217, 10, 22, 0.1);
}

.staff-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.staff-card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.staff-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.staff-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid #f0f2f5;
}

.staff-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #1D2129;
}

.staff-position {
  color: #86909C;
  font-size: 14px;
  margin-bottom: 16px;
}

/* 个人中心页面 */
.profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 10px;
  padding-bottom: 24px;
  border-bottom: 1px solid #E5E9F2;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #f0f2f5;
}

.profile-info {
  flex: 1;
}

.profile-name {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #1D2129;
}

.profile-position {
  color: #86909C;
  font-size: 16px;
  margin-bottom: 8px;
}

.profile-actions {
  display: flex;
  gap: 16px;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.info-item {
  background-color: white;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.info-label {
  font-size: 14px;
  color: #86909C;
  margin-bottom: 4px;
}

.info-value {
  font-size: 16px;
  font-weight: 500;
  color: #1D2129;
}

/* 资料完善页面 */
.page-title {
  font-size: 28px;
  font-weight: 600;
  color: #1D2129;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-title i {
  color: #D90A16;
  font-size: 22px;
}

/* 头像上传区域 */
.avatar-upload {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 10px;
  padding-bottom: 20px;
  border-bottom: 1px solid #E5E9F2;
}

.avatar-preview {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #f0f2f5;
}

.avatar-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #f0f2f5;
  color: #1D2129;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-btn:hover {
  background-color: #e5e9f2;
}

.upload-btn i {
  color: #D90A16;
}

#avatar-input {
  display: none;
}

/* 性别选择 */
.gender-select {
  display: flex;
  gap: 24px;
  align-items: center;
}

.gender-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.gender-radio {
  width: 25px;
  height: 25px;
  accent-color: #D90A16;
}

/* 卡片标题 */
.card-title {
  font-size: 20px;
  font-weight: 600;
  color: #1D2129;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid #E5E9F2;
}

/* 密码强度提示 */
.password-strength {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}

.strength-bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background-color: #E5E9F2;
}

.strength-bar.active {
  background-color: #D90A16;
}

.strength-text {
  font-size: 13px;
  color: #86909C;
  margin-top: 8px;
}

/* 预约记录页面 */
.record-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.record-item {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 16px;
  transition: transform 0.3s ease;
}

.record-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

.record-title {
  font-size: 18px;
  font-weight: 600;
  color: #1D2129;
}

.record-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.status-pending {
  background-color: rgba(255, 125, 0, 0.1);
  color: #FF7D00;
}

.status-confirmed {
  background-color: rgba(0, 180, 42, 0.1);
  color: #00B42A;
}

.status-cancelled {
  background-color: rgba(245, 63, 63, 0.1);
  color: #D90A16;
}

.record-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
  margin-bottom: 5px;
}

.record-detail {
     font-size: 1.05rem;
}

.detail-label {
  color: #86909C;
  margin-right: 1px;
}

.detail-value {
  color: #1D2129;
  font-weight: 500;
}

.record-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* 门岗端页面 */
.gate-header {
  background-color: #D90A16;
  color: white;
  padding: 24px 0;
  text-align: center;
  border-radius: 12px 12px 0 0;
  margin-bottom: 24px;
}

.gate-title {
  font-size: 28px;
  margin-bottom: 8px;
  opacity: 0.9;
}

.gate-date {
  font-size: 26px;
  font-weight: 600;
}

.visitor-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.visitor-item {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 24px;
  border-left: 4px solid #D90A16;
}

.visitor-name {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 18px;
  color: #1D2129;
}

.visitor-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
  font-size: 22px;
}

.visitor-label {
  color: #86909C;
  margin-right: 8px;
}

.visitor-value {
  color: #1D2129;
  font-weight: 500;
}

.visitor-verify {
  font-size: 26px;
  font-weight: 600;
  color: #00B42A;
  text-align: center;
  margin-top: 25px;
}

/* 5. 工具类样式（加载、空状态） */
.loading {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(217, 10, 22, 0.3);
  border-radius: 50%;
  border-top-color: #D90A16;
  animation: spin 1s ease-in-out infinite;
}

.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: #86909C;
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
}

.empty-desc {
  font-size: 14px;
  margin-bottom: 24px;
}

/* 6. 客服模块（去重合并重复定义） */
.customer-service {
  position: fixed;
  bottom: 120px;
  right: 10px;
  z-index: 90;
}

.service-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #D90A16;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(217, 10, 22, 0.3);
  transition: all 0.3s ease;
}

.service-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(217, 10, 22, 0.4);
}

.service-panel {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 300px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  padding: 24px;
  display: none;
}

.service-panel.active {
  display: block;
  animation: fadeInUp 0.3s ease;
}

.service-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #1D2129;
}

.service-contact {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 8px;
  background-color: #f5f7fa;
  margin-bottom: 16px;
}

.service-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(217, 10, 22, 0.1);
  color: #D90A16;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.service-info {
  flex: 1;
}

.service-label {
  font-size: 14px;
  color: #86909C;
  margin-bottom: 4px;
}

.service-value {
  font-size: 16px;
  font-weight: 500;
  color: #1D2129;
}

/* 7. 底部导航（移动端）（去重合并） */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
  padding: 12px 0;
  z-index: 99;
}

.bottom-nav-list {
  display: flex;
  justify-content: space-around;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #86909C;
  font-size: 12px;
}

.bottom-nav-item.active {
  color: #D90A16;
}

.bottom-nav-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

/* 8. 响应式设计（统一合并断点，优化适配逻辑） */
@media (max-width: 768px) {
  /* 基础适配 */
  .gender-option {
    margin-top: 15px; margin-bottom: 15px;
}

.gender-option span{font-size:1.15rem}

  .gender-select {
    display:block;
}
  .record-details {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))!important;
  
}
  
  .bottom-nav {
    display: block;
  }

  .page-container {
    padding-bottom: 80px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  /* 组件适配 */
  .banner {
    padding: 40px 24px;
  }

  .banner-title {
    font-size: 28px;
  }

  .banner-desc {
    font-size: 16px;
  }

  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 5px;
  }

  .profile-actions {
    justify-content: center;
  }

  /* 页面专属适配 */
  .avatar-upload {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .avatar-actions {
    align-items: center;
  }

  .page-title {
    font-size: 20px;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }

  .visitor-name {
    font-size: 26px;
  }

  .visitor-info {
    font-size: 19px;
    grid-template-columns: 1fr; /* 移动端单列显示 */    gap: 10px;
  }
  
  
  .card {
    padding: 10px;
}
  
  .visitor-item {
    padding: 10px;
}
  
}