/* 基础重置 */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* ====== 背景图片配置 ====== */
/* 背景图片通过 JS 从 img/ 文件夹随机加载，支持自动轮换 */
/* 添加图片：将新图片放到 img/ 文件夹，命名为 bg5.jpg、bg6.jpg... 即可自动参与轮换 */
:root {
  --bg-image: none;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-image) center center / cover no-repeat fixed;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  padding: 40px 0;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.7);
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
}

/* 页面容器 */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 24px;
  width: 100%;
  max-width: 520px;
}

/* 头部区域 */
.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  width: 100%;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #8b5cf6;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 12px;
}

.title {
  font-size: 32px;
  font-weight: 700;
  color: #8b5cf6;
  letter-spacing: 2px;
}

.subtitle {
  font-size: 15px;
  color: #6b7280;
  font-weight: 400;
}

/* 提示信息 */
.warning {
  font-size: 15px;
  color: #e74c3c;
  padding: 12px 20px;
  line-height: 1.6;
  font-weight: 500;
}

/* 密码输入栏 */
.input-bar {
  display: flex;
  align-items: center;
  width: 100%;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  overflow: hidden;
}

.input-bar input {
  flex: 1;
  border: none;
  outline: none;
  padding: 18px 22px;
  font-size: 18px;
  color: #333;
  background: transparent;
}

.input-bar input::placeholder {
  color: #aab5a0;
  font-size: 17px;
}

.input-bar button {
  padding: 18px 36px;
  background: #e74c3c;
  color: #fff;
  border: none;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.input-bar button:hover {
  background: #d63031;
}

/* 链接与说明文字 */
.link {
  font-size: 18px;
  color: #e74c3c;
  text-decoration: none;
  font-weight: 500;
}

.link:hover {
  text-decoration: underline;
}

.info {
  text-align: center;
  font-size: 15px;
  color: #666;
  line-height: 1.8;
}

/* Toast 提示框 */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 16px 28px;
  border-radius: 12px;
  font-size: 16px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.toast.show {
  opacity: 1;
}

/* 统计卡片区域 */
.stats {
  display: flex;
  gap: 4px;
  width: 100%;
  margin-top: 10px;
}

.stat-card {
  flex: 1;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
  padding: 6px 4px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.stat-value {
  font-size: 14px;
  font-weight: 700;
  color: #8b5cf6;
  line-height: 1.2;
}

.stat-label {
  font-size: 9px;
  color: #6b7280;
  margin-top: 1px;
}

/* 在线状态指示灯 */
.stat-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #22c55e;
  margin-right: 2px;
  vertical-align: middle;
  animation: pulse 2s ease-in-out infinite;
}

/* 动画 */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

.shake {
  animation: shake 0.35s ease-in-out;
}
