/* Xianda Smart Lock — xd-smartlock.com */
:root {
  --navy: #0e1c30;
  --navy-2: #14263f;
  --blue: #2364e8;
  --blue-dark: #1a4fc0;
  --sky: #eaf1fd;
  --text: #22304a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --wa: #25d366;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(14, 28, 48, .08);
  --shadow-lg: 0 12px 40px rgba(14, 28, 48, .14);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", Tahoma, Arial, "Helvetica Neue", Helvetica, sans-serif;
  color: var(--text); background: var(--bg);
  line-height: 1.65; font-size: 16px;
}
[dir="rtl"] body, [dir="rtl"] { text-align: start; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #cdd9ec; font-size: 13.5px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 36px; flex-wrap: wrap; gap: 4px 16px; padding-top: 4px; padding-bottom: 4px; }
.topbar a { color: #cdd9ec; }
.topbar a:hover { color: #fff; }
.topbar .tb-contacts { display: flex; gap: 18px; flex-wrap: wrap; }
.lang-switch { display: flex; gap: 2px; flex-wrap: wrap; }
.lang-switch a { padding: 1px 8px; border-radius: 20px; }
.lang-switch a.active { background: var(--blue); color: #fff; }
.lang-switch a:hover:not(.active) { background: rgba(255,255,255,.12); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 52px; width: auto; }
.brand-name { font-weight: 800; font-size: 19px; color: var(--navy); letter-spacing: .3px; line-height: 1.15; }
.brand-name small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); letter-spacing: .4px; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { font-weight: 600; font-size: 15.5px; color: var(--navy); padding: 6px 2px; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--blue); border-bottom-color: var(--blue); }
.nav-cta { background: var(--blue); color: #fff !important; padding: 10px 20px !important; border-radius: 999px; border: none !important; }
.nav-cta:hover { background: var(--blue-dark); }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; color: var(--navy); cursor: pointer; }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1200px 600px at 78% 20%, #1d3a66 0%, var(--navy) 55%); color: #fff; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero-kicker { display: inline-block; background: rgba(35,100,232,.18); border: 1px solid rgba(120,160,255,.35); color: #9fc0ff; font-size: 13.5px; font-weight: 600; padding: 6px 14px; border-radius: 999px; margin-bottom: 22px; }
.hero h1 { font-size: 42px; line-height: 1.18; font-weight: 800; margin-bottom: 18px; }
.hero p { color: #b9c7dc; font-size: 17px; max-width: 560px; margin-bottom: 30px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15.5px; padding: 13px 26px; border-radius: 999px; border: none; cursor: pointer; transition: .18s; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { filter: brightness(.94); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.btn-ghost:hover { border-color: #fff; }
.btn-outline { background: #fff; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-outline:hover { background: var(--sky); }
.hero-img { position: relative; }
.hero-img img { width: 100%; max-width: 430px; margin: 0 auto; border-radius: 18px; box-shadow: var(--shadow-lg); }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.12); border-top: 1px solid rgba(255,255,255,.12); }
.hero-stats > div { background: var(--navy); padding: 22px 18px; text-align: center; }
.hero-stats b { display: block; font-size: 18.5px; color: #fff; margin-bottom: 5px; line-height: 1.3; }
.hero-stats span { font-size: 13.5px; color: #93a5bd; line-height: 1.45; display: block; }

/* ---------- Sections ---------- */
.section { padding: 74px 0; }
.section.soft { background: var(--bg-soft); }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 46px; }
.sec-head h2, .sec-head .sec-title { font-size: 32px; color: var(--navy); font-weight: 800; margin-bottom: 12px; }
.sec-head p { color: var(--muted); font-size: 16.5px; }

/* series */
.series-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.series-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .2s; display: flex; flex-direction: column; }
.series-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: #c9d8f5; }
.series-card .img-wrap { background: var(--bg-soft); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; padding: 18px; }
.series-card .img-wrap img { max-height: 100%; width: auto; object-fit: contain; }
.series-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.series-card h3 { font-size: 18.5px; color: var(--navy); }
.series-card p { font-size: 14.5px; color: var(--muted); flex: 1; }
.series-card .link { color: var(--blue); font-weight: 700; font-size: 14.5px; }

/* product cards */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prod-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .2s; display: flex; flex-direction: column; }
.prod-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: #c9d8f5; }
.prod-card .img-wrap { background: #fff; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; padding: 18px; border-bottom: 1px solid var(--line); }
.prod-card .img-wrap img { max-height: 100%; width: auto; object-fit: contain; transition: .25s; }
.prod-card:hover .img-wrap img { transform: scale(1.045); }
.prod-card .body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.prod-card .model { font-size: 13px; font-weight: 800; color: var(--blue); letter-spacing: .6px; }
.prod-card h3 { font-size: 16.5px; color: var(--navy); line-height: 1.4; flex: 1; }
.prod-card .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.prod-card .tag { font-size: 12px; background: var(--sky); color: var(--blue-dark); padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.prod-card .link { color: var(--blue); font-weight: 700; font-size: 14.5px; margin-top: 4px; }
.center-cta { text-align: center; margin-top: 40px; }

/* filter */
.filter-bar { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-bar button { border: 1.5px solid var(--line); background: #fff; color: var(--text); font-weight: 600; font-size: 14px; padding: 9px 20px; border-radius: 999px; cursor: pointer; transition: .15s; }
.filter-bar button.active, .filter-bar button:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* why */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; transition: .2s; }
.why-card:hover { box-shadow: var(--shadow); }
.why-card .num { width: 44px; height: 44px; border-radius: 12px; background: var(--sky); color: var(--blue); font-weight: 800; font-size: 19px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.why-card h3 { font-size: 17.5px; color: var(--navy); margin-bottom: 8px; }
.why-card p { font-size: 14.5px; color: var(--muted); }

/* factory */
.factory-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.factory-item { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; }
.factory-item img { width: 100%; height: 100%; object-fit: cover; transition: .3s; }
.factory-item:hover img { transform: scale(1.06); }
.factory-item span { position: absolute; inset-inline-start: 0; bottom: 0; inset-inline-end: 0; background: linear-gradient(transparent, rgba(10,20,35,.85)); color: #fff; font-size: 13.5px; font-weight: 600; padding: 26px 12px 10px; }

/* certs */
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cert-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center; }
.cert-card img { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 12px; aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.cert-card span { font-size: 14px; font-weight: 600; color: var(--navy); }

/* shows */
.shows-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.shows-grid .factory-item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

/* MOQ band */
.moq-band { background: linear-gradient(120deg, var(--navy) 0%, #1b3a68 100%); color: #fff; }
.moq-band .container { padding-top: 54px; padding-bottom: 54px; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.moq-band h2 { font-size: 26px; margin-bottom: 12px; }
.moq-band p { color: #b9c7dc; max-width: 720px; font-size: 15.5px; }

/* ---------- Product detail ---------- */
.breadcrumb { font-size: 14px; color: var(--muted); padding: 18px 0 0; }
.breadcrumb a { color: var(--blue); }
.pd-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; padding: 34px 0 20px; align-items: start; }
.pd-gallery .main-img { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; padding: 24px; }
.pd-gallery .main-img img { max-height: 100%; width: auto; object-fit: contain; }
.pd-thumbs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 10px; }
.pd-thumbs button { border: 1.5px solid var(--line); background: #fff; border-radius: 9px; padding: 4px; cursor: pointer; aspect-ratio: 1/1; }
.pd-thumbs button.active, .pd-thumbs button:hover { border-color: var(--blue); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pd-info .oem-badge { display: inline-block; background: #fff7ea; color: #b26a00; border: 1px solid #f2d9ac; font-size: 12.5px; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
.pd-info h1 { font-size: 28px; color: var(--navy); line-height: 1.3; margin-bottom: 6px; }
.pd-info .series-link { color: var(--blue); font-weight: 600; font-size: 14px; }
.pd-info .desc { margin: 16px 0 22px; color: var(--text); font-size: 15.5px; }
.pd-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.pd-quick { border-top: 1px solid var(--line); }
.pd-quick div { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.pd-quick b { min-width: 190px; color: var(--navy); flex-shrink: 0; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table th, .spec-table td { text-align: start; padding: 11px 16px; border: 1px solid var(--line); vertical-align: top; }
.spec-table th { background: var(--bg-soft); color: var(--navy); width: 240px; font-weight: 700; }
.pd-3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
.pd-3col .why-card h3 { color: var(--blue); }

/* ---------- About ---------- */
.about-lead { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.about-lead .imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about-lead .imgs img { border-radius: 12px; aspect-ratio: 4/3; object-fit: cover; }
.about-lead h1, .about-lead h2 { font-size: 32px; color: var(--navy); margin-bottom: 18px; }
.about-lead p { color: var(--text); margin-bottom: 14px; font-size: 15.5px; }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: start; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.contact-card h3 { color: var(--navy); font-size: 20px; margin-bottom: 18px; }
.contact-item { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.contact-item:last-child { border-bottom: none; }
.contact-item .ico { width: 42px; height: 42px; border-radius: 11px; background: var(--sky); display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0; }
.contact-item b { display: block; color: var(--navy); font-size: 14px; }
.contact-item span, .contact-item a.val { color: var(--muted); font-size: 14.5px; word-break: break-word; }
.contact-item a.val:hover { color: var(--blue); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { font-size: 13.5px; font-weight: 700; color: var(--navy); display: block; margin-bottom: 5px; }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 14px;
  font-size: 15px; font-family: inherit; color: var(--text); background: #fff; transition: .15s;
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(35,100,232,.12); }
.form-grid textarea { min-height: 120px; resize: vertical; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blog-grid.two { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin: 0 auto; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .2s; display: flex; flex-direction: column; }
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: #c9d8f5; }
.post-card .img-wrap { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-soft); }
.post-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: .3s; }
.post-card:hover .img-wrap img { transform: scale(1.05); }
.post-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.post-card h3 { font-size: 17.5px; color: var(--navy); line-height: 1.42; }
.post-card p { font-size: 14.5px; color: var(--muted); flex: 1; }
.post-card .link { color: var(--blue); font-weight: 700; font-size: 14.5px; }
.post-meta { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .3px; }
.article { max-width: 860px; padding-top: 26px; padding-bottom: 60px; }
.article h1 { font-size: 34px; color: var(--navy); line-height: 1.25; margin: 10px 0 22px; }
.article h2 { font-size: 22px; color: var(--navy); margin: 30px 0 12px; }
.article p { margin-bottom: 15px; font-size: 16px; }
.article ul { list-style: disc; padding-inline-start: 24px; margin-bottom: 15px; }
.article li { margin-bottom: 8px; font-size: 16px; }
.article img.cover { border-radius: var(--radius); margin-bottom: 26px; width: 100%; max-height: 420px; object-fit: cover; }

/* ---------- Social icons ---------- */
.social-row { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.social-row a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.12); color: #cdd9ec; display: flex; align-items: center; justify-content: center; transition: .18s; }
.social-row a:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }
.social-row svg { width: 20px; height: 20px; fill: currentColor; }
.social-row.dark { margin-top: 8px; }
.social-row.dark a { background: var(--sky); color: var(--blue-dark); }
.social-row.dark a:hover { background: var(--blue); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #a9b9d0; font-size: 14.5px; }
.site-footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 34px; padding: 56px 0 40px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.site-footer a:hover { color: #fff; }
.site-footer li { margin-bottom: 9px; }
.site-footer .f-brand img { height: 46px; margin-bottom: 14px; background: #fff; border-radius: 8px; padding: 4px; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; text-align: center; font-size: 13px; color: #7f92ac; }

/* WhatsApp float */
.wa-float { position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 200; width: 58px; height: 58px; background: var(--wa); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 22px rgba(37,211,102,.45); transition: .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero h1 { font-size: 34px; }
  .series-grid, .prod-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .factory-grid, .cert-grid, .shows-grid { grid-template-columns: repeat(3, 1fr); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; inset-inline-start: 0; inset-inline-end: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 12px; text-align: center; justify-content: center; display: inline-flex; }
  .hero .container { grid-template-columns: 1fr; padding-top: 50px; padding-bottom: 50px; }
  .hero-img { order: -1; }
  .hero-img img { max-width: 300px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .blog-grid, .blog-grid.two { grid-template-columns: 1fr; }
  .article h1 { font-size: 26px; }
  .pd-wrap, .about-lead, .contact-wrap, .moq-band .container { grid-template-columns: 1fr; }
  .sec-head h2 { font-size: 26px; }
}
@media (max-width: 560px) {
  .series-grid, .prod-grid, .why-grid { grid-template-columns: 1fr; }
  .factory-grid, .shows-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .pd-thumbs { grid-template-columns: repeat(5, 1fr); }
  .spec-table th { width: 40%; }
  .brand-name { font-size: 16px; }
}
