/* ==========================================================================
   Dingxin International (chip66) — chip trading company theme
   ========================================================================== */

:root {
  --primary: #1e50ae;
  --primary-dark: #163d85;
  --primary-darker: #0d2b62;
  --accent: #00a8e1;
  --accent-2: #3f23b4;
  --ink: #1d2531;
  --ink-2: #4a5568;
  --ink-3: #8592a6;
  --line: #e4e9f2;
  --bg: #ffffff;
  --bg-muted: #f4f7fc;
  --bg-dark: #08162c;
  --radius: 6px;
  --shadow: 0 6px 24px rgba(13, 43, 98, .08);
  --shadow-lg: 0 18px 48px rgba(13, 43, 98, .14);
  --container: 1280px;
  --header-h: 80px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.lang-en { font-family: "Helvetica Neue", Arial, "Segoe UI", Roboto, sans-serif; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.3; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 10px; top: 10px; background: #fff; padding: 8px 14px; z-index: 200; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.is-stuck { box-shadow: 0 4px 20px rgba(13, 43, 98, .09); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-logo { height: 46px; width: auto; }
.brand-text strong { display: block; font-size: 19px; color: var(--primary); letter-spacing: .3px; }
.brand-text small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.lang-en .brand-text strong { font-size: 16px; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-item > a {
  display: block;
  padding: 10px 12px;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.nav-item:hover > a, .nav-item.is-active > a { color: var(--primary); border-bottom-color: var(--primary); }

.sub-nav {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 236px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .22s ease;
  z-index: 30;
}
.nav-item:hover .sub-nav, .nav-item:focus-within .sub-nav { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-nav li a { display: block; padding: 8px 18px; font-size: 14px; color: var(--ink-2); }
.sub-nav li a:hover { background: var(--bg-muted); color: var(--primary); }

.nav-tools { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 20px;
  padding: 4px 12px;
  transition: all .2s;
}
.lang-switch:hover { background: var(--primary); color: #fff; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--primary); margin: 4px 0; transition: .25s; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 30px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .22s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 8px 20px rgba(30, 80, 174, .28); }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-block { display: flex; width: 100%; margin-top: 18px; }
.link-more { display: inline-block; font-size: 14px; color: var(--primary); font-weight: 600; }
.link-more:hover { color: var(--accent); }

/* ---------------------------------------------------------------- hero */

.hero { position: relative; background: var(--bg-dark); overflow: hidden; }
.hero-slides { position: relative; height: clamp(360px, 46vw, 560px); }
.hero-slide {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(100deg, rgba(6, 20, 42, .84) 0%, rgba(6, 20, 42, .62) 34%, rgba(6, 20, 42, .26) 68%, rgba(6, 20, 42, .08) 100%),
    var(--hero-bg);
  background-size: cover, cover;
  background-position: center, center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s ease;
  display: flex;
  align-items: center;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-inner { position: relative; z-index: 2; color: #fff; max-width: var(--container); }
.hero-title { font-size: clamp(26px, 3.6vw, 46px); letter-spacing: .5px; margin-bottom: .4em; text-shadow: 0 2px 18px rgba(4, 16, 36, .55); }
.hero-sub { font-size: clamp(14px, 1.4vw, 19px); color: rgba(255, 255, 255, .9); margin-bottom: 1.8em; max-width: 640px; text-shadow: 0 2px 12px rgba(4, 16, 36, .5); }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 26px; z-index: 3; display: flex; gap: 10px; }
.hero-dot {
  width: 34px; height: 4px; border: 0; padding: 0; cursor: pointer;
  background: rgba(255, 255, 255, .35); border-radius: 2px; transition: background .25s;
}
.hero-dot.is-active { background: #fff; }
.hero-fallback { background: linear-gradient(120deg, var(--primary-darker), var(--accent-2)); }

/* ---------------------------------------------------------------- sections */

.section { padding: 68px 0; }
.section-light { background: #fff; }
.section-muted { background: var(--bg-muted); }

.section-title {
  text-align: center;
  font-size: clamp(22px, 2.4vw, 32px);
  color: var(--ink);
  position: relative;
  padding-bottom: 16px;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}
.section-title.light { color: #fff; }
.section-lead { max-width: 980px; margin: 22px auto 40px; text-align: center; color: var(--ink-2); }
.block-title { font-size: 20px; margin: 42px 0 20px; padding-left: 12px; border-left: 4px solid var(--primary); }
.section-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.section-head-row .section-title { margin-bottom: 24px; }

.rich p { margin: 0 0 .9em; }
.rich ul, .rich ol { margin: 0 0 1em; }
.rich li { margin-bottom: .35em; }
.rich strong { color: var(--primary); }
.light-text { color: rgba(255, 255, 255, .84); }
.light-text strong { color: #fff; }

/* ---------------------------------------------------------------- stats */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.stat-item {
  text-align: center;
  padding: 26px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.stat-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cddcf5; }
.stat-value { font-size: 38px; font-weight: 800; color: var(--primary); line-height: 1.1; }
.stat-value i { font-style: normal; font-size: 20px; color: var(--accent); margin-left: 2px; }
.stat-label { font-size: 14px; color: var(--ink-2); margin-top: 6px; }

/* ---------------------------------------------------------------- product lines */

.line-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.line-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px 22px;
  box-shadow: 0 2px 10px rgba(13, 43, 98, .04);
  transition: transform .25s, box-shadow .25s;
}
.line-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.line-logo { height: 40px; width: auto; margin: 0 auto 18px; object-fit: contain; }
.line-title { font-size: 16px; color: var(--primary); text-align: center; margin-bottom: 14px; }
.line-body { font-size: 13.5px; color: var(--ink-2); max-height: 340px; overflow: auto; }
.line-body p { margin-bottom: .45em; }
.line-body::-webkit-scrollbar { width: 5px; }
.line-body::-webkit-scrollbar-thumb { background: #c9d6ec; border-radius: 3px; }

/* ---------------------------------------------------------------- about band */

.about-band {
  position: relative;
  background: var(--bg-dark) url('/uploads/3bcd7a7c6b16.webp') center/cover no-repeat;
  padding: 84px 0;
}
.about-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 20, 42, .95) 0%, rgba(6, 20, 42, .78) 55%, rgba(6, 20, 42, .5) 100%);
}
.about-band-inner { position: relative; z-index: 2; }
.about-text { max-width: 760px; }
.about-text .section-title { text-align: left; margin-bottom: 24px; }
.about-text .section-title::after { left: 0; transform: none; }
.about-text .btn { margin-top: 12px; }

/* ---------------------------------------------------------------- brand logos */

.logo-marquee { overflow: hidden; position: relative; padding: 18px 0; }
.logo-marquee::before, .logo-marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.logo-marquee::before { left: 0; background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0)); }
.logo-marquee::after { right: 0; background: linear-gradient(270deg, #fff, rgba(255, 255, 255, 0)); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite; }
.logo-marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img { height: 46px; width: auto; object-fit: contain; filter: grayscale(.35); opacity: .85; transition: .25s; }
.marquee-track img:hover { filter: none; opacity: 1; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.brand-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 32px; }
.brand-grid-lg { grid-template-columns: repeat(5, 1fr); margin-top: 0; }
.brand-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 20px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: all .25s;
}
.brand-card img { height: 34px; width: auto; object-fit: contain; }
.brand-card span { font-size: 12.5px; color: var(--ink-2); text-align: center; }
.brand-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-3px); }
.brand-card:hover span { color: var(--primary); }

/* ---------------------------------------------------------------- news */

.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.news-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-thumb { height: 160px; overflow: hidden; background: var(--bg-muted); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .news-thumb img { transform: scale(1.06); }
.news-body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.news-body h3 { font-size: 15.5px; margin-bottom: 8px; }
.news-body p { font-size: 13px; color: var(--ink-2); flex: 1; overflow: hidden; white-space: pre-line; }
.news-body time, .news-date { font-size: 12px; color: var(--ink-3); }

.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-item {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 22px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  transition: all .25s;
}
.news-item:hover { box-shadow: var(--shadow); border-color: #cddcf5; }
.news-item-img { height: 130px; overflow: hidden; border-radius: 4px; background: var(--bg-muted); }
.news-item-img img { width: 100%; height: 100%; object-fit: cover; }
.news-item-body h3 { font-size: 17px; margin-bottom: 6px; }
.news-item-body p { font-size: 13.5px; color: var(--ink-2); margin-bottom: 8px; white-space: pre-line; }
.news-tag {
  display: inline-block; font-size: 12px; color: var(--primary);
  background: rgba(30, 80, 174, .08); padding: 2px 10px; border-radius: 20px;
}

.tab-row { display: flex; gap: 8px; justify-content: center; margin-bottom: 34px; }
.tab {
  padding: 9px 26px; border: 1px solid var(--line); border-radius: 30px;
  font-size: 14px; color: var(--ink-2); background: #fff; transition: .2s;
}
.tab:hover { color: var(--primary); border-color: var(--primary); }
.tab.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }

.article { max-width: 940px; margin: 0 auto; }
.article-title { font-size: clamp(22px, 2.6vw, 32px); text-align: center; margin-bottom: 12px; }
.article-meta { display: flex; justify-content: center; align-items: center; gap: 14px; font-size: 13px; color: var(--ink-3); margin-bottom: 26px; }
.article-cover { margin: 0 auto 30px; max-width: 760px; border-radius: var(--radius); overflow: hidden; }
.article-body { font-size: 15.5px; color: var(--ink-2); }
.article-foot { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); }
.brand-title { color: var(--primary); }

/* ---------------------------------------------------------------- page banner */

.page-banner {
  position: relative;
  height: clamp(240px, 30vw, 380px);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.page-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,30,64,.55) 0%, rgba(9,30,64,.72) 55%, rgba(9,30,64,.62) 100%); }
.page-banner-inner { position: relative; z-index: 2; color: #fff; }
.page-banner h1 { font-size: clamp(24px, 3vw, 40px); margin-bottom: .3em; }
.page-banner p { font-size: 15px; letter-spacing: 2px; color: rgba(255, 255, 255, .85); margin: 0; }
.page-banner-404 h1 { font-size: 64px; }

.page-body-wrap { max-width: 940px; margin: 0 auto; }
.page-body { font-size: 15.5px; color: var(--ink-2); }
.page-stats { margin-top: 48px; }
.sub-title {
  text-align: center;
  font-size: 20px;
  color: var(--ink);
  position: relative;
  padding-bottom: 12px;
  margin: 10px 0 26px;
}
.sub-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}
.page-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 10px; }
.gallery-item { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-wide { grid-column: span 1; }
.page-body-wrap.has-gallery .page-gallery { grid-template-columns: repeat(3, 1fr); }
.page-body-wrap.has-gallery .gallery-wide:first-child { grid-column: span 2; grid-row: span 2; }

/* ---------------------------------------------------------------- contact */

.contact-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
.contact-main .section-title { text-align: left; margin-bottom: 22px; }
.contact-main .section-title::after { left: 0; transform: none; }
.contact-body { white-space: pre-line; }
.contact-sub-en { text-align: center; color: var(--ink-3); font-size: 13px; margin: -14px 0 18px; }
.contact-hotline { margin-top: 18px; }
.contact-fields { list-style: none; margin: 0 0 22px; padding: 0; }
.contact-fields li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.contact-fields li span { display: block; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.contact-fields li strong { font-size: 15px; color: var(--ink); font-weight: 500; word-break: break-all; }

.share-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
}
.share-bar a { color: var(--primary); }
.share-bar a:hover { color: var(--accent); }

.news-item.is-hidden { display: none; }
.load-more-wrap { text-align: center; margin-top: 26px; }

.prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.pn-link {
  display: block;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: .2s;
}
.pn-link span { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 2px; }
.pn-link strong { font-size: 14px; font-weight: 600; color: var(--ink); }
.pn-link:hover { border-color: var(--primary); }
.pn-link:hover strong { color: var(--primary); }
.pn-next { text-align: right; }

/* ---------------------------------------------------------------- layout with aside */

.layout-with-aside { display: grid; grid-template-columns: 240px 1fr; gap: 34px; align-items: start; }
.aside {
  background: var(--bg-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  position: sticky;
  top: calc(var(--header-h) + 18px);
}
.aside-title { font-size: 16px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--primary); }
.aside-list { list-style: none; margin: 0; padding: 0; }
.aside-list li a {
  display: block; padding: 7px 10px; font-size: 14px; color: var(--ink-2);
  border-radius: 4px; transition: .2s;
}
.aside-list li a:hover { background: #fff; color: var(--primary); }
.aside-list li.is-active a { background: var(--primary); color: #fff; }
.aside-list-logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.aside-list-logos li a { display: flex; align-items: center; justify-content: center; height: 46px; background: #fff; padding: 6px; }
.aside-list-logos li a img { max-height: 30px; width: auto; }

.contact-list { list-style: none; margin: 0 0 18px; padding: 0; }
.contact-list li { margin-bottom: 12px; font-size: 13.5px; color: var(--ink-2); }
.contact-list li span { display: block; font-size: 12px; color: var(--ink-3); }

/* ---------------------------------------------------------------- products */

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-grid-lg { grid-template-columns: repeat(4, 1fr); }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: all .25s;
}
.product-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-3px); }
.product-img { aspect-ratio: 4 / 3; background: var(--bg-muted); overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.product-card:hover .product-img img { transform: scale(1.05); }
.product-name { padding: 12px 14px; font-size: 13.5px; color: var(--ink-2); text-align: center; border-top: 1px solid var(--line); }
.product-pn { padding: 0 14px 12px; font-size: 12px; color: var(--ink-3); text-align: center; }
.cat-block { margin-bottom: 52px; }
.cat-block-title { font-size: 20px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.cat-block-title a { color: var(--ink); }
.cat-block-title a:hover { color: var(--primary); }
.cat-count { font-size: 12px; color: var(--primary); background: rgba(30, 80, 174, .09); padding: 2px 10px; border-radius: 20px; }
.cat-desc { color: var(--ink-2); font-size: 14px; margin-bottom: 18px; }
.cat-desc.lead { font-size: 15px; margin-bottom: 24px; }
.empty { padding: 60px 0; text-align: center; color: var(--ink-3); }

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.product-detail-img { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.product-detail-info h1 { font-size: 24px; }
.pd-pn, .pd-sku { font-size: 14px; color: var(--ink-2); }
.pd-desc { margin: 18px 0; }
.product-detail-info .btn { margin-right: 10px; margin-top: 8px; }
.brand-logo-large { text-align: center; margin-top: 44px; }
.brand-logo-large img { height: 90px; width: auto; margin: 0 auto; object-fit: contain; }

/* ---------------------------------------------------------------- forms */

.inquiry-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-top: 24px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-row label em { color: #e0483e; font-style: normal; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 10px 14px; font-size: 14px; font-family: inherit;
  border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30, 80, 174, .12);
}
.form-success { background: #fff; border: 1px solid var(--line); border-left: 4px solid #21a366; border-radius: var(--radius); padding: 34px; text-align: center; }
.form-success h2 { color: #21a366; }
.form-error { color: #e0483e; font-size: 14px; }

/* ---------------------------------------------------------------- cta */

.cta-band { background: linear-gradient(120deg, var(--primary-darker), var(--primary) 55%, var(--accent-2)); color: #fff; padding: 52px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(20px, 2.2vw, 28px); margin-bottom: .4em; }
.cta-inner p { margin: 0; color: rgba(255, 255, 255, .85); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-actions .btn-ghost { color: #fff; }

/* ---------------------------------------------------------------- footer */

.site-footer { background: var(--bg-dark); color: rgba(255, 255, 255, .72); padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.3fr .8fr 1fr; gap: 34px; padding-bottom: 40px; }
.footer-col h4 { font-size: 15px; color: #fff; margin: 0 0 12px; }
.footer-col p { font-size: 13.5px; margin-bottom: 8px; }
.footer-col a:hover { color: var(--accent); }
.footer-logo { height: 44px; width: auto; margin-bottom: 14px; }
.footer-name { color: #fff; font-weight: 600; font-size: 15px; }
.footer-desc { font-size: 13px; }
.qr-box { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; }
.qr-box img { width: 118px; height: 118px; object-fit: contain; background: #fff; padding: 6px; border-radius: 4px; }
.qr-box span { font-size: 12px; color: rgba(255, 255, 255, .55); }
.footer-links { list-style: none; margin: 0; padding: 0; columns: 2; }
.footer-links li { margin-bottom: 7px; font-size: 13.5px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; font-size: 12.5px; color: rgba(255, 255, 255, .5); }

/* ---------------------------------------------------------------- fabs */

.fab {
  position: fixed; right: 18px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: var(--primary); font-weight: 700; font-size: 13px;
  box-shadow: var(--shadow-lg); transition: .25s;
}
.fab:hover { background: var(--primary); color: #fff; }
.fab-top { bottom: 78px; }
.fab-mail { bottom: 22px; }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .line-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-grid, .brand-grid-lg { grid-template-columns: repeat(4, 1fr); }
  .product-grid, .product-grid-lg { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; top: var(--header-h); right: 0; bottom: 0; width: 280px;
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 18px 30px; box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .28s ease; overflow-y: auto;
  }
  .site-nav.is-open { transform: translateX(0); }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item > a { padding: 12px 6px; border-bottom: 1px solid var(--line); }
  .sub-nav { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 12px; }
  .nav-tools { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 18px; }
  .layout-with-aside { grid-template-columns: 1fr; }
  .aside { position: static; }
  .product-detail { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 120px 1fr; }
  .news-item .news-date { grid-column: 2; }
  .product-grid, .product-grid-lg { grid-template-columns: repeat(2, 1fr); }
  .brand-grid, .brand-grid-lg { grid-template-columns: repeat(3, 1fr); }
  .page-body-wrap.has-gallery .page-gallery { grid-template-columns: 1fr; }
  .page-body-wrap.has-gallery .gallery-wide:first-child { grid-column: span 1; grid-row: span 1; }
  .page-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .line-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .brand-grid, .brand-grid-lg { grid-template-columns: repeat(2, 1fr); }
  .product-grid, .product-grid-lg { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: 16px; }
  .brand-logo { height: 38px; }
  .hero-slides { height: 320px; }
}
