/* Jiutang Daily Chemical — Global Styles */
:root {
  --brand-primary: #1e5aa8;
  --brand-primary-dark: #164482;
  --brand-accent: #2b8de3;
  --bg-soft: #f6f9fc;
  --text-dark: #1a2b44;
  --text-muted: #5a6d85;
  --border: #e3e9f1;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Inter', sans-serif; letter-spacing: -0.02em; }

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

/* Top bar */
.top-bar {
  background: var(--brand-primary);
  color: #fff;
  font-size: 13px;
}
.top-bar .container {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 20px;
}
.top-bar a { color: #fff; opacity: .9; }
.top-bar a:hover { opacity: 1; text-decoration: underline; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 20px;
}
.logo { font-size: 22px; font-weight: 800; color: var(--brand-primary); text-decoration: none; letter-spacing: -0.03em; }
.logo span { color: var(--text-dark); }

.nav-desktop ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-desktop a {
  color: var(--text-dark); text-decoration: none; font-weight: 500; font-size: 15px;
  transition: color .15s;
}
.nav-desktop a:hover { color: var(--brand-primary); }

.nav-cta {
  background: var(--brand-primary); color: #fff !important;
  padding: 10px 20px; border-radius: 6px;
}
.nav-cta:hover { background: var(--brand-primary-dark) !important; color: #fff !important; }

/* Mobile menu */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-dark); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #0f3d7a 0%, #1e5aa8 50%, #2b8de3 100%);
  color: #fff; padding: 100px 0 90px;
}
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.hero h1 { font-size: 48px; font-weight: 800; margin: 0 0 20px; line-height: 1.15; }
.hero p.lead { font-size: 18px; opacity: .92; margin: 0 0 32px; max-width: 560px; }
.hero-badges { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-badges span {
  background: rgba(255,255,255,.15); backdrop-filter: blur(6px);
  padding: 8px 16px; border-radius: 100px; font-size: 13px; font-weight: 500;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 8px; font-weight: 600; font-size: 15px;
  text-decoration: none; cursor: pointer; border: 0; transition: transform .1s, box-shadow .15s;
}
.btn-primary { background: #fff; color: var(--brand-primary); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.btn-secondary { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); }
.btn-secondary:hover { background: rgba(255,255,255,.1); border-color: #fff; }

.hero-visual {
  background: rgba(255,255,255,.1); border-radius: 20px; padding: 40px;
  backdrop-filter: blur(10px);
}

/* Section base */
section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { font-size: 36px; font-weight: 800; margin: 0 0 12px; color: var(--text-dark); }
.section-title p { color: var(--text-muted); font-size: 16px; margin: 0; max-width: 640px; margin-left: auto; margin-right: auto; }
.section-title .eyebrow { color: var(--brand-primary); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; display: block; }

/* Products grid */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; transition: transform .15s, box-shadow .2s;
  text-decoration: none; color: inherit; display: block;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(30,90,168,.12); border-color: var(--brand-accent); }
.product-img {
  aspect-ratio: 4/3; background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 64px;
}
.product-info { padding: 22px 24px 26px; }
.product-info h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; color: var(--text-dark); }
.product-info p { font-size: 14px; color: var(--text-muted); margin: 0 0 14px; line-height: 1.55; }
.product-info .link { color: var(--brand-primary); font-weight: 600; font-size: 14px; }

/* Why us */
.bg-soft { background: var(--bg-soft); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-card {
  background: #fff; border-radius: 12px; padding: 28px 24px;
  border: 1px solid var(--border);
}
.why-card .icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  color: #fff; font-size: 22px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.why-card h3 { font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.why-card p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* Stats bar */
.stats-bar {
  background: var(--brand-primary); color: #fff; padding: 50px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats-grid .num { font-size: 44px; font-weight: 800; line-height: 1; margin-bottom: 8px; }
.stats-grid .label { font-size: 14px; opacity: .85; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, #0f3d7a, #1e5aa8);
  color: #fff; border-radius: 18px; padding: 60px;
  display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap;
}
.cta-banner h2 { font-size: 32px; font-weight: 800; margin: 0 0 10px; }
.cta-banner p { margin: 0; opacity: .9; font-size: 16px; }

/* Footer */
footer { background: #0f1d33; color: #b8c4d6; padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-col h4 { color: #fff; font-size: 16px; font-weight: 700; margin: 0 0 18px; }
.footer-col p { font-size: 14px; line-height: 1.7; margin: 0 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: #b8c4d6; text-decoration: none; font-size: 14px; }
.footer-col ul a:hover { color: #fff; }
.footer-col .contact-item { font-size: 14px; margin-bottom: 12px; display: flex; gap: 10px; align-items: flex-start; }
.footer-col .contact-item strong { color: #fff; font-weight: 600; min-width: 68px; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; }
.footer-bottom a { color: #b8c4d6; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* Page header */
.page-header {
  background: linear-gradient(135deg, #0f3d7a, #1e5aa8);
  color: #fff; padding: 70px 0 60px;
}
.page-header h1 { font-size: 40px; font-weight: 800; margin: 0 0 10px; }
.page-header p { font-size: 17px; opacity: .9; margin: 0; }

.breadcrumb { font-size: 13px; opacity: .8; margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,.85); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; color: #fff; }

/* About page */
.about-story { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-story h2 { font-size: 30px; font-weight: 800; margin: 0 0 18px; }
.about-story p { color: var(--text-muted); margin: 0 0 16px; }
.timeline { margin-top: 24px; }
.timeline-item {
  display: grid; grid-template-columns: 110px 1fr; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.timeline-item:last-child { border-bottom: 0; }
.timeline-item .year { font-weight: 700; color: var(--brand-primary); font-size: 15px; }
.timeline-item .desc { color: var(--text-muted); font-size: 14px; }

/* Product detail */
.product-detail { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.product-gallery {
  background: var(--bg-soft); border-radius: 16px; padding: 60px;
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: 100px;
}
.product-detail h1 { font-size: 32px; font-weight: 800; margin: 0 0 14px; }
.product-detail .summary { color: var(--text-muted); margin: 0 0 24px; font-size: 16px; }
.specs-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.specs-table th, .specs-table td {
  padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.specs-table th {
  background: var(--bg-soft); font-weight: 600; color: var(--text-dark);
  width: 35%;
}
.cta-box {
  background: var(--bg-soft); border-radius: 12px; padding: 24px;
  border: 1px solid var(--border); margin-top: 28px;
}
.cta-box h3 { margin: 0 0 10px; font-size: 16px; }
.cta-box p { margin: 0 0 14px; font-size: 14px; color: var(--text-muted); }

/* Contact form */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; }
.contact-info h2 { font-size: 28px; font-weight: 800; margin: 0 0 18px; }
.contact-info p { color: var(--text-muted); margin: 0 0 22px; }
.contact-detail { margin-bottom: 22px; }
.contact-detail strong { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 6px; }
.contact-detail a, .contact-detail span { font-size: 16px; color: var(--text-dark); text-decoration: none; }
.contact-detail a:hover { color: var(--brand-primary); }

.form { background: var(--bg-soft); border-radius: 14px; padding: 36px; border: 1px solid var(--border); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-dark); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; font-family: inherit; background: #fff;
  transition: border-color .15s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(30,90,168,.1);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.btn-form {
  background: var(--brand-primary); color: #fff; border: 0;
  padding: 14px 32px; border-radius: 8px; font-weight: 600; font-size: 15px; cursor: pointer;
  width: 100%;
}
.btn-form:hover { background: var(--brand-primary-dark); }

/* Blog list */
.blog-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; text-decoration: none; color: inherit; display: block;
  transition: transform .15s, box-shadow .2s;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(30,90,168,.1); }
.blog-thumb { background: var(--bg-soft); aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; font-size: 40px; }
.blog-card-body { padding: 22px 24px; }
.blog-card-body h3 { font-size: 17px; font-weight: 700; margin: 0 0 10px; line-height: 1.4; }
.blog-card-body p { font-size: 14px; color: var(--text-muted); margin: 0; }
.blog-meta { font-size: 12px; color: var(--brand-primary); font-weight: 600; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .04em; }

/* OEM process */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step-card {
  text-align: center; padding: 30px 20px;
}
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--brand-primary); color: #fff;
  font-size: 22px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.step-card h3 { font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.step-card p { font-size: 14px; color: var(--text-muted); margin: 0; }

/* Factory gallery */
.factory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.factory-img {
  aspect-ratio: 4/3; background: var(--bg-soft); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 56px; color: var(--brand-primary);
}

/* Article */
.article-wrap { max-width: 780px; margin: 0 auto; }
.article-wrap h1 { font-size: 34px; font-weight: 800; margin: 0 0 18px; line-height: 1.25; }
.article-wrap .meta { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }
.article-wrap h2 { font-size: 22px; font-weight: 700; margin: 36px 0 14px; }
.article-wrap h3 { font-size: 18px; font-weight: 700; margin: 28px 0 10px; }
.article-wrap p { margin: 0 0 16px; color: var(--text-muted); font-size: 16px; line-height: 1.75; }
.article-wrap ul, .article-wrap ol { margin: 0 0 16px 22px; color: var(--text-muted); font-size: 16px; line-height: 1.75; }
.article-wrap ul li, .article-wrap ol li { margin-bottom: 6px; }
.article-wrap .cta-inline {
  background: var(--bg-soft); border-left: 4px solid var(--brand-primary);
  padding: 20px 24px; border-radius: 0 10px 10px 0; margin: 32px 0;
}
.article-wrap .cta-inline p { margin: 0; color: var(--text-dark); }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner, .about-story, .product-detail, .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 36px; }
  .hero { padding: 70px 0 60px; }
  .products-grid, .why-grid, .blog-list { grid-template-columns: repeat(2, 1fr); }
  .stats-grid, .process-steps, .footer-grid, .factory-grid { grid-template-columns: repeat(2, 1fr); }
  section { padding: 60px 0; }
  .section-title h2 { font-size: 28px; }
}

@media (max-width: 720px) {
  .nav-desktop { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-top: 1px solid var(--border); padding: 16px 20px; box-shadow: 0 12px 24px rgba(0,0,0,.08); }
  .nav-desktop.open { display: block; }
  .nav-desktop ul { flex-direction: column; gap: 4px; }
  .nav-desktop ul li { padding: 10px 0; border-bottom: 1px solid var(--border); }
  .nav-desktop ul li:last-child { border-bottom: 0; }
  .nav-toggle { display: block; }

  .hero h1 { font-size: 28px; }
  .hero p.lead { font-size: 16px; }
  .products-grid, .why-grid, .blog-list, .stats-grid, .process-steps, .footer-grid, .factory-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 40px 24px; }
  .cta-banner h2 { font-size: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .page-header h1 { font-size: 28px; }
  .article-wrap h1 { font-size: 26px; }
}
