:root{
  --brand:#0d7a6f; --brand-dark:#0a5f56; --brand-light:#e6f4f2;
  --ink:#1a2b32; --muted:#5c7078; --line:#e2e9ec; --bg:#f7fafb; --white:#fff;
  --accent:#f5a623; --danger:#c0392b;
  --radius:10px; --shadow:0 1px 3px rgba(13,122,111,.08),0 4px 16px rgba(13,122,111,.06);
  --maxw:1160px; --font:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:var(--font);color:var(--ink);background:var(--bg);line-height:1.7;font-size:16px;-webkit-font-smoothing:antialiased}
a{color:var(--brand);text-decoration:none}
a:hover{color:var(--brand-dark)}
img{max-width:100%}
.wrap{max-width:var(--maxw);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}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;height:64px}
.logo{display:inline-flex;align-items:center;flex:none}
.logo img{display:block;width:auto}
.logo-header img{height:48px}
.nav{display:flex;gap:26px;align-items:center}
.nav a{color:var(--muted);font-size:15px;font-weight:500}
.nav a:hover,.nav a.active{color:var(--brand)}
.nav .cta{background:var(--brand);color:#fff;padding:8px 18px;border-radius:var(--radius);font-weight:600}
.nav .cta:hover{background:var(--brand-dark);color:#fff}
.menu-toggle{display:none;background:none;border:none;font-size:24px;cursor:pointer;color:var(--ink)}

/* Hero */
.hero{background:linear-gradient(135deg,#0d7a6f 0%,#0a5f56 100%);color:#fff;padding:64px 0 72px}
.hero h1{font-size:38px;line-height:1.3;font-weight:800;margin-bottom:16px;letter-spacing:-.5px}
.hero p.lead{font-size:18px;opacity:.92;max-width:640px;margin-bottom:32px}
.hero .badges{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:8px}
.hero .badge{background:rgba(255,255,255,.14);padding:6px 14px;border-radius:20px;font-size:13px;font-weight:500}

/* Search box in hero */
.hero-search{background:#fff;border-radius:var(--radius);padding:8px;display:flex;gap:8px;max-width:560px;box-shadow:var(--shadow)}
.hero-search input{flex:1;border:none;padding:12px 16px;font-size:16px;font-family:var(--font);color:var(--ink);outline:none;background:transparent}
.hero-search button{background:var(--brand);color:#fff;border:none;padding:12px 26px;border-radius:8px;font-size:15px;font-weight:600;cursor:pointer}
.hero-search button:hover{background:var(--brand-dark)}

/* Sections */
section.block{padding:56px 0}
.section-head{text-align:center;margin-bottom:40px}
.section-head h2{font-size:28px;font-weight:800;margin-bottom:10px}
.section-head p{color:var(--muted);font-size:16px;max-width:620px;margin:0 auto}
.eyebrow{color:var(--brand);font-weight:700;font-size:13px;letter-spacing:1.5px;text-transform:uppercase;margin-bottom:8px}

/* Cards grid */
.grid{display:grid;gap:20px}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-2{grid-template-columns:repeat(2,1fr)}
.grid-4{grid-template-columns:repeat(4,1fr)}
.card{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:24px;transition:.18s;display:flex;flex-direction:column}
.card:hover{box-shadow:var(--shadow);border-color:#cfe0dd;transform:translateY(-2px)}
.card h3{font-size:18px;margin-bottom:8px;font-weight:700}
.card p{color:var(--muted);font-size:14.5px;flex:1}
.card .card-link{margin-top:14px;font-weight:600;font-size:14px}
.card .ico{width:44px;height:44px;border-radius:10px;background:var(--brand-light);display:flex;align-items:center;justify-content:center;font-size:22px;margin-bottom:14px}

/* Product card */
.prod-card{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:20px;transition:.18s;display:flex;flex-direction:column;height:100%}
.prod-card:hover{box-shadow:var(--shadow);border-color:#cfe0dd;transform:translateY(-2px)}
.prod-card .code{font-size:19px;font-weight:800;color:var(--ink);font-family:"SF Mono",Menlo,monospace;letter-spacing:-.3px}
.prod-card .brand-tag{font-size:12px;color:var(--brand);font-weight:600;margin-bottom:6px}
.prod-card .pname{font-size:14px;color:var(--muted);margin:8px 0 14px;min-height:38px}
.prod-card .specs{display:flex;flex-wrap:wrap;gap:6px;margin-top:auto}
.tag{display:inline-block;font-size:12px;padding:3px 10px;border-radius:14px;background:var(--bg);border:1px solid var(--line);color:var(--muted);font-weight:500}
.tag.green{background:var(--brand-light);color:var(--brand-dark);border-color:#c4e3de}
.tag.amber{background:#fdf3e3;color:#b5730c;border-color:#f5e0bd}
.tag.gray{background:#eef1f2;color:#7a8a90}

/* Filter layout */
.db-layout{display:grid;grid-template-columns:250px 1fr;gap:28px;align-items:start}
.filters{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:22px;position:sticky;top:84px}
.filters h4{font-size:13px;text-transform:uppercase;letter-spacing:1px;color:var(--muted);margin:18px 0 10px}
.filters h4:first-child{margin-top:0}
.filters label{display:flex;align-items:center;gap:8px;padding:5px 0;font-size:14.5px;cursor:pointer;color:var(--ink)}
.filters input[type=checkbox]{width:16px;height:16px;accent-color:var(--brand);cursor:pointer}
.filters .reset{margin-top:20px;width:100%;padding:9px;background:var(--bg);border:1px solid var(--line);border-radius:8px;font-size:14px;cursor:pointer;color:var(--muted);font-family:var(--font)}
.filters .reset:hover{background:var(--brand-light);color:var(--brand-dark)}
.db-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;flex-wrap:wrap;gap:12px}
.db-toolbar .count{color:var(--muted);font-size:14px}
.db-search{border:1px solid var(--line);border-radius:8px;padding:9px 14px;font-size:15px;font-family:var(--font);width:280px;max-width:100%;outline:none}
.db-search:focus{border-color:var(--brand)}
#product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.no-results{grid-column:1/-1;text-align:center;padding:60px 20px;color:var(--muted)}

/* Breadcrumb */
.crumb{font-size:13.5px;color:var(--muted);padding:18px 0}
.crumb a{color:var(--muted)}
.crumb a:hover{color:var(--brand)}

/* Product detail */
.pd-head{background:var(--white);border-bottom:1px solid var(--line);padding:8px 0 40px}
.pd-head .brand-tag{color:var(--brand);font-weight:600;font-size:14px}
.pd-head h1{font-size:32px;margin:6px 0 4px;font-family:"SF Mono",Menlo,monospace;letter-spacing:-.5px}
.pd-head .subtitle{font-size:18px;color:var(--muted);font-weight:400;margin-bottom:18px}
.pd-body{display:grid;grid-template-columns:1fr 340px;gap:36px;padding:40px 0}
.spec-table{width:100%;border-collapse:collapse;background:var(--white);border-radius:var(--radius);overflow:hidden;border:1px solid var(--line)}
.spec-table th,.spec-table td{text-align:left;padding:13px 18px;border-bottom:1px solid var(--line);font-size:15px}
.spec-table th{background:var(--bg);color:var(--muted);font-weight:600;width:38%}
.spec-table tr:last-child th,.spec-table tr:last-child td{border-bottom:none}
.feature-list{list-style:none;margin:16px 0}
.feature-list li{padding:9px 0 9px 28px;position:relative;font-size:15px}
.feature-list li::before{content:"✓";position:absolute;left:0;color:var(--brand);font-weight:800}
.side-cta{background:var(--brand-light);border:1px solid #c4e3de;border-radius:var(--radius);padding:24px;position:sticky;top:84px}
.side-cta h3{font-size:18px;margin-bottom:8px}
.side-cta p{font-size:14px;color:var(--muted);margin-bottom:16px}
.btn{display:inline-block;background:var(--brand);color:#fff;padding:12px 24px;border-radius:var(--radius);font-weight:600;font-size:15px;text-align:center;border:none;cursor:pointer;font-family:var(--font)}
.btn:hover{background:var(--brand-dark);color:#fff}
.btn.block{display:block;width:100%}
.btn.ghost{background:transparent;border:1px solid var(--brand);color:var(--brand)}
.btn.ghost:hover{background:var(--brand);color:#fff}
h2.sec{font-size:22px;margin:8px 0 16px;font-weight:700}

/* Article / prose */
.prose{max-width:760px;margin:0 auto}
.prose h1{font-size:32px;line-height:1.35;margin-bottom:8px}
.prose .meta{color:var(--muted);font-size:14px;margin-bottom:28px;padding-bottom:20px;border-bottom:1px solid var(--line)}
.prose h2{font-size:23px;margin:34px 0 12px;font-weight:700}
.prose h3{font-size:18px;margin:24px 0 8px}
.prose p{margin:14px 0}
.prose ul,.prose ol{margin:14px 0;padding-left:24px}
.prose li{margin:6px 0}
.prose blockquote{border-left:3px solid var(--brand);background:var(--brand-light);padding:14px 20px;margin:20px 0;border-radius:0 8px 8px 0;color:var(--brand-dark)}
.prose table{width:100%;border-collapse:collapse;margin:20px 0;font-size:14.5px}
.prose th,.prose td{border:1px solid var(--line);padding:10px 14px;text-align:left}
.prose th{background:var(--bg);font-weight:600}
.prose code{background:#eef1f2;padding:2px 6px;border-radius:4px;font-size:14px}

/* Contact */
.contact-section{padding-top:32px}
.contact-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;max-width:900px;margin:0 auto}
.contact-card{display:flex;flex-direction:column;min-height:260px;padding:30px;background:var(--white);border:1px solid var(--line);border-radius:var(--radius);color:var(--ink);box-shadow:var(--shadow);transition:.18s}
.contact-card:hover{transform:translateY(-2px);border-color:#c4e3de;color:var(--ink)}
.contact-card-primary{background:var(--brand);border-color:var(--brand);color:#fff}
.contact-card-primary:hover{background:var(--brand-dark);color:#fff}
.contact-label{font-size:13px;font-weight:700;letter-spacing:1.5px;margin-bottom:28px;opacity:.75}
.contact-card h2{font-size:24px;line-height:1.3;margin-bottom:14px;overflow-wrap:anywhere}
.contact-card p{font-size:15px;line-height:1.7;opacity:.78}
.contact-action{font-weight:700;margin-top:auto;padding-top:24px}
.contact-company{max-width:900px;margin:24px auto 0;display:flex;justify-content:space-between;gap:16px;color:var(--muted);font-size:14px}

/* Applications intro */
.app-hero{background:var(--white);border-bottom:1px solid var(--line);padding:8px 0 36px}
.app-hero h1{font-size:30px;margin:6px 0 12px}
.app-hero p{color:var(--muted);max-width:720px;font-size:16px}

/* Pills row */
.pills{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}
.pill{background:var(--white);border:1px solid var(--line);border-radius:20px;padding:7px 16px;font-size:14px;color:var(--ink);font-weight:500}
.pill:hover{border-color:var(--brand);color:var(--brand)}

/* CTA band */
.cta-band{background:var(--brand);color:#fff;border-radius:var(--radius);padding:40px;text-align:center;margin:40px 0}
.cta-band h2{font-size:26px;margin-bottom:10px}
.cta-band p{opacity:.9;margin-bottom:22px;max-width:560px;margin-left:auto;margin-right:auto}
.cta-band .btn{background:#fff;color:var(--brand)}
.cta-band .btn:hover{background:var(--brand-light);color:var(--brand-dark)}

/* Footer */
.site-footer{background:var(--ink);color:#b8c7cd;padding:48px 0 28px}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:32px;margin-bottom:32px}
.footer-grid h5{color:#fff;font-size:15px;margin-bottom:14px}
.footer-grid a{color:#b8c7cd;display:block;padding:4px 0;font-size:14px}
.footer-grid a:hover{color:#fff}
.footer-brand .logo{margin-bottom:14px}
.logo-footer img{height:58px}
.footer-brand p{font-size:14px;line-height:1.7;max-width:320px}
.footer-bottom{border-top:1px solid rgba(255,255,255,.12);padding-top:20px;font-size:13px;color:#8ba0a7;display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px}

/* Responsive */
@media(max-width:900px){
  .grid-3,.grid-4{grid-template-columns:repeat(2,1fr)}
  .db-layout{grid-template-columns:1fr}
  .filters{position:static}
  #product-grid{grid-template-columns:repeat(2,1fr)}
  .pd-body{grid-template-columns:1fr}
  .side-cta{position:static}
  .footer-grid{grid-template-columns:1fr 1fr}
  .hero h1{font-size:30px}
}
@media(max-width:600px){
  .logo-header img{height:42px}
  .nav{display:none}
  .nav.open{display:flex;position:absolute;top:64px;left:0;right:0;background:#fff;flex-direction:column;padding:16px 20px;gap:14px;border-bottom:1px solid var(--line);box-shadow:var(--shadow)}
  .menu-toggle{display:block}
  .grid-3,.grid-4,.grid-2{grid-template-columns:1fr}
  #product-grid{grid-template-columns:1fr}
  .contact-grid{grid-template-columns:1fr}
  .contact-card{min-height:220px;padding:24px}
  .contact-card h2{font-size:21px}
  .contact-company{flex-direction:column;gap:4px}
  .footer-grid{grid-template-columns:1fr 1fr;gap:26px 20px}
  .footer-brand{grid-column:1/-1}
  .hero{padding:44px 0 52px}
  .hero h1{font-size:26px}
}
