/* 色彩與基本設定 */
:root {
  color-scheme: light;
  --ink: #182941;
  --muted: #617087;
  --blue: #2458cb;
  --line: #dfe5ed;
  --navy: #14263e;
  --surface: #fff
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  background: #f3f5f9;
  color: var(--ink);
  font: 1rem/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", Roboto, "Helvetica Neue", Arial, sans-serif
}

a {
  color: var(--blue);
  text-decoration: none
}

button,
input,
select,
textarea {
  font: inherit
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent
}

button {
  cursor: pointer
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #719bff;
  outline-offset: 3px
}

/* 共用內容寬度 */
.shell {
  width: calc(100% - 64px);
  max-width: 1600px;
  margin-inline: auto
}

.narrow {
  max-width: 1000px
}

/* 頁首與導覽 */
.topbar {
  background: var(--navy);
  color: #fff
}

.brandbar {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.15rem;
  font-weight: 650;
  color: inherit;
  line-height: 1.35
}

.brand small {
  display: block;
  font-size: .875rem;
  color: #b8c7dc;
  font-weight: 400;
  margin-top: 5px
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  flex-shrink: 0;
  border: 1px solid #58708d;
  border-radius: 11px;
  font-size: 1.4rem;
  background: #243c5b
}

.demo-tag {
  font-size: .875rem;
  padding: 5px 12px;
  border: 1px solid #536883;
  border-radius: 5px;
  white-space: nowrap;
  color: #dbe6f4
}

.navigation {
  background: #fff;
  border-bottom: 1px solid var(--line)
}

.navlinks {
  display: flex;
  gap: 32px;
  flex-wrap: wrap
}

.navlinks a {
  padding: 19px 2px 15px;
  color: #58677c;
  font-weight: 600;
  border-bottom: 3px solid transparent
}

.navlinks a:hover {
  color: var(--blue)
}

.navlinks a[aria-current] {
  color: var(--blue);
  border-color: var(--blue)
}

main {
  min-height: 65vh;
  padding-block: 24px 40px
}

.breadcrumb {
  color: var(--muted);
  font-size: .875rem;
  margin-bottom: 26px
}

.breadcrumb span {
  padding: 0 10px;
  color: #a5afbc
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px
}

.eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .13em;
  color: #687a94;
  margin: 0 0 7px
}

h1 {
  font-size: 1.85rem;
  line-height: 1.35;
  margin: 0;
  font-weight: 750;
  letter-spacing: .01em
}

h2 {
  font-size: 1.125rem;
  margin: 0
}

.subtle,
.muted {
  color: var(--muted)
}

.subtle {
  font-size: .875rem
}

.category-picker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .875rem;
  color: var(--muted);
  white-space: nowrap
}

.category-picker select {
  width: 200px;
  min-width: 190px;
  background: #fff
}

/* 工具列與按鈕 */
.toolbar,
.toolbar>div {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap
}

.toolbar {
  justify-content: space-between;
  margin: 0 0 18px
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 17px;
  border: 1px solid #ced7e3;
  border-radius: 7px;
  background: #fff;
  color: #344963;
  line-height: 1.4;
  font-weight: 600;
  white-space: nowrap
}

.button:hover {
  background: #edf2fa;
  border-color: #a2b3cd
}

.button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff
}

.button.primary:hover {
  background: #1946ac
}

.button.outline {
  border-color: #c4d3f2;
  color: #2458bb;
  background: #f7faff
}

.button.quiet {
  background: transparent
}

.button.danger {
  color: #b43b42;
  border-color: #f0d8da;
  background: #fff
}

.button.danger:hover {
  background: #fff0f1
}

.button.compact {
  padding: 8px 12px;
  font-size: .875rem
}

/* 內容面板 */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 4px 18px #172b4510;
  overflow: hidden
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  gap: 16px;
  flex-wrap: wrap
}

.count {
  display: inline-block;
  font-size: .875rem;
  color: #67758a;
  background: #eef2f7;
  border-radius: 5px;
  padding: 2px 9px;
  font-weight: 400;
  margin-left: 10px
}

/* 清單表格 */
.table-scroll {
  max-width: 100%;
  overflow: auto;
  overscroll-behavior-inline: contain
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 1040px
}

