/* ==========================================================================
   NETKLASS — RWD site
   Navigation styled after lept.com.tw (clean white bar, green accent,
   top utility strip, hover underline, mobile hamburger).
   ========================================================================== */

:root {
  --brand: #2563eb;          /* primary blue */
  --brand-dark: #1d4ed8;
  --brand-rgb: 37, 99, 235;
  --accent: #00a651;         /* secondary green */
  --accent-dark: #008542;
  --ink: #1f2a37;
  --ink-soft: #4b5563;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f5f7f8;
  --top-bar-bg: #f1f3f4;
  --footer-bg: #1f2a37;
  --footer-bg-2: #18222e;
  --footer-text: #cbd5e1;
  --max: 1200px;
  --nav-h: 78px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC",
               -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- Top utility bar ---------- */
.top-bar {
  background: var(--top-bar-bg);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 36px;
}
.top-bar a:hover { color: var(--brand); }
.tb-item { display: inline-block; }
.tb-divider {
  margin: 0 12px;
  color: #c7ccd1;
}
.lang-link {
  font-weight: 500;
  letter-spacing: 0.02em;
}
.lang-link.active { color: var(--brand); font-weight: 700; }

/* Language switcher (3-button pill group) */
.lang-switch {
  display: inline-flex;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  gap: 0;
}
.lang-switch button {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--ink-soft);
  transition: background .18s ease, color .18s ease;
}
.lang-switch button:hover { color: var(--brand); }
.lang-switch button.active {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 6px rgba(var(--brand-rgb),.25);
}

/* ---------- Main navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(120deg, #3b82f6 0%, var(--brand) 45%, var(--brand-dark) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 18px rgba(15,23,42,0.12);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-mark {
  width: 44px; height: 44px;
  border-radius: 10px;
  object-fit: contain;
  display: inline-block;
  background: #ffffff;
  padding: 3px;
  border: none;
  box-shadow:
    0 0 8px rgba(255, 215, 0, 0.85),
    0 0 18px rgba(232, 195, 75, 0.65),
    0 0 30px rgba(212, 175, 55, 0.45),
    0 0 45px rgba(184, 134, 11, 0.3);
  transition: box-shadow 0.3s ease;
}
.logo-mark:hover {
  box-shadow:
    0 0 12px rgba(255, 230, 120, 1),
    0 0 24px rgba(241, 199, 91, 0.85),
    0 0 38px rgba(212, 175, 55, 0.6),
    0 0 55px rgba(184, 134, 11, 0.4);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-cn { font-size: 18px; font-weight: 800; color: #fff; letter-spacing: 0.04em; }
.logo-en { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.78); letter-spacing: 0.12em; }

/* desktop menu */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: inline-block;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  position: relative;
  transition: color .2s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px;
  bottom: 6px;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.main-nav a:hover { color: #fff; }
.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: #fff; }

/* hamburger */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  margin: 5px auto;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(120deg, rgba(var(--brand-rgb),.08), rgba(var(--brand-rgb),0) 60%),
    radial-gradient(1200px 400px at 80% -20%, rgba(var(--brand-rgb),.18), transparent 60%),
    var(--bg-soft);
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--line);
}
.hero-inner { max-width: 760px; }
.hero h1 {
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.hero h1 span {
  display: block;
  margin-top: 8px;
  font-size: clamp(14px, 1.6vw, 18px);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero p {
  color: var(--ink-soft);
  font-size: 17px;
  margin: 0 0 32px;
}
.btn-primary {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 6px 16px rgba(var(--brand-rgb),.3);
}
.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(var(--brand-rgb),.35);
}

/* ---------- Highlights ---------- */
.highlights { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 {
  font-size: 28px;
  margin: 0 0 6px;
  color: var(--ink);
  font-weight: 800;
}
.section-title p {
  margin: 0;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(15,23,42,.07);
  border-color: rgba(var(--brand-rgb),.3);
}
.card-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: rgba(var(--brand-rgb),.10);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--ink);
}
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 60px 24px 40px;
}
.footer-col h4 {
  color: #fff;
  font-size: 15px;
  margin: 0 0 18px;
  letter-spacing: 0.06em;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 32px; height: 2px;
  background: var(--brand);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-logo strong { display: block; color: #fff; font-size: 16px; }
.footer-logo small { display: block; color: #94a3b8; font-size: 11px; letter-spacing: 0.12em; }
.footer-desc { color: #94a3b8; font-size: 14px; line-height: 1.8; margin: 0; }

.footer-list, .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-list li {
  font-size: 14px;
  margin-bottom: 10px;
  color: #cbd5e1;
}
.footer-list li strong {
  display: inline-block;
  min-width: 48px;
  color: #fff;
  font-weight: 600;
  margin-right: 10px;
}
.footer-list a:hover, .footer-links a:hover { color: var(--brand); }
.footer-links li { margin-bottom: 10px; font-size: 14px; }
.footer-links a { color: #cbd5e1; transition: color .2s, padding-left .2s; }
.footer-links a:hover { padding-left: 4px; }

.social { display: flex; gap: 10px; }
.social-ico {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s, transform .2s;
}
.social-ico:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  background: var(--footer-bg-2);
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  font-size: 13px;
  color: #94a3b8;
}
.footer-bottom a:hover { color: var(--brand); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .top-bar-inner { flex-direction: column; height: auto; padding: 8px 0; gap: 4px; }
  .top-bar { font-size: 12px; }

  .nav-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%);
    border-top: 1px solid rgba(255,255,255,0.12);
    border-bottom: 1px solid rgba(255,255,255,0.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
    box-shadow: 0 8px 18px rgba(15,23,42,0.18);
  }
  .main-nav.open { max-height: 600px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 0; }
  .main-nav li { border-bottom: 1px solid rgba(255,255,255,0.10); }
  .main-nav li:last-child { border-bottom: 0; }
  .main-nav a {
    display: block;
    padding: 14px 24px;
    font-size: 16px;
  }
  .main-nav a::after { display: none; }
  .main-nav a:hover, .main-nav a.active {
    background: rgba(255,255,255,0.12);
    color: #fff;
  }

  .logo-cn { font-size: 16px; }
  .logo-en { font-size: 10px; }

  .hero { padding: 64px 0 56px; }
  .highlights { padding: 56px 0; }

  .cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding: 48px 24px 32px; }
  .footer-bottom-inner { flex-direction: column; gap: 6px; text-align: center; }
}

@media (max-width: 420px) {
  .container { padding: 0 18px; }
  .logo-text { display: none; }
  .hero h1 { letter-spacing: 0; }
}

/* ==========================================================================
   WCS page
   ========================================================================== */
.wcs-showcase {
  padding: 56px 0 16px;
  background: var(--bg);
}
.wcs-showcase-figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15,23,42,.08);
  border: 1px solid var(--line);
}
.wcs-showcase-figure img { width: 100%; height: auto; display: block; }

