/* ===========================================================
   杭州创呗工作室 · 创艺 CY
   视觉语言：OreUI（Minecraft 基岩版 UI）原生 CSS 复刻
   —— 无圆角、2px 描边、内嵌斜面高光、按钮下沿 4px 阴影
   =========================================================== */

@font-face {
  font-family: "Minecraft Ten";
  src: url("./Minecraft-Ten.otf") format("opentype");
  font-display: swap;
}

:root {
  /* OreUI 中性色 */
  --neutral-0:        #1e1e1f;
  --neutral-bg:       #313233;
  --neutral-panel:    #48494a;
  --neutral-shadow:   #242425;
  --text:             #ffffff;
  --text-dimmer:      #d0d1d4;
  --text-dimmest:     #b1b2b5;

  /* OreUI 语义色 */
  --primary-bg:       #3c8527;
  --primary-bg-hover: #2a641c;
  --primary-bg-press: #1d4d13;
  --primary-shadow:   #1d4d13;
  --primary-tint:     #6cc349;

  /* 高光 / 阴影 */
  --specular-tl:      rgba(255, 255, 255, 0.15);
  --specular-br:      rgba(255, 255, 255, 0.10);
  --bevel-tl:         rgba(255, 255, 255, 0.80);
  --bevel-br:         rgba(255, 255, 255, 0.60);
  --shade:            rgba(0, 0, 0, 0.40);

  /* 品牌蓝（取自 LOGO） */
  --brand-blue:       #3eaedc;

  --font-pixel: "Minecraft Ten", "PingFang SC", "Microsoft YaHei",
                "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --font-cjk:   "PingFang SC", "Microsoft YaHei", "Noto Sans SC",
                "Source Han Sans SC", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
  font-family: var(--font-cjk);
  background:
    radial-gradient(1100px 520px at 50% -8%, rgba(62, 174, 220, 0.16), transparent 62%),
    radial-gradient(900px 460px at 50% 112%, rgba(60, 133, 39, 0.14), transparent 60%),
    linear-gradient(180deg, #262627 0%, #1c1c1d 46%, #161617 100%);
  overflow-x: hidden;
}

/* 方块网格 + 暗角：模拟游戏内背景 */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 50% 46%, #000 0%, transparent 78%);
          mask-image: radial-gradient(ellipse 78% 62% at 50% 46%, #000 0%, transparent 78%);
}

/* ------------------------------ 主体 ------------------------------ */

.stage {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  width: 100%;
  display: grid;
  place-items: center;
  padding: clamp(28px, 6vw, 72px) clamp(16px, 5vw, 40px);
}

.panel {
  position: relative;
  width: min(100%, 620px);
  padding: clamp(40px, 6vw, 60px) clamp(24px, 5vw, 52px) clamp(38px, 5.4vw, 54px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  background: linear-gradient(180deg, #3d3e40 0%, #343436 38%, #2c2c2e 100%);
  border: 2px solid var(--neutral-0);
  box-shadow:
    inset 3px 3px 0 rgba(255, 255, 255, 0.16),
    inset -3px -3px 0 rgba(0, 0, 0, 0.45),
    0 26px 70px rgba(0, 0, 0, 0.55);
  animation: panel-in 0.45s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

/* 顶部一条极淡的品牌色，暗示 LOGO 的蓝 */
.panel::before {
  content: "";
  position: absolute;
  inset: 2px 2px auto 2px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(62, 174, 220, 0.55), transparent);
  opacity: 0.85;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ------------------------------ LOGO 槽位 ------------------------------ */

.slot {
  position: relative;
  width: clamp(112px, 22vw, 148px);
  height: clamp(112px, 22vw, 148px);
  display: grid;
  place-items: center;
  background: #1b1b1c;
  border: 2px solid #0f0f10;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.06),
    inset 6px 6px 18px rgba(0, 0, 0, 0.65),
    inset -4px -4px 10px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 10px 30px rgba(0, 0, 0, 0.45);
}

.logo {
  display: block;
  width: 76%;
  height: auto;
  filter: drop-shadow(0 0 18px rgba(62, 174, 220, 0.30));
  image-rendering: auto;
}

/* ------------------------------ 文字 ------------------------------ */

.brand {
  margin: 26px 0 0;
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.14;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45);
}

.brand .latin {
  color: var(--brand-blue);
  font-size: 0.92em;
  letter-spacing: 0.06em;
}

.tagline {
  margin: 16px 0 0;
  max-width: 34em;
  font-size: clamp(12.5px, 2.2vw, 14px);
  line-height: 1.7;
  color: var(--text-dimmest);
}

/* 避免「初心」这类被引号包住的词在换行时被拆开 */
.nowrap { white-space: nowrap; }

/* ------------------------------ 按钮（OreUI 原生写法） ------------------------------ */

/* 按钮组：三个入口始终在一行，等宽平分；窄屏靠缩字号保住一行 */
.actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: clamp(28px, 4.4vw, 36px);
}

.actions .btn {
  flex: 1 1 0;
  min-width: 0;
  padding-left: 10px;
  padding-right: 10px;
  gap: 7px;
  font-size: 15.5px;
  white-space: nowrap;
}

.actions .btn span { white-space: nowrap; }

/* 第二行：两个档案入口（金色强调，等宽并列） */
.actions-feature {
  margin-top: 10px;
}

.actions-feature .btn {
  flex: 1 1 0;
  height: 48px;
  font-size: 16.5px;
  letter-spacing: 0.04em;
  background-color: #ffc24b;
  color: #1a1300;
  border-color: #131314;
  box-shadow:
    inset 0 -4px #d99b25,
    inset 3px 3px rgba(255, 255, 255, 0.45),
    inset -3px -7px rgba(0, 0, 0, 0.18);
}

.actions-feature .btn:hover {
  background-color: #ffd16e;
  box-shadow:
    inset 0 -4px #d99b25,
    inset 3px 3px rgba(255, 255, 255, 0.75),
    inset -3px -7px rgba(0, 0, 0, 0.12);
}

.actions-feature .btn:active {
  height: 44px;
  background-color: #e0a62f;
  box-shadow:
    inset 3px 3px rgba(255, 255, 255, 0.75),
    inset -3px -3px rgba(0, 0, 0, 0.12);
}

/* 这两行共用：图标不参与换行 */
.actions-feature .btn-icon,
.actions-feature .btn-arrow { width: 16px; height: 16px; }

/* 第三行：模组联动关系网（蓝色强调，单独一行） */
.actions-net {
  margin-top: 10px;
}

.actions-net .btn {
  flex: 1 1 100%;
  height: 48px;
  font-size: 16.5px;
  letter-spacing: 0.04em;
  background-color: #4aa8d8;
  color: #0d1a22;
  border-color: #131314;
  box-shadow:
    inset 0 -4px #2e7fa8,
    inset 3px 3px rgba(255, 255, 255, 0.45),
    inset -3px -7px rgba(0, 0, 0, 0.18);
}

.actions-net .btn:hover {
  background-color: #63bde9;
  box-shadow:
    inset 0 -4px #2e7fa8,
    inset 3px 3px rgba(255, 255, 255, 0.75),
    inset -3px -7px rgba(0, 0, 0, 0.12);
}

.actions-net .btn:active {
  height: 44px;
  background-color: #3a93c0;
  box-shadow:
    inset 3px 3px rgba(255, 255, 255, 0.75),
    inset -3px -3px rgba(0, 0, 0, 0.12);
}

.actions-net .btn-icon,
.actions-net .btn-arrow { width: 16px; height: 16px; }
/* 第二行：社交平台入口（更矮更暗，不和主按钮抢注意力） */
.actions-social {
  margin-top: 10px;
  gap: 8px;
}

.actions-social .btn {
  height: 38px;
  font-family: var(--font-cjk);   /* 像素字体在 13px 下字母会糊成方块 */
  font-weight: 700;
  letter-spacing: 0;
  padding: 0 8px 4px;
  gap: 6px;
  font-size: 13px;
  background-color: #313233;
  box-shadow:
    inset 0 -4px #1e1e1f,
    inset 3px 3px rgba(255, 255, 255, 0.10),
    inset -3px -7px rgba(255, 255, 255, 0.06);
}

.actions-social .btn:hover {
  background-color: #48494a;
  box-shadow:
    inset 0 -4px #1e1e1f,
    inset 3px 3px rgba(255, 255, 255, 0.20),
    inset -3px -7px rgba(255, 255, 255, 0.14);
}

.actions-social .btn:active {
  height: 34px;
  background-color: #242425;
  box-shadow:
    inset 3px 3px rgba(255, 255, 255, 0.20),
    inset -3px -3px rgba(255, 255, 255, 0.14);
}

.brand-ic {
  width: 16px;
  height: 16px;
  flex: none;
  fill: currentColor;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  min-width: clamp(200px, 46vw, 272px);
  height: 44px;
  padding: 0 24px 6px;

  font-family: var(--font-pixel);
  font-size: 17px;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: #fff;

  background-color: var(--primary-bg);
  border: 2px solid var(--neutral-0);
  box-shadow:
    inset 0 -4px var(--primary-shadow),
    inset 3px 3px var(--specular-tl),
    inset -3px -7px var(--specular-br);

  transition: background-color 0.1s ease, box-shadow 0.1s ease,
              transform 0.06s ease, height 0.1s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.btn:hover {
  background-color: var(--primary-bg-hover);
  box-shadow:
    inset 0 -4px var(--primary-shadow),
    inset 3px 3px var(--bevel-tl),
    inset -3px -7px var(--bevel-br);
}

.btn:active {
  height: 40px;
  transform: translateY(4px);
  background-color: var(--primary-bg-press);
  box-shadow:
    inset 0 0 var(--primary-shadow),
    inset 3px 3px var(--bevel-tl),
    inset -3px -3px var(--bevel-br);
}

.btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.btn-icon,
.btn-arrow {
  width: 15px;
  height: 15px;
  flex: none;
  fill: currentColor;
  opacity: 0.95;
}

.btn-arrow { transition: transform 0.12s ease; }
.btn:hover .btn-arrow { transform: translate(2px, -2px); }

/* ------------------------------ 页脚 ------------------------------ */

.footer {
  position: relative;
  z-index: 1;
  flex: none;
  width: 100%;
  padding: 22px 16px calc(22px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;

  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--text-dimmest);
}

.footer .dot { opacity: 0.5; }

.footer a {
  color: var(--text-dimmest);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  padding-bottom: 1px;
  transition: color 0.12s ease, border-color 0.12s ease;
}

.footer a:hover,
.footer a:focus-visible {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.55);
}

.footer a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* ------------------------------ 细节适配 ------------------------------ */

/* 手机端：和桌面完全同一套排布（三个按钮一行），只缩字号与内边距 */
@media (max-width: 520px) {
  .actions { gap: 8px; }
  .actions .btn {
    gap: 5px;
    padding-left: 6px;
    padding-right: 6px;
    font-size: 12.5px;
    letter-spacing: 0;
  }
  .actions .btn .btn-icon { display: none; }   /* 先收前置图标，给文字腾地方 */
  .btn-icon,
  .btn-arrow { width: 12px; height: 12px; }
  .actions-feature .btn {
    height: 42px; font-size: 13px; letter-spacing: 0;
    padding-left: 6px; padding-right: 6px; gap: 4px;
  }
  .actions-feature .btn-icon { display: none; }
  .actions-net .btn { height: 42px; font-size: 13px; letter-spacing: 0.02em; }
  .actions-net .btn-icon { display: none; }
  .actions-social { gap: 6px; }
  .actions-social .btn { height: 34px; font-size: 11px; padding: 0 5px 3px; gap: 4px; }
  .brand-ic { width: 14px; height: 14px; }
}

/* 极窄屏（≤400）再收一档，保证三个仍在同一行且文字不换行 */
@media (max-width: 400px) {
  .actions { gap: 6px; }
  .actions .btn {
    gap: 4px;
    padding-left: 4px;
    padding-right: 4px;
    font-size: 11.5px;
  }
  .btn-arrow { width: 11px; height: 11px; }
  .actions-social .btn { font-size: 10px; padding: 0 3px 3px; gap: 3px; }
  .brand-ic { width: 12px; height: 12px; }
  .actions-feature .btn { font-size: 12px; letter-spacing: 0; }
}

/* 320px 级的老机型：再挤一点，仍然保持一行 */
@media (max-width: 340px) {
  .actions { gap: 4px; }
  .actions .btn {
    gap: 3px;
    padding-left: 3px;
    padding-right: 3px;
    font-size: 10.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
