@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;700&family=Manrope:wght@400;500;700&family=Noto+Sans+TC:wght@400;500;700&family=Noto+Serif+TC:wght@500;700&display=swap");

:root {
  --bg-main: #fdf8f1;
  --bg-warm: #e9f0ef;
  --bg-mist: #f1ece3;
  --paper: #fffdf8;
  --ink: #2a2d2f;
  --sub: #5f666b;
  --line: #d5dfdd;
  --brand: #9c7548;
  --brand-deep: #3f5f76;
  --mint: #6f8fa0;
  --mint-deep: #2f536d;
  --shadow: 0 24px 60px rgba(56, 68, 76, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Noto Sans TC", "Manrope", "Microsoft JhengHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1000px 520px at -10% -8%, rgba(170, 202, 206, 0.38) 0%, transparent 64%),
    radial-gradient(980px 560px at 108% 114%, rgba(236, 220, 192, 0.44) 0%, transparent 62%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.46) 0 20px, rgba(255, 255, 255, 0.08) 20px 40px),
    linear-gradient(180deg, var(--bg-main), var(--bg-mist));
}

.wrap {
  width: 100%;
  min-height: 100svh;
  margin: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #fefdf9, #fbf7f0);
  box-shadow: none;
}

.hero {
  width: 100%;
  height: auto;
  max-height: none;
  display: block;
  object-fit: contain;
  object-position: left center;
  filter: contrast(1.06) saturate(0.92);
}

.topbar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 14px 16px;
  background: linear-gradient(90deg, rgba(235, 243, 244, 0.96), rgba(226, 238, 236, 0.96));
  border-top: 1px solid #d8e3e2;
  border-bottom: 1px solid #d5dfde;
}

.topbar a {
  text-decoration: none;
  color: #31566e;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  padding: 4px 2px;
}

.topbar a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--mint));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.topbar a:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  margin: 14px 18px 0;
  width: calc(100% - 36px);
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #d5e0de;
  border-radius: 999px;
  padding: 11px 14px;
  background: linear-gradient(120deg, #f7fbfb, #e9f3f1);
  color: #3d5f73;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.menu-toggle-icon,
.menu-toggle-icon::before,
.menu-toggle-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.menu-toggle-icon {
  position: relative;
}

.menu-toggle-icon::before {
  position: absolute;
  top: -6px;
  left: 0;
}

.menu-toggle-icon::after {
  position: absolute;
  top: 6px;
  left: 0;
}

.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: clamp(14px, 2vw, 24px);
}

.menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.group {
  border: 1px solid #d7e1df;
  border-radius: 20px;
  padding: 12px 12px 14px;
  background: linear-gradient(160deg, rgba(244, 250, 250, 0.95), rgba(233, 243, 241, 0.9));
}

.group + .group {
  margin-top: 0;
}

.menu h2 {
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", "Noto Serif TC", serif;
  font-size: 1.25rem;
  color: var(--brand-deep);
  letter-spacing: 0.03em;
}

.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.menu li {
  margin: 0;
}

.menu a {
  display: inline-flex;
  text-decoration: none;
  align-items: center;
  padding: 6px 10px;
  max-width: 100%;
  border-radius: 999px;
  border: 1px solid #d2dddb;
  color: #3d5e72;
  background: rgba(255, 255, 255, 0.84);
  font-size: 0.85rem;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.menu a:hover {
  transform: translateY(-1px);
  background: #f0f7f6;
  border-color: #b7cdcb;
}

.menu a.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(120deg, var(--brand-deep), #6a879a);
  box-shadow: 0 6px 16px rgba(65, 93, 112, 0.28);
  font-weight: 700;
}

.content {
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(250, 248, 242, 0.65));
  padding: clamp(18px, 2.8vw, 36px);
}

.content h1 {
  margin: 0;
  font-family: "Cormorant Garamond", "Noto Serif TC", serif;
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  font-weight: 700;
  color: var(--brand-deep);
  line-height: 1.06;
  letter-spacing: 0.015em;
}

.intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.intro-main {
  min-width: 0;
}

.intro {
  margin-top: 12px;
  line-height: 1.95;
  color: var(--sub);
  max-width: none;
}

.capability-banner {
  margin-top: 0;
  border: 1px solid #ccd9d8;
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(140deg, rgba(242, 248, 248, 0.92), rgba(252, 246, 238, 0.92));
  box-shadow: 0 8px 20px rgba(61, 88, 104, 0.1);
}

.capability-title {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--brand-deep);
  font-family: "Cormorant Garamond", "Noto Serif TC", serif;
  letter-spacing: 0.02em;
}

