:root {
  --yl-accent: #1f7a8c;
  --yl-accent-2: #ef8f5a;
  --yl-accent-3: #f2c879;
  --yl-border: rgba(31, 122, 140, 0.12);
  --yl-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
  --yl-shadow-strong: 0 22px 60px rgba(15, 23, 42, 0.18);
  --yl-glass: rgba(255, 255, 255, 0.76);
  --yl-glass-strong: rgba(255, 255, 255, 0.88);
}

[data-theme="dark"] {
  --yl-border: rgba(255, 255, 255, 0.08);
  --yl-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  --yl-shadow-strong: 0 22px 60px rgba(0, 0, 0, 0.36);
  --yl-glass: rgba(17, 24, 39, 0.72);
  --yl-glass-strong: rgba(15, 23, 42, 0.84);
}

body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(31, 122, 140, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(239, 143, 90, 0.12), transparent 24%),
    linear-gradient(180deg, #f7fbfc 0%, #f5f7fb 100%);
  background-attachment: fixed;
}

[data-theme="dark"] body {
  background:
    radial-gradient(circle at top left, rgba(31, 122, 140, 0.18), transparent 26%),
    radial-gradient(circle at top right, rgba(239, 143, 90, 0.14), transparent 24%),
    linear-gradient(180deg, #0f172a 0%, #111827 100%);
}

h1,
h2,
h3,
h4,
#site-title,
.article-title,
#page-header #site-info #site-subtitle {
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  letter-spacing: 0.02em;
}

#page-header::before {
  background: linear-gradient(135deg, rgba(10, 30, 55, 0.48), rgba(31, 122, 140, 0.38), rgba(239, 143, 90, 0.18));
}

#page-header.nav-fixed #nav {
  background: rgba(255, 255, 255, 0.66) !important;
  border-bottom: 1px solid var(--yl-border);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px) saturate(160%);
}

[data-theme="dark"] #page-header.nav-fixed #nav {
  background: rgba(15, 23, 42, 0.72) !important;
}

#site-info {
  padding: 2rem 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--yl-shadow-strong);
  backdrop-filter: blur(14px);
}

#site-title {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
}

#site-subtitle {
  font-size: 1.05rem;
}

#recent-posts > .recent-post-item,
#aside-content .card-widget,
#post,
#page,
#archive {
  border: 1px solid var(--yl-border);
  border-radius: 24px;
  background: var(--yl-glass);
  box-shadow: var(--yl-shadow);
  backdrop-filter: blur(18px);
}

#recent-posts > .recent-post-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--yl-shadow-strong);
}

#recent-posts > .recent-post-item .post_cover img {
  transition: transform 0.55s ease;
}

#recent-posts > .recent-post-item:hover .post_cover img {
  transform: scale(1.05);
}

#aside-content .card-widget.card-info {
  background:
    linear-gradient(160deg, rgba(31, 122, 140, 0.92), rgba(20, 70, 88, 0.92)),
    var(--yl-glass);
  color: #f8fbff;
}

#aside-content .card-widget.card-info a,
#aside-content .card-widget.card-info .author-info-description,
#aside-content .card-widget.card-info .author-info-name {
  color: #f8fbff !important;
}

#aside-content .card-widget.card-announcement {
  background:
    linear-gradient(140deg, rgba(255, 247, 237, 0.96), rgba(255, 255, 255, 0.92)),
    var(--yl-glass);
  border-color: rgba(239, 143, 90, 0.18);
}

[data-theme="dark"] #aside-content .card-widget.card-announcement {
  background:
    linear-gradient(140deg, rgba(44, 30, 24, 0.92), rgba(17, 24, 39, 0.92)),
    var(--yl-glass);
}

#aside-content .card-widget.card-tags .card-tag-cloud a {
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  background: rgba(31, 122, 140, 0.1);
}

#pagination .page-number.current,
#pagination .extend:hover,
#pagination .page-number:hover {
  background: linear-gradient(135deg, var(--yl-accent), #215f8d);
  color: #fff;
  box-shadow: 0 10px 24px rgba(31, 122, 140, 0.24);
}

#footer {
  background: transparent;
}

#footer-wrap {
  margin: 2rem auto;
  max-width: 1200px;
  border: 1px solid var(--yl-border);
  border-radius: 24px;
  background: var(--yl-glass-strong);
  box-shadow: var(--yl-shadow);
}

.layout > div:first-child:not(.recent-posts) {
  animation: page-fade-in 0.6s ease;
}

#recent-posts > .recent-post-item {
  animation: card-rise 0.6s ease both;
}

#recent-posts > .recent-post-item:nth-child(2) {
  animation-delay: 0.08s;
}

#recent-posts > .recent-post-item:nth-child(3) {
  animation-delay: 0.16s;
}

#recent-posts > .recent-post-item:nth-child(4) {
  animation-delay: 0.24s;
}

.elegant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.4rem 0 1.2rem;
}

.glass-panel {
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--yl-border);
  border-radius: 20px;
  background: var(--yl-glass-strong);
  box-shadow: var(--yl-shadow);
}

.stat-panel span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--theme-color);
  font-size: 0.92rem;
}

.stat-panel strong {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 1.5rem;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1rem 0 1.4rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.48rem 0.9rem;
  border: 1px solid var(--yl-border);
  border-radius: 999px;
  background: rgba(31, 122, 140, 0.08);
  color: #1d4f5a;
  font-weight: 600;
}

[data-theme="dark"] .pill {
  color: #d8eef2;
  background: rgba(31, 122, 140, 0.16);
}

.timeline-mini {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.timeline-mini .item {
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--yl-accent);
  border-radius: 16px;
  background: var(--yl-glass-strong);
  box-shadow: var(--yl-shadow);
}

.timeline-mini .item h4 {
  margin: 0 0 0.35rem;
}

@keyframes page-fade-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes card-rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media screen and (max-width: 768px) {
  #site-info {
    padding: 1.4rem 1.2rem;
    border-radius: 22px;
  }

  #site-title {
    font-size: 2.3rem;
  }

  #footer-wrap {
    margin: 1rem;
    border-radius: 18px;
  }
}
