/* ==========================================================
   landshot.cn —— 个人主页
   
   视觉语言：暗调 + 金色，与摄影站保持一致
   布局：居中单列，强调留白和层次
   ========================================================== */

:root {
  --bg: #0a0a0a;
  --ink: #f0efec;
  --ink-soft: #c8c6c1;
  --muted: #8a8884;
  --muted-deep: #5a5956;
  --gold: #c9a86a;
  --gold-soft: rgba(201, 168, 106, 0.6);
  --line: rgba(240, 239, 236, 0.08);
  --serif: "Songti SC", "SimSun", "Noto Serif CJK SC", Georgia, serif;
  --sans: -apple-system, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
}

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

html {
  height: 100%;
}

body {
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* ==========================================================
   背景光晕
   ========================================================== */

.bg-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.bg-glow-1 {
  left: 50%;
  top: 30%;
  width: 880px;
  height: 880px;
  margin-left: -440px;
  margin-top: -440px;
  background: radial-gradient(
    circle,
    rgba(201, 168, 106, 0.12) 0%,
    rgba(201, 168, 106, 0.045) 28%,
    rgba(201, 168, 106, 0.014) 50%,
    transparent 72%
  );
  animation: drift1 22s ease-in-out infinite;
}

.bg-glow-2 {
  left: 14%;
  top: 18%;
  width: 540px;
  height: 540px;
  margin-left: -270px;
  margin-top: -270px;
  background: radial-gradient(
    circle,
    rgba(201, 168, 106, 0.06) 0%,
    rgba(201, 168, 106, 0.018) 45%,
    transparent 68%
  );
  animation: drift2 28s ease-in-out infinite;
}

.bg-glow-3 {
  left: 86%;
  top: 74%;
  width: 600px;
  height: 600px;
  margin-left: -300px;
  margin-top: -300px;
  background: radial-gradient(
    circle,
    rgba(201, 168, 106, 0.055) 0%,
    rgba(201, 168, 106, 0.016) 48%,
    transparent 70%
  );
  animation: drift3 25s ease-in-out infinite;
}

@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.85; }
  33% { transform: translate(-30px, -40px) scale(1.07); opacity: 1; }
  66% { transform: translate(24px, 22px) scale(0.96); opacity: 0.7; }
}

@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  50% { transform: translate(44px, 52px) scale(1.1); opacity: 0.95; }
}

@keyframes drift3 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  40% { transform: translate(-36px, -44px) scale(1.08); opacity: 0.85; }
  75% { transform: translate(20px, 30px) scale(0.94); opacity: 0.65; }
}

/* ==========================================================
   星点
   ========================================================== */

.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.star {
  position: absolute;
  border-radius: 50%;
  background: #dedbd3;
  animation-name: twinkle;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.1; transform: scale(0.8); }
  50% { opacity: 0.8; transform: scale(1.15); }
}

/* ==========================================================
   主体
   ========================================================== */

.stage {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 96px 28px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 52px;
}

/* ---------- 姓名 ---------- */

.head {
  text-align: center;
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.name {
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--ink);
  text-indent: 0.16em;
  line-height: 1.2;
}

.name-en {
  margin-top: 16px;
  font-size: 9.5px;
  letter-spacing: 0.44em;
  color: var(--gold-soft);
  text-indent: 0.44em;
  text-transform: uppercase;
}

.tagline {
  margin-top: 22px;
  font-size: 13.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-indent: 0.1em;
}

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

/* ==========================================================
   项目列表
   ========================================================== */

.sites {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sites-empty {
  padding: 60px 0;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--muted-deep);
}

/* ---------- 单个项目 ---------- */

/*
 * 不做入场动画。
 *
 * 原因（踩过的坑）：
 *   之前给卡片加了 opacity + translateY 的入场动画，
 *   结果中文字（如「影」）在动画期间出现了重影和模糊 ——
 *   Chrome 为带动画的元素创建独立合成层，
 *   中文字形在这个层里的抗锯齿和主层不一致，看起来像双影。
 *
 * 现在改成纯静态显示，视觉上更干净。
 * 想加入场效果的话，只对 opacity 做淡入（不动 transform）也可以。
 */
.site {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.016);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.28s ease, background 0.28s ease,
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 可点击的才有效果 */
.site-online {
  cursor: pointer;
}

.site-online:hover {
  border-color: rgba(201, 168, 106, 0.42);
  background: rgba(201, 168, 106, 0.04);
  transform: translateY(-3px);
}

/* 未上线的整体压暗 */
.site-soon,
.site-todo {
  cursor: default;
}

.site-todo {
  opacity: 0.5;
}

.site-todo:hover {
  opacity: 0.65;
}

/* ---------- 图标 ---------- */

.site-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 11px;
  border: 1px solid rgba(201, 168, 106, 0.24);
  background: rgba(201, 168, 106, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: border-color 0.28s ease, background 0.28s ease;
}

.site-icon svg {
  display: block;
  width: 23px;
  height: 23px;
}

