* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* 定义字体优先级 */
    background: #faf9f8;
    color: #1e2a3e;
    line-height: 1.5;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 导航栏 */
nav {
    background: #f9b233;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 16px 16px 16px 16px;
}

.scolled{
    transition: background 0.3s, box-shadow 0.3s;
    opacity: 0.6;
}

#top-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    max-width: 1200px;
    margin: 0 auto;
}

#top-nav li {
    position: relative;
}

#top-nav li a {
    display: inline-block;
    padding: 0.6rem 4rem;
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    border-radius: 16px 16px 16px 16px;
}

#top-nav li a:hover {
    color: #e2e8f0;
    background: #ec7106;
    border-radius: 16px 16px 16px 16px;
}

/* 二维码下拉 */
#intro {
    position: relative;
}

#QRcode {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid #ec7106;
    background: #ffffff;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    min-width: 150px;
    display: none;
    z-index: 200;
}

#intro:hover #QRcode {
    display: block;
}

#QRcode img {
    width: 120px;
    height: auto;
}

#QRcode p {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #0c0f15;
}

/* 首页背景区 */
.homepage {
    position: relative;
    text-align: center;
}

#background-img {
    position: relative;
}

#background-img img {
    width: 100%;
    display: block;
}

#geek {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    min-width: 180px;
    transition: transform 0.3s ease;
}

#geek:hover {
    transform: translateX(-50%) scale(1.15);
}

#geek img {
    width: 100%;
}

/* 通用容器 */
.introduction,
.about-wrapper,
.contact-wrapper,
.QA-wrapper {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1.5rem;
    text-decoration: none;
}

.introduction {
    text-align: center;
}

#pass {
    position: relative;
    display: inline-block;
}

#pass-text h1 {
    font-size: 2rem;
    color: #062a78;
}

/* 介绍卡片 */
.introduction-wrapper {
    padding: 2rem 1rem;
}

#text-wrapper {
    max-width: 900px;
    margin: 3rem auto;
    background: #ffffff;
    border: 3px solid #666767;
    border-radius: 32px;
    padding: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s ease-in-out, box-shadow 0.25s ease;
    transform-origin: center center;
}

#text-wrapper:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.1);
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.right {
    float: right;
    width: 35%;
    margin-left: 2rem;
    border-radius: 24px;
    transition: transform 0.2s ease;
}

.right:hover {
    transform: rotate(-10deg);
}

.left {
    float: left;
    width: 35%;
    margin-right: 2rem;
    border-radius: 24px;
}

#textl,
#textr {
    overflow: hidden;
}

#textl h2,
#textr h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

#main-text {
    margin-top: 1rem;
    text-align: justify;
}

@media (max-width: 768px) {

    .right,
    .left {
        float: none;
        width: 80%;
        display: block;
        margin: 0 auto 1.5rem;
    }

    #textl,
    #textr {
        text-align: center;
    }
}


/* About Us 区域 */
.about-wrapper {
    position: relative;
    font-size: 0.85rem;
    border: 6px solid #8e8e8e;
    border-radius: 32px;
    padding: 0 7rem 7rem 7rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    background: rgb(250, 249, 239)
    
}

#center-ab {
    font-size: 3rem;
    font-weight: normal;
    text-align: center;
    margin: 0 20px 2rem;
    color: #8f8f8f;
    
}

#about-box {
    
    display: flex;
    justify-content: center;
    gap: 50px;
   
}

#about-1,
#about-2,
#about-3 {
    
    width:auto;
    height: 20rem;
    background: rgb(250, 249, 239);
    border: 4px solid #4f0a6e;
    border-radius: 28px;
    text-align: center;
    transition: transform 0.2s;
}

#about-1:hover,
#about-2:hover,
#about-3:hover {
    transform: scale(1.05);
}
#about-1 p,
#about-2 p,
#about-3 p{
    width: 15ch;
    word-wrap: break-word;
    padding: 1rem auto;
    
}

#about-1 img,
#about-2 img,
#about-3 img {
    max-width: 100px;
}

/* 装饰 */
#hudie {
    position: absolute;
    bottom: 35px;
    right: 70px;
    width: 120px;
    transition: transform 0.2s ease;
}

