:root {
  --blue: #2478be;
  --deep: #1b5e96;
  --pink: #e73079;
  --yellow: #fff9b1;
  --aqua: #d4ecf0;
  --ink: #1a1a1a;
  --line: #c9c9cb;
  --muted: #617184;
  --bg: #f5f9fb;
  --green: #157f64;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: #fff;
  font-family: "Microsoft JhengHei", "Noto Sans TC", Arial, sans-serif;
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
.wrap {
  width: min(1120px, calc(100% - 36px));
  margin-inline: auto;
}
.top-ribbon {
  height: 9px;
  display: flex;
}
.top-ribbon i:nth-child(1) {
  width: 38%;
  background: var(--pink);
}
.top-ribbon i:nth-child(2) {
  width: 34%;
  background: var(--blue);
}
.top-ribbon i:nth-child(3) {
  flex: 1;
  background: var(--yellow);
}
.site-header {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--deep);
  text-decoration: none;
}
.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}
.brand b,
.brand small {
  display: block;
}
.brand b {
  font-size: 18px;
  letter-spacing: 1px;
}
.brand small {
  font-size: 10px;
  color: #728092;
  letter-spacing: 1px;
}
.staff-link {
  padding: 10px 16px;
  border: 1px solid #aad3e8;
  border-radius: 999px;
  color: var(--deep);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}
