:root {
  color: #fff;
  background: #06000f;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: #fff;
  background: #06000f;
}

button {
  font: inherit;
}

.post-page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(26, 0, 38, 0.86) 0%, rgba(7, 0, 16, 0.97) 46%, rgba(5, 8, 28, 0.98) 100%);
}

.post-header {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: calc(16px + env(safe-area-inset-top)) 16px 18px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.top-bar-left {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.logo-box {
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 4px;
}

.logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-title {
  overflow: hidden;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav-list {
  order: 3;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
  padding: 8px 0 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav-list::-webkit-scrollbar {
  display: none;
}

.site-nav-link {
  position: relative;
  flex-shrink: 0;
  padding: 8px 0 12px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.site-nav-link:hover,
.site-nav-link--active {
  color: #fff;
}

.site-nav-link--active::after {
  position: absolute;
  right: 50%;
  bottom: 4px;
  width: 16px;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, #ff4ed4, #b86cff);
  border-radius: 999px;
  transform: translateX(50%);
}

.site-nav-actions,
.top-bar-right {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
}

.post-header-back {
  flex-shrink: 0;
  min-height: 38px;
  padding: 0 15px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.post-header-back:hover {
  background: rgba(255, 79, 212, 0.18);
  border-color: rgba(255, 79, 212, 0.42);
  transform: translateY(-1px);
}

.site-nav-link:focus-visible,
.post-header-back:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.88);
  outline-offset: 3px;
}

.post-main {
  position: relative;
  z-index: 1;
  width: min(100% - 48px, 1180px);
  margin: 56px auto 88px;
}

.post-article {
  width: min(100%, 920px);
}

.post-article h1 {
  margin: 0;
  padding-bottom: 26px;
  color: #fff;
  font-size: 42px;
  font-weight: 950;
  line-height: 1.16;
  letter-spacing: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 34px;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.post-tags span {
  padding: 8px 14px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.post-meta time {
  color: rgba(255, 255, 255, 0.58);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.post-article h2 {
  margin: 30px 0 12px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: 0;
}

.post-article p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.75;
  letter-spacing: 0;
}

.post-feature-panel {
  width: min(100%, 560px);
  min-height: 180px;
  margin: 34px auto;
  padding: 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.7;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
}

@media (max-width: 760px) {
  .post-header {
    gap: 10px 12px;
    padding: calc(16px + env(safe-area-inset-top)) 16px 14px;
  }

  .site-nav-list {
    gap: 22px;
  }

  .post-header-back {
    min-height: 36px;
    padding: 0 14px;
    font-size: 14px;
  }

  .post-main {
    width: min(100% - 32px, 680px);
    margin-top: 34px;
  }

  .post-article h1 {
    font-size: 29px;
  }

  .post-article p {
    font-size: 17px;
  }
}

@media (min-width: 768px) {
  .post-header {
    flex-wrap: nowrap;
    gap: 18px;
    padding: 34px clamp(32px, 6vw, 96px) 24px;
  }

  .top-bar-left {
    padding-right: clamp(18px, 3vw, 34px);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
  }

  .site-nav-list {
    order: 0;
    width: auto;
    flex: 1;
    justify-content: center;
    gap: clamp(22px, 3vw, 42px);
    padding: 0;
    overflow: visible;
  }

  .site-nav-link {
    font-size: 16px;
  }

  .site-nav-actions {
    gap: 22px;
  }

  .logo-box {
    width: 42px;
    height: 42px;
  }

  .app-title {
    font-size: 24px;
  }

  .post-header-back {
    min-height: 42px;
    padding: 0 18px;
    font-size: 15px;
  }
}