th,
td {
  padding: 16px 20px;
  border-bottom: 1px solid #e7ecf2;
  vertical-align: middle
}

thead th {
  font-weight: 600;
  font-size: .875rem;
  color: #5b6a7e;
  background: #f8fafd;
  white-space: nowrap;
  border-top: 1px solid var(--line)
}

tbody th {
  font-size: 1rem;
  font-weight: 600;
  min-width: 230px;
  max-width: 360px
}

tbody tr:hover {
  background: #f8faff
}

tbody tr:last-child>* {
  border-bottom: 0
}

.number {
  color: #7a8899;
  font-variant-numeric: tabular-nums;
  font-size: .875rem;
  width: 60px
}

.thumb {
  display: block;
  width: 144px;
  height: 48px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid #e3e8ee
}

.filename {
  display: block;
  font-size: .75rem;
  color: #738196;
  margin-top: 5px
}

.no-image {
  display: block;
  width: 144px;
  padding: 13px;
  background: #f0f3f7;
  color: #7b889a;
  text-align: center;
  border: 1px dashed #c9d2df;
  border-radius: 5px;
  font-size: .875rem
}

.order {
  width: 74px !important;
  min-width: 74px;
  text-align: center;
  font-variant-numeric: tabular-nums
}

.panel-note {
  border-top: 1px solid var(--line);
  padding: 14px 24px;
  margin: 0;
  color: #6a788b;
  font-size: .875rem;
  background: #fcfdff
}

.date {
  white-space: nowrap;
  font-size: .875rem;
  font-variant-numeric: tabular-nums
}

.link-title {
  display: block;
  color: var(--ink);
  max-width: 390px
}

.url {
  display: block;
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .75rem;
  color: #687e9d;
  font-weight: 400;
  margin-top: 4px
}

.empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--muted)
}

/* 表單欄位 */
input:not([type=checkbox]):not([type=file]),
select,
textarea {
  border: 1px solid #cbd5e2;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  min-height: 44px;
  width: 100%
}

input::placeholder,
textarea::placeholder {
  color: #8290a1
}

input[type=checkbox] {
  width: 20px;
  height: 20px;
  accent-color: var(--blue)
}

input[type=file] {
  max-width: 100%;
  font-size: .875rem
}

input::file-selector-button {
  padding: 10px 14px;
  margin-right: 12px;
  border: 1px solid #cbd5e2;
  background: #f3f6fb;
  border-radius: 6px;
  color: #304967;
  font: inherit;
  cursor: pointer
}

/* 編輯表單 */
.form-body {
  padding: 6px 30px 24px
}

.field {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  padding: 19px 0;
  border-bottom: 1px solid #edf0f5
}

.field>label,
.field>.field-label {
  font-weight: 600;
  padding-top: 10px
}

.field:last-child {
  border: 0
}

.field small {
  display: block;
  color: #65748a;
  font-size: .875rem;
  margin-top: 7px
}

.required {
  color: #b3424a;
  margin-left: 4px
}

.form-actions {
  display: flex;
  gap: 10px;
  padding: 22px 30px;
  background: #fafbfd;
  border-top: 1px solid var(--line)
}

.notice {
  padding: 14px 18px;
  background: #eaf0fc;
  color: #36547d;
  border-left: 3px solid #537eda;
  font-size: .875rem;
  margin-bottom: 20px;
  border-radius: 0 6px 6px 0
}

.preview {
  margin-top: 16px;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 3/1;
  border: 1px dashed #c4cfdd;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f4f6fa;
  color: #76849a;
  border-radius: 7px
}

.preview img {
  width: 100%;
  height: 100%;
  object-fit: contain
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-top: 9px
}

/* 頁尾 */
.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 28px;
  color: #758296;
  font-size: .875rem;
  border-top: 1px solid #dce3ed
}

.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 9;
  padding: 10px 20px;
  background: #fff
}

.skip:focus {
  top: 10px
}

[hidden] {
  display: none !important
}

/* 登入頁 */
.login-page {
  background: #edf1f7
}

.login-wrap {
  min-height: calc(100vh - 80px);
  display: grid;
  place-items: center;
  padding: 48px 20px
}

