* {
  margin: 0;
  padding: 0;
}

html {
  transition: background-color .3s ease;
}

body {
  font: 16px/1.8 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", Helvetica, Arial, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji";
  text-align: center;
}

p {
  margin: 20px 0;
}

ul,
ol {
  list-style: none;
}

/* Head Portrait */
.avatar {
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 1px 1px rgba(0, 0, 0, .3);
  transition: .4s ease-in-out;
  --item_bg_color: rgba(249, 250, 251, 0.42);
}

/* Theme Switch*/
.switch {
  width: 55px;
  height: 43px;
  box-sizing: border-box;
  border-radius: 7px;
  display: flex;
  margin-left: 10px;
  backdrop-filter: blur(var(--card_filter));
  -webkit-backdrop-filter: blur(var(--card_filter));
  background: var(--item_bg_color);
  align-items: center;
  justify-content: center;
  transition: width 1s ease, opacity 1s ease, transform 1s ease;
  flex-shrink: 0;

  position: fixed; /* 使用fixed定位 */
  bottom: 20px;    /* 距离底部20px */
  right: 20px;     /* 距离右边20px */
  z-index: 1000; /* 确保按钮在最上层 */
}

.onoffswitch {
  position: relative;
  width: 38px;
  height: 20px;

}

.onoffswitch-checkbox {
  display: none;
}

.onoffswitch-label {
  display: block;
  overflow: hidden;
  cursor: pointer;
  height: 100%;
  border-radius: 50px;
}

.onoffswitch-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 200%;
  height: 100%;
  margin-left: -100%;
  transition: margin 0.2s ease-in 0s;
}

.onoffswitch-inner:before,
.onoffswitch-inner:after {
  display: flex;
  justify-content: center;
  align-items: center;
  float: left;
  width: 50%;
  height: 100%;
  padding: 0;
  font-size: 12px;
  color: white;
  font-family: Trebuchet, Arial, sans-serif;
  font-weight: bold;
  box-sizing: border-box;
}

.onoffswitch-inner:before {
  content: "";
  background-color: rgb(110 110 110 / 50%);
  color: #FFFFFF;
  text-align: left;
}

.onoffswitch-inner:after {
  content: "";
  background-color: #272727;
  color: #FAFAFA;
  text-align: right;
}

.onoffswitch-switch {
  display: block;
  height: 70%;
  aspect-ratio: 1/1;
  background: #FFFFFF;
  position: absolute;
  top: 12.5%;
  bottom: 12.5%;
  right: 5px;

  border-radius: 20px;
  transition: right 0.2s ease-in 0s;
}

.onoffswitch-checkbox:checked+.onoffswitch-label .onoffswitch-inner {
  margin-left: 0;
}

.onoffswitch-checkbox:checked+.onoffswitch-label .onoffswitch-switch {
  right: 50%;
}

/* Fonts
/* ================================================= */
@font-face {
  font-family: 'icomoon';
  src:
    url('../fonts/icomoon.ttf?mrs7x8') format('truetype'),
    url('../fonts/icomoon.woff?mrs7x8') format('woff'),
    url('../fonts/icomoon.svg?mrs7x8#icomoon') format('svg');
  font-weight: normal;
  font-style: normal;
}

[class^="icon-"],
[class*=" icon-"] {
  /* use !important to prevent issues with browser extensions that change fonts */
  font-family: 'icomoon' !important;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;

  /* Better Font Rendering =========== */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-map-pin:before {
  content: "\e902";
}

.icon-moon:before {
  content: "\e900";
}

.icon-sun:before {
  content: "\e901";
}

.icon-quotes-left:before {
  content: "\e977";
}

.icon-quotes-right:before {
  content: "\e978";
}


/* Animation
/* ================================================= */
.animate-slide-in-down,
.animate-slide-in-up {
  position: relative;
  opacity: 0;
}

.animate-slide-in-down {
  top: -10px;
}

.animate-slide-in-up {
  bottom: -10px;
}

.no-js .animate-slide-in-down,
.no-js .animate-slide-in-up {
  opacity: 1;
}

.no-js .animate-slide-in-down {
  top: 0;
}

.no-js .animate-slide-in-up {
  bottom: 0;
}

.animate-slide-in-left {
  left: -100%;
}

.no-js .animate-slide-in-left {
  left: 0;
}

.animate-slide-in-right {
  right: -100%;
}

.no-js .animate-slide-in-right {
  right: 0;
}


/* Headline
/* ================================================= */
.vi {
  margin: 100px auto 0;
  max-width: 780px;
}

@media (max-width: 767px) {
  .vi {
    margin-top: 50px;
  }
}


/* Quote
/* ================================================= */
.quote {
  position: relative;
  overflow: hidden;
  margin: 40px 20px;
}

.quote-line {
  display: block;
  position: relative;
  height: 1px;
  transition: all .3s ease;
}

.quote cite::before {
  content: "-";
  padding: 0 5px;
}

.quote-icon {
  position: absolute;
}

.quote-icon.animate-slide-in-down,
.quote-icon.animate-slide-in-up {
  opacity: 0;
}

.no-js .quote-icon.animate-slide-in-down,
.no-js .quote-icon.animate-slide-in-up {
  opacity: 1;
}

.quote-icon-start {
  left: 0;
}

.quote-icon-start.animate-slide-in-down {
  top: -10px;
}

.no-js .quote-icon-start.animate-slide-in-down {
  top: 0;
}

.quote-icon-end {
  right: 0;
}

.quote-icon-end.animate-slide-in-up {
  bottom: -10px;
}

.no-js .quote-icon-end.animate-slide-in-up {
  bottom: 0;
}

.quote-content {
  margin: 30px auto 0;
}

.quote-author {
  margin: 10px auto 30px;
}


/* Links
/* ================================================= */
.links {
  margin-top: 40px;
  font-size: 14px;
}

.links a {
  display: inline-block;
  position: relative;
  margin-left: 10px;
  text-decoration: none;
  border-bottom: 1px dotted;
  transition: border .3s ease, color .3s ease;
}

.links a:hover {
  border-bottom: 1px solid;
}

.links a:active {
  top: 1px !important;
}

.links a:first-child {
  margin-left: 0;
}


/* Location
/* ================================================= */
.location {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}

.location-icon {
  font-size: 14px;
}

.location-text {
  margin-left: 6px;
  font-size: 13px;
}

.relocating {
  opacity: 0;
  font-size: 13px;
  transition: all .3s ease;
}
