/* ============================================================
   ky_mahjong · home.css
   首页 8 大 section + MOBILE ENHANCED
   ============================================================ */

/* ============ HERO ============ */
.kys-hero {
  position: relative;
  text-align: center;
  padding: 100px 0 80px;
  background: linear-gradient(180deg, #f0f4ff 0%, #fff 100%);
  overflow: hidden;
}
.kys-hero-grid-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(var(--kys-primary-rgb),.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--kys-primary-rgb),.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 40%, transparent 100%);
}
.kys-hero h1 { font-size: clamp(28px, 4.5vw, 48px); margin-bottom: 20px; }
.kys-hero p { color: var(--kys-text-2); max-width: 640px; margin: 0 auto 36px; font-size: 17px; line-height: 1.7; }
.kys-hero-btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.kys-hero-btns .btn-hero-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--kys-primary); color: #fff;
  padding: 14px 32px; border-radius: 50px;
  font-weight: 600; font-size: 16px;
  transition: all .25s;
}
.kys-hero-btns .btn-hero-primary:hover { background: #0a58ca; color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(var(--kys-primary-rgb),.3); }
.kys-hero-btns .btn-hero-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--kys-text);
  padding: 14px 32px; border-radius: 50px;
  font-weight: 600; font-size: 16px;
  border: 2px solid var(--kys-border);
  transition: all .25s;
}
.kys-hero-btns .btn-hero-ghost:hover { border-color: var(--kys-primary); color: var(--kys-primary); transform: translateY(-2px); }

