/* -------------- layout --------------*/
@import url("https://fonts.googleapis.com/css2?family=Chiron+Hei+HK:ital,wght@0,200..900;1,200..900&family=Chiron+Sung+HK:ital,wght@0,200..900;1,200..900&family=Zen+Maru+Gothic&display=swap");
.clearfloat {
  zoom: 1;
}
.clearfloat:before, .clearfloat:after {
  content: "";
  display: block;
}
.clearfloat:after {
  clear: both;
}

.intro-wrapper p,
.intro-wrapper h1,
.intro-wrapper h2,
.intro-wrapper h3,
.intro-wrapper h4,
.intro-wrapper h5,
.intro-wrapper h6 {
  margin: 0;
}
.intro-wrapper ul,
.intro-wrapper ol {
  padding-left: 0;
  margin: 0;
}
.intro-wrapper ul {
  list-style: none;
}
.intro-wrapper ol {
  padding-left: 20px;
}

aside ul {
  list-style: none;
  margin-block: 0;
  padding-left: 0;
}

:root {
  --color-font: #000000;
  --color-fontLight: #555555;
  --color-white: #fff;
  --color-grey: #e9eaed;
  --color-border: #e5e5e5;
  --color-field-bg: #f7f7f7;
  --color-primary-1: #ffc134;
  --color-primary-2: #fda4b0;
  --color-primary-3: #92dedc;
  --color-primary-4: #a0d3ff;
  --color-primary-5: #b5a8e7;
}

* {
  box-sizing: border-box;
  outline: none;
  word-break: break-word;
  text-spacing-trim: trim-start;
}

html {
  font-size: 1rem;
}
html.minFZ {
  font-size: 0.875rem;
}
html.maxFZ {
  font-size: 1.125rem;
}

html,
body {
  max-width: 1920px;
  width: 100%;
  padding: 0;
  margin: 0 auto;
  height: 100%;
}

body {
  font-family: "Noto Sans TC","Microsoft JhengHei",system-ui,Segoe UI,Roboto,sans-serif;
  -webkit-text-size-adjust: 100%;
}

#mainArea {
  position: relative;
}

.hide {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 12px;
  transform: translateY(-150%);
  padding: 12px 16px;
  background: var(--color-font);
  color: var(--color-white);
  font-weight: bold;
  z-index: 1000;
}
.skip-link:focus, .skip-link:focus-visible {
  transform: translateY(12px);
}

.accesskey-link {
  position: absolute;
  top: 5px;
  left: 5px;
  color: var(--color-white);
  width: 20px;
  text-align: center;
  z-index: 10;
  opacity: 0;
}
.accesskey-link:hover, .accesskey-link:focus {
  color: var(--color-white) !important;
  background: var(--color-font);
  opacity: 1;
}

:where(button, a, input, [tabindex], textarea, select) {
  --color-line: var(--color-font);
}
:where(button, a, input, [tabindex], textarea, select):focus-visible, :where(button, a, input, [tabindex], textarea, select):hover {
  border-color: var(--color-line);
  outline: 3px dashed var(--color-line) !important;
  outline-offset: 2px !important;
}

.unreset p {
  color: var(--color-font);
  line-height: 1.7;
}
.unreset p:first-child {
  margin-top: 0;
}
.unreset img {
  display: block;
  max-width: 100%;
  height: auto;
}

.identity-link {
  display: none;
}

.swiper-btn {
  width: 40px;
  height: 60px;
  position: absolute;
  top: 50%;
  background: var(--color-grey);
  border-radius: 10px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  padding: 0;
  z-index: 2;
}
.swiper-btn:hover, .swiper-btn:focus {
  background: var(--color-font);
}
.swiper-btn:hover i, .swiper-btn:focus i {
  color: var(--color-white);
}
.swiper-btn i {
  color: var(--color-font);
  font-size: 1rem;
}
.swiper-btn.swiper-button-disabled {
  display: none;
}

