/* oujie.company — hand-written, no external resources */
:root {
  --blue: #376092;
  --navy: #1f3b5c;
  --navy-2: #16304d;
  --red: #cc3300;
  --fg: #23272e;
  --muted: #5d6470;
  --line: #e2e5ea;
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --wrap: 1120px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.8 -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "Noto Sans CJK TC", "PingFang TC", "Microsoft JhengHei", "Heiti TC", sans-serif;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--red); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg); font-weight: 700; font-size: 22px; letter-spacing: .04em; white-space: nowrap; }
.brand img { width: 54px; height: auto; }
.brand:hover { color: var(--navy); }
.site-header ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.site-header nav a { display: block; padding: 8px 14px; border-radius: 6px; text-decoration: none; color: var(--muted); font-size: 16px; white-space: nowrap; }
.site-header nav a:hover { color: var(--navy); background: var(--bg-soft); }
.site-header nav a[aria-current="page"] { color: var(--navy); font-weight: 700; box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }

/* home hero */
.hero { position: relative; overflow: hidden; background: var(--navy-2); min-height: min(78vh, 760px); display: flex; align-items: flex-end; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,22,38,.05) 30%, rgba(10,22,38,.72) 100%); }
.hero-text { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 64px; color: #fff; }
.hero-text h1 { margin: 0; font-size: clamp(32px, 6vw, 60px); line-height: 1.3; letter-spacing: .12em; font-weight: 500; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.hero-text .motto { margin: 14px 0 0; font-size: clamp(20px, 3vw, 30px); font-weight: 700; letter-spacing: .1em; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.hero-text .motto::before { content: ""; display: block; width: 56px; height: 3px; background: var(--red); margin-bottom: 14px; }

.band { background: var(--bg-soft); padding: 80px 0; text-align: center; }
.band .lead { margin: 0; font-size: clamp(24px, 4vw, 38px); letter-spacing: .08em; color: var(--navy); line-height: 1.5; }

/* inner page head */
.page-head { background: linear-gradient(135deg, var(--navy-2), var(--blue)); color: #fff; padding: 64px 0; text-align: center; }
.page-head h1 { margin: 0; font-size: clamp(28px, 5vw, 44px); letter-spacing: .14em; font-weight: 700; }

/* prose */
.prose { max-width: 860px; padding-top: 56px; padding-bottom: 72px; }
.prose p { font-size: clamp(18px, 2.1vw, 22px); line-height: 1.9; margin: 0 0 1.4em; }
.prose strong { color: var(--navy); }
.center { text-align: center; }
.signature { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 56px; flex-wrap: wrap; }
.signature img { width: 104px; }
.signature span { font-size: clamp(22px, 3vw, 32px); letter-spacing: .14em; color: var(--fg); }

/* products */
.intro { text-align: center; padding: 48px 0 36px; }
.intro p { text-wrap: balance; margin: 0; font-size: clamp(19px, 2.4vw, 26px); font-weight: 700; color: var(--navy); line-height: 1.6; }
.gallery { display: grid; gap: 24px; margin-bottom: 24px; }
.gallery.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 72px; }
.gallery figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: 0 1px 3px rgba(20,40,70,.06); }
.gallery img { width: 100%; height: auto; object-fit: cover; }
.gallery.g2 img { aspect-ratio: 4 / 3; }
.gallery.g3 img { aspect-ratio: 3 / 4; }
.gallery figcaption { padding: 10px 14px; text-align: center; font-weight: 700; color: var(--navy); border-top: 1px solid var(--line); background: var(--bg-soft); }

/* contact */
.contact { padding-top: 56px; padding-bottom: 80px; }
.contact-list { max-width: 640px; margin: 0 auto; display: grid; gap: 4px; }
.contact-list > div { display: grid; grid-template-columns: 8em 1fr; gap: 12px; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.contact-list dt { color: var(--muted); font-size: 16px; padding-top: 3px; }
.contact-list dd { margin: 0; font-size: clamp(19px, 2.4vw, 22px); overflow-wrap: anywhere; }
.contact-list dd a { text-decoration: none; }
.map-link { display: inline-block; margin-top: 6px; font-size: 16px; }

.btn { display: inline-block; background: var(--navy); color: #fff; text-decoration: none; padding: 10px 22px; border-radius: 6px; }
.btn:hover { background: var(--red); color: #fff; }

/* footer */
.site-footer { background: var(--navy-2); color: #c9d3df; text-align: center; padding: 32px 0; font-size: 15px; }
.site-footer p { margin: 4px 0; }
.site-footer .f-name { color: #fff; font-size: 18px; letter-spacing: .08em; }
.site-footer a { color: #fff; }
.f-contact span { white-space: nowrap; }
.f-contact span + span::before { content: "· "; }

/* responsive */
@media (max-width: 860px) {
  .header-inner { flex-direction: column; align-items: stretch; gap: 4px; padding-top: 10px; padding-bottom: 4px; min-height: 0; }
  .brand { font-size: 19px; justify-content: center; }
  .brand img { width: 44px; }
  .site-header ul { justify-content: center; gap: 0; }
  .site-header nav a { padding: 8px 10px; font-size: 15px; }
  .site-header { position: static; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .hero { min-height: 62vh; }
  .hero-text { padding-bottom: 40px; }
  .band { padding: 52px 0; }
  .page-head { padding: 44px 0; }
  .prose { padding-top: 36px; padding-bottom: 48px; }
  .gallery { gap: 14px; margin-bottom: 14px; }
  .gallery.g2 { grid-template-columns: 1fr; }
  .gallery.g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 48px; }
  .gallery figcaption { font-size: 14px; padding: 8px 6px; }
  .contact-list > div { grid-template-columns: 1fr; gap: 2px; padding: 14px 2px; }
}
@media (max-width: 360px) {
  .site-header nav a { padding: 8px 7px; font-size: 14px; }
}
