/* =========================================================
   Aurora Public · refined navigation portal
   Calm, pale-blue palette inspired by 8w.si but not identical:
     - Our typography (SF Pro / PingFang SC) stays
     - Compact horizontal cards (8w.si-style) for density
     - The 聚鑫模拟器 feature button keeps its warm brand gradient
   ========================================================= */

:root {
  --bg:            #f4f7fb;
  --bg-elev:       #ffffff;
  --bg-soft:       #eef4ff;
  --bg-tint:       #e8efff;
  --text:          #0b1b33;
  --text-soft:     #3b5275;
  --text-muted:    #6b7a92;
  --border:        rgba(15, 40, 90, .08);
  --border-strong: rgba(15, 40, 90, .14);
  --accent:        #1f6feb;
  --accent-strong: #0b5ad9;
  --accent-bright: #2aa8ff;
  --accent-soft:   rgba(31, 111, 235, .10);
  --warm:          linear-gradient(135deg, #ff4d4d, #ff8a3d);
  --shadow-1:      0 1px 2px rgba(13, 50, 102, .06), 0 1px 1px rgba(13, 50, 102, .04);
  --shadow-2:      0 12px 30px -8px rgba(13, 50, 102, .14);
  --shadow-3:      0 22px 50px -16px rgba(13, 50, 102, .25);
  --hover-shadow:  0 10px 22px rgba(31, 111, 235, .22);
  --radius-sm: 10px;
  --radius:    14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --transition: .25s cubic-bezier(.4, 0, .2, 1);
  --max-w: 1180px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(ellipse 1200px 600px at 50% -200px, rgba(47, 123, 255, .10), transparent),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }

/* ===================== Navbar ===================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, rgba(238, 244, 255, .95), rgba(232, 239, 255, .85));
  -webkit-backdrop-filter: saturate(180%) blur(16px);
          backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 12px 20px;
  display: flex; align-items: center; gap: 14px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 700; letter-spacing: -.015em;
}
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent-strong) 0%, var(--accent-bright) 100%);
  color: white; display: grid; place-items: center;
  font-weight: 700; font-size: 13px;
  box-shadow: 0 4px 10px rgba(31, 111, 235, .35), inset 0 1px 0 rgba(255,255,255,.30);
}
.brand-logo {
  height: 32px; width: auto; max-width: 160px;
  object-fit: contain;
  border-radius: 6px;
}
.brand-name {
  background: linear-gradient(120deg, var(--text), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-spacer { flex: 1; }

.nav-search {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.75);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  max-width: 380px; flex: 1;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.nav-search:focus-within {
  background: var(--bg-elev);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(31, 111, 235, .14);
}
.nav-search input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: transparent;
  font-size: 14px;
}
.nav-search input::placeholder { color: var(--text-muted); }
.nav-search svg { width: 16px; height: 16px; color: var(--text-muted); flex-shrink: 0; }

/* ===================== Hero / banner swiper — auto-scaling, no crop ===================== */
.hero {
  max-width: var(--max-w); margin: 22px auto 0;
  padding: 0 20px;
}
.banner {
  position: relative; overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #e8efff, #f4f7fb);
  box-shadow: var(--shadow-2);
  border: 1px solid var(--border);
}
.banner-track {
  display: flex;
  transition: transform .6s cubic-bezier(.4, 0, .2, 1);
}
.banner-slide {
  /* Wide, casino-banner-friendly aspect; image shown in full (contain), letterbox filled with blurred copy of itself */
  flex: 0 0 100%;
  position: relative;
  aspect-ratio: 3 / 1;
  background: var(--bg-soft);
  overflow: hidden;
}
.banner-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(22px) saturate(1.1) brightness(.92);
  transform: scale(1.15);
  z-index: 0;
}
.banner-img {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.banner-caption {
  position: absolute; left: 24px; bottom: 24px;
  color: white;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .35);
  font-size: 20px; font-weight: 700; letter-spacing: -.015em;
  max-width: 60%;
}
.banner-dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 2;
}
.banner-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255, 255, 255, .50); cursor: pointer;
  transition: width var(--transition), background var(--transition);
}
.banner-dots span.active { width: 18px; border-radius: 4px; background: rgba(255, 255, 255, .95); }

