/* StudyBox 验证服务器 - 澎湃OS / HyperOS 风格样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, "PingFang SC", "HarmonyOS Sans SC", "MiSans",
    "Microsoft YaHei", "Segoe UI", sans-serif;
  background-color: #f5f5f5;
  color: #111;
  min-height: 100vh;
}

.container { max-width: 560px; margin: 0 auto; padding: 24px 16px 48px; }

.header { text-align: center; padding: 12px 0 20px; }
.header h1 { font-size: 24px; font-weight: 700; letter-spacing: .5px; }
.header p { font-size: 13px; color: #999; margin-top: 6px; }

.card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #f0f0f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
  padding: 20px;
  margin-bottom: 16px;
}

.card h2 { font-size: 16px; font-weight: 600; margin-bottom: 14px; }
.card p.desc { font-size: 13px; color: #666; line-height: 1.7; margin-bottom: 10px; }

label { display: block; font-size: 13px; color: #666; margin: 12px 0 6px; }

input[type="text"], input[type="password"], select {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #f7f7f7;
  outline: none;
  font-family: inherit;
}
input:focus { border-color: #3482ff; background: #fff; }
input.mono { font-family: ui-monospace, Consolas, monospace; letter-spacing: 1px; }

.btn {
  display: inline-block;
  width: 100%;
  padding: 13px 0;
  margin-top: 16px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: #3482ff;
  border: none;
  border-radius: 23px;
  cursor: pointer;
  transition: opacity .15s;
  text-align: center;
}
.btn:active { opacity: .65; }
.btn-plain { background: #eef4ff; color: #3482ff; }

.result {
  text-align: center;
  padding: 18px 0 6px;
  display: none;
}
.result .code {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: 6px;
  color: #3482ff;
  font-family: ui-monospace, Consolas, monospace;
}
.result .meta { font-size: 12px; color: #999; margin-top: 8px; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}
.badge-green { background: #e8f8ee; color: #34c759; }
.badge-red { background: #ffecec; color: #ff3b30; }
.badge-gray { background: #f0f0f0; color: #666; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; color: #999; font-weight: 500; padding: 8px 6px; border-bottom: 1px solid #eee; white-space: nowrap; }
td { padding: 9px 6px; border-bottom: 1px solid #f5f5f5; word-break: break-all; }
tr:hover td { background: #fafafa; }

.nav { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.nav a {
  padding: 8px 16px; border-radius: 18px; font-size: 14px;
  background: #fff; color: #333; text-decoration: none;
  border: 1px solid #ececec; font-weight: 500;
}
.nav a.on { background: #3482ff; color: #fff; border-color: #3482ff; }

.alert { padding: 12px 14px; border-radius: 12px; font-size: 13px; margin-bottom: 14px; line-height: 1.6; }
.alert-ok { background: #e8f8ee; color: #1d8a3e; }
.alert-err { background: #ffecec; color: #d92b2b; }
.alert-warn { background: #fff7e6; color: #ad6800; }

.window-code {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; background: #f7f7f7; border-radius: 12px; margin-bottom: 8px;
}
.window-code .w-label { font-size: 13px; color: #666; }
.window-code .w-label b { display: block; color: #111; font-size: 14px; }
.window-code .w-code {
  font-size: 26px; font-weight: 700; letter-spacing: 3px; color: #3482ff;
  font-family: ui-monospace, Consolas, monospace;
}
.window-code.now { background: #eef4ff; }
.window-code.now .w-code { color: #1f6fff; }

.foot { text-align: center; font-size: 12px; color: #bbb; margin-top: 24px; line-height: 1.8; }
.foot a { color: #3482ff; text-decoration: none; }

kbd, code {
  background: #f0f0f0; padding: 1px 6px; border-radius: 6px;
  font-family: ui-monospace, Consolas, monospace; font-size: 12px;
}

.search-row { display: flex; gap: 8px; margin-bottom: 14px; }
.search-row input { flex: 1; }
.search-row .btn { width: auto; padding: 10px 22px; margin-top: 0; }

.inline-form { display: inline; }
.btn-sm {
  display: inline-block; padding: 5px 12px; font-size: 12px;
  border-radius: 14px; border: 1px solid #dce7ff; background: #f4f8ff;
  color: #3482ff; cursor: pointer; font-family: inherit; margin: 1px;
}
.btn-sm.danger { background: #fff2f2; border-color: #ffdad6; color: #e02f2f; }
.btn-sm:hover { opacity: .8; }

.pager { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.pager a { padding: 7px 16px; background: #fff; border-radius: 16px; font-size: 13px; color: #333; text-decoration: none; border: 1px solid #ececec; }
