html,
body {
  padding: 0;
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: #0b1220;
  background: radial-gradient(1200px 600px at 20% -10%, rgba(124, 58, 237, 0.18), transparent 60%), radial-gradient(900px 500px at 90% 0%, rgba(37, 99, 235, 0.16), transparent 55%), #f6f7fb;
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 18px;
}

.site-header {
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(15, 23, 42, 0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #0b1220;
}

.brand .wordmark {
  font-weight: 800;
  letter-spacing: 0.2px;
}

.brand .logo {
  display: inline-flex;
  filter: drop-shadow(0 10px 20px rgba(2, 6, 23, 0.10));
}

.nav a {
  margin-left: 10px;
  text-decoration: none;
  color: rgba(15, 23, 42, 0.70);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 10px;
}

.nav a:hover {
  color: rgba(15, 23, 42, 0.95);
  background: rgba(15, 23, 42, 0.06);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.header-search {
  display: none;
  align-items: center;
  gap: 8px;
  margin: 0 10px;
  flex: 1;
  max-width: 380px;
}

.header-search input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.7);
  outline: none;
}

.header-search input:focus {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.header-search button {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.7);
  color: rgba(15, 23, 42, 0.75);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-search button:hover {
  background: rgba(255, 255, 255, 0.85);
}

.section-title {
  margin: 18px 0 12px;
  font-size: 16px;
  letter-spacing: 0.2px;
}

.hero {
  margin: 18px 0 16px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
  align-items: stretch;
}

.hero-copy {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 18px;
  padding: 18px 18px;
  box-shadow: 0 14px 40px rgba(2, 6, 23, 0.10);
}

.hero-title {
  margin: 0 0 6px;
  font-size: 28px;
  letter-spacing: -0.6px;
}

.hero-title--brand {
  background: linear-gradient(135deg, #7c3aed, #2563eb 55%, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 0;
  color: rgba(15, 23, 42, 0.72);
  line-height: 1.55;
}

.hero-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  color: white;
  background: linear-gradient(135deg, #7c3aed, #2563eb 55%, #06b6d4);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.btn:hover {
  filter: brightness(1.02);
}

.btn-ghost {
  color: rgba(15, 23, 42, 0.86);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: none;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.78);
}

.hero-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(2, 6, 23, 0.10);
  position: relative;
}

.hero-card-top {
  height: 60px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.30), rgba(37, 99, 235, 0.25), rgba(6, 182, 212, 0.22));
}

.hero-side {
  padding: 14px;
}

.hero-side-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.hero-side-title {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.2px;
}

.hero-side-link {
  font-size: 12px;
  color: rgba(37, 99, 235, 0.95);
  text-decoration: none;
  font-weight: 800;
}

.hero-side-sub {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mini-link {
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  color: rgba(15, 23, 42, 0.70);
}

.mini-link:hover {
  color: rgba(15, 23, 42, 0.95);
}

.chips {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips--more {
  margin-top: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.86);
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.chip:hover {
  background: rgba(37, 99, 235, 0.10);
  border-color: rgba(37, 99, 235, 0.22);
}

.chip--muted {
  color: rgba(15, 23, 42, 0.70);
  background: rgba(255, 255, 255, 0.60);
  border-color: rgba(15, 23, 42, 0.10);
}

.chip--muted:hover {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(37, 99, 235, 0.20);
}

.cat-list {
  list-style: none;
  padding: 0;
}

.cat-list li {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 10px 0;
}

.cat-list a {
  color: #111;
  text-decoration: none;
  font-weight: 600;
}

.cat-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.cat-card {
  display: block;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 14px;
  padding: 12px 12px;
  text-decoration: none;
  color: #0b1220;
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.08);
}

.cat-card:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.22);
}

.cat-name {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.2px;
}

.cat-meta {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.62);
}

.post-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.post-grid li {
  margin: 0;
}

.post-card {
  display: block;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: #0b1220;
  box-shadow: 0 14px 34px rgba(2, 6, 23, 0.10);
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.post-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.14);
}

.post-card:active {
  transform: translateY(1px);
}

.post-card .thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: rgba(15, 23, 42, 0.06);
}

.post-card .thumb--empty {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.16), rgba(37, 99, 235, 0.12), rgba(6, 182, 212, 0.10));
}

.post-card .text {
  padding: 10px 12px 12px;
}

.post-card .title {
  font-weight: 700;
  line-height: 1.35;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.60);
}

.sep {
  margin: 0 6px;
}

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 18px 0 28px;
  color: rgba(15, 23, 42, 0.70);
}

.pagination a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 700;
}

.post .content img {
  max-width: 100%;
  height: auto;
}

