.light,
.dark {
  --text-color: black;
  --primary: black;
  --primary-variant: black;
  --on-primary: white;
  --background-color: white;
  --on-background: black;
  --accent-color: #6190e8;
  --on-accent: #6190e8;
  --secondary: gray;
  --secondary-variant: #3b3b3b;
  --on-secondary: #f8f8f8;
  --surface: gray;
  --on-surface: #f8f8f8;
  --auxiliary-color: gray;
  --auxbg-color: #F8F8F8;
  --transbg: #FFFFFF80;
  --refresh-image: url('/img/light/refresh.png');
  --background-image: url('/img/light/background.png');
  --color-switch: url('/img/light/colorSwitch.png');
}
.dark {
  --text-color: #DDDDDD;
  --background-color: #121212;
  --accent-color: #6190e8;
  --auxiliary-color: #424242;
  --auxbg-color: #1f1f1f;
  --transbg: #00000080;
  --refresh-image: url('/img/dark/refresh.png');
  --background-image: url('/img/dark/background.jpg');
  --color-switch: url('/img/dark/colorSwitch.png');
}
footer {
  padding: 0.5rem;
  line-height: 1.5rem;
  height: 4rem;
  font-size: small;
  color: var(--text-color);
  text-align: center;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
footer p {
  margin: 0;
}
.clips .clip {
  margin: 1em;
  border-width: 2px;
  border-radius: 1em;
  padding: 0 0.5em 0 0.5em;
}
.clips .tags .clip {
  color: var(--accent-color);
  border-style: solid;
  border-color: var(--accent-color);
}
.clips .categories .clip {
  border-color: #7fffd440;
  background-color: #7fffd420;
}
.paginator {
  display: flex;
  justify-content: center;
  align-items: center;
}
.paginator span,
.paginator a {
  background-color: var(--background-color);
  color: var(--text-color);
  margin: 0.5em;
  width: 2em;
  height: 2em;
  line-height: 2em;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 5px 8px rgba(0, 0, 0, 0.2);
}
html {
  font-family: 'Noto Sans CJK SC', 'Microsoft Yahei', sans-serif;
}
* {
  box-sizing: border-box;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
  background-color: var(--auxbg-color);
}
::-webkit-scrollbar-thumb {
  background-color: var(--auxiliary-color);
}
::-webkit-scrollbar-thumb:hover {
  background-color: var(--accent-color);
}
body {
  margin: 0 auto;
  color: var(--text-color);
  background-color: var(--background-color);
}
main {
  margin-top: 3rem;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}
a:hover {
  color: var(--accent-color);
}
#top-panel {
  position: fixed;
  display: flex;
  top: 0;
  left: 0;
  width: 100%;
  height: 3rem;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  list-style: none;
  user-select: none;
  z-index: 100;
  justify-content: center;
  align-items: center;
}
#top-panel * {
  margin-left: 0.5rem;
  margin-right: unset;
}
#myname {
  font-size: 1.25em;
  font-weight: 550;
  flex-grow: 0.7;
}
.color-switch {
  height: 1.25rem;
  width: 1.25rem;
  background-size: contain;
  background-image: var(--color-switch);
  cursor: pointer;
}
.goline-text {
  position: relative;
}
.goline-text::before {
  content: '';
  position: absolute;
  height: 2px;
  width: 100%;
  left: 0px;
  top: 0px;
  background-color: var(--accent-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.goline-text:hover::before {
  transform: scaleX(1);
  transform-origin: right;
}
.goline-text::after {
  content: '';
  position: absolute;
  height: 2px;
  width: 100%;
  left: 0px;
  bottom: 0px;
  background-color: #5e72e4;
  transform: scaleX(1);
  transform-origin: right;
  transition: transform 0.3s;
}
.goline-text:hover::after {
  transform: scaleX(0);
  transform-origin: left;
}
