/* 前台样式 */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", "PingFang SC", sans-serif;
  background: #f3f4fb;
  color: #2c2c3a;
  line-height: 1.6;
}
.page { max-width: 720px; margin: 0 auto; padding: 28px 16px 48px; }

.site-header { text-align: center; padding: 24px 0 18px; position: relative; }
.site-header h1 { font-size: 26px; color: #4b4bd6; }
.site-header .sub { color: #7a7a90; font-size: 14px; margin-top: 6px; }
.link-query {
  position: absolute; right: 0; top: 28px;
  color: #5b5bd6; text-decoration: none; font-size: 14px;
}
.link-query:hover { text-decoration: underline; }

.card {
  background: #fff; border-radius: 14px; padding: 24px;
  box-shadow: 0 6px 24px rgba(60, 60, 130, 0.06);
  margin-bottom: 20px;
}
.card h2 { font-size: 16px; margin: 18px 0 12px; color: #333; }
.card h2:first-child { margin-top: 0; }

.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 14px; color: #444; margin-bottom: 6px; }
.field input[type="text"] {
  width: 100%; padding: 11px 14px; border: 1px solid #dfe0ee; border-radius: 9px;
  font-size: 15px; outline: none; transition: border-color .2s;
}
.field input[type="text"]:focus { border-color: #5b5bd6; }
.field .tip { font-size: 12px; color: #9a9ab0; font-style: normal; margin-top: 5px; display: block; }

.packages { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.package { position: relative; cursor: pointer; }
.package input { position: absolute; opacity: 0; }
.pkg-body {
  border: 2px solid #e6e7f2; border-radius: 12px; padding: 16px 12px; text-align: center;
  transition: all .2s;
}
.package input:checked + .pkg-body {
  border-color: #5b5bd6; background: #f2f2fe;
  box-shadow: 0 4px 14px rgba(91, 91, 214, 0.18);
}
.pkg-name { font-weight: 600; font-size: 15px; }
.pkg-days { font-size: 13px; color: #8a8aa0; margin: 2px 0 8px; }
.pkg-price { color: #d64545; font-size: 18px; font-weight: 700; }

.paytypes { display: flex; gap: 10px; flex-wrap: wrap; }
.paytype { cursor: pointer; }
.paytype input { display: none; }
.paytype span {
  display: inline-block; padding: 9px 20px; border: 2px solid #e6e7f2; border-radius: 9px;
  font-size: 14px; transition: all .2s;
}
.paytype input:checked + span { border-color: #5b5bd6; background: #f2f2fe; color: #4b4bd6; font-weight: 600; }

.btn-primary {
  width: 100%; margin-top: 20px; padding: 13px; background: #5b5bd6; color: #fff;
  border: none; border-radius: 10px; font-size: 16px; cursor: pointer; transition: background .2s;
}
.btn-primary:hover { background: #4a4ac4; }
.btn-primary:disabled { background: #b9b9d8; cursor: not-allowed; }

.notice { padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 18px; }
.notice-warn { background: #fff5e6; color: #b5730e; border: 1px solid #ffe0b2; }

.query-form { display: flex; gap: 10px; }
.query-form input {
  flex: 1; padding: 11px 14px; border: 1px solid #dfe0ee; border-radius: 9px; font-size: 15px; outline: none;
}
.query-form .btn-primary { width: auto; margin-top: 0; padding: 11px 26px; }

.result-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; gap: 8px; }
.bot-id { font-weight: 600; }
.info-list { list-style: none; }
.info-list li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed #eee; font-size: 14px; }
.info-list li span { color: #8a8aa0; }
.status-tip { margin-top: 14px; padding: 12px 16px; background: #f6f7fd; border-radius: 10px; font-size: 14px; color: #555; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge.online { background: #e6f7ec; color: #1a9d54; }
.badge.offline { background: #eef0f5; color: #7a7a90; }
.badge.expired { background: #fff2e0; color: #c47a12; }
.badge.frozen { background: #fdeaea; color: #cc3b3b; }

.sub-title { font-size: 15px; margin: 22px 0 10px; color: #333; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { padding: 9px 10px; text-align: left; border-bottom: 1px solid #f0f0f6; }
.table th { color: #8a8aa0; font-weight: 600; background: #fafaff; }
.table .mono { font-family: Menlo, Consolas, monospace; color: #555; word-break: break-all; }
.empty { text-align: center; color: #aaa; padding: 20px 0; }

.site-footer { text-align: center; color: #a0a0b8; font-size: 13px; margin-top: 24px; }
