/* ===== 圈子页面样式 ===== */

/* 圈子分组卡片 */
.circle-group {
  margin: 12px 16px;
  background: var(--bg-glass);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.circle-group-header {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  gap: 12px;
  transition: background 0.15s;
}

.circle-group-header:active {
  background: var(--theme-light);
}

.circle-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  border: 2px solid rgba(255,255,255,0.25);
}
.circle-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.circle-group-info {
  flex: 1;
  min-width: 0;
}
.circle-group-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'Noto Serif SC', serif;
}
.circle-group-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 3px;
}
.circle-group-arrow {
  font-size: 22px;
  color: var(--text-secondary);
  transition: transform 0.2s;
  font-weight: 300;
}

/* NPC列表 */
.circle-npc-list {
  border-top: 1px solid var(--border);
}

.circle-npc-list-inner {
  padding: 4px 0;
}

.circle-npc-empty {
  padding: 20px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}

.circle-add-npc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px;
  color: var(--theme);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-top: 1px dashed var(--border);
  background: rgba(148, 92, 184, 0.05);
  transition: background 0.15s;
}
.circle-add-npc-btn:active {
  background: var(--theme-light);
}

/* NPC卡片 */
.circle-npc-card {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  gap: 14px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: background 0.15s;
  cursor: pointer;
}
html[data-color-scheme="dark"] .circle-npc-card {
  border-bottom-color: rgba(255,255,255,0.06);
}
.circle-npc-card:last-child {
  border-bottom: none;
}
.circle-npc-card:active {
  background: var(--theme-light);
}

.circle-npc-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.5);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.circle-npc-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 通用头像占位符 */
.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--theme-light);
  color: var(--theme-dark);
  font-size: 18px;
  font-weight: 600;
  font-family: 'Noto Serif SC', serif;
}
.avatar-placeholder.avatar-large {
  font-size: 26px;
}

.circle-npc-info {
  flex: 1;
  min-width: 0;
}
.circle-npc-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'Noto Serif SC', serif;
}
.circle-npc-remark {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 3px;
}
.circle-npc-badges {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.circle-npc-chevron {
  font-size: 20px;
  color: var(--text-secondary);
  font-weight: 300;
  align-self: center;
}
.circle-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 8px;
  font-weight: 500;
  font-family: 'Noto Sans SC', sans-serif;
}
.circle-badge--moments {
  background: rgba(5,150,105,0.1);
  color: #059669;
  border: 1px solid rgba(5,150,105,0.2);
}
.circle-badge--mutual {
  background: rgba(37,99,235,0.1);
  color: #2563eb;
  border: 1px solid rgba(37,99,235,0.2);
}
html[data-color-scheme="dark"] .circle-badge--moments {
  background: rgba(52,211,153,0.15);
  color: #34d399;
  border-color: rgba(52,211,153,0.3);
}
html[data-color-scheme="dark"] .circle-badge--mutual {
  background: rgba(96,165,250,0.15);
  color: #60a5fa;
  border-color: rgba(96,165,250,0.3);
}

/* 颜色选择器 */
.color-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.color-option {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  border: 3px solid transparent;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.color-option:hover {
  transform: scale(1.08);
}
.color-option.selected {
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--theme), 0 3px 8px rgba(0,0,0,0.2);
}

/* 表单辅助样式 */
.toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 4px 0;
}
.toggle-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--theme);
}
.form-hint {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 6px;
}

/* NPC资料页 */
.npc-profile-header {
  text-align: center;
  padding: 28px 16px;
  background: linear-gradient(180deg, var(--theme-light) 0%, transparent 100%);
  margin: 12px 16px;
  border-radius: var(--radius);
}
html[data-color-scheme="dark"] .npc-profile-header {
  background: linear-gradient(180deg, rgba(148,92,184,0.2) 0%, transparent 100%);
}

.npc-profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 14px;
  border: 3px solid rgba(255,255,255,0.6);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.npc-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.npc-profile-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'Noto Serif SC', serif;
}
.npc-profile-remark {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 5px;
}
.npc-profile-gender {
  font-size: 18px;
  margin-top: 5px;
}

.npc-profile-section {
  background: var(--bg-glass);
  border-radius: var(--radius);
  padding: 16px;
  margin: 12px 16px;
  box-shadow: var(--shadow-sm);
}
.npc-profile-section-title {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}
.npc-profile-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
html[data-color-scheme="dark"] .npc-profile-row {
  border-bottom-color: rgba(255,255,255,0.06);
}
.npc-profile-row:last-child {
  border-bottom: none;
}
.npc-profile-label {
  font-size: 14px;
  color: var(--text-secondary);
}
.npc-profile-value {
  font-size: 14px;
  color: var(--text-primary);
  text-align: right;
  max-width: 60%;
}

.npc-profile-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
html[data-color-scheme="dark"] .npc-profile-toggle {
  border-bottom-color: rgba(255,255,255,0.06);
}
.npc-profile-toggle:last-child {
  border-bottom: none;
}
.npc-profile-toggle > span {
  font-size: 15px;
  color: var(--text-primary);
}

/* NPC朋友圈 */
.npc-moments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.npc-moment-card {
  background: var(--bg-glass);
  border-radius: var(--radius);
  padding: 16px;
  margin: 0 16px;
  box-shadow: var(--shadow-sm);
}

.npc-moment-header {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.npc-moment-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.5);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.npc-moment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.npc-moment-author {
  flex: 1;
  padding-top: 2px;
}
.npc-moment-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'Noto Serif SC', serif;
}
.npc-moment-time {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 3px;
}

.npc-moment-content {
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

.npc-moment-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 12px;
}
.npc-moment-images img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

.npc-moment-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.04);
}
html[data-color-scheme="dark"] .npc-moment-footer {
  border-top-color: rgba(255,255,255,0.06);
}
.npc-moment-likes {
  font-size: 13px;
  color: var(--text-secondary);
}
.npc-moment-actions {
  display: flex;
  gap: 16px;
}

/* NPC评论 */
.npc-comment-item {
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
html[data-color-scheme="dark"] .npc-comment-item {
  border-bottom-color: rgba(255,255,255,0.06);
}
.npc-comment-item:last-child {
  border-bottom: none;
}
.npc-comment-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'Noto Serif SC', serif;
}
.npc-comment-content {
  font-size: 14px;
  color: var(--text-primary);
  margin-top: 5px;
  line-height: 1.5;
}
.npc-comment-time {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 5px;
}

/* NPC好友列表 */
.npc-friends-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 16px;
}
.npc-friend-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-glass);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}
.npc-friend-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.4);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.npc-friend-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.npc-friend-info {
  flex: 1;
}
.npc-friend-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'Noto Serif SC', serif;
}
.npc-friend-type {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 3px;
}

/* 添加好友 */
.add-friend-section {
  margin-bottom: 22px;
}
.add-friend-section-title {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  padding-left: 4px;
}
.add-friend-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s;
}
.add-friend-item:active {
  background: var(--theme-light);
}
.add-friend-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.4);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.add-friend-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.add-friend-name {
  font-size: 15px;
  color: var(--text-primary);
  font-family: 'Noto Serif SC', serif;
}

/* 空状态 */
.empty-hint {
  text-align: center;
  padding: 24px;
  color: var(--text-secondary);
  font-size: 14px;
}
