
:root {
  --navy: #073b5c;
  --navy-2: #0a2f49;
  --blue: #0b79b7;
  --cyan: #26b7ca;
  --green: #6fbf4b;
  --ink: #14232d;
  --muted: #5f7280;
  --line: #dbe7ed;
  --soft: #f4f9fb;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(7, 59, 92, .12);
  --radius: 22px;
  --max: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: #fff; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--navy); padding: 10px 14px; z-index: 1000; border-radius: 8px; }
.skip-link:focus { left: 10px; }
.notice { background: var(--navy-2); color: rgba(255,255,255,.87); font-size: 13px; }
.notice .container { min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 9px; text-align: center; }
.notice a { color: #bcecff; text-decoration: underline; text-underline-offset: 3px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(219,231,237,.9); }
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 255px; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 15px; background: linear-gradient(135deg, var(--cyan), var(--green)); color: #fff; box-shadow: 0 10px 24px rgba(38,183,202,.25); }
.brand-mark svg { width: 25px; height: 25px; }
.brand-copy strong { display: block; font-size: 18px; letter-spacing: .07em; color: var(--navy); line-height: 1.15; }
.brand-copy span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .17em; color: var(--muted); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 650; color: #365463; }
.nav a { position: relative; }
.nav a:hover { color: var(--navy); background: var(--soft); }
.nav a.active { color: var(--navy); background: #eef7fb; }
.nav a.active:after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--cyan), var(--green)); }
.menu-btn { display: none; border: 0; background: var(--soft); color: var(--navy); width: 42px; height: 42px; border-radius: 12px; cursor: pointer; }
.hero { position: relative; overflow: hidden; min-height: 670px; display: grid; align-items: center; background: linear-gradient(120deg, #effafd 0%, #f8fcf8 55%, #eef8f4 100%); }
.hero:before, .hero:after { content: ""; position: absolute; border-radius: 50%; filter: blur(0); pointer-events: none; }
.hero:before { width: 520px; height: 520px; right: -160px; top: -180px; background: radial-gradient(circle, rgba(38,183,202,.24), rgba(38,183,202,0) 68%); }
.hero:after { width: 430px; height: 430px; left: -220px; bottom: -180px; background: radial-gradient(circle, rgba(111,191,75,.16), rgba(111,191,75,0) 70%); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.02fr .98fr; gap: 48px; align-items: center; padding: 82px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .15em; color: var(--blue); font-weight: 800; font-size: 12px; }
.eyebrow:before { content: ""; width: 30px; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--green)); }
h1, h2, h3 { margin: 0; line-height: 1.12; color: var(--navy); }
h1 { font-size: clamp(44px, 5.7vw, 76px); letter-spacing: -.045em; margin-top: 18px; }
h2 { font-size: clamp(34px, 4vw, 52px); letter-spacing: -.035em; }
h3 { font-size: 22px; }
.hero p { font-size: 19px; color: var(--muted); max-width: 640px; margin: 24px 0 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 20px; border-radius: 13px; border: 1px solid transparent; font-weight: 750; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 14px 34px rgba(7,59,92,.22); }
.btn-secondary { background: #fff; color: var(--navy); border-color: var(--line); }
.hero-visual { position: relative; min-height: 500px; }
.visual-card { position: absolute; inset: 30px 0 15px 45px; border-radius: 34px; overflow: hidden; box-shadow: 0 30px 80px rgba(7,59,92,.2); background: linear-gradient(155deg, #093e5e, #0c6e92 55%, #28a7b1); }
.visual-card svg, .visual-card img { width: 100%; height: 100%; object-fit: cover; }
.floating { position: absolute; background: rgba(255,255,255,.94); border: 1px solid rgba(255,255,255,.75); box-shadow: var(--shadow); border-radius: 18px; padding: 15px 17px; backdrop-filter: blur(8px); }
.floating strong { display: block; color: var(--navy); font-size: 18px; }
.floating span { color: var(--muted); font-size: 12px; }
.float-a { left: 0; bottom: 62px; }
.float-b { right: -10px; top: 62px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 34px; color: #466270; font-size: 13px; font-weight: 700; }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(111,191,75,.15); }
.section { padding: 105px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: linear-gradient(145deg, var(--navy-2), var(--navy)); color: #fff; }
.section-head { display: grid; grid-template-columns: .85fr 1.15fr; align-items: end; gap: 40px; margin-bottom: 44px; }
.section-head p { margin: 0; color: var(--muted); font-size: 17px; max-width: 650px; justify-self: end; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .section-head p { color: rgba(255,255,255,.72); }
.stats { margin-top: -50px; position: relative; z-index: 4; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.stat { padding: 28px 30px; position: relative; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; font-size: 35px; color: var(--navy); letter-spacing: -.04em; }
.stat span { color: var(--muted); font-size: 14px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 12px 34px rgba(7,59,92,.06); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(145deg, #ecf9fb, #eef9ec); color: var(--blue); margin-bottom: 20px; }
.card-icon svg { width: 28px; height: 28px; }
.card p { color: var(--muted); margin: 12px 0 0; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-grid-five { grid-template-columns: repeat(5, 1fr); gap: 16px; }
.product-grid-five .product-card { min-height: 325px; }
.product-grid-five .product-body { padding: 20px; }
.product-grid-five .product-body h3 { font-size: 19px; }
.product-grid-five .product-body p { font-size: 13px; }
.product-card { min-height: 350px; position: relative; overflow: hidden; border-radius: 26px; background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 36px rgba(7,59,92,.08); }
.product-art { height: 210px; display: grid; place-items: center; background: linear-gradient(145deg, #e8f8fb, #f4fbef); overflow: hidden; }
.product-art svg, .product-art img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 24px; }
.product-body p { color: var(--muted); margin: 10px 0 0; }
.process { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; counter-reset: step; }
.step { position: relative; min-height: 200px; border: 1px solid rgba(255,255,255,.16); border-radius: 20px; padding: 22px 17px; background: rgba(255,255,255,.06); }
.step:before { counter-increment: step; content: "0" counter(step); display: block; color: #73e0ec; font-weight: 850; font-size: 13px; letter-spacing: .1em; margin-bottom: 36px; }
.step h3 { font-size: 17px; }
.step p { color: rgba(255,255,255,.64); font-size: 13px; line-height: 1.55; margin: 9px 0 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.panel { border-radius: 28px; border: 1px solid var(--line); background: #fff; padding: 36px; box-shadow: var(--shadow); }
.panel-image { padding: 0; overflow: hidden; min-height: 430px; }
.panel-image img { width: 100%; height: 100%; min-height: 430px; object-fit: cover; }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 13px; }
.check-list li { display: flex; gap: 12px; color: #45606f; }
.check-list li:before { content: "✓"; flex: 0 0 24px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #eaf8e4; color: #3f8f24; font-weight: 900; }
.quote { background: linear-gradient(140deg, #0b6d93, #073b5c); border-radius: 28px; padding: 42px; color: #fff; position: relative; overflow: hidden; }
.quote:after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -100px; bottom: -120px; background: rgba(255,255,255,.08); }
.quote h2 { color: #fff; }
.quote p { color: rgba(255,255,255,.74); }
.form { display: grid; gap: 15px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: #526c79; margin-bottom: 7px; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; color: var(--ink); background: #fff; outline: none; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(38,183,202,.12); }
.form-note { font-size: 12px; color: var(--muted); margin: 0; }
.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 32px; }
.contact-card { background: var(--soft); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.contact-item + .contact-item { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.contact-item small { display: block; text-transform: uppercase; letter-spacing: .12em; color: var(--blue); font-weight: 800; margin-bottom: 6px; }
.contact-item strong { color: var(--navy); display: block; }
.contact-item p { margin: 6px 0 0; color: var(--muted); }
.page-hero { padding: 110px 0 85px; background: linear-gradient(120deg, #effafd, #f6fbf4); position: relative; overflow: hidden; }
.page-hero:after { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; right: -100px; top: -120px; background: radial-gradient(circle, rgba(38,183,202,.2), transparent 68%); }
.page-hero p { max-width: 760px; color: var(--muted); font-size: 18px; margin: 22px 0 0; }
.timeline { position: relative; display: grid; gap: 18px; }
.timeline:before { content: ""; position: absolute; left: 63px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.timeline-item { display: grid; grid-template-columns: 98px 1fr; gap: 25px; position: relative; }
.timeline-year { font-weight: 900; color: var(--blue); font-size: 17px; background: #fff; z-index: 1; }
.timeline-box { padding: 0 0 30px; }
.timeline-box h3 { font-size: 20px; }
.timeline-box p { color: var(--muted); margin: 8px 0 0; }
.location-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.location { min-height: 260px; border-radius: 24px; padding: 30px; position: relative; overflow: hidden; background: linear-gradient(145deg, #073b5c, #0c7591); color: #fff; }
.location:nth-child(2) { background: linear-gradient(145deg, #2c6e39, #6da846); }
.location h3 { color: #fff; }
.location p { color: rgba(255,255,255,.76); max-width: 420px; }
.location-tag { display: inline-block; padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.13); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; margin-bottom: 58px; }
.location .map-lines { position: absolute; right: -20px; bottom: -20px; width: 190px; height: 190px; opacity: .2; }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.badge { padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; color: #43616f; font-size: 13px; background: #fff; }
.disclosure { border-left: 4px solid var(--cyan); background: #eef9fb; padding: 18px 20px; color: #365867; border-radius: 0 14px 14px 0; }

.cert-highlight-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cert-highlight { padding: 24px 20px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 10px 30px rgba(7,59,92,.06); }
.cert-highlight span { display: inline-flex; color: var(--blue); font-size: 12px; font-weight: 900; letter-spacing: .12em; margin-bottom: 28px; }
.cert-highlight h3 { font-size: 19px; }
.cert-highlight p { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.certificate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.certificate-card { appearance: none; border: 1px solid var(--line); border-radius: 22px; padding: 0; background: #fff; overflow: hidden; text-align: left; cursor: zoom-in; box-shadow: 0 12px 34px rgba(7,59,92,.07); transition: transform .2s ease, box-shadow .2s ease; }
.certificate-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.certificate-image { position: relative; display: grid; place-items: center; min-height: 360px; background: linear-gradient(145deg,#edf7fb,#f7fbf4); overflow: hidden; }
.certificate-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.cert-fallback { max-width: 220px; text-align: center; color: var(--muted); font-weight: 750; padding: 25px; }
.certificate-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; }
.certificate-caption strong { color: var(--navy); font-size: 14px; }
.certificate-caption small { color: var(--muted); white-space: nowrap; }
.cert-dialog { width: min(920px, calc(100% - 28px)); max-height: 90vh; border: 0; border-radius: 20px; padding: 46px 20px 20px; box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.cert-dialog::backdrop { background: rgba(2,20,32,.72); backdrop-filter: blur(5px); }
.cert-dialog img { width: 100%; max-height: 75vh; object-fit: contain; }
.cert-dialog p { margin: 12px 0 0; text-align: center; color: var(--navy); font-weight: 750; }
.cert-dialog-close { position: absolute; right: 12px; top: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--soft); color: var(--navy); font-size: 24px; line-height: 1; cursor: pointer; }

.footer { background: #071f30; color: rgba(255,255,255,.68); padding: 70px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .65fr .65fr 1fr; gap: 38px; padding-bottom: 42px; }
.footer .brand-copy strong { color: #fff; }
.footer .brand-copy span { color: rgba(255,255,255,.53); }
.footer h4 { color: #fff; margin: 0 0 15px; font-size: 15px; }
.footer a { display: block; margin: 8px 0; color: rgba(255,255,255,.68); }
.footer a:hover { color: #fff; }
.footer p { margin: 14px 0 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; display: flex; justify-content: space-between; gap: 20px; font-size: 12px; }
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
.toast { position: fixed; right: 20px; bottom: 20px; width: min(360px, calc(100% - 40px)); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 16px 18px; z-index: 100; display: none; }
.toast.show { display: block; }
.toast strong { display: block; color: var(--navy); }
.toast p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
@media (max-width: 980px) {
  .menu-btn { display: grid; place-items: center; }
  .nav { position: absolute; left: 20px; right: 20px; top: 76px; display: none; flex-direction: column; align-items: stretch; padding: 12px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); border-radius: 16px; }
  .nav.open { display: flex; }
  .hero-grid, .split, .section-head, .contact-layout { grid-template-columns: 1fr; }
  .hero-grid { padding-top: 65px; }
  .hero-visual { min-height: 440px; }
  .section-head p { justify-self: start; }
  .card-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid-five { grid-template-columns: repeat(3, 1fr); }
  .cert-highlight-grid { grid-template-columns: repeat(3, 1fr); }
  .certificate-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .brand { min-width: 0; }
  .brand-copy span { display: none; }
  .hero { min-height: auto; }
  .hero-grid { padding: 54px 0 85px; }
  .hero-visual { min-height: 340px; margin-top: 10px; }
  .visual-card { inset: 10px 0 0 22px; border-radius: 24px; }
  .float-a { left: -2px; bottom: 20px; }
  .float-b { right: -3px; top: 26px; }
  .stats { margin-top: -38px; }
  .stats-grid, .card-grid, .product-grid, .location-grid, .form-grid, .cert-highlight-grid, .certificate-grid { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .section { padding: 78px 0; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .page-hero { padding: 80px 0 60px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .js .reveal { opacity: 1; transform: none; transition: none; } .btn { transition: none; } }


/* Original Jiannuo logo */
.brand.brand-original { min-width: 192px; width: 192px; gap: 0; flex: 0 0 auto; }
.brand-logo { width: 192px; height: auto; max-height: 58px; object-fit: contain; object-position: left center; }
.footer .brand.brand-original { display: inline-flex; width: 216px; min-width: 0; margin: 0 0 18px; padding: 10px 12px; border-radius: 13px; background: #fff; }
.footer .brand-logo { width: 192px; }

/* Reliable certificate gallery */
.certificate-image { isolation: isolate; }
.certificate-image img { z-index: 3; transition: opacity .2s ease; }
.cert-loading { position: absolute; z-index: 2; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 13px; color: var(--muted); font-weight: 700; font-size: 13px; background: linear-gradient(145deg,#edf7fb,#f7fbf4); }
.cert-loading span { width: 32px; height: 32px; border: 3px solid rgba(11,121,183,.18); border-top-color: var(--blue); border-radius: 50%; animation: cert-spin .8s linear infinite; }
.cert-fallback { position: absolute; z-index: 1; inset: 0; display: none; place-items: center; max-width: none; padding: 44px; background: linear-gradient(145deg,#edf7fb,#f7fbf4); }
.certificate-image.is-loaded .cert-loading { display: none; }
.certificate-image.is-unavailable .cert-loading { display: none; }
.certificate-image.is-unavailable .cert-fallback { display: grid; }
.certificate-image.is-unavailable img { display: none; }
@keyframes cert-spin { to { transform: rotate(360deg); } }

/* Fixed overlay works when the site is opened from a ZIP/file URL or a web server. */
.cert-lightbox[hidden] { display: none !important; }
.cert-lightbox { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 22px; background: rgba(2,20,32,.82); backdrop-filter: blur(7px); }
.cert-lightbox-panel { position: relative; width: min(960px,100%); max-height: calc(100vh - 44px); padding: 52px 20px 18px; border-radius: 22px; background: #fff; box-shadow: 0 34px 100px rgba(0,0,0,.42); overflow: auto; }
.cert-lightbox-stage { position: relative; min-height: 240px; display: grid; place-items: center; }
.cert-lightbox-stage img { display: block; width: 100%; max-height: calc(100vh - 155px); object-fit: contain; }
.cert-lightbox-stage img[src=""] { display: none; }
.cert-lightbox-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-weight: 700; }
.cert-lightbox-stage.is-loaded .cert-lightbox-loading { display: none; }
.cert-lightbox-stage.is-unavailable .cert-lightbox-loading { color: #9b3a3a; }
.cert-lightbox-panel p { margin: 12px 0 0; text-align: center; color: var(--navy); font-weight: 800; }
.cert-lightbox-close { position: absolute; z-index: 2; right: 13px; top: 12px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--soft); color: var(--navy); font-size: 27px; line-height: 1; cursor: pointer; }
.cert-lightbox-close:hover { background: #e7f2f7; }
body.cert-lightbox-open { overflow: hidden; }

@media (max-width: 680px) {
  .brand.brand-original { width: 158px; min-width: 158px; }
  .brand-logo { width: 158px; }
  .nav-wrap { min-height: 70px; }
  .nav { top: 70px; }
  .certificate-image { min-height: 310px; }
  .cert-lightbox { padding: 10px; }
  .cert-lightbox-panel { max-height: calc(100vh - 20px); padding: 48px 10px 14px; border-radius: 16px; }
  .cert-lightbox-stage img { max-height: calc(100vh - 125px); }
}
