/* UniMax 陽明資訊 — Modern Redesign
   UTF-8, no external dependencies */

/* ── Reset & Base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:       #1a3a6b;
  --primary-light: #2a5298;
  --accent:        #e67e22;
  --accent-dark:   #ca6f1e;
  --bg:            #f5f6fa;
  --white:         #ffffff;
  --text:          #2c3e50;
  --text-muted:    #5d6d7e;
  --border:        #dde1e7;
  --green:         #27ae60;
  --purple:        #8e44ad;
  --nav-h:         64px;
  --sidebar-w:     220px;
  --radius:        12px;
  --shadow:        0 4px 20px rgba(0,0,0,.10);
  --shadow-sm:     0 2px 8px rgba(0,0,0,.07);
  --font: 'Noto Sans TC', -apple-system, 'PingFang TC', 'Microsoft JhengHei',
          'Heiti TC', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
}

a { color: inherit; text-decoration: none; }

/* ── Header / Nav ─────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--primary);
  display: flex;
  align-items: center;
  padding: 0 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.logo {
  display: flex;
  flex-direction: column;
  color: var(--white);
  line-height: 1.2;
  margin-right: auto;
  flex-shrink: 0;
}
.logo-tc  { font-size: 18px; font-weight: 700; letter-spacing: .05em; }
.logo-en  { font-size: 11px; color: rgba(255,255,255,.65); letter-spacing: .12em; text-transform: uppercase; }

.site-nav {
  display: flex;
  gap: 4px;
  list-style: none;
}
.site-nav a {
  display: block;
  padding: 8px 16px;
  border-radius: 6px;
  color: rgba(255,255,255,.85);
  font-size: 14px;
  font-weight: 500;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a.active { background: rgba(255,255,255,.15); color: var(--white); }

/* ── Page Banner ──────────────────────────────── */
.page-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 40px 32px;
  color: var(--white);
}
.page-banner h1 { font-size: 26px; font-weight: 700; }
.page-banner p  { margin-top: 6px; color: rgba(255,255,255,.75); font-size: 14px; }

/* ── Content layout (sidebar + main) ─────────── */
.content-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  gap: 28px;
  align-items: start;
}

/* ── Sidebar ──────────────────────────────────── */
.sidebar {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.sidebar-title {
  background: var(--primary);
  color: var(--white);
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
}
.sidebar-nav { list-style: none; }
.sidebar-nav li a {
  display: block;
  padding: 12px 18px;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background .15s, color .15s, padding-left .15s;
}
.sidebar-nav li:last-child a { border-bottom: none; }
.sidebar-nav li a:hover,
.sidebar-nav li a.active {
  background: var(--bg);
  color: var(--primary);
  padding-left: 24px;
  font-weight: 600;
}

/* Accent colours for sidebar title per section */
.sidebar--blue  .sidebar-title { background: var(--primary); }
.sidebar--green .sidebar-title { background: var(--green); }
.sidebar--purple .sidebar-title { background: var(--purple); }
.sidebar--orange .sidebar-title { background: var(--accent); }

/* ── Main content card ────────────────────────── */
.content-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 32px 36px;
}
.content-card h2 {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}
.content-card h3 {
  font-size: 16px;
  color: var(--primary-light);
  margin: 24px 0 10px;
}
.content-card p { color: var(--text); line-height: 1.9; margin-bottom: 12px; }

/* ── Capability grid ──────────────────────────── */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.cap-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.4;
}

