* { box-sizing: border-box; }
body {
  font-family: "microsoft yahei", "Open Sans", Arial, sans-serif;
  line-height: 22px;
  font-size: 14px;
  background: #eef2f5;
  color: #333;
  margin: 0;
  padding: 0;
}
.main {
  width: 100%;
  height: 100%;
  overflow-y: scroll;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  position: absolute;
  top: 0; bottom: 0; left: 0; right: 0;
}
.main::-webkit-scrollbar { display: none; }
.main-p {
  max-width: 640px;
  margin: 0 auto;
  box-shadow: 0 0 18px rgba(0,0,0,.25);
  padding-top: 50px;
  padding-bottom: 56px;
  background: #fff;
  min-height: 100%;
}
.mui-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  height: 44px;
  background: #00cdcd;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mui-title { font-size: 15px; font-weight: 600; }

.banner a { display: block; }
.banner img { width: 100%; height: auto; display: block; }

nav {
  height: 40px;
  line-height: 40px;
  display: flex;
  background: #fff;
  margin: 5px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(216,208,208,.24);
}
.nav-item {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  color: #6b6969;
  border-left: 1px solid rgba(0,0,0,.1);
}
.nav-item:first-child { border-left: none; }
.nav-active { color: #fff; background: #00cdcd; }

.issue {
  min-height: 80px;
  display: flex;
  align-items: center;
  margin: 10px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
.issue .left { flex: 1; padding: 12px 15px; }
.issue .right { width: 150px; padding-right: 10px; text-align: center; }
.issue-btns { display: flex; align-items: center; gap: 6px; margin-top: 6px; position: relative; }
.issue-btns button {
  width: 28px; height: 28px; border: 1px solid #ddd; background: #f7f7f7; border-radius: 4px; cursor: pointer;
}
.issue-btns button:disabled { opacity: .4; }
.issue-list {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; background: #f0fafa; border-radius: 4px; cursor: pointer;
}
.issue-more {
  position: absolute; top: 34px; left: 34px; z-index: 10;
  background: #fff; border: 1px solid #ddd; list-style: none; margin: 0; padding: 0;
  max-height: 220px; overflow: auto; width: 120px; box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.issue-more li { padding: 8px 12px; cursor: pointer; }
.issue-more li:hover { background: #e8ffff; }
.time-label { font-size: 12px; color: #888; }
.times { color: #c62d1f; font-size: 22px; font-weight: 700; letter-spacing: 1px; }
.times b {
  display: inline-block; min-width: 28px; padding: 2px 4px;
  background: #333; color: #fff; border-radius: 4px; margin: 0 2px;
}
.times span { color: #333; }

.issue-nums-wrap {
  position: relative;
  margin-bottom: 8px;
}
.issue-nums {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 16px 10px; font-size: 28px; font-weight: 700;
  box-shadow: 0 1px 3px rgba(0,0,0,.08); flex-wrap: wrap;
  background: #fff;
}
.issue-nums span {
  min-width: 42px; height: 42px; line-height: 42px; text-align: center;
  border-radius: 50%; background: #fff; border: 1px solid #e6e6e6; font-size: 20px;
  color: #222;
}
.issue-nums i { font-style: normal; color: #999; font-size: 18px; }
.mi-canvas {
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  z-index: 5;
  touch-action: none;
  cursor: pointer;
  border-radius: 0;
}
.result-tr-wrap {
  position: relative;
}
.mi-row-canvas {
  border-radius: 0;
}
.issue-type { width: 100%; text-align: center; margin-top: 8px; }
.type-o, .type-g {
  display: inline-block; min-width: 36px; padding: 2px 10px; margin: 0 4px;
  border-radius: 4px; color: #fff; font-size: 14px;
}
.type-o { background: #f0ad4e; }
.type-g { background: #5cb85c; }

.color-0 { color: #5cb85c !important; }
.color-1 { color: #d9534f !important; }
.color-2 { color: #337ab7 !important; }

.result { padding: 0 0 20px; min-height: 300px; }
.result-thead, .result-tr {
  display: flex; align-items: center; text-align: center;
  border-bottom: 1px solid #eee; padding: 8px 4px; font-size: 13px;
}
.result-thead { background: #f8f8f8; font-weight: 600; color: #666; position: sticky; top: 0; }
.result-thead span, .result-tr span { flex: 1; }
.p150 { flex: 1.4 !important; }
.p200 { flex: 1.2 !important; }
.p120 { flex: 1.1 !important; }
.badge-o, .badge-g {
  display: inline-block; padding: 1px 6px; border-radius: 3px; color: #fff; font-size: 12px; font-style: normal;
}
.badge-o { background: #f0ad4e; }
.badge-g { background: #5cb85c; }
.badge-kill {
  display: inline-block; padding: 1px 8px; border-radius: 3px; color: #fff; font-size: 12px; font-style: normal;
  background: #d9534f;
}
.fc-pred { display: flex; justify-content: center; align-items: center; gap: 4px; }
.yc-yes {
  display: inline-block; min-width: 28px; padding: 1px 6px; border-radius: 3px;
  background: #00a0e9; color: #fff; font-size: 12px; font-style: normal;
}
.yc-no {
  display: inline-block; min-width: 28px; padding: 1px 6px; border-radius: 3px;
  background: #ccc; color: #666; font-size: 12px; font-style: normal;
}
.yc-wait { opacity: 1; }
.fc-res { font-weight: 600; }
.fc-ok { color: #5cb85c; }
.fc-wait { color: #00a0e9; }
.fc-bad { color: #d9534f; }

.forecast-nav {
  display: flex; background: #fafafa; border-bottom: 1px solid #eee;
}
.forecast-nav span {
  flex: 1; text-align: center; padding: 10px 0; cursor: pointer; color: #666;
}
.forecast-nav span.active { color: #00cdcd; border-bottom: 2px solid #00cdcd; font-weight: 600; }

.pode-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px;
}
.pode-item {
  background: #f7fafa; border-radius: 6px; padding: 8px; text-align: center;
}
.pode-item b { display: block; color: #00a0a0; }
.pode-item span { color: #c62d1f; font-size: 12px; }

.result-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; height: 48px; background: #fff;
  box-shadow: 0 -2px 10px rgba(0,0,0,.08);
  max-width: 640px; margin: 0 auto;
}
.result-nav span {
  flex: 1; display: flex; align-items: center; justify-content: center;
  color: #666; cursor: pointer; font-size: 14px;
}
.result-nav .result-active { color: #00cdcd; font-weight: 700; }

.copyright {
  text-align: center; color: #999; font-size: 12px; padding: 20px 10px;
}

.sysset-p { position: fixed; right: 8px; top: 52px; z-index: 40; }
.sysset {
  background: rgba(0,0,0,.55); color: #fff; border-radius: 16px;
  padding: 6px 10px; font-size: 12px; cursor: pointer;
  display: flex; align-items: center; gap: 4px;
}
#sysset {
  position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 50;
  display: flex; align-items: flex-start; justify-content: flex-end; padding: 90px 12px 0 0;
}
.sysset-panel {
  width: 220px; background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.sysset-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; background: #00cdcd; color: #fff;
}
.sysset-head span { cursor: pointer; font-size: 20px; line-height: 1; }
.sysset-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px; border-bottom: 1px solid #f0f0f0;
}
.switch { position: relative; width: 44px; height: 24px; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i {
  position: absolute; inset: 0; background: #ccc; border-radius: 24px; transition: .2s;
}
.switch i:before {
  content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: .2s;
}
.switch input:checked + i { background: #00cdcd; }
.switch input:checked + i:before { transform: translateX(20px); }

.loading { text-align: center; padding: 40px; color: #888; }
.result-tr p { display: inline; margin: 0; color: #c62d1f; font-weight: 700; }
.result-tr i {
  display: inline-block; min-width: 36px; padding: 2px 8px; border-radius: 4px;
  background: #5cb85c; color: #fff; font-style: normal; font-size: 12px;
}
@media (max-width: 480px) {
  .issue-nums span { min-width: 36px; height: 36px; line-height: 36px; font-size: 16px; }
  .result-thead, .result-tr { font-size: 12px; }
}
