/* Labfiltech Corporate Site - Minimal Business Style */
:root {
  --navy: #0d3b5c;
  --navy-deep: #092c46;
  --teal: #0f8aa6;
  --teal-light: #d9eef3;
  --blue-bright: #1464a0;
  --ink: #1b2b38;
  --muted: #66798a;
  --line: #e2e9ef;
  --bg: #ffffff;
  --bg-soft: #f5f8fa;
  --radius: 10px;
  --shadow: 0 10px 40px rgba(13, 59, 92, 0.08);
  --maxw: 1180px;
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { width: min(var(--maxw), calc(100% - 48px)); margin: 0 auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }
.brand-text { font-size: 13px; color: var(--muted); line-height: 1.3; border-left: 1px solid var(--line); padding-left: 12px; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { font-size: 15px; color: var(--ink); position: relative; padding: 6px 0; transition: color .2s; }
.nav a:hover, .nav a.active { color: var(--teal); }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--teal); transition: width .25s; }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav-cta { background: var(--teal); color: #fff !important; padding: 10px 20px !important; border-radius: 6px; font-size: 14px; }
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--blue-bright); }
.menu-toggle { display: none; background: none; border: 0; font-size: 26px; color: var(--navy); cursor: pointer; }

/* Hero */
.hero { position: relative; background: linear-gradient(135deg, #0a3450 0%, #0d4d73 55%, #0f8aa6 140%); color: #fff; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 22px 22px; opacity: .5; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; padding: 96px 0 100px; }
.hero-tag { display: inline-block; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 6px 16px; font-size: 13px; letter-spacing: .08em; margin-bottom: 24px; }
.hero h1 { font-size: clamp(36px, 4.2vw, 56px); line-height: 1.25; font-weight: 700; letter-spacing: -.01em; margin-bottom: 20px; }
.hero h1 span { color: #7fd8e8; }
.hero p.lead { font-size: 18px; color: rgba(255,255,255,.82); max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 6px; font-size: 15px; font-weight: 600; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: #fff; color: var(--navy); }
.btn-primary:hover { box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.btn-outline { border: 1px solid rgba(255,255,255,.5); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--blue-bright); box-shadow: 0 8px 20px rgba(15,138,166,.25); }
.hero-visual { position: relative; }
.hero-visual img { width: 100%; border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.28); }
.hero-visual .float-card { position: absolute; left: -26px; bottom: -28px; background: #fff; color: var(--ink); border-radius: 10px; padding: 18px 22px; box-shadow: var(--shadow); display: flex; gap: 26px; }
.float-card strong { display: block; font-size: 26px; color: var(--teal); line-height: 1.2; }
.float-card span { font-size: 12px; color: var(--muted); }

/* Stats */
.stats { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); padding: 44px 0; }
.stat { text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: 34px; color: var(--navy); font-weight: 700; }
.stat span { color: var(--muted); font-size: 14px; }

/* Sections */
.section { padding: 92px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.eyebrow { color: var(--teal); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(28px, 3vw, 38px); color: var(--navy); line-height: 1.3; margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 16px; }

/* Product grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; align-items: center; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-img { height: 220px; background: var(--bg-soft); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 24px; }
.card-body h3 { font-size: 19px; color: var(--navy); margin-bottom: 10px; }
.card-body p { color: var(--muted); font-size: 14px; line-height: 1.75; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--teal); font-size: 14px; font-weight: 600; }

/* Feature list */
.feature-list li { display: flex; gap: 16px; margin-bottom: 22px; }
.feature-icon { flex: 0 0 46px; height: 46px; border-radius: 10px; background: var(--teal-light); color: var(--teal); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.feature-list h4 { font-size: 17px; color: var(--navy); margin-bottom: 4px; }
.feature-list p { color: var(--muted); font-size: 14px; }
.visual-box { position: relative; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.visual-box img { width: 100%; }

/* Product categories */
.filter-bar { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn { border: 1px solid var(--line); background: #fff; color: var(--muted); padding: 9px 20px; border-radius: 999px; font-size: 14px; cursor: pointer; transition: all .2s; }
.filter-btn:hover, .filter-btn.active { background: var(--teal); border-color: var(--teal); color: #fff; }
.product-card { display: flex; flex-direction: column; }
.product-card .card-img { height: 200px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 16px; }
.product-card .card-img img { object-fit: contain; }
.tag { display: inline-block; background: var(--teal-light); color: var(--teal); font-size: 12px; padding: 4px 10px; border-radius: 4px; margin-bottom: 12px; }

/* Page hero */
.page-hero { background: linear-gradient(120deg, #0a3450, #0f6d8c); color: #fff; padding: 68px 0 72px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -120px; width: 420px; height: 420px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.page-hero h1 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.78); font-size: 17px; max-width: 700px; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,.65); margin-bottom: 16px; }
.breadcrumb a:hover { color: #fff; }

/* Timeline */
.timeline { position: relative; padding-left: 30px; border-left: 2px solid var(--teal-light); }
.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item::before { content: ""; position: absolute; left: -38px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--teal); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--teal); }
.timeline-item strong { color: var(--teal); font-size: 18px; }
.timeline-item h4 { margin: 4px 0 6px; color: var(--navy); font-size: 17px; }
.timeline-item p { color: var(--muted); font-size: 14px; }

/* News */
.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-meta { font-size: 13px; color: var(--teal); margin-bottom: 10px; }
.news-item { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: all .25s; }
.news-item:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.news-item h3 { font-size: 18px; color: var(--navy); margin-bottom: 12px; line-height: 1.5; }
.news-item p { font-size: 14px; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; }
.contact-info { background: var(--navy); color: #fff; border-radius: 14px; padding: 40px; }
.contact-info h3 { font-size: 24px; margin-bottom: 24px; }
.contact-info dl dt { color: rgba(255,255,255,.55); font-size: 13px; margin-top: 20px; }
.contact-info dl dd { font-size: 16px; margin-top: 4px; line-height: 1.7; }
.contact-note { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15); font-size: 13px; color: rgba(255,255,255,.6); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 36px; box-shadow: var(--shadow); }
.form-card h3 { font-size: 24px; color: var(--navy); margin-bottom: 6px; }
.form-card .sub { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; color: var(--ink); margin-bottom: 7px; font-weight: 600; }
.field label .req { color: #d9534f; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; font-size: 15px; font-family: var(--font); color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,138,166,.1); }
.field textarea { min-height: 130px; resize: vertical; }
.form-msg { display: none; margin-top: 16px; padding: 12px 16px; border-radius: 6px; font-size: 14px; }
.form-msg.ok { display: block; background: #e7f6ef; color: #1a7f4b; }
.form-msg.err { display: block; background: #fdeaea; color: #b53737; }

/* Equivalent grades + selection shortcuts */
.equiv-note { text-align: center; color: var(--muted); font-size: 14px; margin: -28px auto 36px; max-width: 720px; }
.equiv-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.equiv-table th, .equiv-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; }
.equiv-table th { background: var(--navy); color: #fff; font-weight: 600; }
.equiv-table td { color: var(--ink); }
.equiv-table td:first-child { color: var(--navy); font-weight: 600; }
.equiv-table tbody tr:last-child td { border-bottom: 0; }
.equiv-table tbody tr:hover { background: var(--bg-soft); }
.select-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.select-item { display: block; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: 10px; color: var(--navy); font-size: 15px; font-weight: 600; transition: all .2s; }
.select-item:hover { border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-3px); }
.select-item span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; font-weight: 400; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--navy-deep), var(--teal)); color: #fff; padding: 62px 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta-band h2 { font-size: 28px; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,.8); }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.65); padding: 56px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer .brand img { background: #fff; border-radius: 6px; padding: 8px; height: auto; width: 180px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.site-footer li { margin-bottom: 10px; }
.site-footer a:hover { color: var(--teal-light); }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 20px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.06); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { text-align: center; margin-top: 12px; border: 0; }
  .menu-toggle { display: block; }
  .hero-inner { grid-template-columns: 1fr; padding: 64px 0 80px; }
  .hero-visual .float-card { left: 12px; bottom: -20px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .stat:nth-child(2) { border-right: 0; }
  .grid-3, .news-list, .select-grid { grid-template-columns: 1fr 1fr; }
  .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .container { width: min(100% - 32px, var(--maxw)); }
  .section { padding: 64px 0; }
  .grid-3, .news-list, .form-row, .select-grid { grid-template-columns: 1fr; }
  .equiv-table th, .equiv-table td { padding: 12px 10px; font-size: 13px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
  .form-card, .contact-info { padding: 26px; }
}
