/* TMI Demo — 商業派設計（深藍 + 金色 + 白底）
   字體 Noto Sans TC，大留白，響應式 */

:root {
  --navy: #1B2B4D;
  --navy-700: #243760;
  --navy-50: #F4F6FB;
  --gold: #C9A961;
  --gold-soft: #FAF3E1;
  --dark: #2C2C2C;
  --muted: #6E6E6E;
  --line: #E4E4E4;
  --bg-soft: #F8F8F6;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 6px rgba(27, 43, 77, 0.06);
  --shadow-md: 0 8px 28px rgba(27, 43, 77, 0.10);
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }

img { max-width: 100%; height: auto; display: block; }

/* ============ Top bar ============ */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  padding: 8px 0;
  letter-spacing: 0.05em;
}
.topbar .wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar a { color: rgba(255,255,255,0.85); }
.topbar a:hover { color: var(--gold); }

/* ============ Header / Nav ============ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.site-header .wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-mark {
  width: 48px; height: 48px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.05em;
}
.brand-text { line-height: 1.2; }
.brand-text .zh {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
}
.brand-text .en {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
nav.main-nav {
  display: flex;
  gap: 6px;
  align-items: center;
}
nav.main-nav a {
  font-size: 16px;
  font-weight: 500;
  color: var(--dark);
  padding: 10px 16px;
  border-radius: 4px;
  position: relative;
}
nav.main-nav a:hover { color: var(--navy); background: var(--navy-50); }
nav.main-nav a.active {
  color: var(--navy);
  font-weight: 700;
}
nav.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 4px;
  height: 2px;
  background: var(--gold);
}
nav.main-nav .cta {
  margin-left: 12px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 4px;
}
nav.main-nav .cta:hover {
  background: var(--navy);
  color: var(--white);
}
.menu-toggle { display: none; background: none; border: 0; font-size: 24px; cursor: pointer; color: var(--navy); }

@media (max-width: 900px) {
  nav.main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    padding: 8px 16px 16px;
    box-shadow: var(--shadow-md);
    display: none;
    border-top: 1px solid var(--line);
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { padding: 14px 12px; border-bottom: 1px solid var(--line); }
  nav.main-nav .cta { margin: 12px 0 0; text-align: center; }
  .menu-toggle { display: block; }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(27,43,77,0.92) 0%, rgba(36,55,96,0.85) 50%, rgba(27,43,77,0.92) 100%),
    radial-gradient(circle at 80% 20%, rgba(201,169,97,0.25) 0%, transparent 60%),
    var(--navy);
  color: var(--white);
  padding: 96px 24px 110px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 2px, transparent 2px 14px);
  pointer-events: none;
}
.hero .wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
}
.hero .eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--gold);
  font-weight: 700;
  border: 1px solid var(--gold);
  padding: 6px 14px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}
.hero h1 .highlight { color: var(--gold); }
.hero .lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: rgba(255,255,255,0.85);
  max-width: 620px;
  margin-bottom: 36px;
}
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 30px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s, background .2s, color .2s;
}
.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-gold:hover { background: var(--white); color: var(--navy); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-outline-light:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-outline-navy { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

/* ============ Section common ============ */
section.block {
  padding: 84px 24px;
}
section.block.tight { padding: 56px 24px; }
section.block.alt { background: var(--bg-soft); }
section.block.deep { background: var(--navy); color: var(--white); }
section.block .wrap { max-width: var(--maxw); margin: 0 auto; }

