/* E-ink 优化的通用样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

body {
  font-family: Georgia, serif;
  background-color: #fff;
  color: #000;
  line-height: 1.6;
  /* E-ink 优化：无过渡效果 */
  transition: none !important;
}

/* 隐藏滚动条但保持功能 */
::-webkit-scrollbar {
  display: none;
}

/* 按钮通用样式 */
button {
  font-family: inherit;
  cursor: pointer;
  border: 2px solid #000;
  background-color: #fff;
  color: #000;
  padding: 10px 20px;
  font-size: 16px;
  transition: none;
}

button:active {
  transform: scale(0.98);
}

/* 输入框通用样式 */
input[type="text"],
input[type="email"],
input[type="password"] {
  font-family: inherit;
  font-size: 16px;
  padding: 10px;
  border: 2px solid #000;
  background-color: #fff;
  color: #000;
  width: 100%;
  margin-bottom: 15px;
}

input:focus {
  outline: none;
  border-color: #000;
  box-shadow: 0 0 0 2px #000;
}

/* 链接样式 */
a {
  color: #000;
  text-decoration: underline;
}

a:hover {
  text-decoration: none;
}

/* 加载和错误提示 */
.loading {
  text-align: center;
  padding: 40px 20px;
  font-size: 18px;
}

.error {
  text-align: center;
  padding: 20px;
  font-size: 18px;
  color: #d00;
  border: 2px solid #d00;
  margin: 20px;
}

/* Offline badge (subtle indicator in header) */
.offline-badge {
  display: inline-block;
  background: #f39c12;
  color: #000;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: bold;
  border: 2px solid #000;
  border-radius: 0;
}
