/* 色彩與字體 */
:root {
  --bg: #0f1f33;
  --fg: #0b1a2b;
  --text: #11243b;
  --primary: #1a73e8;
  --primary-dark: #1558b0;
  --accent: #09c372;
  --muted: #6b7a8c;
  --surface: #ffffff;
  --alt-surface: #f5f7fb;
  --shadow: rgba(17, 36, 59, 0.1);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans TC", "PingFang HK", "Microsoft JhengHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--alt-surface);
  line-height: 1.6;
}

/* 版頭與導覽 */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--surface);
  box-shadow: 0 6px 24px var(--shadow);
}
.nav {
  max-width: 1080px; margin: 0 auto; padding: 0.75rem 1rem;
  display: flex; align-items: center; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.brand-text { font-weight: 700; color: var(--text); }

.menu-toggle { margin-left: auto; font-size: 1.25rem; display: none; }
.menu-toggle { background: none; border: 1px solid #e0e6ef; border-radius: 8px; padding: 0.4rem 0.55rem; cursor: pointer; }

.nav-links { list-style: none; display: flex; gap: 1rem; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--text); font-weight: 600; padding: 0.4rem 0.6rem; border-radius: 8px; }
.nav-links a:hover { background: #eef3fb; color: var(--primary-dark); }

/* 首屏 */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 60%, #eaf3ff 100%);
}
.hero-content { max-width: 1080px; margin: 0 auto; padding: 4rem 1rem; text-align: center; }
.hero h1 { font-size: 2.4rem; margin: 0.5rem 0; color: var(--fg); }
.subtitle { color: var(--muted); font-weight: 600; }
.tagline { margin-top: 0.5rem; font-size: 1.1rem; color: #294765; }
.cta-group { display: inline-flex; gap: 0.75rem; margin-top: 1.25rem; }
.btn { display: inline-block; text-decoration: none; padding: 0.6rem 1rem; border-radius: 10px; font-weight: 700; border: 1px solid #dbe6f5; color: var(--fg); background: var(--surface); }
.btn.primary { background: var(--primary); color: white; border-color: var(--primary); }
.btn.primary:hover { background: var(--primary-dark); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px var(--shadow); }

/* 共用區塊 */
.section { padding: 3rem 1rem; }
.section.alt { background: var(--surface); }
.container { max-width: 1080px; margin: 0 auto; }
.section h2 { font-size: 1.8rem; margin-top: 0; color: var(--fg); }
.company-info { list-style: none; padding: 0; margin: 1rem 0 0; }
.company-info li { margin: 0.25rem 0; }

/* 業務卡片 */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.service-card { background: var(--alt-surface); border: 1px solid #e6eef8; border-radius: 14px; padding: 1rem; box-shadow: 0 10px 24px var(--shadow); }
.service-card .icon { font-size: 1.6rem; }
.service-card h3 { margin: 0.5rem 0; }
.service-card p { margin: 0.25rem 0 0; color: #35526f; }

/* 聯絡與地圖 */
.contact-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1rem; align-items: start; }
.map-wrap { border-radius: 12px; overflow: hidden; box-shadow: 0 10px 24px var(--shadow); border: 1px solid #e6eef8; }
.map-wrap iframe { width: 100%; height: 300px; border: 0; }
.note { color: var(--muted); }

/* 頁尾 */
.site-footer { background: var(--surface); border-top: 1px solid #e6eef8; }
.footer-content { display: flex; justify-content: space-between; align-items: center; max-width: 1080px; margin: 0 auto; padding: 1.25rem 1rem; }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; }
.footer-brand img { width: 28px; height: 28px; }
.muted { color: var(--muted); }

/* 響應式 */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .menu-toggle { display: block; }
  .nav-links { display: none; position: absolute; right: 1rem; top: 60px; background: var(--surface); border: 1px solid #e6eef8; border-radius: 12px; padding: 0.5rem; box-shadow: 0 10px 24px var(--shadow); }
  .nav-links.open { display: block; }
  .nav-links li { margin: 0.25rem 0; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-content { padding: 3rem 1rem; }
  .hero h1 { font-size: 2rem; }
}