/* ============================================
   Cryptonio 风格首屏 · 复用自
   addons/offweb/view/cryptonio/index.html
   仅提取与首页第一屏相关样式，避免污染其他屏
   ============================================ */

/* 字体（来自 cryptonio fonts/ZhankuHigherBlack/font.css） */
@font-face {
  font-family: "ZhankuHigherBlack";
  src: url("/assets/addons/offweb/themes/cryptonio/fonts/ZhankuHigherBlack/ZhankuHigherBlack.woff2") format("woff2"),
       url("/assets/addons/offweb/themes/cryptonio/fonts/ZhankuHigherBlack/ZhankuHigherBlack.ttf") format("truetype");
  font-display: swap;
}

/* ---------- 首屏容器 ---------- */
.cryptonio-hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  background: linear-gradient(135deg, #020c59 0%, #0b1e68 35%, #132067 70%, #020c59 100%);
  color: #fff;
  overflow: hidden;
  z-index: 1;
}
.cryptonio-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 400px at 15% 20%, rgba(67, 215, 150, 0.18), transparent 60%),
    radial-gradient(700px 380px at 85% 30%, rgba(247, 140, 160, 0.18), transparent 60%),
    radial-gradient(900px 500px at 50% 90%, rgba(94, 92, 230, 0.18), transparent 60%);
  pointer-events: none;
}
.cryptonio-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
  pointer-events: none;
}
#particles-js-cryptonio {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cryptonio-hero .hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 120px 0 80px;
}
.cryptonio-hero .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ---------- 顶部导航（与首屏一体） ---------- */
.cryptonio-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 28px 0 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}
.cryptonio-nav.is-sticky {
  position: fixed;
  background: #020c59;
  box-shadow: 0 4px 20px rgba(2, 12, 89, 0.4);
  padding: 12px 0;
}
.cryptonio-nav .nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cryptonio-nav .brand img {
  height: 38px;
  display: block;
  filter: brightness(0) invert(1);
}
.cryptonio-nav .nav-list {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cryptonio-nav .nav-list a {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-decoration: none;
  position: relative;
  padding: 12px 0;
  transition: color 0.3s ease;
}
.cryptonio-nav .nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #1edfd2;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.cryptonio-nav .nav-list a:hover,
.cryptonio-nav .nav-list a.active {
  color: #43d796;
}
.cryptonio-nav .nav-list a:hover::after,
.cryptonio-nav .nav-list a.active::after {
  transform: scaleX(1);
}
.cryptonio-nav .nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.cryptonio-nav .nav-actions .token {
  display: inline-flex;
  align-items: center;
  padding: 9px 22px;
  border-radius: 50px;
  background: #30e08e;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.cryptonio-nav .nav-actions .token:hover {
  background: #43d796;
  box-shadow: 0 6px 20px rgba(48, 224, 142, 0.4);
  transform: translateY(-1px);
}

/* ---------- 中部主视觉 ---------- */
.cryptonio-intro {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.cryptonio-intro .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid rgba(67, 215, 150, 0.4);
  border-radius: 50px;
  background: rgba(67, 215, 150, 0.08);
  color: #43d796;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.cryptonio-intro .eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #43d796;
  box-shadow: 0 0 10px #43d796;
}
.cryptonio-intro h1 {
  font-family: "ZhankuHigherBlack", "Microsoft Yahei", sans-serif;
  font-size: 62px;
  font-weight: 500;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 24px;
  letter-spacing: 1px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.cryptonio-intro h1 .gradient {
  background: linear-gradient(to bottom, #9982ed 0%, #f879b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cryptonio-intro p.lead {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  max-width: 720px;
  margin: 0 auto 40px;
  font-weight: 300;
}
.cryptonio-intro .actions {
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.cryptonio-intro .btn-crypto {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.cryptonio-intro .btn-primary-crypto {
  background: linear-gradient(to right, #f78ca0, #fe9a8b);
  color: #fff;
  box-shadow: 0 12px 30px rgba(247, 140, 160, 0.4);
}
.cryptonio-intro .btn-primary-crypto:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(247, 140, 160, 0.5);
}
.cryptonio-intro .btn-ghost-crypto {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.cryptonio-intro .btn-ghost-crypto:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

/* ---------- 滚动提示 ---------- */
.cryptonio-hero .hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cryptonio-hero .hero-scroll::before {
  content: "";
  width: 1px;
  height: 30px;
  background: rgba(255,255,255,0.4);
  animation: scrollLine 2s infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- 解决方案条（cryptonio 也有） ---------- */
.cryptonio-feats {
  position: relative;
  z-index: 2;
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.cryptonio-feats .feat-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: all 0.4s ease;
}
.cryptonio-feats .feat-item:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.08);
  border-color: rgba(67, 215, 150, 0.4);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.cryptonio-feats .feat-item .icon {
  font-size: 30px;
  color: #43d796;
  margin-bottom: 12px;
  display: inline-block;
}
.cryptonio-feats .feat-item h3 {
  font-family: "Microsoft Yahei", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  margin: 0 0 6px;
  letter-spacing: 0.5px;
}
.cryptonio-feats .feat-item p {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
  margin: 0;
}

/* ---------- 动态效果 ---------- */
/* 首屏标题渐入 */
.cryptonio-intro .eyebrow {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}
.cryptonio-intro h1 {
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}
.cryptonio-intro p.lead {
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
}
.cryptonio-intro .actions {
  animation: fadeInUp 0.8s ease 0.6s forwards;
  opacity: 0;
}

/* 能力卡片渐入（带延迟） */
.cryptonio-feats .feat-item {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}
.cryptonio-feats .feat-item:nth-child(1) { animation-delay: 0.8s; }
.cryptonio-feats .feat-item:nth-child(2) { animation-delay: 0.9s; }
.cryptonio-feats .feat-item:nth-child(3) { animation-delay: 1.0s; }
.cryptonio-feats .feat-item:nth-child(4) { animation-delay: 1.1s; }
.cryptonio-feats .feat-item:nth-child(5) { animation-delay: 1.2s; }

/* 渐入动画定义 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 导航栏滑入 */
.cryptonio-nav {
  animation: slideDown 0.6s ease forwards;
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Logo脉冲效果 */
@keyframes logoPulse {
  0%, 100% { filter: brightness(0) invert(1); }
  50% { filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(67, 215, 150, 0.6)); }
}
.cryptonio-nav .brand:hover img {
  animation: logoPulse 1.5s ease infinite;
}

/* 按钮光效 */
.cryptonio-intro .btn-primary-crypto {
  position: relative;
  overflow: hidden;
}
.cryptonio-intro .btn-primary-crypto::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: btnShine 3s ease infinite;
}
@keyframes btnShine {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

/* 能力卡片图标动画 */
.cryptonio-feats .feat-item:hover .icon {
  animation: iconBounce 0.6s ease;
}
@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .cryptonio-nav .nav-list { display: none; }
  .cryptonio-intro h1 { font-size: 38px; }
  .cryptonio-intro p.lead { font-size: 15px; }
  .cryptonio-feats { grid-template-columns: repeat(2, 1fr); }
}
