:root {
  --brand-red-dark: #a90f24;
  --brand-red: #d61f33;
  --brand-blue-dark: #071728;
  --brand-blue: #102a43;
  --brand-gold: #f7c948;
  --bg: #f7f8fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #64748b;
  --line: #e5e7eb;
  --shadow: 0 14px 34px rgba(16, 42, 67, 0.09);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif; color: var(--text); background: var(--bg); line-height: 1.7; }
a { color: inherit; text-decoration: none; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.nav { width: min(1180px, calc(100% - 32px)); min-height: 70px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 950; color: var(--brand-blue); }
.brand-mark { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; flex: none; color: #fff; background: linear-gradient(135deg, var(--brand-blue), var(--brand-red-dark)); box-shadow: 0 10px 24px rgba(16,42,67,.18); }
.brand-mark svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.brand span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-button { display: none; border: 0; border-radius: 12px; background: #eef2f7; color: var(--brand-blue); padding: 9px 12px; font-weight: 900; }
.nav-links { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.nav-links a { padding: 8px 10px; border-radius: 999px; color: #334155; font-size: 14px; font-weight: 900; }
.nav-links a:hover, .nav-links a.is-active { color: #fff; background: var(--brand-blue); }
.nav-links .nav-cta { color: #fff; background: linear-gradient(135deg, #ef3340, #a90f24); }
.hero { color: #fff; background: linear-gradient(135deg, #071728 0%, #102a43 58%, #8b1223 100%); }
.hero-inner, .page-shell, .footer-inner { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.hero-inner { padding: 54px 0 44px; }
.kicker { color: #ffe8a3; font-size: 14px; font-weight: 900; margin-bottom: 10px; }
.hero h1 { margin: 0; max-width: 900px; font-size: clamp(30px, 5vw, 56px); line-height: 1.14; font-weight: 950; }
.hero p { max-width: 780px; margin: 18px 0 0; color: rgba(255,255,255,.86); font-size: clamp(16px, 1.8vw, 20px); }
.hero-actions, .cms-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn, .cms-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 18px; border-radius: 999px; background: var(--brand-blue); color: #fff; font-weight: 900; border: 0; cursor: pointer; }
.btn-light, .cms-btn-light { color: var(--brand-blue); background: #fff; border: 1px solid var(--line); }
.page-shell { padding: 38px 0 52px; }
.cms-heading { border-radius: 18px; padding: 22px 24px; margin-bottom: 18px; color: #fff; background: linear-gradient(135deg, #071728 0%, #102a43 62%, #8b1223 100%); box-shadow: var(--shadow); }
.cms-kicker { color: #ffe8a3; font-size: 13px; font-weight: 900; margin-bottom: 6px; }
.cms-heading h1 { margin: 0; font-size: clamp(25px, 3.2vw, 38px); line-height: 1.2; font-weight: 950; }
.cms-description, .cms-empty, .cms-error, .cms-loading, .note-list { margin: 0 0 18px; padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--brand-red); color: #334155; font-weight: 800; box-shadow: 0 10px 26px rgba(16,42,67,.07); }
.cms-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.cms-card, .cms-table-wrap, .drive-panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.cms-card { padding: 22px; }
.cms-icon { width: fit-content; min-width: 48px; max-width: 132px; min-height: 48px; padding: 8px 10px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, #ef3340, #a90f24); font-weight: 900; font-size: 14px; line-height: 1.15; text-align: center; white-space: normal; word-break: keep-all; overflow-wrap: anywhere; margin-bottom: 16px; }
.cms-card h2 { margin: 0 0 8px; color: var(--brand-blue); font-size: 21px; line-height: 1.55; }
.cms-card p { margin: 0; color: var(--muted); }
.cms-description a,
.cms-card a,
.cms-table a,
.note-list a {
  color: var(--brand-red);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.action-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  margin: 0 0 18px;
  padding: 20px 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff6db, #ffffff);
  border: 1px solid rgba(247, 201, 72, 0.65);
  border-left: 6px solid var(--brand-red);
  box-shadow: 0 12px 28px rgba(138, 90, 0, 0.09);
}
.action-panel h2 {
  margin: 0 0 4px;
  color: var(--brand-blue);
  font-size: 22px;
}
.action-panel p {
  margin: 0;
  color: #475569;
  font-weight: 800;
}
.action-panel .cms-actions {
  margin-top: 0;
  justify-content: flex-end;
}
.flow-panel {
  margin: 0 0 18px;
  padding: 20px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.flow-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.flow-head h2 {
  margin: 0;
  color: var(--brand-blue);
  font-size: 24px;
  line-height: 1.25;
}
.flow-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}
.flow-list {
  display: grid;
  gap: 12px;
}
.flow-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: start;
  position: relative;
  padding: 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
}
.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 43px;
  top: calc(100% - 2px);
  width: 3px;
  height: 16px;
  border-radius: 999px;
  background: rgba(214, 31, 51, 0.35);
}
.flow-index {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #ef3340, #a90f24);
  font-weight: 950;
  font-size: 20px;
  line-height: 1;
}
.flow-copy h3 {
  margin: 0 0 4px;
  color: var(--brand-blue);
  font-size: 20px;
  line-height: 1.35;
}
.flow-copy p {
  margin: 0;
  color: #475569;
  font-weight: 800;
}
.flow-copy a {
  color: var(--brand-red);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.flow-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff !important;
  background: var(--brand-blue);
  text-decoration: none !important;
  font-size: 14px;
}
.cms-table-wrap { overflow-x: auto; margin-bottom: 18px; }
.cms-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.cms-table th, .cms-table td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cms-table thead th { background: var(--brand-blue); color: #fff; font-weight: 900; }
.cms-table tbody th { width: 170px; background: var(--brand-blue); color: #fff; font-weight: 900; }
.note-list { display: grid; gap: 8px; list-style: none; }
.note-list li::before { content: "• "; color: var(--brand-red); font-weight: 950; }
.award-groups {
  display: grid;
  gap: 18px;
}
.award-group {
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.award-group h2 {
  margin: 0 0 12px;
  color: var(--brand-blue);
  font-size: 24px;
}
.award-group .cms-table-wrap {
  margin-bottom: 0;
  box-shadow: none;
  border-radius: 12px;
}
.award-table {
  min-width: 520px;
}
.site-footer { background: var(--brand-blue-dark); color: rgba(255,255,255,.78); }
.footer-inner { padding: 22px 0; display: block; text-align: center; font-size: 14px; }
.drive-panel { margin-top: 18px; padding: 18px; }
.drive-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.drive-panel h2 { margin: 0; color: var(--brand-blue); font-size: 22px; }
.drive-frame { width: 100%; height: 560px; border: 1px solid var(--line); border-radius: 14px; background: #f8fafc; }
.news-list { display: grid; gap: 12px; }
.news-row { display: grid; grid-template-columns: 118px 1fr auto; align-items: center; gap: 18px; min-height: 96px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 10px 24px rgba(16,42,67,.07); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
a.news-row:hover { transform: translateY(-2px); border-color: rgba(214,31,51,.26); box-shadow: 0 16px 34px rgba(16,42,67,.11); }
.news-date { color: var(--brand-red); font-weight: 950; font-size: 17px; line-height: 1.2; }
.news-copy h2 { margin: 0 0 4px; color: var(--brand-blue); font-size: 21px; line-height: 1.28; }
.news-copy p { margin: 0; color: var(--muted); font-weight: 800; }
.news-arrow { color: #fff; background: var(--brand-blue); border-radius: 999px; padding: 8px 12px; font-size: 13px; font-weight: 900; white-space: nowrap; }
article.news-row .news-arrow { display: none; }
.news-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 22px; background: rgba(7,23,40,.58); backdrop-filter: blur(4px); }
.news-modal-box { width: min(560px, 100%); padding: 26px 24px; border-radius: 20px; background: #fff; box-shadow: 0 24px 60px rgba(16,42,67,.24); }
.news-modal-box h2 { margin: 0 0 10px; color: var(--brand-blue); font-size: clamp(24px, 3vw, 32px); line-height: 1.25; }
.news-modal-box p { margin: 0; color: var(--muted); font-weight: 800; }
.news-modal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
@media (max-width: 900px) {
  .menu-button { display: inline-flex; }
  .nav { min-height: 62px; }
  .nav-links { position: absolute; left: 0; right: 0; top: calc(100% + 8px); display: none; flex-direction: column; align-items: stretch; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
  .nav-links.is-open { display: flex; }
  .nav-links a { border-radius: 10px; }
  .cms-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 38px 0 34px; }
  .page-shell { padding: 24px 0 40px; }
  .drive-panel-head { align-items: flex-start; flex-direction: column; }
  .action-panel {
    grid-template-columns: 1fr;
  }
  .action-panel .cms-actions {
    justify-content: flex-start;
  }
  .flow-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .drive-frame { height: 440px; }
  .news-row { grid-template-columns: 1fr; align-items: start; gap: 8px; padding: 16px 18px; }
  .news-date { font-size: 15px; }
  .news-copy h2 { font-size: 19px; }
  .news-arrow { justify-self: start; }
}
@media (max-width: 640px) {
  .brand span:last-child { max-width: 240px; font-size: 14px; }
  .cms-heading { padding: 18px; }
  .cms-table { min-width: 0; }
  .cms-table, .cms-table thead, .cms-table tbody, .cms-table tr, .cms-table th, .cms-table td { display: block; width: 100%; }
  .cms-table thead { display: none; }
  .cms-table tr { border-bottom: 1px solid var(--line); }
  .cms-table td { border-bottom: 0; }
  .flow-panel { padding: 16px; }
  .flow-step { grid-template-columns: 44px 1fr; gap: 12px; padding: 14px; }
  .flow-index { width: 42px; height: 42px; border-radius: 13px; font-size: 17px; }
  .flow-step:not(:last-child)::after { left: 34px; }
  .flow-copy h3 { font-size: 18px; }
}