/* ── Module list / 條列式 (products) ─────────── */
.module-list {
  margin: 12px 0 0 0;
  padding: 0;
  list-style: none;
}
.module-list li {
  position: relative;
  padding: 4px 4px 4px 28px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
}
.module-list li::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 12px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--purple);
}
.module-list--blue   li::before { background: #1565c0; }
.module-list--teal   li::before { background: #00695c; }
.module-list--orange li::before { background: #e65100; }
.module-list--gray   li::before { background: #546e7a; }

/* ── Industry section ─────────────────────────── */
.industry-section { margin-top: 40px; }
.industry-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.industry-header h3 {
  margin: 0;
  font-size: 17px;
  color: var(--text);
  border: none;
  padding: 0;
}
.industry-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.badge--purple { background: var(--purple); color: #fff; }
.badge--blue   { background: #1565c0;       color: #fff; }
.badge--teal   { background: #00695c;       color: #fff; }
.badge--orange { background: #e65100;       color: #fff; }
.badge--gray   { background: #546e7a;       color: #fff; }

/* ── Tech stack chips ─────────────────────────── */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}
.tech-chip {
  background: #e8f5e9;
  color: var(--green);
  border: 1px solid #a5d6a7;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
}

/* Tech advantages list */
.tech-list { list-style: none; margin: 12px 0; }
.tech-list li {
  padding: 8px 0 8px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  position: relative;
}
.tech-list li:last-child { border-bottom: none; }
.tech-list li::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 10px;
  top: 10px;
}

/* ── HR cards ─────────────────────────────────── */
.hr-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}
.hr-card {
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.hr-card h3 {
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 10px;
}
.hr-card p { font-size: 13px; color: var(--text-muted); }
.hr-card a.btn { margin-top: 16px; }

/* ── Culture list ─────────────────────────────── */
.culture-list { list-style: none; margin: 12px 0 0; }
.culture-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.culture-list li:last-child { border-bottom: none; }
.culture-list li::before {
  content: '◆';
  color: var(--accent);
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 4px;
}

/* ── Buttons ──────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s, transform .1s;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-outline  { background: transparent; color: var(--white);
                border: 2px solid rgba(255,255,255,.7); }
.btn-outline:hover { background: rgba(255,255,255,.1); opacity: 1; }

/* ── Hero (index.html) ────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1e4a8a 60%, #2c5f9e 100%);
  padding: 80px 32px;
  text-align: center;
  color: var(--white);
}
.hero h2 { font-size: 36px; font-weight: 800; letter-spacing: .02em; margin-bottom: 12px; }
.hero p   { font-size: 16px; color: rgba(255,255,255,.8); margin-bottom: 32px; max-width: 560px; margin-left: auto; margin-right: auto; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Nav cards (index.html) ───────────────────── */
.nav-cards {
  max-width: 960px;
  margin: 40px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.nav-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 20px;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  display: block;
}
.nav-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,.14); }
.nav-card-icon  { font-size: 36px; margin-bottom: 12px; }
.nav-card h3    { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.nav-card p     { font-size: 12px; color: var(--text-muted); }

.nav-card--blue   { border-top: 4px solid var(--primary); }
.nav-card--green  { border-top: 4px solid var(--green); }
.nav-card--purple { border-top: 4px solid var(--purple); }
.nav-card--orange { border-top: 4px solid var(--accent); }

/* ── Stats bar ────────────────────────────────── */
.stats-bar {
  background: var(--primary);
  padding: 32px 24px;
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}
.stat {
  text-align: center;
  color: var(--white);
}
.stat-num  { font-size: 36px; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 13px; color: rgba(255,255,255,.75); margin-top: 4px; }

/* ── Footer ───────────────────────────────────── */
.site-footer {
  background: #0f2147;
  color: rgba(255,255,255,.7);
  padding: 40px 32px 24px;
  margin-top: 40px;
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.footer-brand .logo-tc { font-size: 20px; color: var(--white); }
.footer-brand .logo-en { color: rgba(255,255,255,.5); }
.footer-brand p { font-size: 13px; margin-top: 10px; line-height: 1.8; }
.footer-contact h4 { color: var(--white); font-size: 14px; margin-bottom: 12px; letter-spacing: .05em; }
.footer-contact p  { font-size: 13px; line-height: 2; }
.footer-contact a  { color: var(--accent); }
.footer-bottom {
  max-width: 960px;
  margin: 24px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 12px;
  text-align: center;
  color: rgba(255,255,255,.4);
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 768px) {
  .content-wrap {
    grid-template-columns: 1fr;
  }
  .sidebar { order: -1; }

  .nav-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .cap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hr-cards {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .stats-bar { gap: 32px; }
}

@media (max-width: 480px) {
  .site-header { padding: 0 16px; }
  .site-nav a  { padding: 6px 10px; font-size: 13px; }
  .hero h2     { font-size: 26px; }
  .nav-cards   { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cap-grid    { grid-template-columns: 1fr 1fr; }
  .content-card { padding: 20px; }
}
