<br />
<b>Deprecated</b>:  The each() function is deprecated. This message will be suppressed on further calls in <b>/home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php</b> on line <b>456</b><br />
:root {
  --link-color: #2574a9;
  --text-color: black;
  --page-background-color: white;
  --nav-underline-color: #663399;
  --border-color: black;
  --footer-link-color: #663399;
  --footer-background-color: #66339906;
  --header-h1-gradient: linear-gradient(
    to right,
    rgb(157, 80, 187),
    rgb(110, 72, 170)
  );
  --frontpage-post-hover-color: rgb(237, 233, 254);
  --weeknote-year-background: oklch(97.7% 0.014 308.299);
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.4;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: minmax(1rem, 1fr) minmax(0, 1600px) minmax(1rem, 1fr);
  min-height: 100vh;
  background-color: var(--page-background-color);
  color: var(--text-color);
}

#overlay {
  display: none;
  position: fixed;
  width: 100vw;
  height: 100vh;
  background-color: rgb(0 0 0 / 50%);
  z-index: 1;
}

body.dark {
  --page-background-color: #111827;
  --text-color: white;
  --link-color: #81cfe0;
  --border-color: #81cfe0;
  --nav-underline-color: #81cfe0;
  --footer-link-color: #81cfe0;
  --footer-background-color: #81cfe020;
  --header-h1-gradient: linear-gradient(
    to left,
    rgb(80, 201, 195),
    rgb(150, 222, 218)
  );
  --frontpage-post-hover-color: rgba(228, 241, 254, 0.4);
  --weeknote-year-background: oklch(38.806% 0.09034 241.618 / 0.2);
}

@media (min-width: 768px) {
  body {
    grid-template-rows: auto 1fr 150px;
  }
}

header {
  grid-column: 2 / span 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 768px) {
  header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

header h1 {
  background-image: var(--header-h1-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#header-contents {
  display: flex;
  align-items: center;
  column-gap: 20px;
}

header nav {
  margin-left: 20px;
  display: block;
  padding-left: 12px;
}

header nav a {
  text-decoration: none;
  margin-inline: 8px;
  border-bottom: 2px solid transparent;
  color: var(--text-color);
}
header nav a:hover {
  border-bottom-color: var(--nav-underline-color);
}

main {
  grid-column: 2 / span 1;
  margin: 0 auto;
  width: 100%;
}

main a {
  color: var(--link-color);
}

footer {
  grid-column: 1 / span 4;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background-color: var(--footer-background-color);
  padding: 2rem 0.5rem;
  font-size: 0.875rem;
  row-gap: 1rem;
  border-top: 2px solid var(--border-color);
}

footer .copyright {
  grid-column: 1 / span 2;
}

footer div p {
  margin: 0;
}

footer a {
  text-decoration: none;
  color: var(--footer-link-color);
  font-weight: 600;
}

footer a:hover {
  text-decoration: underline;
}

footer .link-group {
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  footer {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    column-gap: 2rem;
  }
}

.split-grid {
  display: flex;
  column-gap: 2rem;
}

.split-grid div {
  flex: 1;
}

.split-grid .illustration {
  display: none;
}

@media (min-width: 768px) {
  .split-grid .illustration {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .split-grid .illustration img {
    width: 90%;
    height: auto;
  }
}

@media (min-width: 768px) {
  .front-callout h1 {
    font-size: 4rem;
    font-weight: 500;
    margin-bottom: 0;
  }
  .front-callout p {
    font-size: 1.5rem;
    font-weight: 300;
  }
}

.frontpage-post {
  margin-bottom: 8px;
}

.frontpage-post img {
  width: 24px;
  height: 24px;
  margin-right: 16px;
}

.frontpage-post a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 16px;
}

.frontpage-post a:hover {
  background-color: var(--frontpage-post-hover-color);
}

.project {
  display: flex;
  flex-direction: column;
  padding: 12px;
  column-gap: 20px;
}

@media (min-width: 768px) {
  .project {
    flex-direction: row;
  }
}

.project .preview {
  flex: 1;
}

.project .preview img {
  max-width: 100%;
  height: auto;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 10%);
  border-radius: 12px;
}

.project section {
  flex: 1;
}

.project section h2 {
  font-weight: 400;
}

.project .links {
  display: flex;
  column-gap: 20px;
}

.project .links a {
  text-decoration: none;
}

.project-tags {
  display: flex;
  column-gap: 8px;
  list-style: none;
  padding-left: 0;
}

.project-tags li {
  padding: 4px 8px;
  border: 1px solid #888;
  font-size: 14px;
  border-radius: 4px;
}

#tinker-projects {
  padding-bottom: 16px;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 16px;
}

.tinker-project {
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 20px;
}

.tinker-project h3 {
  margin-top: 0;
}

.tinker-project .links {
  display: flex;
  column-gap: 20px;
}

.tinker-project .links a {
  color: var(--link-color);
  text-decoration: none;
}

