@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;800;900&family=Orbitron:wght@700;800&display=swap");

:root {
  --bg-deep: #070a14;
  --bg-panel: #101729;
  --gold: #f6c453;
  --gold-bright: #ffe9a8;
  --gold-deep: #c8902a;
  --amber: #ff8a00;
  --cyan: #36e2ff;
  --telegram: #27a7e5;
  --text-primary: #ffffff;
  --text-secondary: #94a3c4;
  --text-muted: #5c6685;
  --glass-fill: #ffffff14;
  --glass-stroke: #ffffff26;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg-deep);
  color-scheme: dark;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -84px, rgba(54, 226, 255, 0.22), rgba(7, 10, 20, 0) 270px),
    radial-gradient(circle at 22% 40px, rgba(246, 196, 83, 0.17), rgba(7, 10, 20, 0) 210px),
    linear-gradient(180deg, #091120 0%, var(--bg-deep) 36%, #050813 100%);
  color: var(--text-primary);
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button,
a {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

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

.app-shell {
  width: 100%;
  max-width: 393px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 6px 14px 20px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(16, 23, 41, 0.34), rgba(7, 10, 20, 0) 260px),
    var(--bg-deep);
  box-shadow: 0 0 54px rgba(0, 0, 0, 0.52);
}

main {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 54px;
  margin-bottom: 12px;
}

.brand {
  position: relative;
  display: grid;
  min-width: 140px;
  min-height: 44px;
  padding-left: 48px;
  color: var(--text-primary);
  text-decoration: none;
}

.brand::before {
  position: absolute;
  top: 4px;
  left: 0;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 233, 168, 0.82);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, var(--gold-bright), var(--gold) 38%, var(--gold-deep) 72%),
    linear-gradient(145deg, var(--gold), var(--amber));
  box-shadow: 0 7px 18px rgba(246, 196, 83, 0.28), inset 0 -5px 10px rgba(78, 37, 0, 0.28);
  content: "";
}

.brand::after {
  position: absolute;
  top: 13px;
  left: 9px;
  color: #271800;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  content: "出海";
}

.brand-title {
  align-self: end;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 0 16px rgba(246, 196, 83, 0.32);
}

.brand-subtitle {
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
}

.hero-carousel {
  position: relative;
  height: 186px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: var(--bg-panel);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.42);
  touch-action: pan-y;
  user-select: none;
}

.hero-track {
  display: flex;
  width: 500%;
  height: 100%;
  transform: translateX(0);
  transition: transform 320ms ease;
  will-change: transform;
}

.hero-track.is-dragging {
  transition: none;
}

.hero-slide {
  position: relative;
  flex: 0 0 20%;
  width: 20%;
  height: 186px;
  overflow: hidden;
}

.hero-slide img,
.live-banner img,
.game-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.05) 24%, rgba(4, 7, 15, 0.32) 56%, rgba(2, 4, 9, 0.88) 100%),
    linear-gradient(90deg, rgba(7, 10, 20, 0.42), rgba(7, 10, 20, 0));
  content: "";
}

.hero-content {
  position: absolute;
  inset: 14px 14px 18px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  pointer-events: none;
}

.hero-badge {
  position: absolute;
  top: 0;
  left: 0;
  max-width: 106px;
  min-height: 25px;
  padding: 5px 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 233, 168, 0.45);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 233, 168, 0.92), rgba(246, 196, 83, 0.9));
  color: #241702;
  font-size: 11px;
  font-weight: 900;
  line-height: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 7px 16px rgba(246, 196, 83, 0.26);
}

.hero-content h1,
.hero-content h2 {
  max-width: 76%;
  margin: 0;
  overflow: hidden;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.18;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.72);
}

.hero-content p {
  max-width: 72%;
  margin: 5px 0 0;
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.carousel-status {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  min-width: 42px;
  height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  color: var(--text-secondary);
  font-family: "Orbitron", Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  line-height: 23px;
  text-align: center;
}

.current-slide {
  color: var(--gold-bright);
}

.carousel-dots,
.games-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.carousel-dots {
  position: absolute;
  right: 0;
  bottom: 12px;
  left: 0;
  z-index: 2;
}

.carousel-dot,
.games-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.carousel-dot.is-active,
.games-dot.is-active {
  width: 18px;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold));
  box-shadow: 0 0 12px rgba(246, 196, 83, 0.5);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-header > div {
  position: relative;
  min-width: 0;
  padding-left: 12px;
}

