:root {
  --bg: #f8fbff;
  --surface: #ffffff;
  --primary: #0f4c81;
  --primary-2: #2e6da4;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5edf5;
  --shadow: 0 12px 40px rgba(15, 76, 129, 0.08);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Noto Sans TC', sans-serif; color: var(--text); background: #fff; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand-image-only { display:flex; align-items:center; }
.brand-header-image.large { height: 68px; width: auto; object-fit: contain; display:block; }
.nav { display: flex; gap: 28px; font-weight: 600; }
.nav a { color: #475569; }
.nav a:hover { color: var(--primary); }
.lang-switch { display: flex; gap: 8px; }
.lang-btn { border: 1px solid #cfe0ef; background: white; color: var(--primary); border-radius: 999px; padding: 8px 12px; font-weight: 700; cursor: pointer; }
.lang-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.hero.hero-center-clean {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(248,251,255,.98) 0%, rgba(239,246,252,.96) 100%),
    radial-gradient(circle at center, rgba(99,153,212,.10) 0%, rgba(99,153,212,0) 60%);
}
.hero-backdrop.solid { display:none; }
.hero-center-layout {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  width: 100%;
}
.hero-copy.centered {
  max-width: 760px;
  text-align: center;
  padding: 18px 0;
}
.eyebrow, .section-kicker { margin: 0 0 14px; color: var(--primary-2); font-size: .8rem; font-weight: 800; letter-spacing: .18em; }
.hero h1 { margin: 0 0 18px; font-size: clamp(2.6rem, 4vw, 4.8rem); line-height: 1.12; }
.hero-subtitle { font-size: 1.25rem; font-weight: 700; margin: 0 0 14px; color: #334155; }
.hero-description { margin: 0 auto 30px; font-size: 1.05rem; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-actions.center { justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 22px; border-radius: 12px; font-weight: 800; transition: .2s ease; }
.btn-primary { background: var(--primary); color: white; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-secondary { border: 1.5px solid var(--primary); color: var(--primary); background: rgba(255,255,255,.96); }
.btn-light { background: white; color: var(--primary); }
section { padding: 84px 0; }
.section-head { text-align: center; margin-bottom: 42px; }
.section-head h2 { margin: 0; font-size: clamp(1.9rem, 3vw, 3rem); }
.card-grid { display: grid; gap: 24px; }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.info-card, .product-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.info-card { padding: 30px 24px; text-align: center; }
.info-card .icon { font-size: 2rem; margin-bottom: 14px; }
.info-card h3 { margin: 0 0 10px; }
.info-card p { margin: 0; color: var(--muted); }
.featured-products { background: var(--bg); }
.product-card { overflow: hidden; }
.product-card img { width: 100%; height: 240px; object-fit: cover; display: block; }
.product-body { padding: 24px; }
.product-body h3 { margin: 0 0 10px; }
.product-body p { margin: 0 0 18px; color: var(--muted); }
.text-link { color: var(--primary); font-weight: 800; }
.cta-band { background: linear-gradient(135deg, #0f4c81 0%, #1f6db2 100%); color: white; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.light { color: #cfe6ff; }
.site-footer { background: #0f172a; color: #e5e7eb; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: white; margin-top: 0; }
.footer-brand { font-size: 1.2rem; font-weight: 800; color: white; }
.footer-sub, .site-footer p, .site-footer a { color: #cbd5e1; }
.footer-copy { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; color: #94a3b8; font-size: .92rem; }

  .hero.hero-center-clean { min-height: 460px; }
  section { padding: 58px 0; }
  .footer-copy { flex-direction: column; }
  .brand-header-image.large { height: 50px; }
}

/* ===== RWD Mobile ===== */
@media (max-width: 980px) {
  .card-grid.four, .card-grid.three, .footer-grid, .cta-inner { grid-template-columns: 1fr; }
  .nav { display: none; }
  .site-header { position: sticky; top: 0; z-index: 100; }
  .header-inner { padding: 12px 0; min-height: auto; flex-wrap: nowrap; gap: 10px; }
  .brand-header-image.large { height: 42px; }
  .lang-switch { gap: 6px; }
  .lang-btn { padding: 6px 9px; font-size: .8rem; }
  .hero.hero-center-clean { min-height: 480px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-description { font-size: .95rem; }
  section { padding: 56px 0; }
  .card-grid.two { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 28px); }
  .header-inner { padding: 10px 0; }
  .brand-header-image.large { height: 36px; }
  .lang-btn { padding: 5px 8px; font-size: .75rem; }
  .hero.hero-center-clean { min-height: 400px; }
  .hero-center-card { padding: 24px 16px; }
  .hero h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); }
  .hero-subtitle { font-size: .95rem; }
  .hero-description { font-size: .9rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 300px; justify-content: center; }
  section { padding: 44px 0; }
  .section-head h2 { font-size: 1.7rem; }
  .info-card { padding: 22px 18px; }
  .footer-copy { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-inner h2 { font-size: 1.6rem; }
  .subpage-hero { padding: 72px 0 36px; }
  .subpage-hero h1 { font-size: 2rem; }
  .inner { padding: 44px 0 60px; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .brand-header-image.large { height: 30px; }
  .lang-btn { padding: 4px 7px; font-size: .7rem; }
  .hero h1 { font-size: 1.6rem; }
}


/* ===== MOBILE HEADER FIX ===== */
@media (max-width: 980px) {
  .site-header { position: sticky; top: 0; z-index: 200; background: #fff; box-shadow: 0 1px 8px rgba(0,0,0,.08); }
  .header-inner {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 0 !important;
    min-height: auto !important;
    gap: 8px !important;
  }
  .brand-image-only { flex: 0 0 auto; max-width: 50%; }
  .brand-header-image, .brand-header-image.large {
    height: 40px !important;
    width: auto !important;
    max-width: 180px !important;
    object-fit: contain !important;
  }
  .nav { display: none !important; }
  .lang-switch { display: none !important; }
  .hamburger { display: flex !important; flex-shrink: 0; }
}
@media (max-width: 480px) {
  .brand-header-image, .brand-header-image.large {
    height: 32px !important;
    max-width: 140px !important;
  }
}

/* ===== GRID MOBILE FIX ===== */
@media (max-width: 980px) {
  .card-grid.four {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
  }
  .card-grid.three {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .info-card {
    padding: 20px 16px !important;
  }
  .info-card h3 {
    font-size: 1rem !important;
  }
  .info-card p {
    font-size: .9rem !important;
  }
  .product-card img {
    height: 200px !important;
  }
  section {
    padding: 48px 0 !important;
  }
  .section-head {
    margin-bottom: 28px !important;
  }
  .section-head h2 {
    font-size: 1.6rem !important;
  }
}
@media (max-width: 480px) {
  .card-grid.four {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
  .info-card {
    padding: 16px 12px !important;
  }
  .info-card .icon {
    font-size: 1.6rem !important;
    margin-bottom: 10px !important;
  }
  .info-card h3 {
    font-size: .95rem !important;
    margin-bottom: 6px !important;
  }
  .info-card p {
    font-size: .85rem !important;
    line-height: 1.5 !important;
  }
}
