/* ===========================================================
   Ningbo Ningshing Trading Group Inc. — Modern Stylesheet
   Optimized 2026 — UTF-8 — Responsive — Mobile-first
   =========================================================== */

:root {
  --color-primary:        #003d82;   /* deep brand blue   */
  --color-primary-dark:   #002a5c;
  --color-primary-light:  #1a5cb0;
  --color-accent:         #ff6a13;   /* signature orange  */
  --color-accent-dark:    #e55a00;
  --color-text:           #2b2b2b;
  --color-text-muted:     #6b7280;
  --color-bg:             #ffffff;
  --color-bg-alt:         #f5f7fb;
  --color-bg-soft:        #eef3fb;
  --color-border:         #e2e6ee;
  --color-success:        #16a34a;
  --shadow-sm:  0 1px 2px rgba(15, 23, 42, .06);
  --shadow-md:  0 6px 18px rgba(15, 23, 42, .08);
  --shadow-lg:  0 14px 40px rgba(15, 23, 42, .10);
  --radius:     8px;
  --radius-lg:  14px;
  --max-width:  1200px;
  --transition: .25s ease;
  --font-sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", "Microsoft YaHei", serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent-dark); }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; line-height: 1.25; color: var(--color-primary-dark); font-weight: 700; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
hr { border: 0; border-top: 1px solid var(--color-border); margin: 2.5rem 0; }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
.section   { padding: 4rem 0; }
.section--alt { background-color: var(--color-bg-alt); }
.section--soft { background-color: var(--color-bg-soft); }
.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--color-accent-dark);
  margin-bottom: .5rem;
}

