/* ============================================================
   ValueJewel Wholesale — 前台样式 (简洁高效 / 实用导向)
   配色: 白 #FFFFFF + 深蓝 #1A5276 + 翠绿 #1E8449
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --blue: #1A5276;
  --blue-dark: #143f5b;
  --green: #1E8449;
  --ink: #212f3d;
  --muted: #5d6d7e;
  --line: #e3e8ec;
  --bg: #ffffff;
  --bg-alt: #f4f7f9;
}
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Roboto', -apple-system, 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 15px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; color: var(--ink); }
h1 { font-size: 30px; }
h2 { font-size: 23px; margin-bottom: 14px; }
h3 { font-size: 17px; margin-bottom: 8px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.text-center { text-align: center; }
.center { justify-content: center; }
.pt-0 { padding-top: 0; }
.skip-link { position: absolute; left: -9999px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 9px 18px; border: 1.5px solid transparent;
  border-radius: 3px; font-weight: 500; font-size: 14px; cursor: pointer;
  text-align: center; transition: background .15s; text-decoration: none !important;
}
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-light { background: #fff; color: var(--blue); border-color: #fff; }
.btn-light:hover { background: #eef3f6; }
.btn-lg { padding: 12px 26px; font-size: 15px; }
.btn-block { display: block; margin-top: 14px; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none !important; }
.brand-mark {
  width: 34px; height: 34px; background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; border-radius: 3px; font-size: 14px;
}
.brand-text { font-weight: 700; color: var(--ink); font-size: 17px; line-height: 1.1; }
.brand-text small { display: block; font-size: 10px; font-weight: 400; color: var(--muted); letter-spacing: 1px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  padding: 8px 11px; color: var(--ink); font-size: 14px; font-weight: 500;
  text-decoration: none !important; border-radius: 3px;
}
.site-nav a:hover { color: var(--blue); background: var(--bg-alt); }
.site-nav a.active { color: var(--blue); }
.nav-cta { color: #fff !important; background: var(--green); margin-left: 6px; }
.nav-cta:hover { background: #186b3a; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding: 48px 16px; }
.hero h1 { font-size: 38px; margin-bottom: 16px; }
.hero-sub { font-size: 16px; color: var(--muted); margin-bottom: 22px; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-media img { border-radius: 4px; box-shadow: 0 2px 12px rgba(0,0,0,.08); }

/* ---------- Stats ---------- */
.stats-bar { background: var(--blue); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 22px 16px; }
.stats-4 { grid-template-columns: repeat(4, 1fr); }
.stats-4 .stat { background: var(--bg-alt); color: var(--ink); padding: 18px; border-radius: 4px; }
.stat-value { font-size: 26px; font-weight: 700; }
.stat-label { font-size: 13px; opacity: .85; margin-top: 2px; }
.stats-4 .stat-label { opacity: 1; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 48px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 22px; }
.section-head h2 { margin: 0; }
.section-head a { font-size: 14px; font-weight: 500; }