.hero {
  position: relative;
  overflow: hidden;
  background: var(--blue);
  color: #fff;
}
.hero:after {
  content: "";
  position: absolute;
  top: -50px;
  right: 5%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--yellow);
  opacity: 0.96;
}
.hero-inner {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 50px;
  align-items: center;
  padding-block: 58px;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 3px;
}
.hero h1 {
  margin: 0;
  font-size: 52px;
  line-height: 1.12;
  font-weight: 900;
}
.hero h1 span {
  color: #fff;
}
.hero-copy {
  max-width: 660px;
  margin: 20px 0 0;
  font-size: 19px;
  line-height: 1.75;
  font-weight: 700;
  color: #effaff;
}
.site-badge {
  display: inline-flex;
  margin: 18px 0 0;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 900;
}
.hero-gift {
  min-width: 0;
  padding: 25px 28px;
  border-radius: 25px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 16px 35px rgba(13, 65, 103, 0.2);
}
.hero-gift span {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 9px;
  background: var(--pink);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.hero-gift b {
  display: block;
  margin-top: 8px;
  color: var(--pink);
  font-size: 25px;
}
.hero-gift p {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 800;
}
.hero-gift hr {
  border: 0;
  border-top: 1px solid #d8e2e8;
  margin: 17px 0;
}
.service-strip {
  background: var(--aqua);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  padding-block: 22px;
}
.service-grid div {
  padding: 0 22px;
  border-left: 1px solid #9cc7d4;
}
.service-grid div:first-child {
  border-left: 0;
  padding-left: 0;
}
.service-grid small,
.service-grid strong {
  display: block;
}
.service-grid small {
  color: var(--deep);
  font-size: 12px;
  font-weight: 900;
}
.service-grid strong {
  margin-top: 4px;
  font-size: 17px;
  line-height: 1.35;
}
.courses-section {
  padding: 52px 0;
  background: #fff;
}
.courses-heading {
  text-align: center;
}
.courses-heading p {
  margin: 0;
  color: var(--pink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 2px;
}
.courses-heading h2 {
  margin: 5px 0 8px;
  color: var(--deep);
  font-size: 31px;
}
.courses-heading span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.course-card {
  position: relative;
  overflow: hidden;
  padding: 25px;
  border: 1px solid #dce7ec;
  border-radius: 22px;
  background: #f7fbfc;
}
.course-card i {
  position: absolute;
  top: 13px;
  right: 17px;
  color: #cce3ec;
  font: 900 31px/1 "Segoe UI", Arial, sans-serif;
  font-style: normal;
}
.course-card h3 {
  position: relative;
  margin: 0 0 18px;
  color: var(--deep);
  font-size: 22px;
}
.course-card div {
  display: flex;
  gap: 9px;
}
.course-card b {
  flex: 1;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--aqua);
  color: var(--deep);
  text-align: center;
  font-size: 14px;
}
.course-card b:last-child {
  background: #fbe3ed;
  color: #a51d52;
}
.course-note {
  margin: 22px 0 0;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--yellow);
  text-align: center;
  font-size: 14px;
  font-weight: 900;
}
.content {
  display: grid;
  grid-template-columns: 1.45fr 0.75fr;
  gap: 34px;
  padding-block: 56px;
}
.section-heading,
.voucher-title {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.section-heading > span,
.voucher-title > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 42px;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  font-weight: 900;
}
.section-heading h2,
.voucher-title h2 {
  margin: 0;
  color: var(--deep);
  font-size: 27px;
}
.section-heading p,
.voucher-title p {
  margin: 3px 0 0;
  color: var(--muted);
}
.card {
  border: 1px solid #dce5ea;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(27, 94, 150, 0.08);
}
.form-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 30px;
}
.field label,
.login-panel label,
.toolbar label {
  display: block;
  font-size: 14px;
  font-weight: 900;
}
.field em {
  color: var(--pink);
  font-style: normal;
  font-size: 12px;
}
.field input,
.field select,
.login-panel input,
.login-panel select,
.toolbar input,
.import-card textarea {
  width: 100%;
  margin-top: 8px;
  padding: 13px 14px;
  border: 1px solid #b9c7d0;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}
.field input:focus,
.field select:focus,
.login-panel input:focus,
.login-panel select:focus,
.toolbar input:focus,
.import-card textarea:focus {
  outline: 3px solid rgba(36, 120, 190, 0.2);
  border-color: var(--blue);
}
.field small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}
.full {
  grid-column: 1/-1;
}
.check {
  padding: 16px;
  border-radius: 14px;
  background: #fffdf0;
  border: 1px solid #eee29a;
}
.check label {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 700;
}
.check input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--pink);
}
.primary,
.secondary,
.small-button {
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 900;
  cursor: pointer;
}
.primary {
  background: var(--pink);
  color: #fff;
}
.primary:hover {
  background: #cb2465;
}
.secondary {
  border: 2px solid var(--blue);
  background: #fff;
  color: var(--deep);
}
.small-button {
  padding: 9px 15px;
  background: #edf5f8;
  color: var(--deep);
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.form-message {
  min-height: 0;
  margin: 0;
  color: #b20f4c;
  font-size: 14px;
  font-weight: 900;
}
.form-message.success {
  color: var(--green);
}
.hidden {
  display: none !important;
}
.side-column {
  padding-top: 62px;
}
.steps-card {
  padding: 28px;
}
.steps-card h2,
.chart-card h2,
.registry-card h2,
.import-card h2 {
  margin: 0;
  color: var(--deep);
  font-size: 20px;
}
.steps-card ol {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.steps-card li {
  position: relative;
  display: flex;
  gap: 13px;
  padding-bottom: 24px;
}
.steps-card li:not(:last-child):after {
  content: "";
  position: absolute;
  left: 16px;
  top: 36px;
  bottom: 5px;
  width: 2px;
  background: #bedce8;
}
.steps-card li b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 34px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
}
.steps-card li:nth-child(even) b {
  background: var(--pink);
}
.steps-card li span {
  font-weight: 900;
}
.steps-card li small {
  color: var(--muted);
  font-weight: 600;
}
.notice-card {
  margin-top: 20px;
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--yellow);
}
.notice-card b {
  color: var(--pink);
  font-size: 18px;
}
.notice-card p {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 700;
}
.voucher-section {
  padding: 58px 0;
  background: var(--bg);
  border-top: 1px solid #dbe7ec;
}
.voucher-wrap {
  max-width: 720px;
}
.voucher {
  overflow: hidden;
  border: 2px solid var(--blue);
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(27, 94, 150, 0.16);
}
.voucher-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 24px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}
.voucher-body {
  padding: 34px;
  text-align: center;
}
.voucher-label {
  margin: 0;
  color: var(--deep);
  font-size: 21px;
  font-weight: 900;
}
.voucher-body > strong {
  display: block;
  margin: 16px 0;
  color: var(--pink);
  font:
    900 38px/1 "Segoe UI",
    Arial,
    sans-serif;
  letter-spacing: 2px;
}
.voucher-body > p {
  font-size: 16px;
  line-height: 1.7;
  font-weight: 700;
}
.voucher-gift {
  margin: 24px auto 0;
  padding: 18px;
  border-radius: 17px;
  background: var(--yellow);
  font-weight: 800;
}
.voucher-gift b {
  color: var(--pink);
  font-size: 28px;
}
.voucher-foot {
  padding: 14px 20px;
  background: var(--aqua);
  color: var(--deep);
  text-align: center;
  font-size: 13px;
  font-weight: 900;
}
.duplicate-note {
  padding: 13px 17px;
  border-radius: 12px;
  background: #fff6d6;
  color: #765f00;
  font-weight: 800;
}
.voucher-wrap > .secondary {
  display: block;
  margin: 23px auto 0;
}
footer {
  padding: 28px 0;
  border-top: 1px solid #e0e7ea;
  background: #f7f9fa;
  color: #536374;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}
footer b {
  color: var(--deep);
}
.admin-body {
  background: var(--bg);
}
.admin-header {
  background: #fff;
  border-bottom: 1px solid #dce5ea;
}
.admin-header > .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 25px;
}
.admin-header a {
  color: var(--deep);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}