.section-head {
  text-align: center;
  margin-bottom: 56px;
}
.section-head .kicker {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.32em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
section.deep .section-head h2 { color: var(--white); }
.section-head p {
  color: var(--muted);
  font-size: 16px;
  max-width: 720px;
  margin: 0 auto;
}
.section-head::after {
  content: "";
  display: block;
  width: 56px; height: 3px;
  background: var(--gold);
  margin: 22px auto 0;
}

/* ============ Page Banner（次頁用） ============ */
.page-banner {
  background:
    linear-gradient(135deg, rgba(27,43,77,0.95) 0%, rgba(36,55,96,0.88) 100%),
    var(--navy);
  color: var(--white);
  padding: 80px 24px 64px;
  text-align: center;
}
.page-banner .kicker {
  font-size: 13px;
  letter-spacing: 0.32em;
  color: var(--gold);
  font-weight: 700;
}
.page-banner h1 {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 800;
  margin: 14px 0;
  letter-spacing: 0.02em;
}
.page-banner .breadcrumb {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}
.page-banner .breadcrumb a { color: rgba(255,255,255,0.85); }
.page-banner .breadcrumb a:hover { color: var(--gold); }

/* ============ Cards / Grid ============ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 900px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.card .thumb {
  height: 180px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.3em;
  font-weight: 700;
}
.card .thumb.thumb-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #B6924C 100%);
  color: var(--navy);
}
.card .thumb.thumb-pattern::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 14px);
}
.card .body { padding: 24px 22px 26px; }
.card .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}
.card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 10px;
}
.card .meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}
.card p {
  font-size: 15px;
  color: var(--dark);
  line-height: 1.7;
}
.card .more {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.card .more::after { content: " →"; color: var(--gold); }

/* ============ Stats ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0 -8px;
}
.stats .stat {
  text-align: center;
  padding: 20px 12px;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.stats .stat:last-child { border-right: 0; }
.stats .num {
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  letter-spacing: 0.02em;
}
.stats .label {
  margin-top: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.08em;
}
@media (max-width: 700px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats .stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.15); }
}

/* ============ Feature row ============ */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
@media (max-width: 900px) {
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; gap: 32px; direction: ltr; }
}
.feature-visual {
  height: 360px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  letter-spacing: 0.3em;
  font-weight: 700;
}
.feature-visual::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 16px);
}
.feature-text h3 {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.feature-text .gold-line {
  width: 48px; height: 3px;
  background: var(--gold);
  margin-bottom: 18px;
}
.feature-text p {
  font-size: 16px;
  color: var(--dark);
  line-height: 1.85;
  margin-bottom: 14px;
}

/* ============ News list ============ */
.news-list { list-style: none; }
.news-list li {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.news-list li:hover { background: var(--bg-soft); }
.news-list .date {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  padding-top: 4px;
}
.news-list .date .y { font-size: 12px; display: block; }
.news-list .title {
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.6;
}
.news-list .title:hover { color: var(--gold); }
.news-list .tag-pill {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 4px 10px;
  border-radius: 12px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  align-self: start;
  margin-top: 4px;
}
@media (max-width: 700px) {
  .news-list li { grid-template-columns: 1fr; gap: 8px; }
  .news-list .tag-pill { justify-self: start; }
}

/* ============ Officers ============ */
.officer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.officer {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px 18px;
  text-align: center;
  transition: border-color .2s, box-shadow .2s;
}
.officer:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.officer .avatar {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 22px;
  margin: 0 auto 14px;
  letter-spacing: 0.04em;
}
.officer .role {
  font-size: 12px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 6px;
}
.officer .name {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.officer .affil {
  font-size: 13px;
  color: var(--muted);
}

/* ============ Timeline ============ */
.timeline {
  position: relative;
  padding-left: 28px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 0; bottom: 0;
  width: 2px;
  background: var(--line);
}
.timeline .item {
  position: relative;
  padding: 0 0 32px 0;
}
.timeline .item::before {
  content: "";
  position: absolute;
  left: -25px; top: 8px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold);
}
.timeline .year {
  font-size: 14px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}
.timeline .title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.timeline .desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

/* ============ Quote ============ */
.quote-block {
  background: var(--gold-soft);
  border-left: 4px solid var(--gold);
  padding: 32px 36px;
  margin: 32px 0;
  border-radius: 0 6px 6px 0;
}
.quote-block .who {
  font-size: 14px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.quote-block .text {
  font-size: 17px;
  color: var(--dark);
  line-height: 1.85;
  font-style: italic;
}

/* ============ Form / Login ============ */
.form-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.form-shell .left {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-700) 100%);
  color: var(--white);
  padding: 56px 44px;
}
.form-shell .left::before {
  content: "✦";
  font-size: 32px;
  color: var(--gold);
  display: block;
  margin-bottom: 16px;
}
.form-shell .left h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 14px;
}
.form-shell .left .gold-line {
  width: 40px; height: 3px;
  background: var(--gold);
  margin: 14px 0 18px;
}
.form-shell .left p {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  line-height: 1.85;
  margin-bottom: 14px;
}
.form-shell .left ul {
  list-style: none;
  margin-top: 18px;
}
.form-shell .left ul li {
  padding: 6px 0 6px 24px;
  position: relative;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}
.form-shell .left ul li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 6px;
  color: var(--gold);
  font-weight: 700;
}
.form-shell .right {
  padding: 56px 44px;
}
.form-shell .right h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-shell .right .sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
}
@media (max-width: 800px) {
  .form-shell { grid-template-columns: 1fr; }
  .form-shell .left, .form-shell .right { padding: 36px 26px; }
}

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--dark);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: border-color .2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--gold);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row .field { margin-bottom: 0; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.helper {
  font-size: 13px;
  color: var(--muted);
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.helper a { font-weight: 600; }

/* ============ Footer ============ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 64px 24px 28px;
}
.site-footer .wrap {
  max-width: var(--maxw);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.footer-brand .brand-mark {
  background: var(--gold); color: var(--navy);
}
.footer-brand .brand-text .zh { color: var(--white); }
.footer-brand .brand-text .en { color: var(--gold); }
.footer-brand p {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(255,255,255,0.7);
}
.footer-grid h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 18px;
  text-transform: uppercase;
}
.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul a {
  color: rgba(255,255,255,0.78);
  font-size: 15px;
  transition: color .2s, padding-left .2s;
}
.footer-grid ul a:hover { color: var(--gold); padding-left: 4px; }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
}
.footer-bottom a { color: rgba(255,255,255,0.7); }
@media (max-width: 600px) {
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* ============ Misc ============ */
.center { text-align: center; }
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 36px; } .mt-4 { margin-top: 48px; }
.mb-2 { margin-bottom: 24px; }
.lead { font-size: 18px; color: var(--muted); line-height: 1.85; }

/* Demo banner（內部備註，淡灰低調，不搶截圖視覺） */
.demo-banner {
  background: #F0EFEC;
  color: var(--muted);
  padding: 5px 24px;
  font-size: 11px;
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--line);
}
