.page-container {
  background-color: #ef97f7;
  min-height: 100vh;
  padding: 0;
  margin: 0;
}
.site-card {
  max-width: 520px;
  margin: 0 auto;
}
.logo-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  margin-bottom: 0;
  background: transparent;
  box-shadow: none;
  transition: background 0.3s;
  min-height: 50px;
}
.site-logo {
  width: 50%;
  height: auto;
  display: block;
  margin: 0;
  max-width: none;
}
.site-logo-right {
  width: 18%;
  height: auto;
  display: block;
  margin: 0;
  max-width: none;
  object-fit: contain;
}
.amzyh-section {
  text-align: center;
  padding: 0;
  margin-bottom: 0;
  background: transparent;
  box-shadow: none;
  transition: background 0.3s;
}
.amzyh-images {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.amzyh-icon {
  width: 18%;
  height: auto;
  display: block;
  margin: 0;
  border-radius: 4px;
  object-fit: contain;
}
.banner-section {
  text-align: center;
  padding: 0;
  margin: 0;
  background: transparent;
  box-shadow: none;
  transition: background 0.3s;
}
.lottery-result-block {
  background: transparent;
  margin: 0;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  border: none;
}
.lottery-result-header {
  display: flex;
  flex-direction: column;
  gap: 0px;
  margin: 0;
  padding: 0;
}
.lottery-title {
  text-align: center;
  margin-bottom: 4px;
}
.lottery-name {
  font-size: 1.5rem;
  font-weight: 900;
  color: #333;
  line-height: 1.2;
  text-align: center;
}
.lottery-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px;
  gap: 0;
  font-size: 0.95rem;
  font-weight: 400;
  color: #333;
}
.issue-info {
  text-align: left;
  flex: 1;
  letter-spacing: 0;
  word-spacing: 0;
  font-family: inherit;
  font-weight: 400;
}
.issue-info span {
  letter-spacing: 0;
  word-spacing: 0;
  font-family: inherit;
  font-weight: 400;
}
.issue-number {
  font-weight: 700;
  color: #ff4d4f;
}
.history-link {
  flex-shrink: 0;
  text-align: right;
  color: #409eff;
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.95rem;
  font-weight: 400;
  margin-left: auto;
}
.lottery-numbers-display {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 15px 0;
  gap: 8px;
  flex-wrap: nowrap;
  position: relative;
  z-index: 1;
  padding: 0;
  width: 100%;
  max-width: 100%;
}
.lottery-numbers-row {
  flex-wrap: nowrap;
  width: 100%;
  padding: 0 10px;
}
.number-ball {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  position: relative;
  background: #fff;
  box-shadow: 0 4px 12px #00000026;
  margin: 4px 4px 20px;
  flex-shrink: 0;
  transition: all 0.3s ease;
  overflow: visible;
}
.number-ball:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px #0003;
}
.ball-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
}
.ball-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
@media (max-width: 390px) {
  .lottery-numbers-display,
  .lottery-numbers-row {
    flex-wrap: wrap;
  }
  .number-ball {
    width: 32px;
    height: 32px;
  }
  .ball-content {
    font-size: 12px;
  }
  .ball-number {
    font-size: 0.9rem;
  }
  .ball-zodiac {
    font-size: 0.6rem;
    bottom: -14px;
  }
}
.special-ball {
  transform: scale(1.1);
  z-index: 2;
}
.ball-number {
  font-size: 1rem;
  font-weight: 800;
  color: #000;
  margin: 0;
  z-index: 2;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
  text-align: center;
  letter-spacing: 0.5px;
}
.ball-zodiac {
  position: absolute;
  left: 50%;
  bottom: -16px;
  transform: translate(-50%);
  font-size: 0.65rem;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 1px 3px #0000001a;
  z-index: 3;
}
.refresh-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 32px;
  margin: 4px 4px 20px;
  cursor: pointer;
  flex-shrink: 0;
  background-color: #f7b7b7;
  border-radius: 4px;
  position: relative;
  top: 10px;
}
.refresh-text {
  color: red;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
}
.next-issue-info {
  text-align: center;
  position: relative;
  z-index: 5;
  margin: 0;
  padding: 0;
  border-top: 0px solid #eee;
}
.next-issue-text {
  font-size: 0.95rem;
  color: #666;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
}
.next-issue-left {
  text-align: left;
  flex: 1;
}
.countdown-time {
  color: #ff4d4f;
  font-family: monospace;
  font-weight: 700;
  text-align: right;
  flex-shrink: 0;
}
.text-announcement-section {
  background: transparent;
  margin-bottom: 12px;
  box-shadow: none;
  transition: background 0.3s;
  overflow: hidden;
}
.announcement-container {
  display: flex;
  align-items: center;
  padding: 0;
  gap: 8px;
}
.announcement-icon {
  font-size: 1.2rem;
  color: #ff4d4f;
  flex-shrink: 0;
}
.announcement-text-container {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.announcement-text {
  white-space: nowrap;
  color: #333;
  font-size: 0.95rem;
  font-weight: 500;
  animation: scroll-text 20s linear infinite;
  display: inline-block;
}
@keyframes scroll-text {
  0% {
    transform: translate(100%);
  }
  to {
    transform: translate(-100%);
  }
}
.ball-zodiac {
  color: #666;
  background: #f6f6f6;
  border-radius: 4px;
  padding: 0 4px;
  font-weight: 500;
}
.lottery-selector {
  display: flex;
  flex-direction: column;
}
.selector-buttons {
  flex-wrap: wrap;
}
.selector-buttons.capsule-style {
  background: transparent;
  padding: 0;
  border: 1px solid #e0e0e0;
  overflow: hidden;
}
.selector-btn.capsule-btn {
  flex: 1;
  border: none;
  font-weight: 700;
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: center;
}
.selector-btn.capsule-btn.active {
  background: #ef97f7;
  color: #fff;
}
.selector-btn.capsule-btn:not(.active) {
  background: #f9e3fa;
  color: #666;
}
.selector-btn.capsule-btn:hover:not(.active) {
  background: #f9e3fa;
  color: #333;
}
.selector-btn:hover {
  background: #e0e0e0;
  color: #222;
}
.selector-btn.active {
  border-color: #ef97f7;
}
.selector-btn.active:hover {
  background: #ef97f7;
  color: #fff;
}
.browser-tip-section {
  margin-bottom: 0;
  padding: 0;
}
.browser-tip-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
#yxym .gg {
  width: 100%;
  border-collapse: collapse;
}
#yxym .gg td a {
  color: #000;
  text-decoration: none;
  font-weight: 700;
}
#yxym .gg td a:hover {
  text-decoration: underline;
}
.yxym-title {
  text-align: center;
  margin: 8px 0;
  font-weight: 900;
  font-size: 1.1rem;
}
.yxym-title a {
  color: #d90000;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.5rem;
}
.yxym-title a:hover {
  text-decoration: underline;
}
.yxym-between .gg {
  width: 100%;
}
.yxym-between .gg td a {
  color: #000;
  text-decoration: none;
  font-weight: 700;
}
.yxym-between .gg td a:hover {
  text-decoration: underline;
}
.yxym-between-title {
  text-align: center;
  font-weight: 900;
  font-size: 1.1rem;
  background: #ef97f7;
}
.yxym-between-title a {
  color: #d90000;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.5rem;
}
.yxym-between-title a:hover {
  text-decoration: underline;
}
.lottery-selector {
  gap: 10px;
  margin: 16px 0;
}
.selector-buttons {
  display: flex;
}
.selector-buttons.capsule-style {
  border-radius: 6px;
  gap: 0;
}
.selector-btn {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  min-height: 36px;
}
.selector-btn.capsule-btn {
  font-size: 0.75rem;
  padding: 8px 10px;
}
.selector-btn.capsule-btn:first-child {
  border-radius: 4px 0 0 4px;
}
.selector-btn.capsule-btn:last-child {
  border-radius: 0 4px 4px 0;
}
* {
  word-wrap: break-word;
  overflow-wrap: break-word;
}
body {
  overflow-x: hidden;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    Segoe UI,
    Roboto,
    Helvetica Neue,
    Arial,
    sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
  min-height: 100vh;
  transition: all 0.3s ease;
  max-width: 480px !important;
  width: 100% !important;
  margin: 2px auto !important;
  border: 2px solid #ef97f7;
}
@keyframes spin {
  0% {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes slideIn {
  0% {
    transform: translate(100%);
    opacity: 0;
  }
  to {
    transform: translate(0);
    opacity: 1;
  }
}
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0000001a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb {
  background: #3498db80;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3498dbb3;
}
.lottery-result-header {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
@media (max-width: 600px) {
  .lottery-result-header {
    font-size: 1.3rem;
  }
}
.lottery-numbers-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  gap: 4px;
}
.banner-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0;
  border-radius: 0;
  box-sizing: border-box;
}