#hudie:hover {
    transform: translateY(5px);
}

#rt,
#rb,
#lt,
#lb {
    position: absolute;
    pointer-events: none;
}

#rt {
    right: -30px;
    top: -10px;
    width: 200px;
}

#rb {
    right: -30px;
    bottom: -10px;
    width: 200px;
    transform: scaleY(-1);
}

#lt {
    left: -30px;
    top: -10px;
    width: 200px;
    transform: scaleX(-1);
}

#lb {
    left: -30px;
    bottom: -10px;
    width: 200px;
    transform: rotate(180deg);
}

/* Contact Us */
.contact-wrapper {
    background: white;
    border: 5px solid #3d8d86;
    border-radius: 48px;
    padding: 2rem 1.5rem;
    position: relative;
    margin-bottom: 3rem;
}

#center-cu {
    font-size: 3rem;
    font-weight: normal;
    text-align: center;
    margin: 0 20px 2rem;
    color: #073e12;
}

#request {
    background: white;
    padding: 0.5rem 5rem;
    margin: 0 2.5rem;
}

#request p {
    margin: 0.8rem 0;
}

#ps {
    font-size: 0.85rem;
    color: #5d5c5c;
    padding-top: 0.8rem;
}

#a-wrapper {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

#a-wrapper a {
    background: #31af7d;
    color: white;
    padding: 0.5rem 1.8rem;
    border-radius: 15px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

#a-wrapper a:hover {
    background: #2d7e52;
    color: #1b461e;
}

/* 装饰树、虫子*/
.contact-wrapper img {
    position: absolute;
    pointer-events: none;
}

#r-tree {
    right: -20px;
    bottom: 10px;
    width: 120px;
}

#l-tree {
    left: 0;
    top: -20px;
    width: 150px;
}

#bsl {
    bottom: -40px;
    right: 110px;
    width: 400px;
}

#ladybug {
    bottom: -5px;
    left: -5px;
    width: 50px;
}

#leaves {
    top: 50px;
    left: 350px;
    width: 60px;
}

/* Q&A */

.QA-wrapper {
    width: 100%;
  border: 10px solid cornflowerblue;
  border-radius: 25px;
  margin: 250px auto 100px;
  background-image: url(images/background_QA.png);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;

}


#center-QA {
    font-size: 3rem;
    font-weight: normal;
    text-align: center;
    margin: 20px 2rem;
    color: #000000;
}

#QA-ul {
    display: flex;
    flex-direction: column;

    align-items: left;
    
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0;

}

#QA-ul li {
    justify-content: center;
    border-radius: 10px;
    transition: 0.2s;
    overflow: hidden;
}

.QA-a {
  display: block;
  line-height: 80px;
  font-size: 20px;
  color: rgb(0, 0, 0);
  transition: all 0.2s;
  text-decoration: none;
}

.QA-a:hover {
    color: #787878;
    transform: scale(1.01);

}

#QA-ul li p {

    padding: 10px 20px;
    font-size: 18px;
    color: aliceblue;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

/* Footer */
.footer {
    background: #e7e7e7;
    color: #000000;
    text-align: center;
    padding: 10px;
    margin-top: 3rem;
    font-size: 10px;
}

/* 返回顶部火箭 */
.pointer {
    position: fixed;
    right: 50px;
    transform: translate(-3%);
    bottom: 75px;
    height: 46px;
    width: 51px;
    overflow: hidden;
    z-index: 1000;
    transition: ease-in-out 3.5s, ease-out 3s
}

.pointer div {
    width: 45px;
    height: 40px;
    border: 3px solid black;
    position: absolute;
    transition: all .5s;
    border-radius: 15px;
    background: aliceblue;
    display: flex;
    align-items: center;
    justify-content: center
}

#pointer1 {
    top: 0;
    left: 0
}

#pointer2 {
    top: 49px;
    left: 0
}

.pointer:hover #pointer1 {
    top: -49px
}

.pointer:hover #pointer2 {
    top: 0
}

.pointer i {
    font-size: 22px;
    display: inline-block;
    line-height: 40px;
    width: 100%;
    text-align: center;
    margin: 2% 0;
    font-weight: 800
}

#pointer1 i {
    font-size: 30px
}

#pointer {
    display: none
}