/* 首页 / Skills 共用布局 */
.page-hub {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hub-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}

.hub-brand {
  font-weight: 600;
  font-size: 1.25rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-end) 60%, #34a853 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.hub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.hub-nav__link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.hub-nav__link:hover {
  color: var(--text);
}

.hub-nav__link--active {
  color: var(--accent);
  font-weight: 500;
}

.hub-main {
  flex: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  width: 100%;
}

.hub-hero {
  margin-bottom: 32px;
}

.hub-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #80868b;
  margin: 0 0 8px;
  font-weight: 500;
}

.hub-title {
  font-size: 2rem;
  font-weight: 600;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.hub-sub {
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
  max-width: 720px;
}

.hub-sub a {
  color: var(--accent);
  text-decoration: none;
}

.hub-sub a:hover {
  text-decoration: underline;
}

.skills-section {
  margin-bottom: 40px;
}

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

.skills-section__title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  letter-spacing: -0.01em;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(32, 33, 36, 0.06);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
  border-color: #c6dafc;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.08);
}

.card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.card__title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
  color: var(--text);
}

.card__badge {
  flex-shrink: 0;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 6px;
  background: #e8f0fe;
  color: var(--accent);
  font-weight: 500;
}

.card__badge--muted {
  background: #f1f3f4;
  color: var(--text-muted);
}

.card__tagline {
  font-size: 0.9rem;
  color: var(--accent);
  margin: 0 0 10px;
  font-weight: 500;
}

.card__desc {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 12px;
  flex: 1;
}

.card__tags {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card__tag {
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f8f9fa;
  color: #5f6368;
}

.card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.card__btn {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  border: none;
  transition: background 0.15s;
}

.card__btn:hover {
  background: var(--accent-hover);
  color: #fff;
}

.card__btn--secondary {
  background: #f8f9fa;
  color: var(--text);
  border: 1px solid var(--border);
}

.card__btn--secondary:hover {
  background: #f1f3f4;
  color: var(--text);
}

.card__btn--ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid #dadce0;
}

.card__btn--ghost:hover {
  background: #f8f9fa;
  color: var(--accent-hover);
}

.footer-stats {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
}

.footer-stats__label {
  color: #80868b;
  margin-right: 4px;
}

.footer-stats__item strong {
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.footer-stats__sep {
  color: #dadce0;
  user-select: none;
}

.footer--hub {
  padding: 24px;
  margin-top: auto;
}

@media (max-width: 640px) {
  .hub-title {
    font-size: 1.5rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}
