/* =========================================================
   JingSense Technology 璟群科技 — Site Stylesheet
   ========================================================= */

:root{
  --c-bg: #ffffff;
  --c-bg-alt: #f5f8fc;
  --c-surface: #ffffff;
  --c-surface-2: #eef2f9;
  --c-border: rgba(16, 24, 43, 0.09);
  --c-border-strong: rgba(16, 24, 43, 0.16);

  --c-text: #10182b;
  --c-text-muted: #4d5972;
  --c-text-faint: #78849c;

  --c-teal: #0e9aab;
  --c-blue: #2f7fe0;
  --c-indigo: #4c53d6;

  --grad-brand: linear-gradient(120deg, var(--c-teal) 0%, var(--c-blue) 52%, var(--c-indigo) 100%);
  --grad-brand-soft: linear-gradient(120deg, rgba(14,154,171,0.12) 0%, rgba(47,127,224,0.12) 52%, rgba(76,83,214,0.12) 100%);
  --grad-radial: radial-gradient(circle at 20% 20%, rgba(47,127,224,0.07), transparent 45%),
                 radial-gradient(circle at 85% 15%, rgba(76,83,214,0.06), transparent 40%),
                 radial-gradient(circle at 70% 85%, rgba(14,154,171,0.05), transparent 45%);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-glow: 0 20px 50px -22px rgba(47,127,224,0.35);
  --container: 1180px;
  --font-sans: "Noto Sans TC", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--c-bg);
  background-image: var(--grad-radial);
  background-attachment: fixed;
  color: var(--c-text);
  font-family: var(--font-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
h1,h2,h3,h4{ margin: 0 0 .5em; font-weight: 700; letter-spacing: 0.01em; }
p{ margin: 0 0 1em; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family: inherit; cursor:pointer; }

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

.section{ padding: 96px 0; position: relative; }
.section--tight{ padding: 64px 0; }
.section--alt{ background: var(--c-bg-alt); }
.section-head{ max-width: 680px; margin: 0 0 56px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c-blue); margin-bottom: 16px;
}
.eyebrow::before{
  content:""; width:22px; height:2px; border-radius:2px; background: var(--grad-brand);
}
h2.section-title{ font-size: clamp(28px, 3.4vw, 40px); }
.section-desc{ color: var(--c-text-muted); font-size: 17px; max-width: 620px; }
.section-desc.center{ margin-left:auto; margin-right:auto; }

.text-gradient{
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip:text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-primary{
  background: var(--grad-brand); color: #051019; box-shadow: var(--shadow-glow);
}
.btn-primary:hover{ transform: translateY(-2px); }
.btn-outline{
  border-color: var(--c-border-strong); color: var(--c-text); background: rgba(16,24,43,0.03);
}
.btn-outline:hover{ border-color: var(--c-blue); background: rgba(47,127,224,0.08); }
.btn-sm{ padding: 9px 18px; font-size: 14px; }
.btn-block{ width:100%; }

/* ---------- Navbar ---------- */
.nav{
  position: sticky; top:0; z-index: 100;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-border);
}
.nav-inner{
  display:flex; align-items:center; justify-content:space-between; gap: 12px;
  padding: 14px 24px; max-width: var(--container); margin:0 auto;
}
.brand{ display:flex; align-items:center; gap:10px; font-weight:700; font-size:17px; min-width:0; flex-shrink:1; }
.brand img{ height:32px; width:auto; flex-shrink:0; }
.brand small{ display:block; font-size:14px; font-weight:700; color: var(--c-text); letter-spacing:.02em; margin-top:1px; }
/* Nav logo lockup — enlarged for prominence; scoped to .nav so the footer
   lockup (which shares .brand) stays at its own, smaller size. Consistent
   across every page since all pages share this one .nav .brand rule. */
