:root {
  --primary-color: #F59E0B; /* Brand Orange */
  --primary-hover: #D97706;
  --text-primary: #1F2937;
  --text-secondary: #6B7280;
  --bg-color: #F3F4F6;
  --divider-color: #E5E7EB;
}

body {
  margin: 0;
  padding: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  overflow: hidden;
  height: 100vh;
  user-select: none;
}

/* 布局容器 */
.split-container {
  display: flex;
  width: 100%;
  height: 100%;
}

/* 左侧面板 */
.left-panel {
  flex: 1.5;
  position: relative;
  background: url('qiantai.png') center/cover no-repeat;
}

/* 渐变遮罩：从右向左的白色渐变，实现“中间白色渐变过渡到右边白色背景”的效果
   实际上是左侧图片的右边缘渐变透明到白色 */
.gradient-overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%; /* 覆盖右半部分 */
  height: 100%;
  background: linear-gradient(to right, transparent, #ffffff 90%);
  pointer-events: none;
}

/* 右侧面板 */
.right-panel {
  flex: 0.8;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 10; /* 确保在渐变之上 */
}

.content-wrapper {
  padding: 60px;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* 头部区域 */
.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 20px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
}

.logo-img {
  height: 50px;
}

#logo-text {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  margin: 0;
  display: none;
}

.datetime-wrapper {
  text-align: right;
  color: var(--text-secondary);
}

.time {
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
  color: var(--text-primary);
}

.date {
  font-size: 14px;
  margin-top: 5px;
}

/* 主内容区 */
.main-content {
  flex: 1;
  display: flex;
  justify-content: center; /* 水平居中 */
  align-items: center;     /* 垂直居中 */
}

.login-style-card {
  width: 100%;
  max-width: 360px; /* 更窄一点，模仿手机/登录框 */
  text-align: left; /* 左对齐更现代，或者居中也可以，这里试试左对齐配合大标题 */
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* 左对齐 */
}

/* 模拟用户头像 */
.user-avatar {
  width: 80px;
  height: 80px;
  background-color: #f0f2f5;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
  color: var(--primary-color);
}

.user-avatar svg {
  width: 48px;
  height: 48px;
}

.welcome-title {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--text-primary);
  line-height: 1.2;
}

.welcome-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0 0 40px 0;
  font-weight: 400;
}

/* 启动按钮 - 模仿输入框/大按钮风格 */
.btn-launch {
  width: 100%;
  height: 64px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  border: none;
  border-radius: 32px; /* 全圆角 */
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 10px 20px rgba(0, 102, 204, 0.2);
  position: relative;
  overflow: hidden;
}

.btn-launch:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(0, 102, 204, 0.3);
  filter: brightness(1.05);
}

.btn-launch:active {
  transform: translateY(0);
  box-shadow: 0 5px 10px rgba(0, 102, 204, 0.2);
}

.btn-text {
  font-size: 20px;
  color: white;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.btn-icon-wrapper {
  width: 32px;
  height: 32px;
  color: white;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.btn-launch:hover .btn-icon-wrapper {
  transform: translateX(4px);
}

.btn-icon-wrapper svg {
  width: 18px;
  height: 18px;
}

/* 底部栏 */
.footer {
  /* 移除上边框，更极简 */
  border-top: none;
  padding-top: 0;
  margin-top: 0;
  padding-bottom: 20px; /* 离底部有点距离 */
  display: flex;
  justify-content: center;
}

.system-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px; /* 更大的间距 */
}

.btn-text-icon {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column; /* 图标在上，文字在下 */
  align-items: center;
  gap: 6px;
  color: #999; /* 更浅的颜色，不抢视觉 */
  font-size: 12px;
  padding: 10px;
  border-radius: 8px;
  transition: all 0.2s;
}

.btn-text-icon:hover {
  background-color: #f5f5f5;
  color: var(--text-primary);
}

.btn-text-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.5px;
}

.divider {
  display: none; /* 移除分割线 */
}

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

/* 模态框 (高端明亮风格) */
.modal-overlay {
  display: flex; /* 改为 flex，默认隐藏由 visibility 或 opacity 控制，或者用 js 切换 class */
  visibility: hidden; /* 默认隐藏 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  z-index: 2000; /* 提高 z-index 确保在最上层 */
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.3s;
}

.modal-overlay.show {
  visibility: visible;
  opacity: 1;
}

.modal-box {
  background: white;
  border-radius: 20px; /* 更大的圆角 */
  padding: 32px;
  width: 380px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); /* 弹性弹出效果 */
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
}

.modal-overlay.show .modal-box {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: none; /* 移除分割线，更干净 */
  padding-bottom: 0;
}

.modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

/* 模态框内容文字 */
#modal-message {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 32px 0;
}

.close-icon {
  font-size: 24px;
  cursor: pointer;
  color: #ccc;
  transition: color 0.2s;
  padding: 4px;
  border-radius: 50%;
}

.close-icon:hover {
  color: #333;
  background-color: #f5f5f5;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 0;
}

/* 模态框按钮 */
.btn-primary, .btn-secondary, .btn-danger-outline {
  padding: 10px 24px;
  border-radius: 20px; /* 胶囊圆角 */
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 10px rgba(0, 102, 204, 0.2);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(0, 102, 204, 0.3);
}

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

.btn-secondary {
  background: #f5f5f5;
  color: #666;
}

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

.btn-danger-outline {
  background: transparent;
  border: 1px solid #ff4444;
  color: #ff4444;
}

.btn-danger-outline:hover {
  background: #ff4444;
  color: white;
}

/* 设置输入框 */
.input-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.input-group input {
  width: 100%;
  padding: 10px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 6px;
  color: #333;
  font-size: 14px;
  box-sizing: border-box;
}

.input-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: white;
}

.hint {
  font-size: 12px;
  color: #999;
  margin-top: 5px;
}

/* 灵动岛风格弹窗 */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px); /* 默认隐藏在顶部 */
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* 弹性动画 */
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast-icon {
  font-size: 18px;
}

#toast-message {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
}
