:root {
  --txj-color-primary: #0b0b0b;
  --txj-color-primary-light: #2a2a2a;
  --txj-color-primary-lighter: #f4f4f4;
  --txj-color-primary-dark: #000000;
  --txj-color-accent: #111111;
  --txj-color-accent-light: #eeeeee;

  --txj-color-bg: #fbfbfa;
  --txj-color-surface: #ffffff;
  --txj-color-surface-warm: #f7f7f5;
  --txj-color-surface-rose: #efefed;

  --txj-color-text-primary: #050505;
  --txj-color-text-secondary: #4c4c4c;
  --txj-color-text-tertiary: #8a8a8a;
  --txj-color-text-placeholder: #b8b8b8;
  --txj-color-text-on-primary: #ffffff;

  --txj-color-border: rgba(0, 0, 0, 0.1);
  --txj-color-border-strong: rgba(0, 0, 0, 0.2);
  --txj-color-divider: rgba(0, 0, 0, 0.08);

  --txj-radius-sm: 10px;
  --txj-radius-md: 16px;
  --txj-radius-lg: 24px;
  --txj-radius-xl: 32px;
  --txj-radius-full: 9999px;

  --txj-shadow-sm: 0 1px 0 rgba(0, 0, 0, 0.05);
  --txj-shadow-md: 0 16px 48px rgba(0, 0, 0, 0.06);
  --txj-shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.08);
  --txj-shadow-glow: 0 0 0 1px rgba(0, 0, 0, 0.08);

  --txj-gap-xs: 6px;
  --txj-gap-sm: 10px;
  --txj-gap-md: 16px;
  --txj-gap-lg: 24px;
  --txj-gap-xl: 36px;

  --txj-font-xs: 11px;
  --txj-font-sm: 13px;
  --txj-font-base: 14px;
  --txj-font-md: 16px;
  --txj-font-lg: 22px;
  --txj-font-xl: 30px;
  --txj-font-xxl: 44px;

  --txj-ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --txj-duration-fast: 0.16s;
  --txj-duration-normal: 0.28s;
  --txj-duration-slow: 0.5s;
}

.txj-app {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  color: var(--txj-color-text-primary);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 247, 245, 0.96)),
    radial-gradient(circle at 12% 0%, rgba(0, 0, 0, 0.055), transparent 28%);
  font-size: var(--txj-font-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.txj-app--mono {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
}

.txj-app--list {
  position: relative;
  height: 100%;
  min-height: 100%;
  min-height: 100dvh;
  padding: 0;
  gap: 0;
  overflow: hidden;
}

.txj-app--list::before {
  content: "";
  position: fixed;
  inset: 18px 18px auto auto;
  width: 76px;
  height: 76px;
  border-top: 1px solid rgba(0, 0, 0, 0.16);
  border-right: 1px solid rgba(0, 0, 0, 0.16);
  pointer-events: none;
}

.txj-app--space {
  min-height: 100%;
  background: var(--txj-color-bg);
}

.txj-topbar {
  display: flex;
  align-items: center;
  gap: var(--txj-gap-sm);
}

.txj-topbar--list {
  position: relative;
  z-index: 2;
  justify-content: space-between;
  padding: 4px 0 10px;
}

.txj-topbar--space {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: var(--txj-gap-md) var(--txj-gap-lg) var(--txj-gap-sm);
  background: rgba(251, 251, 250, 0.9);
  border-bottom: 1px solid var(--txj-color-divider);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.txj-topbar__home-title {
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--txj-color-text-primary);
  cursor: pointer;
  border-radius: 0;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: opacity var(--txj-duration-fast) var(--txj-ease-soft);
}

.txj-topbar__home-title:hover {
  opacity: 0.52;
}

.txj-topbar__home-title:active {
  transform: scale(0.98);
}

.txj-topbar__subtitle {
  margin: 0;
  font-size: var(--txj-font-sm);
  color: var(--txj-color-text-tertiary);
  font-weight: 400;
}

.txj-space-body {
  flex: 1;
  padding: var(--txj-gap-md) var(--txj-gap-lg) 120px;
  display: flex;
  flex-direction: column;
  gap: var(--txj-gap-md);
}

.txj-tab-panel {
  display: flex;
  flex-direction: column;
  gap: var(--txj-gap-md);
  animation: txjFadeSlideUp var(--txj-duration-normal) var(--txj-ease-soft);
}

@keyframes txjFadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.txj-empty-state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 220px;
  padding: 34px;
  text-align: left;
  background: rgba(255, 255, 255, 0.64);
  border-radius: 28px;
  border: 1px solid var(--txj-color-border);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.txj-empty-state__icon {
  width: 58px;
  height: 58px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: #0b0b0b;
  border-radius: 50%;
  color: #ffffff;
  line-height: 1;
}

.txj-empty-state__title {
  margin: 0 0 8px;
  font-size: 24px;
  color: var(--txj-color-text-primary);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.txj-empty-state__text {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--txj-color-text-tertiary);
  max-width: 260px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.txj-empty-inline {
  margin: 0;
  padding: var(--txj-gap-lg) var(--txj-gap-md);
  text-align: center;
  font-size: var(--txj-font-sm);
  color: var(--txj-color-text-tertiary);
  background: var(--txj-color-surface-warm);
  border-radius: var(--txj-radius-md);
  border: 1px dashed var(--txj-color-border);
}

.app-view-panel__body--tongxinjian {
  padding: 0;
  background: var(--txj-color-bg);
}

.app-view-panel__header--tongxinjian {
  background: rgba(251, 251, 250, 0.96);
  border-bottom-color: var(--txj-color-divider);
}

.app-view-panel__body--tongxinjian .app-placeholder {
  display: none;
}

@media (max-width: 480px) {
  .txj-app--list {
    min-height: 100dvh;
    padding: 0;
    gap: 0;
  }

  .txj-space-body {
    padding: var(--txj-gap-sm) var(--txj-gap-md) 110px;
  }
}
