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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  background-color: #f9fafb;
  color: #020617;
}

body::-webkit-scrollbar {
  width: 8px;
}

body::-webkit-scrollbar-track {
  background: #f9fafb;
}

body::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 4px;
}

body::-webkit-scrollbar-thumb:hover {
  background: #cbd5e1;
}

.page-root {
  min-height: 100vh;
  background-color: #f9fafb;
  color: #020617;
  overflow-x: hidden;
}

/* 顶部导航 */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  backdrop-filter: blur(20px);
  background-color: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

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

.nav-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 35px rgba(16, 185, 129, 0.45);
}

.nav-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-title {
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.03em;
  color: #020617;
}

.btn-primary-sm {
  padding: 10px 24px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background-color: #020617;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2);
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-primary-sm:active {
  transform: scale(0.96);
}

.btn-primary-sm:hover {
  background-color: #059669;
}

/* Hero */
.hero {
  position: relative;
  min-height: 50vh;
  padding: 72px 24px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  border-radius: 999px;
  filter: blur(120px);
  z-index: -1;
}

.hero-bg-emerald {
  top: -10%;
  left: -10%;
  width: 40%;
  height: 40%;
  background-color: rgba(167, 243, 208, 0.5);
}

.hero-bg-blue {
  right: -5%;
  bottom: 10%;
  width: 30%;
  height: 30%;
  background-color: rgba(191, 219, 254, 0.5);
}

.hero-content {
  max-width: 900px;
  text-align: center;
  animation: fade-up 0.8s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  margin-bottom: 20px;
  border-radius: 999px;
  background-color: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #047857;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-tag-dot {
  position: relative;
  display: flex;
  width: 8px;
  height: 8px;
}

.hero-tag-dot-ping {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background-color: #34d399;
  opacity: 0.75;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.hero-tag-dot-core {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background-color: #10b981;
}

@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 0.75;
  }
  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.hero-title {
  font-size: 34px;
  line-height: 1.15;
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #020617;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 64px;
  }
}

.hero-title-highlight {
  background: linear-gradient(120deg, #059669, #10b981, #0ea5e9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 6px 16px rgba(16, 185, 129, 0.28);
}

.hero-subtitle {
  margin: 0 auto 20px;
  max-width: 640px;
  font-size: 16px;
  line-height: 1.7;
  color: #6b7280;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
}

.btn-primary-lg,
.btn-secondary-lg,
.btn-primary-xl {
  border-radius: 18px;
  border: none;
  cursor: pointer;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.1s ease, box-shadow 0.2s ease, background-color 0.2s ease,
    color 0.2s ease;
}

.btn-primary-lg {
  padding: 18px 40px;
  background-color: #059669;
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(16, 185, 129, 0.35);
}

.btn-primary-lg:hover {
  background-color: #047857;
}

.btn-primary-xl {
  padding: 22px 48px;
  background-color: #059669;
  color: #ffffff;
  box-shadow: 0 30px 60px rgba(16, 185, 129, 0.45);
  border-radius: 20px;
}

.btn-primary-lg:active,
.btn-primary-xl:active {
  transform: scale(0.96);
}

.btn-secondary-lg {
  padding: 18px 40px;
  background-color: #ffffff;
  color: #020617;
  border: 1px solid #e5e7eb;
}

.btn-secondary-lg:hover {
  background-color: #f9fafb;
}

/* 通用 SVG 图标尺寸 */
.icon-inline {
  width: 18px;
  height: 18px;
}

.icon-inline-sm {
  width: 14px;
  height: 14px;
}

/* Feed 区域 */
.feed {
  padding: 10px 24px 32px;
  max-width: 1120px;
  margin: 0 auto;
}

.feed-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .feed-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.feed-title {
  position: relative;
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #020617;
  padding-left: 12px;
}

.feed-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #22c55e, #0ea5e9);
}

.feed-subtitle {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

.feed-view-all {
  border: none;
  background: none;
  color: #059669;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  padding: 0;
  transition: gap 0.2s ease;
}

.feed-view-all:hover {
  gap: 10px;
}

.icon-chevron-right {
  width: 18px;
  height: 18px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.feed-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 900px) {
  .feed-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #f1f5f9;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 55px rgba(16, 185, 129, 0.15);
}

.card-image-wrapper {
  position: relative;
  padding-top: 62.5%; /* 16/10 比例 */
  overflow: hidden;
}

.card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

.card:hover .card-image {
  transform: scale(1.05);
}

.card-location {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 10px;
  font-weight: 800;
  color: #020617;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

.icon-pin {
  width: 12px;
  height: 12px;
  border-radius: 50% 50% 50% 0;
  background: #059669;
  transform: rotate(-45deg);
  position: relative;
}

.icon-pin::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background-color: #bbf7d0;
}

.card-body {
  padding: 20px 24px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-caption {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
  color: #020617;
  line-height: 1.4;
}

.card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-author {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.card-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 5px 15px rgba(15, 23, 42, 0.15);
}

.card-author-name {
  font-size: 12px;
  font-weight: 700;
  color: #4b5563;
}

.card-likes {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #9ca3af;
  transition: color 0.2s ease;
}

.card:hover .card-likes {
  color: #f97373;
}

.icon-heart {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid currentColor;
  position: relative;
  transform: rotate(-45deg);
}

.icon-heart::before,
.icon-heart::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid currentColor;
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-right-color: transparent;
  top: -6px;
  left: -2px;
}

.icon-heart::after {
  left: 4px;
}

/* 功能区 */
.features {
  padding: 32px 24px;
  background-color: rgba(248, 250, 252, 0.7);
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.features-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .features-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #059669;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.feature-title {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 900;
  color: #020617;
}

.feature-desc {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.7;
  font-weight: 500;
}

/* 简单的图标占位（可以根据需要替换为自定义 SVG） */
.icon-camera,
.icon-trending,
.icon-message {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid currentColor;
  position: relative;
}

/* 底部 CTA */
.cta {
  position: relative;
  padding: 64px 24px 40px;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background-color: rgba(236, 253, 245, 0.6);
  z-index: -1;
}

.cta-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.cta-title {
  margin: 0 0 24px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #020617;
  line-height: 1.3;
}

.cta-title span {
  color: #059669;
  position: relative;
}

.cta-title span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.18), rgba(14, 165, 233, 0.16));
}

.cta-footer {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.cta-line {
  width: 48px;
  height: 1px;
  background-color: #e5e7eb;
}

.cta-copy {
  margin: 0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #d1d5db;
}

/* 移动端优化 */
@media (max-width: 480px) {
  .nav {
    padding-inline: 16px;
  }

  .hero {
    padding-inline: 16px;
  }

  .feed,
  .features,
  .cta {
    padding-inline: 16px;
  }
}

