/* ==========================================================================
   jinaai.cn — Elastic 中国企业信息展示页
   纯静态样式表：无外部字体、无外部 CDN、无 JavaScript 依赖。
   品牌色取自 Elastic 官方标识（assets/img/elastic-logo.svg）。
   ========================================================================== */

:root {
  /* Elastic 品牌色 */
  --ink:        #1C1E23;
  --ink-soft:   #343741;
  --blue:       #0B64DD;
  --blue-light: #45A8FF;
  --teal:       #02BCB7;
  --green:      #9ADC30;
  --pink:       #F04E98;
  --yellow:     #FEC514;

  /* Jina AI 品牌色 */
  --jina-teal:  #009191;
  --jina-coral: #EB6161;
  --jina-sand:  #FBCB67;

  /* 中性色 */
  --paper:      #FFFFFF;
  --paper-alt:  #F6F7FB;
  --border:     #E2E5EE;
  --border-soft:#EDEFF5;
  --text:       #1C1E23;
  --text-muted: #53575E;
  --text-faint: #7B8087;

  --radius:     14px;
  --radius-sm:  8px;
  --maxw:       1180px;

  --shadow-sm:  0 1px 2px rgba(28, 30, 35, .06), 0 2px 8px rgba(28, 30, 35, .04);
  --shadow-md:  0 2px 6px rgba(28, 30, 35, .07), 0 12px 28px rgba(28, 30, 35, .08);

  --font: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC",
          "Noto Sans CJK SC", "Microsoft YaHei", "Hiragino Sans GB",
          -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
               "Liberation Mono", monospace;
}

/* ----- 基础 ----------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
p  { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

/* 跳转锚点时不被吸顶导航遮挡 */
section[id] { scroll-margin-top: 86px; }

/* ----- 顶部导航 ------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.masthead .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 68px;
  flex-wrap: wrap;
}

.brand-lockup { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.brand-lockup img.brand-elastic { height: 30px; width: auto; }
.brand-lockup img.brand-jina    { height: 17px; width: auto; }
.brand-lockup .rule {
  width: 1px; height: 24px; background: var(--border);
  display: inline-block;
}

.masthead nav { margin-left: auto; }
.masthead nav ul { display: flex; gap: 26px; flex-wrap: wrap; }
.masthead nav a {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  padding-block: 6px;
  border-bottom: 2px solid transparent;
}
.masthead nav a:hover { color: var(--blue); border-bottom-color: var(--blue); text-decoration: none; }

/* ----- 按钮 ----------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #0954B8; color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ----- Hero ----------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  padding-block: 92px 84px;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  pointer-events: none;
}
.hero::before {
  width: 560px; height: 560px;
  top: -220px; right: -120px;
  background: radial-gradient(circle at 30% 30%, var(--blue) 0%, rgba(11, 100, 221, 0) 68%);
}
.hero::after {
  width: 520px; height: 520px;
  bottom: -260px; left: -140px;
  background: radial-gradient(circle at 60% 40%, var(--teal) 0%, rgba(2, 188, 183, 0) 66%);
}
.hero .wrap { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .07);
  font-size: 14px;
  color: #E8EAF0;
  margin-bottom: 26px;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
  flex: 0 0 auto;
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 60px);
  letter-spacing: -.02em;
  margin-bottom: 10px;
}
.hero .h1-sub {
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 500;
  color: var(--blue-light);
  letter-spacing: .01em;
  margin-bottom: 22px;
}
.hero .lede {
  font-size: clamp(16px, 1.6vw, 19px);
  color: #D3D6DE;
  max-width: 62ch;
  margin-bottom: 34px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin-top: 60px;
  padding-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.hero-stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hero-stats dt {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.hero-stats dd {
  margin: 6px 0 0;
  font-size: 14px;
  color: #A9AEB8;
  line-height: 1.55;
}

/* ----- 通用版块 ------------------------------------------------------- */

.section { padding-block: 84px; }
.section-alt { background: var(--paper-alt); }
.section-ink { background: var(--ink); color: #fff; }

.section-head { max-width: 76ch; margin-bottom: 44px; }
.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.section-ink .kicker { color: var(--teal); }
.section-head h2 {
  font-size: clamp(27px, 3.4vw, 38px);
  margin-bottom: 16px;
}
.section-head p {
  font-size: 17px;
  color: var(--text-muted);
}
.section-ink .section-head p { color: #B7BCC5; }

/* 版块标题在两栏布局里复用（不走 .section-head 时） */
.h2 { font-size: clamp(27px, 3.4vw, 38px); margin-bottom: 18px; }
.section-ink .h2 { color: #fff; margin-bottom: 8px; }
.h2-sub {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--teal);
  margin-bottom: 18px;
}

/* ----- 卡片网格 ------------------------------------------------------- */

.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: #D2D7E3; }

.card .accent {
  width: 40px; height: 4px; border-radius: 999px;
  margin-bottom: 18px;
}
.accent-blue  { background: var(--blue); }
.accent-teal  { background: var(--teal); }
.accent-pink  { background: var(--pink); }
.accent-yellow{ background: var(--yellow); }
.accent-green { background: var(--green); }

.card h3 { font-size: 20px; margin-bottom: 6px; }
.card p { color: var(--text-muted); font-size: 15.5px; }
.card ul.namelist {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--border-soft);
  display: grid;
  gap: 6px;
}
.card ul.namelist li {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
  word-break: break-word;
}

/* ----- 产品条 --------------------------------------------------------- */

.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 17px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--paper);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
}
.chip .bead { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }

