.cc-standard {
  margin: 6px 1px 20px;
  color: #111;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background: #f2f2f2;
}

.cc-standard,
.cc-standard * {
  box-sizing: border-box;
}

.cc-standard img {
  display: block;
  max-width: 100%;
}

.cc-section-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid #d7d7d7;
  border-radius: 6px;
}

.cc-section-nav a {
  display: block;
  min-width: 0;
  padding: 9px 4px;
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  line-height: 1.15;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 999px;
  background: #c81022;
}

.cc-section-nav a:hover {
  text-decoration: none;
  background: #990614;
}

.cc-brand {
  position: relative;
  overflow: hidden;
  margin: 8px 0;
  padding: 6px;
  background: #fff;
  border: 1px solid #d7d7d7;
  border-radius: 6px;
}

.cc-brand img {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0 auto;
}

.cc-brand-carousel {
  aspect-ratio: 5.4 / 1;
  background: #9e0717;
}

.cc-brand-carousel > img {
  position: absolute;
  inset: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  object-fit: cover;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity .45s ease, transform .8s ease;
}

.cc-brand-carousel > img.is-active { opacity: 1; transform: scale(1); }
.cc-brand-dots { position: absolute; right: 14px; bottom: 10px; z-index: 2; display: flex; gap: 5px; }
.cc-brand-dots i { width: 7px; height: 7px; background: rgba(255,255,255,.55); border: 1px solid rgba(0,0,0,.25); border-radius: 50%; }
.cc-brand-dots i.is-active { width: 18px; background: #ffeb00; border-radius: 8px; }

.cc-draw-card {
  padding: 10px;
  background: #fff;
  border: 2px solid #f22;
  border-radius: 7px;
}

.cc-draw-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.cc-draw-tabs span,
.cc-draw-tabs button {
  flex: 1 1 0;
  padding: 7px 9px;
  color: #999;
  font-family: inherit;
  font-size: 16px;
  background: #fff;
  border: 1px solid #aaa;
  border-radius: 10px;
  cursor: pointer;
}

.cc-draw-tabs .is-active {
  color: #c81022;
  border-color: #c81022;
}

.cc-draw-external iframe {
  display: block;
  width: 100%;
  height: 132px;
  border: 0;
  background: #fff;
}

.cc-draw-external p {
  margin: 7px 0 0;
  color: #748094;
  font-size: 12px;
  text-align: center;
}

.cc-draw-meta,
.cc-draw-next {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  font-size: 19px;
}

.cc-draw-meta em,
.cc-draw-next em {
  color: #f00;
  font-style: normal;
}

.cc-balls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin: 18px 0;
}

.cc-ball {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}