.nav .brand{ font-size: 21px; gap: 13px; }
.nav .brand img{ height: 44px; }
.nav .brand small{ font-size: 16.5px; }
.nav-links{ display:flex; align-items:center; gap:8px; }
.nav-links a{
  padding:9px 14px; border-radius: 999px; font-size:14.5px; color: var(--c-text-muted); font-weight:500;
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover, .nav-links a.active{ color: var(--c-text); background: rgba(16,24,43,0.05); }
.nav-right{ display:flex; align-items:center; gap:14px; }
.lang-toggle{
  display:flex; border:1px solid var(--c-border-strong); border-radius:999px; padding:3px; gap:2px;
}
.lang-toggle button{
  border:none; background:transparent; color: var(--c-text-muted); font-size:12.5px; font-weight:700;
  padding:6px 12px; border-radius:999px; transition: all .2s ease;
}
.lang-toggle button.active{ background: var(--grad-brand); color:#051019; }
.nav-toggle{
  display:none; width:38px; height:38px; align-items:center; justify-content:center;
  border-radius:10px; border:1px solid var(--c-border-strong); background:transparent; color:var(--c-text);
}
.nav-toggle svg{ width:18px; height:18px; }

@media (max-width: 560px){
  .nav-right{ gap:8px; }
  .nav-right .btn-primary{ display:none; }
  .brand span{ font-size:14px; }
  .brand small{ font-size:11.5px; }
  .brand img{ height:26px; }
  .nav .brand{ font-size:17px; gap:10px; }
  .nav .brand img{ height:34px; }
  .nav .brand small{ font-size:13px; }
  .lang-toggle button{ padding:6px 9px; }
}

@media (max-width: 900px){
  .nav-links{
    position:fixed; inset: 68px 16px auto 16px; flex-direction:column; align-items:stretch;
    background: var(--c-surface); border:1px solid var(--c-border); border-radius: var(--radius-md);
    padding: 10px; gap:4px; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
    transform-origin: top; transform: scaleY(0); opacity:0; pointer-events:none; transition: all .2s ease;
  }
  .nav-links.open{ transform: scaleY(1); opacity:1; pointer-events:auto; }
  .nav-links a{ padding:12px 14px; }
  .nav-toggle{ display:inline-flex; }
}

/* ---------- Hero ---------- */
.hero{ padding: 76px 0 40px; position:relative; overflow:hidden; }
.hero-grid{ display:grid; grid-template-columns: 1.1fr 0.9fr; gap:56px; align-items:center; }
.hero-title{ font-size: clamp(34px, 5vw, 58px); line-height:1.15; margin-bottom: 20px; }
.hero-subtitle{ font-size: clamp(16px, 2vw, 20px); color: var(--c-text-muted); font-weight:600; margin-bottom:22px; }
.hero-subtitle:empty{ display:none; margin:0; }
.hero-desc{ color: var(--c-text-muted); font-size:16.5px; max-width: 560px; margin-bottom: 32px; }
.hero-cta{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom: 40px; }
.hero-stats{ display:flex; gap: 36px; flex-wrap:wrap; }
.hero-stat b{ display:block; font-size:24px; background: var(--grad-brand); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero-stat span{ font-size: 13px; color: var(--c-text-faint); }
.hero-visual{ position:relative; display:flex; align-items:center; justify-content:center; }
/* Hero visual sits on plain white — no colored glow behind the logo */
.hero-visual img{ position:relative; max-width: 340px; width:80%; filter: drop-shadow(0 30px 60px rgba(47,127,224,0.22)); animation: float 6s ease-in-out infinite; }
.hero-visual-photo{ max-width: 620px !important; width: 100% !important; }
@media (max-width: 900px){ .hero-visual-photo{ max-width: 460px !important; } }
@keyframes float{ 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-14px);} }

.solution-visual{ width:100%; max-width:440px; animation: float 7s ease-in-out infinite; }

.hero-banner{ border-radius: var(--radius-lg); overflow:hidden; box-shadow: 0 30px 60px -24px rgba(16,24,43,0.28); }
.hero-banner img{ display:block; width:100%; height:auto; }
@media (max-width: 560px){ .hero-banner{ border-radius: var(--radius-md); } }

/* Mission / Vision — emphasized cards */
.emphasis-card{
  padding: 40px 36px; border-radius: var(--radius-lg); background: var(--grad-brand-soft);
  border: 1.5px solid var(--c-border-strong); position: relative; overflow: hidden;
}
.emphasis-card::before{
  content:""; position:absolute; left:0; top:0; bottom:0; width:5px; background: var(--grad-brand);
}
.emphasis-card .k{
  font-size: 26px; font-weight: 800; letter-spacing: .01em;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 14px;
}
.emphasis-card p{ font-size: 20px; font-weight: 600; line-height:1.65; color: var(--c-text); margin:0; }
@media (max-width:560px){
  .emphasis-card{ padding:28px 24px; }
  .emphasis-card .k{ font-size:22px; }
  .emphasis-card p{ font-size:17.5px; }
}

.marquee-wrap{ border-top:1px solid var(--c-border); border-bottom:1px solid var(--c-border); padding: 22px 0; overflow:hidden; }
.marquee{
  display:flex; gap:48px; white-space:nowrap; color: var(--c-text-faint); font-weight:600; font-size:14px; letter-spacing:.03em;
  width:max-content; animation: marquee-scroll 30s linear infinite; /* duration overridden inline per-instance by JS */
}
.marquee-seq{ display:inline-block; white-space:nowrap; flex-shrink:0; }
.marquee-wrap:hover .marquee{ animation-play-state: paused; }
@keyframes marquee-scroll{ 0%{ transform:translateX(0); } 100%{ transform:translateX(var(--marquee-dist, -50%)); } }
@media (prefers-reduced-motion: reduce){ .marquee{ animation:none; } }

/* ---------- Pillars ---------- */
.pillars{ display:grid; grid-template-columns: repeat(4, 1fr); gap:20px; }
.pillar-card{
  padding: 26px 22px; border:1px solid var(--c-border); border-radius: var(--radius-md); background: var(--c-surface);
  transition: transform .2s ease, border-color .2s ease;
}
.pillar-card:hover{ transform: translateY(-4px); border-color: var(--c-border-strong); }
.pillar-icon{
  width:44px; height:44px; border-radius:12px; margin-bottom:16px; display:flex; align-items:center; justify-content:center;
  background: var(--grad-brand-soft); color: var(--c-blue);
}
.pillar-card h3{ font-size:17px; margin-bottom:6px; }
.pillar-card p{ font-size: 14.5px; color: var(--c-text-muted); margin:0; }

/* ---------- Product cards ---------- */
.product-block{
  display:grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items:center;
  padding: 48px; border:1px solid var(--c-border); border-radius: var(--radius-lg); background: var(--c-surface);
  margin-bottom: 32px;
}
.product-block.reverse .product-media{ order:2; }
.product-tag{
  display:inline-flex; align-items:center; gap:8px; font-size:12.5px; font-weight:700; letter-spacing:.06em;
  padding: 6px 14px; border-radius:999px; background: var(--grad-brand-soft); color: var(--c-blue); margin-bottom:16px;
}
.product-block h3{ font-size: clamp(22px, 2.6vw, 30px); margin-bottom:14px; }
.product-block p.desc{ color: var(--c-text-muted); font-size:15.5px; margin-bottom:22px; }
.spec-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:12px; margin-bottom:24px; }
.spec-item{
  padding: 12px 14px; border:1px solid var(--c-border); border-radius: var(--radius-sm); background: rgba(16,24,43,0.025);
  font-size: 13.5px; color: var(--c-text-muted);
}
.spec-item b{ display:block; color: var(--c-text); font-size:14.5px; margin-bottom:2px; }
.tag-row{ display:flex; gap:8px; flex-wrap:wrap; }
.tag{
  font-size:12.5px; padding:6px 12px; border-radius:999px; border:1px solid var(--c-border-strong); color: var(--c-text-muted);
}
.product-media{
  position:relative; border-radius: var(--radius-md); overflow:hidden; aspect-ratio: 4/3;
  background: var(--grad-radial), var(--c-surface-2); border:1px solid var(--c-border);
  display:flex; align-items:center; justify-content:center;
}
.product-media .glyph{ width:46%; opacity:.9; }

