@charset "utf-8";

.m-sub-page .m-app {
  padding-bottom: 0;
  min-height: 100vh;
  background: #f5f5f5;
}

.m-sub-head {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 46px;
  background: var(--m-blue);
  color: #fff;
}

.m-sub-back {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: #fff;
  font-size: 15px;
  text-decoration: none;
}

.m-sub-back::before {
  content: '‹';
  font-size: 22px;
  line-height: 1;
  margin-right: 2px;
}

.m-sub-title {
  font-size: 17px;
  font-weight: 600;
}

.m-sub-right {
  position: absolute;
  right: 12px;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
}

.m-sub-body {
  background: #fff;
}

.m-lottery-grid--sub {
  padding: 10px;
  background: #fff;
  border-bottom: 1px solid #eee;
}

/* ===== 开奖接口 ===== */
.m-api-section {
  border-bottom: 1px solid #eee;
  background: #fff;
}

.m-api-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 12px;
  border: none;
  background: #fff;
  font-size: 14px;
  color: #333;
  text-align: left;
  cursor: pointer;
}

.m-api-section-head::after {
  content: '▼';
  font-size: 10px;
  color: #999;
  transition: transform 0.2s;
}

.m-api-section.is-open .m-api-section-head::after {
  transform: rotate(180deg);
}

.m-api-section-body {
  display: none;
  padding: 0 12px 14px;
}

.m-api-section.is-open .m-api-section-body {
  display: block;
}

.m-api-label {
  font-size: 13px;
  color: #666;
  margin: 10px 0 6px;
}

.m-api-url-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.m-api-method {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--m-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.m-api-url {
  flex: 1;
  font-size: 12px;
  color: #333;
  word-break: break-all;
}

.m-api-copy {
  border: none;
  background: none;
  color: var(--m-blue);
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
}

.m-api-box {
  padding: 10px;
  background: #fafafa;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  font-size: 12px;
  color: #555;
  line-height: 1.5;
}

.m-api-json {
  position: relative;
  margin-top: 6px;
}

.m-api-json pre {
  margin: 0;
  padding: 10px;
  background: #fafafa;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  font-size: 11px;
  line-height: 1.45;
  color: #333;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 360px;
}

.m-api-json .m-api-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255,255,255,0.9);
  padding: 2px 6px;
}

.m-api-links {
  padding: 0;
  list-style: none;
  margin: 0;
}

.m-api-links li {
  border-bottom: 1px solid #eee;
}

.m-api-links a {
  display: block;
  padding: 14px 12px;
  color: #333;
  font-size: 14px;
  text-decoration: none;
  background: #fff;
}

.m-api-links a:active {
  background: #f5f5f5;
}

/* ===== Chrome 下载 ===== */
.m-chrome-body {
  padding: 40px 20px 60px;
  text-align: center;
  background: #fff;
  min-height: calc(100vh - 46px);
}

.m-chrome-title {
  font-size: 22px;
  font-weight: 700;
  color: #222;
  margin-bottom: 12px;
}

.m-chrome-desc {
  font-size: 14px;
  color: #888;
  line-height: 1.6;
  margin-bottom: 36px;
}

.m-chrome-logo {
  width: 88px;
  height: 88px;
  margin: 0 auto 36px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%234285F4' d='M44 24.5c0-1.6-.1-3.2-.4-4.7H24v8.9h11.3c-.5 2.7-2 5-4.2 6.5v5.4h6.8c4-3.7 6.3-9.1 6.3-15.1z'/%3E%3Cpath fill='%2334A853' d='M24 44c5.7 0 10.5-1.9 14-5.1l-6.8-5.4c-1.9 1.3-4.3 2-7.2 2-5.5 0-10.2-3.7-11.9-8.7H5.1v5.6C8.6 39.9 15.8 44 24 44z'/%3E%3Cpath fill='%23FBBC05' d='M12.1 27.8c-.4-1.3-.7-2.7-.7-4.1s.2-2.8.7-4.1V14H5.1C3.7 16.9 3 20.3 3 24s.7 7.1 2.1 10l7-5.2z'/%3E%3Cpath fill='%23EA4335' d='M24 11.5c3.1 0 5.9 1.1 8.1 3.2l6-6C34.5 5.5 29.7 3.5 24 3.5 15.8 3.5 8.6 7.6 5.1 14l7 5.2c1.7-5 6.4-8.7 11.9-8.7z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.m-chrome-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 24px;
  background: var(--m-blue);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.m-chrome-btn::before {
  content: '';
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M12 3l4 4h-3v8h-2V7H8l4-4zm-7 14h14v2H5v-2z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ===== 联络我们 ===== */
.m-link-body {
  padding: 36px 20px 60px;
  text-align: center;
  background: #fff;
  min-height: calc(100vh - 46px);
}

.m-link-body h2 {
  font-size: 22px;
  font-weight: 700;
  color: #222;
  margin-bottom: 16px;
}

.m-link-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 28px;
}

.m-link-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ea4335, #fbbc04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}

.m-link-email {
  font-size: 15px;
  color: #333;
}

.m-link-email em {
  font-style: normal;
  color: var(--m-blue);
  font-weight: 600;
}

/* ===== 挑码助手 ===== */
.m-picker-output-wrap {
  padding: 12px;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.m-picker-output-box {
  min-height: 108px;
  padding: 12px 10px;
  border: 1px solid var(--m-blue);
  border-radius: 4px;
  background: #fff;
}

.m-picker-placeholder {
  margin: 0;
  font-size: 14px;
  color: #aaa;
  line-height: 1.6;
}

.m-picker-output-box.has-result .m-picker-placeholder {
  display: none;
}

.m-picker-balls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.m-picker-ball {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #333;
  background: transparent center/contain no-repeat;
  line-height: 1;
  padding-bottom: 2px;
}

.m-picker-ball.is-red {
  background-image: url('/static/index/images/balls/ball-red.png');
}

.m-picker-ball.is-blue {
  background-image: url('/static/index/images/balls/ball-blue.png');
}

.m-picker-ball.is-green {
  background-image: url('/static/index/images/balls/ball-green.png');
}

.m-picker-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.m-picker-actions button {
  border: 1px solid var(--m-blue);
  background: #fff;
  color: var(--m-blue);
  font-size: 14px;
  cursor: pointer;
  padding: 5px 16px;
  border-radius: 4px;
  line-height: 1.2;
}

.m-picker-actions button:active {
  background: #f0f4fa;
}

.m-picker-groups {
  padding: 10px 12px 20px;
  background: #fff;
}

.m-picker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.m-picker-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.m-picker-btn {
  min-width: calc(16.66% - 7px);
  flex: 1 1 calc(16.66% - 7px);
  max-width: calc(25% - 6px);
  height: 36px;
  padding: 0 4px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  color: #333;
  font-size: 13px;
  cursor: pointer;
}

.m-picker-btn.is-wide {
  flex: 1 1 calc(50% - 4px);
  max-width: calc(50% - 4px);
  min-width: calc(50% - 4px);
  font-size: 12px;
}

.m-picker-btn.is-active {
  background: var(--m-blue);
  border-color: var(--m-blue);
  color: #fff;
}

.m-picker-btn.is-spacer {
  visibility: hidden;
  pointer-events: none;
  border: none;
  background: transparent;
}

@media (max-width: 360px) {
  .m-picker-btn {
    min-width: calc(20% - 7px);
    font-size: 12px;
  }
}
