:root {
  --primary: #FF2E4D;
  --primary-hover: #FF4765;
  --primary-glow: rgba(255, 46, 77, 0.15);
  --bg-page: #0B0C10;
  --bg-surface: #13141B;
  --bg-subtle: #191B24;
  --bg-hover: #1E202B;
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(255, 46, 77, 0.5);
  --border-hover: rgba(255, 255, 255, 0.16);
  --text-title: #FFFFFF;
  --text-body: #C9CDD8;
  --text-muted: #8F95A5;
  --text-dim: #5A6072;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] {
  --primary: #E11D48;
  --primary-hover: #BE123C;
  --primary-glow: rgba(225, 29, 72, 0.1);
  --bg-page: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F1F5F9;
  --bg-hover: #E2E8F0;
  --border: rgba(0, 0, 0, 0.08);
  --border-focus: rgba(225, 29, 72, 0.4);
  --border-hover: rgba(0, 0, 0, 0.15);
  --text-title: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-dim: #94A3B8;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px;
}


.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.2s ease;
}

.header-container, .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}


.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand:hover {
  transform: translateY(-1px) scale(1.02);
}

.brand-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(255, 46, 77, 0.3);
  flex-shrink: 0;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.brand:hover .brand-badge {
  box-shadow: 0 6px 20px rgba(255, 46, 77, 0.45);
}

.brand-logo-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-info {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

h1.brand-title, .brand-title {
  margin: 0;
  padding: 0;
  font-size: 1.35rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  font-family: -apple-system, BlinkMacSystemFont, "Outfit", "Plus Jakarta Sans", "PingFang SC", "Hiragino Sans GB", "MiSans", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #FFFFFF 20%, #FFE0E6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(255, 46, 77, 0.25));
  display: inline-block;
}

[data-theme="light"] h1.brand-title,
[data-theme="light"] .brand-title {
  background: linear-gradient(135deg, #0F172A 15%, #E11D48 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.08));
}

.brand-sub {
  font-size: 9.5px;
  font-weight: 700;
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  opacity: 0.9;
  margin-top: 2px;
}


.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 4px 6px;
  border-radius: 8px;
}

.nav-tab {
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.nav-tab:hover {
  color: var(--text-title);
}

.nav-tab.active {
  background: var(--primary);
  color: #FFF;
  box-shadow: 0 0 10px var(--primary-glow);
}


.header-search-wrap {
  flex: 1;
  max-width: 420px;
  margin: 0 auto;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  height: 38px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-icon {
  position: absolute;
  left: 12px;
  width: 16px !important;
  height: 16px !important;
  fill: var(--text-dim);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  padding: 0 38px 0 38px;
  font-size: 13.5px;
  color: var(--text-title);
  outline: none;
}

.search-input::placeholder {
  color: var(--text-dim);
}

.search-kbd {
  position: absolute;
  right: 10px;
  display: flex;
  gap: 4px;
  pointer-events: none;
}

.search-kbd kbd {
  font-size: 10.5px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-dim);
  background: var(--bg-page);
  border: 1px solid var(--border);
  padding: 2px 5px;
  border-radius: 4px;
}

.search-clear-btn {
  position: absolute;
  right: 10px;
  width: 20px;
  height: 20px;
  border: none;
  background: var(--bg-hover);
  color: var(--text-muted);
  border-radius: 50%;
  font-size: 11px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.search-clear-btn.show {
  display: flex;
}


.header-actions, .header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
}

.back-link:hover {
  color: var(--text-title);
  border-color: var(--primary);
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle-btn:hover {
  border-color: var(--primary);
  transform: scale(1.05);
}

.theme-toggle-btn svg {
  width: 18px !important;
  height: 18px !important;
}

[data-theme="dark"] .icon-sun { display: block; fill: #FBBF24; filter: drop-shadow(0 0 4px rgba(251,191,36,0.5)); }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; fill: #0F172A; }


.main {
  flex: 1;
  padding: 24px 0 28px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.section {
  margin-bottom: 36px;
  scroll-margin-top: 136px;
}

.section:last-of-type {
  margin-bottom: 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-glow);
  padding: 2px 8px;
  border-radius: 4px;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-title);
}

.section-count {
  font-size: 12px;
  color: var(--text-dim);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 14px;
}

.site-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  min-height: 74px;
}

.site-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  background: var(--bg-hover);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.site-avatar {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--bg-page);
}

.site-content {
  flex: 1;
  min-width: 0;
}

.site-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

h3.site-name, .site-name {
  margin: 0;
  padding: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-title);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-arrow {
  width: 12px;
  height: 12px;
  opacity: 0;
  transform: translate(-3px, 3px);
  transition: all 0.2s ease;
  color: var(--primary);
  flex-shrink: 0;
}

.site-card:hover .site-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

.site-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  margin-top: 3px;
  height: 33px;
}


.console-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.console-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.avatar-img {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
  box-shadow: 0 0 20px var(--primary-glow);
}

.profile-meta {
  flex: 1;
  min-width: 0;
}

.profile-name {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-title);
}

.profile-alias {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

.profile-tagline {
  font-size: 13.5px;
  color: var(--primary);
  font-weight: 600;
  margin-top: 6px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.metric-item {
  background: var(--bg-page);
  padding: 16px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  text-align: center;
}

.metric-val {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-title);
  font-family: ui-monospace, monospace;
}

.metric-lbl {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

.section-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-card);
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.panel-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-glow);
  padding: 2px 8px;
  border-radius: 4px;
}

