/* =========================
   ADVANCE MOS RELAY - Static Site
   Goal: match screenshot layout as closely as possible
   ========================= */

:root{
  --blue:#0B2C78;
  --blue2:#1E57C8;
  --text:#222;
  --muted:#666;
  --line:#e8e8e8;
  --bg:#fff;
  --shadow:0 8px 30px rgba(0,0,0,.06);
  --max:1180px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC",Arial,sans-serif;
  color:var(--text);
  background:var(--bg);
}

a{color:inherit;text-decoration:none}
button{font:inherit}

/* Header */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:#fff;
  border-bottom:1px solid rgba(12,40,120,.08);
}
.header-inner{
  height:86px;
  max-width: calc(var(--max) + 140px);
  margin:0 auto;
  padding:0 22px;
  display:flex;
  align-items:center;
  gap:18px;
}
.brand{display:flex;align-items:center;gap:10px;min-width:240px}
.brand-text{
  font-weight:700;
  letter-spacing:.5px;
  font-size:16px;
  color:#19307e;
}
.nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:44px;
  flex:1 1 auto;
  white-space:nowrap;
}
.nav-link{
  position:relative;
  font-size:16px;
  color:#222;
  padding:10px 0;
}
.nav-link.active{color:var(--blue2);font-weight:600}
.nav-link.active::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:-18px;
  height:3px;
  background:var(--blue2);
  border-radius:2px;
}
.header-right{min-width:150px;display:flex;justify-content:flex-end}
.lang{position:relative}
.lang-btn{
  height:40px;
  padding:0 14px;
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid #e6e6e6;
  background:#fff;
  border-radius:4px;
  color:#222;
  cursor:pointer;
}
.lang-menu{
  position:absolute;
  right:0;
  top:48px;
  min-width:160px;
  background:#fff;
  border:1px solid #eee;
  border-radius:6px;
  box-shadow:var(--shadow);
  padding:6px;
  display:none;
}
.lang.open .lang-menu{display:block}
.lang-item{
  width:100%;
  text-align:left;
  border:0;
  background:#fff;
  padding:10px 10px;
  border-radius:6px;
  cursor:pointer;
}
.lang-item:hover{background:#f6f7fb}

/* App container */
.app{min-height:calc(100vh - 86px)}

/* Hero carousel (Home) */
.hero{
  position:relative;
  height:560px;
  overflow:hidden;
}
.hero-slide{
  position:absolute; inset:0;
  background-size:cover;
  background-position:center;
  opacity:0;
  transform:scale(1.02);
  transition:opacity 500ms ease, transform 900ms ease;
}
.hero-slide.active{opacity:1; transform:scale(1);}
.hero-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:44px;height:44px;
  border-radius:50%;
  border:0;
  background:rgba(255,255,255,.75);
  box-shadow:0 2px 14px rgba(0,0,0,.12);
  display:grid;
  place-items:center;
  cursor:pointer;
}
.hero-arrow.left{left:18px}
.hero-arrow.right{right:18px}
.hero-dots{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  bottom:18px;
  display:flex;
  gap:10px;
}
.hero-dot{
  width:8px;height:8px;border-radius:50%;
  background:rgba(0,0,0,.25);
  border:0; cursor:pointer;
}
.hero-dot.active{background:#0b2c78}

/* Section title (matches screenshot: bold title + short blue line + subtitle) */
.section{
  padding:74px 0 58px;
  background:#fff;
}
.section-inner{max-width:var(--max);margin:0 auto;padding:0 22px}
.section-title{
  text-align:center;
  font-size:44px;
  margin:0;
  font-weight:800;
  letter-spacing:2px;
}
.section-underline{
  width:18px;height:3px;border-radius:3px;
  background:var(--blue2);
  margin:18px auto 18px;
}
.section-subtitle{
  text-align:center;
  color:#7b7b7b;
  font-size:15px;
  margin:0;
}

/* Banner (inner pages) */
.banner{
  height:260px;
  background-size:cover;
  background-position:center;
}
.breadcrumb{
  background:#f6f6f8;
  border-top:1px solid #eee;
  border-bottom:1px solid #eee;
}
.breadcrumb-inner{
  max-width:var(--max);
  margin:0 auto;
  padding:18px 22px;
  color:#444;
  font-size:16px;
}
.breadcrumb-inner span{color:#111}
.breadcrumb-sep{margin:0 8px;color:#888}

/* Contact grid */
.cards3{
  max-width:var(--max);
  margin:0 auto;
  padding:54px 22px 90px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:80px;
  align-items:start;
}
.card-mini{
  text-align:center;
}
.card-icon{
  width:44px;height:44px;
  margin:0 auto 14px;
  color:var(--blue);
}
.card-title{
  font-size:22px;
  margin:10px 0 14px;
  font-weight:800;
}
.card-text{
  color:#333;
  font-size:18px;
  margin:0 0 10px;
}
.card-sub{color:#666;font-size:16px;margin:0}

/* Product filters */
.filters{
  max-width:var(--max);
  margin:0 auto;
  padding:34px 22px 18px;
}
.filter-row{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  align-items:center;
  justify-content:flex-start;
}
.filter-btn{
  padding:10px 16px;
  border:1px solid #e6e6e6;
  background:#fff;
  border-radius:2px;
  font-size:16px;
  color:#222;
  cursor:pointer;
}
.filter-btn.active{
  border-color:var(--blue2);
  color:var(--blue2);
}
.products-list{
  max-width:var(--max);
  margin:0 auto;
  padding:24px 22px 110px;
  display:flex;
  justify-content:space-between;
  gap:22px;
  font-size:26px;
  color:#1f1f1f;
}

/* To top */
.to-top{
  position:fixed;
  right:22px;
  bottom:72px;
  width:64px;height:64px;
  border-radius:50%;
  border:1px solid rgba(0,0,0,.07);
  background:rgba(255,255,255,.92);
  box-shadow:0 10px 30px rgba(0,0,0,.10);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  transform:translateY(10px);
  transition:opacity 250ms ease, transform 250ms ease;
  z-index:60;
}
.to-top.show{opacity:1;transform:translateY(0)}
.to-top-inner{display:flex;flex-direction:column;align-items:center;gap:2px;color:#333}
.to-top-text{font-size:12px;letter-spacing:.8px}

/* Responsive */
@media (max-width: 1200px){
  .nav{gap:24px}
}
@media (max-width: 980px){
  .header-inner{height:auto; padding:12px 16px; flex-wrap:wrap}
  .nav{gap:18px; justify-content:flex-start; flex-wrap:wrap}
  .nav-link.active::after{bottom:-8px}
  .hero{height:420px}
  .section-title{font-size:34px}
  .cards3{grid-template-columns:1fr; gap:34px; padding-top:30px}
  .products-list{justify-content:flex-start; flex-wrap:wrap}
}

.logo-img{height:32px; width:auto; display:block}


/* -------- Home extra sections (screenshot-style) -------- */
.home-cards-wrap{
  padding:28px 0 42px;
}
.home-cards{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:18px;
}
.home-card{
  border:1px solid #ededed;
  background:#fff;
  height:120px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.home-card-inner{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  color:#1b2b6d;
}
.home-card-title{
  font-weight:800;
  font-size:16px;
  color:#2a2a2a;
  margin:0;
}
.home-card-sub{
  font-size:12px;
  color:#8a8a8a;
  margin:0;
  margin-top:-2px;
}
.home-card svg{color:#4a5bb2}

/* About band */
.about-band{
  position:relative;
  padding:48px 0;
  background: linear-gradient(120deg, #0b1a57 0%, #142a86 40%, #0d2b7a 100%);
  overflow:hidden;
}
.about-band::before{
  content:"";
  position:absolute; inset:-80px;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.10) 0 2px, transparent 3px) 0 0/120px 120px,
    radial-gradient(circle at 70% 60%, rgba(255,255,255,.08) 0 1.5px, transparent 3px) 0 0/140px 140px,
    linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,0));
  opacity:.65;
  pointer-events:none;
}
.about-inner{
  position:relative;
  max-width: var(--max);
  margin:0 auto;
  padding:0 22px;
  display:grid;
  grid-template-columns: 520px 1fr;
  gap:46px;
  align-items:center;
}
.about-img{
  width:100%;
  border-radius:2px;
  overflow:hidden;
  background:#0b1a57;
  box-shadow: 0 10px 35px rgba(0,0,0,.25);
}
.about-img{background:#0b1a57;}
.about-img{
  display:flex;
  justify-content:center;
}
.about-img img{width:88%; height:auto; display:block;}
.about-content{color:#fff;}
.about-title{
  font-size:22px;
  font-weight:900;
  margin:0;
}
.about-underline{
  width:14px;height:3px;border-radius:3px;
  background:#fff;
  margin:10px 0 14px;
  opacity:.9;
}
.about-text{
  font-size:12px;
  line-height:1.9;
  color: rgba(255,255,255,.85);
  margin:0 0 18px;
  max-width: 560px;
}
.about-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 18px;
  border:1px solid rgba(255,255,255,.65);
  border-radius:18px;
  color:#fff;
  background: transparent;
  cursor:pointer;
}
.about-btn:hover{background:rgba(255,255,255,.08)}

/* Products block on home */
.home-products{
  padding:56px 0 52px;
}
.home-products .section-underline{ background: var(--blue2); }
.home-products .home-products-link{
  display:block;
  text-align:center;
  color:#a3a3a3;
  font-size:12px;
  margin-top:18px;
}

/* Bottom callout */
.home-callout{
  background:#eef0f5;
  padding:46px 0;
}
.callout-box{
  max-width: 560px;
  margin: 0 auto;
  background:#15257c;
  color:#fff;
  text-align:center;
  padding:26px 18px;
}
.callout-title{
  font-weight:900;
  letter-spacing:1px;
  margin:0;
  font-size:14px;
}
.callout-sub{
  margin:6px 0 0;
  font-size:12px;
  opacity:.9;
}

@media (max-width: 980px){
  .home-cards{grid-template-columns:1fr; gap:12px}
  .about-inner{grid-template-columns:1fr; gap:18px}
  .about-img{height:240px}
}


/* ===== Products page (SSR only) ===== */
.ssr-wrap{max-width:var(--max); margin:0 auto; padding:0 22px 70px;}
.ssr-table-wrap{
  border:1px solid #ededed;
  background:#fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  overflow:auto;
}
.ssr-table{
  width: 1200px;
  border-collapse:collapse;
  font-size:12px;
}
.ssr-table thead th{
  position:sticky; top:0;
  background:#e7f1ff;
  color:#1f2a44;
  z-index:2;
  border-bottom:1px solid #d8e6ff;
}
.ssr-table th, .ssr-table td{
  border:1px solid #e8e8e8;
  padding:8px 10px;
  vertical-align:top;
}
.ssr-note{
  text-align:center;
  color:#8a8a8a;
  font-size:12px;
  margin-top:12px;
}


/* ===== Products page (SSR + LDO + nA LDO tabs) ===== */
.prod-wrap{max-width:var(--max); margin:0 auto; padding:0 22px 70px;}
.prod-tabs2{display:flex; gap:10px; flex-wrap:wrap; justify-content:center; margin: 10px 0 24px;}
.prod-tab2{
  border:1px solid #e8e8e8;
  background:#fff;
  padding:10px 16px;
  font-size:14px;
  color:#2a2a2a;
  cursor:pointer;
}
.prod-tab2.active{border-color:#2a55d6; color:#2a55d6;}

.tbl-wrap{
  border:1px solid #ededed;
  background:#fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  overflow:auto;
}
.tbl{
  border-collapse:collapse;
  font-size:12px;
}
.tbl th, .tbl td{
  border:1px solid #e8e8e8;
  padding:8px 10px;
  vertical-align:top;
}
.tbl thead th{
  position:sticky; top:0;
  background:#e7f1ff;
  color:#1f2a44;
  z-index:2;
  border-bottom:1px solid #d8e6ff;
}
.prod-note{
  text-align:center;
  color:#8a8a8a;
  font-size:12px;
  margin-top:12px;
}
