:root {
  --ink: #183e3c;
  --text: #364f4d;
  --muted: #5e716c;
  --green: #205e51;
  --paper: #fafaf6;
  --line: #dce3da;
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 16px/1.8 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--ink); }
a { color: inherit; text-underline-offset: 5px; }
button { font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, [tabindex="0"]:focus-visible {
  outline: 3px solid #b76b3e;
  outline-offset: 5px;
}
[hidden] { display: none !important; }
.container { width: min(1000px, calc(100% - 64px)); margin-inline: auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 16px;
  padding: 10px 20px;
  background: var(--ink);
  color: white;
  z-index: 100;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(250,250,246,.98);
}
.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 44px;
  height: 48px;
  background: var(--ink);
  color: #f6f4e9;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  border-radius: 12px 12px 4px 4px;
  font-size: 27px;
  line-height: 1.05;
  flex-shrink: 0;
}
.brand-mark span { font-size: 8px; letter-spacing: 3px; padding-left: 3px; margin-top: 3px; }
.brand-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.brand-name small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a { font-size: 14px; font-weight: 600; text-decoration: none; padding-block: 8px; }
.site-nav a:hover { text-decoration: underline; }
.site-nav .nav-login { border: 1px solid var(--ink); border-radius: 7px; padding: 8px 16px; }
.menu-toggle { display: none; }

/* Account information is the primary content. */
.page-intro { padding-block: 38px 24px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--green); }
h1 { font-size: clamp(30px, 4vw, 40px); line-height: 1.5; margin-top: 5px; }
.page-intro > p:last-child { font-size: 14px; color: var(--muted); margin-top: 6px; }
.section-label { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--green); }
.section-label span { font-size: 10px; letter-spacing: .08em; }
.account-section > .section-label { margin-bottom: 12px; }
.role-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.role-tab {
  min-height: 50px;
  padding: 10px 14px;
  border: 1px solid #c7d2c5;
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  font-size: 15px;
  font-weight: 700;
}
.role-tab[aria-selected="true"] { color: white; background: var(--ink); border-color: var(--ink); }
.role-tab:hover { border-color: var(--ink); }
.role-panel {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 36px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffefa;
}
.role-panel + .role-panel { margin-top: 16px; }
.js .role-panel { margin-top: 0; }
.account-role { font-size: 12px; font-weight: 600; color: var(--muted); }
.account-value { font-size: clamp(26px, 3.5vw, 34px); line-height: 1.4; margin-top: 4px; }
.account-hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.account-info { margin: 20px 0 0; }
.account-info > div { display: grid; grid-template-columns: 78px 1fr; gap: 12px; border-top: 1px solid var(--line); padding-block: 12px; }
.account-info dt { font-size: 12px; color: var(--muted); }
.account-info dd { margin: 0; font-size: 14px; color: var(--ink); }
.contact-note { font-size: 12px; color: var(--green); margin-top: 6px; }
.login-card { padding: 24px; border-radius: 12px; background: #eef1e6; text-align: center; }
.login-symbol { display: inline-grid; place-items: center; width: 36px; height: 36px; background: #dce5ce; border-radius: 50%; font-size: 21px; color: var(--green); }
.login-card h3 { font-size: 17px; margin-top: 10px; }
.domain { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 20px; border-radius: 7px; font-size: 14px; font-weight: 700; text-decoration: none; transition: background .2s; }
.button-primary { background: var(--ink); color: white; }
.button-primary:hover { background: var(--green); }
.login-card .button { width: 100%; margin-top: 18px; }
.login-note { font-size: 11px; color: var(--muted); margin-top: 9px; }
.no-script { font-size: 13px; margin-bottom: 16px; }

/* Detailed platform instructions are linked to the official site. */
.guide-section { padding: 28px 30px; margin-block: 24px 36px; background: #eef1e9; border: 1px solid var(--line); border-radius: 16px; }
.guide-header { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.guide-section h2 { font-size: 22px; line-height: 1.5; margin-top: 7px; }
.guide-section p:last-child { font-size: 13px; color: var(--muted); margin-top: 7px; }
.video-heading { font-size: 13px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.video-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.video-link { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.video-link:hover { border-color: var(--green); background: #fffefa; }
.play-icon { font-size: 12px; color: var(--green); }
.video-platform { margin-left: auto; font-size: 11px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.button-outline { border: 1px solid var(--ink); color: var(--ink); flex-shrink: 0; }
.button-outline:hover { background: #e0e7d8; }
.site-footer { padding-block: 22px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 11px; }
.footer-inner a { white-space: nowrap; }

@media (max-width: 760px) {
  html { scroll-padding-top: 96px; }
  .container { width: calc(100% - 36px); }
  .header-inner { min-height: 74px; flex-wrap: wrap; gap: 0; }
  .brand { gap: 9px; }
  .brand-mark { width: 36px; height: 41px; font-size: 23px; }
  .brand-name { font-size: 12px; }
  .brand-name small { font-size: 9px; }
  .site-nav { width: 100%; justify-content: space-between; gap: 12px; padding-block: 10px 16px; }
  .site-nav a { font-size: 12px; }
  .site-nav .nav-login { padding: 8px 12px; }
  .js .menu-toggle { display: flex; align-items: center; gap: 8px; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; font-size: 12px; min-height: 42px; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: flex; }
  .page-intro { padding-block: 26px 20px; }
  .page-intro > p:last-child { font-size: 13px; }
  .role-tab { font-size: 14px; }
  .role-panel { grid-template-columns: 1fr; gap: 20px; padding: 22px; }
  .account-info { margin-top: 16px; }
  .account-info > div { grid-template-columns: 65px 1fr; gap: 10px; }
  .account-info dd { font-size: 13px; }
  .login-card { padding: 18px; }
  .login-symbol { display: none; }
  .login-card h3 { margin-top: 0; font-size: 16px; }
  .login-card .button { margin-top: 12px; }
  .guide-section { padding: 22px; margin-block: 20px 26px; }
  .guide-header { flex-direction: column; align-items: stretch; gap: 18px; }
  .video-links { grid-template-columns: 1fr; }
  .video-link { padding-inline: 12px; font-size: 13px; }
  .guide-section h2 { font-size: 20px; }
  .footer-inner { flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
