:root {
  color-scheme: dark;
  --bg: #0d1118;
  --bg-soft: #131a24;
  --surface: rgba(26, 34, 47, 0.82);
  --surface-strong: #1a2230;
  --surface-soft: rgba(255, 255, 255, 0.06);
  --ink: #f5f7fb;
  --muted: #9aa6b8;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #ff7a90;
  --accent-2: #4dd6c1;
  --accent-3: #f7c85f;
  --blue: #5b8cff;
  --green: #45d483;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  font-family: "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 122, 144, 0.16), transparent 28rem),
    radial-gradient(circle at 90% 10%, rgba(77, 214, 193, 0.13), transparent 32rem),
    linear-gradient(180deg, #101620, #0b0f16 42rem);
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #0b0f16;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

body.loaded .boot-screen {
  visibility: hidden;
  opacity: 0;
}

.boot-card {
  display: grid;
  justify-items: center;
  gap: 16px;
  color: #fff;
}

.boot-orbit {
  position: relative;
  width: 74px;
  height: 74px;
}

.boot-orbit span {
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}

.boot-orbit span:nth-child(2) {
  inset: 10px;
  border-top-color: var(--accent-2);
  animation-duration: 1.8s;
  animation-direction: reverse;
}

.boot-orbit span:nth-child(3) {
  inset: 22px;
  border-top-color: var(--accent-3);
  animation-duration: 1s;
}

.boot-progress {
  width: 220px;
  height: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
}

.boot-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: inherit;
  animation: loadbar 0.9s ease forwards;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 0 28px;
  background: rgba(12, 16, 24, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 950;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #111827;
  background: linear-gradient(135deg, #ffd6df, #87f2df);
  border-radius: 12px;
  box-shadow: 0 0 28px rgba(255, 122, 144, 0.26);
}

.brand-text {
  font-size: 18px;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.main-nav a {
  position: relative;
  padding: 9px 12px;
  color: var(--muted);
  border-radius: 12px;
  font-weight: 800;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.weather-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.weather-pill span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  color: #101828;
  background: #eef4ff;
  border-radius: 50%;
  font-weight: 900;
}

.avatar-link img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
}

.weather-popover {
  position: fixed;
  top: 82px;
  right: 84px;
  z-index: 60;
  width: min(360px, calc(100vw - 28px));
  padding: 18px;
  background: rgba(245, 248, 255, 0.9);
  color: #172033;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.weather-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.weather-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #fff;
  background: #5d6678;
  border-radius: 18px;
  font-weight: 900;
}

.weather-top p,
.weather-note {
  margin: 4px 0 0;
  color: #667085;
}

.weather-top b {
  font-size: 34px;
}

.weather-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.weather-metrics span {
  padding: 12px;
  background: rgba(255, 255, 255, 0.58);
  border-radius: 16px;
}

.app-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 24px auto 78px;
}

.life-hero {
  position: relative;
  min-height: 560px;
  display: grid;
  grid-template-columns: 1fr 260px;
  align-items: end;
  gap: 18px;
  overflow: hidden;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #111827;
  box-shadow: var(--shadow);
}

.life-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  transform: scale(1.03);
}

.life-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 12, 18, 0.92), rgba(9, 12, 18, 0.28)),
    linear-gradient(180deg, transparent, rgba(9, 12, 18, 0.72));
}

.hero-glass,
.hero-avatar-card {
  position: relative;
  z-index: 1;
}

.hero-glass {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-3);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.hero-glass h1 {
  margin: 0 0 16px;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1;
  letter-spacing: 0;
}

.hero-glass p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
  line-height: 1.9;
}

.hero-status,
.hero-actions,
.feed-meta,
.profile-actions,
.footprint-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-status {
  margin: 24px 0;
}

.hero-status span,
.feed-meta span,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
  border-radius: 13px;
  font-weight: 900;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button.primary {
  color: #111827;
  background: linear-gradient(135deg, #fff, #b9fff0);
}

.button.full {
  width: 100%;
}

.button:hover {
  border-color: rgba(255, 122, 144, 0.8);
  transform: translateY(-2px);
}

.hero-avatar-card {
  align-self: center;
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  backdrop-filter: blur(16px);
}

.hero-avatar-card img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border: 4px solid #fff;
  border-radius: 50%;
}

.hero-avatar-card span {
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.interest-panel,
.rail-card,
.feed-card,
.post-tile,
.album-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
}

.interest-panel {
  overflow: hidden;
  margin-top: 18px;
  padding: 22px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 42px 0 16px;
}

.section-head.compact {
  margin: 0 24px 16px;
}

.section-head h2,
.page-head h1 {
  margin: 0;
  font-size: 32px;
  letter-spacing: 0;
}

.marquee-row {
  overflow: hidden;
  margin: 10px 0;
}

.marquee-row div {
  display: flex;
  width: max-content;
  gap: 12px;
  animation: marquee 28s linear infinite;
}

.marquee-row.reverse div {
  animation-direction: reverse;
  animation-duration: 34s;
}

.marquee-row span {
  display: grid;
  place-items: center;
  min-width: 116px;
  height: 68px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  font-size: 16px;
  font-weight: 900;
}

.wall-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
  margin-top: 20px;
}

.life-feed,
.profile-rail,
.feed-stack {
  display: grid;
  align-content: start;
  gap: 16px;
}

