@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@600;700;800&family=Noto+Sans+SC:wght@400;500;700&display=swap");

:root {
  --brand: #47cbb5;
  --brand-deep: #2fb5a0;
  --brand-soft: #b9e8df;
  --brand-hover: #8ed9cb;
  --accent: #ff8c42;
  --ink: #111111;
  --muted: #999999;
  --gray: #666666;
  --link: #0987ff;
  --footer-bg: #f8f8fa;
  --white: #ffffff;
  --shadow-card: 0 3px 13px rgba(215, 215, 215, 0.5);
  --font: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --display: "Nunito", "Noto Sans SC", "PingFang SC", sans-serif;
}

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

html {
  font-size: 16px;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* ?? Header ?? */
.site-header {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  padding: 0 16px;
  flex-shrink: 0;
  z-index: 20;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 28px;
  color: var(--brand);
  letter-spacing: 0.04em;
}

.logo img,
.logo svg {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  background: #fff;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav a {
  position: relative;
  padding-bottom: 6px;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav a.active {
  color: var(--ink);
  font-weight: 500;
}

.nav a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 4px;
  background: var(--brand);
  border-radius: 2px;
}

/* ?? Main / Hero ?? */
.site-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero {
  width: 100%;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 18% 42%, rgba(71, 203, 181, 0.22), transparent 60%),
    radial-gradient(ellipse 55% 50% at 82% 58%, rgba(255, 140, 66, 0.14), transparent 55%),
    linear-gradient(180deg, #f7fcfb 0%, #eef9f5 45%, #fff8f2 100%);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 5vw;
  gap: 24px;
  transform-origin: center;
  scale: 0.7;
  translate: 0 -50px;
}

.showcase {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-stage {
  position: relative;
  width: 260px;
  aspect-ratio: 9 / 17;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  z-index: 10;
  pointer-events: auto;
}

.phone {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  background: #0f1418;
  padding: 8px;
  box-shadow:
    0 24px 60px rgba(0, 90, 95, 0.18),
    0 2px 0 rgba(255, 255, 255, 0.15) inset;
  position: relative;
}

.phone::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 18px;
  background: #0f1418;
  border-radius: 12px;
  z-index: 5;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone-status {
  height: 36px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 18px 4px;
  font-size: 11px;
  font-weight: 600;
  color: #111;
  flex-shrink: 0;
}

.phone-body {
  flex: 1;
  overflow: hidden;
  padding: 8px 12px 0;
}

.phone-tabs {
  display: flex;
  gap: 14px;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #999;
}

.phone-tabs .on {
  color: #111;
  position: relative;
}

.phone-tabs .on::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  width: 18px;
  height: 3px;
  background: var(--brand);
  border-radius: 2px;
}

.filter-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.chip {
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f2f6f6;
  color: #555;
}

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

.avatar-card {
  aspect-ratio: 1;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #c8ebea, #9ed4d3);
}

.avatar-card:nth-child(2) {
  background: linear-gradient(145deg, #d6e8ff, #a8c4f0);
}
.avatar-card:nth-child(3) {
  background: linear-gradient(145deg, #ffe0d6, #f0b4a0);
}
.avatar-card:nth-child(4) {
  background: linear-gradient(145deg, #e4d9ff, #b8a8e8);
}
.avatar-card:nth-child(5) {
  background: linear-gradient(145deg, #d9f5c8, #a8d890);
}
.avatar-card:nth-child(6) {
  background: linear-gradient(145deg, #ffe9b8, #f0c878);
}
.avatar-card:nth-child(7) {
  background: linear-gradient(145deg, #c8f0ef, #7ec8c6);
}
.avatar-card:nth-child(8) {
  background: linear-gradient(145deg, #ffd0e0, #f0a0b8);
}
.avatar-card:nth-child(9) {
  background: linear-gradient(145deg, #d0e8ff, #90b8e8);
}

.avatar-card .meta {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 4px;
  font-size: 8px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.avatar-face {
  position: absolute;
  inset: 18% 22% 28%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

.phone-nav {
  height: 54px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  border-top: 1px solid #f0f0f0;
  font-size: 9px;
  color: #999;
  text-align: center;
  flex-shrink: 0;
  background: #fff;
}

.phone-nav .active-tab {
  color: var(--brand);
  font-weight: 600;
}

.float-tags {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 12;
}

.tag {
  position: absolute;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  white-space: nowrap;
  animation: floaty 3.2s ease-in-out infinite;
}

.tag.t1 {
  top: 18%;
  left: -8%;
  background: #4aa8ff;
  animation-delay: 0s;
}
.tag.t2 {
  top: 28%;
  right: -10%;
  background: #3ecf8e;
  animation-delay: 0.4s;
}
.tag.t3 {
  top: 48%;
  left: -12%;
  background: #ff5a6a;
  animation-delay: 0.8s;
}
.tag.t4 {
  top: 58%;
  right: -8%;
  background: #ff6bab;
  animation-delay: 1.2s;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* Slide variants */
.feed-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feed-item {
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
  background: #f7fafa;
}

.feed-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9ed4d3, #7ec8c6);
  flex-shrink: 0;
}

.feed-text {
  flex: 1;
}

.feed-text strong {
  font-size: 11px;
  display: block;
  margin-bottom: 2px;
}

.feed-text p {
  font-size: 10px;
  color: #666;
  line-height: 1.4;
}

.map-panel {
  height: 100%;
  border-radius: 16px;
  background:
    radial-gradient(circle at 40% 45%, rgba(71, 203, 181, 0.35), transparent 28%),
    linear-gradient(160deg, #e8f4f4, #d5ece8 40%, #ffe8d6);
  position: relative;
  overflow: hidden;
}

.map-pin {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50% 50% 50% 0;
  background: var(--brand);
  transform: rotate(-45deg);
  box-shadow: 0 4px 10px rgba(71, 203, 181, 0.4);
}

.map-pin::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #fff;
}

.map-pin.p1 {
  top: 28%;
  left: 36%;
}
.map-pin.p2 {
  top: 48%;
  left: 58%;
}
.map-pin.p3 {
  top: 62%;
  left: 30%;
}

.chat-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-row {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 4px;
  border-bottom: 1px solid #f3f3f3;
}

.chat-row .ava {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd0e0, #9ed4d3);
}

.chat-row .info {
  flex: 1;
  min-width: 0;
}

.chat-row .info strong {
  font-size: 11px;
  display: block;
}

.chat-row .info span {
  font-size: 10px;
  color: #999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.profile-head {
  text-align: center;
  padding: 16px 8px 12px;
}

.profile-ava {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 8px;
  background: linear-gradient(145deg, #9ed4d3, #4db8b6);
}

.profile-head h3 {
  font-size: 14px;
  margin-bottom: 4px;
}

.profile-head p {
  font-size: 10px;
  color: #888;
}

.stat-row {
  display: flex;
  justify-content: space-around;
  margin: 8px 0 12px;
  text-align: center;
}

.stat-row div strong {
  display: block;
  font-size: 13px;
}

.stat-row div span {
  font-size: 10px;
  color: #999;
}

.dots {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.dots button {
  height: 8px;
  width: 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  padding: 0;
  transition: all 0.3s ease-out;
}

.dots button:hover {
  background: var(--brand-hover);
}

.dots button.active {
  width: 24px;
  background: var(--brand);
}

/* ?? Hero copy / CTA ?? */
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.slogan {
  display: none;
  margin-top: 60px;
  width: 360px;
}

.slogan h1 {
  font-family: var(--display);
  font-size: 42px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.slogan h1 span {
  color: var(--brand);
}

.slogan p {
  margin-top: 12px;
  font-size: 16px;
  color: var(--gray);
  line-height: 1.6;
}

.download-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 56px;
  gap: 16px;
}

.download-btn {
  width: 280px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 28px rgba(71, 203, 181, 0.32);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.download-btn:active {
  transform: scale(0.97);
}

.download-btn:hover {
  box-shadow: 0 14px 32px rgba(71, 203, 181, 0.4);
}

.download-btn .main {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
  font-size: 18px;
  font-weight: 700;
}

.download-btn .icon-box {
  width: 60px;
  height: 60px;
  background: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.download-btn .icon-box svg {
  width: 26px;
  height: 26px;
}

.download-btn.android {
  background: #1f1f1f;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.download-btn.android:hover {
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.26);
}

.download-btn.android .icon-box svg {
  color: #1f1f1f;
}

/* ?? Contact ?? */
.contact-hero {
  width: 100%;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 70% 55% at 20% 40%, rgba(71, 203, 181, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 45% at 80% 70%, rgba(255, 140, 66, 0.12), transparent 55%),
    linear-gradient(180deg, #f7fcfb 0%, #eef9f5 100%);
  padding: 40px 20px 80px;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 420px;
}

.contact-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 28px 20px;
  text-align: center;
}

.contact-card h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.contact-card a,
.contact-card p {
  font-size: 15px;
  color: var(--gray);
  word-break: break-all;
}

.contact-card a:hover {
  color: var(--brand);
}

/* ?? Protocol pages ?? */
.protocol-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.protocol-page h1 {
  font-size: 24px;
  margin-bottom: 8px;
  text-align: center;
}

.protocol-page .date {
  text-align: center;
  color: #999;
  font-size: 13px;
  margin-bottom: 32px;
}

.protocol-page h2 {
  font-size: 18px;
  margin: 28px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--brand);
}

.protocol-page p,
.protocol-page li {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 10px;
}

.protocol-page ul {
  padding-left: 22px;
  margin-bottom: 12px;
}

/* ?? Footer ?? */
.site-footer {
  padding: 30px 16px;
  text-align: center;
  background: var(--footer-bg);
  flex-shrink: 0;
}

.footer-links {
  margin-bottom: 20px;
  font-size: 12px;
}

.footer-links a {
  margin: 0 10px;
  color: var(--link);
}

.footer-meta {
  margin-bottom: 20px;
  font-size: 12px;
  color: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-meta a {
  color: var(--gray);
}

.icp-icon {
  width: 14px;
  height: 16px;
}

/* ?? Responsive ?? */
@media (min-width: 480px) {
  .hero-inner {
    scale: 0.8;
  }
}

@media (min-width: 640px) {
  .hero-inner {
    scale: 0.9;
  }
}

@media (min-width: 769px) {
  .site-header {
    padding: 0 200px;
  }

  .logo {
    font-size: 32px;
    gap: 12px;
  }

  .logo img,
  .logo svg {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }

  .nav {
    gap: 40px;
  }

  .nav a {
    font-size: 16px;
    padding-bottom: 8px;
  }

  .hero-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
    scale: 0.75;
    translate: 0 0;
  }

  .phone-stage {
    width: 300px;
  }

  .hero-copy {
    margin-left: 120px;
    align-items: flex-start;
  }

  .slogan {
    display: block;
  }

  .download-row {
    flex-direction: row;
    align-items: flex-start;
    margin-top: 200px;
    gap: 0;
  }

  .download-btn {
    margin-right: 24px;
  }
}

@media (min-width: 1024px) {
  .hero-inner {
    scale: 0.85;
  }
}

@media (min-width: 1280px) {
  .hero-inner {
    scale: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tag {
    animation: none;
  }
  .slide {
    transition: none;
  }
}