.cc-ball-number {
  display: grid;
  width: clamp(38px, 8vw, 58px);
  aspect-ratio: 1;
  margin: 0 auto 3px;
  place-items: center;
  color: #111;
  font-size: clamp(19px, 4vw, 28px);
  font-weight: 700;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.cc-ball-number.blue { background-image: url('/images/xin-aomen-cc/ball-blue.png'); }
.cc-ball-number.green { background-image: url('/images/xin-aomen-cc/ball-green.png'); }
.cc-ball-number.red { background-image: url('/images/xin-aomen-cc/ball-red.png'); }

.cc-ball-label {
  color: #444;
  font-size: clamp(11px, 2.5vw, 15px);
  white-space: nowrap;
}

.cc-ball-label i {
  padding: 0 1px;
  color: #777;
  font-style: normal;
}

.cc-ball-element { font-weight: 800; }
.cc-ball-element.gold { color: #c58500; }
.cc-ball-element.wood { color: #14933b; }
.cc-ball-element.water { color: #0786c7; }
.cc-ball-element.fire { color: #e63a32; }
.cc-ball-element.earth { color: #8a5d3b; }

.cc-ball.is-waiting .cc-ball-number {
  color: #a9b5c7;
  background: radial-gradient(circle at 35% 30%, #fff, #e8edf5 72%);
  border: 2px dashed #bdc9d9;
  border-radius: 50%;
}

.cc-ball.is-waiting .cc-ball-label { color: #9aa6b8; }
.cc-ball.is-new { animation: cc-ball-open .7s cubic-bezier(.2,.9,.25,1.25) both; }

@keyframes cc-ball-open {
  0% { opacity: 0; transform: translateY(-18px) scale(.25) rotate(-18deg); }
  65% { opacity: 1; transform: translateY(3px) scale(1.13) rotate(3deg); }
  100% { opacity: 1; transform: none; }
}

.cc-draw-pane.is-opening .cc-live-countdown { color: #f5222d; }
.cc-draw-empty,
.cc-draw-external-loading {
  display: grid;
  min-height: 190px;
  padding: 24px;
  place-content: center;
  gap: 10px;
  color: #66758b;
  text-align: center;
}

.cc-draw-external-loading b { color: #172033; font-size: 20px; }
.cc-draw-external-loading .cc-refresh { justify-self: center; border: 0; }

.cc-plus {
  flex: 0 0 auto;
  font-size: 28px;
  font-weight: 700;
}

.cc-refresh {
  padding: 8px 12px;
  color: #fff;
  background: #ff5b16;
  border-radius: 2px;
}

.cc-live-entry {
  display: flex;
  justify-content: center;
  padding: 16px 8px;
  background: linear-gradient(90deg, #8f0010, #d51b2e);
}

.cc-live-entry span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  color: #f44336;
  font-size: 17px;
  font-weight: 700;
  background: #fffde8;
  border-radius: 999px;
  box-shadow: 2px 2px 0 #ff5b16;
}

.cc-live-entry img {
  width: 34px;
}

.cc-module {
  margin: 9px 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d7d7d7;
  border-radius: 6px;
  scroll-margin-top: 165px;
}

.cc-module-title {
  padding: 9px 8px;
  color: #ff0;
  font-size: clamp(21px, 4.4vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  background: #b0081a;
}

.cc-legend {
  padding: 9px 10px;
  color: #f01878;
  font-size: clamp(17px, 3.3vw, 23px);
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

.cc-row {
  padding: 7px 10px;
  font-size: clamp(16px, 3.1vw, 22px);
  line-height: 1.45;
  border-top: 1px solid #ddd;
}

.cc-row:first-child {
  border-top: 0;
}

.cc-period-head {
  padding: 7px 10px;
  color: #ff0;
  font-size: clamp(17px, 3.3vw, 23px);
  line-height: 1.4;
  background: #b0081a;
}

.cc-period-head.red {
  background: #f00;
}

.cc-green { color: #008516; font-weight: 700; }
.cc-blue { color: #001de0; font-weight: 700; }
.cc-magenta { color: #ff00df; font-weight: 700; }
.cc-red { color: #f00; }
.cc-mark { color: #f00; background: #ff0; }

.cc-fax-block,
.cc-period-block {
  border-top: 1px solid #ddd;
}

.cc-fax-block[hidden],
.cc-period-block[hidden] {
  display: none !important;
}

.cc-fax-lines {
  padding: 2px 10px 8px;
}

.cc-fax-lines div {
  padding: 3px 0;
  font-size: clamp(16px, 3.1vw, 22px);
  line-height: 1.35;
}

.cc-theme-blue > .cc-module-title {
  color: #fff;
  background: #c81022;
}

.cc-theme-pink > .cc-module-title {
  color: #ff0;
  background: #ff5c83;
}

.cc-data-table {
  width: 100%;
}

.cc-table-head,
.cc-table-row {
  display: grid;
  grid-template-columns: minmax(68px, .7fr) minmax(0, 1.65fr) minmax(76px, .85fr);
  align-items: stretch;
}

.cc-table-head {
  color: #fff;
  font-size: clamp(17px, 3.3vw, 23px);
  font-weight: 700;
  text-align: center;
  background: #1f82e5;
}

.cc-table-head > span,
.cc-table-row > * {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 7px 8px;
  border-left: 1px solid #84bdf5;
  overflow-wrap: anywhere;
}

.cc-table-head > span:first-child,
.cc-table-row > *:first-child {
  border-left: 0;
}

.cc-data-table .cc-table-period {
  border-top: 1px solid #84bdf5;
}

.cc-data-table .cc-table-row {
  padding: 0;
  font-size: clamp(15px, 3vw, 21px);
  line-height: 1.45;
  border-top: 0;
}

.cc-data-table .cc-table-value {
  color: #111;
  font-weight: 500;
  text-align: center;
}

.cc-data-table .cc-red {
  color: #f00;
}

.cc-wide-results .cc-table-head,
.cc-wide-results .cc-table-row {
  grid-template-columns: minmax(62px, .65fr) minmax(58px, .65fr) minmax(0, 2fr);
}

.cc-legend-dark {
  color: #202020;
}

#cc-four-one .cc-period-head {
  color: #fff;
  background: #6585ac;
}

.cc-ladder-label {
  color: #666;
  font-weight: 700;
}

.cc-riddle-period {
  padding: 6px 12px;
  text-align: center;
  border-bottom: 1px dashed #19962a;
}

.cc-riddle-period .cc-row {
  padding: 5px 6px;
  border-top: 0;
}

#cc-shallow .cc-period-head {
  color: #fff;
  background: #ff5c91;
}

.cc-code-lines {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
}

.cc-release-title {
  padding: 10px 14px;
  color: #001270;
  font-size: clamp(18px, 3.4vw, 24px);
  font-weight: 700;
  background: #a9d0fa;
}

.cc-release-period {
  border-top: 8px solid #fff;
}

.cc-release-row {
  display: grid;
  grid-template-columns: minmax(116px, .95fr) minmax(0, 1fr) minmax(82px, .85fr);
  align-items: stretch;
  padding: 0;
  color: #001270;
  font-size: clamp(15px, 2.8vw, 20px);
  text-align: center;
  background: #dceeff;
  border-top: 1px solid #7ab9f5;
}

.cc-release-row > span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 8px 6px;
  border-left: 1px solid #7ab9f5;
  overflow-wrap: anywhere;
}

.cc-release-row > span:first-child {
  border-left: 0;
}

.cc-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 10px;
}

.cc-gallery-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cc-gallery figure {
  margin: 0;
}

.cc-gallery img {
  width: 100%;
  height: auto;
  border: 1px solid #e1e1e1;
  cursor: zoom-in;
}

.cc-gallery figcaption {
  padding-top: 4px;
  font-size: 16px;
}

.cc-dog-image {
  width: 100%;
  height: auto;
  border-bottom: 1px solid #ddd;
  cursor: zoom-in;
}

.cc-forum-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 10px;
  padding: 10px;
  background: #fff;
  border: 1px dashed #67a4f5;
}

.cc-forum-grid a {
  display: block;
  min-width: 0;
  height: 40px;
  padding: 0 6px;
  overflow: hidden;
  font-size: clamp(16px, 3.4vw, 24px);
  font-weight: 700;
  line-height: 38px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid #67a4f5;
  border-radius: 22px;
  background: linear-gradient(to top, #fff, #eee, #fff);
  box-shadow: 0 2px 5px rgba(0,0,0,.1);
}

.cc-forum-grid a:hover { text-decoration: underline; }
.cc-forum-grid .cc-forum-wide {
  grid-column: 1 / -1;
  color: #f00;
  background: #ff0;
}

.cc-manual-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
}

.cc-manual-image-card {
  margin: 0;
  overflow: hidden;
  background: #f4f7fb;
  border: 1px solid #d5dfeb;
  border-radius: 8px;
}

.cc-manual-image-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: #f4f7fb;
  cursor: zoom-in;
}

.cc-manual-image-card figcaption {
  padding: 8px 6px;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  background: #fff;
}

.cc-auto-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
}

.cc-auto-image-card {
  margin: 0;
  overflow: hidden;
  background: #f5f8fc;
  border: 1px solid #d5dfeb;
  border-radius: 8px;
}

.cc-auto-image-card img {
  display: block;
  width: 100%;
  min-height: 150px;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: #f5f8fc;
  cursor: zoom-in;
}

.cc-auto-image-card figcaption {
  padding: 8px 6px;
  overflow: hidden;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #fff;
}

.cc-auto-images-empty {
  margin: 10px;
  padding: 38px 14px;
  color: #748094;
  font-size: 15px;
  text-align: center;
  background: #f7f9fc;
  border: 1px dashed #b8c5d8;
  border-radius: 8px;
}

.cc-auto-images-empty b,
.cc-auto-images-empty span { display: block; }
.cc-auto-images-empty span { margin-top: 5px; font-size: 12px; }

.cc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  padding: 50px 16px 24px;
  place-items: center;
  color: #fff;
  background: rgba(6, 13, 24, .92);
}

.cc-lightbox.is-open { display: grid; }
.cc-lightbox img { max-width: min(1100px, 96vw); max-height: calc(100vh - 110px); object-fit: contain; }
.cc-lightbox button { position: absolute; top: 12px; right: 18px; width: 40px; height: 40px; color: #fff; font-size: 34px; line-height: 36px; background: transparent; border: 0; cursor: pointer; }
.cc-lightbox p { position: absolute; bottom: 10px; left: 12px; right: 12px; margin: 0; text-align: center; }
body.cc-lightbox-open { overflow: hidden; }

.cc-nested-row {
  display: grid;
  grid-template-columns: minmax(118px, auto) 1fr;
  gap: 10px;
  align-items: baseline;
}

.cc-zodiac-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 14px;
  padding: 18px;
}

.cc-zodiac-item {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.cc-zodiac-item img {
  width: 50px;
  height: 50px;
}

.cc-zodiac-name {
  font-size: 16px;
  font-weight: 700;
}

.cc-zodiac-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}

.cc-zodiac-numbers span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #fff;
  font-size: 12px;
  border-radius: 50%;
}

.cc-zodiac-numbers .red { background: #f00; }
.cc-zodiac-numbers .blue { background: #3169ef; }
.cc-zodiac-numbers .green { background: #009733; }

html.cc-cms-preview-mode.cc-cms-solo-preview body {
  min-width: 0 !important;
  padding: 0 !important;
  background: #fff !important;
}

html.cc-cms-preview-mode.cc-cms-solo-preview body > :not(#xin-aomen-cc-content):not(script):not(style) {
  display: none !important;
}

html.cc-cms-preview-mode.cc-cms-solo-preview #xin-aomen-cc-content {
  display: block !important;
  width: 100% !important;
  max-width: 900px !important;
  margin: 0 auto !important;
  padding: 8px !important;
}

html.cc-cms-preview-mode.cc-cms-solo-preview #xin-aomen-cc-content > .cc-section-nav,
html.cc-cms-preview-mode.cc-cms-solo-preview #xin-aomen-cc-content > .cc-brand,
html.cc-cms-preview-mode.cc-cms-solo-preview #xin-aomen-cc-content > section {
  display: none !important;
}

html.cc-cms-preview-mode.cc-cms-solo-preview #xin-aomen-cc-content > section.cc-cms-focused-module {
  display: block !important;
  margin: 0 !important;
  outline: 0 !important;
}

.cc-cms-preview-mode .cc-cms-focused-module {
  scroll-margin-top: 10px;
  outline: 3px solid rgba(100, 52, 231, 0.72);
  outline-offset: 2px;
}

.cc-cms-preview-mode .cc-cms-focused-row {
  position: relative;
  z-index: 1;
  scroll-margin-block: 26vh;
  background-color: #f7f3ff !important;
  box-shadow: inset 5px 0 0 #6434e7, inset 0 0 0 2px rgba(100, 52, 231, 0.28);
}

@media screen and (max-width: 560px) {
  .cc-section-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    padding: 8px;
  }

  .cc-section-nav a {
    padding: 8px 3px;
    font-size: 14px;
  }

  .cc-draw-meta,
  .cc-draw-next {
    grid-template-columns: 1fr auto;
    gap: 7px;
    font-size: 15px;
  }

  .cc-draw-tabs {
    gap: 6px;
  }

  .cc-draw-tabs span,
  .cc-draw-tabs button {
    flex: 1 1 0;
    padding: 6px 3px;
    font-size: 13px;
    text-align: center;
    white-space: nowrap;
  }

  .cc-draw-meta span:last-child {
    grid-column: 2;
  }

  .cc-draw-next span:first-child {
    grid-column: 1 / -1;
  }

  .cc-draw-next .cc-refresh {
    justify-self: end;
  }

  .cc-balls {
    gap: 2px;
  }

  .cc-plus {
    font-size: 21px;
  }

  .cc-row,
  .cc-fax-lines div {
    padding-left: 7px;
    padding-right: 7px;
  }

  .cc-table-head,
  .cc-table-row {
    grid-template-columns: 56px minmax(0, 1.45fr) 72px;
  }

  .cc-wide-results .cc-table-head,
  .cc-wide-results .cc-table-row {
    grid-template-columns: 52px 46px minmax(0, 2fr);
  }

  .cc-table-head > span,
  .cc-table-row > * {
    padding: 7px 4px;
  }

  .cc-release-row {
    grid-template-columns: 92px minmax(0, 1fr) 64px;
    font-size: 14px;
  }

  .cc-release-row > span {
    padding: 7px 3px;
  }

  .cc-nested-row {
    grid-template-columns: minmax(92px, auto) 1fr;
    gap: 6px;
  }

  .cc-zodiac-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 8px;
    padding: 12px 8px;
  }
}

@media screen and (max-width: 360px) {
  .cc-ball-number {
    width: 34px;
    font-size: 17px;
  }

  .cc-ball-label {
    font-size: 10px;
  }
}

.cc-live-countdown {
  color: inherit;
  font-weight: 500;
}

.cc-history-toggle,
.cc-refresh {
  font: inherit;
  border: 0;
  cursor: pointer;
}

.cc-history-toggle {
  display: inline-block;
  padding: 3px 6px;
  color: #333;
  text-decoration: none;
  background: transparent;
}

.cc-history-toggle:hover {
  color: #f00;
}

.cc-refresh:disabled {
  opacity: 0.65;
  cursor: wait;
}

.cc-history-panel {
  margin-top: 7px;
  padding: 9px 10px 11px;
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
}

.cc-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 2px 8px;
  border-bottom: 1px solid #ededed;
}

.cc-history-head b {
  color: #b0081a;
  font-size: 16px;
}

.cc-history-head span {
  color: #888;
  font-size: 12px;
}

.cc-history-record {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 49px;
  padding: 7px 2px;
  border-bottom: 1px dashed #e6e6e6;
}

.cc-history-record:last-child {
  border-bottom: 0;
}

.cc-history-record > div:first-child b,
.cc-history-record > div:first-child small {
  display: block;
}

.cc-history-record > div:first-child b {
  font-size: 14px;
}

.cc-history-record > div:first-child em {
  color: #f00;
  font-style: normal;
}

.cc-history-record > div:first-child small {
  margin-top: 3px;
  color: #999;
  font-size: 10px;
}

.cc-history-balls {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.cc-history-ball {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #111;
  font-size: 11px;
  font-weight: 800;
  background: #fff;
  border: 2px solid #aaa;
  border-radius: 50%;
}

.cc-history-ball.red { border-color: #ee2433; }
.cc-history-ball.blue { border-color: #13a5df; }
.cc-history-ball.green { border-color: #42be18; }

.cc-history-plus {
  color: #444;
  font-size: 14px;
  font-weight: 900;
}

.cc-history-empty {
  padding: 22px 10px;
  color: #888;
  font-size: 13px;
  text-align: center;
}

.cc-live-entry a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  color: #f44336;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  background: #fffde8;
  border-radius: 999px;
  box-shadow: 2px 2px 0 #ff5b16;
}

@media screen and (max-width: 560px) {
  .cc-history-toggle {
    grid-column: 2;
    justify-self: end;
  }

  .cc-history-record {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .cc-history-record > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .cc-history-record > div:first-child small {
    margin-top: 0;
  }

  .cc-live-entry a {
    padding: 8px 12px;
    font-size: 14px;
  }

  .cc-forum-grid {
    gap: 6px;
    padding: 7px;
  }

  .cc-forum-grid a {
    height: 34px;
    padding: 0 3px;
    font-size: 15px;
    line-height: 32px;
  }

  .cc-manual-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 7px;
  }

  .cc-manual-image-card figcaption { padding: 6px 3px; font-size: 14px; }

  .cc-auto-image-grid {
    grid-template-columns: 1fr;
    padding: 7px;
  }
}
