:root {
  --color-primary: #004b78;
  --color-secondary: #c40606;
  --color-tertiary: #0a6208;
  --text-primary: #2e2e2e;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
  line-height: 1.3;
}

body {
  background: #fff;
  color: var(--text-primary);
  font-family: 'Noto Sans TC', 'Microsoft JhengHei', '微軟正黑體', 'PingFang TC', sans-serif;
  font-size: 16px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin-inline: auto;
  padding-inline: 16px;
}

@media (max-width: 1399px) {
  .container {
    max-width: 1140px;
  }
}

@media (max-width: 1199px) {
  .container {
    max-width: 960px;
  }
}

@media (max-width: 991px) {
  .container {
    max-width: 720px;
  }
}

@media (max-width: 767px) {
  .container {
    max-width: 540px;
  }
}

@media (max-width: 575px) {
  .container {
    max-width: 100%;
  }
}

.header {
  margin-top: 20px;
}

@media (max-width: 575px) {
  .header {
    margin-top: 5px;
  }
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 30px 15px 26px;
}

.header .container img {
  width: 180px;
}

.header .status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 4px 16px;
  border: 2px solid #cacaca;
  border-radius: 30px;
  background: #fafafa;
  color: #be0000;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  white-space: nowrap;
}

.header .status::before {
  content: '';
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #be0000;
}

.announcement {
  background: var(--color-primary);
  color: #fff;
}

.announcement .text {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  padding-left: 5px;
}

.announcement .text img {
  width: 26px;
}

.announcement p {
  margin: 16px 0;
  font-size: 16px;
  font-weight: 400;
}

section {
  margin: 50px 0;
}

@media (max-width: 575px) {
  section {
    margin: 20px 0;
  }
}

h1.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

h2.title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 12px 12px;
  font-size: 22px;
  font-weight: 600;
}

h2.title img {
  width: 32px;
  opacity: 0.7;
}

h2.title.title {
  border-left: 5px solid var(--color-primary);
  background: #e0f2fe;
  color: var(--color-primary);
}

.notice {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}

.notice p {
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
}

.notice p:first-child {
  font-weight: 600;
}

.contact {
  margin: 24px 0;
  padding: 30px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #f7f7f7;
}

@media (max-width: 575px) {
  .contact {
    padding: 15px;
  }
}

.contact dl {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 15px;
}

.contact dt {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
}

.contact dd a {
  color: #0054b4;
  font-weight: 500;
  text-decoration: none;
}

.contact dd a:hover {
  text-decoration: underline;
}

.btn-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin: 30px auto;
}

@media (max-width: 575px) {
  .btn-group {
    gap: 10px;
  }
}

.btn-group a.btn {
  padding: 10px 30px;
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  text-align: center;
  width: auto;
}

@media (max-width: 575px) {
  .btn-group a.btn {
    width: 100%;
    padding: 10px 20px;
  }
}

.sign {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex-direction: column;
  margin: 50px 0;
}

@media (max-width: 575px) {
  .sign {
    margin: 30px 0;
  }
}

.sign p:last-child {
  opacity: 0.6;
  margin-top: 6px;
}

.footer {
  margin-top: 120px;
  padding: 35px 0;
  background: var(--color-primary);
}

.footer .copyright {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer .copyright img {
  width: 180px;
}

.footer .copyright span {
  color: #fff;
  font-size: 14px;
  text-align: right;
}

@media (max-width: 991px) {
  .footer .copyright {
    flex-direction: column;
    justify-content: center;
  }

  .footer .copyright span {
    text-align: center;
  }
}

@media (max-width: 575px) {
  .header .container img {
    width: 160px;
  }

  .header .status {
    font-size: 13px;
    font-weight: 500;
    padding: 4px 10px 4px 12px;
  }

  h2.title {
    font-size: 20px;
  }

  .footer {
    margin-top: 30px;
  }

  .footer .copyright img {
    width: 160px;
  }
}