.login-card {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px #172b4514;
  border-radius: 16px;
  padding: 38px
}

.login-card .brand-icon {
  background: #14263e;
  color: #fff;
  margin-bottom: 22px
}

.login-card h1 {
  font-size: 1.75rem
}

.login-sub {
  color: #6c7b90;
  margin: 5px 0 25px;
  font-size: .875rem
}

.login-card label {
  display: block;
  font-weight: 600;
  margin: 18px 0 7px
}

.captcha-row {
  display: flex;
  gap: 12px;
  align-items: center
}

.captcha-code {
  padding: 7px 14px;
  border: 1px dashed #acbcd2;
  border-radius: 5px;
  background: #edf2fa;
  letter-spacing: .18em;
  font-size: 1.25rem;
  font-weight: 750;
  white-space: nowrap;
  color: #38547a
}

.login-actions {
  display: flex;
  gap: 10px;
  margin-top: 26px
}

.login-actions>* {
  flex: 1
}

.login-card .notice {
  margin: 22px 0 0
}

.login-footer {
  text-align: center;
  color: #78859a;
  font-size: .875rem;
  padding: 18px
}

/* 響應式調整 */
@media(min-width:1700px) {
  .shell {
    width: calc(100% - 96px)
  }
}

@media(max-width:1100px) {
  .table-scroll::before {
    content: "左右滑動表格，查看完整欄位與操作";
    display: block;
    position: sticky;
    left: 0;
    padding: 10px 16px;
    background: #edf3ff;
    color: #41618f;
    font-size: .875rem;
    border-top: 1px solid var(--line)
  }
}

@media(max-width:900px) {
  .shell {
    width: calc(100% - 32px)
  }

  .navlinks {
    gap: 0
  }

  .navlinks a {
    flex: 1 0 25%;
    text-align: center;
    padding: 13px 8px
  }

  .brandbar {
    min-height: 82px
  }

  .page-heading {
    align-items: flex-start
  }

  .field {
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 16px
  }
}

@media(max-width:600px) {
  .brand {
    font-size: .95rem;
    gap: 9px
  }

  .brand small {
    font-size: .75rem
  }

  .brand-icon {
    width: 36px;
    height: 36px
  }

  .demo-tag {
    font-size: .75rem;
    padding: 4px 7px
  }

  .navlinks a {
    font-size: .875rem;
    flex-basis: 25%
  }

  .breadcrumb {
    margin-bottom: 18px
  }

  .page-heading {
    display: block
  }

  .category-picker {
    margin-top: 18px;
    justify-content: space-between
  }

  .category-picker select {
    width: 65%
  }

  h1 {
    font-size: 1.6rem
  }

  .eyebrow {
    font-size: .75rem
  }

  .panel-heading {
    padding: 16px
  }

  .panel-heading h2 {
    font-size: 1rem
  }

  .count {
    margin-left: 5px
  }

  .toolbar {
    gap: 12px
  }

  .button {
    padding: 9px 13px
  }

  .field {
    display: block;
    padding: 16px 0
  }

  .field>label,
  .field>.field-label {
    display: block;
    padding: 0;
    margin-bottom: 9px
  }

  .form-body {
    padding: 0 20px 15px
  }

  .form-actions {
    padding: 18px 20px
  }

  .panel-note {
    padding: 13px 16px
  }

  .footer {
    display: block;
    font-size: .75rem
  }

  .footer span {
    display: block
  }

  .login-card {
    padding: 28px 24px
  }

  .login-wrap {
    padding: 24px 16px
  }

  .login-card h1 {
    font-size: 1.6rem
  }

  .subtle {
    display: block;
    margin-top: 10px
  }
}

/* 後台主題與元件調整 */
:root {
  --ink: #17212f;
  --muted: #56657a;
  --blue: #2563c7;
  --line: #dce2ea;
  --navy: #072c2c;
  --surface: #fff;
  --orange: #e85d26;
  --purple: #7254b3;
  --teal: #0d7c78;
  --green: #26734d;
  --gold: #b66a10;
}

html {
  font-size: 18px
}

body {
  background: #f3f6f8;
  color: var(--ink);
  line-height: 1.65;
  letter-spacing: .01em
}

