/* ==========================================================================
   北京指尖畅游科技有限公司 (www.zjcyou.com) — Nordic Slate Blue Design System
   ========================================================================== */

:root {
  --bg-base: #f6f8fb;
  --bg-wash: radial-gradient(ellipse 80% 40% at 50% 0%, rgba(219, 234, 254, 0.45), transparent 70%);
  --surface: #ffffff;
  --surface-subtle: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;

  --accent: #2b4c7e;
  --accent-hover: #1e3a5f;
  --accent-soft: #eef2f7;
  --accent-soft-border: #cbd5e1;
  --accent-text: #2b4c7e;
  --accent-shadow: rgba(43, 76, 126, 0.18);

  --link-color: #2b4c7e;
  --link-hover: #1e3a5f;

  --hero-bg: radial-gradient(circle at 90% 15%, rgba(43, 76, 126, 0.10), transparent 50%),
    linear-gradient(135deg, #ffffff 0%, #f3f6fb 55%, #e8eff8 100%);
  --hero-border: #dce5f2;
  --hero-grid: rgba(43, 76, 126, 0.035);

  --banner-bg: linear-gradient(135deg, #ffffff 0%, #f4f7fb 65%, #ebf1f8 100%);
  --banner-border: #dbe4f0;
  --footer-bg: #f1f5f9;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 9999px;

  --container-max: 1160px;
  --header-height: 76px;
  --transition: 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-base);
  color: var(--text-secondary);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition), color var(--transition);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg-wash);
  pointer-events: none;
}

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

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  color: var(--link-hover);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

main {
  flex: 1;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  flex-shrink: 0;
}

.brand-logo:hover {
  color: var(--text-primary);
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 4px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 7px 17px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all var(--transition);
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.8);
}

.nav-links a.active {
  color: var(--text-primary);
  font-weight: 600;
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.util-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  white-space: nowrap;
  transition: all var(--transition);
}

.util-link:hover,
.util-link.active {
  color: var(--accent-text);
  border-color: var(--accent-soft-border);
  background: var(--accent-soft);
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  position: fixed;
  inset: var(--header-height) 0 0 0;
  z-index: 95;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 24px;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border);
}

.mobile-drawer.is-open {
  display: flex;
}

.mobile-drawer a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-base);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 500;
}

.mobile-drawer a.active {
  color: var(--accent-text);
  background: var(--accent-soft);
  border-color: var(--accent-soft-border);
  font-weight: 600;
}

.mobile-drawer-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

/* ==========================================================================
   Hero & Page Header Banners
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 48px 0 44px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 56px 52px;
  background: var(--hero-bg);
  border: 1px solid var(--hero-border);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--hero-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-title {
  position: relative;
  z-index: 1;
  margin: 0 0 16px;
  font-size: clamp(32px, 4.8vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.03em;
  color: var(--text-primary);
}

.hero-subtitle {
  position: relative;
  z-index: 1;
  margin: 0 0 32px;
  max-width: 640px;
  font-size: 16.5px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
}

.btn-primary {
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 8px 20px var(--accent-shadow);
}

.btn-primary:hover {
  color: #ffffff;
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px var(--accent-shadow);
}

.btn-secondary {
  color: var(--text-primary);
  background: var(--surface);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  color: var(--accent-text);
  border-color: var(--accent-soft-border);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

/* Subpage compact banner */
.page-banner {
  padding: 36px 0 24px;
}

.page-banner-inner {
  padding: 34px 40px;
  border-radius: var(--radius-lg);
  background: var(--banner-bg);
  border: 1px solid var(--banner-border);
  border-left: 5px solid var(--accent);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.page-banner-title {
  margin: 0 0 6px;
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 700;
  color: var(--text-primary);
}

.page-banner-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* ==========================================================================
   Sections & Cards
   ========================================================================== */
.section {
  padding: 16px 0 64px;
}

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

.section-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: "";
  width: 4px;
  height: 20px;
  border-radius: 4px;
  background: var(--accent);
}

.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.glass-card-interactive:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

/* Game Showcase Grid (Index) */
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.game-card {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

.game-icon-wrap {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  background: var(--bg-base);
}

.game-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.game-card-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.game-card-title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
}

.game-card-title a {
  color: inherit;
}

.game-card-title a:hover {
  color: var(--accent-text);
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-border);
  color: var(--accent-text);
}