.admin-header h1 {
  margin: 5px 0 0;
  font-size: 28px;
  color: var(--deep);
}
.admin-header p {
  margin: 2px 0 0;
  color: var(--muted);
}
.admin-main {
  padding-block: 36px;
}
.login-panel {
  max-width: 500px;
  margin: 25px auto;
  padding: 32px;
}
.login-panel h2 {
  margin: 0;
  color: var(--deep);
  font-size: 25px;
}
.login-panel p {
  color: var(--muted);
}
.login-panel form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}
.toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
}
.toolbar > div:first-child {
  flex: 1;
}
.toolbar-actions {
  display: flex;
  gap: 10px;
}
.link-button {
  display: inline-block;
  text-decoration: none;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.metric-card {
  padding: 20px;
  border-radius: 19px;
  background: #fff;
  border: 1px solid #dce5ea;
}
.metric-card b {
  display: block;
  color: var(--pink);
  font-size: 29px;
}
.metric-card span {
  color: var(--deep);
  font-size: 13px;
  font-weight: 900;
}
.analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
.chart-card {
  padding: 24px;
}
.bar-list {
  display: grid;
  gap: 11px;
  margin-top: 18px;
}
.bar-row {
  display: grid;
  grid-template-columns: 96px 1fr 38px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}
.bar-row span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bar-track {
  height: 10px;
  overflow: hidden;
  border-radius: 9px;
  background: #e6eef2;
}
.bar {
  height: 100%;
  border-radius: 9px;
  background: var(--blue);
}
.bar-row:nth-child(even) .bar {
  background: var(--pink);
}
.registry-card,
.import-card {
  margin-top: 20px;
  padding: 25px;
}
.registry-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.registry-heading p,
.import-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.table-scroll {
  overflow: auto;
  margin-top: 20px;
}
table {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
  font-size: 13px;
}
th {
  padding: 12px;
  background: #edf5f8;
  color: var(--deep);
  text-align: left;
}
td {
  padding: 13px 10px;
  border-bottom: 1px solid #e2e8eb;
  vertical-align: top;
}
td b {
  color: var(--deep);
}
.status-chip {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e7f3f8;
  color: var(--deep);
  font-size: 12px;
  font-weight: 900;
}
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.row-actions button {
  border: 0;
  border-radius: 8px;
  padding: 7px 9px;
  background: #edf3f6;
  color: var(--deep);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.row-actions button.hot {
  background: #fce3ed;
  color: #aa174f;
}
.gift-select {
  max-width: 140px;
  padding: 6px;
  border: 1px solid #cbd7dd;
  border-radius: 7px;
}
.import-card textarea {
  display: block;
  min-height: 130px;
  resize: vertical;
}
.import-card .secondary {
  margin-top: 12px;
}
@media (max-width: 850px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero:after {
    width: 100px;
    height: 100px;
  }
  .hero h1 {
    font-size: 40px;
  }
  .service-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .course-grid {
    grid-template-columns: 1fr;
  }
  .service-grid div:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }
  .content {
    grid-template-columns: 1fr;
  }
  .side-column {
    padding-top: 0;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .analytics-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .wrap {
    width: min(100% - 28px, 1120px);
  }
  .site-header {
    height: 70px;
  }
  .brand-mark {
    width: 38px;
    height: 38px;
  }
  .brand b {
    font-size: 16px;
  }
  .brand small {
    display: none;
  }
  .staff-link {
    flex: 0 0 auto;
    padding: 7px 9px;
    font-size: 11px;
    white-space: nowrap;
  }
  .hero-inner {
    padding-block: 42px;
    gap: 30px;
  }
  .eyebrow {
    font-size: 10px;
    letter-spacing: 2px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .hero-copy {
    font-size: 16px;
  }
  .hero-gift {
    width: 100%;
    padding: 22px;
  }
  .service-grid {
    grid-template-columns: 1fr;
    padding-block: 20px;
    gap: 0;
  }
  .service-grid div,
  .service-grid div:nth-child(odd) {
    padding: 12px 0;
    border-left: 0;
    border-top: 1px solid #a8cfd9;
  }
  .service-grid div:first-child {
    border-top: 0;
  }
  .content {
    padding-block: 38px;
  }
  .form-card {
    grid-template-columns: 1fr;
    padding: 22px;
    gap: 19px;
  }
  .field,
  .full {
    grid-column: 1;
  }
  .side-column {
    padding-top: 0;
  }
  .voucher-body {
    padding: 27px 18px;
  }
  .voucher-body > strong {
    font-size: 29px;
  }
  .voucher-top {
    display: block;
  }
  .voucher-top b {
    display: block;
    margin-top: 3px;
  }
  .admin-header h1 {
    font-size: 22px;
  }
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .toolbar-actions {
    width: 100%;
  }
  .toolbar-actions > * {
    flex: 1;
    text-align: center;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .metric-card b {
    font-size: 25px;
  }
  .analytics-grid {
    grid-template-columns: 1fr;
  }
  .registry-heading {
    display: block;
  }
  footer .wrap {
    display: block;
    text-align: center;
  }
  footer span {
    display: block;
    margin-top: 4px;
  }
}
