@import url("/css/site-nav.css");

:root {
  --bg: #070b12;
  --card: #101827;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --green: #4ade80;
  --cyan: #22d3ee;
  --violet: #a78bfa;
  --pink: #f472b6;
  --emerald: #34d399;
  --sky: #38bdf8;
  --amber: #fb923c;
  --indigo: #818cf8;
}

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

body {
  min-height: 100vh;
  font-family: "Outfit", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse 70% 45% at 15% -5%, rgba(74, 222, 128, 0.1), transparent 55%),
    radial-gradient(ellipse 55% 40% at 90% 10%, rgba(167, 139, 250, 0.08), transparent 50%),
    var(--bg);
}

body.page-home {
  background: var(--bg);
}

body.page-play {
  background:
    radial-gradient(ellipse 60% 40% at 80% -5%, rgba(244, 114, 182, 0.1), transparent 55%),
    radial-gradient(ellipse 50% 35% at 10% 20%, rgba(56, 189, 248, 0.08), transparent 50%),
    var(--bg);
}

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  background: rgba(7, 11, 18, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

/* —— Home cinematic hero —— */
.hero-stage {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    url("/assets/hero-home.jpg") center right / cover no-repeat;
  transform: scale(1.02);
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 8, 14, 0.88) 0%, rgba(4, 8, 14, 0.55) 42%, rgba(4, 8, 14, 0.18) 68%, rgba(4, 8, 14, 0.35) 100%),
    linear-gradient(180deg, rgba(4, 8, 14, 0.4) 0%, transparent 30%, transparent 70%, rgba(7, 11, 18, 0.55) 100%);
}

.top-over-hero {
  position: relative;
  z-index: 3;
  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: none;
  justify-content: flex-end;
}

.top-nav-end {
  margin-left: auto;
}

