header {
  width: 100%;
  height: 80px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background-color: white;
  align-items: center
}

.sitelogo {
  width: 100%;
  height: 100%;
  padding-left: 4rem;
  display: flex;
  align-items: center;
}

.sitelogo>a {
  width: auto;
  height: auto;
}

.sitelogo>a>img {
  height: 80px;
  aspect-ratio: 1/1;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.sitelogo h1>a {
  color: rgb(37, 37, 37);
}

nav {
  width: 100%;
  height: 60%;
}

nav>p {
  font-size: 2em;
  color: lightgray;
  font-weight: bolder;
  text-align: center;
}

.pagetools {
  width: 100%;
  height: 60%;
  padding-right: 4rem;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 1rem;
}

.accessibility {
  flex-shrink: 0;
  font-size: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  cursor: pointer;
  height: 100%;
  aspect-ratio: 2/1;
  border-radius: 99px;
  border: NONE;
  transition: all 0.1s ease;
  text-shadow: 0 1px #fff;
  background-color: white;
  box-shadow: -2px 2px 3px 3px lightgray;
}

.accessibility:active {
  box-shadow: -1px 1px 1px 1px lightgray;
}

.themeswitcher {
  flex-shrink: 0;
  position: relative;
  height: 100%;
  aspect-ratio: 2 / 1;
  cursor: pointer;
  overflow: hidden;
  border-radius: 99px;
  background-color: whitesmoke;
  box-shadow: inset 1px 2px 5px 1px rgba(0, 0, 0, 0.329);
}

.themeswitcher input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.track {
  display: flex;
  align-items: center;
  gap: 0;
  width: 150%;
  height: 100%;
  padding: 0;
  transition: transform 0.3s ease;
}

.themeicon,
.knob {
  flex: 0 0 auto;
  width: 33.3333%;
  height: 100%;
  aspect-ratio: 1 / 1;
}

.knob {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 50%;
}

.knob-inner {
  height: 70%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background-color: white;
  box-shadow: -2px 2px 3px 3px lightgray;
}

.themeicon {
  display: flex;
  align-items: center;
  justify-content: center;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 55% 55%;
}

.icon-sun {
  background-image: url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/icons/sun.svg');
}

.icon-moon {
  background-image: url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/icons/moon.svg');
}

.themeswitcher input:checked+.track {
  transform: translateX(calc(-1 * 100% / 3));
}

.themeswitcher:has(input:checked) {
  background-color: gray;
  box-shadow: inset 1px 2px 5px 1px black;
}

.themeswitcher input:checked+.track .knob-inner {
  background-color: #FFF6C9;
  box-shadow: -2px 2px 3px 3px black;
}

.search-outter {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  display: flex;
  justify-content: flex-start;
}

.search-wrapper {
  display: flex;
  width: auto;
  max-width: 100%;
  height: 100%;
  background-color: whitesmoke;
  padding: 4px;
  border-radius: 99px;
  box-shadow: inset 1px 2px 5px 1px rgba(0, 0, 0, 0.329);
  transition: box-shadow 0.25s ease, border-color 0.2s ease;
}

.search-input {
  width: 70px;
  max-width: 100%;
  border: none;
  outline: none;
  background: transparent;
  border-radius: 60px 0 0 60px;
  padding-left: 1rem;
  font-size: 1rem;
  transition: width 0.2s ease;
}

.search-input::placeholder {
  width: 100%;
  color: gray;
}

.search-btn {
  background-color: white;
  border: none;
  outline: none;
  height: 100%;
  aspect-ratio: 1/1;
  border-radius: 99px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  box-shadow: -2px 2px 3px 3px lightgray;
  background-image: url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/icons/search.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 50% 50%;
}


main {
  width: 100%;
  height: auto;
  padding: 4% 0;
  background-color: whitesmoke;
}

/* main 内部网格容器 */
.grid-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 4% 20%;
}

.grid-row {
  display: grid;
  align-items: stretch;
}

.rowTitle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: white;
  padding: 1rem;
  font-size: 2rem;
}

.odd-row>.rowTitle>* {
  text-align: left !important;
}

.even-row>.rowTitle>* {
  text-align: right !important;
}

.odd-row {
  grid-template-columns: 3fr 7fr;
}

.even-row {
  grid-template-columns: 7fr 3fr;
}

.rowTitle-btn {
  padding: 1rem;
  color: #1e293b;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 99px;
  box-shadow: -2px 2px 3px 3px lightgray;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.grid-item {
  display: flex;
  flex-direction: column;
  background-color: black;
}

.inner-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  min-height: 200px;
}

footer {
  background-color: black;
}

.footer-nav {
  width: 100%;
  height: auto;
  padding: 4% 20%;
  color: white;
}

.footer-nav>ul {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.footer-nav>ul>li {
  flex: 1;
}

.footer-nav>ul>li>p {
  font-size: 1.17em;
  font-weight: bold;
  padding-bottom: 2rem;
  color: white;
}

.footer-nav>ul>li>ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-nav a {
  color: lightgray;
}

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

.footer-icp {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  gap: 20px;
  border-top: solid 1px dimgray;
  background-color: black;
  padding: 1rem 0;
}

.footer-icp * {
  color: lightgray;
}

footer>p:last-child {
  width: 100%;
  height: auto;
  padding: 0;
  text-align: center;
}