:root {
  --green: #94C95B;
  --deepGreen: #6E970B;
  --blue: #5F9AFF;
  --lightBlue: #548DCA;
  --red: #F33434;
  --deepRed: #D1242A;
  --brownRed: #B1483F;
  --orange: #F8A45F;
  --amber: #F39F06;
  --warm: #F77F00;
  --sky: #509ACB;
  --cyan: #00AFBE;
  --purple: #6956A0;
  --indigo: #64529D;
  --pink: #CB469A;
  --dark: #41322C;
  --beige: #D0AA84;
  --cream: #E5CEBE;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--dark);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(245, 250, 242, 0.90);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(110, 151, 11, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 100;
}

.header-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--deepGreen);
  letter-spacing: 2px;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--deepGreen);
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
  background: rgba(245, 250, 242, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(110, 151, 11, 0.06);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  cursor: pointer;
  padding: 6px 12px;
  transition: transform 0.3s;
}

.nav-item:active {
  transform: scale(0.9);
}

.nav-item svg {
  width: 24px;
  height: 24px;
  fill: #b5a99e;
  transition: fill 0.3s;
}

.nav-item span {
  font-size: 10px;
  color: #b5a99e;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

.nav-item.active svg {
  fill: var(--deepGreen);
}

.nav-item.active span {
  color: var(--deepGreen);
}

.chat-list {
  padding-top: 120px;
  padding-bottom: 70px;
}

.chat-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: #FFFFFF;
  border-bottom: 1px solid #F0F0F0;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.chat-item:active {
  background: #F0F0F0;
}

.chat-avatar {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 12px;
}

.chat-avatar svg {
  width: 28px;
  height: 28px;
  fill: #FFFFFF;
}

.avatar-bible {
  background: linear-gradient(145deg, #94C95B, #6E970B);
}

.avatar-podcast {
  background: linear-gradient(145deg, #548DCA, #3A6FAA);
}

.avatar-article {
  background: linear-gradient(145deg, #D0AA84, #B8916A);
}

.avatar-hymn {
  background: linear-gradient(145deg, #B1483F, #8C2E27);
}

.avatar-video {
  background: linear-gradient(145deg, #6956A0, #4A3A75);
}

.avatar-original {
  background: linear-gradient(145deg, #F8A45F, #F39F06);
}

.avatar-qna {
  background: linear-gradient(145deg, #00AFBE, #509ACB);
}

.avatar-witness {
  background: linear-gradient(145deg, #CB469A, #6956A0);
}

.chat-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-name {
  font-size: 16px;
  font-weight: 500;
  color: #1A1A1A;
}

.chat-desc {
  font-size: 13px;
  color: #888888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-time {
  font-size: 12px;
  color: #A0A0A0;
  flex-shrink: 0;
  margin-left: 8px;
}

.chat-arrow {
  width: 8px;
  height: 14px;
  margin-left: 8px;
  flex-shrink: 0;
}

.chat-arrow svg {
  width: 8px;
  height: 14px;
  fill: #C7C7C7;
}

.search-bar {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: #F7F7F7;
  padding: 10px 16px;
  z-index: 99;
}

.search-input {
  width: 100%;
  height: 36px;
  background: #FFFFFF;
  border-radius: 8px;
  border: 1px solid #E0E0E0;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
}

.search-input svg {
  width: 18px;
  height: 18px;
  fill: #A0A0A0;
  flex-shrink: 0;
}

.search-input span {
  font-size: 15px;
  color: #A0A0A0;
}
