/* ============================================================
   爪蟾资源中心 Xenopus Resource Center
   Modern bilingual design system
   ============================================================ */

:root {
  /* Brand palette — aquatic teal / fresh green */
  --teal-900: #0b3d3a;
  --teal-800: #0f5751;
  --teal-700: #0f766e;
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --teal-400: #2dd4bf;
  --teal-100: #ccfbf1;
  --teal-50:  #f0fdfa;

  --lime-500: #84cc16;
  --lime-400: #a3e635;

  --aqua: #06b6d4;
  --sand: #fef3c7;

  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-300: #cbd5e1;
  --ink-100: #f1f5f9;
  --paper:   #ffffff;
  --bg:      #f7faf9;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 28px;

  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.08);
  --shadow-md: 0 4px 6px -1px rgba(15,23,42,.08), 0 10px 24px -6px rgba(15,23,42,.12);
  --shadow-lg: 0 20px 50px -12px rgba(13,148,136,.28);

  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --font: "Inter", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
          "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--teal-700); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--teal-500); }

h1,h2,h3,h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; color: var(--ink-700); }

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

/* Language visibility — hide the non-active language, keep natural display */
html[data-lang="zh"] .lang-en { display: none !important; }
html[data-lang="en"] .lang-zh { display: none !important; }

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(15,118,110,.10);
  transition: box-shadow .3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.brand .logo-mark { width: 42px; height: 42px; flex: none; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand .brand-cn { font-size: 19px; color: var(--teal-800); letter-spacing: .02em; }
.brand .brand-en { font-size: 11px; color: var(--ink-500); font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: block; padding: 10px 14px; border-radius: 10px;
  font-weight: 600; color: var(--ink-700); font-size: 15px;
  text-align: center; line-height: 1.25;
}
.nav-links > li > a:hover,
.nav-links > li.active > a { color: var(--teal-700); background: var(--teal-50); }

/* dropdown */
.has-sub > .submenu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 190px;
  background: var(--paper); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md); border: 1px solid var(--ink-100);
  padding: 8px; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .22s var(--ease);
}
.has-sub:hover > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px;
  color: var(--ink-700); font-weight: 500; }
.submenu a:hover { background: var(--teal-50); color: var(--teal-700); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--ink-300); background: var(--paper);
  border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 13px;
  color: var(--ink-700); cursor: pointer; transition: all .2s var(--ease);
}
.lang-toggle:hover { border-color: var(--teal-500); color: var(--teal-700); }

.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-weight: 700; font-size: 15px; border: none;
  padding: 12px 22px; border-radius: 999px;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn-primary { background: linear-gradient(135deg, var(--teal-600), var(--teal-500)); color: #fff;
  box-shadow: 0 8px 20px -6px rgba(13,148,136,.6); }
.btn-primary:hover { transform: translateY(-2px); color:#fff; box-shadow: 0 14px 28px -8px rgba(13,148,136,.65); }
.btn-ghost { background: var(--paper); color: var(--teal-700); border: 1px solid var(--teal-100); }
.btn-ghost:hover { background: var(--teal-50); transform: translateY(-2px); }
.btn-white { background:#fff; color: var(--teal-700); }
.btn-white:hover { transform: translateY(-2px); color: var(--teal-700); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink-900);
  margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(45,212,191,.22), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(132,204,22,.16), transparent 55%),
    linear-gradient(180deg, #f7fffd 0%, #effdf9 100%);
  padding: 84px 0 90px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal-50); color: var(--teal-700);
  border: 1px solid var(--teal-100);
  padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 13px;
  letter-spacing: .02em; margin-bottom: 22px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime-500);
  box-shadow: 0 0 0 4px rgba(132,204,22,.25); }