.section-header > div::before {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
  content: "";
}

.live-section .section-header > div::before {
  background: linear-gradient(180deg, var(--cyan), var(--telegram));
}

.section-header h2 {
  margin: 0;
  overflow: hidden;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-header p,
.section-count {
  display: block;
  margin: 3px 0 0;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.section-count {
  color: var(--gold);
}

.section-more {
  flex: 0 0 auto;
  min-width: 50px;
  height: 30px;
  padding: 0 13px;
  border: 1px solid rgba(246, 196, 83, 0.34);
  border-radius: 999px;
  background: rgba(246, 196, 83, 0.1);
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 800;
  line-height: 30px;
}

.games-section {
  overflow: hidden;
}

.games-pages {
  display: flex;
  gap: 14px;
  width: 100%;
  min-height: 222px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.games-pages::-webkit-scrollbar {
  display: none;
}

.games-page {
  display: grid;
  flex: 0 0 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px 9px;
  scroll-snap-align: start;
}

.game-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.game-tile img {
  aspect-ratio: 1 / 1;
  height: 78px;
  overflow: hidden;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
}

.game-tile h3 {
  width: 100%;
  min-height: 30px;
  margin: 0;
  overflow: hidden;
  color: var(--text-primary);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
  overflow-wrap: anywhere;
}

.hot-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  max-width: 36px;
  height: 17px;
  padding: 0 6px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff4b4b, #b60020);
  color: #fff;
  font-family: "Orbitron", Arial, sans-serif;
  font-size: 8px;
  font-weight: 800;
  line-height: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 5px 10px rgba(255, 36, 65, 0.32);
}

.games-pagination {
  height: 17px;
  margin-top: 10px;
}

.primary-cta,
.telegram-cta,
.wechat-cta,
.cooperation-cta {
  position: relative;
  width: 100%;
  overflow: hidden;
  color: #191000;
  font-weight: 900;
  text-align: left;
}

.primary-cta,
.telegram-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 62px;
  min-height: 62px;
  padding: 0 72px 0 18px;
  border-radius: 19px;
  box-shadow: 0 14px 30px rgba(255, 138, 0, 0.25);
}

.primary-cta {
  background:
    radial-gradient(circle at 88% 50%, rgba(255, 233, 168, 0.68), rgba(255, 233, 168, 0) 45px),
    linear-gradient(135deg, var(--gold-bright), var(--gold) 45%, var(--amber));
}

.telegram-cta {
  background:
    radial-gradient(circle at 88% 50%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 45px),
    linear-gradient(135deg, var(--cyan), var(--telegram));
  color: #021827;
  box-shadow: 0 14px 30px rgba(39, 167, 229, 0.25);
}

.primary-cta::before,
.telegram-cta::before {
  position: absolute;
  top: 12px;
  right: 17px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(7, 10, 20, 0.18);
  content: "";
}

.primary-cta::after,
.telegram-cta::after {
  position: absolute;
  top: 22px;
  right: 31px;
  width: 12px;
  height: 12px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  transform: rotate(45deg);
  content: "";
}

.primary-cta span,
.telegram-cta span {
  display: block;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.primary-cta strong,
.telegram-cta strong {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  font-family: "Orbitron", Arial, sans-serif;
  font-size: 10px;
  line-height: 1.25;
  letter-spacing: 0;
  opacity: 0.72;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wechat-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.telegram-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.telegram-actions .telegram-cta {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  height: 58px;
  min-height: 58px;
  padding: 0 10px;
  border-radius: 16px;
  gap: 9px;
}

.telegram-actions .telegram-cta::before,
.telegram-actions .telegram-cta::after {
  content: none;
}

.wechat-cta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  height: 58px;
  min-height: 58px;
  padding: 0 10px;
  flex-direction: row;
  gap: 9px;
  border: 1px solid rgba(54, 226, 255, 0.26);
  border-radius: 16px;
  background:
    radial-gradient(circle at 18% 50%, rgba(7, 193, 96, 0.24), rgba(7, 193, 96, 0) 40px),
    linear-gradient(145deg, rgba(54, 226, 255, 0.13), rgba(255, 255, 255, 0.05)),
    linear-gradient(180deg, rgba(16, 23, 41, 0.98), rgba(22, 31, 52, 0.98));
  color: var(--text-primary);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
}

.contact-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  text-align: left;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  padding: 4px;
  border-radius: 50%;
  color: #ffffff;
}

.contact-icon-telegram {
  background: #27a7e5;
  box-shadow: 0 0 0 3px rgba(39, 167, 229, 0.16), 0 7px 14px rgba(39, 167, 229, 0.22);
}

.contact-icon-wechat {
  background: #07c160;
  box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.16), 0 7px 14px rgba(7, 193, 96, 0.22);
}