/* ---------- Categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cat-card {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: 4px;
  background: #fff; text-decoration: none !important; transition: border-color .15s;
}
.cat-card:hover { border-color: var(--blue); }
.cat-name { font-weight: 500; color: var(--ink); }
.cat-count { font-size: 13px; color: var(--muted); }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.product-card {
  border: 1px solid var(--line); border-radius: 4px; background: #fff;
  overflow: hidden; text-decoration: none !important; transition: box-shadow .15s;
}
.product-card:hover { box-shadow: 0 3px 10px rgba(0,0,0,.08); }
.pc-img { background: #f0f3f5; aspect-ratio: 1/1; overflow: hidden; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; }
.pc-body { padding: 10px 12px 12px; }
.pc-cat { font-size: 11px; color: var(--green); text-transform: uppercase; letter-spacing: .5px; }
.pc-title { font-size: 14px; font-weight: 500; color: var(--ink); margin: 4px 0 6px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 37px; }
.pc-price { font-size: 15px; font-weight: 700; color: var(--blue); }
.pc-price small { font-weight: 400; color: var(--muted); }
.pc-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split-media img { border-radius: 4px; }
.check-list { list-style: none; margin: 14px 0 20px; }
.check-list li { padding-left: 24px; position: relative; margin-bottom: 9px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px;
  border: 2px solid var(--green); border-radius: 2px;
}

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.testi-card {
  background: #fff; border: 1px solid var(--line); border-radius: 4px;
  padding: 18px; margin: 0;
}
.testi-stars { color: #e8a33d; font-size: 14px; letter-spacing: 2px; margin-bottom: 8px; }
.testi-card blockquote { font-size: 14px; color: var(--ink); margin-bottom: 12px; }
.testi-card figcaption strong { display: block; font-size: 14px; }
.testi-card figcaption span { font-size: 12px; color: var(--muted); }

/* ---------- Certifications ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cert-card { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 12px; }
.cert-card img { border-radius: 3px; margin-bottom: 10px; }
.cert-card h3 { font-size: 14px; }
.cert-card p { font-size: 12.5px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--blue); color: #fff; padding: 36px 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 4px; }
.cta-band p { opacity: .9; }

/* ---------- Page head ---------- */
.page-head { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 34px 0; }
.page-head h1 { margin-bottom: 6px; }
.page-head p { color: var(--muted); }

/* ---------- Catalog ---------- */
.catalog-layout { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding: 28px 16px; }
.catalog-sidebar h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }
.side-list { list-style: none; }
.side-list a {
  display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 3px;
  color: var(--ink); font-size: 14px; text-decoration: none !important;
}
.side-list a:hover { background: var(--bg-alt); }
.side-list a.active { background: var(--blue); color: #fff; }
.side-count { font-size: 12px; color: var(--muted); }
.side-list a.active .side-count { color: #cfe0ec; }
.search-bar { display: flex; gap: 8px; margin-bottom: 18px; }
.search-bar input {
  flex: 1; padding: 9px 12px; border: 1px solid var(--line); border-radius: 3px; font-size: 14px;
}
.empty { padding: 40px 0; color: var(--muted); }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 10px; justify-content: center; align-items: center; margin-top: 26px; }
.pagination a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 3px; text-decoration: none !important; }
.pagination a:hover { border-color: var(--blue); color: var(--blue); }
.page-current { font-size: 14px; color: var(--muted); }