/* ---------- Top info bar ---------- */
.topbar {
  background: var(--color-primary-dark);
  color: #d6dbe6;
  font-size: .85rem;
  padding: .4rem 0;
}
.topbar a { color: #fff; }
.topbar a:hover { color: #ffd6b8; }
.topbar__row {
  display: flex; flex-wrap: wrap; gap: 1.25rem;
  justify-content: space-between; align-items: center;
}
.topbar__item { display: inline-flex; align-items: center; gap: .35rem; }

/* ---------- Header / Navigation ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: .75rem; }
.brand__logo { height: 52px; width: auto; }
.brand__text  { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name-cn { font-size: 1.05rem; font-weight: 700; color: var(--color-primary-dark); }
.brand__name-en { font-size: .8rem; color: var(--color-text-muted); letter-spacing: .03em; }

.nav-toggle {
  display: none;
  background: transparent; border: 0;
  width: 44px; height: 44px; cursor: pointer;
  color: var(--color-primary);
  border-radius: 6px;
}
.nav-toggle:hover { background: var(--color-bg-soft); }
.nav-toggle svg { width: 26px; height: 26px; }

.nav__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 1.6rem; align-items: center;
}
.nav__link {
  display: inline-block;
  font-weight: 600; font-size: .95rem;
  color: var(--color-text);
  padding: .35rem 0;
  position: relative;
}
.nav__link::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px; background: var(--color-accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.nav__link:hover, .nav__link.is-active {
  color: var(--color-primary);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.nav__item--has-children { position: relative; }
.nav__submenu {
  position: absolute; top: 100%; left: -1rem;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: .5rem 0;
  margin-top: .35rem;
  list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 10;
}
.nav__item--has-children:hover .nav__submenu,
.nav__item--has-children:focus-within .nav__submenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav__submenu a {
  display: block; padding: .55rem 1.1rem; font-size: .9rem;
  color: var(--color-text);
}
.nav__submenu a:hover { background: var(--color-bg-soft); color: var(--color-primary); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .45rem;
  padding: .7rem 1.4rem;
  font-weight: 600; font-size: .95rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn--primary:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
}
.btn--ghost {
  background: #fff;
  color: var(--color-primary);
  border-color: var(--color-border);
}
.btn--ghost:hover { border-color: var(--color-primary); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(0,61,130,.92) 0%, rgba(0,42,92,.85) 60%, rgba(255,106,19,.35) 100%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.12), transparent 50%);
  color: #fff;
  padding: 5rem 0 4.5rem;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 15% 80%, rgba(255,255,255,.06), transparent 35%),
    radial-gradient(circle at 90% 30%, rgba(255,255,255,.08), transparent 40%);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem; align-items: center;
  position: relative; z-index: 1;
}
.hero__title {
  font-size: clamp(2rem, 4vw, 3.1rem);
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero__title em { color: #ffc9a0; font-style: normal; }
.hero__lead {
  font-size: 1.08rem;
  color: #e8eef8;
  max-width: 580px;
  margin-bottom: 1.8rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.hero__card h3 { color: #fff; margin-bottom: .8rem; font-size: 1.15rem; }
.hero__stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem; margin: 0;
}
.hero__stats li {
  list-style: none;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 1rem;
}
.hero__stats strong {
  display: block;
  font-size: 1.7rem; color: #ffd6b8;
  font-weight: 800; line-height: 1.1;
}
.hero__stats span { color: #d6dbe6; font-size: .85rem; }

/* ---------- Section heading ---------- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section-head h2 { margin-bottom: .5rem; }
.section-head p  { color: var(--color-text-muted); margin: 0; }

/* ---------- Category cards ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.cat-card {
  position: relative;
  display: block;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem 1.4rem;
  color: inherit;
  text-decoration: none;
  transition: all var(--transition);
  overflow: hidden;
}
.cat-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.cat-card:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.cat-card:hover::before { transform: scaleX(1); }
.cat-card__icon {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--color-bg-soft);
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.cat-card__icon svg { width: 26px; height: 26px; }
.cat-card h3 { margin-bottom: .35rem; font-size: 1.1rem; }
.cat-card p  { color: var(--color-text-muted); font-size: .9rem; margin: 0; line-height: 1.5; }
.cat-card__more {
  display: inline-block; margin-top: .9rem;
  color: var(--color-primary); font-weight: 600; font-size: .88rem;
}
.cat-card__more::after { content: " →"; transition: margin var(--transition); }
.cat-card:hover .cat-card__more::after { margin-left: 4px; }

/* ---------- Feature row ---------- */
.feature-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.feature {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.feature__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--color-primary);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1rem; margin-bottom: .25rem; }
.feature p  { font-size: .88rem; color: var(--color-text-muted); margin: 0; }

/* ---------- Product grid (sub-pages) ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}
.product {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: all var(--transition);
}
.product:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.product__media {
  aspect-ratio: 1 / 1;
  background: var(--color-bg-alt);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}
.product__media img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: .75rem;
  transition: transform .35s ease;
}
.product:hover .product__media img { transform: scale(1.05); }
.product__body { padding: .85rem 1rem 1.1rem; flex: 1; display: flex; flex-direction: column; }
.product__code {
  font-size: .75rem; font-weight: 700; letter-spacing: .04em;
  color: var(--color-accent-dark);
  text-transform: uppercase; margin-bottom: .25rem;
}
.product__name { font-size: .92rem; color: var(--color-text); margin: 0 0 .35rem; line-height: 1.4; }
.product__desc { font-size: .82rem; color: var(--color-text-muted); margin: 0; }

/* ---------- Spec table ---------- */
.spec-table {
  width: 100%; border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: .9rem;
}
.spec-table th, .spec-table td {
  padding: .7rem 1rem; text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.spec-table th {
  background: var(--color-primary-dark);
  color: #fff;
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase; letter-spacing: .04em;
}
.spec-table tr:last-child td { border-bottom: 0; }
.spec-table tr:nth-child(even) td {
	background: var(--color-bg-alt);
	font-size: 12px;
}

/* ---------- Page intro / breadcrumb ---------- */
.page-head {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: 2.5rem 0 2rem;
}
.page-head h1 { color: #fff; margin-bottom: .35rem; }
.page-head p  { color: #d6dbe6; margin: 0; max-width: 720px; }
.breadcrumb {
  list-style: none; padding: 0; margin: 0 0 1rem;
  display: flex; flex-wrap: wrap; gap: .5rem;
  font-size: .85rem; color: #b3c2dc;
}
.breadcrumb a { color: #fff; opacity: .85; }
.breadcrumb a:hover { opacity: 1; }
.breadcrumb li + li::before { content: "›"; margin-right: .5rem; opacity: .6; }

/* ---------- Sidebar / sub-navigation ---------- */
.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
}
.sidebar {
  position: sticky; top: 80px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 0;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
.sidebar h4 {
  font-size: .78rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: .35rem 1.1rem; margin: 0 0 .35rem;
}
.sidebar ul { list-style: none; padding: 0; margin: 0 0 .5rem; }
.sidebar li a {
  display: flex; align-items: center; gap: .5rem;
  padding: .5rem 1.1rem;
  color: var(--color-text);
  font-size: .9rem;
  border-left: 3px solid transparent;
  transition: all var(--transition);
}
.sidebar li a:hover,
.sidebar li a.is-active {
  background: var(--color-bg-soft);
  color: var(--color-primary);
  border-left-color: var(--color-accent);
}
.sidebar li a .count {
  margin-left: auto; color: var(--color-text-muted);
  font-size: .75rem; background: var(--color-bg-alt);
  border-radius: 999px; padding: .1rem .55rem;
}

/* ---------- Contact card ---------- */
.contact-card {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
}
.contact-card h2 { color: #fff; margin-bottom: .5rem; }
.contact-card p  { color: #d6dbe6; margin: 0 0 1.25rem; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .9rem; }
.contact-list strong { display: block; color: #ffc9a0; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .15rem; }
.contact-list a { color: #fff; }

/* ---------- Footer ---------- */
.footer {
  background: #0a1d3a;
  color: #c0c8d8;
  padding: 3rem 0 1.25rem;
  margin-top: 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}
.footer h4 {
  color: #fff; font-size: 1rem; margin-bottom: 1rem;
  text-transform: none; letter-spacing: 0;
}
.footer p, .footer li { font-size: .9rem; line-height: 1.7; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer a { color: #c0c8d8; }
.footer a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.25rem;
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; align-items: center;
  font-size: .82rem;
}
.footer__brand { display: flex; gap: .75rem; align-items: center; margin-bottom: 1rem; }
.footer__brand .brand__name-cn { color: #fff; }
.footer__brand .brand__name-en { color: #8a98b3; }

/* ---------- Animations / utilities ---------- */
.fade-up {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.is-visible { opacity: 1; transform: translateY(0); }

.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2rem; }
  .layout    { grid-template-columns: 1fr; }
  .sidebar   { position: static; max-height: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .contact-card { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.4rem; }
  .section { padding: 3rem 0; }
  .hero    { padding: 3.5rem 0 3rem; }
  .topbar__row { justify-content: center; text-align: center; }

  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav__list {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
    padding: .5rem 0;
    gap: 0;
  }
  .nav__list.is-open { display: flex; }
  .nav__link { padding: .85rem 1.25rem; }
  .nav__link::after { display: none; }
  .nav__submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; margin: 0; padding: 0 0 0 1rem;
  }
  .nav__submenu a { padding: .55rem 1.25rem; font-size: .85rem; }

  .footer__grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid     { grid-template-columns: 1fr; }
  .hero__stats  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .product-grid { grid-template-columns: 1fr; }
  .topbar { font-size: .78rem; }
  .brand__logo { height: 42px; }
  .brand__name-cn { font-size: .92rem; }
}

/* ---------- Print ---------- */
@media print {
  .header, .topbar, .footer, .nav-toggle { display: none; }
  body { color: #000; background: #fff; }
  .hero { background: #fff; color: #000; padding: 1rem 0; }
  .hero__title, .hero__title em { color: #000; }
}