.hero h1 { font-size: clamp(32px, 4.6vw, 54px); color: var(--teal-900); margin-bottom: 18px; }
.hero h1 .grad { background: linear-gradient(120deg, var(--teal-600), var(--aqua));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 18px; color: var(--ink-700); max-width: 540px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats .stat .num { font-size: 30px; font-weight: 800; color: var(--teal-700); }
.hero-stats .stat .lbl { font-size: 13px; color: var(--ink-500); font-weight: 600; }
.hero-visual { position: relative; }
.hero-visual .floaty { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-16px)} }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 84px 0; }
.section.tint { background: var(--paper); }
.section.deep {
  background: linear-gradient(160deg, var(--teal-800), var(--teal-900));
  color: #eafffb;
}
.section.deep h2, .section.deep h3 { color: #fff; }
.section.deep p { color: rgba(234,255,251,.82); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.section-head .kicker { color: var(--teal-600); font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; font-size: 13px; display: block; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 40px); color: var(--teal-900); }
.section.deep .section-head h2 { color: #fff; }
.section.deep .section-head .kicker { color: var(--teal-400); }
.section-head p { font-size: 17px; }

/* card grid */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }

.card {
  background: var(--paper); border-radius: var(--radius);
  border: 1px solid var(--ink-100); padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--teal-100); }
