/* 参考账号独立页 */
.ref-page-body {
  background: #f5f5f7;
  min-height: 100vh;
}

.ref-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.ref-page-header {
  margin-bottom: 24px;
}

.ref-page-header h1 {
  font-size: 24px;
  color: var(--brown);
  margin: 12px 0 6px;
}

.ref-page-meta {
  font-size: 13px;
}

.ref-back-home {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.ref-back-home:hover { text-decoration: underline; }

.ref-profile-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ref-list-card {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 14px;
  align-items: center;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.ref-list-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c45c26, #e8925a);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}

.ref-list-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.ref-list-head h2 {
  font-size: 16px;
  margin: 0;
  color: var(--brown);
}
.ref-list-stats { font-size: 13px; color: #666; margin: 0 0 4px; }
.ref-list-top { font-size: 12px; margin: 0; line-height: 1.4; }

.ref-detail-btn {
  white-space: nowrap;
  padding: 8px 20px;
  font-size: 13px;
}

/* 博主详情页 — 左侧博主列表 + 右侧笔记网格/详情 */
.ref-detail-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  background: #f5f5f7;
}

.ref-blogger-sidebar {
  background: #fff;
  border-right: 1px solid #eee;
  padding: 20px 0 24px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.ref-blogger-sidebar .ref-back-home {
  padding: 0 16px;
  margin-bottom: 12px;
}

.ref-sidebar-title {
  font-size: 16px;
  color: var(--brown);
  margin: 0 0 4px;
  padding: 0 16px;
}

.ref-sidebar-list-meta {
  font-size: 11px;
  padding: 0 16px 12px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 8px;
}

.ref-blogger-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 8px;
}

.ref-blogger-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: inherit;
  margin-bottom: 2px;
  transition: background 0.12s;
  cursor: pointer;
}
.ref-blogger-item:hover {
  background: #f5f5f5;
}
.ref-blogger-item.active {
  background: #fff5f0;
  border: 1px solid rgba(196, 92, 38, 0.25);
}

.ref-blogger-item-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c45c26, #e8925a);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ref-blogger-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ref-blogger-item-name {
  font-size: 13px;
  font-weight: 600;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ref-profile-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.ref-profile-link:hover {
  color: var(--accent);
  text-decoration: underline;
}
.ref-list-head-name {
  font-size: 16px;
  margin: 0;
  font-weight: 600;
  color: var(--brown);
}
.ref-profile-bar-name.ref-profile-link {
  font-size: 18px;
  font-weight: 600;
}
.ref-blogger-item-sub {
  font-size: 11px;
}

.ref-profile-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}
.ref-profile-bar-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ref-avatar {
  border-radius: 50%;
  background: linear-gradient(135deg, #c45c26, #e8925a);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ref-avatar-sm {
  width: 48px;
  height: 48px;
  font-size: 20px;
  margin: 0;
  flex-shrink: 0;
}
.ref-profile-bar-name {
  font-size: 18px;
  margin: 0 0 4px;
  color: #222;
}
.ref-profile-bar-stats {
  font-size: 12px;
  margin: 0;
}

.ref-detail-main {
  padding: 24px 32px 48px;
  overflow-y: auto;
  min-height: 100vh;
}

.ref-detail-tabs {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e0e0e0;
}
.ref-tab {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  padding-bottom: 10px;
  border-bottom: 2px solid #ff2442;
  margin-bottom: -13px;
}
.ref-tab-meta { font-size: 13px; }

.ref-note-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.ref-note-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #eee;
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s;
}
.ref-note-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.ref-note-cover {
  position: relative;
  aspect-ratio: 3/4;
  background: #f0f0f0;
  overflow: hidden;
}
.ref-note-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ref-no-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #aaa;
  font-size: 13px;
}
.ref-img-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
}

.ref-note-card-title {
  font-size: 13px;
  font-weight: 600;
  color: #222;
  line-height: 1.4;
  margin: 10px 12px 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

.ref-note-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: #888;
  padding: 0 12px;
}
.ref-note-card-date {
  font-size: 11px;
  padding: 6px 12px 12px;
}

/* 笔记详情 — 内联页，仿蒲公英笔记详情（仅配图） */
.ref-note-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}
.ref-note-detail-header h2 {
  font-size: 18px;
  margin: 0;
  flex: 1;
  color: #222;
}
.ref-back-grid {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}
.ref-back-grid:hover { text-decoration: underline; }

.ref-copy-link {
  background: none;
  border: none;
  color: #1a6fb5;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.ref-copy-link:hover { text-decoration: underline; }

.ref-note-detail-body {
  max-width: 720px;
  margin: 0 auto;
}

.ref-detail-carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.ref-detail-slide-wrap {
  flex: 1;
  max-width: 560px;
  background: #f8f8f8;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.ref-detail-main-img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  display: block;
}

.ref-detail-nav {
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  color: #666;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.ref-detail-nav:hover:not(:disabled) {
  background: #f5f5f5;
  color: #222;
}
.ref-detail-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.ref-detail-thumbs {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 8px 0;
}

.ref-detail-thumb {
  width: 64px;
  height: 85px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: #f0f0f0;
  flex-shrink: 0;
  transition: border-color 0.12s;
}
.ref-detail-thumb.active {
  border-color: #ff2442;
}
.ref-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ref-detail-title {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  line-height: 1.5;
  margin: 0 0 10px;
}

.ref-detail-stats {
  font-size: 13px;
  color: #888;
  margin-bottom: 16px;
}

.ref-detail-content {
  font-size: 14px;
  line-height: 1.75;
  color: #333;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 16px 0 8px;
  border-top: 1px solid #f0f0f0;
  max-height: 480px;
  overflow-y: auto;
}
.ref-detail-content-empty {
  font-size: 13px;
  padding: 12px 0;
  border-top: 1px solid #f0f0f0;
}

.ref-detail-hint {
  font-size: 12px;
  margin: 0;
}

.ref-xhs-link {
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

.ref-loading { text-align: center; padding: 40px 0; }

@media (max-width: 900px) {
  .ref-detail-layout { grid-template-columns: 1fr; }
  .ref-blogger-sidebar {
    position: static;
    height: auto;
    max-height: 220px;
    border-right: none;
    border-bottom: 1px solid #eee;
  }
  .ref-detail-slide-wrap { min-height: 280px; }
}
