/* 定義字體名稱與檔案路徑 */
@font-face {
  font-family: "MyIansui";
  src: url("../fonts/Iansui-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

body {
  overflow-x: hidden;
}

/* header設定 */
.site-header {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-sizing: border-box;
  background-color: rgb(237, 242, 253);
  padding: 10px 0;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  font-family: "MyIansui", serif;
}

/* header上半部分 */
.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 5px;
}

/* header上半部分左邊 */
.left-section {
  display: flex;
  align-items: center;
}

/* header上半部分右邊 */
.right-section {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.divider {
  margin: 0 10px;
  color: grey;
}

.website-logo {
  width: 55px;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.website-name {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  padding: 10px;
}

.login-container {
  position: relative;
  display: inline-block;
}

.login-trigger {
  text-decoration: none;
  color: #2c3544;
  font-size: 16px;
  padding: 10px 5px;
  cursor: pointer;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 135%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  min-width: 60px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 5px 0;
  margin: 0;
  z-index: 1001;
  border-radius: 4px;
}

.login-container:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  color: #333;
  padding: 8px 10px;
  text-decoration: none;
  display: block;
  font-size: 16px;
  transition: background 0.1s;
  text-align: center;
}

.dropdown-menu li a:hover {
  background-color: #f1f4f9;
  color: #007bff;
}

/* header下半部分-導覽列 */
.header-nav {
  background-color: rgb(237, 242, 253);
  padding: 5px 20px;
}

.nav-list {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow-x: auto;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list li a {
  font-size: 18px;
  color: rgb(44, 53, 68);
  text-decoration: none;
  border-right: grey solid 1px;
  padding: 0 10px;
  transition: color 0.1s;
}

.nav-list li:first-child a {
  padding-left: 0;
}

.nav-list li:last-child a {
  border-right: none;
}

.nav-list li a:hover {
  color: #007bff;
}

/* banner設定 */
.banner {
  width: 100%;
  height: 300px;
  background-color: #2c3e50;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin-top: 0;
}

.banner-img {
  width: 50%;
  height: auto;
  object-fit: cover;
}

/* 頁尾設定 */
footer hr {
  margin: 0;
}

footer .Social {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0px 0px; /* 幫頁尾留一點上下空間 */
}

footer .Social img {
  width: 30px;
  height: 30px;
  margin: 5px;
  transition: 0.2s;
}

footer .Social img:hover {
  transform: scale(1.2);
}

footer .Gmail {
  display: flex; /* 開啟彈性佈局 */
  justify-content: center; /* 水平置中 */
  margin: 0;
}

footer .Gmail a {
  text-decoration: none;
  color: #666;
  font-size: 18px;
  font-family: "MyIansui", serif;
}

footer .Gmail p {
  margin: 0;
  line-height: 1;
}

footer .Gmail img {
  width: 30px;
  height: auto;
  margin: 5px;
  transition: 0.2s;
}

footer .Gmail img:hover {
  transform: scale(1.3);
}

footer {
  background-color: rgb(237, 242, 253);
}

.content {
  flex: 1; /* 增加這行，它會把頁尾推到底部 */
}