.card .icon-badge {
  width: 60px; height: 60px; border-radius: 16px;
  background: linear-gradient(135deg, var(--teal-50), var(--teal-100));
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.card h3 { font-size: 19px; color: var(--teal-900); }
.card p { font-size: 15px; margin-bottom: 0; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  font-weight: 700; font-size: 14px; }
.card .more svg { transition: transform .2s var(--ease); }
.card:hover .more svg { transform: translateX(4px); }

/* product cards with image */
.product-card { padding: 0; }
.product-card .pc-media {
  aspect-ratio: 4/3; background: linear-gradient(135deg, var(--teal-50), #e0f7f2);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.product-card .pc-media svg { width: 76%; height: 76%; }
.product-card .pc-body { padding: 22px 24px 26px; }
.product-card .tag {
  display:inline-block; font-size: 12px; font-weight: 700; color: var(--teal-700);
  background: var(--teal-50); padding: 4px 10px; border-radius: 999px; margin-bottom: 10px;
}
.product-card h3 { font-size: 18px; }

/* feature row (services list) */
.feature {
  display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start;
  padding: 26px; background: var(--paper); border-radius: var(--radius);
  border: 1px solid var(--ink-100); box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature .num-badge {
  width: 64px; height: 64px; border-radius: 18px; flex: none;
  background: linear-gradient(135deg, var(--teal-600), var(--teal-500));
  color: #fff; display:flex; align-items:center; justify-content:center;
  font-size: 26px; font-weight: 800;
}
.feature h3 { font-size: 19px; margin-bottom: 6px; color: var(--teal-900); }
.feature p { font-size: 15px; margin: 0; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.step { text-align: center; padding: 10px; }
.step .ring {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%;
  border: 2px dashed var(--teal-400); display:flex; align-items:center; justify-content:center;
  font-weight: 800; color: var(--teal-600); font-size: 22px; background: var(--teal-50);
}

/* news */
.news-item {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; align-items: center;
  padding: 20px 24px; background: var(--paper); border-radius: var(--radius);
  border: 1px solid var(--ink-100); box-shadow: var(--shadow-sm);
  transition: all .25s var(--ease);
}
.news-item:hover { transform: translateX(6px); box-shadow: var(--shadow-md); border-color: var(--teal-100); }
.news-date {
  text-align: center; background: linear-gradient(135deg,var(--teal-50),var(--teal-100));
  border-radius: 12px; padding: 10px 6px;
}
.news-date .d { font-size: 26px; font-weight: 800; color: var(--teal-700); line-height: 1; }
.news-date .m { font-size: 12px; color: var(--ink-500); font-weight: 600; }
.news-item h3 { font-size: 17px; margin: 0 0 4px; }
.news-item p { font-size: 14px; margin: 0; color: var(--ink-500); }
.news-cat { font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px;
  white-space: nowrap; }
.cat-news { background: var(--teal-50); color: var(--teal-700); }
.cat-research { background: #eef6ff; color: #2563eb; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--teal-700), var(--teal-600) 60%, var(--aqua));
  border-radius: var(--radius-lg); padding: 56px; text-align: center; color: #fff;
  position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; font-size: clamp(24px,3vw,36px); }
.cta-band p { color: rgba(255,255,255,.9); font-size: 18px; max-width: 560px; margin: 0 auto 26px; }
.cta-band .blob { position:absolute; border-radius:50%; filter: blur(8px); opacity:.25; }

/* page hero (inner pages) */
.page-hero {
  background:
    radial-gradient(900px 400px at 90% -20%, rgba(45,212,191,.25), transparent 60%),
    linear-gradient(180deg, var(--teal-50), #ffffff);
  padding: 64px 0 48px; border-bottom: 1px solid var(--ink-100);
}
.breadcrumb { font-size: 14px; color: var(--ink-500); margin-bottom: 14px; }
.breadcrumb a { font-weight: 600; }
.page-hero h1 { font-size: clamp(28px,4vw,44px); color: var(--teal-900); }
.page-hero p { font-size: 18px; max-width: 640px; }

/* prose / detail */
.prose { max-width: 820px; }
.prose h2 { font-size: 26px; color: var(--teal-900); margin-top: 1.6em; }
.prose h3 { font-size: 20px; color: var(--teal-800); margin-top: 1.3em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; color: var(--ink-700); }
.callout {
  background: var(--teal-50); border-left: 4px solid var(--teal-500);
  padding: 18px 22px; border-radius: 0 12px 12px 0; margin: 24px 0;
}
.callout p { margin: 0; color: var(--teal-800); }

/* spec table */
.spec-table { width: 100%; border-collapse: collapse; margin: 18px 0; background:#fff;
  border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.spec-table th, .spec-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--ink-100); font-size: 15px; }
.spec-table th { background: var(--teal-50); color: var(--teal-800); font-weight: 700; }
.spec-table tr:last-child td { border-bottom: none; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.contact-card { display:flex; gap:16px; align-items:flex-start; padding: 22px;
  background: var(--paper); border:1px solid var(--ink-100); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); margin-bottom: 16px; }
.contact-card .ci { width:48px;height:48px;border-radius:12px;flex:none;
  background: var(--teal-50); display:flex;align-items:center;justify-content:center; }
.contact-card .lbl { font-size: 13px; color: var(--ink-500); font-weight:600; }
.contact-card .val { font-size: 17px; font-weight: 700; color: var(--ink-900); }
.form-field { margin-bottom: 16px; }
.form-field label { display:block; font-weight:600; font-size:14px; margin-bottom:6px; color: var(--ink-700); }
.form-field input, .form-field textarea {
  width:100%; padding: 12px 14px; border:1px solid var(--ink-300); border-radius: 10px;
  font-family: inherit; font-size: 15px; background:#fff; transition: border-color .2s; }
.form-field input:focus, .form-field textarea:focus { outline:none; border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(20,184,166,.15); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--teal-900); color: #cbe9e4; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 15px; letter-spacing: .04em; margin-bottom: 18px; }
.site-footer a { color: #a7d6cf; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.footer-brand .brand-cn { color:#fff; font-size: 20px; font-weight: 800; }
.footer-brand p { color: #8fc3bb; font-size: 14px; max-width: 280px; margin-top: 12px; }
.footer-contact li { display:flex; gap:10px; align-items:flex-start; color:#a7d6cf; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px;
  display:flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: #7fb3ab; }

/* ============================================================
   Generic split layout (image + text) — collapses on mobile
   ============================================================ */
.split2 { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split-media { background: linear-gradient(135deg,var(--teal-50),#e0f7f2); border-radius: var(--radius-lg);
  padding: 20px; box-shadow: var(--shadow-md); }
.split-media img { width: 100%; border-radius: 14px; }

/* detail feature card with side image */
.feature.with-img { grid-template-columns: 300px 1fr; align-items: center; }
.feature.with-img.rev { grid-template-columns: 1fr 300px; }
.feature.with-img img { width: 100%; border-radius: 14px; box-shadow: var(--shadow-sm); }

/* ============================================================
   Clients / partners
   ============================================================ */
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px,1fr)); gap: 12px; }
.client-tag {
  display: flex; align-items: center; gap: 9px; padding: 12px 14px;
  background: #fff; border: 1px solid var(--ink-100); border-radius: 12px;
  font-size: 14px; font-weight: 600; color: var(--ink-700); box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.client-tag:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--teal-100); color: var(--teal-800); }
.client-tag .cdot { width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg,var(--teal-500),var(--aqua)); }
.client-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
  mask-image: linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent); }
.client-track { display: flex; gap: 12px; width: max-content; animation: scrollx 38s linear infinite; }
.client-marquee:hover .client-track { animation-play-state: paused; }
@keyframes scrollx { from { transform: translateX(0);} to { transform: translateX(-50%);} }
.client-track .client-tag { white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .client-track { animation: none; } }

/* table wrapper for horizontal scroll on small screens */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ============================================================
   Publications list
   ============================================================ */
.pub-list { display: grid; gap: 12px; }
.pub-item { background: #fff; border: 1px solid var(--ink-100); border-radius: 12px;
  padding: 16px 18px; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.pub-item:hover { transform: translateX(4px); box-shadow: var(--shadow-md); border-color: var(--teal-100); }
.pub-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 7px; }
.pub-journal { font-size: 12px; font-weight: 800; color: var(--teal-700);
  background: var(--teal-50); padding: 3px 10px; border-radius: 6px; }
.pub-year { font-size: 12px; font-weight: 700; color: var(--ink-500); }
.pub-if { font-size: 11px; font-weight: 700; color: #b45309; background: #fef3c7; padding: 3px 8px; border-radius: 6px; }
.pub-title { font-weight: 700; color: var(--ink-900); font-size: 15px; line-height: 1.5; }
.pub-meta { font-size: 13px; color: var(--ink-500); margin-top: 4px; }
.pub-dl { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px;
  font-size: 13px; font-weight: 700; color: var(--teal-700); }
.pub-dl:hover { color: var(--teal-500); }

/* reveal on scroll — only hide when JS animation is enabled (no-JS safe) */
html.js-anim .reveal { opacity: 0; transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js-anim .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js-anim .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ============================================================
   Search overlay & results
   ============================================================ */
.search-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: none; border: 1px solid var(--ink-300);
  color: var(--ink-700); cursor: pointer;
  transition: all .2s var(--ease);
}
.search-btn:hover { border-color: var(--teal-500); color: var(--teal-700); background: var(--teal-50); }

.search-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(11,61,58,.5); backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease);
}
.search-overlay.open { opacity: 1; pointer-events: auto; }

.search-box {
  position: absolute; top: 88px; left: 50%; transform: translateX(-50%);
  width: min(700px, calc(100vw - 32px));
  background: var(--paper); border-radius: var(--radius);
  box-shadow: 0 24px 60px -12px rgba(11,61,58,.38);
  overflow: hidden;
}

.search-input-wrap {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--ink-100);
}
.search-input-wrap svg { color: var(--ink-500); flex: none; }
.search-input-wrap input {
  flex: 1; border: none; outline: none; font-size: 17px;
  font-family: var(--font); color: var(--ink-900); background: transparent;
}
.search-input-wrap input::placeholder { color: var(--ink-300); }
.search-close {
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer; padding: 4px 8px;
  color: var(--ink-500); border-radius: 8px; font-size: 18px; flex: none;
}
.search-close:hover { background: var(--ink-100); color: var(--ink-900); }

.search-results {
  max-height: 440px; overflow-y: auto; padding: 8px;
}
.search-result-item {
  display: block; padding: 12px 16px; border-radius: 10px;
  color: var(--ink-700); text-decoration: none;
  transition: background .15s;
}
.search-result-item:hover,
.search-result-item.focused { background: var(--teal-50); }
.sri-title { font-weight: 700; font-size: 15px; color: var(--ink-900); }
.search-result-item:hover .sri-title,
.search-result-item.focused .sri-title { color: var(--teal-800); }
.sri-path { font-size: 12px; color: var(--ink-500); margin-top: 2px; }
.search-result-item mark {
  background: var(--teal-100); color: var(--teal-800);
  border-radius: 3px; padding: 0 2px; font-style: normal;
}
.search-tip {
  padding: 14px 16px; font-size: 13px; color: var(--ink-500);
  border-top: 1px solid var(--ink-100); display: flex; gap: 18px; flex-wrap: wrap;
}
.search-tip kbd {
  display: inline-block; background: var(--ink-100); border-radius: 4px;
  padding: 1px 6px; font-family: monospace; font-size: 12px;
}
.search-empty { padding: 32px 16px; text-align: center; color: var(--ink-500); font-size: 15px; }

/* search.html dedicated page */
.search-page-wrap { max-width: 760px; margin: 0 auto; }
.search-page-input-wrap {
  display: flex; align-items: center; gap: 14px;
  background: var(--paper); border: 2px solid var(--ink-100);
  border-radius: var(--radius); padding: 14px 20px;
  box-shadow: var(--shadow-sm); margin-bottom: 28px;
  transition: border-color .2s var(--ease);
}
.search-page-input-wrap:focus-within { border-color: var(--teal-500); }
.search-page-input-wrap svg { color: var(--ink-500); flex: none; }
.search-page-input-wrap input {
  flex: 1; border: none; outline: none; font-size: 18px;
  font-family: var(--font); color: var(--ink-900); background: transparent;
}
.search-page-input-wrap input::placeholder { color: var(--ink-300); }
.search-count { font-size: 14px; color: var(--ink-500); margin-bottom: 12px; font-weight: 600; }
.search-page-results { display: grid; gap: 10px; }
.search-page-results .search-result-item {
  border: 1px solid var(--ink-100); border-radius: 12px;
  background: var(--paper); box-shadow: var(--shadow-sm);
  padding: 16px 20px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.search-page-results .search-result-item:hover {
  transform: translateX(4px); box-shadow: var(--shadow-md); border-color: var(--teal-100);
  background: var(--teal-50);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid, .contact-grid, .split2 { grid-template-columns: 1fr; gap: 30px; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: repeat(2,1fr); gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-visual { order: -1; max-width: 460px; margin: 0 auto; }
  .feature.with-img, .feature.with-img.rev { grid-template-columns: 1fr; }
  .feature.with-img img { order: -1; max-width: 360px; }
}
@media (max-width: 720px) {
  .nav-links { position: fixed; inset: 72px 0 auto 0; flex-direction: column;
    background: var(--paper); padding: 14px; gap: 2px; box-shadow: var(--shadow-md);
    transform: translateY(-130%); transition: transform .35s var(--ease); align-items: stretch; }
  .nav-links.open { transform: translateY(0); }
  .nav-links > li > a { padding: 14px; }
  .has-sub > .submenu { position: static; opacity:1; visibility:visible; transform:none;
    box-shadow:none; border:none; padding: 0 0 0 14px; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 64px 1fr; }
  .news-item .news-cat { grid-column: 2; justify-self: start; }
  .cta-band { padding: 38px 22px; }
  .section { padding: 56px 0; }
  .feature { grid-template-columns: 1fr; gap: 14px; }
  .feature .num-badge { width: 54px; height: 54px; font-size: 22px; }
  .hero { padding: 52px 0 60px; }
  .hero-stats { gap: 22px; }
  .container { padding: 0 18px; }
  .page-hero { padding: 48px 0 36px; }
  .cta-band h2 { font-size: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .nav-actions .btn-primary { display: none; }
  .search-box { top: 72px; }
}
