:root {
  --ink: #15202b;
  --muted: #5c6976;
  --line: #d9e0e6;
  --paper: #f6f8fa;
  --white: #ffffff;
  --steel: #25384a;
  --slate: #31475b;
  --accent: #c58a2a;
  --accent-dark: #9d6718;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  line-height: 1.75;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.site-header {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(21,32,43,.95), rgba(37,56,74,.78)),
    url("../images_template1/P1120917.JPG") center/cover fixed;
}
.topbar {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 2px solid rgba(255,255,255,.72);
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
}
.brand strong { display: block; font-size: 20px; letter-spacing: 0; }
.brand small { display: block; color: rgba(255,255,255,.72); font-size: 12px; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.main-nav a {
  text-decoration: none;
  color: rgba(255,255,255,.86);
  padding: 10px 12px;
  border-bottom: 2px solid transparent;
  font-size: 15px;
}
.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  border-color: var(--accent);
}
.hero {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 290px;
  display: flex;
  align-items: center;
  padding: 40px 24px 56px;
}
.hero div { max-width: 760px; }
.hero p {
  margin: 0 0 10px;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: 0;
}
.hero span { display: block; max-width: 720px; color: rgba(255,255,255,.82); font-size: 18px; }

main { margin-top: -28px; }
.content-band {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 28px;
}
.statement,
.lead-panel,
.profile-panel,
.team-photo,
.feature-media,
.legacy > table,
.legacy > table > tbody {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 18px 42px rgba(21,32,43,.08);
}
.vision-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr);
  gap: 22px;
  align-items: stretch;
}
.statement,
.lead-panel {
  padding: 30px;
  font-size: 18px;
}
.statement p,
.lead-panel p { margin: 0; }
.feature-media { padding: 14px; }
.feature-media img { width: 100%; min-height: 360px; object-fit: cover; }

.legacy table,
.legacy tbody,
.legacy tr,
.legacy td {
  display: block;
  width: 100% !important;
  height: auto !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--ink) !important;
}
.legacy > table > tbody {
  padding: 12px;
}
.service-list tr,
.project-list tr {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
  border-bottom: 1px solid var(--line) !important;
}
.service-list tr:last-child,
.project-list tr:last-child { border-bottom: 0 !important; }
.service-list td,
.project-list td {
  padding: 0 !important;
  font-size: 15px !important;
  color: var(--ink) !important;
}
.service-list td:first-child img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.project-list td:first-child {
  color: var(--muted) !important;
  border-left: 4px solid var(--accent) !important;
  padding-left: 16px !important;
}
.project-list td:last-child img {
  width: 100% !important;
  max-height: 430px;
  object-fit: cover;
  margin-top: 14px;
}
.legacy strong,
.legacy span,
.legacy p,
.legacy div,
.legacy li {
  color: var(--ink) !important;
  font-family: inherit !important;
  font-size: inherit !important;
}
.legacy strong {
  display: block;
  color: var(--steel) !important;
  font-size: 20px !important;
  line-height: 1.45;
}
.legacy p { margin: 0 0 10px; }

.about-list {
  display: grid;
  gap: 24px;
}
.team-photo,
.profile-panel {
  padding: 24px;
  overflow: auto;
  color: var(--ink) !important;
}
.team-photo img {
  width: 100%;
  max-height: 680px;
  object-fit: contain;
  background: #eef2f5;
}
.profile-panel {
  border-left: 6px solid var(--accent);
}
.profile-panel p { margin-top: 0; }
.profile-panel span,
.profile-panel li,
.profile-panel p,
.profile-panel div {
  color: var(--ink) !important;
  font-family: inherit !important;
  font-size: 15px !important;
}
.profile-panel > span:first-child,
.profile-panel p > span:first-child {
  color: var(--steel) !important;
  font-size: 20px !important;
  font-weight: 700;
}
.profile-panel ul {
  columns: 2;
  column-gap: 36px;
  margin: 18px 0 0;
  padding-left: 20px;
}
.profile-panel li {
  break-inside: avoid;
  margin-bottom: 7px;
}
.profile-panel img {
  max-width: min(360px, 42%);
  margin: 6px 18px 14px 0;
  border: 1px solid var(--line);
  object-fit: cover;
}

.site-footer {
  margin-top: 58px;
  padding: 34px 24px;
  color: rgba(255,255,255,.82);
  background: var(--ink);
  text-align: center;
}
.site-footer a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.38);
}
.footer-grid {
  max-width: 1120px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
}
.footer-grid strong,
.footer-grid span { display: block; }
.footer-grid div:last-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
}
.site-footer p { margin: 8px 0; }

@media (max-width: 820px) {
  .topbar,
  .footer-grid,
  .vision-grid,
  .service-list tr,
  .project-list tr {
    display: block;
  }
  .main-nav {
    justify-content: flex-start;
    margin-top: 18px;
  }
  .hero { min-height: 240px; }
  .service-list tr,
  .project-list tr { padding: 18px; }
  .service-list td:first-child { margin-bottom: 16px; }
  .profile-panel ul { columns: 1; }
  .profile-panel img {
    float: none !important;
    max-width: 100%;
    margin: 12px 0;
  }
  .footer-grid div:last-child { justify-content: flex-start; margin-top: 14px; }
}