@import url(https://fonts.googleapis.com/earlyaccess/notosanstc.css);
@import url(https://fonts.googleapis.com/earlyaccess/cwtexfangsong.css);
@import url('https://fonts.googleapis.com/css?family=Teko');
@import url('https://fonts.googleapis.com/css?family=Sunflower:300');

* {
  -webkit-box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
  -webkit-transition: all .2s ease-in-out;
     -moz-transition: all .2s ease-in-out;
       -o-transition: all .2s ease-in-out;
          transition: all .2s ease-in-out;
}

.no-padding {
  margin: 0;
  padding: 0;
}

/* 主体和 body 容器 */
html, body {
  /* 保留最小视口高度，移除 height 以避免双滚动 */
  min-height: 100vh;
  margin: 0;
  padding: 0;

  /* 背景与字体 */
  font-family: 'Noto Sans TC', 'cwTeXFangSong', '微軟正黑體', 'Sunflower', 'Teko', sans-serif;
  font-weight: 300;
  font-size: 14px;
  background: url(../images/image.png) no-repeat fixed 0 0/cover;

  /* 只在需要时滚动 */
  overflow: auto;

  /* Flex 布局撑满高度 */
  display: flex;
  flex-direction: column;
}

/* 主内容区域，预留 footer 空间 */
.main-content,
.bgg {
  flex: 1 0 auto;
  padding-bottom: 80px; /* 根据 footer 高度调整 */
}

.navbar-scroll.navbar {
  background: transparent;
  padding: 0;
  margin: 0;
  border-bottom: none;
}

.navbar-scroll.navbar-fixed-top {
  background: rgba(10, 10, 10, 0.85);
}

.navbar-scroll.navbar-fixed-top .logo svg {
  width: 60px;
  height: 60px;
}

.navbar-scroll.navbar-fixed-top .logo {
  text-align: left;
  width: auto;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  padding: 0;
}

#navbarNav {
  margin-left: 2em;
}

.navbar-nav a.nav-link {
  color: #fff;
  font-weight: 500;
  margin: 0 15px;
  position: relative;
  transition: color 0.3s ease;
}

.navbar-nav a.nav-link::after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, #FFD700, #fff);
  transition: width 0.3s ease;
  margin-top: 5px;
}

.navbar-nav a.nav-link:hover {
  color: #FFD700;
}

.navbar-nav a.nav-link:hover::after {
  width: 100%;
}

/* 绝对定位Box，防止内容溢出 */
.box {
  position: absolute;
  width: 100%;
  overflow: hidden;
}

.header {
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(10px);
  padding: 15px 30px;
  position: fixed;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  padding: 0 1em 0 3em;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

svg {
  width: 100px;
  height: 100px;
  position: relative;
}

.bgg .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2em 5vw;
  position: relative;
}

.yellow {
  border: 2px solid rgb(255, 210, 21);
  padding: 2em;
  display: inline-block;
  transition: all 0.35s ease-in-out;
}

h1 {
  font-weight: 300;
  font-size: 2.8rem;
  color: white;
  margin: 0;
  padding: 0;
  text-align: center;
}

h1 div {
  font-size: 1.6rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.aa {
  width: 100px;
  background: rgb(255,210,21);
  height: 50px;
  position: absolute;
  top: 25%;
  left: 100px;
  opacity: 0.6;
  z-index: 1;
  display: block;
  transition: all .35s ease-in-out;
}

.text01 {
  width: 80%;
  color: white;
  right: 0;
  margin: 9em 1em 3.5em;
  padding: 2em;
  line-height: 2em;
  position: relative;
  font-size: 16px;
  background: rgba(0,0,0,0.6);
  border-radius: 15px;
  font-weight: 400;
  opacity: 0.8;
  transition: all .35s ease-in-out;
}

footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: rgba(14,30,38,1);
  z-index: 1000;
  color: white;
  padding: 20px 10px;
  font-size: 12px;
  font-weight: 500;
}