.topbar {
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid #d8e0e7;
  position: relative
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: #d8942e
}

.brandbar {
  min-height: 104px
}

.brand {
  font-size: 1.22rem
}

.brand small {
  color: #69768a;
  font-size: .86rem
}

.brand-icon {
  background: var(--navy);
  border: 0;
  color: #fff;
  border-radius: 12px;
  box-shadow: inset -8px -8px 0 #0e6664
}

.navigation {
  position: sticky;
  top: 0;
  z-index: 4;
  box-shadow: 0 5px 18px rgba(21, 42, 61, .07)
}

.navlinks {
  gap: 8px;
  padding-block: 10px
}

.navlinks a {
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: .94rem;
  transition: background-color 150ms, color 150ms, box-shadow 150ms
}

.navlinks a:nth-child(1) {
  --nav-color: #0d7c78;
  --nav-soft: #e5f5f3
}

.navlinks a:nth-child(2) {
  --nav-color: #2563c7;
  --nav-soft: #e9f1ff
}

.navlinks a:nth-child(3) {
  --nav-color: #d56a19;
  --nav-soft: #fff0e4
}

.navlinks a:nth-child(4) {
  --nav-color: #7254b3;
  --nav-soft: #f1ebfb
}

.navlinks a:nth-child(5) {
  --nav-color: #c34761;
  --nav-soft: #fcebef
}

.navlinks a:nth-child(6) {
  --nav-color: #26734d;
  --nav-soft: #e8f5ed
}

.navlinks a:nth-child(7) {
  --nav-color: #5d6878;
  --nav-soft: #edf0f4
}

.navlinks a:hover {
  background: var(--nav-soft);
  color: var(--nav-color)
}

.navlinks a[aria-current] {
  background: var(--nav-soft);
  color: var(--nav-color);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nav-color) 22%, transparent)
}

main {
  padding-block: 32px 52px
}

.breadcrumb {
  font-size: .9rem;
  margin-bottom: 30px
}

.page-heading {
  border-left: 5px solid var(--teal);
  padding-left: 20px;
  margin-bottom: 28px
}

.page-heading h1 {
  font-size: 2rem;
  text-wrap: balance
}

.eyebrow {
  font-size: .76rem;
  color: var(--teal)
}

.subtle,
.category-picker {
  font-size: .9rem
}

.toolbar {
  margin-bottom: 22px
}

.button {
  min-height: 48px;
  padding: 10px 19px;
  border-radius: 10px;
  font-size: .94rem;
  transition: background-color 150ms, border-color 150ms, box-shadow 150ms, transform 150ms
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(26, 57, 92, .1)
}

.button.primary {
  background: var(--navy);
  border-color: var(--navy)
}

.button.primary:hover {
  background: #0b4746
}

.button.outline {
  background: #eef4ff;
  border-color: #b9cdf3;
  color: #1f56aa
}

.button.danger {
  background: #fff7f7;
  color: #b32940;
  border-color: #efc8cf
}

.panel {
  border-radius: 16px;
  border-color: #dce3ea;
  box-shadow: 0 14px 36px rgba(29, 52, 74, .08)
}

.panel-heading {
  padding: 24px 28px;
  background: #f7fafc
}

.panel-heading h2 {
  font-size: 1.15rem
}

.count {
  font-size: .86rem
}

table {
  font-size: .94rem
}

th,
td {
  padding: 18px 22px
}

thead th {
  font-size: .82rem;
  background: #eef3f7;
  color: #42536a
}

tbody th {
  font-size: 1rem
}

.number,
.date {
  font-size: .88rem
}

.filename {
  font-size: .72rem
}

.thumb {
  width: 162px;
  height: 54px;
  border-radius: 7px
}

.order {
  font-size: 1rem
}

.panel-note {
  font-size: .88rem;
  padding: 16px 28px;
  background: #f8fafc
}

.field {
  grid-template-columns: 200px minmax(0, 1fr);
  padding: 22px 0
}

.field>label,
.field>.field-label {
  font-size: .98rem
}

input:not([type=checkbox]):not([type=file]),
select,
textarea {
  min-height: 50px;
  font-size: 1rem;
  border-radius: 9px
}

