/* 1812231 reference: compact white canvas, three open draw rows, pink issue tabs. */
body[data-layout="am1030-classic"][data-page="home"] {
  margin: 0;
  background: #f4f4f4;
  color: #555;
  font: 14px/1.5 "Microsoft YaHei", Arial, sans-serif;
}
.am-shell { --am-ball-size: min(9.5625vw, 61.2px); width: min(100%, 640px); margin: 0 auto; background: #fff; }
.am-draw { position: relative; border-bottom: 4px solid #f7f7f7; }
body[data-page="home"] .am-draw .draw-card {
  padding: 8px 10px 4px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
body[data-page="home"] .am-draw .draw-card-header { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 6px; padding: 0; background: #fff; }
body[data-page="home"] .am-draw .draw-card-brand { display: contents; }
body[data-page="home"] .am-draw .eyebrow { display: none; }
body[data-page="home"] .am-draw h2 { margin: 0; font-size: 14px; font-weight: 700; color: #111; }
body[data-page="home"] .am-draw .draw-issue { margin: 0; color: #999; font-size: 14px; font-weight: 400; white-space: nowrap; }
body[data-page="home"] .am-draw .draw-card-meta { display: block; margin-left: 0; padding-left: 0; }
body[data-page="home"] .am-draw .draw-countdown-label { margin: 0; color: #999; font-size: 14px; font-weight: 400; white-space: nowrap; }
body[data-page="home"] .am-draw .draw-countdown-label time { color: #f58220; font-weight: 400; letter-spacing: 0; }
body[data-page="home"] .am-draw .draw-numbers { display: flex; justify-content: space-between; flex-wrap: nowrap; gap: 4px; margin: 7px 0 0; padding: 0; }
body[data-page="home"] .am-draw .draw-numbers > .ball {
  display: flex;
  flex: 0 1 var(--am-ball-size);
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  width: 42px;
  padding: 0;
  gap: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  line-height: 1;
}
body[data-page="home"] .am-draw .draw-numbers > .ball > b { display: grid; width: var(--am-ball-size); height: var(--am-ball-size); max-width: 100%; place-items: center; border: 0; border-radius: 50%; color: #fff; font: 900 clamp(14px, 2.8125vw, 18px)/1 "Microsoft YaHei", sans-serif; box-shadow: none; }
body[data-page="home"] .am-draw .ball-red > b { background: #e23d43; }
body[data-page="home"] .am-draw .ball-blue > b { background: #00a0e9; }
body[data-page="home"] .am-draw .ball-green > b { background: #5dbf74; }
body[data-page="home"] .am-draw .ball-pending > b,
body[data-page="home"] .am-draw .ball-sealed > b { background: #c9c9c9; }
body[data-page="home"] .am-draw .draw-numbers > .ball > small { display: block; margin: 5px -3px 0; color: #111; font-size: 14px; line-height: 20px; white-space: nowrap; }
body[data-page="home"] .am-draw .draw-next-row { display: flex; justify-content: flex-end; min-height: 29px; margin: 0; padding: 0; border: 0; background: none; }
body[data-page="home"] .am-draw .draw-next-line { display: none; }
body[data-page="home"] .am-draw .draw-history-link { display: inline-flex; align-items: center; min-height: 29px; padding: 0; border: 0; border-radius: 0; background: none; color: #159cca; font-size: 14px; font-weight: 400; text-decoration: none; }
.am-draw-domain { position: absolute; bottom: 9px; left: 10px; margin: 0; max-width: calc(100% - 100px); overflow-wrap: anywhere; font-size: 14px; }
.am-draw-domain a { color: #ed7812; font-weight: 700; text-decoration: none; }
body[data-page="home"] .am-draw .draw-status { display: none; }
.am-domains h2 { margin: 0; padding: 5px 10px; color: #f58220; font-size: 18px; text-align: center; }
.am-domains nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid #eee; border-left: 1px solid #eee; }
.am-domains a { padding: 4px 6px; border-right: 1px solid #eee; border-bottom: 1px solid #eee; color: #0086db; text-align: center; overflow-wrap: anywhere; }
.am-notice { padding: 11px 8px; border-bottom: 1px solid #eee; color: #f00; text-align: center; font-weight: 700; }
.am-notice p { margin: 0; }
.am-feed, .am-article, .am-swiper { min-width: 0; }
.am-swiper { border-bottom: 1px solid #eee; }
.am-swiper-tabs { display: flex; padding: 6px; gap: 4px; overflow-x: auto; }
.am-swiper-tabs button { position: relative; flex: 1; min-width: 50px; min-height: 44px; padding: 8px 4px; border: 0; border-radius: 5px; background: #fff; color: #555; font-size: 12px; }
.am-swiper-tabs button[aria-selected="true"] { background: #fff1f2; color: #c72b30; font-weight: 700; }
.am-swiper-tabs button[aria-selected="true"]::after { position: absolute; bottom: 0; left: calc(50% - 10px); width: 20px; height: 3px; background: #dd3542; content: ""; }
.am-swiper-frame img { display: block; width: 100%; height: auto; }
.am-other-links { display: grid; gap: 0; padding: 0; box-shadow: 0 2px 7px #0002; }
.am-other-links a { display: block; padding: 0 5px; border-bottom: 1px solid #ddd; background: linear-gradient(0deg, #fff, #eee, #fff); color: #00f; font-size: 16px; line-height: 32px; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }

.am-article h2 { margin: 0; padding: 12px 5px 32px; background: #fafafa; color: #111; font-size: 14px; text-align: center; }
.am-article h2 a { text-decoration: none; }
.am-article .home-content-html { max-width: 100%; overflow-x: auto; color: #111; font: 700 14px/32px "Microsoft YaHei", sans-serif; overflow-wrap: anywhere; }
.am-article .home-content-html p { margin: 0; }
.am-article .home-content-html table { width: 100%; max-width: 100%; margin: 0; border-collapse: collapse; }
.am-article .home-content-html td, .am-article .home-content-html th { padding: 0 3px; border: 1px solid #ddd; text-align: center; }
.am-section-title { margin: 0; padding: 7px 10px; border-block: 1px solid #eee; background: #fff; color: #111; text-align: center; font-size: 18px; }
.am-document-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.am-document-grid a { padding: 9px 3px; border-right: 1px solid #eee; border-bottom: 1px solid #eee; color: #00a0e9; text-align: center; text-decoration: none; overflow-wrap: anywhere; }
.am-image-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 8px; }
.am-image-grid a { min-width: 0; color: #555; text-align: center; text-decoration: none; }
.am-image-grid img { width: 100%; height: auto; }
.am-image-grid span { display: block; margin-top: 5px; overflow-wrap: anywhere; }
body[data-page="home"] .am-shell .number-attrs-card { margin: 0; border: 1px solid #eee; border-radius: 0; box-shadow: none; }
.am-shell .home-back-to-top { border-radius: 50%; }
@media (max-width: 380px) {
  body[data-page="home"] .am-draw .draw-card-meta { padding-left: 0; }
  body[data-page="home"] .am-draw h2,
  body[data-page="home"] .am-draw .draw-issue,
  body[data-page="home"] .am-draw .draw-countdown-label { font-size: 12px; }
  body[data-page="home"] .am-draw .draw-numbers > .ball > b { width: var(--am-ball-size); height: var(--am-ball-size); }
  body[data-page="home"] .am-draw .draw-numbers > .ball > small { font-size: 12px; }
  .am-other-links a { font-size: 14px; }
  .am-document-grid a { font-size: 12px; }
}
body[data-page="home"] > .home-back-to-top { position: fixed; right: max(12px, calc((100vw - 640px) / 2 + 12px)); bottom: 24px; z-index: 30; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: #555; box-shadow: 0 1px 8px #0003; font-size: 24px; }
