/* ==========================================================================
   纯熙艺术 CHUNXI ART — 网站建设中（临时首页）
   色值沿用 home.css 的品牌变量，页面自包含；下线时删掉本文件即可
   ========================================================================== */

:root {
  --maroon: #8b1e1e;
  --red: #e63329;
  --blue: #1e7be8;
  --orange: #f2a03d;

  --ink: #221f1e;
  --ink-3: #8b8380;
  --line: #e8e1db;
  --bg: #f9f7f8;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 24px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-text-size-adjust: 100%;
}

a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 主体 ---------- */
.stage {
  width: 100%;
  max-width: 720px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand {
  display: inline-block;
}

.brand__img {
  display: block;
  /* logo.jpg 是方形整版：「成立于2010年」只占整图约 8.4% 高，
     236px 时约 20px，缩到 180px 仍有 15px，基本可读。
     方形图按宽度定尺寸即可，宽度上限比横向 logo 小一档，避免首屏过高。 */
  width: clamp(180px, 42vw, 236px);
  height: auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 26px 0 0;
  padding: 5px 14px;
  border-radius: 999px;
  background: #fdf1e2;
  color: #b9741d;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  animation: breath 1.8s var(--ease) infinite;
}

.title {
  margin: 14px 0 0;
  font-size: clamp(26px, 6.4vw, 38px);
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.title__dots i {
  display: inline-block;
  width: 0.26em;
  height: 0.26em;
  margin-left: 0.16em;
  border-radius: 50%;
  background: var(--maroon);
  vertical-align: baseline;
  animation: dot 1.3s var(--ease) infinite;
}

.title__dots i:nth-child(2) {
  animation-delay: 0.18s;
}

.title__dots i:nth-child(3) {
  animation-delay: 0.36s;
}

.lead {
  margin: 14px 0 0;
  max-width: 30em;
  color: var(--ink-3);
  font-size: 15px;
}

/* ---------- 施工场景 ---------- */
.scene {
  position: relative;
  width: min(340px, 88vw);
  margin-top: 8px;
}

/* 蓝图网格底纹 */
.scene::before {
  content: "";
  position: absolute;
  inset: 6% 4% 4%;
  background-image:
    linear-gradient(to right, rgba(30, 123, 232, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 123, 232, 0.09) 1px, transparent 1px);
  background-size: 24px 24px;
  border-radius: 18px;
  mask-image: radial-gradient(ellipse at 50% 55%, #000 45%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 55%, #000 45%, transparent 78%);
}

.scene__svg {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- 动画 ---------- */
.robot {
  transform-box: fill-box;
  transform-origin: bottom center;
  animation: bob 3.2s var(--ease) infinite;
}

.wrench {
  transform-box: fill-box;
  transform-origin: 8% 92%;
  animation: turn 1.5s var(--ease) infinite;
}

.eye {
  transform-box: fill-box;
  transform-origin: center;
  animation: blink 4.2s steps(1, end) infinite;
}

.lamp {
  animation: breath 1.6s var(--ease) infinite;
}

.spark {
  animation: spark 0.9s steps(2, end) infinite;
}

.wall__lines {
  animation: build 5s linear infinite;
}

@keyframes bob {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes turn {
  0%, 100% {
    transform: rotate(-11deg);
  }
  50% {
    transform: rotate(11deg);
  }
}

@keyframes blink {
  0%, 92%, 100% {
    transform: scaleY(1);
  }
  95% {
    transform: scaleY(0.1);
  }
}

@keyframes spark {
  0%, 100% {
    opacity: 0.15;
  }
  50% {
    opacity: 1;
  }
}

@keyframes breath {
  0%, 100% {
    opacity: 0.28;
  }
  50% {
    opacity: 0.85;
  }
}

@keyframes dot {
  0%, 60%, 100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-0.16em);
  }
}

@keyframes build {
  to {
    stroke-dashoffset: -60;
  }
}

/* ---------- 页脚 / 备案 ---------- */
.foot {
  width: 100%;
  max-width: 720px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
}

.foot__copy {
  margin: 0;
}

.foot__filing {
  margin: 6px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.foot__link {
  color: var(--ink-3);
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.foot__link:hover {
  color: var(--maroon);
  border-bottom-color: currentColor;
}

.foot__sep {
  color: var(--line);
}

/* ---------- 无障碍：尊重「减少动态效果」 ---------- */
@media (prefers-reduced-motion: reduce) {
  .robot,
  .wrench,
  .eye,
  .lamp,
  .spark,
  .wall__lines,
  .badge__dot,
  .title__dots i {
    animation: none !important;
  }
}
