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>ul {
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: fit-content;
  margin: 0 auto;
  height: 100%;
  gap: 1rem;
}

nav>ul>li {
  display: flex;
  align-items: center;
  height: 100%;
}

nav>ul>li>a {
  font-size: 1.5rem;
  color: black;
  
}
nav>ul>li:hover{box-shadow: inset 0 -1px 0 0 currentColor;}
.nav-trigger {
  font-size: 1.5rem;
  background-color: white;
  border: none;
  cursor: pointer;
}

.pagetools {
    display: none;
  width: 100%;
  height: 60%;
  padding-right: 4rem;
  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%;
}
.banner {
    container-type: size; 
    width: 100%;
    height:40vh;
    font-size: 1.5rem;
    color: #ffffff;
    padding: 4%;
    overflow: hidden;
    z-index: 0;
    position:relative;
    display: flex;
    justify-content: space-between;
    background-color:#24466e;
    flex-direction: column;
}

.banner::before {
    content: "";
    position: absolute;
    left:0;
    top: 0;
    width:80%;
    height:100%;
    background: linear-gradient(to right,#24466e 0%,#24466e 60%,rgba(36, 70, 110, 0) 100%);
    z-index: -1;
    pointer-events: none;
}
.banner>img {
    position: absolute;
    right:0;
    top: 0;
    width: 60%;
    height: 100%;
    z-index: -2;
    object-fit: cover;
    object-position: center;
    display: block;
}
.category{
    font-family:impact;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5); 
    font-size: 10cqw; 
    letter-spacing: 1rem;
}
main {
    flex: 1;
    width: 100%;
    background-color: whitesmoke;
}

.banner>h1 {
    flex: 0 0 auto; 
    font-weight: bolder;
    padding: 1rem 0;
    border-radius: 8px 8px 0 0;
    color: white;
}

.section2 {
    padding: 4%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
}

.voice {
    font-size: 0;
    aspect-ratio: 1/1;
    width:30%;
    
    background-image: url("../resources/ui/icon-reader.svg");
background-repeat: no-repeat;
background-position: center center;
background-size: 70%;
}

article {
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns:1fr;
}
.leftContent,.rightContent{
    display: none;
}
.atc-main {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    padding: 4%;
}


.atc-block {
    display: flex;
    flex-direction: column;
    padding: 2px;
    background-color: darkcyan;
    border-radius: 8px;
}
.atc-block h2 {
    color: white;
    padding: 1rem;
}

.atc-block h3 {
    line-height: 3rem;
    font-size:1.5rem;
}

.atc-content>p {
    text-indent: 2rem;
    line-height:2rem;
}
.atc-block p>strong {
border-bottom: solid 3px var(--theme-primary);
}
.atc-block li>strong {
border-bottom: solid 3px var(--theme-primary);
}
.atc-content>blockquote{
    text-indent: 2rem;
    line-height:2rem;
    padding: 1rem 0;
    background-color: whitesmoke;
    border-radius: 4px;
}
.atc-block ul{list-style-type: disc;padding:1rem 2rem;display:flex;flex-direction:column;gap:1rem;}
.atc-block ul > li::marker {
  color: lightgray;
}
.atc-content {
    background-color: white;
    padding: 1rem;
    border-radius: 4px;
}

.imgContainer {
    width: 100%;
    height: auto;
    display: grid;
    padding: 4% 20%;
}

.imgContainer img {
    width: 100%;
    border-radius: 4px;
}

.grid1xn {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 1rem;
}

.grid2xn {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    gap: 1rem;
}

.grid3xn {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 1rem;
}

.addition {
    width: 100%;
    height: auto;
    padding:4%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background-color: #24466e;
}

.addition-block {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2% 0;
}

.addition-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    font-size: 2rem;
}
.addition-block li {
    color:white;
}
.addition-block ul {
    display: flex;
    gap: 1rem;
}
.references{
    width: 100%;
}
.references ul {
    flex-direction: column;
}
.references ul a{color:white;}
.references ul a:hover{box-shadow: inset 0 -1px 0 0 currentColor;}
.keywords{
    width: 100%;
}
.keywords ul {
    flex-direction: row;
    flex-wrap: wrap;
}
.react{
    width:auto;
    height: auto;
    align-items: center;
}

.reactBtns {
    width: auto;
    display: flex;
    flex-direction: row;
    gap: 2rem;
}

.reactBtns>button {
    width: 10vh;
    aspect-ratio: 1 / 1;
    background-color: white;
    border-radius: 50%;
    outline: none;
    border: none;
}

footer {
  background-color: white;
}

.footer-navContainer {
  width: 100%;
  height: auto;
  padding: 4%;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4rem;
}

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

.footer-nav>li>p {
  font-size: 2rem;
  font-weight: bolder;
  color: black;
  padding-bottom: 1rem;
}

.footer-subnav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-subnav li,
.footer-subnav a {
  color: black;
}

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

.qrcode {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.qrcode>div {
  display: flex;
  flex-direction: row;
  width: 240px;
  height: 120px;
  padding: 8px;
  gap: 1rem;
  background-color: #24466e;
  color: white;
  border-radius:16px;
}

.qrcode>div img {
  height: 100%;
  aspect-ratio: 1 / 1;
  border: solid 1px lightgray;
  border-radius: 8px;
}

.qrcode>div span {
  padding: 4px;
}

.footer-regeister {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-top: solid 1px dimgray;
  background-color: white;
  padding: 4%;
}

.footer-regeister a {
  font-size: 1rem;
  color: black;
}

.icp {
  text-align: center;
}

.psnf {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.psnf-icon {
  display: inline-block;
  height: 20px;
  aspect-ratio: 1/1;
  background-image: url('../resources/img/psnf.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
}

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

/* ============================================================
   1. 断点：大屏手机
   ============================================================ */
@media (min-width: 480px) {

}

/* ============================================================
   2. 断点：平板
   ============================================================ */
@media (min-width: 768px) {}

/* ============================================================
   3. 断点：桌面
   ============================================================ */
@media (min-width: 1270px) {
.banner{padding: 2% 22%;}
  .footer-navContainer {
    padding: 4% 20%;
  }

  .footer-nav {
    flex-direction: row;
    gap: 0;
  }
  .section2 {
    padding: 2% 23%;
}
  article {
    grid-template-columns: 1fr 54% 1fr;
}
.leftContent,.rightContent{display:block;}
  .atc-main {
    padding: 0%;
}
.addition{
    flex-direction: row;
    flex-wrap: wrap;
    padding: 2% 20%;
    gap: 0;
}
.references,.keywords{
    width: 50%;;
}
.reactBtns{
    padding: 8px;
    gap: 8px;
    border-radius: 16px;
    background-color: whitesmoke;
    box-shadow: inset -2px 2px 8px 1px rgba(0, 0, 0, 0.2);
    border:solid 1px whitesmoke;
}
.reactBtns>button {
    cursor: pointer;
    font-weight: bolder;
    border-radius: 16px;
    box-shadow: -2px 2px 3px 3px lightgray;
}
.qrcode>div{border-radius: 0;}
.qrcode>div img{border-radius: 0;}
  .footer-regeister {
    flex-direction: row;
    justify-content: center;
    padding: 1rem 0;
  }
}