/* ========= Tokens ========= */
:root {
  --bg: #f0f2f5;
  --bg-grid: #e8eaef;
  --surface: #ffffff;
  --ink: #0d0d0d;
  --ink-soft: #3d3d3d;
  --ink-muted: #6b6b6b;
  --ink-faint: #9a9a9a;
  --brand: #ff0057;
  --brand-soft: #ffe6ef;
  --brand-ink: #c40043;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 18px 40px -12px rgba(0, 0, 0, 0.22), 0 4px 10px rgba(0, 0, 0, 0.05);
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Helvetica Neue", Arial, sans-serif;
  --radius-card: 14px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.2, 0.65, 0.3, 1);
  --dur: 0.35s;
}

/* ========= Base ========= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

::selection {
  background: var(--brand);
  color: #fff;
}

.wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========= Loading / Error ========= */
.loading,
.error {
  padding: 56px 0;
  text-align: center;
  color: var(--ink-muted);
  font-size: 14px;
}

.error strong {
  color: var(--brand);
}

/* ========= Header ========= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.brand__dot {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--brand), #ff5a8a);
  display: inline-block;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color var(--dur) var(--ease);
  padding: 6px 0;
}

.nav a:hover {
  color: var(--brand);
}

.nav__cta {
  background: var(--ink);
  color: #fff !important;
  padding: 8px 16px !important;
  border-radius: var(--radius-pill);
  font-weight: 600 !important;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.nav__cta:hover {
  background: var(--brand);
  transform: translateY(-1px);
}

/* ========= Hero ========= */
.hero {
  padding: 56px 0 28px;
  text-align: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0 0 18px;
}

.hero__eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.hero__title {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ink);
}

.hero__title-grad {
  background: linear-gradient(120deg, var(--brand), #ff7a45);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  margin: 0 auto 24px;
  font-size: 15px;
  color: var(--ink-muted);
  max-width: 52ch;
}

/* ========= Sections ========= */
.section {
  margin-bottom: 40px;
}

.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 20px;
}

.section__title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.section__icon--brand {
  background: #ffe6ef;
}

.section__icon--digital {
  background: #e0ebff;
}

.section__icon--art {
  background: #f0e6ff;
}

.section__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.section__count {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.section__view-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  transition: color var(--dur) var(--ease);
}

.section__view-all:hover {
  color: var(--brand-ink);
}

/* ========= Card grid ========= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.card {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
  min-width: 0;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.card__cover {
  position: relative;
  flex: 0 0 auto;
  width: 132px;
  overflow: hidden;
  background: var(--bg-grid);
}

.card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.card:hover .card__cover img {
  transform: scale(1.08);
}

.card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.card__love {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-pill);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.card:hover .card__love {
  opacity: 1;
  transform: translateY(0);
}

.card__body {
  flex: 1 1 auto;
  min-width: 0;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
}

.card__title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--dur) var(--ease);
}

.card:hover .card__title {
  color: var(--brand);
}

.card__desc {
  margin: 0 0 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.card__avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #ff7a45);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card__author {
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card__date {
  margin-left: auto;
  font-size: 11px;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* ========= Footer ========= */
.site-footer {
  margin-top: 56px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.site-footer__copy {
  font-size: 12px;
  color: var(--ink-muted);
}

.site-footer__social {
  display: flex;
  gap: 14px;
}

.site-footer__social a {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  transition: color var(--dur) var(--ease);
}

.site-footer__social a:hover {
  color: var(--brand);
}

/* ========= Responsive ========= */
@media (max-width: 980px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .wrap {
    padding: 0 18px;
  }

  .site-header__inner {
    height: 56px;
  }

  .brand {
    font-size: 15px;
  }

  .nav {
    gap: 1rem;
  }

  .nav a:not(.nav__cta) {
    display: none;
  }

  .hero {
    padding: 36px 0 18px;
  }

  .hero__title {
    font-size: 1.9rem;
  }

  .section {
    margin-bottom: 30px;
  }

  .section__head {
    margin-bottom: 14px;
  }

  .section__title {
    font-size: 17px;
  }

  .section__view-all {
    display: none;
  }

  .card-grid {
    gap: 14px;
  }

  .card__cover {
    width: 108px;
  }

  .card__body {
    padding: 11px 13px 13px;
  }

  .card__title {
    font-size: 14px;
  }

  .card__desc {
    font-size: 12px;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .card__cover {
    width: 92px;
  }

  .hero__title {
    font-size: 1.7rem;
  }
}