.field small {
  font-size: .86rem
}

.form-body {
  padding: 10px 34px 28px
}

.form-actions {
  padding: 24px 34px
}

.notice {
  font-size: .9rem;
  background: #edf6f5;
  color: #234f4d;
  border-left-color: var(--teal);
  padding: 16px 20px
}

.page-heading,
.notice {
  border-left-color: var(--section-color, var(--teal))
}

.eyebrow {
  color: var(--section-color, var(--teal))
}

body[data-section="recent"] {
  --section-color: #0d7c78
}

body[data-section="education"] {
  --section-color: #2563c7
}

body[data-section="sports"] {
  --section-color: #d56a19
}

body[data-section="contest"] {
  --section-color: #7254b3
}

body[data-section="activity"] {
  --section-color: #c34761
}

body[data-section="resources"] {
  --section-color: #26734d
}

body[data-section="projects"] {
  --section-color: #5d6878
}

body[data-section] .button.primary {
  background: var(--section-color);
  border-color: var(--section-color)
}

body[data-section] .button.primary:hover {
  background: color-mix(in srgb, var(--section-color) 86%, black)
}

.footer {
  font-size: .86rem;
  padding-block: 28px
}

.login-page {
  background: #edf2f5
}

.login-card {
  max-width: 520px;
  border-radius: 22px;
  padding: 44px;
  box-shadow: 0 30px 80px rgba(7, 44, 44, .15);
  border-top: 6px solid var(--orange)
}

.login-card h1 {
  font-size: 2rem
}

.login-card label {
  font-size: .98rem
}

.login-sub {
  font-size: .92rem
}

.login-footer {
  font-size: .86rem
}

@media(max-width:900px) {
  html {
    font-size: 17px
  }

  .navlinks a {
    flex: 1 0 calc(25% - 8px);
    padding: 11px 9px
  }

  .field {
    grid-template-columns: 170px minmax(0, 1fr)
  }
}

@media(max-width:600px) {
  html {
    font-size: 17px
  }

  .brand {
    font-size: 1rem
  }

  .brand small {
    font-size: .78rem
  }

  .brandbar {
    min-height: 90px
  }

  .navlinks a {
    font-size: .9rem;
    flex-basis: calc(50% - 8px)
  }

  .page-heading {
    padding-left: 14px
  }

  .page-heading h1 {
    font-size: 1.65rem
  }

  .category-picker select {
    width: 68%
  }

  .panel-heading h2 {
    font-size: 1.08rem
  }

  .button {
    font-size: .95rem
  }

  .field {
    display: block
  }

  .field>label,
  .field>.field-label {
    font-size: 1rem
  }

  .form-body {
    padding: 2px 20px 18px
  }

  .login-card {
    padding: 32px 24px
  }

  .login-card h1 {
    font-size: 1.75rem
  }
}

@media(prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important
  }
}

/* 字體與操作區 */
html {
  font-size: 20px
}

.topbar::before {
  inset: 0 0 auto;
  width: 100%;
  height: 5px;
  background: var(--navy)
}

.brand {
  position: relative;
  padding-left: 18px;
  font-size: 1.28rem
}

.brand::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 5px;
  border-radius: 4px;
  background: #d8942e
}

.brand small {
  font-size: .9rem
}

.brandbar {
  min-height: 112px
}

.navlinks a {
  font-size: .98rem;
  font-weight: 650
}

.breadcrumb {
  font-size: .94rem
}

.page-heading {
  padding: 22px 24px;
  border-left-width: 7px;
  border-radius: 0 14px 14px 0;
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px #e3e9ef
}

.page-heading h1 {
  font-size: 2.08rem
}

.eyebrow {
  font-size: .8rem
}

.subtle,
.category-picker {
  font-size: .94rem
}

.toolbar {
  padding: 16px 18px;
  border: 1px solid #dce3ea;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(29, 52, 74, .05)
}

.button {
  font-size: .98rem;
  min-height: 52px;
  padding: 11px 20px
}

.button.compact {
  font-size: .92rem;
  min-height: 48px;
  padding: 9px 15px
}

.panel-heading h2 {
  font-size: 1.2rem
}

.count {
  font-size: .9rem
}

