/* ========================================
   x.h-sh.com 团队风采 · CSS
   设计规范：数字使用 3、6、9 组合
   ======================================== */

:root {
  --bg: #0a0a0f;
  --surface: #13131a;
  --surface2: #1a1a26;
  --border: #2a2a3a;
  --accent: #a78bfa;
  --accent2: #6366f1;
  --text: #e2e2f0;
  --text2: #8888aa;
  --text3: #555570;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Noto Sans SC', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

/* Header */
.site-header {
  position: relative;
  overflow: hidden;
  padding: 66px 36px 36px;
  text-align: center;
}

.header-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,0.15) 0%, transparent 66%);
  pointer-events: none;
}

.header-content { position: relative; z-index: 1; }

.logo-area {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
}

.logo-icon { font-size: 33px; color: var(--accent); }
.logo-text { font-size: 28px; font-weight: 700; letter-spacing: 0.02em; }

.header-subtitle {
  color: var(--text2);
  font-size: 14px;
  font-weight: 300;
}

.back-link {
  position: absolute;
  top: 33px;
  left: 36px;
  color: var(--text2);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--accent); }

/* Main */
main { max-width: 999px; margin: 0 auto; padding: 0 33px 66px; }

.section { margin-top: 63px; }

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 33px;
}

.section-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
}

.section-count {
  font-size: 13px;
  color: var(--text3);
}

.section-more {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
}
.section-more:hover { text-decoration: underline; }

/* Members Grid */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(299px, 1fr));
  gap: 24px;
}

.member-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 33px 27px 24px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.member-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.member-avatar {
  width: 69px;
  height: 69px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface2);
  flex-shrink: 0;
}

.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--accent);
  background: var(--surface2);
}

.member-info { flex: 1; }

.member-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 3px;
}

.member-role {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  background: rgba(167,139,250,0.1);
  border: 1px solid rgba(167,139,250,0.3);
  border-radius: 6px;
  padding: 2px 9px;
  margin-bottom: 12px;
}

.member-bio {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
}

.member-footer {
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.dream-count {
  font-size: 12px;
  color: var(--text3);
}

/* Dreams Grid (首页) */
.dreams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(299px, 1fr));
  gap: 24px;
}

.dream-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 27px 24px;
  transition: border-color 0.2s;
}
.dream-card:hover { border-color: var(--accent2); }

.dream-header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 15px;
}

.dream-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface2);
  display: inline-flex;
  flex-shrink: 0;
}

.dream-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dream-author { font-size: 13px; color: var(--text2); }

.dream-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 9px;
  color: var(--accent);
}

.dream-content {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Dreams List (详情页) */
.dreams-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dream-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 33px;
  transition: border-color 0.2s;
}
.dream-item:hover { border-color: var(--accent2); }

.dream-item-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 15px;
}

.dream-item-avatar {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface2);
  flex-shrink: 0;
  display: inline-block;
}

.dream-item-avatar img,
.dream-item-avatar .avatar-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dream-item-avatar .avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--accent);
}

.dream-item-author { font-size: 13px; color: var(--text2); }

.dream-item-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.dream-item-content {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.9;
  margin-bottom: 18px;
}

.dream-item-time {
  font-size: 12px;
  color: var(--text3);
}

/* Profile Card */
.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 66px 33px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

.profile-avatar {
  width: 139px;
  height: 139px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface2);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  font-size: 33px;
  font-weight: 700;
}

.profile-role {
  display: inline-block;
  font-size: 13px;
  color: var(--accent);
  background: rgba(167,139,250,0.1);
  border: 1px solid rgba(167,139,250,0.3);
  border-radius: 6px;
  padding: 3px 12px;
}

.profile-bio {
  font-size: 15px;
  color: var(--text2);
  max-width: 533px;
  line-height: 1.8;
}

.error, .empty {
  text-align: center;
  color: var(--text3);
  padding: 66px;
  font-size: 15px;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 36px;
  color: var(--text3);
  font-size: 13px;
  border-top: 1px solid var(--border);
}

.icp {
  margin-top: 6px;
}

.icp a {
  color: var(--text3);
  text-decoration: none;
}

.icp a:hover {
  color: var(--accent);
}

/* Responsive */
@media (max-width: 599px) {
  main { padding: 0 18px 36px; }
  .site-header { padding: 36px 18px 27px; }
  .back-link { top: 22px; left: 18px; }
  .members-grid, .dreams-grid { grid-template-columns: 1fr; }
  .profile-card { padding: 36px 24px; }
  .dream-item { padding: 24px; }
}