/* ============ ABOUT ============ */
.kys-about { padding: 80px 0; background: #fff; }
.kys-about p { color: var(--kys-text-2); font-size: 16px; line-height: 1.8; margin-bottom: 16px; }
.kys-illustration {
  background: linear-gradient(135deg, var(--kys-primary), #6f42c1);
  padding: 48px 24px;
  min-height: 200px;
  display: flex; align-items: center; justify-content: center;
}

/* ============ WHY US ============ */
.kys-why { padding: 80px 0; background: var(--kys-bg-2); }
.kys-why-main {
  background: var(--kys-primary); color: #fff;
  border-radius: var(--kys-radius);
  padding: 40px 28px; height: 100%;
  text-align: center;
}
.kys-why-main h3 { color: #fff; margin-bottom: 20px; }
.kys-why-main p { color: rgba(255,255,255,.85); }
.kys-why-main .kys-icon-circle { background: rgba(255,255,255,.2); color: #fff; }
.kys-why-item {
  background: #fff; border-radius: var(--kys-radius);
  padding: 28px 20px; text-align: center; height: 100%;
  transition: transform .2s, box-shadow .2s;
}
.kys-why-item:hover { transform: translateY(-4px); box-shadow: var(--kys-shadow-lg) !important; }
.kys-why-item h4 { font-size: 18px; margin: 12px 0 8px; }
.kys-why-item p { font-size: 14px; color: var(--kys-text-2); margin: 0; }

/* ============ STATS 热力地图 ============ */
.kys-stats { padding: 80px 0; background: #fff; }
.kys-stats-map {
  position: relative;
  background: linear-gradient(135deg, #0a1628, #1a1145);
  border-radius: 20px;
  height: 380px;
  overflow: hidden;
}
.kys-stats-map::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 30% 45%, rgba(var(--kys-primary-rgb),.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 70% 55%, rgba(111,66,193,.1) 0%, transparent 60%);
}
.kys-stats-map::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 30px 30px;
}
.kys-heat-dot {
  position: absolute; z-index: 2;
  width: 14px; height: 14px;
  background: #ffc107; border-radius: 50%;
  box-shadow: 0 0 16px 4px rgba(255,193,7,.4);
  animation: kys-pulse 2s ease-in-out infinite;
}
.kys-heat-dot span {
  position: absolute; top: -24px; left: 50%; transform: translateX(-50%);
  font-size: 11px; color: rgba(255,255,255,.7); white-space: nowrap;
}
.kys-heat-dot.dot-1 { top: 35%; left: 72%; }
.kys-heat-dot.dot-2 { top: 55%; left: 68%; animation-delay: .3s; }
.kys-heat-dot.dot-3 { top: 30%; left: 45%; animation-delay: .6s; }
.kys-heat-dot.dot-4 { top: 65%; left: 30%; animation-delay: .9s; }
.kys-heat-dot.dot-5 { top: 38%; left: 18%; animation-delay: 1.2s; }
@keyframes kys-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: .6; }
}

/* ============ SECURITY 网络拓扑 ============ */
.kys-security { padding: 80px 0; background: var(--kys-bg-2); }
.kys-sec-network {
  position: relative;
  width: 100%; max-width: 560px;
  height: 400px;
  margin: 0 auto;
}
.kys-core {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 130px; height: 130px;
  background: linear-gradient(135deg, var(--kys-primary), #6f42c1);
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; z-index: 3;
  box-shadow: 0 0 40px rgba(var(--kys-primary-rgb),.3);
}
.kys-core i { font-size: 32px; margin-bottom: 6px; }
.kys-core small { font-size: 12px; opacity: .85; }
.kys-node {
  position: absolute; z-index: 2;
  width: 120px; text-align: center;
}
.kys-node i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: #fff; color: var(--kys-primary);
  font-size: 22px; margin-bottom: 8px;
  box-shadow: var(--kys-shadow);
  border: 2px solid rgba(var(--kys-primary-rgb),.15);
}
.kys-node-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.kys-node small { font-size: 12px; color: var(--kys-text-2); }
.kys-node.node-tl { top: 0; left: 5%; }
.kys-node.node-tr { top: 0; right: 5%; }
.kys-node.node-bl { bottom: 0; left: 5%; }
.kys-node.node-br { bottom: 0; right: 5%; }
.kys-sec-network::before,
.kys-sec-network::after {
  content: '';
  position: absolute; z-index: 1;
  border: 1px dashed rgba(var(--kys-primary-rgb),.25);
}
.kys-sec-network::before {
  top: 15%; left: 20%; width: 60%; height: 70%;
  border-radius: 50%;
}
.kys-sec-network::after {
  top: 25%; left: 30%; width: 40%; height: 50%;
  border-radius: 50%;
}

/* ============ FAQ 时间轴 ============ */
.kys-faq { padding: 80px 0; background: #fff; }
.kys-faq-list { position: relative; max-width: 720px; margin: 0 auto; padding-left: 48px; }
.kys-faq-list::before {
  content: '';
  position: absolute; left: 22px; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--kys-primary), #6f42c1, rgba(111,66,193,.2));
  border-radius: 2px;
}
.kys-faq-step { position: relative; margin-bottom: 32px; display: flex; gap: 20px; align-items: flex-start; }
.kys-faq-step:last-child { margin-bottom: 0; }
.kys-faq-num {
  position: absolute; left: -48px;
  width: 44px; height: 44px;
  background: var(--kys-primary); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
  box-shadow: 0 4px 12px rgba(var(--kys-primary-rgb),.3);
  flex-shrink: 0;
}
.kys-faq-body { flex: 1; padding-top: 6px; }
.kys-faq-body h5 { font-size: 17px; margin-bottom: 8px; }
.kys-faq-body p { font-size: 15px; color: var(--kys-text-2); margin: 0; line-height: 1.7; }

/* ============ APP 推广 ============ */
.kys-app {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--kys-dark) 0%, var(--kys-dark-2) 100%);
  color: #fff;
}
.kys-app h2 { color: #fff; margin-bottom: 16px; }
.kys-app-rating {
  display: inline-flex; flex-direction: column; gap: 4px;
  background: rgba(255,255,255,.08);
  padding: 12px 20px; border-radius: 12px;
  margin-bottom: 24px; font-size: 14px;
}
.kys-app-rating i { color: #ffc107; }
.kys-badge-row .badge {
  background: rgba(255,255,255,.12); color: rgba(255,255,255,.85);
  padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 500;
}
.kys-mockup {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  padding: 48px 24px;
  backdrop-filter: blur(10px);
  text-align: center;
}

/* ============ NEWS 头条 ============ */
.kys-news { padding: 80px 0; background: var(--kys-bg-2); }
.kys-news-list { display: flex; flex-direction: column; gap: 16px; max-width: 800px; margin: 0 auto; }
.kys-news-item {
  display: flex; align-items: center; gap: 20px;
  background: #fff; border-radius: var(--kys-radius);
  padding: 20px; transition: all .2s;
  color: var(--kys-text); text-decoration: none;
  border: 1px solid var(--kys-border);
}
.kys-news-item:hover { transform: translateX(6px); box-shadow: var(--kys-shadow); color: var(--kys-text); border-color: rgba(var(--kys-primary-rgb),.3); }
.kys-news-icon {
  width: 72px; height: 72px; flex-shrink: 0;
  background: var(--kys-bg-2); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--kys-muted);
  overflow: hidden;
}
.kys-news-item h4 { font-size: 16px; margin-bottom: 6px; line-height: 1.4; }
.kys-news-item p { font-size: 14px; color: var(--kys-text-2); margin: 0; line-height: 1.5; }
.kys-news-empty { text-align: center; padding: 48px 20px; color: var(--kys-muted); }

/* ============ FINAL CTA ============ */
.kys-final {
  padding: 80px 0; text-align: center;
  background: linear-gradient(180deg, #fff 0%, #f0f4ff 100%);
}
.kys-final h2 { margin-bottom: 16px; }
.kys-final p { color: var(--kys-text-2); margin-bottom: 32px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ============================================================
   MOBILE ENHANCED - home
   ============================================================ */
@media (max-width: 991.98px) {
  .kys-hero { padding: 72px 0 56px; }
  .kys-stats-map { height: 280px; }
  .kys-sec-network { height: 340px; max-width: 440px; }
  .kys-core { width: 100px; height: 100px; }
  .kys-core i { font-size: 24px; }
  .kys-node { width: 100px; }
  .kys-node i { width: 48px; height: 48px; font-size: 18px; }
  .kys-app { padding: 56px 0; }
}

@media (max-width: 768px) {
  .kys-hero { padding: 56px 0 40px; }
  .kys-hero h1 { font-size: 1.6rem; }
  .kys-hero p { font-size: 15px; }
  .kys-hero-btns .btn-hero-primary,
  .kys-hero-btns .btn-hero-ghost { padding: 12px 24px; font-size: 14px; }
  .kys-about, .kys-why, .kys-stats, .kys-security,
  .kys-faq, .kys-news, .kys-final { padding: 48px 0; }
  .kys-stats-map { height: 220px; border-radius: 14px; }
  .kys-heat-dot span { display: none; }
  .kys-sec-network { height: 280px; max-width: 320px; }
  .kys-core { width: 80px; height: 80px; }
  .kys-core i { font-size: 20px; }
  .kys-core small { font-size: 10px; }
  .kys-node { width: 80px; }
  .kys-node i { width: 40px; height: 40px; font-size: 16px; }
  .kys-node-title { font-size: 12px; }
  .kys-node small { display: none; }
  .kys-faq-list { padding-left: 40px; }
  .kys-faq-num { left: -40px; width: 36px; height: 36px; font-size: 14px; }
  .kys-news-item { flex-direction: column; align-items: flex-start; }
  .kys-news-icon { width: 100%; height: 120px; }
}

@media (max-width: 480px) {
  .kys-hero { padding: 40px 0 32px; }
  .kys-hero-btns { flex-direction: column; align-items: center; }
  .kys-hero-btns .btn-hero-primary,
  .kys-hero-btns .btn-hero-ghost { width: 100%; justify-content: center; padding: 12px 20px; }
  .kys-illustration { padding: 32px 16px; min-height: 160px; }
  .kys-why-main { padding: 28px 20px; }
  .kys-stats-map { height: 180px; }
  .kys-sec-network { height: 240px; max-width: 280px; }
  .kys-core { width: 64px; height: 64px; }
  .kys-core i { font-size: 16px; }
  .kys-core small { display: none; }
  .kys-node i { width: 36px; height: 36px; font-size: 14px; }
  .kys-node-title { font-size: 11px; }
  .kys-faq-list { padding-left: 36px; }
  .kys-faq-list::before { left: 16px; }
  .kys-faq-num { left: -36px; width: 32px; height: 32px; font-size: 12px; }
  .kys-faq-body h5 { font-size: 15px; }
  .kys-faq-body p { font-size: 14px; }
}
