:root {
  --ink: #0e1526;
  --ink-2: #162036;
  --ink-3: #22304d;
  --paper: #f4f6fa;
  --card: #ffffff;
  --line: #d9e1ee;
  --text: #1a2335;
  --muted: #667389;
  --accent: #16c2c2;
  --accent-2: #3b82f6;
  --accent-soft: rgba(22, 194, 194, 0.12);
  --warn: #f59e0b;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(14, 21, 38, 0.08);
  --max: 1120px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--paper);
  line-height: 1.75;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(100% - 36px, var(--max)); margin: 0 auto; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(14, 21, 38, 0.92);
  color: #e8eefc;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; letter-spacing: 0.02em;
}
.logo img { height: 34px; width: auto; border-radius: 6px; }
.logo .logo-text {
  display: flex; flex-direction: column; line-height: 1.15;
}
.logo .logo-text strong { font-size: 17px; color: #fff; }
.logo .logo-text span { font-size: 11px; color: #8fa3c2; letter-spacing: 0.12em; text-transform: uppercase; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a {
  font-size: 14.5px; color: #c3d0e6; padding: 8px 14px;
  border-radius: 999px; transition: .18s;
}
.nav a:hover { color: #fff; background: rgba(22, 194, 194, 0.14); }
.nav-toggle {
  display: none; border: 0; background: none; color: #fff;
  font-size: 26px; cursor: pointer; line-height: 1;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(22, 194, 194, 0.22), transparent 55%),
    radial-gradient(700px 400px at 10% 100%, rgba(59, 130, 246, 0.18), transparent 50%),
    linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 55%, #0c1a2e 100%);
  color: #eaf1ff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero-slides { position: relative; }
.hero-slide {
  display: none;
  min-height: 480px;
  background-size: cover; background-position: center;
}
.hero-slide.active {
  display: grid; align-items: center;
}
.hero-slide.has-bg {
  background-color: var(--ink);
  position: relative;
}
.hero-slide.has-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10, 18, 32, 0.88) 10%, rgba(10, 18, 32, 0.45) 60%, rgba(10, 18, 32, 0.25));
}
.hero-text {
  position: relative; z-index: 2;
  padding: 88px 0 96px;
  max-width: 680px;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.hero-kicker::before {
  content: ""; width: 28px; height: 2px; background: var(--accent);
}
.hero-text h1 {
  margin: 0 0 16px; font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.25; font-weight: 700; letter-spacing: -0.02em;
}
.hero-text p {
  margin: 0 0 28px; font-size: 17px; color: #b8c7de; max-width: 34em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--accent), #0ea5a5);
  color: #042026; font-weight: 600;
  padding: 12px 24px; border-radius: 999px; border: 0;
  font-size: 15px; cursor: pointer; transition: .2s;
  box-shadow: 0 8px 20px rgba(22, 194, 194, 0.28);
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-ghost {
  background: transparent; color: #e8eefc;
  border: 1px solid rgba(255,255,255,0.28); box-shadow: none;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line); box-shadow: none;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* ===== Sections ===== */
.section { padding: 72px 0; }
.section-dark {
  background: var(--ink); color: #d7e2f5;
}
.section-dark .section-head h2 { color: #fff; }
.section-dark .section-head p { color: #8fa3c2; }
.section-head { margin-bottom: 40px; }
.section-head .eyebrow {
  display: block; font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.section-head h2 {
  margin: 0 0 10px; font-size: clamp(26px, 3vw, 34px);
  color: var(--ink); letter-spacing: -0.02em;
}
.section-head p { margin: 0; color: var(--muted); max-width: 40em; }
.section-head.center { text-align: center; }
.section-head.center p { margin: 0 auto; }
.center { text-align: center; margin-top: 32px; }

/* ===== Feature strip ===== */
.feature-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: -36px; position: relative; z-index: 3;
}
.feature-item {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 22px 20px;
  box-shadow: var(--shadow);
}
.feature-item .num {
  font-size: 12px; letter-spacing: 0.16em; color: var(--accent);
  font-weight: 700; margin-bottom: 8px;
}
.feature-item h3 { margin: 0 0 8px; font-size: 17px; color: var(--ink); }
.feature-item p { margin: 0; color: var(--muted); font-size: 14px; }

/* ===== Cards ===== */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(22, 194, 194, 0.45);
  box-shadow: 0 16px 36px rgba(14, 21, 38, 0.12);
}
.card-img {
  height: 158px; background-size: cover; background-position: center;
  background-color: #c9d7ea;
  background-image: linear-gradient(135deg, #1c3a5e, #16c2c2);
}
.card-body { padding: 18px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 {
  margin: 0 0 8px; font-size: 17px; color: var(--ink); line-height: 1.4;
}
.card-body p {
  margin: 0; color: var(--muted); font-size: 13.5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-body .foot {
  margin-top: auto; padding-top: 12px;
  display: flex; justify-content: space-between; align-items: center;
}
.tag {
  display: inline-flex; align-items: center; padding: 3px 10px;
  background: var(--accent-soft); color: #0d8f8f;
  border-radius: 999px; font-size: 12px; font-weight: 600;
}
.more-link {
  font-size: 13px; color: var(--accent-2); font-weight: 600;
}

/* ===== About / split ===== */
.about-split {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center;
}
.about-copy h2 { margin: 0 0 14px; font-size: 30px; color: #fff; }
.about-copy .lead { color: #aebfd8; margin: 0 0 18px; }
.about-img {
  border-radius: 18px; overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0,0,0,0.28);
}
.about-img img {
  width: 100%; height: auto; display: block;
  object-fit: contain;
}
.about-img-fallback {
  min-height: 300px;
  background-image:
    linear-gradient(145deg, rgba(22,194,194,0.35), rgba(59,130,246,0.15)),
    repeating-linear-gradient(135deg, #1a2c48 0 12px, #15243d 12px 24px);
  background-size: cover;
}
.clamp {
  max-height: 220px; overflow: hidden; margin-bottom: 22px;
}
.about-copy .clamp,
.about-copy .clamp.prose,
.section-dark .clamp.prose {
  color: #e8eefc !important;
  font-size: 15px;
}
.about-copy .clamp.prose *,
.section-dark .clamp.prose * {
  color: inherit !important;
}
.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px;
}
.stat {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 14px;
}
.stat strong { display: block; font-size: 22px; color: var(--accent); }
.stat span { font-size: 12px; color: #8fa3c2; }

/* ===== News ===== */
.news-list { display: grid; gap: 10px; }
.news-item {
  display: grid; grid-template-columns: 92px 1fr auto;
  gap: 16px; align-items: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 18px;
  transition: border-color .18s, transform .18s;
}
.news-item:hover { border-color: rgba(22, 194, 194, 0.5); transform: translateX(3px); }
.news-date {
  color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums;
}
.news-title { font-size: 15.5px; color: var(--ink); font-weight: 600; }
.news-desc {
  color: var(--muted); font-size: 13px; margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.news-arrow { color: var(--accent); font-size: 18px; }
.news-list.large .news-item { grid-template-columns: 92px 1fr auto; }

/* ===== Page banner ===== */
.page-banner {
  background:
    radial-gradient(700px 280px at 90% 0%, rgba(22, 194, 194, 0.18), transparent 60%),
    linear-gradient(135deg, var(--ink), var(--ink-2));
  color: #fff; padding: 58px 0 54px;
}
.page-banner h1 {
  margin: 0 0 10px; font-size: clamp(28px, 3.5vw, 38px);
  letter-spacing: -0.02em;
}
.page-banner p { margin: 0; color: #9db2cf; max-width: 40em; }
.page-banner .crumb {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}

/* ===== Filter ===== */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px;
}
.filter-bar a {
  padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); font-size: 13.5px; font-weight: 500;
}
.filter-bar a.active, .filter-bar a:hover {
  background: var(--ink); border-color: var(--ink); color: #fff;
}

/* ===== Pagination / empty ===== */
.pagination {
  display: flex; justify-content: center; align-items: center; gap: 16px;
  margin-top: 30px; color: var(--muted);
}
.pagination a {
  color: var(--ink); border: 1px solid var(--line); background: var(--card);
  padding: 7px 16px; border-radius: 8px; font-size: 14px;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.empty { text-align: center; color: var(--muted); padding: 48px 0; }

/* ===== Detail ===== */
.detail { max-width: 820px; }
.detail-cover {
  width: 50%; max-width: 50%; height: auto; object-fit: contain;
  border-radius: var(--radius); margin-bottom: 20px;
}
.detail-meta {
  display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px;
  color: var(--muted); font-size: 13.5px;
}
.detail-nav { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.detail-nav a { color: var(--accent-2); font-weight: 600; }

.prose { font-size: 16px; color: var(--text); }
.prose img { border-radius: 10px; margin: 14px 0; }
.prose h2, .prose h3 { color: var(--ink); margin-top: 1.6em; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; }
.float-img {
  float: right; width: 280px; margin: 0 0 16px 20px;
  border-radius: 10px;
}
.pic-row {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px; margin-top: 20px;
}
.pic-row img { border-radius: 10px; }

/* ===== Jobs ===== */
.job-list { display: grid; gap: 12px; }
.job-item {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; background: var(--card);
  border-left: 3px solid var(--accent);
}
.job-item:hover { box-shadow: var(--shadow); }
.job-item h3 { margin: 0 0 6px; color: var(--ink); font-size: 17px; }
.job-item p { margin: 0; color: var(--muted); font-size: 14px; }

/* ===== Contact ===== */
.contact-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 36px;
}
.contact-panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
  margin: 12px 0; color: var(--text); font-size: 15px;
  display: grid; grid-template-columns: 88px 1fr; gap: 8px;
}
.contact-list li strong { color: var(--muted); font-weight: 500; font-size: 13.5px; }
.contact-form { display: grid; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line);
  border-radius: 10px; font: inherit; color: var(--text); background: #fff;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: 2px solid rgba(22, 194, 194, 0.35); border-color: var(--accent);
}
.flash.ok {
  background: #e8fbfb; color: #0b7a7a; border: 1px solid rgba(22,194,194,0.35);
  padding: 12px 14px; border-radius: 10px; margin-bottom: 12px;
}
.flash.err {
  background: #fff4e5; color: #b45309; border: 1px solid #fcd34d;
  padding: 12px 14px; border-radius: 10px; margin-bottom: 12px;
}

/* ===== Footer ===== */
.site-footer {
  background: #0a1222; color: #9aadc9; margin-top: 20px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 28px;
  padding: 52px 0 28px;
}
.footer-brand .name {
  color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 10px;
}
.footer-grid h4 {
  margin: 0 0 14px; color: #fff; font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 8px 0; font-size: 14px; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 0; font-size: 12.5px; color: #6f829e;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.footer-bottom a { color: #6f829e; }
.footer-bottom a:hover { color: var(--accent); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .feature-strip { grid-template-columns: 1fr; margin-top: 20px; }
  .about-split, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 80px 1fr; }
  .news-arrow { display: none; }
  .stat-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--ink); flex-direction: column; align-items: stretch;
    padding: 10px 18px 18px; gap: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; border-radius: 8px; }
  .nav-toggle { display: block; }
  .hero-text { padding: 64px 0 72px; }
  .hero-slide, .hero-slide.active { min-height: 420px; }
  .float-img { float: none; width: 100%; margin: 0 0 16px; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
}