@media (min-width: 768px) {
  #tinker-projects {
    grid-template-columns: repeat(2, 1fr);
  }
}

.logo {
  width: 24px;
  height: 24px;
  margin-right: 16px;
}

.logoless-logo {
  display: inline-block;
  min-width: 24px;
  width: 24px;
  height: 24px;
  border-radius: 100%;
  margin-right: 16px;
  background-image: linear-gradient(135deg, #e2b0ff 10%, #9f44d3 100%);
}

.video {
  position: relative;
  padding-bottom: 56.25%;
  padding-top: 25px;
  margin-bottom: 20px;
  height: 0;
}

.video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.warning {
  background-color: #fde68a;
  color: #78350f;
  padding: 8px;
  margin-bottom: 24px;
}

.warning span {
  font-weight: 700;
}

button#theme-dropdown {
  background-color: var(--page-background-color);
  border: 1px solid var(--border-color);
  /* padding: 10px; */
  width: 30px;
  height: 30px;
  border-radius: 1;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

#theme-dropdown-container {
  position: relative;
  z-index: 5;
}

#theme-dropdown-container-contents {
  display: none;
  position: absolute;
  background-color: var(--page-background-color);
  top: 29px;
  right: 0;
  width: 150px;
  padding: 10px;
  border-radius: 8px;
  border-top-right-radius: 0;
  border: 1px solid var(--border-color);
  height: auto;
}

#theme-dropdown-container-contents p {
  margin-top: 0;
}

#theme-dropdown-container-contents-btns {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
}

pre:not([class*="language-"]) {
  background-color: #2e3440;
  color: #f8f8f2;
  line-height: 1.5;
  padding: 1em;
  border-radius: 0.3em;
  font-size: 16px;
  overflow: auto;
}

.year-post-list {
  display: flex;
  margin-bottom: 40px;
  flex-direction: column;
}

.year-post-list h2 {
  margin: 0;
  margin-right: 40px;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .year-post-list {
    flex-direction: row;
  }

  .year-post-list h2 {
    margin-bottom: 0px;
  }
}

.year-post-list > div {
  flex-grow: 1;
}

.post-link {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.post-link .title {
  flex-grow: 1;
  font-size: 1.25rem;
}

#blogpost-content {
  max-width: 1000px;
  margin: 0 auto;
  margin-bottom: 64px;
  line-height: 1.6;
  font-size: 20px;
}

@media (max-width: 800px) {
  #blogpost-content {
    font-size: 16px;
  }
}

#blogpost-content img {
  max-width: 100%;
  height: auto;
}

#years-topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

#weeknote-navigation {
  display: flex;
  gap: 10px;
}

ul#weeknotes-list li {
  margin: 16px 0px;
}

#dev-mode-banner {
  background-color: red;
  color: white;
  font-size: 24px;
  width: 100%;
  position: fixed;
  top: 0;
  height: 50px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  /* grid-column: 1 / 4; */
}

body:has(#dev-mode-banner) header {
  margin-top: 50px;
}

#entrypoint-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 800px) {
  #entrypoint-grid {
    grid-template-columns: 1fr;
  }
}

.entrypoint {
  background: white;
  padding: 2rem;
  overflow: hidden;
  position: relative;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.entrypoint::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #7c3aed, #ec4899);
  transition: background 0.3s ease;
}

.entrypoint:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
}

.entrypoint:nth-child(2):hover {
  transform: translateY(-6px) rotate(1deg);
}

.entrypoint h3 {
  font-weight: 600;
  margin-top: 0;
}

.entrypoint p {
  line-height: 1.8;
  color: #555;
}

.entrypoint a {
  color: #7c3aed;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.entrypoint a:hover {
  color: #5b21b6;
  gap: 8px;
}

.entrypoint a::after {
  content: "→";
  transition: transform 0.2s ease;
}

.entrypoint a:hover::after {
  transform: translateX(4px);
}

body.dark .entrypoint {
  background-color: #243447;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  border: 1px solid #2d4259;
}

body.dark .entrypoint::before {
  background: linear-gradient(90deg, #8dd4d1, #6db5b2);
}

body.dark .entrypoint p {
  color: white;
}

body.dark .entrypoint a {
  color: #8dd4d1;
}

body.dark .entrypoint a:hover {
  color: #a8e6e3;
}

ul:has(.weeknotes-year-dropdown) summary {
  margin-left: -40px;
  padding: 4px;
  background-color: var(--weeknote-year-background);
}

.weeknotes-year-dropdown summary {
  font-size: 1.7em;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  list-style: none; /* Removes default marker */
}

/* Remove the default disclosure triangle */
.weeknotes-year-dropdown summary::-webkit-details-marker {
  display: none;
}

/* Add a custom arrow on the right */
.weeknotes-year-dropdown summary::after {
  content: "▼";
  transition: transform 0.2s;
  transform: rotate(-90deg);
}

/* Rotate arrow when open */
details[open].weeknotes-year-dropdown summary::after {
  transform: rotate(0deg);
}
