/* components.css — 官网组件 */

/* ============ cognition grid ============ */
.cog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.cog-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}
.cog-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at 0% 0%, rgba(0, 212, 255, .08), transparent 40%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.cog-card:hover {
  border-color: rgba(0, 212, 255, .4);
  transform: translateY(-2px);
}
.cog-card:hover::before { opacity: 1; }
.cog-icon {
  font-size: 32px;
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-2);
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-bottom: 18px;
}
.cog-card h3 { margin-bottom: 10px; }
.cog-card p { font-size: 14px; line-height: 1.7; }

/* ============ role grid ============ */
.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.role-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  position: relative;
}
.role-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 255, .3);
  box-shadow: 0 12px 40px -10px rgba(0, 212, 255, .15);
}
.role-card.core {
  background: linear-gradient(135deg, rgba(0, 212, 255, .06), rgba(167, 139, 250, .04));
  border-color: rgba(0, 212, 255, .3);
}
.role-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  overflow: hidden;
}
.role-avatar-inner {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--bg);
  background: var(--c, var(--accent));
}
.role-card.core .role-avatar-inner {
  background: var(--grad-2);
  font-family: -apple-system, sans-serif;
  letter-spacing: 1px;
  font-size: 16px;
}
.role-nick {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.role-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(0, 212, 255, .12);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 1px;
}
.role-card.core .role-tag {
  background: rgba(167, 139, 250, .15);
  color: #a78bfa;
}
.role-real {
  font-size: 12px;
  color: var(--text-3);
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  letter-spacing: .5px;
  margin-bottom: 12px;
}
.role-desc {
  font-size: 13px;
  line-height: 1.65;
}

/* ============ how list ============ */
.how-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.how-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  position: relative;
}
.how-num {
  font-size: 48px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: ui-monospace, monospace;
  line-height: 1;
  margin-bottom: 16px;
}
.how-step h3 { margin-bottom: 10px; }
.how-step p { font-size: 13.5px; line-height: 1.7; }

/* ============ company grid ============ */
.company-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.company-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
  border-left: 3px solid var(--accent);
}
.company-card h3 {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 16px;
  letter-spacing: 1px;
}
.company-card p { font-size: 14px; line-height: 1.7; }

/* ============ join ============ */
.join-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.join-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  text-align: center;
  transition: all .25s;
  display: block;
}
.join-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(0, 212, 255, .3);
  color: inherit;
}
.join-icon {
  font-size: 36px;
  margin-bottom: 14px;
}
.join-card h3 { margin-bottom: 8px; }
.join-card p { font-size: 13px; margin-bottom: 16px; }
.join-mini {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 8px;
}
.join-mini span {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--c, var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  font-weight: 700;
  font-size: 13px;
}
.join-code {
  display: inline-block;
  padding: 6px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  color: var(--accent);
  font-family: ui-monospace, monospace;
}

/* ============ footer ============ */
.site-foot {
  border-top: 1px solid var(--line);
  padding: 32px;
  margin-top: 60px;
}
.foot-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
}
.foot-meta {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: var(--text-3);
  align-items: center;
}
.foot-meta .dot { color: var(--text-3); }
.foot-meta a { color: var(--text-2); }
.foot-meta a:hover { color: var(--accent); }

/* ============ responsive ============ */
@media (max-width: 960px) {
  .cog-grid { grid-template-columns: 1fr; }
  .how-list { grid-template-columns: 1fr; }
  .company-grid { grid-template-columns: 1fr; }
  .join-grid { grid-template-columns: 1fr; }
}