:root {
  --primary: #0d6e8c;
  --primary-dark: #095467;
  --accent: #16a085;
  --accent-dark: #0f7f68;
  --text: #1f2937;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f4f8fa;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(9, 84, 103, 0.08);
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.loading { padding: 80px 0; text-align: center; color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 22px; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-size: 20px;
}
.brand-logo-img { width: 40px; height: 40px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  padding: 8px 14px; border-radius: 8px; color: var(--text);
  font-size: 15px; font-weight: 500; transition: 0.15s;
}
.site-nav a:hover { color: var(--primary); background: var(--bg-alt); }
.site-nav a.active { color: var(--primary); background: #e8f3f7; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  border: 1px solid var(--border); background: #fff; color: var(--primary);
  padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600;
  transition: 0.15s;
}
.lang-toggle:hover { border-color: var(--primary); }
.nav-burger { display: none; border: none; background: none; font-size: 24px; color: var(--text); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; }
.hero.has-img { background-size: cover; background-position: center; }
.hero.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(6,44,58,.92), rgba(9,84,103,.65) 55%, rgba(9,84,103,.25)); }
.hero.no-img { background: linear-gradient(120deg, #0a5a72, #0d6e8c 50%, #16a085); }
.hero-inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 120px 24px; }
.hero h1 { font-size: 44px; line-height: 1.25; max-width: 760px; margin-bottom: 20px; font-weight: 800; }
.hero p { font-size: 18px; max-width: 640px; opacity: 0.94; margin-bottom: 34px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; padding: 12px 26px; border-radius: 30px; font-size: 15px; font-weight: 600; transition: 0.15s; border: 2px solid transparent; }
.btn-primary { background: #fff; color: var(--primary-dark); }
.btn-primary:hover { background: #eef7f9; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head .eyebrow { display: inline-block; color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }
.section-head h2 { font-size: 34px; font-weight: 800; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 16px; }

/* ---------- Highlights ---------- */
.highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.highlight {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 24px; box-shadow: var(--shadow); transition: 0.2s;
}
.highlight:hover { transform: translateY(-4px); }
.highlight .icon {
  width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: #e8f3f7; color: var(--primary); font-size: 24px; margin-bottom: 18px;
}
.highlight h3 { font-size: 18px; margin-bottom: 8px; }
.highlight p { color: var(--muted); font-size: 14px; }

/* ---------- About teaser ---------- */
.about-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-teaser .media { border-radius: var(--radius); overflow: hidden; min-height: 300px; background: var(--bg-alt); }
.about-teaser .media img { width: 100%; height: 100%; object-fit: cover; }
.about-teaser h2 { font-size: 30px; margin-bottom: 16px; }
.about-teaser p { color: var(--muted); margin-bottom: 28px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { text-align: center; }
.stat .value { font-size: 28px; font-weight: 800; color: var(--primary); }
.stat .label { font-size: 13px; color: var(--muted); }

/* ---------- Products ---------- */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: 0.2s; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); }
.product-card .media { height: 200px; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-card .media img { width: 100%; height: 100%; object-fit: cover; }
.product-card .media .ph { font-size: 54px; color: #b8ccd4; }
.product-card .body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.product-card .cat { font-size: 12px; color: var(--accent); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.product-card h3 { font-size: 19px; margin: 6px 0 10px; }
.product-card p { color: var(--muted); font-size: 14px; flex: 1; }
.product-card .more { margin-top: 16px; color: var(--primary); font-weight: 600; font-size: 14px; }

/* ---------- Applications ---------- */
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.app-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow); transition: 0.2s;
}
.app-card:hover { transform: translateY(-4px); border-color: #bcd9e2; }
.app-card .icon { font-size: 32px; margin-bottom: 14px; }
.app-card h3 { font-size: 18px; margin-bottom: 8px; }
.app-card p { color: var(--muted); font-size: 14px; }
.app-card .tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.app-card .tag { background: #e8f3f7; color: var(--primary); font-size: 12px; padding: 3px 10px; border-radius: 12px; }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: 0.2s; cursor: pointer; }
.news-card:hover { transform: translateY(-4px); }
.news-card .media { height: 180px; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.news-card .media img { width: 100%; height: 100%; object-fit: cover; }
.news-card .body { padding: 20px; }
.news-card .date { font-size: 12px; color: var(--muted); }
.news-card h3 { font-size: 17px; margin: 8px 0; line-height: 1.4; }
.news-card p { color: var(--muted); font-size: 14px; }

/* ---------- Detail page ---------- */
.detail-hero { background: linear-gradient(120deg, #0a5a72, #0d6e8c); color: #fff; padding: 64px 0; }
.detail-hero .crumb { font-size: 13px; opacity: 0.85; margin-bottom: 12px; }
.detail-hero h1 { font-size: 34px; font-weight: 800; }
.detail-layout { display: grid; grid-template-columns: 340px 1fr; gap: 40px; padding: 56px 0; }
.detail-media { border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); min-height: 260px; display: flex; align-items: center; justify-content: center; }
.detail-media img { width: 100%; }
.detail-media .ph { font-size: 80px; color: #b8ccd4; }
.detail-content h2 { font-size: 22px; margin: 28px 0 12px; }
.detail-content ul { list-style: none; }
.detail-content ul li { padding: 8px 0 8px 26px; position: relative; color: #374151; }
.detail-content ul li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.spec-table th, .spec-table td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; font-size: 14px; }
.spec-table th { background: var(--bg-alt); width: 160px; }

/* ---------- About page ---------- */
.about-prose { max-width: 820px; margin: 0 auto; }
.about-prose p { color: #374151; margin-bottom: 20px; font-size: 16px; }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 32px 0; }
.vm-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.vm-card h3 { color: var(--primary); margin-bottom: 10px; font-size: 18px; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cert-grid { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.cert-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 24px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); }
.cert-card img { width: 36px; height: 36px; object-fit: contain; }
.timeline { position: relative; margin: 40px 0; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 4px; bottom: 4px; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding: 0 0 28px 20px; }
.timeline-item::before { content: ""; position: absolute; left: -26px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 3px solid #d7efe9; }
.timeline-item .year { color: var(--primary); font-weight: 800; font-size: 16px; }
.timeline-item h4 { margin: 4px 0; }
.timeline-item p { color: var(--muted); font-size: 14px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item .icon { width: 46px; height: 46px; border-radius: 12px; background: #e8f3f7; color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.contact-item h4 { font-size: 15px; color: var(--muted); margin-bottom: 2px; }
.contact-item p { font-size: 16px; }
.contact-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13,110,140,.12); }
.form-msg { margin-top: 12px; font-size: 14px; }
.form-msg.ok { color: var(--accent); }
.form-msg.err { color: #dc2626; }

/* ---------- Footer ---------- */
.site-footer { background: #083a4a; color: #cfe1e7; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 40px; padding: 56px 24px 40px; }
.footer-title { color: #fff; font-weight: 700; font-size: 17px; margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; color: #cfe1e7; margin-bottom: 8px; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-slogan { font-size: 14px; opacity: 0.9; margin-top: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: 13px; color: #9fc1cc; }

/* ---------- Empty ---------- */
.empty { text-align: center; color: var(--muted); padding: 60px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .highlights { grid-template-columns: repeat(2, 1fr); }
  .products-grid, .apps-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .about-teaser { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 34px; }
}

@media (max-width: 640px) {
  .site-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 12px; border-bottom: 1px solid var(--border);
  }
  .site-nav.open { display: flex; }
  .nav-burger { display: block; }
  .products-grid, .apps-grid, .news-grid, .highlights, .values-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .hero-inner { padding: 80px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}
