/* JCLAMP - Jincheng Lighting static site stylesheet (EN/CN shared) */
:root {
  --primary: #14538c;
  --primary-dark: #0e3d68;
  --accent: #f5a623;
  --bg: #f6f8fa;
  --text: #2a3440;
  --muted: #6b7683;
  --line: #e3e8ee;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(16, 42, 67, .08);
  --shadow-lg: 0 10px 30px rgba(16, 42, 67, .14);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.65; font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }
ul, ol { list-style: none; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 52px; width: auto; }
.main-nav ul { display: flex; gap: 6px; align-items: center; }
.main-nav a {
  display: block; padding: 8px 14px; border-radius: 6px; font-weight: 500;
  color: var(--text); font-size: 15px;
}
.main-nav a:hover { background: var(--bg); color: var(--primary); }
.main-nav a.active { color: var(--primary); background: #e8f1f9; }
.lang-switch {
  margin-left: 10px; padding: 7px 14px; border: 1px solid var(--primary);
  border-radius: 20px; color: var(--primary); font-size: 14px; white-space: nowrap;
}
.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: 24px; height: 2px; background: var(--primary); margin: 5px 0; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 420px; display: flex; align-items: center;
  background-size: cover; background-position: center; color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,40,70,.78) 8%, rgba(10,40,70,.35) 55%, rgba(10,40,70,.08));
}
.hero-inner { position: relative; padding: 90px 0; }
.hero h1 { font-size: 40px; line-height: 1.25; margin-bottom: 14px; text-shadow: 0 2px 8px rgba(0,0,0,.35); }
.hero p { font-size: 18px; max-width: 560px; opacity: .95; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.hero .btn { margin-top: 26px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 11px 26px; border-radius: 6px; font-weight: 600;
  background: var(--accent); color: #fff; transition: .2s; border: 0; cursor: pointer; font-size: 15px;
}
.btn:hover { background: #e2941a; color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn-primary { background: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section.alt { background: var(--white); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { font-size: 30px; color: var(--primary-dark); position: relative; padding-bottom: 14px; }
.section-head h2::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0;
  width: 52px; height: 3px; background: var(--accent); border-radius: 2px;
}
.section-head p { color: var(--muted); margin-top: 10px; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: .25s; display: block; color: var(--text);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); color: var(--text); }
.card .thumb { aspect-ratio: 4 / 3; overflow: hidden; background: #eef1f4; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .thumb img { transform: scale(1.06); }
.card .body { padding: 16px 18px; }
.card .body h3 { font-size: 16px; font-weight: 600; }
.card .body .meta { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* category card overlay */
.cat-card { position: relative; border-radius: var(--radius); overflow: hidden; display: block; aspect-ratio: 16/10; box-shadow: var(--shadow); }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.cat-card:hover img { transform: scale(1.06); }
.cat-card .label {
  position: absolute; inset: auto 0 0 0; padding: 26px 18px 14px; color: #fff;
  background: linear-gradient(transparent, rgba(8,30,52,.85)); font-weight: 600;
}
.cat-card .label small { display: block; font-weight: 400; opacity: .85; font-size: 13px; }
.cat-card.empty .label::after { content: " · "; }

/* ---------- About strip ---------- */
.about-strip { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.about-strip h2 { font-size: 28px; color: var(--primary-dark); margin-bottom: 16px; }
.about-strip p { color: var(--muted); margin-bottom: 12px; text-align: justify; }
.about-strip .imgs { display: grid; gap: 14px; }
.about-strip .imgs img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.badges { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.badges span {
  background: #fff; border: 1px solid var(--line); color: var(--primary);
  padding: 5px 14px; border-radius: 20px; font-size: 13px; font-weight: 600;
}

/* ---------- News list (static teaser + article pages) ---------- */
.news-item {
  display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line);
}
.news-item .date {
  flex: 0 0 78px; text-align: center; background: var(--white); border-radius: 8px;
  border: 1px solid var(--line); padding: 10px 4px; height: fit-content;
}
.news-item .date b { display: block; font-size: 24px; color: var(--primary); line-height: 1.1; }
.news-item .date small { color: var(--muted); }
.news-item h3 { font-size: 17px; margin-bottom: 6px; }
.news-item p { color: var(--muted); font-size: 14px; }

/* ---------- Article / rich text ---------- */
.rich { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px 40px; }
.rich p { margin: 0 0 14px; }
.rich img { margin: 18px auto; border-radius: 8px; }
.rich ul, .rich ol { margin: 0 0 14px 22px; }
.rich ul { list-style: disc; }
.rich ol { list-style: decimal; }
.rich table { border-collapse: collapse; width: 100%; margin-bottom: 14px; }
.rich td, .rich th { border: 1px solid var(--line); padding: 8px 10px; }
.rich b, .rich strong { color: var(--primary-dark); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding: 18px 0 0; font-size: 14px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span[aria-current] { color: var(--primary); }

/* ---------- Page header (inner pages) ---------- */
.page-head {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  color: #fff; padding: 46px 0; text-align: center;
}
.page-head h1 { font-size: 30px; }
.page-head p { opacity: .85; margin-top: 8px; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.info-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; }
.info-card h2 { font-size: 20px; color: var(--primary-dark); margin-bottom: 16px; }
.info-card table { width: 100%; border-collapse: collapse; }
.info-card td { padding: 8px 0; vertical-align: top; }
.info-card td:first-child { color: var(--muted); width: 96px; white-space: nowrap; }

/* ---------- Messages ---------- */
.msg-layout { display: grid; grid-template-columns: 420px 1fr; gap: 30px; align-items: start; }
.msg-form { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.msg-form h2 { font-size: 20px; color: var(--primary-dark); margin-bottom: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.field label em { color: #d43f3f; font-style: normal; }
.field input, .field textarea, .field select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px;
  font-size: 15px; font-family: inherit; background: #fbfcfe; transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); background: #fff; }
.field textarea { min-height: 110px; resize: vertical; }
.field.hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-row input { flex: 1; }
.captcha-row img { height: 44px; border-radius: 6px; border: 1px solid var(--line); background: #fff; }
.captcha-row .refresh { font-size: 13px; white-space: nowrap; }
.form-msg { padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; font-size: 14px; display: none; }
.form-msg.err { display: block; background: #fdecec; color: #b23030; border: 1px solid #f5c6c6; }
.form-msg.ok { display: block; background: #e8f7ec; color: #1e7e34; border: 1px solid #bfe6c8; }

.msg-list .msg-item {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px 24px; margin-bottom: 16px;
}
.msg-item .head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.msg-item .who { font-weight: 600; color: var(--primary-dark); }
.msg-item .when { color: var(--muted); font-size: 13px; }
.msg-item .where { color: var(--muted); font-size: 13px; margin-left: 8px; }
.msg-item .txt { color: var(--text); white-space: pre-wrap; word-wrap: break-word; }
.msg-item .contact-line { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; }
.msg-item .contact-line .ci { color: var(--muted); }
.msg-item .contact-line .ci b { color: var(--text); font-weight: 500; }
.msg-item .contact-line a { color: var(--primary); }
.msg-empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 7px 14px; border-radius: 6px; border: 1px solid var(--line);
  background: var(--white); font-size: 14px; color: var(--text);
}
.pagination .cur { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- CTA strip ---------- */
.cta-strip { background: linear-gradient(120deg, var(--primary-dark), var(--primary)); color: #fff; padding: 44px 0; }
.cta-strip .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-strip h2 { font-size: 24px; }
.cta-strip p { opacity: .85; }

/* ---------- Footer ---------- */
.site-footer { background: #122b44; color: #b8c7d6; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; padding: 52px 0 36px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.site-footer a { color: #b8c7d6; }
.site-footer a:hover { color: var(--accent); }
.site-footer li { margin-bottom: 8px; font-size: 14px; }
.footer-about { font-size: 14px; line-height: 1.8; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0; font-size: 13px; text-align: center; color: #8598ab; }

/* ---------- Product detail ---------- */
.product-view { display: grid; grid-template-columns: 460px 1fr; gap: 40px; align-items: start; }
.product-view .pic {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px; text-align: center;
}
.product-view .pic img { width: 100%; height: auto; border-radius: 6px; }
.product-view h1 { font-size: 28px; color: var(--primary-dark); margin-bottom: 8px; }
.product-view .sku { color: var(--muted); margin-bottom: 18px; }
.spec-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.spec-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.spec-table td:first-child { color: var(--muted); width: 130px; background: #fafcfe; }
.product-desc { margin-top: 28px; }

/* ---------- Article detail ---------- */
.rich h1 { font-size: 26px; color: var(--primary-dark); line-height: 1.35; margin-bottom: 10px; }
.post-meta { color: var(--muted); font-size: 14px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.post-cover { border-radius: 8px; margin: 0 0 18px; }
.article-wrap { max-width: 860px; }

/* ---------- Misc ---------- */
.notice { background: #fff8e9; border: 1px solid #f2dfb6; color: #8a6116; padding: 14px 18px; border-radius: 8px; }
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.hidden { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .about-strip, .contact-grid, .msg-layout, .product-view { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero h1 { font-size: 30px; }
}
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 10px 20px 16px; gap: 2px; }
  .main-nav a { padding: 12px 10px; }
  .header-inner { height: 64px; }
  .brand img { height: 42px; }
  .hero { min-height: 320px; }
  .hero-inner { padding: 60px 0; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .section { padding: 44px 0; }
  .rich { padding: 24px 20px; }
}