.tag-list {
  display: flex;
  gap: 10px;
}
.tag-list .tag {
  border-radius: 10px;
  background: var(--color-primary-3);
  color: var(--color-font);
  font-size: 0.9375rem;
  padding: 10px 20px;
  margin: 0;
  line-height: 1.2;
}
.tag-list .tag-top {
  background: var(--color-primary-4);
  color: var(--color-white);
}
.tag-list .tag-grey {
  background: var(--color-grey);
  color: var(--color-font);
}

.info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
}
.info-row .info-data {
  align-items: center;
  display: flex;
  gap: 5px;
  margin: 0;
}
.info-row .info-data i {
  color: var(--color-primary-1);
  font-size: 0.875rem;
  flex-shrink: 0;
}
.info-row .info-data .info {
  color: var(--color-fontLight);
  font-size: 0.9375rem;
  line-height: 1.2;
}

.flag-sec {
  background: var(--color-field-bg);
  border-radius: 30px;
  padding-inline: clamp(20px, 2.5vw, 40px);
}
.flag-sec.bg-white {
  background: var(--color-white);
}
.flag-sec .flag-sec-title {
  border-radius: 5px 5px 15px 15px;
  background: var(--color-primary-1);
  color: var(--color-font);
  display: inline-block;
  font-size: clamp(1.25rem, 1.5vw, 1.5rem);
  font-family: "Chiron Sung HK", serif;
  font-weight: bold;
  letter-spacing: 1px;
  line-height: 1.2;
  padding: 15px 30px;
  margin-top: -5px;
  margin-bottom: 0;
}
.flag-sec .flag-sec-title.dark-mode {
  background: var(--color-primary-4);
  color: var(--color-white);
}
.flag-sec .flag-content {
  padding-block: 20px;
}
.flag-sec .related-item {
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  padding: clamp(15px, 1vw, 15px) clamp(10px, 1.5vw, 20px);
  gap: 5px 10px;
}
.flag-sec .related-item + .related-item {
  border-top: 1px solid var(--color-border);
}
.flag-sec .related-item:hover .title, .flag-sec .related-item:focus .title {
  color: var(--color-primary-1);
}
.flag-sec .related-item:hover .title .link-icon, .flag-sec .related-item:focus .title .link-icon {
  background: var(--color-primary-1);
}
.flag-sec .related-item:hover .title .link-icon i, .flag-sec .related-item:focus .title .link-icon i {
  font-size: 0.625rem;
  color: var(--color-white);
}
.flag-sec .related-item .title {
  color: var(--color-font);
  display: flex;
  gap: 10px;
  font-size: clamp(1.0625rem, 1.3vw, 1.25rem);
  margin: 0;
  line-height: 1.2;
}
.flag-sec .related-item .title .link-icon {
  width: 24px;
  height: 24px;
  background: transparent;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.flag-sec .related-item .title i {
  color: var(--color-primary-1);
  font-size: clamp(1rem, 1vw, 1.125rem);
}

aside .aside-menu {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: clamp(20px, 2.5vw, 40px);
}
aside .aside-menu a {
  border-radius: 30px;
  background: var(--color-grey);
  color: var(--color-font);
  display: block;
  font-size: clamp(1rem, 1.3vw, 1.1875rem);
  text-align: center;
  text-decoration: none;
  padding: 15px;
  min-width: 150px;
  line-height: 1.2;
}
aside .aside-menu a[aria-current=true] {
  background: var(--color-primary-4);
  color: var(--color-white);
}

/* -------------- layout RWD --------------*/
@media (max-width: 1320px) {
  .tag-list .tag {
    border-radius: 5px;
    padding: 8px 12px;
  }
}
@media (max-width: 1024px) {
  .swiper-btn {
    width: 30px;
    height: 40px;
  }
  .swiper-btn i {
    font-size: 0.875rem;
  }
  .flag-sec .related-item {
    flex-direction: column;
  }
}
@media (max-width: 960px) {
  aside .aside-menu a {
    min-width: 120px;
  }
}
@media (max-width: 768px) {
  .flag-sec .flag-sec-title {
    padding: 11px 20px;
  }
}
@media (max-width: 640px) {
  .swiper-btn {
    background: var(--color-primary-1);
  }
  .info-row {
    flex-direction: column;
  }
  .flag-sec {
    margin-inline: -25px;
  }
  .flag-sec .flag-content {
    padding-top: 10px;
  }
  .flag-sec .related-item {
    padding-inline: 0;
  }
  aside .aside-menu {
    gap: 10px;
  }
  aside .aside-menu a {
    font-size: 0.9375rem;
    padding: 10px 13px;
    min-width: inherit;
  }
}

/* -------------- intro (from index-1.html) --------------*/
.intro-wrapper {
  background: url(../images/bg-intro-top.png) no-repeat left 64% top, url(../images/bg-intro-bottom.png) no-repeat bottom center;
  padding: clamp(20px, 3vw, 40px);
  padding-top: clamp(30px, 4vw, 80px);
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr min(960px, 60vw);
  gap: 30px 20px;
}
.intro-wrapper .main-sec {
  max-width: 640px;
  width: 100%;
  margin-inline: auto;
  padding-top: clamp(40px, 8vw, 150px);
}
.intro-wrapper .head-sec .sub-title {
  color: var(--color-fontLight);
  font-size: clamp(0.875rem, 1vw, 1.125rem);
  font-weight: 300;
  margin-bottom: 15px;
  letter-spacing: -0.3px;
}
.intro-wrapper .head-sec .main-title {
  color: var(--color-font);
  font-size: clamp(1.875rem, 2.5vw, 3rem);
  font-family: "Chiron Sung HK", serif;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.4;
}
.intro-wrapper .head-sec .main-title span {
  display: inline-block;
}
.intro-wrapper .active-row {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}
.intro-wrapper .active-row .fz-sec {
  background: #e9eaed;
  border-radius: 30px;
  display: flex;
  align-items: center;
  padding: 8px;
  padding-left: 25px;
}
.intro-wrapper .active-row .fz-sec p {
  font-family: "Chiron Sung HK", serif;
  font-weight: bold;
}
.intro-wrapper .active-row .fz-list {
  display: flex;
  gap: 10px;
}
.intro-wrapper .active-row .fz-list button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--color-white);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 0.875rem;
}
.intro-wrapper .active-row .fz-list button.fz-small {
  font-size: 0.75rem;
}
.intro-wrapper .active-row .fz-list button.fz-large {
  font-size: 1rem;
}
.intro-wrapper .active-row .fz-list button[aria-current=true] {
  background: var(--color-font);
}
.intro-wrapper .active-row .fz-list button[aria-current=true] span {
  color: var(--color-white);
}
.intro-wrapper .active-row .fz-list button span {
  color: var(--color-font);
  font-family: "Chiron Sung HK", serif;
  font-weight: bold;
  display: block;
  text-align: center;
  width: 100%;
}
.intro-wrapper .logo {
  display: block;
  height: 50px;
}
.intro-wrapper .talk-row {
  display: grid;
  grid-template-columns: 23px 1fr;
  gap: 15px;
  padding-top: clamp(40px, 9vw, 180px);
}
.intro-wrapper .talk-row .ic-talk {
  display: block;
  width: 100%;
}
.intro-wrapper .talk-item {
  max-width: 530px;
}
.intro-wrapper .talk-item .des {
  color: var(--color-fontLight);
  font-size: clamp(1rem, 1vw, 1.125rem);
  font-weight: 300;
  line-height: 1.5;
}
.intro-wrapper .talk-item .author {
  color: var(--color-font);
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: bold;
  padding-left: 90px;
  position: relative;
  margin-top: 15px;
}
.intro-wrapper .talk-item .author:before {
  position: absolute;
  top: 10px;
  left: 0;
  width: 75px;
  height: 1px;
  background: var(--color-font);
  content: "";
}
.intro-wrapper .link-sec {
  --border-radius: 30px;
  --gap: 30px;
}
.intro-wrapper .link-sec .top-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}
.intro-wrapper .link-sec .bottom-row {
  margin-top: var(--gap);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.intro-wrapper .link-item {
  display: block;
  text-decoration: none;
}
.intro-wrapper .link-item:hover .btn-link, .intro-wrapper .link-item:focus-visible .btn-link {
  background: var(--color-font);
  border-color: var(--color-font);
  color: var(--color-white);
}
.intro-wrapper .link-item .limit-box {
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
}
.intro-wrapper .link-item .img-box img {
  display: block;
  width: 100%;
}
.intro-wrapper .link-item .item-main {
  position: absolute;
  bottom: 0;
  left: 0;
  background: var(--color-main);
  padding-bottom: 35px;
  padding-top: 1px;
  width: 100%;
}
.intro-wrapper .link-item .item-title {
  color: var(--color-font);
  font-size: clamp(1.375rem, 1.5vw, 1.75rem);
  font-family: "Chiron Sung HK", serif;
  font-weight: bold;
  text-align: center;
  margin-top: 20px;
}
.intro-wrapper .link-item .sub-title {
  color: var(--color-font);
  font-size: clamp(0.875rem, 1vw, 1rem);
  font-weight: 500;
  text-transform: uppercase;
  margin-top: 10px;
  position: relative;
  display: flex;
  justify-content: center;
}
.intro-wrapper .link-item .sub-title:before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-font);
  content: "";
  opacity: 0.2;
}
.intro-wrapper .link-item .sub-title span {
  background: var(--color-main);
  color: rgba(0, 0, 0, 0.3);
  padding-inline: 15px;
  position: relative;
}
.intro-wrapper .link-item .sub-title p {
  background: var(--color-main);
  position: relative;
}
.intro-wrapper .link-item .btn-link {
  background: var(--color-white);
  border: 2px solid var(--color-main);
  border-radius: 30px;
  color: var(--color-fontLight);
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  line-height: 1;
  margin-inline: auto;
  margin-top: -20px;
  padding: 10px;
  position: relative;
  width: 140px;
}
.intro-wrapper .school-item {
  --color-main: var(--color-primary-1);
}
.intro-wrapper .student-item {
  --color-main: var(--color-primary-2);
}
.intro-wrapper .visitor-item {
  --color-main: var(--color-primary-3);
}
.intro-wrapper .committee-item {
  --color-main: var(--color-primary-4);
}
.intro-wrapper .paper-item {
  --color-main: var(--color-primary-5);
}

