:root {
  --primary-blue: #3B82F6;
  --primary-blue-light: #60A5FA;
  --accent-gold: #F59E0B;
  --bg-primary: #F8FAFC;
  --bg-secondary: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-border: rgba(0, 0, 0, 0.06);
  --text-primary: #1E293B;
  --text-secondary: #64748B;
  --text-muted: #94A3B8
}

[data-theme="dark"] {
  --bg-primary: #0a0f1a;
  --bg-secondary: #121928;
  --bg-card: rgba(18, 25, 40, 0.85);
  --bg-card-border: rgba(255, 255, 255, 0.08);
  --text-primary: #E8ECF4;
  --text-secondary: #94A3B8;
  --text-muted: #64748B
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
  overflow-x: hidden
}

img {
  display: block
}

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-primary);
  padding-top: 70px
}

.aurora-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden
}

.float-blob-blue,
.float-blob-orange,
.float-blob-purple,
.float-blob-top {
  position: absolute;
  border-radius: 50%
}

.float-blob-blue {
  top: 10%;
  left: 10%;
  width: 600px;
  height: 600px;
  background: rgba(59, 130, 246, .2);
  filter: blur(120px);
  animation: fb1 20s ease-in-out infinite
}

.float-blob-orange {
  bottom: 10%;
  right: 10%;
  width: 500px;
  height: 500px;
  background: rgba(251, 146, 60, .18);
  filter: blur(110px);
  animation: fb2 25s ease-in-out infinite
}

.float-blob-purple {
  bottom: 20%;
  left: 20%;
  width: 450px;
  height: 450px;
  background: rgba(139, 92, 246, .15);
  filter: blur(100px);
  animation: fb3 22s ease-in-out infinite
}

.float-blob-top {
  top: 5%;
  right: 20%;
  width: 400px;
  height: 400px;
  background: rgba(34, 211, 238, .12);
  filter: blur(90px);
  animation: fb4 18s ease-in-out infinite
}

[data-theme="dark"] .float-blob-blue {
  background: rgba(59, 130, 246, .12)
}

[data-theme="dark"] .float-blob-orange {
  background: rgba(251, 146, 60, .08)
}

[data-theme="dark"] .float-blob-purple {
  background: rgba(139, 92, 246, .08)
}

[data-theme="dark"] .float-blob-top {
  background: rgba(34, 211, 238, .06)
}

@keyframes fb1 {

  0%,
  100% {
    transform: translate(0, 0) scale(1)
  }

  25% {
    transform: translate(30px, -20px) scale(1.05)
  }

  50% {
    transform: translate(-20px, 30px) scale(.95)
  }

  75% {
    transform: translate(20px, 20px) scale(1.02)
  }
}

@keyframes fb2 {

  0%,
  100% {
    transform: translate(0, 0) scale(1)
  }

  33% {
    transform: translate(-40px, 20px) scale(1.08)
  }

  66% {
    transform: translate(30px, -30px) scale(.92)
  }
}

@keyframes fb3 {

  0%,
  100% {
    transform: translate(0, 0) scale(1)
  }

  20% {
    transform: translate(25px, 25px) scale(1.03)
  }

  40% {
    transform: translate(-15px, 35px) scale(.97)
  }

  60% {
    transform: translate(-30px, -20px) scale(1.05)
  }

  80% {
    transform: translate(20px, -25px) scale(.98)
  }
}

@keyframes fb4 {

  0%,
  100% {
    transform: translate(0, 0) scale(1)
  }

  50% {
    transform: translate(-35px, 25px) scale(1.1)
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px
}

.hero {
  text-align: center;
  padding: 20px 0 60px
}

header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: 100%;
  max-width: 600px;
  padding: 0 16px
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--bg-card-border);
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .06)
}

.navbar-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .6;
  transition: opacity .2s
}

.navbar-close:hover {
  opacity: 1
}

.navbar-close svg {
  width: 18px;
  height: 18px;
  fill: var(--text-secondary)
}

.notice-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-gold);
  text-align: center;
  flex: 1
}

.hero-title-section {
  margin-bottom: 20px;
  text-align: center
}

.hero-trophy {
  height: 120px;
  width: auto;
  display: block;
  margin: 0 auto 16px;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(245, 158, 11, .35))
}

.hero-title {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.15;
  background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 50%, #F59E0B 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradShift 4s ease infinite
}