table {
  font-size: .98rem
}

thead th {
  font-size: .88rem
}

tbody th {
  font-size: 1.02rem
}

.number,
.date {
  font-size: .92rem
}

.panel-heading {
  border-bottom: 4px solid color-mix(in srgb, var(--section-color, var(--teal)) 26%, #e5eaf0)
}

tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--section-color, var(--teal)) 3%, white)
}

.panel-note {
  font-size: .92rem;
  border-left: 5px solid var(--section-color, var(--teal))
}

.order-hint {
  display: inline-block;
  margin-left: 14px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 500
}

.order-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  background: #f8fafc;
  color: var(--muted);
  font-size: .92rem
}

.filename {
  font-size: .78rem
}

.field small {
  font-size: .9rem
}

.notice {
  font-size: .94rem
}

.field>label,
.field>.field-label {
  font-size: 1rem
}

.footer {
  font-size: .9rem
}

.footer a,
.login-footer a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px
}

.footer a:hover,
.login-footer a:hover {
  text-decoration-thickness: 2px
}

.login-page {
  min-height: 100vh;
  background: #071e2a url("../images/hero-login.jpg") center/cover fixed no-repeat;
  color: #17212f
}

.login-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(4, 23, 34, .12);
  pointer-events: none
}

.login-wrap {
  position: relative;
  z-index: 1;
  place-items: center start;
  width: min(1600px, calc(100% - 80px));
  margin-inline: auto;
  padding: 52px 0
}

.login-card {
  max-width: 560px;
  margin-left: clamp(0px, 4vw, 70px);
  padding: 50px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-top: 7px solid #d8942e;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 34px 90px rgba(1, 18, 30, .38);
  backdrop-filter: blur(8px)
}

.login-card h1 {
  font-size: 2.1rem
}

.login-card label {
  font-size: 1rem
}

.login-sub {
  font-size: .96rem
}

.captcha-code {
  font-size: 1.28rem;
  padding: 9px 16px
}

.login-footer {
  position: fixed;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  color: #fff;
  background: rgba(4, 23, 34, .62);
  backdrop-filter: blur(5px)
}

@media(max-width:900px) {
  html {
    font-size: 18px
  }

  .brandbar {
    min-height: 100px
  }

  .login-wrap {
    width: calc(100% - 44px);
    place-items: center
  }

  .login-card {
    margin-left: 0
  }

  .page-heading h1 {
    font-size: 1.9rem
  }
}

@media(max-width:600px) {
  html {
    font-size: 18px
  }

  .brand {
    padding-left: 14px;
    font-size: 1.06rem
  }

  .brand small {
    font-size: .82rem
  }

  .brandbar {
    min-height: 92px
  }

  .page-heading {
    padding: 18px
  }

  .page-heading h1 {
    font-size: 1.72rem
  }

  .navlinks a {
    font-size: .94rem
  }

  .toolbar {
    padding: 13px
  }

  .button {
    font-size: .98rem
  }

  .login-page {
    background-position: 66% center
  }

  .login-wrap {
    width: calc(100% - 28px);
    padding: 28px 0 72px
  }

  .login-card {
    padding: 34px 24px
  }

  .login-card h1 {
    font-size: 1.8rem
  }

  .login-footer {
    font-size: .8rem
  }
}

@media(max-width:600px) {
  .order-hint {
    display: block;
    margin: 5px 0 0;
    line-height: 1.55
  }

  .order-actions {
    align-items: stretch;
    flex-direction: column
  }

  .order-actions .button {
    width: 100%
  }
}

/* Banner 圖片 */
.topbar {
  overflow: hidden;
  color: #fff;
  border-bottom: 0;
  background: #0b5364 url("../images/hero-login.jpg") 78% 47%/cover no-repeat;
  box-shadow: 0 8px 24px rgba(5, 31, 45, .14)
}

.topbar::before {
  height: 6px;
  background: #d8942e
}

.brand {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .24)
}

.brand::before {
  background: #e5a23a;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08)
}

.brand small {
  color: #d5e6e9
}

@media(max-width:600px) {
  .topbar {
    background-position: 70% center
  }

  .brandbar {
    min-height: 88px
  }
}