.site-online:hover .site-icon {
  border-color: rgba(201, 168, 106, 0.5);
  background: rgba(201, 168, 106, 0.13);
}

.site-soon .site-icon,
.site-todo .site-icon {
  border-color: rgba(240, 239, 236, 0.1);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
}

/* ---------- 文字 ---------- */

.site-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  /* 保证多行时整体垂直居中，不会被拉偏 */
  justify-content: center;
}

/*
 * 标题行：中文标签 + 英文 + 状态徽章
 *
 * 关键约束：
 *   · 英文标签可以被压缩（min-width: 0 + overflow），避免把徽章挤走
 *   · 徽章不换行（flex-shrink: 0），保证和标题在同一行
 *   · 窄屏时允许整体换行（flex-wrap），但徽章本身不断开
 */
.site-title-row {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  row-gap: 6px;
}

.site-label {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.08em;
  color: var(--ink);
  flex: 0 0 auto;
}

.site-label-en {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--muted-deep);
  text-transform: uppercase;
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-top: 2px;
}

.site-badge {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 9px;
  border: 1px solid rgba(201, 168, 106, 0.28);
  background: rgba(201, 168, 106, 0.07);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: rgba(201, 168, 106, 0.8);
  line-height: 1.6;
  white-space: nowrap;
}

.site-badge.is-muted {
  border-color: rgba(240, 239, 236, 0.1);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted-deep);
}

.site-desc {
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--muted-deep);
  line-height: 1.5;
}

/* ---------- 右侧箭头 ---------- */

.site-arrow {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  opacity: 0.45;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.site-arrow svg {
  display: block;
  width: 18px;
  height: 18px;
}

.site-online:hover .site-arrow {
  transform: translateX(4px);
  opacity: 1;
}

.site-arrow .dot {
  font-size: 20px;
  line-height: 1;
  color: var(--muted-deep);
  opacity: 0.6;
}

.site-soon .site-arrow,
.site-todo .site-arrow {
  color: var(--muted-deep);
  opacity: 0.35;
}

/* ---------- 二维码 ---------- */

.site-qr {
  flex: 0 0 auto;
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #131313;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.site-qr-ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: var(--muted-deep);
  text-align: center;
  line-height: 1.4;
  padding: 6px;
}

/* 有图时隐藏占位 */
.site-qr.has-image .site-qr-ph {
  display: none;
}

/* ==========================================================
   页脚
   ========================================================== */

.foot {
  position: relative;
  z-index: 1;
  padding: 40px 28px 44px;
  text-align: center;
}

.foot-line {
  width: 54px;
  height: 1px;
  margin: 0 auto 24px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201, 168, 106, 0.4),
    transparent
  );
}

.foot-copy {
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted-deep);
}

.foot-links {
  margin-top: 11px;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--muted-deep);
}

.foot-links a {
  color: var(--muted-deep);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.foot-sep {
  margin: 0 8px;
  color: rgba(240, 239, 236, 0.14);
}

.foot-links .is-hidden {
  display: none;
}

/* ==========================================================
   响应式
   ========================================================== */

@media (max-width: 700px) {
  .stage {
    padding: 64px 18px 40px;
    gap: 38px;
  }

  .name {
    font-size: 34px;
    letter-spacing: 0.14em;
    text-indent: 0.14em;
  }

  .name-en {
    font-size: 8px;
    letter-spacing: 0.34em;
    text-indent: 0.34em;
    margin-top: 12px;
  }

  .tagline {
    margin-top: 16px;
    font-size: 12.5px;
  }

  .sites {
    gap: 10px;
  }

  .site {
    padding: 17px 18px;
    gap: 14px;
  }

  .site-icon {
    width: 40px;
    height: 40px;
  }

  .site-icon svg {
    width: 20px;
    height: 20px;
  }

  .site-label {
    font-size: 15.5px;
  }

  /*
   * 窄屏隐藏英文标签。
   *
   * 原因：手机宽度下「小程序」+「MINI PROGRAM」+「敬请期待」三个并排太挤，
   * 徽章会被挤到第二行，和图标对不齐。英文标签信息量最低，优先隐藏。
   */
  .site-label-en {
    display: none;
  }

  .site-desc {
    font-size: 11.5px;
  }

  .site-qr {
    width: 60px;
    height: 60px;
  }

  .site-qr-ph {
    font-size: 8.5px;
  }

  .foot {
    padding: 30px 18px 34px;
  }

  .foot-links {
    line-height: 1.9;
  }
}

@media (max-width: 380px) {
  .name {
    font-size: 30px;
  }

  .site-qr {
    width: 54px;
    height: 54px;
  }
}

/* 减弱动画 */
@media (prefers-reduced-motion: reduce) {
  .bg-glow-1,
  .bg-glow-2,
  .bg-glow-3,
  .star,
  .head,
  .site {
    animation: none;
  }

  .site {
    opacity: 1;
  }
}
