/* ============================================================
 * 金岭矿业 · 官网首页样式（深色科技风 · 文字醒目版 20260928）
 * 背景沿用初版深色；文字 / 按钮 / 卡片对比度按客户意见增强
 * ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  /* 背景：还原原版深色科技蓝 */
  background: linear-gradient(160deg, #050a15 0%, #081226 45%, #0b1a33 100%);
  color: #f2f7ff;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---------- 背景层 ---------- */
#bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
}

/* 微网格（远景） */
.grid-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(94, 158, 214, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 158, 214, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 30%, transparent 78%);
}

/* 流动光晕 */
.glow {
  position: fixed;
  z-index: 1;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.55;
}
.glow.g1 {
  width: 46vw; height: 46vw;
  left: -12vw; top: -16vw;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.34), transparent 70%);
  animation: drift1 22s ease-in-out infinite alternate;
}
.glow.g2 {
  width: 40vw; height: 40vw;
  right: -10vw; bottom: -14vw;
  background: radial-gradient(circle, rgba(212, 162, 76, 0.16), transparent 70%);
  animation: drift2 26s ease-in-out infinite alternate;
}
.glow.g3 {
  width: 30vw; height: 30vw;
  right: 16vw; top: 6vw;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.14), transparent 70%);
  animation: drift1 30s ease-in-out infinite alternate-reverse;
}
@keyframes drift1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(6vw, 4vw) scale(1.12); }
}
@keyframes drift2 {
  from { transform: translate(0, 0) scale(1.06); }
  to   { transform: translate(-5vw, -4vw) scale(0.94); }
}

/* ---------- 内容层 ---------- */
.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 顶栏 */
.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 26px clamp(20px, 5vw, 64px) 0;
}
.brand-badge {
  width: 46px; height: 46px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(4, 16, 38, 0.40);
  flex: none;
}
.brand-badge img { width: 28px; height: 28px; display: block; }
.brand-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(4, 16, 38, 0.55);
}
.brand-sub {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 3px;
  color: #d3e5fb;
  margin-left: 2px;
  padding-left: 14px;
  border-left: 1px solid rgba(211, 229, 251, 0.55);
}

/* 中央区 */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8vh 24px 6vh;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 6px;
  color: #eaf4ff;
  padding: 9px 24px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  text-shadow: 0 1px 8px rgba(4, 16, 38, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeUp 0.9s ease both;
}
.kicker::before, .kicker::after {
  content: "";
  width: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, #ffffff);
}
.kicker::after { background: linear-gradient(90deg, #ffffff, transparent); }

/* 三组标语 */
.motto {
  margin-top: 5vh;
  display: flex;
  gap: clamp(20px, 4vw, 56px);
  flex-wrap: wrap;
  justify-content: center;
}
.motto-item {
  animation: fadeUp 1s ease both;
  min-width: 232px;
  padding: 28px 32px 24px;
  border-radius: 16px;
  /* 卡片比底色略深，保证金色大字的对比度 */
  border: 1px solid rgba(255, 255, 255, 0.30);
  background: linear-gradient(180deg, rgba(8, 26, 52, 0.55), rgba(10, 30, 60, 0.38));
  box-shadow: 0 14px 34px rgba(4, 16, 38, 0.30);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.motto-item:nth-child(1) { animation-delay: 0.15s; }
.motto-item:nth-child(2) { animation-delay: 0.3s; }
.motto-item:nth-child(3) { animation-delay: 0.45s; }
.motto-item:hover {
  transform: translateY(-6px);
  border-color: rgba(253, 224, 138, 0.75);
  box-shadow: 0 18px 44px rgba(4, 16, 38, 0.42), 0 0 0 1px rgba(253, 224, 138, 0.28) inset;
}
.motto-word {
  font-size: clamp(30px, 3.9vw, 44px);
  font-weight: 800;
  letter-spacing: 8px;
  margin-right: -8px; /* 抵消最后一字的字距 */
  /* 更亮的金：由近白到暖金，配合发光描边提升醒目度 */
  background: linear-gradient(180deg, #fffdf6 8%, #ffeec2 48%, #f4c368 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #ffeec2;
  filter: drop-shadow(0 0 14px rgba(250, 204, 21, 0.35)) drop-shadow(0 2px 4px rgba(4, 16, 38, 0.55));
}
.motto-line {
  width: 44px; height: 3px;
  margin: 16px auto 12px;
  background: linear-gradient(90deg, transparent, #fcd34d, transparent);
  border-radius: 2px;
}
.motto-note {
  font-size: 13px;
  letter-spacing: 2.5px;
  color: #b9cfe8;
}

.hero-sub {
  margin-top: 5.5vh;
  max-width: 660px;
  font-size: 18px;
  font-weight: 600;
  line-height: 2;
  letter-spacing: 1.5px;
  color: #f2f8ff;
  text-shadow: 0 2px 10px rgba(4, 16, 38, 0.6);
  animation: fadeUp 1s ease 0.6s both;
}

/* 入口按钮：改为亮色实心渐变为整页最强焦点 */
.enter {
  margin-top: 4.5vh;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 54px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: linear-gradient(135deg, #38bdf8 0%, #2563eb 60%, #1d4ed8 100%);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  text-shadow: 0 1px 6px rgba(12, 40, 90, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.35s ease;
  animation: fadeUp 1s ease 0.75s both;
}
.enter .arrow { transition: transform 0.35s ease; }
.enter:hover {
  color: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
}
.enter:hover .arrow { transform: translateX(5px); }

/* 「进入学习平台」按钮下方的辅助链接 */
.enter-links {
  margin-top: 20px;
  animation: fadeUp 1s ease 0.85s both;
}
.sub-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 1px;
  color: #eaf5ff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.50);
  background: rgba(255, 255, 255, 0.16);
  text-shadow: 0 1px 6px rgba(4, 16, 38, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}
.sub-link .ico {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: #ffffff;
  font-size: 12.5px;
  line-height: 17px;
  text-align: center;
  flex: none;
  transition: all 0.3s ease;
}
.sub-link:hover {
  color: #ffffff;
  border-color: #ffffff;
  background: rgba(56, 189, 248, 0.42);
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.40);
}
.sub-link:hover .ico {
  background: rgba(255, 255, 255, 0.85);
  color: #1d4ed8;
}

/* 底栏 */
.footbar {
  text-align: center;
  padding: 0 20px 30px;
  animation: fadeUp 1s ease 0.9s both;
}
.footbar .f1 {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2px;
  color: #d7e6fa;
  text-shadow: 0 1px 6px rgba(4, 16, 38, 0.45);
}
.footbar .f2 {
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: 1px;
  color: #b3c8e2;
}

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

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .motto { flex-direction: column; align-items: center; gap: 16px; }
  .motto-item { min-width: 0; width: 100%; max-width: 400px; padding: 20px 24px 16px; }
  .motto-word { font-size: 30px; letter-spacing: 6px; margin-right: -6px; }
  .kicker { letter-spacing: 4px; font-size: 13px; padding: 8px 18px; }
  .brand-sub { display: none; }
  .hero-sub { font-size: 15.5px; }
  .enter { padding: 15px 40px; font-size: 16px; letter-spacing: 3px; }
  .hero { padding-top: 6vh; }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
