:root {
  --jyd-blue: #0c388d;
  --jyd-ink: #10213d;
  --jyd-muted: #53657d;
  --jyd-silver: #d8e2ee;
  --jyd-paper: #f7faff;
  --jyd-white: #ffffff;
  --jyd-line: rgba(12, 56, 141, 0.18);
  --jyd-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

body .ast-mobile-popup-drawer .ast-mobile-popup-inner,
body .ast-mobile-popup-drawer .ast-mobile-popup-content,
body .ast-mobile-popup-drawer .main-header-menu,
body #ast-mobile-header .ast-mobile-header-content,
body #ast-mobile-header .ast-mobile-header-content .main-header-menu {
  background: var(--jyd-paper) !important;
}

body .ast-mobile-popup-drawer .main-header-menu .menu-link,
body #ast-mobile-header .ast-mobile-header-content .main-header-menu .menu-link {
  color: var(--jyd-ink) !important;
  opacity: 1 !important;
}

body .ast-mobile-popup-drawer .main-header-menu .current-menu-item>.menu-link,
body .ast-mobile-popup-drawer .main-header-menu .menu-link:hover,
body .ast-mobile-popup-drawer .main-header-menu .menu-link:focus-visible,
body #ast-mobile-header .ast-mobile-header-content .main-header-menu .current-menu-item>.menu-link,
body #ast-mobile-header .ast-mobile-header-content .main-header-menu .menu-link:hover,
body #ast-mobile-header .ast-mobile-header-content .main-header-menu .menu-link:focus-visible {
  color: var(--jyd-blue) !important;
}

.jyd-blog-archive,
.jyd-blog-archive * {
  box-sizing: border-box;
}

.jyd-blog-archive {
  min-height: 52vh;
  padding: clamp(64px, 7vw, 104px) 0 clamp(84px, 9vw, 132px);
  background: var(--jyd-paper);
  color: var(--jyd-ink);
}

.jyd-blog-shell {
  width: min(calc(100% - 64px), 1380px);
  margin-inline: auto;
}

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

.jyd-blog-archive a {
  color: inherit;
  text-decoration: none;
}

.jyd-blog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 30px);
}

.jyd-post-card {
  display: grid;
  grid-template-rows: 58% 42%;
  min-width: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--jyd-white);
  border: 1px solid var(--jyd-line);
  transition: transform 0.45s var(--jyd-ease), box-shadow 0.45s var(--jyd-ease);
}

.jyd-post-card:hover,
.jyd-post-card:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 18px 42px rgba(8, 40, 95, 0.13);
}

.jyd-post-card__media {
  position: relative;
  display: block;
  min-height: 0;
  overflow: hidden;
  background: var(--jyd-silver);
}

.jyd-post-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  opacity: 1;
  transform: scale(1.001);
  transition: transform 0.7s var(--jyd-ease);
}

.jyd-post-card:hover .jyd-post-card__media img,
.jyd-post-card:focus-within .jyd-post-card__media img {
  transform: scale(1.04);
}

.jyd-post-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--jyd-blue);
  background: var(--jyd-silver);
}

.jyd-post-card__placeholder b {
  font-size: clamp(1.45rem, 2.4vw, 2.3rem);
  letter-spacing: -0.03em;
}

.jyd-post-card__placeholder i {
  margin-top: 7px;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.jyd-post-card__body {
  min-height: 0;
  padding: clamp(16px, 1.8vw, 24px);
  overflow: hidden;
}

.jyd-post-card__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  color: var(--jyd-muted);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.jyd-post-card__meta span {
  color: var(--jyd-blue);
}

.jyd-post-card h3 {
  display: -webkit-box;
  margin: clamp(14px, 1.5vw, 21px) 0 0;
  overflow: hidden;
  color: var(--jyd-ink);
  font-size: clamp(1.18rem, 1.65vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.jyd-blog-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 46px;
}

.jyd-blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 13px;
  background: var(--jyd-white);
  border: 1px solid var(--jyd-line);
  color: var(--jyd-blue);
  font-weight: 700;
}

.jyd-blog-pagination .page-numbers.current,
.jyd-blog-pagination .page-numbers:hover {
  background: var(--jyd-blue);
  color: var(--jyd-white);
}

.jyd-blog-empty {
  max-width: 720px;
  margin: clamp(70px, 10vw, 140px) auto;
  padding: 38px 0;
  border-top: 1px solid var(--jyd-line);
  border-bottom: 1px solid var(--jyd-line);
  text-align: center;
}

.jyd-blog-empty h2 {
  margin: 0;
  color: var(--jyd-blue);
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.jyd-blog-empty p {
  margin: 14px 0 0;
  color: var(--jyd-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.jyd-blog-archive a:focus-visible,
.single-post .entry-content a:focus-visible {
  outline: 3px solid var(--jyd-blue);
  outline-offset: 4px;
}

.single-post .site-content .ast-container {
  width: min(calc(100% - 64px), 1120px);
  max-width: 1120px;
  padding: clamp(70px, 8vw, 118px) 0;
}

.single-post .entry-header,
.single-post .entry-content,
.single-post .post-navigation {
  max-width: 780px;
  margin-inline: auto;
}

.single-post .entry-title {
  color: var(--jyd-blue);
  font-size: clamp(2.5rem, 5vw, 5.4rem);
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.single-post .entry-content {
  color: var(--jyd-ink);
  font-size: 1.08rem;
  line-height: 1.78;
}

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

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

@media (max-width: 767px) {
  .jyd-blog-archive {
    padding: 48px 0 76px;
  }

  .jyd-blog-shell,
  .single-post .site-content .ast-container {
    width: min(calc(100% - 32px), 1380px);
  }

  .jyd-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .jyd-post-card__body {
    padding: 13px;
  }

  .jyd-post-card__meta {
    display: block;
    font-size: 0.55rem;
  }

  .jyd-post-card__meta time {
    display: block;
    margin-top: 4px;
  }

  .jyd-post-card h3 {
    margin-top: 10px;
    font-size: clamp(0.95rem, 4.4vw, 1.18rem);
    -webkit-line-clamp: 3;
  }
}

@media (max-width: 360px) {
  .jyd-blog-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jyd-post-card,
  .jyd-post-card__media img {
    transition: none;
  }
}
