:root {
  --twx-ink: #203142;
  --twx-muted: #6b7f95;
  --twx-blue: #78bdf2;
  --twx-blue-deep: #3187c8;
  --twx-blue-soft: #dff3ff;
  --twx-teal: #2aa6a1;
  --twx-amber: #f0a23a;
  --twx-lavender: #c7c8ff;
  --twx-glass: rgba(255, 255, 255, 0.58);
  --twx-glass-strong: rgba(255, 255, 255, 0.74);
  --twx-border: rgba(255, 255, 255, 0.72);
  --twx-line: rgba(87, 153, 206, 0.18);
  --twx-shadow: 0 18px 50px rgba(72, 134, 184, 0.18);
}

body {
  background:
    linear-gradient(115deg, rgba(225, 244, 255, 0.92) 0%, rgba(244, 251, 255, 0.86) 38%, rgba(232, 242, 255, 0.9) 100%),
    repeating-linear-gradient(135deg, rgba(120, 189, 242, 0.1) 0 1px, transparent 1px 22px);
  color: var(--twx-ink);
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.65), transparent 34%),
    linear-gradient(90deg, transparent 0%, rgba(120, 189, 242, 0.11) 48%, transparent 100%);
}

#nav {
  border-bottom: 1px solid rgba(255, 255, 255, 0.76);
  background: rgba(244, 250, 255, 0.56);
  box-shadow: 0 14px 42px rgba(84, 148, 198, 0.12);
  backdrop-filter: blur(22px) saturate(1.35);
}

#nav::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120, 189, 242, 0.62), transparent);
}

#nav a,
#nav .site-page,
#site-name {
  color: #1e3950;
  font-weight: 700;
}

#page-header.full_page {
  min-height: 72vh;
}

#page-header::before {
  background:
    linear-gradient(180deg, rgba(25, 48, 70, 0.2), rgba(20, 43, 64, 0.42)),
    linear-gradient(115deg, rgba(120, 189, 242, 0.18), rgba(199, 200, 255, 0.1));
}

#site-info {
  text-shadow: 0 5px 20px rgba(13, 37, 58, 0.34);
}

#site-title {
  font-weight: 800;
}

#site-subtitle {
  font-weight: 500;
}

#site-title::after {
  content: "";
  display: block;
  width: min(180px, 40vw);
  height: 3px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #dff3ff, var(--twx-blue), #dff3ff, transparent);
  box-shadow: 0 0 22px rgba(120, 189, 242, 0.78);
}

#recent-posts > .recent-post-item,
.card-widget,
#post,
#page,
#archive,
#tag,
#category {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--twx-border);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(232, 246, 255, 0.46)),
    var(--twx-glass);
  box-shadow: var(--twx-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(24px) saturate(1.38);
}

#recent-posts > .recent-post-item::before,
.card-widget::before,
#post::before,
#page::before,
#archive::before,
#tag::before,
#category::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.42), transparent 32%),
    linear-gradient(270deg, transparent, rgba(120, 189, 242, 0.1), transparent);
}

#recent-posts > .recent-post-item {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

#recent-posts > .recent-post-item:hover {
  transform: translateY(-5px);
  border-color: rgba(120, 189, 242, 0.62);
  box-shadow: 0 26px 68px rgba(72, 134, 184, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

#recent-posts > .recent-post-item .post_cover img,
.article-sort-item-img img,
#article-container img {
  filter: saturate(1.08) contrast(1.03);
}

#recent-posts .recent-post-info .article-title,
#post-info .post-title,
.article-sort-title,
.card-info-avatar .author-info__name {
  letter-spacing: 0;
}

#recent-posts .recent-post-info .article-title {
  color: var(--twx-ink);
  font-weight: 800;
}

#recent-posts .content,
#article-container {
  line-height: 1.9;
}

#article-container {
  font-size: 16px;
}

#article-container > p {
  margin: 0.9rem 0;
}

#article-container strong {
  color: #203142;
  font-weight: 800;
}

#article-container h2 {
  margin-top: 2.15rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(42, 166, 161, 0.18);
}

#article-container h3 {
  margin-top: 1.65rem;
}

#article-container h1,
#article-container h2,
#article-container h3,
#article-container h4 {
  color: var(--twx-ink);
  font-weight: 800;
}

#article-container h2::before,
#article-container h3::before,
#article-container h4::before {
  background: linear-gradient(180deg, var(--twx-blue), var(--twx-blue-deep));
  box-shadow: 0 0 16px rgba(120, 189, 242, 0.55);
}

#article-container blockquote,
#article-container .note {
  border-radius: 8px;
  border-color: rgba(120, 189, 242, 0.42);
  background: rgba(238, 248, 255, 0.76);
}

#article-container blockquote {
  border-left-color: var(--twx-teal);
  box-shadow: inset 0 0 0 1px rgba(42, 166, 161, 0.08);
}

