.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.top-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  flex-shrink: 0;
}

.logo {
  width: 68px;
  height: 36px;
  background-image: url('logo.png');
  background-size: contain;
  background-position: left center;
  background-repeat: no-repeat;
}

.brand-name {
  margin-left: -14px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink, var(--color-text-main, #22252C));
  letter-spacing: 0.4px;
  line-height: 1;
  white-space: nowrap;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav a {
  text-decoration: none;
  color: var(--subtext, var(--color-text-secondary, #6A686B));
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
}

.nav a.active {
  color: var(--primary, var(--color-primary, #FF703F));
  font-weight: 600;
}

@media (max-width: 900px) {
  .top-inner {
    width: calc(100% - 20px);
    min-height: 56px;
    padding: 8px 0;
    gap: 10px;
  }

  .logo {
    width: 56px;
    height: 28px;
  }

  .brand-name {
    margin-left: -11px;
    font-size: 14px;
  }

  .nav {
    margin-left: auto;
    max-width: 66%;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

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

  .nav a {
    font-size: 13px;
  }
}