.top-over-hero .top-brand span {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.top-quick {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
  cursor: pointer;
}

.top-chip:hover {
  background: rgba(34, 211, 238, 0.14);
  border-color: rgba(34, 211, 238, 0.35);
  color: #e0f7fa;
}

.tools-dd {
  position: relative;
}

.tools-dd-btn .tools-dd-caret {
  font-size: 0.7rem;
  opacity: 0.75;
  line-height: 1;
}

.tools-dd.is-open .tools-dd-btn {
  background: rgba(34, 211, 238, 0.16);
  border-color: rgba(34, 211, 238, 0.4);
}

.tools-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 11.5rem;
  padding: 0.4rem;
  border-radius: 14px;
  background: rgba(12, 18, 28, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  z-index: 20;
}

.tools-menu[hidden] {
  display: none !important;
}

.tools-menu-item {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}

.tools-menu-item[hidden] {
  display: none !important;
}

.tools-menu-item:hover,
.tools-menu-item:focus-visible {
  background: rgba(34, 211, 238, 0.12);
  color: #e0f7fa;
  outline: none;
}

.top-brand-icon img {
  display: block;
}

.hero-copy {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 36rem;
  padding: 2rem 1.5rem 4.5rem;
  margin-left: clamp(0.5rem, 4vw, 3.5rem);
  animation: hero-rise 0.85s ease-out both;
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0;
}

.hero-brand-mark {
  width: clamp(2.75rem, 8vw, 3.5rem);
  height: clamp(2.75rem, 8vw, 3.5rem);
  flex-shrink: 0;
  filter: drop-shadow(0 10px 28px rgba(34, 211, 238, 0.22));
  animation: hero-mark 1.1s ease-out both;
}

@keyframes hero-mark {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.hero-brand-stack {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-brand-zh {
  font-family: "Syne", "Outfit", sans-serif;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(248, 250, 252, 0.92);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero-brand-letters {
  font-size: clamp(2.6rem, 9vw, 4.2rem);
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.35));
}

.hero-brand-letters i {
  animation: letter-pop 0.7s ease-out both;
}

.hero-brand-letters .l0 { animation-delay: 0.05s; }
.hero-brand-letters .l1 { animation-delay: 0.1s; }
.hero-brand-letters .l2 { animation-delay: 0.15s; }
.hero-brand-letters .l3 { animation-delay: 0.2s; }
.hero-brand-letters .l4 { animation-delay: 0.25s; }

@keyframes letter-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-brand:hover .hero-brand-letters i:nth-child(odd) {
  transform: translateY(-3px);
  filter: brightness(1.15);
}

.hero-brand:hover .hero-brand-letters i:nth-child(even) {
  transform: translateY(-5px);
  filter: brightness(1.2);
}

.hero-tagline {
  margin-top: 1.25rem;
  max-width: 26rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  animation: hero-rise 0.9s ease-out 0.12s both;
}

.hero-tagline-zh {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 600;
  line-height: 1.4;
  color: rgba(248, 250, 252, 0.95);
}

.hero-tagline-en {
  font-size: clamp(0.92rem, 2vw, 1.05rem);
  font-weight: 500;
  line-height: 1.45;
  color: rgba(148, 163, 184, 0.95);
}

.wrap-below-hero {
  position: relative;
  z-index: 2;
  background: var(--bg);
  padding-top: 2.5rem;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.section-head .section-label {
  margin: 0;
}

.section-head .rank-note {
  margin: 0;
}

@media (max-width: 720px) {
  .top-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
  }

  .top-quick {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
  }

  .top-over-hero {
    align-items: flex-start;
  }

  .hero-bg {
    background-position: 68% center;
  }

  .hero-veil {
    background:
      linear-gradient(180deg, rgba(4, 8, 14, 0.55) 0%, rgba(4, 8, 14, 0.72) 42%, rgba(4, 8, 14, 0.88) 100%),
      linear-gradient(90deg, rgba(4, 8, 14, 0.7) 0%, rgba(4, 8, 14, 0.35) 100%);
  }

  .hero-copy {
    margin-left: 0;
    padding: 1.25rem 1.25rem 3.5rem;
    justify-content: flex-end;
  }
}

.top-brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.top-brand img {
  width: 2rem;
  height: 2rem;
  display: block;
}

.top-brand span {
  font-family: "Syne", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.top-brand-zh {
  font-family: "Syne", "Outfit", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
}

.top-brand-letters,
.hero-brand-letters {
  display: inline-flex;
  align-items: baseline;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.top-brand-letters i,
.hero-brand-letters i {
  font-style: normal;
  display: inline-block;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.top-brand-letters {
  font-size: 1rem;
  gap: 0.01em;
}

.top-brand-letters .l0,
.hero-brand-letters .l0 { color: #22d3ee; }
.top-brand-letters .l1,
.hero-brand-letters .l1 { color: #fb923c; }
.top-brand-letters .l2,
.hero-brand-letters .l2 { color: #4ade80; }
.top-brand-letters .l3,
.hero-brand-letters .l3 { color: #a78bfa; }
.top-brand-letters .l4,
.hero-brand-letters .l4 { color: #f472b6; }

.top-brand:hover .top-brand-letters i:nth-child(1) { transform: translateY(-1px); }
.top-brand:hover .top-brand-letters i:nth-child(2) { transform: translateY(-2px); }
.top-brand:hover .top-brand-letters i:nth-child(3) { transform: translateY(-1px); }
.top-brand:hover .top-brand-letters i:nth-child(4) { transform: translateY(-2px); }
.top-brand:hover .top-brand-letters i:nth-child(5) { transform: translateY(-1px); }

.top-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.top-link {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.top-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.top-link.active {
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.25);
  background: rgba(34, 211, 238, 0.08);
}

.lang-switch {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.lang-btn {
  padding: 0.35rem 0.65rem;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.lang-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.lang-btn.active {
  background: rgba(34, 211, 238, 0.12);
  color: var(--cyan);
}

#dpopd-lang-bar, .dpopd-lang-bar, #dpopd-lang-select, #langSelect, .dpopd-lang-select {
  display: none !important;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 4rem;
}

.hero {
  text-align: center;
  margin-bottom: 2.25rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

.logo-mark {
  width: clamp(3.5rem, 12vw, 4.5rem);
  height: clamp(3.5rem, 12vw, 4.5rem);
  flex-shrink: 0;
  filter: drop-shadow(0 8px 24px rgba(34, 211, 238, 0.15));
}

.logo-text {
  font-family: "Syne", sans-serif;
  font-size: clamp(2.4rem, 8vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #f8fafc 30%, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-compact .logo-text {
  font-size: clamp(1.8rem, 6vw, 2.4rem);
}

.hero-compact .logo-mark {
  width: 2.75rem;
  height: 2.75rem;
}

.tagline {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.rank-note {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem 0.15rem;
}

.section-block {
  margin-bottom: 2.25rem;
}

.apps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem 1.25rem 1.35rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  position: relative;
}

.app-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.app-card.featured {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 1.25rem;
  padding: 1.35rem 1.5rem;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.12), var(--card) 55%);
  border-color: rgba(167, 139, 250, 0.25);
}

@media (max-width: 560px) {
  .app-card.featured {
    flex-direction: column;
    align-items: flex-start;
  }
}

.app-card.featured .app-body { flex: 1; }
.app-card.featured .app-meta { margin-top: 0.25rem; }

.rank-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  min-width: 1.75rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: var(--cyan);
}

.app-card.rank-1 .rank-badge {
  background: rgba(251, 146, 60, 0.15);
  border-color: rgba(251, 146, 60, 0.45);
  color: var(--amber);
}

.app-card.rank-2 .rank-badge,
.app-card.rank-3 .rank-badge {
  background: rgba(167, 139, 250, 0.12);
  border-color: rgba(167, 139, 250, 0.35);
  color: var(--violet);
}

.app-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 700;
  flex-shrink: 0;
}

.app-card.green .app-icon { background: linear-gradient(145deg, rgba(74,222,128,0.25), rgba(34,197,94,0.08)); color: var(--green); }
.app-card.sky .app-icon { background: linear-gradient(145deg, rgba(56,189,248,0.25), rgba(99,102,241,0.08)); color: var(--sky); }
.app-card.pink .app-icon { background: linear-gradient(145deg, rgba(244,114,182,0.25), rgba(139,92,246,0.08)); color: var(--pink); }
.app-card.emerald .app-icon { background: linear-gradient(145deg, rgba(52,211,153,0.25), rgba(20,184,166,0.08)); color: var(--emerald); }
.app-card.indigo .app-icon { background: linear-gradient(145deg, rgba(129,140,248,0.25), rgba(99,102,241,0.08)); color: var(--indigo); }
.app-card.amber .app-icon { background: linear-gradient(145deg, rgba(251,146,60,0.25), rgba(234,88,12,0.08)); color: var(--amber); }
.app-card.violet .app-icon { background: linear-gradient(145deg, rgba(167,139,250,0.25), rgba(139,92,246,0.08)); color: var(--violet); }

.app-card h2 { font-size: 1.2rem; font-weight: 600; padding-right: 2rem; }
.app-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  flex: 1;
}

.app-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pill {
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.views {
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.arrow { color: var(--cyan); font-weight: 600; }

.hub-card {
  display: block;
  position: relative;
  overflow: hidden;
  padding: 1.5rem 1.5rem 1.6rem;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(244, 114, 182, 0.22);
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.1), rgba(56, 189, 248, 0.06) 50%, var(--card));
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.hub-card:hover {
  transform: translateY(-3px);
  border-color: rgba(244, 114, 182, 0.4);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.hub-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 600px) {
  .hub-inner { flex-direction: column; align-items: flex-start; }
}

.hub-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  flex-shrink: 0;
}

.hub-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
}

.hub-body { flex: 1; min-width: 0; }

.hub-body h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.hub-body p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.hub-cta {
  flex-shrink: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--pink);
  white-space: nowrap;
}

.hub-glow {
  position: absolute;
  inset: -40% -20% auto auto;
  width: 14rem;
  height: 14rem;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.2), transparent 70%);
  pointer-events: none;
}

.site-footer {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

/* —— Simple inner pages (vision / contact) —— */
.page-simple .top {
  position: sticky;
}

.simple-wrap {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.simple-back {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
}

.simple-back:hover {
  text-decoration: underline;
}

.simple-title {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.simple-sub {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.simple-block {
  margin-bottom: 1.75rem;
}

.simple-block h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: #e2e8f0;
}

.simple-block p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.simple-dl {
  display: grid;
  gap: 1.25rem;
  margin: 0 0 1.5rem;
}

.simple-dl dt {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.simple-dl dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.simple-note {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.simple-dl a {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
}

.simple-dl a:hover {
  text-decoration: underline;
}

.vision-tagline {
  margin-top: 0.35rem;
  margin-bottom: 2rem;
}

.dont-heading {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #e2e8f0;
}

.dont-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: dont;
  display: grid;
  gap: 1.15rem;
}

.dont-list li {
  position: relative;
  padding-left: 2rem;
  counter-increment: dont;
}

.dont-list li::before {
  content: counter(dont);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.3);
}

.dont-list strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 0.3rem;
}

.dont-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
