:root {
  --ink: #10182b;
  --muted: #5d6678;
  --line: #e6e9f2;
  --brand: #0f62c4;
  --brand-dark: #0b4c9c;
  --accent: #f59e0b;
  --bg-alt: #f4f7fc;
  --radius: 14px;
  --maxw: 1180px;
  --shadow: 0 14px 44px rgba(15, 40, 90, .10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: #fff; line-height: 1.7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.eyebrow { color: var(--brand); font-weight: 700; letter-spacing: 1px; font-size: 14px; margin: 0 0 8px; text-transform: uppercase; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: 0 6px 26px rgba(15,40,90,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 11px; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand), #4b93e0); color: #fff; font-weight: 800; font-size: 18px;
}
.logo-text strong { display: block; font-size: 16px; line-height: 1.2; }
.logo-text small { color: var(--muted); font-size: 11px; letter-spacing: .5px; }
.site-nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.site-nav a { color: #33405a; }
.site-nav a:hover { color: var(--brand); }
.admin-entry { color: var(--brand); border: 1px solid #c3d9f5; border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; }
.admin-entry:hover { background: #eaf3ff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 92px 0 80px; color: #fff;
  background: linear-gradient(115deg, rgba(8,26,58,.92), rgba(15,60,120,.82)),
    url("https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&w=1920&q=80") center/cover no-repeat;
}
.hero-inner { max-width: 820px; }
.hero-tag { display: inline-block; background: rgba(245,158,11,.18); color: #ffd479; border: 1px solid rgba(245,158,11,.5); padding: 5px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.hero h1 { font-size: 46px; line-height: 1.2; margin: 18px 0 16px; letter-spacing: -1px; }
.hero-desc { font-size: 18px; color: #d5e2f5; max-width: 680px; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.feature { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; padding: 18px 20px; }
.feature h3 { margin: 0 0 4px; font-size: 17px; }
.feature p { margin: 0; color: #bcd0ea; font-size: 14px; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; border: 0; border-radius: 10px; padding: 12px 24px; font-size: 15px; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }
.btn-block { width: 100%; }

/* ---------- Sections ---------- */
.section { padding: 78px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 44px; }
.section-head h2 { font-size: 32px; margin: 0 0 12px; letter-spacing: -.5px; }
.section-head p { color: var(--muted); margin: 0; }
.loading { color: var(--muted); padding: 30px; text-align: center; }

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: 52px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; }
.about-badge {
  position: absolute; left: -14px; bottom: -14px; background: var(--brand); color: #fff;
  border-radius: 12px; padding: 16px 22px; text-align: center; box-shadow: var(--shadow);
}
.about-badge strong { display: block; font-size: 28px; line-height: 1; }
.about-badge span { font-size: 13px; opacity: .9; }
.about-text h2 { font-size: 30px; margin: 0 0 16px; line-height: 1.3; }
.about-text p { color: var(--muted); margin: 0 0 16px; }
.stat-list { list-style: none; padding: 0; margin: 26px 0 0; display: flex; gap: 34px; flex-wrap: wrap; }
.stat-list strong { display: block; font-size: 30px; color: var(--brand); }
.stat-list span { color: var(--muted); font-size: 14px; }

/* ---------- Products ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.filter-btn {
  border: 1px solid var(--line); background: #fff; color: #445; padding: 9px 20px; border-radius: 999px;
  cursor: pointer; font-size: 14px; font-family: inherit; transition: all .15s;
}
.filter-btn:hover { border-color: var(--brand); color: var(--brand); }
.filter-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .18s, box-shadow .18s; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-media { aspect-ratio: 16/10; overflow: hidden; background: #eef2f8; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 20px 22px 24px; }
.product-cat { display: inline-block; font-size: 12px; color: var(--brand); background: #eaf3ff; padding: 2px 10px; border-radius: 999px; margin-bottom: 10px; }
.product-body h3 { margin: 0 0 8px; font-size: 18px; }
.product-body p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.product-more { color: var(--brand); font-size: 14px; font-weight: 600; }

/* ---------- Cases ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case-card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 12px; padding: 22px; transition: transform .18s, box-shadow .18s; }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.case-industry { display: inline-block; font-size: 12px; color: #8a5a00; background: #fef3d6; padding: 2px 10px; border-radius: 999px; margin-bottom: 10px; }
.case-card h3 { margin: 0 0 8px; font-size: 17px; }
.case-card p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- Timeline ---------- */
.timeline-wrap { margin-top: 72px; text-align: center; }
.timeline-title { font-size: 26px; margin: 0 0 6px; }
.timeline-sub { color: var(--muted); margin: 0 0 40px; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.timeline::before { content: ""; position: absolute; top: 22px; left: 0; right: 0; height: 2px; background: var(--line); }
.tl-item { position: relative; text-align: center; padding-top: 56px; }
.tl-item::before {
  content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--brand); z-index: 1;
}
.tl-year { font-size: 20px; font-weight: 800; color: var(--brand); }
.tl-body h4 { margin: 6px 0 4px; font-size: 16px; }
.tl-body p { margin: 0; color: var(--muted); font-size: 13px; }

/* ---------- Contact ---------- */
.contact-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.contact-info { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.fact { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.fact h4 { margin: 0 0 6px; font-size: 14px; color: var(--brand); }
.fact p { margin: 0; color: #33405a; font-size: 14px; overflow-wrap: anywhere; }
.fact.emergency { grid-column: 1 / -1; background: linear-gradient(100deg, #0f2748, #133a68); border: 0; color: #fff; }
.fact.emergency h4 { color: #ffd479; }
.fact.emergency p { color: #c9dbf2; }
.fact .hotline { margin-top: 10px; font-size: 16px; color: #fff; }
.fact .hotline b { font-size: 22px; color: #ffd479; }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.contact-form h3 { margin: 0; font-size: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; color: var(--muted); }
.field input, .field textarea { border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; font-size: 15px; font-family: inherit; }
.field input:focus, .field textarea:focus { outline: 2px solid #bcd7f6; border-color: var(--brand); }
.form-msg { margin: 4px 0 0; font-size: 14px; padding: 10px 12px; border-radius: 10px; }
.form-msg.ok { background: #dcfce7; color: #15803d; }
.form-msg.err { background: #fef2f2; color: #b91c1c; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1830; color: #93a4bf; padding: 56px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
.footer-brand .logo-text strong { color: #fff; }
.footer-brand p { font-size: 14px; margin: 16px 0 0; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: 15px; margin: 0 0 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-col a { font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; }

@media (max-width: 940px) {
  .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 34px; }
  .product-grid, .case-grid { grid-template-columns: 1fr 1fr; }
  .hero-features { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 36px; }
}
@media (max-width: 620px) {
  .product-grid, .case-grid, .contact-info, .footer-top { grid-template-columns: 1fr; }
  .site-nav { gap: 12px; font-size: 14px; }
  .site-nav a:not(.admin-entry) { display: none; }
  .hero h1 { font-size: 28px; }
  .hero-desc { font-size: 16px; }
  .section { padding: 56px 0; }
}