@media (max-width: 860px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-visual{ order:-1; }
  .pillars{ grid-template-columns: repeat(2, 1fr); }
  .product-block{ grid-template-columns: 1fr; padding: 28px; gap:28px; }
  .product-block.reverse .product-media{ order:0; }
  .spec-grid{ grid-template-columns: 1fr 1fr; }
}

/* ---------- Value / Why cards ---------- */
.value-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap:20px; }
.value-card{ padding: 28px 22px; border-radius: var(--radius-md); border:1px solid var(--c-border); background: var(--c-surface); }
.value-num{ font-size:13px; font-weight:800; color: var(--c-text-faint); margin-bottom:14px; }
.value-card h3{ font-size:16.5px; margin-bottom:8px; }
.value-card p{ font-size:14px; color: var(--c-text-muted); margin:0; }
@media (max-width: 900px){ .value-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .value-grid{ grid-template-columns: 1fr; } }

/* ---------- Partners ---------- */
.partner-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:24px; }
.partner-card{ padding: 30px; border-radius: var(--radius-md); border:1px solid var(--c-border); background: var(--c-surface); }
.partner-card .k{ font-size:12.5px; color: var(--c-text-faint); font-weight:700; letter-spacing:.08em; text-transform:uppercase; margin-bottom:10px; }
.partner-card h3{ font-size:19px; margin-bottom:10px; }
.partner-card p{ color: var(--c-text-muted); font-size:14.5px; }
@media (max-width: 760px){ .partner-grid{ grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band{
  border-radius: var(--radius-lg); padding: 56px; text-align:center;
  background: var(--grad-brand-soft); border:1px solid var(--c-border-strong);
}
.cta-band h2{ font-size: clamp(24px,3vw,34px); margin-bottom:14px; }
.cta-band p{ color: var(--c-text-muted); margin-bottom: 28px; }
.cta-band .hero-cta{ justify-content:center; }

/* ---------- Footer ---------- */
.footer{ border-top:1px solid var(--c-border); padding: 56px 0 28px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom:40px; }
.footer-brand p{ color: var(--c-text-muted); font-size:14px; max-width:280px; }
.footer h4{ font-size:13.5px; color: var(--c-text-faint); text-transform:uppercase; letter-spacing:.08em; margin-bottom:16px; }
.footer-links li{ margin-bottom:10px; }
.footer-links a{ color: var(--c-text-muted); font-size:14.5px; }
.footer-links a:hover{ color: var(--c-text); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;
  padding-top: 24px; border-top:1px solid var(--c-border); color: var(--c-text-faint); font-size:13px;
}
@media (max-width: 760px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .footer-grid{ grid-template-columns: 1fr; } }

/* ---------- Page header (inner pages) ---------- */
.page-header{ padding: 64px 0 20px; text-align:center; }
.page-header .eyebrow{ justify-content:center; }
.page-header h1{ font-size: clamp(30px, 4.4vw, 46px); }
.page-header p{ color: var(--c-text-muted); max-width:640px; margin: 0 auto; }
.breadcrumb{ font-size:13px; color: var(--c-text-faint); margin-bottom: 18px; }
.breadcrumb a:hover{ color: var(--c-blue); }

/* ---------- About page ---------- */
.about-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items:center; }
.timeline{ position:relative; padding-left: 28px; border-left: 2px solid var(--c-border-strong); }
.timeline-item{ position:relative; padding-bottom: 32px; }
.timeline-item::before{
  content:""; position:absolute; left:-35px; top:2px; width:12px; height:12px; border-radius:50%; background: var(--grad-brand);
  box-shadow: 0 0 0 4px rgba(47,127,224,0.15);
}
.timeline-item h4{ font-size:15.5px; margin-bottom:4px; }
.timeline-item p{ font-size:14px; color: var(--c-text-muted); margin:0; }
.team-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap:20px; }
.team-card{ padding: 24px 18px; text-align:center; border:1px solid var(--c-border); border-radius: var(--radius-md); background: var(--c-surface); }
.team-avatar{
  width:64px; height:64px; border-radius:50%; margin:0 auto 14px; background: var(--grad-brand-soft);
  display:flex; align-items:center; justify-content:center; color: var(--c-blue); font-weight:800; font-size:18px;
}
.team-card h4{ font-size:15px; margin-bottom:2px; }
.team-card span{ font-size:12.5px; color: var(--c-text-faint); }
@media (max-width: 860px){ .about-grid{ grid-template-columns: 1fr; } }
@media (max-width: 700px){ .team-grid{ grid-template-columns: 1fr 1fr; } }

