:root { color-scheme:light; --primary:#0056b3; --ink:#102b45; --muted:#53687b; --border:#dce5ee; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; min-width:320px; background:#f4f7f6; color:var(--ink); }
button { font:inherit; }
a { color:inherit; }
.zh { display:none; }
body.zh-mode .en { display:none; }
body.zh-mode .zh { display:inline; }
.page-shell { width:min(100% - 40px,1100px); margin-inline:auto; }
.skip-link { position:absolute; z-index:5; top:-60px; left:16px; padding:10px 14px; border-radius:8px; background:var(--primary); color:#fff; }
.skip-link:focus { top:10px; }
.site-header { background:rgba(255,255,255,.97); border-bottom:1px solid #e5ebf1; }
.header-inner { display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:86px; }
.brand { display:inline-flex; align-items:center; gap:10px; min-width:0; text-decoration:none; color:var(--ink); }
.brand img { width:48px; height:48px; object-fit:contain; flex:none; }
.brand > span { display:flex; flex-direction:column; gap:2px; line-height:1.1; }
.brand strong { font-size:1rem; font-weight:850; white-space:nowrap; }
.brand small { font-size:.76rem; color:#526b83; font-weight:700; }
.header-actions { display:flex; align-items:center; gap:12px; }
.header-link { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:8px 10px; color:#145583; font-size:.84rem; font-weight:700; text-decoration:none; white-space:nowrap; }
.header-link:hover, .footer-links a:hover, .text-link:hover { text-decoration:underline; }
.language-toggle { min-width:68px; min-height:44px; border:1px solid #d2dfeb; border-radius:10px; background:#fff; color:#154a78; font-size:.85rem; font-weight:750; cursor:pointer; }
:is(a,button):focus-visible { outline:3px solid #0b77bd; outline-offset:3px; }
.page-hero { padding:55px 0 34px; }
.eyebrow { margin:0 0 10px; color:#0c5a94; font-size:.72rem; font-weight:850; letter-spacing:.12em; text-transform:uppercase; }
h1,h2,h3,p { margin-top:0; }
.page-hero h1 { margin-bottom:14px; color:#111; font-size:clamp(2.1rem,4.1vw,3.15rem); font-weight:800; letter-spacing:-.035em; line-height:1.12; }
.page-hero .lead { max-width:700px; margin-bottom:0; color:var(--muted); font-size:1.04rem; line-height:1.7; }
.detail-hero { display:grid; grid-template-columns:1fr minmax(300px,.82fr); align-items:center; gap:36px; }
.detail-hero .tagline { margin:0 0 16px; color:#1d67a6; font-size:.88rem; font-weight:800; line-height:1.6; }
.detail-hero .lead { max-width:620px; }
.hero-logo, .product-art { display:grid; place-items:center; overflow:hidden; border:1px solid var(--border); background:linear-gradient(145deg,#f8fbfe,#f1f6fb); }
.hero-logo { min-height:245px; padding:25px; border-radius:20px; }
.hero-logo img { display:block; width:100%; max-height:205px; object-fit:contain; }
.page-section { padding:31px 0; border-top:1px solid #e1e9f0; }
.page-section h2 { margin-bottom:7px; color:#111; font-size:1.55rem; line-height:1.25; }
.section-lead { margin-bottom:21px; color:var(--muted); font-size:.94rem; line-height:1.65; }
.feature-grid, .workflow-grid, .product-grid { display:grid; gap:18px; }
.feature-grid, .workflow-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.feature-card, .workflow-step, .product-card, .info-panel { min-width:0; border:1px solid var(--border); border-radius:18px; background:#fff; box-shadow:0 5px 22px rgba(7,46,80,.055); }
.feature-card, .workflow-step { padding:22px; }
.feature-card h3, .workflow-step h3 { margin:0 0 9px; font-size:1.1rem; line-height:1.35; }
.feature-card p, .workflow-step p { margin:0; color:var(--muted); font-size:.88rem; line-height:1.65; }
.workflow-grid { list-style:none; padding:0; margin:0; }
.step-number { display:grid; place-items:center; width:31px; height:31px; margin-bottom:14px; border-radius:9px; background:#edf6ff; color:#07589b; font-size:.79rem; font-weight:850; }
.info-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.info-panel { padding:25px; }
.info-panel h2 { margin-bottom:13px; }
.info-panel ul { margin:0; padding-left:19px; color:var(--muted); font-size:.9rem; line-height:1.7; }
.info-panel li + li { margin-top:8px; }
.cta-panel { display:flex; justify-content:space-between; align-items:center; gap:24px; margin:18px 0 54px; padding:28px 30px; border:1px solid #cddfed; border-radius:19px; background:linear-gradient(125deg,#f8fbfe,#eaf4fd); }
.cta-panel h2 { margin-bottom:8px; color:#111; font-size:1.36rem; line-height:1.35; }
.cta-panel p { margin:0; color:var(--muted); font-size:.9rem; line-height:1.6; }
.cta-button { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:44px; flex:none; padding:10px 18px; border-radius:9px; background:#07589b; color:#fff; font-size:.86rem; font-weight:750; text-decoration:none; }
.cta-button:hover { background:#03477f; }
.product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); padding-bottom:28px; }
.product-card { display:flex; flex-direction:column; overflow:hidden; }
.product-art { height:190px; padding:25px; border:0; border-bottom:1px solid #e1e9f1; border-radius:0; }
.product-art img { display:block; width:100%; max-height:145px; object-fit:contain; }
.product-card-body { display:flex; flex:1; flex-direction:column; padding:22px; }
.product-card h2 { margin:0 0 6px; font-size:1.4rem; }
.product-card .tagline { margin:0 0 12px; color:#1d67a6; font-size:.8rem; font-weight:800; }
.product-card .description { flex:1; margin-bottom:12px; color:var(--muted); font-size:.89rem; line-height:1.65; }
.text-link { display:inline-flex; align-items:center; gap:8px; align-self:flex-start; min-height:44px; color:#07589b; font-size:.84rem; font-weight:750; text-underline-offset:3px; }
.site-footer { border-top:1px solid #e1e9f0; background:#fff; }
.footer-inner { display:flex; align-items:center; justify-content:space-between; gap:18px; padding-block:24px; color:#657688; font-size:.8rem; }
.footer-links { display:flex; flex-wrap:wrap; gap:8px 20px; }
.footer-links a { color:#145583; text-decoration:none; }
@media(max-width:768px) {
  .header-inner { min-height:72px; }
  .page-hero { padding:39px 0 29px; }
  .detail-hero { grid-template-columns:1fr; gap:22px; }
  .hero-logo { min-height:190px; }
  .feature-grid, .workflow-grid, .product-grid, .info-grid { grid-template-columns:1fr; }
  .page-section { padding:27px 0; }
  .cta-panel { align-items:flex-start; flex-direction:column; padding:22px; }
}
@media(max-width:480px) {
  .page-shell { width:min(100% - 32px,1100px); }
  .brand img { width:40px; height:40px; }
  .brand strong { font-size:.9rem; }
  .header-actions { gap:2px; }
  .header-link { padding-inline:6px; font-size:.76rem; }
  .page-hero h1 { font-size:2rem; }
  .hero-logo { min-height:165px; padding:17px; }
  .product-art { height:162px; }
  .footer-inner { align-items:flex-start; flex-direction:column; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }

/* Product screen captures and their in-page full-resolution viewer. */
.product-screens-grid { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(260px,.85fr); gap:18px; align-items:stretch; }
.product-screens-grid--single { grid-template-columns:minmax(0,1fr); }
.product-screen { min-width:0; margin:0; overflow:hidden; border:1px solid var(--border); border-radius:18px; background:#fff; box-shadow:0 5px 22px rgba(7,46,80,.055); }
.product-screen-link { display:grid; place-items:center; min-height:230px; padding:14px; overflow:hidden; border-bottom:1px solid var(--border); background:#edf3f8; }
.product-screen-link:focus-visible { outline-offset:-4px; }
.product-screen img { display:block; width:100%; height:auto; max-height:390px; object-fit:contain; }
.product-screen--attendance img { max-height:650px; }
.product-screen--cashier img { max-height:620px; }
.product-screen--import-history img { max-height:780px; }
.product-screen--portrait img { width:auto; max-width:100%; max-height:390px; }
.product-screen figcaption { display:grid; gap:6px; padding:18px 20px 21px; color:var(--muted); font-size:.86rem; line-height:1.55; }
.product-screen figcaption strong { color:var(--ink); font-size:1rem; }
.product-screen-view { display:inline-flex; align-items:center; align-self:start; min-height:44px; color:#07589b; font-size:.88rem; font-weight:750; text-underline-offset:3px; }
.product-screen figcaption .zh { display:none; }
body.zh-mode .product-screen figcaption .zh { display:inline; }
body.zh-mode .product-screen figcaption .en { display:none; }
.product-lightbox[open] { display:grid; grid-template-rows:auto minmax(0,1fr) auto; width:min(1400px,calc(100vw - 24px)); max-width:none; max-height:calc(100dvh - 24px); padding:0; overflow:hidden; border:1px solid #cbd8e4; border-radius:18px; background:#fff; color:var(--ink); box-shadow:0 20px 75px rgba(0,22,48,.33); }
.product-lightbox::backdrop { background:rgba(5,22,40,.72); backdrop-filter:blur(3px); }
.product-lightbox-header { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:62px; padding:10px 18px; border-bottom:1px solid var(--border); }
.product-lightbox-header h2 { margin:0; font-size:1.1rem; line-height:1.35; }
.product-lightbox-actions { display:flex; align-items:center; gap:8px; flex:none; }
.product-lightbox-actions button, .product-lightbox-retry { min-height:44px; padding:8px 12px; border:1px solid #cbd8e4; border-radius:9px; background:#f8fbfe; color:#07589b; font-size:.86rem; font-weight:700; cursor:pointer; }
.product-lightbox-actions button:hover, .product-lightbox-retry:hover { background:#eaf4fd; }
.product-lightbox-actions button:disabled { color:#8397a8; cursor:default; }
.product-lightbox-close { width:44px; padding:0 !important; font-size:1.65rem !important; line-height:1; }
.product-lightbox-viewport { display:grid; place-items:center; min-height:150px; max-height:calc(100dvh - 180px); padding:12px; overflow:auto; overscroll-behavior:contain; background:#edf3f8; }
.product-lightbox-image { display:block; max-width:100%; max-height:calc(100dvh - 205px); width:auto; height:auto; object-fit:contain; }
.product-lightbox.is-zoomed .product-lightbox-viewport { display:block; }
.product-lightbox.is-zoomed .product-lightbox-image { max-width:none; max-height:none; }
.product-lightbox [hidden] { display:none !important; }
.product-lightbox-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:66px; padding:11px 18px; border-top:1px solid var(--border); }
.product-lightbox-footer p { margin:0; color:var(--muted); font-size:.86rem; line-height:1.5; }
.product-lightbox-feedback { display:flex; align-items:center; gap:8px; flex:none; font-size:.84rem; }
@media(max-width:768px) { .product-screens-grid { grid-template-columns:1fr; } .product-screen-link { min-height:180px; } .product-screen img { max-height:350px; } }
@media(max-width:600px) { .product-lightbox[open] { width:calc(100vw - 12px); max-height:calc(100dvh - 12px); border-radius:12px; } .product-lightbox-header { padding:8px 10px; gap:8px; } .product-lightbox-header h2 { font-size:.96rem; } .product-lightbox-actions button { padding-inline:8px; font-size:.76rem; } .product-lightbox-viewport { max-height:calc(100dvh - 215px); padding:6px; } .product-lightbox-image { max-height:calc(100dvh - 235px); } .product-lightbox-footer { display:block; padding:10px 12px; } .product-lightbox-feedback { margin-top:6px; } }
@media(prefers-reduced-motion:reduce) { .product-screen-link { scroll-behavior:auto; } }