.foot_text {
  padding: 10px 0 10px 30px;
  line-height: 28px;
  margin: auto 0;
  color: rgb(204,204,204);
}

.email_text {
  text-align: right;
  margin: auto 0;
  color: rgb(204,204,204);
  line-height: 28px;
}

.eth_text {
  color: rgb(255,210,21);
}

.eth {
  text-align: left;
  display: inline-block;
  text-transform: uppercase;
  transition: all .35s ease-in-out;
  font-weight: bolder;
}

a.eth_text:hover {
  color: rgb(255,210,21);
  font-weight: bolder;
  transition: all .35s ease-in-out;
  text-decoration: none;
}

i {
  color: rgb(255,210,21);
  font-size: 1.1rem;
  padding: 4px 4px 2px 4px;
  line-height: 0.8;
}

/* 响应式 */
@media only screen and (max-width: 1500px) {
  .bgg {
    top: 10vh;
    margin-bottom: 100px;
    position: relative;
  }
  h1 {
    font-weight: 300;
    font-size: 3.5rem;
    color: white;
    position: relative;
    padding: 4em 1em 1em 1.5em;
    z-index: 10;
    margin: 1em;
  }
  h1 div {
    font-size: 2.5rem;
    padding: 1rem 0;
    margin-top: 1rem;
    border-top: 2px solid rgba(255,255,255,0.5);
  }
  .yellow {
    border: 1px solid rgb(255,210,21);
    width: 50%;
    height: 50%;
    position: absolute;
    top: 40%;
    left: 6%;
  }
  .aa {
    width: 90px;
    height: 50px;
    top: 24%;
    left: 70px;
  }
}
@media only screen and (max-width: 1200px) {
  .bgg { top: 10vh; margin-bottom: 100px; position: relative; }
  h1 { font-size: 2.5rem; padding: 8em 1em 1em 1.5em; }
  h1 div { font-size: 1.8rem; }
  .yellow { width: 50%; height: 50%; top: 40%; left: 6%; }
  .aa { width: 70px; height: 50px; top: 36%; left: 50px; }
}
@media only screen and (max-width: 1000px) {
  .bgg { top: 15vh; margin-bottom: 100px; position: relative; }
  h1 { font-size: 2.6rem; padding: 2.5em 0 1em 2em; margin: 1em 0; }
  h1 div { font-size: 1.8rem; }
  .text01 { margin: 1em; padding: 1em; width: 90%; }
  .yellow { width: 54%; height: 50%; top: 36%; left: 6%; }
  .aa { width: 70px; height: 40px; top: 24%; left: 40px; }
}
@media only screen and (max-width: 767px) {
  .bgg { top: 20vh; margin-bottom: 160px; position: relative; }
  h1 { font-size: 2.6rem; padding: 0 2em 2em; text-align: center; }
  h1 div { font-size: 1.8rem; }
  .text01 { width: 96%; margin: 1em; padding: 1em; }
  .yellow { width: 90%; height: 40%; top: 24%; left: 6%; }
  .aa { top: 10%; left: 30px; width: 70px; height: 40px; }
}
@media only screen and (max-width: 600px) {
  .bgg { top: 20px; margin-bottom: 200px; position: relative; }
  h1 { font-size: 2.4rem; padding: 1em; margin: 3.5em 1em 0; line-height: 1.5em; text-align: left; }
  h1 div { font-size: 1.6rem; }
  .text01 { margin: 2em 1em 3em; padding: 1em; width: 90%; line-height: 2rem; }
  .aa { top: 140px; left: 10px; width: 70px; height: 40px; }
  .yellow { width: 84%; height: 30%; top: 130px; left: 6%; }
  svg { width: 70px; height: 70px; }
  .foot_text { padding-left: 48px; opacity: 0.7; }
  .email_text { text-align: left; padding-left: 48px; padding-bottom: 10px; opacity: 0.7; }
}