/* ===================== Marquee — pill shape, blue gradient ===================== */
.marquee {
  max-width: var(--max-w); margin: 14px auto 0;
  padding: 0 20px;
}
.marquee-inner {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent-bright));
  color: #fff;
  border-radius: 12px;
  padding: 10px 16px;
  box-shadow: 0 8px 20px rgba(31, 111, 235, .25);
  overflow: hidden;
}
.marquee-icon {
  width: 24px; height: 24px; flex-shrink: 0;
  border-radius: 50%; background: rgba(255, 255, 255, .22);
  display: grid; place-items: center;
}
.marquee-icon svg { width: 12px; height: 12px; color: white; }
.marquee-text {
  white-space: nowrap; overflow: hidden;
  position: relative; flex: 1;
}
.marquee-track {
  display: inline-flex; gap: 40px;
  animation: marquee 32s linear infinite;
  white-space: nowrap;
  font-size: 13px; font-weight: 500;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===================== Quick-links pills (8w.si exact pattern) ===================== */
.quick-links-wrap {
  max-width: var(--max-w); margin: 16px auto 0;
  padding: 0 20px;
}
.quick-links {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; align-items: center;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .9), rgba(236, 244, 255, .85));
  border: 1px solid rgba(47, 123, 255, .15);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(37, 79, 152, .1);
}
.quick-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 26px;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent-bright));
  color: #fff;
  font-size: 14px; font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(31, 111, 235, .25);
  transition: transform .2s, box-shadow .2s;
}
.quick-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(31, 111, 235, .35);
}

/* ===================== Section header — centered, gradient underline (8w.si style) ===================== */
.section { max-width: var(--max-w); margin: 22px auto 0; padding: 0 20px; }
.section-head {
  display: flex; justify-content: center; align-items: center;
  position: relative;
  margin: 22px 0 24px;
  text-align: center;
}
.section-head h2 {
  font-size: 26px; font-weight: 900;
  color: #0f2250;
  letter-spacing: 1px;
  margin: 0;
  position: relative;
  padding-bottom: 10px;
}
.section-head h2::after {
  content: ""; position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 110px; height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent-strong), var(--accent-bright), transparent);
  box-shadow: 0 6px 16px rgba(31, 111, 235, .25);
}
.section-head .sub { display: none; }
.section-head .spacer { display: none; }

/* ===================== App grid — 8w.si-style cards (grid layout, full-width CTA below) ===================== */
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
}

.app-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-areas:
    "avatar meta"
    "cta    cta";
  align-items: flex-start;
  gap: 9px;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .66);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .66), rgba(245, 250, 255, .56));
  -webkit-backdrop-filter: blur(12px) saturate(1.08);
          backdrop-filter: blur(12px) saturate(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .85),
    0 14px 30px rgba(26, 68, 138, .13);
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  opacity: 0;
  transform: translateY(12px) scale(.985);
  animation: appCardIn .55s cubic-bezier(.22, 1, .36, 1) forwards;
  animation-delay: var(--stagger, 0ms);
}
@keyframes appCardIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.app-card:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: rgba(84, 151, 255, .48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .88),
    0 16px 36px rgba(37, 92, 184, .20);
}

/* Avatar — circle with blue ring */
.app-logo {
  grid-area: avatar;
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 2px solid rgba(31, 111, 235, .18);
  box-shadow: 0 8px 18px rgba(31, 111, 235, .18);
  background: var(--bg-soft);
  overflow: hidden;
  display: grid; place-items: center;
  font-size: 20px; font-weight: 700;
  color: var(--accent);
}
.app-logo img { width: 100%; height: 100%; object-fit: cover; }

/* Meta column */
.app-info {
  grid-area: meta;
  display: flex; flex-direction: column;
  min-width: 0;
}
.app-title {
  font-size: 16px; font-weight: 700;
  color: var(--text);
  margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: -.01em;
  line-height: 1.2;
}
.app-desc {
  font-size: 13px;
  color: var(--text-soft);
  margin: 3px 0 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.app-rating {
  display: flex; align-items: center; gap: 6px;
  margin-top: 6px;
  flex-wrap: nowrap;
}
.app-stars { display: inline-flex; gap: 2px; flex: 0 0 auto; }
.app-stars svg {
  width: 14px; height: 14px;
  fill: var(--accent);
  filter: drop-shadow(0 2px 6px rgba(31, 111, 235, .25));
}
.app-score {
  font-size: 12px;
  color: var(--text-soft);
  font-weight: 600;
  white-space: nowrap;
}

/* Full-width pill CTA below */
.app-go {
  grid-area: cta;
  margin: 4px 0 0;
  width: 100%;
  text-align: center;
  padding: 7px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .48);
  background: linear-gradient(110deg, #2f7bff 0%, #50a8ff 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .3px;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .26),
    0 8px 18px rgba(47, 123, 255, .34);
  position: relative;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s, filter .25s;
}
.app-go::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .55), transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s ease;
  pointer-events: none;
}
.app-card:hover .app-go {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 12px 24px rgba(47, 123, 255, .45);
  filter: brightness(1.05);
}
.app-card:hover .app-go::after { transform: translateX(120%); }

.empty {
  text-align: center; padding: 50px 20px; color: var(--text-muted);
  background: var(--bg-elev); border: 1px dashed var(--border-strong); border-radius: var(--radius);
}