@keyframes gradShift {

  0%,
  100% {
    background-position: 0% 50%
  }

  50% {
    background-position: 100% 50%
  }
}

.hero-description {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 16px auto 0;
  line-height: 1.6
}

.brand-cards-section {
  margin-bottom: 20px
}

.section-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 20px;
  text-align: center;
  letter-spacing: 2px;
  text-transform: uppercase
}

.brand-grid {
  display: flex;
  flex-direction: column;
  gap: 12px
}

.brand-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border-radius: 18px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--bg-card-border);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease
}

.brand-card:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, .35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25)
}

.brand-card-logo {
  flex: 0 0 auto;
  width: 124px;
  height: 124px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  overflow: hidden;
  position: relative
}

.brand-card-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, .06), transparent 50%);
  pointer-events: none
}

.brand-card-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain
}

.card-ky .brand-card-logo {
  background: linear-gradient(135deg, #142a4a, #1e3e6b)
}

.card-jy .brand-card-logo {
  background: linear-gradient(135deg, #1a1a3e, #2e2460)
}

.card-hth .brand-card-logo {
  background: linear-gradient(135deg, #1c1c2e, #2a2a40)
}

.card-mk .brand-card-logo {
  background: linear-gradient(135deg, #1e2340, #2c3358)
}

.card-ai .brand-card-logo {
  background: linear-gradient(135deg, #1a2540, #2c3358)
}

.brand-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: center
}

.brand-card-head {
  display: flex;
  align-items: center;
  gap: 8px
}

.brand-card-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: .3px
}

.brand-card-tag {
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  letter-spacing: .5px;
  color: #fff;
  line-height: 1.5;
  white-space: nowrap
}

.brand-card-tag.rec {
  background: linear-gradient(135deg, #F43F5E, #BE123C);
  box-shadow: 0 2px 8px rgba(244, 63, 94, .4)
}

.brand-card-tag.new {
  background: linear-gradient(135deg, #10B981, #059669)
}

.brand-card-tag.hot {
  background: linear-gradient(135deg, #F59E0B, #EF4444)
}

.brand-card-tag.top {
  background: linear-gradient(135deg, #3B82F6, #1D4ED8)
}

.brand-card-tag.vip {
  background: linear-gradient(135deg, #8B5CF6, #6D28D9)
}

.brand-card-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
  min-width: 0;
  position: relative;
  padding-left: 12px
}

.brand-card-info::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 14px;
  border-radius: 2px
}

.brand-card-info.team::before {
  background: linear-gradient(180deg, #60A5FA, #3B82F6)
}

.brand-card-info.act::before {
  background: linear-gradient(180deg, #FBBF24, #F59E0B)
}

.info-key {
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
  color: var(--text-muted);
  letter-spacing: .3px
}

.marquee {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent)
}

.marquee-track {
  display: flex;
  gap: 5px;
  width: max-content;
  animation: marquee 25s linear infinite;
  will-change: transform
}

.marquee:hover .marquee-track {
  animation-play-state: paused
}

@keyframes marquee {
  from {
    transform: translateX(0)
  }

  to {
    transform: translateX(-50%)
  }
}

.chip {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
  white-space: nowrap;
  line-height: 1.6;
  flex-shrink: 0
}

.brand-card-info.team .chip {
  background: rgba(59, 130, 246, .14);
  color: #60A5FA
}

.brand-card-info.act .chip {
  background: rgba(245, 158, 11, .12);
  color: var(--accent-gold)
}

@media (min-width:769px) {
  .marquee.pc-wrap {
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none
  }

  .marquee.pc-wrap .marquee-track {
    flex-wrap: wrap;
    width: auto;
    animation: none;
    transform: none;
    gap: 4px
  }

  .marquee.pc-wrap .chip-dup {
    display: none
  }
}

.brand-card-btns {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.bc-btn {
  flex: 1;
  padding: 8px 22px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s ease;
  border: none;
  min-height: 34px;
  text-align: center;
  min-width: 120px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box
}

.bc-btn.primary {
  background: var(--primary-blue);
  color: #fff
}

.bc-btn.primary:hover {
  background: var(--primary-blue-light);
  box-shadow: 0 3px 10px rgba(59, 130, 246, .3)
}

.bc-btn.ghost {
  background: transparent;
  border: 1.5px solid var(--bg-card-border);
  color: var(--text-secondary)
}

.bc-btn.ghost:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue)
}

.backup-section {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--bg-card-border);
  border-radius: 16px;
  padding: 24px
}

.backup-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px
}

.backup-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary)
}

.backup-tip {
  font-size: 12px;
  color: var(--text-muted)
}

.backup-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

.backup-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(59, 130, 246, .06);
  border: 1px solid var(--bg-card-border);
  border-radius: 50px;
  transition: border-color .2s ease, box-shadow .2s ease;
  min-height: 44px
}

.backup-item:hover {
  border-color: rgba(59, 130, 246, .35);
  box-shadow: 0 4px 12px rgba(59, 130, 246, .08)
}

.backup-url {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-blue);
  letter-spacing: .3px
}

