* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background: #f2f3fa;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
}

.container {
  display: flex;
  max-width: 1400px;
  width: 100%;
  gap: 30px;
  height: 90vh;
}

/* 左侧导航栏（仅垂直滚动条） */
.sidebar {
  width: 280px;
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(108, 115, 153, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tab-nav {
  display: flex;
  list-style: none;
  border-bottom: 1px solid #e6e9ed;
}

.tab-nav li {
  flex: 1;
  text-align: center;
  cursor: pointer;
  padding: 16px 0;
  transition: all 0.3s;
  font-weight: 500;
  font-size: 16px;
  position: relative;
  color: #6c7399;
}

.tab-nav li:hover {
  background-color: #f8f9fa;
}

.tab-nav li.active {
  background: #f2f3fa;
  font-weight: 600;
  color: #9ea3ba;
}

.tab-nav li.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #6c7399;
}

.bond-list {
  padding: 0;
  flex: 1;
  overflow-x: hidden; /* 禁水平 */
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.bond-item {
  padding: 14px 24px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  font-size: 15px;
  position: relative;
  color: #6c7399;
  flex-shrink: 0;
  border-bottom: 1px solid #f2f3fa;
}

.bond-item:last-child {
  border-bottom: none;
}

.bond-item::before {
  /* content: ''; */
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #6c7399;
  opacity: 0;
  transition: all 0.3s;
}

.bond-item:hover {
  background-color: #f8f9fa;
  transform: translateX(4px);
  color: #a6aac3;
}

.bond-item:hover::before {
  opacity: 1;
}

.bond-item.active {
  background: #f2f3fa;
  font-weight: 600;
  border-left: 4px solid #6c7399;
  color: #6c7399;
}

/* 右侧内容区 */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.content-header {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
  gap: 20px;
}

.section-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: 0 8px 25px rgba(108, 115, 153, 0.15);
  animation: float 6s ease-in-out infinite;
}

.section-title {
  font-size: 28px;
  color: #6c7399;
  font-weight: bold;
}

/* 茶歇列表容器 */
.tea-list {
  flex: 1;
  overflow-y: auto;
  padding-right: 10px;
  padding-top: 16px;
  color: #6c717f;
}

/* 茶歇卡片 */
.tea-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(108, 115, 153, 0.1);
  margin-bottom: 20px;
  transition: all 0.3s;
  position: relative;
  border: 1px solid rgba(220, 220, 220, 0.5);
}

.tea-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(108, 115, 153, 0.15);
}

.card-header {
  padding: 16px 24px;
  background: #e4e6fd;
  border-bottom: 1px solid rgba(220, 220, 220, 0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  font-size: 18px;
  font-weight: bold;
  color: #6a6f7d;
}

.card-date {
  font-size: 14px;
  color: #6c7399;
}

.card-content {
  padding: 20px 24px;
}

.card-text {
  font-size: 16px;
  line-height: 1.7;
  color: #5d6675;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}

.card-text img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 12px;
}

.card-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-option {
  padding: 14px 18px;
  background-color: #f8f9fa;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(220, 220, 220, 0.5);
}

.card-option:hover {
  background-color: #f2f3fa;
  border-color: rgba(108, 115, 153, 0.3);
}

.card-option.active {
  background: #f2f3fa;
  border-left: 4px solid #6c7399;
  font-weight: 500;
}

.option-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #6c7399;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.option-text {
  flex: 1;
  font-size: 15px;
  color: #5d6a75;
}

/* 回复 */
.card-reply {
  margin-top: 20px;
  padding: 14px 18px;
  background-color: #f2f3fa;
  border-radius: 10px;
  border-left: 4px solid #6c7399;
  display: flex;
  align-items: center;
  line-height: 1.5;
}

.reply-name {
  font-weight: bold;
  color: #6c7399;
  margin-right: 8px;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.reply-name img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.reply-text {
  font-size: 15px;
  color: #5d6675;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

/* WebKit 和 Blink 浏览器 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f2f3fa;
  border-radius: 4px;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #f2f3fa;
}

/* Firefox 浏览器 */
* {
  scrollbar-color: #a6aac3 #f2f3fa;
  scrollbar-width: thin;
}