#article-container ul,
#article-container ol {
  padding-left: 1.45rem;
}

#article-container li + li {
  margin-top: 0.28rem;
}

#article-container table {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(72, 134, 184, 0.1);
}

#article-container th {
  background: linear-gradient(135deg, rgba(120, 189, 242, 0.2), rgba(42, 166, 161, 0.14));
  color: var(--twx-ink);
}

#article-container code:not([class]) {
  border: 1px solid rgba(49, 135, 200, 0.18);
  border-radius: 5px;
  background: rgba(240, 162, 58, 0.12);
  color: #a45f11;
  font-size: 0.92em;
}

#article-container figure.highlight {
  margin: 1.1rem 0 1.35rem;
  border: 1px solid rgba(120, 189, 242, 0.16);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(20, 43, 64, 0.16);
}

#article-container a {
  color: var(--twx-blue-deep);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

#article-container a:hover {
  color: #226ea8;
}

#aside-content .card-widget {
  margin-bottom: 18px;
}

#aside-content .card-info .card-info-social-icons .social-icon,
#aside-content .card-tag-cloud a {
  color: var(--twx-blue-deep);
}

#aside-content .item-headline span,
#aside-content .item-headline i {
  color: var(--twx-ink);
  font-weight: 800;
}

#card-info-btn,
.read-mode,
#pagination .page-number.current {
  border-radius: 8px;
  background: linear-gradient(135deg, #9ed4fb, #69b6ef);
  box-shadow: 0 12px 28px rgba(87, 157, 213, 0.3);
}

#footer {
  background:
    linear-gradient(135deg, rgba(34, 65, 92, 0.9), rgba(22, 43, 63, 0.94)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 18px);
}

#rightside > div > button,
#rightside > div > a {
  border-radius: 8px;
  background: linear-gradient(135deg, #9ed4fb, #69b6ef);
  box-shadow: 0 10px 28px rgba(87, 157, 213, 0.3);
}

html[data-theme='dark'] body {
  background:
    linear-gradient(115deg, rgba(16, 25, 35, 0.96) 0%, rgba(18, 35, 50, 0.94) 52%, rgba(21, 29, 45, 0.96) 100%),
    repeating-linear-gradient(135deg, rgba(120, 189, 242, 0.08) 0 1px, transparent 1px 22px);
  color: #dceaf5;
}

html[data-theme='dark'] body::before {
  background:
    linear-gradient(180deg, rgba(143, 204, 247, 0.08), transparent 34%),
    linear-gradient(90deg, transparent 0%, rgba(120, 189, 242, 0.08) 48%, transparent 100%);
}

html[data-theme='dark'] #nav,
html[data-theme='dark'] #recent-posts > .recent-post-item,
html[data-theme='dark'] .card-widget,
html[data-theme='dark'] #post,
html[data-theme='dark'] #page,
html[data-theme='dark'] #archive,
html[data-theme='dark'] #tag,
html[data-theme='dark'] #category {
  border-color: rgba(190, 226, 255, 0.16);
  background:
    linear-gradient(145deg, rgba(31, 50, 66, 0.82), rgba(19, 36, 51, 0.66)),
    rgba(18, 27, 37, 0.78);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-theme='dark'] #nav a,
html[data-theme='dark'] #nav .site-page,
html[data-theme='dark'] #site-name,
html[data-theme='dark'] #recent-posts .recent-post-info .article-title,
html[data-theme='dark'] #article-container h1,
html[data-theme='dark'] #article-container h2,
html[data-theme='dark'] #article-container h3,
html[data-theme='dark'] #article-container h4,
html[data-theme='dark'] #aside-content .item-headline span,
html[data-theme='dark'] #aside-content .item-headline i {
  color: #edf7ff;
}

html[data-theme='dark'] #article-container blockquote,
html[data-theme='dark'] #article-container .note {
  background: rgba(28, 52, 70, 0.74);
}

html[data-theme='dark'] #article-container strong,
html[data-theme='dark'] #article-container th {
  color: #edf7ff;
}

html[data-theme='dark'] #article-container h2 {
  border-bottom-color: rgba(69, 197, 190, 0.2);
}

html[data-theme='dark'] #article-container blockquote {
  border-left-color: #45c5be;
  box-shadow: inset 0 0 0 1px rgba(69, 197, 190, 0.1);
}

html[data-theme='dark'] #article-container code:not([class]) {
  border-color: rgba(240, 162, 58, 0.2);
  background: rgba(240, 162, 58, 0.14);
  color: #ffd092;
}

@media (max-width: 768px) {
  #page-header.full_page {
    min-height: 58vh;
  }

  #recent-posts > .recent-post-item,
  .card-widget,
  #post,
  #page,
  #archive,
  #tag,
  #category {
    border-radius: 8px;
  }

  #content-inner {
    padding: 0 12px;
  }
}