.wcs-features { padding: 64px 0 80px; background: var(--bg); }
.wcs-row {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 48px;
  border-radius: 20px;
  margin-bottom: 28px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.wcs-row:last-child { margin-bottom: 0; }
.wcs-row.reverse .wcs-row-media { order: 2; }
.wcs-row.reverse .wcs-row-text { order: 1; }

/* Scheme A — light grey card (Features 01, 03, 05) */
.wcs-row:nth-child(odd) {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  border: 1px solid #d1d5db;
  box-shadow: 0 8px 24px rgba(15,23,42,.06);
}
.wcs-row:nth-child(odd) .wcs-tag { color: #4b5563; }
.wcs-row:nth-child(odd) .wcs-row-text h3 { color: #111827; }
.wcs-row:nth-child(odd) .wcs-row-text p { color: #374151; }
.wcs-row:nth-child(odd) .wcs-list li { color: #374151; }
.wcs-row:nth-child(odd) .wcs-list li::before { background: #6b7280; }
.wcs-row:nth-child(odd) .wcs-row-media img {
  border: 1px solid #d1d5db;
  box-shadow: 0 14px 30px rgba(15,23,42,.08);
}
.wcs-row:nth-child(odd):hover {
  box-shadow: 0 14px 32px rgba(15,23,42,.10);
}

/* Scheme B — deep green gradient (Features 02, 04, 06) */
.wcs-row:nth-child(even) {
  background: linear-gradient(135deg, #065f46 0%, #064e3b 100%);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 14px 36px rgba(6,78,59,.32);
  color: #fff;
}
.wcs-row:nth-child(even) .wcs-tag { color: #6ee7b7; }
.wcs-row:nth-child(even) .wcs-row-text h3 { color: #fff; }
.wcs-row:nth-child(even) .wcs-row-text p { color: rgba(255,255,255,.88); }
.wcs-row:nth-child(even) .wcs-list li { color: rgba(255,255,255,.88); }
.wcs-row:nth-child(even) .wcs-list li::before { background: #6ee7b7; }
.wcs-row:nth-child(even) .wcs-row-media img {
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 18px 40px rgba(0,0,0,.32);
}

.wcs-row-media img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px rgba(15,23,42,.07);
  transition: transform .35s ease, box-shadow .35s ease;
}
.wcs-row-media img:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 36px rgba(15,23,42,.1);
}

.wcs-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.wcs-row-text h3 {
  margin: 0 0 18px;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.35;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.01em;
}
.wcs-row-text p {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.8;
}
.wcs-row-text p:last-child { margin-bottom: 0; }

.wcs-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.wcs-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.75;
}
.wcs-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 14px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}
.wcs-list li:last-child { margin-bottom: 0; }

.wcs-cta {
  background:
    linear-gradient(120deg, rgba(var(--brand-rgb),.08), rgba(var(--brand-rgb),0) 60%),
    var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 48px 0;
}
.wcs-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.wcs-cta h2 {
  margin: 0 0 6px;
  font-size: 22px;
  color: var(--ink);
  font-weight: 800;
}
.wcs-cta p { margin: 0; color: var(--ink-soft); font-size: 15px; }

@media (max-width: 1024px) {
  .wcs-row { gap: 36px; padding: 36px; }
}

@media (max-width: 768px) {
  .wcs-showcase { padding: 40px 0 8px; }
  .wcs-features { padding: 32px 0 56px; }
  .wcs-row {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 22px;
    margin-bottom: 20px;
    border-radius: 16px;
  }
  .wcs-row.reverse .wcs-row-media { order: 0; }
  .wcs-row.reverse .wcs-row-text { order: 0; }
  .wcs-cta-inner { justify-content: flex-start; }
}
