:root {
  --teal: #0d4a5a;
  --teal-mid: #156678;
  --green: #2d8a5e;
  --green-light: #3aad72;
  --sand: #e8a838;
  --sand-light: #f0c060;
  --bg: #ffffff;
  --bg-gray: #f0f7f4;
  --bg-dark: #0d4a5a;
  --text: #1a3338;
  --text-muted: #4a6a72;
  --text-light: #7a9aa2;
  --text-on-dark: #e8f4f0;
  --border: #d0e4dc;
  --max: 1140px;
  --radius: 6px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Noto Sans TC', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.3; font-weight: 700; color: var(--teal); }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--green); margin-bottom: 10px;
}
.eyebrow--light { color: var(--sand-light); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.88rem;
  padding: 11px 24px; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn--primary { background: var(--green); color: #fff; border-color: var(--green); }
.btn--primary:hover { background: var(--green-light); border-color: var(--green-light); }
.btn--outline { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn--outline:hover { background: var(--bg-gray); }
.btn--lg { padding: 14px 30px; font-size: 0.95rem; }
.btn--block { width: 100%; }

/* Topbar */
.topbar { background: var(--teal); color: rgba(255,255,255,0.85); font-size: 0.82rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 38px; }
.topbar__contact { display: flex; gap: 22px; }
.topbar__contact a { color: rgba(255,255,255,0.9); }
.topbar__contact a:hover { color: var(--sand-light); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 100; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: 0 1px 6px rgba(13,74,90,0.05); }
.nav__inner { display: flex; align-items: center; height: 70px; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.95rem; flex-shrink: 0; color: var(--teal); }
.brand__mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: var(--green); color: #fff; font-weight: 700; border-radius: var(--radius);
}
.brand__suffix { font-weight: 500; color: var(--text-muted); font-size: 0.72rem; letter-spacing: 0.02em; }
.nav__links { display: flex; gap: 26px; flex: 1; }
.nav__links a { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); }
.nav__links a:hover { color: var(--teal); }
.nav__right { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }
.nav__phone { display: none; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 22px; height: 2px; background: var(--teal); }

/* Language switcher */
.lang-switch { position: relative; }
.lang-switch__btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; background: var(--bg-gray);
  border: 2px solid var(--border); border-radius: var(--radius);
  font-size: 0.88rem; font-weight: 700; color: var(--teal); cursor: pointer; min-width: 78px;
}
.lang-switch__btn:hover { border-color: var(--teal); }
.lang-switch__flag { font-size: 1.05rem; }
.lang-switch__label { letter-spacing: 0.04em; }
.lang-switch__arrow { color: var(--text-muted); }
.lang-switch__menu {
  display: none; position: absolute; top: calc(100% + 4px); right: 0;
  min-width: 165px; background: var(--bg); border: 2px solid var(--border);
  border-radius: var(--radius); list-style: none; box-shadow: 0 6px 20px rgba(13,74,90,0.1); z-index: 200;
}
.lang-switch__menu.open { display: block; }
.lang-switch__menu li { padding: 11px 15px; font-size: 0.88rem; font-weight: 600; cursor: pointer; border-bottom: 1px solid var(--border); }
.lang-switch__menu li:last-child { border-bottom: none; }
.lang-switch__menu li:hover, .lang-switch__menu li.active { background: var(--bg-gray); color: var(--teal); }

/* Hero */
.hero { padding: 72px 0 80px; background: linear-gradient(180deg, var(--bg-gray) 0%, var(--bg) 100%); }
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.hero__copy h1 { font-size: clamp(1.85rem, 3.4vw, 2.5rem); margin-bottom: 20px; letter-spacing: -0.01em; }
.hero__sub { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 30px; max-width: 520px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.hero__badges { display: flex; gap: 10px; flex-wrap: wrap; }
.hero__badges span {
  font-size: 0.78rem; font-weight: 600; color: var(--teal);
  padding: 7px 15px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
}
.hero__image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-gray); }

/* Sections */
.section { padding: 76px 0; }
.section--gray { background: var(--bg-gray); }
.section--dark { background: var(--bg-dark); color: var(--text-on-dark); }
.section--dark h2 { color: #fff; }
.section--dark .contact__info > p { color: rgba(255,255,255,0.65); }
.section--dark .contact__list a { color: #fff; }
.section--dark .contact__label { color: rgba(255,255,255,0.45); }
.section__head { margin-bottom: 48px; }
.section__head--center { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; margin-bottom: 48px; }
.section__head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 14px; }
.section__head p { color: var(--text-muted); font-size: 1.02rem; }

/* Service grid */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 48px; }
.service-card { padding: 32px 24px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); text-align: center; transition: border-color 0.2s, box-shadow 0.2s; }
.service-card:hover { border-color: var(--green); box-shadow: 0 4px 16px rgba(45,138,94,0.1); }
.service-card__icon { font-size: 2rem; display: block; margin-bottom: 16px; }
.service-card h3 { font-size: 1rem; margin-bottom: 10px; color: var(--teal); }
.service-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.55; }

