/* WikouByte Hub Design System */
:root {
  --font-sans: 'Outfit', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --bg-dark: #09090b;
  --bg-card: rgba(255, 255, 255, 0.03);
  --border-card: rgba(255, 255, 255, 0.07);
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  
  --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* 动态背景微粒 */
.bg-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 20s infinite alternate ease-in-out;
}

.p1 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(139, 94, 52, 0.3) 0%, transparent 70%);
  top: -10%;
  left: 10%;
  animation-duration: 25s;
}

.p2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(93, 131, 230, 0.2) 0%, transparent 70%);
  bottom: 10%;
  right: 5%;
  animation-duration: 30s;
}

.p3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 117, 140, 0.15) 0%, transparent 70%);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-duration: 18s;
}

@keyframes float {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-30px) scale(1.1); }
}

/* 主体容器 */
.hub-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  padding: 3rem 1.5rem;
  margin: 0 auto;
}

/* 顶栏头部 */
.hub-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.avatar-wrap {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-card);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--text-primary);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.avatar-svg {
  width: 36px;
  height: 36px;
  color: #fff;
}

.hub-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, #ffffff 30%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hub-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* 服务卡片 Grid */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

/* 单张卡片基本样式 */
.hub-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

/* 发光层 */
.card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 80px at 50% 50%, rgba(255, 255, 255, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.hub-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.hub-card:hover .card-glow {
  opacity: 1;
}

/* 图标 */
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  transition: transform var(--transition-normal), color var(--transition-normal);
}

.hub-card:hover .card-icon {
  transform: scale(1.08) rotate(3deg);
}

/* 各卡片主题定制 */
.c-novel:hover { --theme-color: #8b5e34; }
.c-love:hover { --theme-color: #ff758c; }
.c-chess:hover { --theme-color: #ff9a9e; }
.c-wol:hover { --theme-color: #38bdf8; }
.c-immich:hover { --theme-color: #a1c4fd; }
.c-movie:hover { --theme-color: #fda085; }
.c-meet:hover { --theme-color: #5d83e6; }
.c-download:hover { --theme-color: #10b981; }
.c-audio:hover { --theme-color: #f6c945; }
.c-larp:hover { --theme-color: #d59bff; }

.hub-card:hover .card-icon {
  color: var(--theme-color);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--theme-color);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

.card-body {
  flex-grow: 1;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.hub-card:hover .card-title {
  color: var(--theme-color);
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Badge 角标 */
.card-badge {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 99px;
  color: var(--text-secondary);
  transition: all var(--transition-normal);
}

.hub-card:hover .card-badge {
  color: #fff;
  background: var(--theme-color);
  border-color: var(--theme-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* 底栏 */
.hub-footer {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 2rem;
}

/* 响应式 */
@media (max-width: 600px) {
  .hub-title { font-size: 2rem; }
  .hub-grid { grid-template-columns: 1fr; }
  .hub-container { padding: 2rem 1rem; }
}