.panel-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-title);
}

.story-text, .bts-box {
  font-size: 13.5px;
  color: var(--text-body);
  line-height: 1.8;
  background: var(--bg-page);
  padding: 18px 22px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.social-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  background: var(--bg-hover);
}

.social-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #FFF;
}

.social-icon.weibo { background: #E6162D; }
.social-icon.bili { background: #00AEEC; }
.social-icon.douyin { background: #111; }
.social-icon.twitter { background: #000; border: 1px solid #333; }

.social-name {
  margin: 0;
  padding: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-title);
}

.social-handle {
  font-size: 11.5px;
  color: var(--text-dim);
}

.social-badge {
  font-size: 11px;
  font-weight: 600;
  color: #10B981;
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.compare-box {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 12px;
}

.compare-col {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
}

.compare-col h4, .compare-col-title {
  margin: 0 0 6px 0;
  font-size: 13px;
  color: var(--primary);
  font-weight: 700;
}

.compare-col p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.credit-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.credit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--text-body);
  background: var(--bg-page);
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.credit-year {
  font-weight: 700;
  color: var(--primary);
  font-family: ui-monospace, monospace;
}

.role-section-title {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 10px 0;
  font-weight: 600;
}

.role-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.role-pill {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-title);
  background: var(--bg-page);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 6px;
}


.empty-state {
  display: none;
  text-align: center;
  padding: 64px 0;
  color: var(--text-muted);
}

.empty-icon {
  width: 48px;
  height: 48px;
  fill: var(--text-dim);
  margin: 0 auto 12px;
}

.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 24px 0;
  font-size: 11.5px;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.7;
  margin-top: 16px;
}

.footer-disclaimer {
  max-width: 960px;
  margin: 0 auto;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 99;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
}

.back-top:hover {
  background: var(--primary);
  color: #FFF;
  border-color: var(--primary);
}

.back-top svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}


@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .header { padding: 10px 0; }
  .header-container {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    gap: 8px;
  }
  .header-inner { height: 54px; }
  .header-left {
    justify-content: flex-start;
    gap: 12px;
    width: calc(100% - 40px);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .header-left::-webkit-scrollbar { display: none; }
  .brand { gap: 8px; }
  h1.brand-title, .brand-title { font-size: 1.15rem; }
  .brand-sub { display: none; }
  .brand-badge { width: 30px; height: 30px; border-radius: 8px; }
  .header-nav { padding: 2px 4px; gap: 4px; }
  .nav-tab { padding: 4px 10px; font-size: 12px; }
  .header-tools { position: absolute; top: 10px; right: 16px; }
  .theme-toggle-btn { width: 30px; height: 30px; min-width: 30px; border-radius: 6px; }
  .theme-toggle-btn svg { width: 14px !important; height: 14px !important; }
  .header-search-wrap { width: 100%; max-width: 100%; margin: 2px 0 0 0; }
  .search-box { height: 36px; border-radius: 8px; }
  .search-input { font-size: 13px; padding: 0 32px 0 34px; }
  .search-kbd { display: none; }
  .back-link span { display: none; }
  .back-link { padding: 6px 8px; }
  .main { padding: 14px 0 20px; }
  .section { margin-bottom: 28px; scroll-margin-top: 100px; }
  .section-header { margin-bottom: 12px; padding-bottom: 6px; }
  .section-title { font-size: 1rem; }
  .section-count { font-size: 11px; }
  .grid { grid-template-columns: 1fr; gap: 10px; }
  .site-card { padding: 12px 14px; min-height: 68px; }
  .site-avatar { width: 40px; height: 40px; }
  .site-desc { height: 31px; }
  .breadcrumb { font-size: 12px; margin-bottom: 14px; }
  .console-card { padding: 18px 16px; margin-bottom: 16px; }
  .avatar-img { width: 56px; height: 56px; border-radius: 10px; }
  .console-header { gap: 14px; margin-bottom: 16px; }
  .profile-name { font-size: 1.25rem; }
  .profile-alias { font-size: 11px; }
  .profile-tagline { font-size: 12px; margin-top: 6px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; padding-top: 16px; }
  .metric-item { padding: 12px 8px; }
  .metric-val { font-size: 1.3rem; }
  .metric-lbl { font-size: 11px; }
  .section-panel { padding: 16px 18px; margin-bottom: 16px; }
  .panel-header { margin-bottom: 14px; padding-bottom: 8px; }
  .panel-title { font-size: 0.95rem; }
  .story-text, .bts-box { font-size: 13px; line-height: 1.7; padding: 14px 16px; }
  .social-grid { grid-template-columns: 1fr; gap: 8px; }
  .social-card { padding: 10px 14px; }
  .social-name { font-size: 13px; }
  .social-handle { font-size: 11px; }
  .compare-box { padding: 14px 16px; }
  .compare-grid { grid-template-columns: 1fr; gap: 10px; }
  .compare-col { padding: 12px 14px; }
  .credit-list { gap: 8px; }
  .credit-item { font-size: 12px; padding: 10px 12px; }
  .role-pill { font-size: 12px; padding: 6px 12px; }
  .footer { padding: 20px 0; margin-top: 12px; }
}
