/* ==========================================================
   O鲸鲸 官网 · home.css
   首屏 Hero / 时钟 / 液态玻璃按钮区 / 功能入口卡
   ========================================================== */

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../img/hero.jpg') center / cover no-repeat;
  overflow: hidden;
}

.hero-mask {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 92% 56% at 50% 64%,
      rgba(8, 15, 35, .40) 0%,
      rgba(8, 15, 35, .12) 55%,
      rgba(8, 15, 35, 0) 80%),
    linear-gradient(180deg,
      rgba(8, 15, 35, .55) 0%,
      rgba(8, 15, 35, .24) 30%,
      rgba(8, 15, 35, .26) 56%,
      rgba(10, 18, 40, .92) 100%);
}

.hero-inner {
  position: relative; z-index: 2;
  width: 100%;
  max-width: 560px;
  padding: calc(var(--nav-h) + 8px) 22px 90px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Logo 头像 */
.hero-avatar { margin-bottom: 14px; }
.hero-avatar img {
  width: 92px; height: 92px; border-radius: 50%;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, .35),
    0 0 0 7px rgba(90, 160, 255, .14),
    0 0 40px rgba(90, 160, 255, .50),
    0 12px 32px rgba(0, 0, 0, .50);
  animation: avatarFloat 5s ease-in-out infinite;
}
@keyframes avatarFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.hero-title {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 6px;
  text-indent: 6px; /* 平衡右侧字距 */
  text-shadow: 0 4px 24px rgba(30, 80, 180, .6);
  background: linear-gradient(180deg, #ffffff 30%, #b8d2ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-slogan {
  margin-top: 8px;
  font-size: 15px;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, .88);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .4);
}
.hero-sub {
  margin-top: 5px;
  font-size: 12px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, .62);
}

/* ---------- 时钟 ---------- */
.hero-clock { margin-top: 26px; }
.clk-time {
  display: flex; align-items: baseline; justify-content: center;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
#clk-hm {
  font-size: 52px; font-weight: 200; letter-spacing: 2px;
  text-shadow: 0 2px 18px rgba(60, 120, 220, .55), 0 1px 3px rgba(0, 0, 0, .6);
}
.clk-sec {
  font-size: 20px; font-weight: 300; color: rgba(255, 255, 255, .55);
  margin-left: 6px;
  position: relative; top: -2px;
}
.clk-line {
  margin-top: 7px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .74);
  letter-spacing: 1px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
}
.clk-dot { margin: 0 7px; opacity: .5; }

/* ---------- 液态玻璃按钮区 ---------- */
.cta {
  margin-top: 30px;
  display: flex; flex-direction: column; align-items: center;
  gap: 14px;
  width: 100%;
}
.cta-main {
  width: 300px; height: 92px;
  display: flex; align-items: center; justify-content: center;
}
.cta-row {
  display: flex; align-items: center; justify-content: center;
  gap: 12px;
}
.cta-row > div {
  width: 156px; height: 84px;
  display: flex; align-items: center; justify-content: center;
}

/* 无 WebGL / 降级兜底按钮（JS 注入） */
.fallback-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 168px; height: 52px;
  margin: 16px auto;
  padding: 0 30px;
  font-size: 16px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, #5a9df5, #4179d6);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(40, 100, 200, .45);
  cursor: pointer;
}
.fallback-btn.small { min-width: 104px; height: 46px; font-size: 14px; padding: 0 22px; }

/* WebGL 不可用时的纯 HTML 入口（JS 注入） */
.cta-plain-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 96px; height: 44px; padding: 0 20px;
  font-size: 14px; font-weight: 500; color: #fff;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  transition: .2s;
}
.cta-plain-btn:hover { background: rgba(255, 255, 255, .2); }
.cta-plain-btn.primary {
  background: linear-gradient(135deg, #5a9df5, #4179d6);
  border-color: rgba(255, 255, 255, .3);
  box-shadow: 0 8px 24px rgba(40, 100, 200, .45);
}

/* ---------- 向下滚动提示 ---------- */
.hero-scroll {
  position: absolute;
  left: 50%; bottom: 22px; z-index: 2;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 11px; letter-spacing: 3px;
  color: rgba(255, 255, 255, .72);
  cursor: pointer;
  animation: scrollHint 2.6s ease-in-out infinite;
}
.hero-scroll .arrow {
  width: 10px; height: 10px;
  border-right: 1.5px solid rgba(255, 255, 255, .85);
  border-bottom: 1.5px solid rgba(255, 255, 255, .85);
  transform: rotate(45deg);
  margin-top: -2px;
}
@keyframes scrollHint {
  0%, 100% { transform: translate(-50%, 0); opacity: .75; }
  50% { transform: translate(-50%, 7px); opacity: 1; }
}

/* ---------- 功能入口卡 ---------- */
.entry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.entry-card {
  padding: 16px 8px 14px;
  text-align: center;
  background: var(--c-card);
  border: 1px solid var(--c-card-line);
  border-radius: 14px;
  transition: .22s;
}
.entry-card:hover {
  background: rgba(255,255,255,.10);
  border-color: rgba(120, 170, 255, .35);
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0, 20, 60, .4);
}
.entry-ico {
  font-size: 25px;
  line-height: 1.2;
  filter: drop-shadow(0 4px 10px rgba(40, 100, 200, .35));
}
.entry-t { margin-top: 8px; font-size: 14px; font-weight: 600; letter-spacing: 1px; }
.entry-d { margin-top: 3px; font-size: 10.5px; color: var(--c-dim-2); }

/* ---------- 桌面端微调 ---------- */
@media (min-width: 720px) {
  .hero-title { font-size: 54px; }
  #clk-hm { font-size: 64px; }
  .clk-sec { font-size: 24px; }
  .hero-avatar img { width: 108px; height: 108px; }
  .cta-main { width: 340px; height: 100px; }
  .cta-row > div { width: 175px; height: 92px; }
}

/* 小屏高度适配（如横屏手机） */
@media (max-height: 640px) {
  .hero-avatar img { width: 72px; height: 72px; }
  .hero-title { font-size: 34px; }
  #clk-hm { font-size: 42px; }
  .hero-clock { margin-top: 16px; }
  .cta { margin-top: 20px; }
  .hero-scroll { display: none; }
}