/* ----- 图文两栏 ------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px;
  align-items: center;
}
.split .prose p + p { margin-top: 16px; }
/* :not() 让 .h2-sub 等工具类不被这条正文规则覆盖 */
.split .prose p:not([class]) { color: var(--text-muted); font-size: 16.5px; }
.section-ink .split .prose p:not([class]) { color: #B7BCC5; }

.panel {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
}
.section-ink .panel {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .14);
  box-shadow: none;
}
.panel-title { font-size: 18px; margin-bottom: 6px; }
.panel-sub { font-size: 14px; color: var(--text-faint); margin-bottom: 12px; }
.panel-logo { height: 30px; width: auto; margin-bottom: 22px; }
.section-ink .panel a { color: var(--blue-light); }

.factlist { display: grid; gap: 0; }
.factlist div {
  display: grid;
  grid-template-columns: 8.5em minmax(0, 1fr);
  gap: 16px;
  padding-block: 13px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 15.5px;
}
.factlist div:last-child { border-bottom: 0; }
.factlist dt { color: var(--text-faint); }
.factlist dd { margin: 0; color: var(--text); }
.section-ink .factlist div { border-bottom-color: rgba(255, 255, 255, .12); }
.section-ink .factlist dt { color: #8E949E; }
.section-ink .factlist dd { color: #EDEFF3; }

/* ----- 检索流程图 ----------------------------------------------------- */

.figure {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px 22px;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}
.figure svg { width: 100%; height: auto; }
.figure .pipe-h { min-width: 660px; display: block; }
.figure .pipe-v { display: none; }
.figure figcaption {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-faint);
  text-align: center;
}


.note {
  margin-top: 28px;
  font-size: 14.5px;
  color: var(--text-faint);
}

/* ----- 合规说明 ------------------------------------------------------- */

.notice {
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm);
  background: var(--paper);
  padding: 26px 28px;
}
.notice h3 { font-size: 18px; margin-bottom: 12px; }
.notice ol { margin: 0; padding-left: 1.35em; color: var(--text-muted); font-size: 15.5px; }
.notice ol li { margin-block: 7px; }

/* ----- 页脚 ----------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: #A9AEB8;
  padding-block: 60px 40px;
  font-size: 14.5px;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 44px;
  padding-bottom: 38px;
  border-bottom: 1px solid rgba(255, 255, 255, .13);
}
.footer-brand img.brand-elastic { height: 30px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: #8E949E; font-size: 14px; max-width: 42ch; }
.footer-brand .jina-line {
  display: flex; align-items: center; gap: 10px;
  margin-top: 20px; color: #8E949E; font-size: 13.5px;
}
.footer-brand .jina-line img { height: 15px; width: auto; opacity: .85; }

.site-footer h4 {
  color: #fff;
  font-size: 14px;
  letter-spacing: .04em;
  margin-bottom: 14px;
}
.site-footer nav ul { display: grid; gap: 10px; }
.site-footer a { color: #A9AEB8; }
.site-footer a:hover { color: #fff; }

.footer-legal { padding-top: 30px; display: grid; gap: 14px; }
.beian {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  font-size: 14px;
}
.beian .operator { color: #8E949E; }
.fineprint { color: #767B84; font-size: 13px; line-height: 1.7; max-width: 100ch; }

/* ----- 响应式 --------------------------------------------------------- */

/* 四张方案卡片在 1100px 以下就该折成两列，否则中文正文挤成窄条 */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1000px) {
  .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .hero-stats, .hero-stats-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
}

@media (max-width: 760px) {
  .masthead .wrap { min-height: 58px; gap: 10px; padding-block: 9px; }
  .masthead nav { margin-left: 0; width: 100%; }
  /* 单行横向滚动，避免导航换行把吸顶栏撑高 */
  .masthead nav ul {
    gap: 20px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .masthead nav ul::-webkit-scrollbar { display: none; }
  .masthead nav li { flex: 0 0 auto; }
  .masthead nav a { font-size: 14px; }
  section[id] { scroll-margin-top: 108px; }

  .hero { padding-block: 60px 56px; }
  .section { padding-block: 60px; }

  .grid-4, .grid-3 { grid-template-columns: minmax(0, 1fr); }

  /* 窄屏改用竖排流程图，避免横向滚动 */
  .figure { overflow-x: visible; padding: 24px 20px 18px; }
  .figure .pipe-h { display: none; }
  .figure .pipe-v { display: block; min-width: 0; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-stats, .hero-stats-3 { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .factlist div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ----- 打印（备案材料常需打印首页截图） -------------------------------- */
@media print {
  .masthead { position: static; }
  .hero, .section-ink, .site-footer { background: #fff !important; color: #000 !important; }
  .hero::before, .hero::after { display: none; }
  .hero h1, .hero-stats dt, .site-footer h4 { color: #000 !important; }
  .hero .lede, .hero-stats dd, .site-footer, .site-footer a { color: #333 !important; }
  .card, .panel, .figure { box-shadow: none; }
}