.capability-lead {
  margin: 8px 0 0;
  color: #4c626f;
  line-height: 1.85;
}

.capability-pills {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.capability-pills span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  max-width: 100%;
  border-radius: 999px;
  background: #eaf2f2;
  border: 1px solid #cadad8;
  color: #38596f;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  letter-spacing: 0.02em;
}

.capability-pills span::before {
  content: "✓";
  font-size: 0.74rem;
  margin-right: 6px;
  color: #6d8c5c;
}

.gallery,
.grid,
.news-grid,
.item-grid {
  margin-top: 20px;
  display: grid;
  gap: 14px;
}

.gallery {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid,
.news-grid,
.item-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.gallery img,
.card img,
.news-card img,
.item-card img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.gallery img {
  border-radius: 14px;
  box-shadow: 0 12px 22px rgba(57, 79, 92, 0.16);
}

.card,
.news-card,
.item-card {
  text-decoration: none;
  color: inherit;
  border: 1px solid #d5dfdd;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #fffefb, #f5f9f8);
  box-shadow: 0 10px 24px rgba(63, 86, 101, 0.14);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card:hover,
.news-card:hover,
.item-card:hover {
  transform: translateY(-4px) rotate(-0.3deg);
  box-shadow: 0 20px 34px rgba(60, 84, 99, 0.22);
}

.card img,
.news-card img,
.item-card img {
  aspect-ratio: 4 / 3;
  background: #e6ecea;
}

.card-body,
.news-body,
.item-body {
  padding: 12px;
}

.card-body h2,
.news-title,
.item-body h2 {
  margin: 0;
  line-height: 1.45;
  font-size: 0.96rem;
}

.badge,
.news-tag,
.item-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  margin-top: 9px;
  padding: 4px 9px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: #e6efef;
  color: #3f6075;
}

.info {
  margin-top: 22px;
  display: grid;
  gap: 10px;
  border: 0;
  border-radius: 0;
}

.row {
  display: block;
  border: 1px solid #d4dfde;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(120deg, #f7fbfb, #fdfcf8);
}

.row:nth-child(odd),
.row:nth-child(even) {
  background: linear-gradient(120deg, #f7fbfb, #fdfcf8);
}

.label,
.value {
  padding: 10px 12px;
  line-height: 1.75;
}

.label {
  border-right: 0;
  border-bottom: 1px solid #dde7e6;
  font-weight: 700;
  color: #3f5f74;
  background: rgba(232, 241, 240, 0.85);
}

.value {
  color: #3d464b;
}

.value a {
  color: var(--mint-deep);
  font-weight: 700;
}

.panel,
.grid .panel {
  border: 1px solid #d5dfdd;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffefb, #f5f9f8);
  padding: 16px;
  box-shadow: 0 10px 22px rgba(65, 93, 112, 0.12);
}

.panel h2 {
  margin: 0 0 10px;
  color: #35556d;
  font-family: "Cormorant Garamond", "Noto Serif TC", serif;
  font-size: 1.42rem;
}

.form-row {
  margin-bottom: 12px;
}

.form-row label {
  display: block;
  margin-bottom: 6px;
  color: #3f5969;
  font-size: 0.9rem;
  font-weight: 700;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid #d4e0de;
  border-radius: 12px;
  padding: 10px 11px;
  font: inherit;
  color: #2f3f48;
  background: #fbfdfd;
}

.form-row textarea {
  min-height: 138px;
  resize: vertical;
}

.inline-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.req {
  color: #b13f2f;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.submit,
.reset {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.submit {
  background: linear-gradient(120deg, var(--brand-deep), #7a97a9);
}

.reset {
  background: linear-gradient(120deg, var(--brand), #b38a61);
}

.empty {
  margin-top: 18px;
  border: 1px dashed #c9d8d6;
  border-radius: 14px;
  padding: 14px;
  color: var(--sub);
  background: rgba(246, 251, 250, 0.85);
}

@media (max-width: 1080px) {
  .menu {
    grid-template-columns: 1fr;
  }

  .intro-layout {
    grid-template-columns: 1fr;
  }

  .capability-banner {
    margin-top: 4px;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .menu {
    display: none;
    grid-template-columns: 1fr;
  }

  .menu.is-open {
    display: grid;
  }

  .layout {
    padding-top: 12px;
  }
}

@media (max-width: 640px) {
  .content h1 {
    font-size: clamp(1.7rem, 8vw, 2.45rem);
  }

  .inline-2,
  .gallery {
    grid-template-columns: 1fr;
  }

  .capability-banner {
    padding: 14px;
  }
}