/* ===================== Ad block (middle ads) ===================== */
.ad-strip {
  max-width: var(--max-w); margin: 30px auto 0;
  padding: 0 20px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.ad-tile {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  padding: 16px 18px;
  color: white;
  min-height: 90px;
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, #243f6f 0%, #0f2250 100%);
  transition: transform var(--transition), box-shadow var(--transition);
}
.ad-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.ad-tile .ad-icon {
  width: 38px; height: 38px; border-radius: 12px;
  background: rgba(255, 255, 255, .12);
  display: grid; place-items: center; flex-shrink: 0;
}
.ad-tile .ad-icon svg { width: 18px; height: 18px; }
.ad-tile h3 { margin: 0 0 2px; font-size: 14px; font-weight: 600; }
.ad-tile p { margin: 0; opacity: .75; font-size: 12px; }
.ad-tile.alt { background: linear-gradient(135deg, var(--accent-strong) 0%, #122248 100%); }

/* ===================== Support cards ===================== */
.support { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}
.support-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex; align-items: center; gap: 12px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.support-card:hover { transform: translateY(-2px); box-shadow: var(--hover-shadow); border-color: rgba(31, 111, 235, .25); }
.support-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-soft);
  display: grid; place-items: center;
  flex-shrink: 0;
  color: var(--accent);
}
.support-icon svg { width: 18px; height: 18px; }
.support-card h4 { margin: 0 0 2px; font-size: 14px; font-weight: 600; }
.support-card p  { margin: 0; font-size: 12px; color: var(--text-muted); }

/* ===================== Footer ===================== */
.foot {
  max-width: var(--max-w); margin: 36px auto 0;
  padding: 22px 20px 30px;
  text-align: center;
  font-size: 12px; color: var(--text-muted);
  border-top: 1px solid var(--border);
}
.foot-links { display: inline-flex; gap: 16px; margin-bottom: 10px; }
.foot-links a { color: var(--text-soft); transition: color var(--transition); }
.foot-links a:hover { color: var(--accent); }

/* ===================== Floating support FAB ===================== */
.float-support {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent-bright));
  color: white;
  display: grid; place-items: center;
  box-shadow: 0 12px 26px -6px rgba(31, 111, 235, .55);
  cursor: pointer; border: 0;
  transition: transform var(--transition);
}
.float-support:hover { transform: translateY(-2px) scale(1.04); }
.float-support svg { width: 20px; height: 20px; }

/* ===================== Responsive ===================== */
/* ===================== Responsive ===================== */
@media (max-width: 1024px) {
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head h2 { font-size: 24px; }
}
@media (max-width: 720px) {
  .nav-inner { padding: 10px 14px; gap: 10px; }
  .nav-search { display: none; }
  .hero, .marquee, .feature-strip, .section, .ad-strip, .support, .foot { padding-left: 14px; padding-right: 14px; }
  .hero, .feature-strip { margin-top: 16px; }
  .section { margin-top: 14px; }
  .section-head h2 { font-size: 22px; letter-spacing: .6px; }
  .section-head h2::after { width: 96px; height: 3.5px; }
  .banner-slide { aspect-ratio: 16 / 7; }
  .banner-caption { font-size: 14px; left: 12px; bottom: 10px; max-width: 80%; padding: 4px 10px; background: rgba(0,0,0,.40); border-radius: 8px; }

  /* Cards — slightly tighter */
  .app-card {
    padding: 10px; gap: 8px; border-radius: 16px;
    grid-template-columns: 50px minmax(0, 1fr);
  }
  .app-logo { width: 50px; height: 50px; }
  .app-title { font-size: 15px; }
  .app-desc { font-size: 12px; -webkit-line-clamp: 2; }
  .app-stars svg { width: 13px; height: 13px; }
  .app-score { font-size: 11.5px; }
  .app-go { font-size: 12px; padding: 7px 10px; }

  .feature-btn { padding: 3px; border-radius: 20px; gap: 12px; }
  .feature-btn::before { inset: 3px; border-radius: 17px; }
  .feature-icon { width: 50px; height: 50px; border-radius: 14px; margin-left: 12px; }
  .feature-icon svg { width: 24px; height: 24px; }
  .feature-glow { left: 12px; width: 76px; height: 76px; }
  .feature-text h3 { font-size: 18px; }
  .feature-text p { font-size: 12px; }
  .feature-badge { font-size: 9.5px; padding: 2px 8px; }
  .float-support { right: 14px; bottom: 14px; width: 48px; height: 48px; }
}
@media (max-width: 480px) {
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .section-head h2 { font-size: 20px; }
  .app-card {
    padding: 9px; gap: 6px; border-radius: 14px;
    grid-template-columns: 42px minmax(0, 1fr);
  }
  .app-logo { width: 42px; height: 42px; font-size: 16px; }
  .app-title { font-size: 14px; }
  .app-desc { font-size: 12px; line-height: 1.25; margin-top: 2px; }
  .app-rating { margin-top: 4px; gap: 4px; }
  .app-stars svg { width: 12px; height: 12px; }
  .app-score { font-size: 11px; }
  .app-go {
    font-size: 11px; padding: 6px 8px;
    border-radius: 10px; margin-top: 3px;
  }
  .feature-cta span { display: none; }
  .feature-cta { padding: 9px; width: 36px; height: 36px; justify-content: center; margin-right: 10px; }
}