.resource-countdown {
  position: sticky;
  top: 74px;
  z-index: 9;
  margin: 14px 0 12px;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.68));
  box-shadow: 0 14px 40px rgba(2, 6, 23, 0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.resource-countdown__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.resource-countdown__left {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.resource-countdown__title {
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.2px;
}

.resource-countdown__time {
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.6px;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.10);
}

.resource-countdown__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.resource-countdown__hint {
  font-size: 12px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.74);
}

.resource-countdown__btn {
  cursor: pointer;
  border: 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 13px;
  color: white;
  background: linear-gradient(135deg, #ef4444, #f97316 60%, #f59e0b);
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.28);
}

.resource-countdown__btn:hover {
  filter: brightness(1.02);
}

.resource-countdown__track {
  margin-top: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.resource-countdown__bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #06b6d4, #2563eb 40%, #7c3aed);
  transition: width 240ms ease;
}

.resource-countdown.is-urgent {
  border-color: rgba(249, 115, 22, 0.30);
  box-shadow: 0 14px 40px rgba(249, 115, 22, 0.12);
}

.resource-countdown.is-urgent .resource-countdown__time {
  background: rgba(249, 115, 22, 0.14);
  border-color: rgba(249, 115, 22, 0.30);
}

.resource-countdown.is-critical {
  border-color: rgba(239, 68, 68, 0.38);
  box-shadow: 0 18px 50px rgba(239, 68, 68, 0.18);
  animation: rcPulse 1.05s ease-in-out infinite;
}

.resource-countdown.is-critical .resource-countdown__time {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.34);
}

.resource-countdown.is-expired {
  border-color: rgba(15, 23, 42, 0.16);
  opacity: 0.85;
}

.resource-countdown.is-expired .resource-countdown__btn {
  background: rgba(15, 23, 42, 0.40);
  box-shadow: none;
}

@keyframes rcPulse {
  0% {
    transform: translateY(0);
    box-shadow: 0 18px 50px rgba(239, 68, 68, 0.14);
  }

  50% {
    transform: translateY(-1px);
    box-shadow: 0 22px 60px rgba(239, 68, 68, 0.22);
  }

  100% {
    transform: translateY(0);
    box-shadow: 0 18px 50px rgba(239, 68, 68, 0.14);
  }
}

.quark-share {
  margin: 14px 0;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 40px rgba(2, 6, 23, 0.10);
}

.quark-share__title {
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.2px;
  color: rgba(15, 23, 42, 0.92);
}

.quark-share__text {
  margin: 10px 0 10px;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.10);
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  line-height: 1.45;
}

.quark-share__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.quark-share__btn {
  cursor: pointer;
  border: 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 13px;
  color: white;
  background: linear-gradient(135deg, #ef4444, #f97316 60%, #f59e0b);
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.26);
}

.quark-share__btn:hover {
  filter: brightness(1.02);
}

.quark-share__link {
  font-weight: 900;
  font-size: 13px;
  color: rgba(37, 99, 235, 0.98);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  background: rgba(37, 99, 235, 0.08);
}

.quark-share__link:hover {
  background: rgba(37, 99, 235, 0.12);
}

.quark-share__hint {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.72);
}

.search-box {
  display: flex;
  gap: 10px;
  margin: 14px 0 18px;
}

.search-field {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 40px rgba(2, 6, 23, 0.10);
}

.search-icon {
  color: rgba(15, 23, 42, 0.55);
}

.search-field input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 14px;
}

.search-field input::placeholder {
  color: rgba(15, 23, 42, 0.45);
}

.search-field .btn {
  padding: 10px 12px;
  border-radius: 12px;
}

.search-results {
  list-style: none;
  padding: 0;
}

.search-results li {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 10px 0;
}

.search-results a {
  color: #111;
  text-decoration: none;
  font-weight: 700;
}

.search-results .excerpt {
  margin-top: 6px;
  font-size: 13px;
  color: #374151;
}

.reco {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.reco h2 {
  margin: 0 0 10px;
  font-size: 16px;
}

.post-grid--reco {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-footer {
  padding: 28px 0;
  color: rgba(15, 23, 42, 0.55);
}

@media (max-width: 640px) {
  .post-grid {
    grid-template-columns: 1fr;
  }

  .post-grid--reco {
    grid-template-columns: 1fr;
  }

  .cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .site-header .wrap {
    height: auto;
    padding: 10px 18px;
  }

  .nav a {
    margin-left: 6px;
    padding: 8px 10px;
    display: inline-block;
  }
}

@media (max-width: 900px) {
  .cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .header-search {
    display: inline-flex;
  }
}