:root {
  --bone: #F5F2EC;
  --paper: #FAF8F4;
  --sand: #E8E3D9;
  --ink: #2B302D;
  --forest: #2C4A3E;
  --moss: #4A6B5A;
  --sage: #8B9D83;
  --warm: #C9985F;
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: Inter, "Noto Sans SC", -apple-system, sans-serif;
  background: var(--bone);
  color: var(--ink);
  line-height: 1.7;
}

.site-nav {
  background: rgba(250,248,244,0.96);
  border-bottom: 1px solid var(--sand);
}
.site-nav-inner {
  width: 100%;
  margin: 0 auto;
  padding: 22px 28px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.site-nav-links {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
.site-nav a {
  min-height: 112px;
  padding: 18px 16px;
  border: 1px solid rgba(44,74,62,.14);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--tab-tint, #EDF7F0), #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 700;
  text-align: center;
  border-top: 5px solid var(--tab-accent, #237A57);
  box-shadow: 0 10px 28px rgba(28,32,33,.09);
  transition: border-color .2s, background .2s, transform .2s;
}
.site-nav a:hover {
  color: var(--tab-accent, var(--forest));
  border-color: rgba(44,74,62,.42);
  background: linear-gradient(180deg, var(--tab-hover, #DDF0E6), #fff);
  transform: translateY(-1px);
}
.site-nav a svg {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  color: var(--tab-accent, #237A57);
}
.site-nav a:nth-child(1) { --tab-accent: #1F7A57; --tab-tint: #E8F6EE; --tab-hover: #D5EBDF; }
.site-nav a:nth-child(2) { --tab-accent: #2373A8; --tab-tint: #E8F2F9; --tab-hover: #D6E9F5; }
.site-nav a:nth-child(3) { --tab-accent: #BE7A1F; --tab-tint: #FBF1E4; --tab-hover: #F6E4CB; }
.site-nav a:nth-child(4) { --tab-accent: #7657A8; --tab-tint: #F1EEF9; --tab-hover: #E7E1F5; }
.site-nav a:nth-child(5) { --tab-accent: #B4452F; --tab-tint: #FBEEE9; --tab-hover: #F6DED5; }

.company-bar {
  background: #243B31;
  color: #F5F2EC;
  padding: 22px 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
}
.company-english {
  justify-self: start;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.15rem, 3.3vw, 3.15rem);
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.05;
  white-space: nowrap;
}
.company-chinese {
  justify-self: center;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: clamp(1.6rem, 2.4vw, 2.25rem);
  font-weight: 500;
  color: #C9D7C8;
  line-height: 1.2;
  white-space: nowrap;
}
.company-contact {
  justify-self: end;
  text-align: right;
  font-size: clamp(.76rem, .85vw, .88rem);
  line-height: 1.55;
  color: rgba(245,242,236,.82);
}
.company-contact a { color: rgba(245,242,236,.92); text-decoration: none; }
.company-contact a:hover { text-decoration: underline; }

.page-hero {
  background: linear-gradient(120deg, #DDEADF, #F8F4E7);
  padding: 92px 32px;
}
.page-hero-inner { max-width: var(--maxw); margin: 0 auto; }
.page-hero .label {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 14px;
}
.page-hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 18px;
}
.page-hero p {
  max-width: 680px;
  color: var(--moss);
  font-size: 1.05rem;
}

.page-main { max-width: var(--maxw); margin: 0 auto; padding: 72px 32px 96px; }
.section-block { padding: 44px 0; border-top: 1px solid var(--sand); }
.section-block h2 {
  font-size: 1.7rem;
  margin-bottom: 10px;
}
.section-intro {
  max-width: 760px;
  color: var(--moss);
  margin-bottom: 26px;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.media-item {
  background: var(--paper);
  border: 1px solid var(--sand);
  border-radius: 8px;
  overflow: hidden;
}
.media-preview {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  position: relative;
}
.media-slot { position: relative; }
.media-slot video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #102018;
}
.media-upload-button {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 0;
  border-radius: 5px;
  background: rgba(28,32,33,.82);
  color: #F5F2EC;
  font: 600 .76rem/1 Inter, "Noto Sans SC", sans-serif;
  cursor: pointer;
}
.media-upload-button:hover { background: rgba(44,74,62,.92); }
.media-upload-button input { display: none; }
.media-upload-button svg { width: 15px; height: 15px; }
.media-preview.video::after {
  content: "▶";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.6rem;
  background: rgba(28,32,33,.25);
}
.media-caption {
  padding: 14px 16px;
  font-size: .84rem;
  color: var(--moss);
}

.page-footer {
  background: #1C2021;
  color: rgba(245,242,236,.55);
  padding: 28px 32px;
  font-size: .8rem;
}
.page-footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.page-footer a { color: inherit; }

@media (max-width: 900px) {
  .company-bar {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .company-english, .company-chinese, .company-contact { justify-self: center; }
  .company-chinese { margin-top: 4px; }
  .company-contact { text-align: center; margin-top: 12px; }
  .site-nav-inner, .site-nav-links { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: 1fr; }
  .page-hero, .page-main { padding-left: 20px; padding-right: 20px; }
}