.contact-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.contact-icon path {
  fill: currentColor;
}

.contact-icon-wechat circle {
  fill: #07c160;
}

.contact-label {
  min-width: 0;
  overflow: hidden;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-value {
  display: block;
  max-width: 100%;
  margin-top: 2px;
  overflow: hidden;
  color: var(--text-primary);
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.telegram-cta .contact-value {
  color: #021827;
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.contact-hint {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.live-section .section-header {
  margin-bottom: 0;
}

.live-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  width: 100%;
  height: 124px;
  min-height: 124px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
  background: var(--bg-panel);
  color: var(--text-primary);
  text-align: left;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.34);
}

.live-banner img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.live-banner::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(4, 7, 15, 0.9) 0%, rgba(4, 7, 15, 0.58) 58%, rgba(4, 7, 15, 0.18) 100%),
    linear-gradient(180deg, rgba(4, 7, 15, 0.05), rgba(4, 7, 15, 0.8));
  content: "";
}

.live-banner > span,
.live-banner > strong {
  position: relative;
  z-index: 2;
}

.live-kicker {
  max-width: 70%;
  overflow: hidden;
  color: var(--cyan);
  font-family: "Orbitron", Arial, sans-serif;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-banner strong {
  max-width: 70%;
  margin-top: 3px;
  overflow: hidden;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-tags {
  display: flex;
  max-width: 74%;
  gap: 5px;
  margin-top: 8px;
  overflow: hidden;
}

.live-tags span {
  flex: 0 1 auto;
  min-width: 0;
  height: 22px;
  padding: 0 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-size: 10px;
  font-weight: 700;
  line-height: 21px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-banner > .live-action {
  position: absolute;
  right: 14px;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  max-width: 86px;
  height: 28px;
  padding: 0 11px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--telegram));
  color: #061624;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 8px 16px rgba(39, 167, 229, 0.28);
  transform: translateY(-50%);
}

.resource-section {
  padding-bottom: 2px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.resource-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 68px;
  min-width: 0;
  padding: 8px 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04)),
    linear-gradient(180deg, rgba(246, 196, 83, 0.13), rgba(16, 23, 41, 0.82));
  color: var(--text-primary);
  text-align: center;
  box-shadow: 0 9px 18px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.resource-card:nth-child(5) {
  border-color: rgba(246, 196, 83, 0.48);
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 233, 168, 0.48), rgba(255, 233, 168, 0) 46px),
    linear-gradient(150deg, rgba(246, 196, 83, 0.42), rgba(16, 23, 41, 0.82));
  box-shadow: 0 10px 20px rgba(246, 196, 83, 0.18);
}

.resource-card span {
  display: block;
  width: 100%;
  overflow: hidden;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-card:nth-child(5) span {
  color: var(--gold-bright);
}

.resource-card small {
  display: block;
  width: 100%;
  margin-top: 4px;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cooperation-cta {
  height: 48px;
  margin-top: 14px;
  padding: 0 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 48%, var(--gold-deep));
  font-size: 15px;
  line-height: 48px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 12px 26px rgba(246, 196, 83, 0.2);
}

@media (max-width: 359px) {
  .brand {
    min-width: 128px;
    padding-left: 44px;
  }

  .brand-title {
    font-size: 18px;
  }

  .games-page {
    gap: 12px 7px;
  }

  .game-tile img {
    height: 70px;
    border-radius: 14px;
  }

  .primary-cta span,
  .telegram-cta span {
    font-size: 15px;
  }

  .live-tags,
  .live-banner strong,
  .live-kicker {
    max-width: 66%;
  }
}