/* ---------- Contact page ---------- */
.contact-grid{ display:grid; grid-template-columns: 0.9fr 1.1fr; gap:48px; align-items:stretch; }
.contact-info-card{ padding: 28px; border-radius: var(--radius-md); border:1px solid var(--c-border); background: var(--c-surface); margin-bottom:16px; }
.contact-info-card .k{ font-size:12.5px; color: var(--c-text-faint); font-weight:700; text-transform:uppercase; letter-spacing:.06em; margin-bottom:8px; }
.contact-info-card .v{ font-size:15.5px; font-weight:600; }
.contact-info-card .v.muted{ color: var(--c-text-muted); font-weight:500; font-style: italic; }
.contact-info-card .v a:hover{ text-decoration: underline; color: var(--c-blue); }
.contact-info-panel{
  height:100%; padding: 44px 36px; border-radius: var(--radius-lg); background: var(--grad-brand-soft);
  border: 1.5px solid var(--c-border-strong); display:flex; flex-direction:column; justify-content:center;
}
.contact-info-panel-icon{
  width:52px; height:52px; border-radius:14px; display:flex; align-items:center; justify-content:center;
  background: var(--c-surface); color: var(--c-blue); box-shadow: var(--shadow-glow); margin-bottom:20px;
}
.contact-info-panel .k{ font-size:12.5px; color: var(--c-text-faint); font-weight:700; text-transform:uppercase; letter-spacing:.06em; margin-bottom:8px; }
.contact-info-panel .v{ font-size:26px; font-weight:700; margin-bottom:16px; }
.contact-info-panel .v a{ color: var(--c-text); }
.contact-info-panel .v a:hover{ color: var(--c-blue); }
.contact-info-panel .note{ font-size:14.5px; color: var(--c-text-muted); line-height:1.75; margin:0; }
@media (max-width:560px){
  .contact-info-panel{ padding:32px 26px; }
  .contact-info-panel .v{ font-size:21px; }
}
.form-card{ padding: 36px; border-radius: var(--radius-lg); border:1px solid var(--c-border); background: var(--c-surface); }
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap:16px; margin-bottom:16px; }
.form-field{ display:flex; flex-direction:column; gap:8px; }
.form-field.full{ grid-column: 1 / -1; }
.form-field label{ font-size:13.5px; font-weight:600; color: var(--c-text-muted); }
.required-mark{ color: #e0475a; margin-left:3px; font-weight:700; }
.form-field input, .form-field textarea, .form-field select{
  background: rgba(16,24,43,0.03); border:1px solid var(--c-border-strong); border-radius: var(--radius-sm);
  padding: 12px 14px; color: var(--c-text); font-size:14.5px; font-family: inherit; resize: vertical;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus{
  outline:none; border-color: var(--c-blue); box-shadow: 0 0 0 3px rgba(47,127,224,0.18);
}
.form-note{ font-size:12.5px; color: var(--c-text-faint); margin-top:14px; }
.form-success{
  display:none; margin-top:16px; padding:14px 16px; border-radius: var(--radius-sm);
  background: rgba(14,154,171,0.10); border:1px solid rgba(14,154,171,0.35); color:#0a6e7d; font-size:14px;
}
.form-success.show{ display:block; }
.map-box{
  margin-top: 20px; border-radius: var(--radius-md); border:1px dashed var(--c-border-strong);
  padding: 40px 20px; text-align:center; color: var(--c-text-faint); font-size:13.5px; background: rgba(16,24,43,0.02);
}
@media (max-width: 900px){ .contact-grid{ grid-template-columns: 1fr; } .form-row{ grid-template-columns:1fr; } }

/* Reveal animation — content is visible by default (no JS / slow JS = still readable);
   a subtle upward fade is layered on top only once JS confirms the element entered view. */
[data-reveal]{ opacity:1; transform:none; }
[data-reveal].pre{ opacity:0; transform: translateY(16px); }
[data-reveal].in{ opacity:1; transform:none; transition: opacity .6s ease, transform .6s ease; }

.badge-placeholder{
  display:inline-block; font-size:11px; padding:3px 9px; border-radius:999px;
  background: rgba(76,83,214,0.14); color:#3730a3; margin-left:8px; vertical-align:middle; font-weight:700;
}