.hover-card {
  position: relative;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.hover-card:hover {
  border-color: rgba(255, 122, 144, 0.78);
  box-shadow: 0 18px 60px rgba(255, 122, 144, 0.12), 0 20px 60px rgba(0, 0, 0, 0.24);
  transform: translateY(-4px) translateX(2px);
}

.hover-card:hover h3,
.hover-card:hover strong,
.hover-card:hover a {
  color: #fff;
}

.feed-card {
  padding: 22px;
}

.feed-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feed-author img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
}

.feed-author span,
.meta,
.empty {
  color: var(--muted);
}

.feed-text,
.feed-content p,
.rail-card p,
.page-head p {
  color: #c4ccda;
  line-height: 1.8;
}

.feed-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin: 16px 0;
}

.feed-images img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
}

.article-feed {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 18px;
}

.feed-cover img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  border-radius: 18px;
}

.feed-type {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 900;
}

.feed-content h3,
.feed-card h3,
.post-tile h3,
.album-card h3,
.rail-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.profile-card {
  display: grid;
  justify-items: center;
  padding: 22px;
  text-align: center;
}

.profile-avatar {
  width: 94px;
  height: 94px;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
}

.profile-actions a {
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #d9deea;
}

.rail-card {
  padding: 18px;
}

.stats-widget {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.stats-widget div:not(.progress-line) {
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 16px;
}

.stats-widget span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.stats-widget b {
  font-size: 25px;
}

.progress-line {
  grid-column: 1 / -1;
  height: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
}

.progress-line i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-3), var(--accent));
}

.stats-widget p {
  grid-column: 1 / -1;
  margin: 0;
}

.world-list,
.message-mini-list {
  display: grid;
  gap: 10px;
}

.world-link {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid transparent;
  border-radius: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.world-link:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateX(4px);
}

.world-link.blue strong { color: var(--blue); }
.world-link.pink strong { color: var(--accent); }
.world-link.green strong { color: var(--green); }
.world-link span,
.message-mini-list p {
  color: var(--muted);
}

.map-mini,
.footprint-map {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 40% 45%, rgba(77, 214, 193, 0.22), transparent 18rem),
    #111923;
  background-size: 42px 42px, 42px 42px, auto, auto;
}

.map-mini {
  height: 160px;
  border-radius: 18px;
  margin-bottom: 14px;
}

.map-mini span,
.footprint-point {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 50%;
  font-weight: 900;
  transform: translate(-50%, -50%);
}

.map-mini span.album,
.footprint-point.album {
  background: var(--accent-2);
}

.map-mini span.message,
.footprint-point.message {
  background: var(--blue);
}

.page-head {
  width: min(820px, 100%);
  margin: 28px auto 22px;
  text-align: center;
}

.card-grid,
.album-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.post-tile,
.album-card {
  overflow: hidden;
}

.post-tile img,
.album-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.post-tile div,
.album-card div {
  padding: 18px;
}

.album-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.album-mosaic img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 18px;
}

.article {
  width: min(840px, 100%);
  margin: 0 auto;
}

.article-cover {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.article h1 {
  margin: 24px 0 10px;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.1;
}

.article-content {
  margin-top: 24px;
  padding: 30px;
  color: #dde4f1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  line-height: 1.95;
  font-size: 17px;
}

.article-content blockquote,
.reply-box {
  margin: 18px 0;
  padding: 14px 16px;
  color: #e9edf5;
  background: rgba(255, 255, 255, 0.07);
  border-left: 4px solid var(--accent);
  border-radius: 14px;
}

.message-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 18px;
}

.message-form {
  display: grid;
  gap: 12px;
}

.message-form input,
.message-form textarea {
  width: 100%;
  padding: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.message-form textarea {
  min-height: 150px;
  resize: vertical;
}

.footprint-page {
  min-height: 680px;
  display: grid;
  grid-template-columns: 1fr 320px;
  grid-template-rows: auto 1fr;
  gap: 16px;
}

.footprint-toolbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.footprint-toolbar div {
  display: flex;
  gap: 8px;
}

.footprint-toolbar button {
  min-height: 34px;
  padding: 0 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid transparent;
  border-radius: 999px;
}

.footprint-toolbar button.active {
  color: #111827;
  background: #fff;
}

.footprint-map {
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: 28px;
}

.map-label {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 10px 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.34);
  border-radius: 999px;
}

.footprint-point {
  width: 46px;
  height: 46px;
}

.footprint-point span {
  position: absolute;
  top: 50px;
  white-space: nowrap;
  color: #dbe3f1;
  font-size: 13px;
}

.footprint-map[data-active="post"] .footprint-point:not(.post),
.footprint-map[data-active="album"] .footprint-point:not(.album),
.footprint-map[data-active="message"] .footprint-point:not(.message) {
  opacity: 0.18;
}

.footprint-side {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
}

.footprint-legend span {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 34px 16px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.loading,
.empty {
  padding: 40px;
  text-align: center;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes loadbar {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 1020px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    padding: 12px 16px;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .life-hero,
  .wall-layout,
  .footprint-page,
  .message-grid {
    grid-template-columns: 1fr;
  }

  .hero-avatar-card {
    justify-self: start;
  }

  .profile-rail {
    grid-row: auto;
  }

  .article-feed {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .app-shell {
    width: min(100% - 20px, 1240px);
    margin-top: 12px;
  }

  .brand-text {
    max-width: 158px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .weather-pill b {
    display: none;
  }

  .life-hero {
    min-height: 520px;
    padding: 22px;
  }

  .hero-glass h1 {
    font-size: 44px;
  }

  .hero-glass p {
    font-size: 16px;
  }

  .card-grid,
  .album-grid,
  .album-mosaic,
  .feed-images {
    grid-template-columns: 1fr;
  }

  .footprint-map {
    min-height: 480px;
  }
}