/* Gallery */
.gallery { display: grid; gap: 20px; }
.gallery--2 { grid-template-columns: 1fr 1fr; }
.gallery__item { margin: 0; }
.gallery__item img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-gray); }
.gallery__item figcaption { font-size: 0.82rem; color: var(--text-light); margin-top: 10px; text-align: center; }

/* Facilities */
.platform__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.platform__image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-gray); }
.platform__copy h2 { font-size: 1.75rem; margin-bottom: 16px; }
.platform__copy > p { color: var(--text-muted); margin-bottom: 24px; font-size: 1rem; }
.checklist { list-style: none; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 24px; font-size: 0.94rem; color: var(--text-muted); }
.checklist li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* Location */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-item { padding: 32px 24px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); text-align: center; transition: border-color 0.2s; }
.why-item:hover { border-color: var(--sand); }
.why-item__icon { font-size: 2rem; display: block; margin-bottom: 16px; }
.why-item h3 { font-size: 1rem; margin-bottom: 10px; }
.why-item p { font-size: 0.88rem; color: var(--text-muted); }

/* About */
.about__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about__copy h2 { font-size: 1.75rem; margin-bottom: 16px; }
.about__copy p { color: var(--text-muted); margin-bottom: 22px; font-size: 0.96rem; line-height: 1.7; }
.about__list { list-style: none; display: grid; gap: 11px; }
.about__list li { position: relative; padding-left: 18px; font-size: 0.92rem; color: var(--text-muted); }
.about__list li::before { content: ''; position: absolute; left: 0; top: 10px; width: 8px; height: 2px; background: var(--green); }
.about__image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-gray); }

/* Contact */
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
.contact__info h2 { font-size: 1.75rem; margin-bottom: 14px; }
.contact__info > p { margin-bottom: 30px; line-height: 1.7; }
.contact__list { list-style: none; display: grid; gap: 20px; }
.contact__label { display: block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 5px; }
.contact__list a:hover { color: var(--sand-light); }
.contact__form { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); padding: 32px; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 0.84rem; font-weight: 600; margin-bottom: 6px; color: rgba(255,255,255,0.85); }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 14px; border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius); background: rgba(255,255,255,0.07); color: #fff;
  font-size: 0.92rem; font-family: inherit; outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--sand); }
.field select option { color: var(--text); background: var(--bg); }
.contact__note { font-size: 0.8rem; color: rgba(255,255,255,0.4); margin-top: 12px; text-align: center; }

/* Footer */
.footer { background: var(--teal); color: rgba(255,255,255,0.75); padding: 48px 0; border-top: 3px solid var(--green); }
.footer .brand { color: #fff; }
.footer .brand__mark { background: var(--green); color: #fff; }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; }
.footer__brand p { font-size: 0.86rem; margin-top: 12px; line-height: 1.6; }
.footer__legal { font-size: 0.78rem; color: rgba(255,255,255,0.4); margin-top: 8px; }
.footer__copy { font-size: 0.78rem; color: rgba(255,255,255,0.3); margin-top: 6px; }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.footer__links a { font-size: 0.86rem; font-weight: 500; color: rgba(255,255,255,0.65); }
.footer__links a:hover { color: var(--sand-light); }

/* Responsive */
@media (max-width: 960px) {
  .service-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .nav__links { display: none; }
  .nav__links.open { display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--bg); padding: 20px 28px; gap: 16px; border-bottom: 1px solid var(--border); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
  .nav__toggle { display: flex; }
  .nav__phone { display: inline-flex; }
  .hero__inner, .platform__inner, .about__inner, .contact__inner { grid-template-columns: 1fr; }
  .hero__image, .platform__image { order: -1; }
  .gallery--2 { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; }
}
@media (max-width: 520px) {
  .service-grid, .why-grid { grid-template-columns: 1fr; }
  .topbar__inner { flex-direction: column; height: auto; padding: 6px 0; gap: 2px; }
  .nav__right .btn--primary { display: none; }
}
