:root {
  --bg-0: #03050a;
  --bg-1: #070b14;
  --white: #f4f6fa;
  --muted: #8a93a6;
  --muted-2: #5b6478;
  --accent: #e8b45a;
  --accent-soft: rgba(232, 180, 90, 0.35);
  --font-display: 'Oswald', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

html, body { height: 100%; }

body {
  position: relative;
  font-family: var(--font-body);
  color: var(--white);
  background: var(--bg-0);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== 背景：夜景城市（本地图片 + 明暗渐变叠加） ===== */
.city-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(180deg,
      rgba(3, 5, 10, 0.97) 0%,
      rgba(3, 5, 10, 0.92) 34%,
      rgba(3, 5, 10, 0.58) 50%,
      rgba(3, 5, 10, 0.80) 66%,
      rgba(3, 5, 10, 0.95) 84%,
      rgba(3, 5, 10, 0.98) 100%),
    url('../images/bg-city.jpg');
  background-size: cover;
  background-position: 50% 60%;
  animation: cityDrift 42s ease-in-out infinite alternate;
}
@keyframes cityDrift {
  from { transform: scale(1) translateY(0); }
  to   { transform: scale(1.055) translateY(-8px); }
}

/* 轻微暗角，聚焦中央 */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 52%, rgba(2, 3, 8, 0.55) 100%);
}

/* ===== 漂浮光斑（bokeh 粒子画布） ===== */
#bokeh {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ===== 页面主体内容 ===== */
main {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- 上半：黑色主题 + ONEMEI ---- */
.hero {
  flex: 1 1 50%;
  min-height: 44vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px 28px;
}

.brand-tag {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  color: var(--accent);
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 1s ease 0.15s forwards;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(58px, 15vw, 196px);
  line-height: 1.02;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  color: var(--white);
  text-shadow: 0 0 46px rgba(255, 255, 255, 0.14), 0 0 120px rgba(232, 180, 90, 0.10);
  opacity: 0;
  animation: logoReveal 1.4s cubic-bezier(0.22, 0.61, 0.36, 1) 0.35s forwards;
}

.hero-sub {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  color: var(--muted);
  opacity: 0;
  animation: fadeUp 1s ease 1s forwards;
}

/* ---- 上下分界：一抹夜灯微光 ---- */
.divider {
  position: relative;
  flex: 0 0 auto;
  height: 1px;
  width: min(72vw, 720px);
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--accent-soft) 30%, var(--accent-soft) 70%, transparent);
  overflow: visible;
}
.divider::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 160px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(244, 246, 250, 0.85), transparent);
  filter: blur(1px);
  animation: shimmer 5.2s ease-in-out infinite;
}
@keyframes shimmer {
  0%   { transform: translateX(-80px); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateX(calc(min(72vw, 720px) - 80px)); opacity: 0; }
}

/* ---- 下半：励志语 + 底部信息 ---- */
.quote-zone {
  flex: 1 1 50%;
  min-height: 44vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 24px 96px;
}

.quote {
  font-size: clamp(20px, 4.4vw, 40px);
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: var(--white);
  opacity: 0;
  animation: fadeUp 1.2s ease 1.25s forwards;
}
.quote .hl {
  color: var(--accent);
}
.quote-mark {
  margin-top: 20px;
  width: 46px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-soft), transparent);
  opacity: 0;
  animation: fadeUp 1s ease 1.7s forwards;
}

/* ---- 底部：联系方式 + ICP ---- */
footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 22px 20px 26px;
  text-align: center;
  opacity: 0;
  animation: fadeUp 1s ease 1.9s forwards;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 26px;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.contact a {
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color 0.25s ease;
}
.contact a:hover {
  color: var(--white);
}
.contact svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
}

.footer-line {
  margin-top: 14px;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}
.footer-line a {
  color: var(--muted-2);
  text-decoration: none;
  transition: color 0.25s ease;
}
.footer-line a:hover {
  color: var(--muted);
}

/* ===== 入场动画 ===== */
@keyframes logoReveal {
  from { opacity: 0; letter-spacing: 0.34em; filter: blur(8px); }
  to   { opacity: 1; letter-spacing: 0.16em; filter: blur(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== 动效减弱偏好 ===== */
@media (prefers-reduced-motion: reduce) {
  .city-bg { animation: none; }
  .divider::after { animation: none; opacity: 0.4; }
  .logo, .brand-tag, .hero-sub, .quote, .quote-mark, footer {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
    letter-spacing: inherit !important;
  }
}

/* ===== 窄屏适配 ===== */
@media (max-width: 640px) {
  .brand-tag { font-size: 11px; letter-spacing: 0.4em; text-indent: 0.4em; }
  .hero-sub { font-size: 12px; letter-spacing: 0.22em; text-indent: 0.22em; }
  .contact { gap: 8px 16px; font-size: 12px; }
  .footer-line { font-size: 11px; }
}