/* ---------- Product detail ---------- */
.breadcrumb { font-size: 13px; color: var(--muted); padding: 16px 0 0; }
.breadcrumb a { color: var(--muted); }
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.detail-main-img { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #f0f3f5; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; }
.thumb { width: 72px; height: 72px; object-fit: cover; border: 2px solid var(--line); border-radius: 3px; cursor: pointer; }
.thumb:hover, .thumb.active { border-color: var(--blue); }
.detail-price { font-size: 26px; font-weight: 700; color: var(--blue); margin: 10px 0; }
.detail-price small { font-size: 13px; color: var(--muted); font-weight: 400; }
.detail-desc { color: var(--muted); margin-bottom: 16px; }
.detail-subhead { margin: 18px 0 8px; }
.spec-table, .tier-table, .data-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0 16px; }
.spec-table th, .spec-table td, .tier-table th, .tier-table td, .data-table th, .data-table td {
  border: 1px solid var(--line); padding: 8px 12px; text-align: left;
}
.spec-table th { background: var(--bg-alt); width: 130px; font-weight: 500; }
.tier-table th, .data-table th { background: var(--blue); color: #fff; font-weight: 500; }
.tier-table tr:nth-child(even), .data-table tr:nth-child(even) { background: var(--bg-alt); }
.detail-actions { display: flex; gap: 10px; margin: 18px 0 10px; flex-wrap: wrap; }
.detail-note { font-size: 13px; color: var(--muted); }
.table-note { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ---------- Feature / photo / process ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature-card { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 18px; }
.feature-card p { font-size: 14px; color: var(--muted); }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.photo-grid figure { margin: 0; }
.photo-grid figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.process-steps { display: grid; gap: 14px; list-style: none; counter-reset: step; }
.process-steps > li, .process-steps > .feature-card {
  display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 18px;
}
.step-no {
  flex: 0 0 38px; height: 38px; background: var(--blue); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.process-steps p { font-size: 14px; color: var(--muted); }
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.info-box { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 20px; }
.info-box p { font-size: 14px; color: var(--muted); }
.info-box .check-list li { font-size: 14px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { border: 1px solid var(--line); border-radius: 4px; }
.faq-item { border-bottom: 1px solid var(--line); padding: 0; }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary {
  padding: 14px 18px; cursor: pointer; font-weight: 500; list-style: none; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 18px; color: var(--muted); font-size: 18px; }
.faq-item[open] summary::after { content: "-"; }
.faq-item p { padding: 0 18px 16px; color: var(--muted); font-size: 14px; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; }
.inquiry-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 5px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 3px; font-size: 14px;
  font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.alert { padding: 12px 16px; border-radius: 3px; margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #e8f5ee; color: #186b3a; border: 1px solid #bfe3cd; }
.alert-error { background: #fdecea; color: #a33; border: 1px solid #f5c6c0; }
.contact-side .info-box { margin-bottom: 14px; }
.contact-list { list-style: none; }
.contact-list li { display: flex; gap: 8px; align-items: baseline; padding: 4px 0; font-size: 14px; color: var(--muted); }
.contact-list svg { flex: 0 0 auto; color: var(--blue); }

/* ---------- Blog ---------- */
.blog-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.blog-filter a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 20px; font-size: 13px; text-decoration: none !important; color: var(--ink); }
.blog-filter a.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.blog-card { background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.blog-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.blog-body { padding: 14px 16px 18px; }
.blog-meta { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.blog-meta span { color: var(--green); font-weight: 500; }
.blog-body h2, .blog-body h3 { font-size: 16px; margin-bottom: 6px; }
.blog-body h2 a, .blog-body h3 a { color: var(--ink); }
.blog-body p { font-size: 13.5px; color: var(--muted); }
.read-more { font-size: 13px; font-weight: 500; }
.article-cover { border-radius: 4px; margin-bottom: 16px; }
.article-content p, .article-content h3 { margin-bottom: 14px; font-size: 15.5px; color: var(--ink); }
.article-content h3 { font-size: 18px; margin-top: 20px; }
.article-cta { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------- 404 ---------- */
.error-code { font-size: 80px; font-weight: 700; color: var(--blue); line-height: 1; }

/* ---------- Footer ---------- */
.site-footer { background: #14252f; color: #b8c4cc; margin-top: 40px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 28px; padding: 40px 16px 26px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 7px; }
.footer-col a { color: #b8c4cc; }
.footer-col a:hover { color: #fff; }
.footer-col p { font-size: 13.5px; line-height: 1.6; }
.footer-bar { border-top: 1px solid #243844; padding: 14px 0; font-size: 13px; }
.footer-bar-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner, .split, .detail-layout, .contact-layout { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid, .cert-grid, .feature-grid, .blog-grid, .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid, .stats-4 { grid-template-columns: repeat(2, 1fr); }
  .catalog-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .twocol { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 60px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; padding: 10px 16px 16px;
    border-bottom: 1px solid var(--line); box-shadow: 0 8px 16px rgba(0,0,0,.08);
  }
  .site-nav.open { display: flex; }
  .nav-cta { margin-left: 0; margin-top: 6px; }
  .hero h1 { font-size: 28px; }
}
@media (max-width: 560px) {
  .product-grid, .testi-grid, .cert-grid, .feature-grid, .blog-grid, .photo-grid, .cat-grid { grid-template-columns: 1fr; }
  .inquiry-form .form-row { grid-template-columns: 1fr; }
  h1 { font-size: 24px; }
}
