/* ============================================
   明石 ZoneAkashi — 主页复刻
   Apple 浅色风格 · 暖调米灰底 · 墨色文字 · 苹果蓝高亮
   （背景为暖色浅底，便于后续叠加照片背景）
   ============================================ */

:root {
  --bg: #f7f3ec;
  --blue: #0071e3;
  --ink: #1d1d1f;
  --gray: #86868b;
  --gray-dark: #6e6e73;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro SC", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  background: var(--bg);
  font-family: var(--font);
  color: var(--ink);
  overflow: hidden;
}

.stage {
  position: relative;
  width: 100%;
  height: 100svh;
}

/* ---------- 左上：技能标签墙 ---------- */

.tags {
  position: absolute;
  top: 2.6vh;
  left: 2vw;
  z-index: 3;
}

.tag-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.22em;
  font-size: clamp(24px, 3vw, 60px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: 0.02em;
}

.tag-line > * { flex-shrink: 0; }

/* 蓝块弹性拉伸填满行内空隙（首位的 LIVE IN 保持窄块） */
.tag-line .en:not(:first-child) { flex-grow: 1; }

/* 蓝色英文小标签块（接近汉字高度，文字贴左下角） */
.tag-line .en {
  display: inline-flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  margin: 0 0.35em;
  padding: 1.6em 0.65em 0 0;
  background: var(--blue);
  color: #fff;
  font-style: normal;
  font-weight: 800;
  font-size: 0.24em;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  /* 下移微调：抵消中文字形在行盒中的偏高视觉重心 */
  transform: translateY(0.3em);
}

.tag-line .en b {
  display: block;
  font-weight: inherit;
  line-height: 1;
  /* 抵消字形左侧预留边距，让首字母贴住块的左边缘 */
  text-indent: -0.06em;
}

/* 负边距抵消基线以下的字体空隙，让末行贴住块底 */
.tag-line .en b:last-child { margin-bottom: -0.18em; }

/* INFJ-A 空心描边（单元素行，靠左） */
.tag-line.mbti {
  margin-top: 0.15em;
  font-size: clamp(22px, 2.8vw, 56px);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gray-dark);
}

@supports (-webkit-text-stroke: 1px #000) {
  .tag-line.mbti {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--gray-dark);
  }
}

/* ---------- 右上：标题 ---------- */

.title {
  position: absolute;
  top: 3vh;
  right: 2vw;
  z-index: 3;
  text-align: right;
}

.title h1 {
  font-size: clamp(44px, 7vw, 140px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0.01em;
}

.title h1 span { display: block; }

/* 标题右下的蓝色圆形 */
.title::after {
  content: "";
  position: absolute;
  right: max(-0.6vw, -12px);
  bottom: -0.72em;
  width: clamp(52px, 5.5vw, 110px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--blue);
  z-index: -1;
}

/* 标题内的 INFJ-A 仅供手机端显示，桌面端隐藏 */
.title .mbti { display: none; }

/* ---------- 中部：人物立绘 ---------- */

.portrait {
  position: absolute;
  left: 50%;
  /* 用独立 translate 属性居中，避免与入场动画的 transform 冲突 */
  translate: -50% 0;
  bottom: 0;
  z-index: 1;
  height: clamp(520px, 100vh, 1200px);
  width: auto;
  user-select: none;
  -webkit-user-drag: none;
  /* 防保存：禁用指针事件（右键/长按菜单不再作用于图片）与 iOS 长按呼出 */
  pointer-events: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
}

/* ---------- 右下：链接导航 ---------- */

.links {
  position: absolute;
  right: 2.2vw;
  bottom: 3vh;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.6vh;
}

.links a {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  font-size: clamp(26px, 3vw, 60px);
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.2;
  transition: color 0.25s ease;
}

/* 每个链接右上角的蓝色小方块 */
.links a::after {
  content: "";
  position: absolute;
  top: auto;
  bottom: -0.02em;
  right: -0.34em;
  width: 0.2em;
  height: 0.2em;
  background: var(--blue);
}

.links a:hover { color: var(--blue); }

/* ---------- 左下：页脚 ---------- */

.footer {
  position: absolute;
  left: 2vw;
  bottom: 2.4vh;
  z-index: 3;
}

.copyright {
  display: inline;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.rights {
  display: inline;
  margin-left: 0.6em;
  font-size: 12px;
  color: var(--gray-dark);
}

/* ---------- 入场动画（交错浮现） ---------- */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tags, .title, .portrait, .links, .footer {
  animation: fade-up 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.tags     { animation-delay: 0.05s; }
.title    { animation-delay: 0.18s; }
.portrait { animation-delay: 0.32s; }
.links    { animation-delay: 0.46s; }
.footer   { animation-delay: 0.58s; }

@media (prefers-reduced-motion: reduce) {
  .tags, .title, .portrait, .links, .footer { animation: none; }
}

/* ============================================
   手机端（≤ 768px）
   ============================================ */

@media (max-width: 768px) {

  /* 标签墙改为常规流：撑满屏幕宽，行内容随两端对齐分布 */
  .tags {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    padding: 2.2vh 4vw 0;
  }

  .tag-line {
    font-size: clamp(22px, 7.2vw, 32px);
    line-height: 1.25;
  }

  .tag-line.mbti { font-size: clamp(21px, 6.8vw, 30px); }

  /* 手机端：标签墙里的 INFJ-A 隐藏，改到标题下方显示 */
  .tags .mbti { display: none; }

  .title .mbti {
    display: block;
    margin: 0.12em 0 0;
  }

  /* 标题紧跟标签墙下方，恢复两行排布 */
  .title {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: fit-content;
    margin: 0 4.5vw;
    text-align: left;
  }

  .title h1 {
    display: block;
    font-size: clamp(42px, 13vw, 58px);
  }

  .title h1 span { display: block; }
  .title h1 .line1 { margin: 0; }

  /* 移动端不显示蓝色圆球 */
  .title::after { display: none; }

  /* 立绘适配手机端：换竖版图、贴屏幕右侧（顶部避开标题） */
  .portrait {
    left: auto;
    right: 0;
    translate: 0 0;
    height: 56vh;
  }

  .links {
    left: 4.5vw;
    right: auto;
    bottom: 4vh;
    gap: 1.2vh;
    align-items: flex-start;
  }

  .links a {
    font-size: clamp(28px, 8vw, 36px);
  }

  /* 移动端隐藏页脚版权两行文字 */
  .footer { display: none; }
}

/* 超窄屏（≤ 360px）再收紧一档 */
@media (max-width: 360px) {
  .tag-line { font-size: 17px; }
  .title h1 { font-size: 36px; }
}
