@charset "UTF-8";

/* ========================================
   Tokens
   ======================================== */
:root {
  --color-text: #000;
  --color-text-muted: #333;
  --color-accent: #f00;
  --color-side-bg: #dbdbdb;
  --font-verdana: Verdana, Arial, Helvetica, sans-serif;
  --font-arial: Arial, Helvetica, sans-serif;
  --font-roboto: "Roboto", sans-serif;
  --font-zh: "微軟正黑體", "Microsoft JhengHei", "標楷體", "DFKai-SB", Arial, sans-serif;
}

/* ========================================
   Base
   ======================================== */
body {
  margin: 0;
  color: var(--color-text);
}

img {
  display: block;
  border: 0;
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ========================================
   Layout：固定寬度版型（沿用舊站切圖尺寸）
   ======================================== */
/* 頁首切圖總寬 364 + 504 + 65 + 85 = 1018px，比內容區 1000px 寬，舊站即以 1018px 置中 */
.page {
  width: 1018px;
  margin: 0 auto;
}

/* ---------- Header ---------- */
.site-header {
  display: grid;
  grid-template-columns: 364px 504px 65px 85px;
  grid-template-rows: 27px 150px;
  background: url("../images/mackup_top_bg.png") no-repeat center / contain;
}

.site-header__logo {
  grid-row: 1 / 3;
}

.site-header__spacer {
  background: url("../images/mackup_top_02_space.jpg") no-repeat;
}

.site-header__nav {
  height: 150px;
  background-color: #fff;
  grid-column: 2 / 5;
}

.site-header__menu {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- Main ---------- */
.site-main {
  display: flex;
  align-items: flex-start;
  width: 1000px;
}

/* 左側裝飾欄：上方標題圖 + 下方 28 / 121 / 42 三段切圖 */
.side-panel {
  flex: 0 0 191px;
}

.side-panel__body {
  height: 454px;
  background:
    url("../images/pro_link01_02.jpg") no-repeat left top,
    url("../images/pro_link01_04.jpg") no-repeat right top,
    url("../images/pro_link01_03c.jpg") 28px 0 var(--color-side-bg);
}

.side-panel__body--en {
  background:
    url("../images/pro_link01_02.jpg") no-repeat left top,
    url("../images/pro_link01_04.jpg") no-repeat right top,
    url("../images/en_pro_link01_03c.jpg") 28px 0 var(--color-side-bg);
}

.side-divider {
  flex: 0 0 73px;
  height: 553px;
  background: url("../images/pro_main01_02.jpg") no-repeat;
}

.content {
  flex: 1;
  min-width: 0;
}

/* 標題列：左側標題圖，右側切圖延伸 */
.content__head {
  display: flex;
  align-items: flex-end;
  margin: 0;
  background: url("../images/pro_main02_02.jpg") 157px 0;
}

/* 舊版表格標題列下方的空白列 */
.content__head-gap {
  height: 18px;
}

/* flow-root：讓內文第一個段落的 margin 不與外層合併（同舊版 td 行為） */
.content__body {
  display: flow-root;
  padding-bottom: 18px;
}

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  align-items: center;
  width: 1000px;
}

.site-footer__logo {
  flex: 0 0 222px;
}

.site-footer__info {
  flex: 0 0 778px;
}

.site-footer__contact {
  display: inline;
  font-family: var(--font-verdana);
  font-size: 12px;
  line-height: 19px;
  letter-spacing: 1px;
  font-style: normal;
}

.site-footer__contact--zh {
  display: inline-block;
  line-height: 2;
}

.site-footer__credit {
  font-family: var(--font-verdana);
  font-size: 11px;
  line-height: 17px;
  color: var(--color-text-muted);
}

.site-footer__credit-link {
  font-family: var(--font-arial);
  font-size: 11px;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__credit-link:visited,
.site-footer__credit-link:hover {
  color: var(--color-text-muted);
}

/* ========================================
   Page：關於我們（中文）
   ======================================== */
.about-zh {
  font-family: var(--font-zh);
}

.about-zh__photo {
  float: right;
  margin: -0.75em 0 1em;
}

.about-zh__title {
  margin: 1em 0;
  font-size: 1.5em;
  font-weight: bold;
}

.about-zh__title-en {
  font-family: var(--font-roboto);
  font-size: 1.75rem;
}

/* 整行皆為英文，字型設在區塊層級，行高才會與舊版一致 */
.about-zh__subtitle {
  margin: 1em 0;
  font-family: var(--font-roboto);
  font-size: 1em;
}

.about-zh p {
  margin: 1em 0;
  font-weight: bold;
}

/* 舊版兩段之間夾一個 <br>：上下段落 margin + 一行行高 */
.about-zh__section {
  margin-top: 53px;
}

/* 紅色底線標示 */
.underline-red {
  padding-bottom: 2px;
  border-bottom: 2px solid var(--color-accent);
}

.underline-red--en {
  font-family: var(--font-roboto);
}

.about-zh__link {
  color: var(--color-text);
  text-decoration: none;
}

.about-zh__indent {
  padding-left: 126px;
}

/* ---------- 年表 ---------- */
.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline__item {
  margin: 2em 0;
}

.about-zh .timeline__item p {
  font-weight: normal;
  line-height: 1.7;
}

.timeline__year {
  display: inline-block;
  margin: 0;
  padding: 0.5em 5em 0.5em 0.5em;
  font-family: var(--font-roboto);
  font-size: 1em;
  font-weight: bold;
}

.timeline__year--yellow {
  background: linear-gradient(to right, #ffdd77, #fff);
}

.timeline__year--pink {
  background: linear-gradient(to right, #ffb9b4, #fff);
}

.timeline__year--green {
  background: linear-gradient(to right, #9bca9c, #fff);
}

/* ========================================
   Page：About Us（英文）
   ======================================== */
.about-en__text {
  font-family: var(--font-verdana);
  font-size: 13px;
  line-height: 30px;
  letter-spacing: 1px;
  color: var(--color-text-muted);
}

/* HANA 字首配色 */
.hana-letter {
  font-family: var(--font-verdana);
  font-size: 13px;
  line-height: 30px;
  letter-spacing: 1px;
  font-weight: bold;
}

.hana-letter--h { color: #f60; }
.hana-letter--a { color: #0cf; }
.hana-letter--n { color: #f39; }
.hana-letter--a2 { color: #fc3; }

/* 舊版此處有一行 &nbsp; 段落，以 margin 保留相同間距 */
.about-en__lines-title {
  margin-top: 56px;
  font-family: var(--font-verdana);
  font-size: 13px;
  line-height: 19px;
  letter-spacing: 1px;
  color: var(--color-accent);
  font-weight: bold;
}

.about-en__lines-photo {
  float: right;
  margin: 0 5px;
}