/* -------------- intro RWD --------------*/
@media (max-width: 1320px) {
  .intro-wrapper {
    grid-template-columns: 1fr;
  }
  .intro-wrapper .main-sec {
    padding-top: 0;
    max-width: 100%;
  }
  .intro-wrapper .talk-row {
    grid-template-columns: 20px 1fr;
    padding-top: 0;
    margin-top: 25px;
  }
  .intro-wrapper .talk-item {
    max-width: 100%;
  }
  .intro-wrapper .link-item .sub-title span {
    padding-inline: 5px;
  }
}
@media (max-width: 768px) {
  .intro-wrapper .head-sec .main-title span {
    display: inline;
  }
  .intro-wrapper .link-sec .top-row,
  .intro-wrapper .link-sec .bottom-row {
    justify-items: center;
    grid-template-columns: repeat(2, 1fr);
  }
  .intro-wrapper .link-item {
    max-width: 360px;
    width: 100%;
  }
  .intro-wrapper .link-item .limit-box {
    height: 300px;
  }
  .intro-wrapper .committee-item .img-box {
    transform: translateY(-25px);
  }
}
@media (max-width: 640px) {
  .intro-wrapper .head-sec .sub-title {
    margin-bottom: 10px;
  }
  .intro-wrapper .head-sec .main-title {
    font-size: 1.625rem;
  }
  .intro-wrapper .active-row {
    align-items: flex-start;
    flex-direction: column-reverse;
    margin-top: 10px;
  }
  .intro-wrapper .talk-item .des {
    font-size: 0.875rem;
  }
  .intro-wrapper .talk-item .author {
    padding-left: 40px;
    font-size: 0.875rem;
    margin-top: 10px;
  }
  .intro-wrapper .talk-item .author:before {
    width: 30px;
  }
  .intro-wrapper .link-sec .top-row,
  .intro-wrapper .link-sec .bottom-row {
    grid-template-columns: 1fr;
  }
  .intro-wrapper .link-item .item-title {
    margin-top: 15px;
  }
  .intro-wrapper .link-item .sub-title {
    margin-top: 8px;
  }
}