.game-card-desc {
  margin: 0 0 16px;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.card-link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.card-link-more:hover {
  color: var(--accent-text);
  background: var(--accent-soft);
  border-color: var(--accent-soft-border);
  transform: translateX(2px);
}

/* Company Stats Strip */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  padding: 24px 20px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
  text-align: center;
}

.stat-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent-text);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* Products Page Layout */
.products-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.product-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-tab-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  text-align: left;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.product-tab-btn:hover {
  border-color: var(--border-strong);
  background: var(--bg-base);
}

.product-tab-btn.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: 0 6px 18px var(--accent-shadow);
  color: var(--text-primary);
}

.product-tab-btn img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.product-tab-meta strong {
  display: block;
  font-size: 15.5px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.product-tab-meta span {
  font-size: 12.5px;
  color: var(--text-muted);
}

.product-panel {
  display: none;
}

.product-panel.active {
  display: block;
  animation: fadeSlideUp 0.28s ease;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-detail-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.product-detail-head h2 {
  margin: 0;
  font-size: 24px;
  color: var(--text-primary);
}

/* Native Carousel */
.carousel-box {
  position: relative;
  max-width: 560px;
  margin: 0 auto 28px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel-slide {
  min-width: 100%;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-subtle);
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  color: var(--text-primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  transition: all var(--transition);
}

.carousel-btn:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: transparent;
}

.carousel-btn.prev {
  left: 12px;
}

.carousel-btn.next {
  right: 12px;
}

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--border-strong);
  cursor: pointer;
  transition: all var(--transition);
}

.carousel-dot.active {
  width: 22px;
  border-radius: 999px;
  background: var(--accent);
}

/* HR & Contact Grids */
.hr-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.hr-nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0 22px;
}

.hr-nav-item {
  display: block;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-base);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-weight: 500;
  transition: all var(--transition);
}

.hr-nav-item:hover {
  border-color: var(--accent-soft-border);
  background: var(--accent-soft);
  color: var(--accent-text);
}

.hr-email-callout {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-border);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 600;
}

.job-card {
  margin-bottom: 20px;
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.job-card:last-child {
  margin-bottom: 0;
}

.job-title {
  margin: 0 0 14px;
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

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

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-border);
  color: var(--accent-text);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.contact-card h2 {
  margin: 0 0 14px;
  font-size: 18px;
  color: var(--text-primary);
}

.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
}

.info-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-base);
  border: 1px solid var(--border);
}

.info-list strong {
  color: var(--text-muted);
  font-weight: 500;
}

.info-list a {
  color: var(--text-primary);
  font-weight: 600;
}

.info-list a:hover {
  color: var(--accent-text);
}

/* Long-form Prose & Compliance Cards */
.prose-card h2 {
  margin: 0 0 18px;
  font-size: 21px;
  color: var(--text-primary);
}

.prose-card h3,
.prose-card h4 {
  margin: 26px 0 10px;
  font-size: 16.5px;
  color: var(--text-primary);
}

.prose-card p {
  margin: 0 0 14px;
  color: var(--text-secondary);
}

.prose-card p.indent {
  text-indent: 2em;
}

.prose-card ul,
.prose-card ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.prose-card li {
  margin-bottom: 8px;
}

.download-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
}

.download-grid .btn-primary {
  color: #ffffff;
  background: var(--accent);
}

.download-grid .btn-primary:hover {
  color: #ffffff;
  background: var(--accent-hover);
}

.step-figure {
  margin: 20px 0;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--bg-base);
  border: 1px solid var(--border);
  display: inline-block;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  padding: 36px 0 28px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  color: var(--text-secondary);
  font-weight: 500;
}

.footer-nav a:hover {
  color: var(--text-primary);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 20px;
}

.footer-company {
  font-weight: 500;
  color: var(--text-muted);
}

.footer-beian {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.footer-beian a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}

.footer-beian a:hover {
  color: var(--text-primary);
}

.footer-beian img {
  width: 16px;
  height: 16px;
}

.footer-copyright {
  margin-top: 16px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .games-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .products-layout,
  .hr-layout {
    grid-template-columns: 1fr;
  }

  .product-sidebar {
    flex-direction: row;
    overflow-x: auto;
  }

  .product-tab-btn {
    min-width: 240px;
  }
}

@media (max-width: 860px) {
  .nav-links,
  .header-actions .util-link {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-section {
    padding: 28px 0 28px;
  }

  .hero-card {
    padding: 36px 24px;
  }

  .page-banner-inner {
    padding: 26px 24px;
  }

  .glass-card {
    padding: 24px 20px;
  }

  .game-card {
    flex-direction: column;
  }
}