.backup-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  letter-spacing: .3px;
  white-space: nowrap
}

.backup-tag.tag-domestic {
  color: #10B981;
  background: rgba(16, 185, 129, .12)
}

.backup-tag.tag-overseas {
  color: var(--accent-gold);
  background: rgba(245, 158, 11, .14)
}

.backup-copy-btn {
  padding: 8px 16px;
  background: var(--primary-blue);
  border: none;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: background .2s ease;
  min-width: 56px;
  min-height: 32px
}

.backup-copy-btn:hover {
  background: var(--primary-blue-light)
}

.backup-copy-btn:active {
  opacity: .9
}

.backup-copy-btn.copied {
  background: #10B981
}

.site-footer {
  text-align: center;
  padding: 24px 16px 32px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.8
}

@media (max-width:900px) {
  .hero-trophy {
    height: 100px
  }

  .hero-title {
    font-size: 52px
  }
}

@media (max-width:768px) {
  header {
    top: 8px;
    padding: 0 12px
  }

  .navbar {
    padding: 8px 16px
  }

  .hero-content {
    padding: 0 16px
  }

  .hero {
    padding: 10px 0 40px
  }

  .hero-trophy {
    height: 80px
  }

  .hero-title {
    font-size: 40px;
    letter-spacing: -1px
  }

  .hero-description {
    font-size: 14px
  }

  .brand-grid {
    gap: 10px
  }

  .brand-card {
    padding: 16px;
    gap: 16px;
    grid-template-columns: auto 1fr;
    grid-template-areas: "logo body" "btns btns";
    row-gap: 10px
  }

  .brand-card-logo {
    grid-area: logo;
    width: 84px;
    height: 84px;
    padding: 10px
  }

  .brand-card-body {
    grid-area: body
  }

  .brand-card-btns {
    grid-area: btns;
    flex-direction: row
  }

  .brand-card-name {
    font-size: 15px
  }

  .brand-card-promo {
    font-size: 11px
  }

  .bc-btn {
    padding: 7px 0;
    font-size: 11px;
    min-height: 32px;
    min-width: 0
  }

  .backup-section {
    padding: 20px 16px
  }

  .backup-list {
    gap: 10px
  }

  .backup-item {
    padding: 12px 16px;
    gap: 10px
  }

  .backup-url {
    font-size: 13px
  }
}

@media (max-width:480px) {
  .hero-section {
    padding-top: 60px
  }

  .backup-list {
    grid-template-columns: 1fr
  }

  .backup-item {
    padding: 10px 14px;
    gap: 8px;
    min-height: 40px
  }

  .backup-url {
    font-size: 13px;
    flex-shrink: 0
  }

  .backup-tag {
    font-size: 18px;
    padding: 8px 16px;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis
  }

  .backup-copy-btn {
    padding: 6px 12px;
    font-size: 11px;
    min-height: 28px;
    min-width: 48px;
    flex-shrink: 0
  }

  .hero-trophy {
    height: 60px
  }

  .hero-title {
    font-size: 26px;
    letter-spacing: -0.5px
  }

  .brand-grid {
    gap: 8px
  }

  .brand-card {
    padding: 14px;
    gap: 14px;
    row-gap: 8px
  }

  .brand-card-logo {
    width: 76px;
    height: 76px;
    padding: 8px;
    border-radius: 12px
  }

  .brand-card-name {
    font-size: 14px
  }

  .bc-btn {
    border-radius: 6px
  }
}

@media (prefers-reduced-motion:reduce) {

  .float-blob-blue,
  .float-blob-orange,
  .float-blob-purple,
  .float-blob-top,
  .hero-title {
    animation: none
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important
  }
}
