/* 青果数科 官网样式 — 无外部依赖，单文件 */
:root {
  --brand: #119f93;
  --brand-2: #17c4a0;
  --brand-dark: #0c7a71;
  --deep: #061426;
  --deep-2: #0b2138;
  --ink: #16233a;
  --body: #47566d;
  --muted: #7b8798;
  --line: #e6ebf2;
  --bg-soft: #f5f8fb;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 33, 56, .08);
  --shadow-lg: 0 18px 48px rgba(11, 33, 56, .12);
  --wrap: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: var(--brand); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 { color: var(--ink); margin: 0; font-weight: 700; line-height: 1.35; }

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

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-name { font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: .5px; }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: 1.6px; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-size: 15px; padding: 6px 0; position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--brand); }

/* 必须写成 .nav-links a.nav-cta：`.nav-links a` 的特异性 (0,1,1) 高于裸 `.nav-cta`
   (0,1,0)，否则 padding 被上面的 `padding: 6px 0` 覆盖，胶囊按钮失去左右内边距、
   文字溢出到圆角之外。display:inline-block 让上下 padding 真正撑开盒子。 */
.nav-links a.nav-cta {
  display: inline-block; line-height: 1.4;
  background: var(--brand); color: #fff !important; padding: 9px 20px; border-radius: 999px;
  font-size: 15px; box-shadow: 0 6px 16px rgba(17, 159, 147, .28);
}
.nav-links a.nav-cta:hover { background: var(--brand-dark); }
.nav-links a.nav-cta::after { display: none; }

.nav-toggle {
  display: none; width: 40px; height: 40px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; cursor: pointer; padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; position: relative; width: 18px; height: 2px; background: var(--ink);
  margin: 0 auto; border-radius: 2px;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative; overflow: hidden;
  background: #05101f url("../img/hero.webp") center right / cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(4, 13, 25, .95) 8%, rgba(5, 18, 34, .82) 42%, rgba(6, 24, 44, .35) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 118px 0 124px; max-width: 660px; }
.hero .eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: 2px; color: var(--brand-2);
  border: 1px solid rgba(23, 196, 160, .45); border-radius: 999px; padding: 5px 14px; margin-bottom: 26px;
}
.hero h1 { font-size: 46px; color: #fff; line-height: 1.25; letter-spacing: 1px; }
.hero h1 em { font-style: normal; color: var(--brand-2); }
.hero p { font-size: 17px; color: #b9c8da; margin: 22px 0 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 13px 30px; border-radius: 999px; font-size: 15px;
  transition: transform .2s, background .2s, box-shadow .2s; border: 1px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff !important; box-shadow: 0 10px 26px rgba(17, 159, 147, .34); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #eaf2f8 !important; }
.btn-ghost:hover { border-color: var(--brand-2); color: #fff !important; }

/* ---------- 数据条 ---------- */
.stats { background: var(--deep-2); border-top: 1px solid rgba(255, 255, 255, .06); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 44px 0;
}
.stat { text-align: center; color: #fff; }
.stat b { display: block; font-size: 34px; font-weight: 700; letter-spacing: 1px; color: var(--brand-2); }
.stat span { font-size: 14px; color: #93a6bb; }

/* ---------- 通用区块 ---------- */
.section { padding: 92px 0; }
.section.alt { background: var(--bg-soft); }
.section-head { max-width: 760px; margin: 0 auto 54px; text-align: center; }
.section-head .kicker {
  font-size: 13px; letter-spacing: 2.4px; color: var(--brand); text-transform: uppercase; margin-bottom: 12px;
}
.section-head h2 { font-size: 33px; letter-spacing: .5px; }
.section-head p { font-size: 16px; color: var(--body); margin: 16px 0 0; }

/* ---------- 卡片 ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(17, 159, 147, .32); }
.card-media { aspect-ratio: 16 / 10; background: var(--deep); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 26px 24px 28px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 20px; margin-bottom: 10px; }
.card-body p { margin: 0 0 16px; font-size: 15px; }
.card-list { list-style: none; margin: 0 0 18px; padding: 0; }
.card-list li { position: relative; padding-left: 20px; font-size: 14.5px; color: var(--body); }
.card-list li::before {
  content: ""; position: absolute; left: 4px; top: 12px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--brand-2);
}
.card-more { margin-top: auto; font-size: 14.5px; font-weight: 600; }
.card-more::after { content: " →"; }

/* ---------- 特性栅格 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; display: flex; gap: 18px; transition: box-shadow .25s, border-color .25s;
}
.feature:hover { box-shadow: var(--shadow); border-color: rgba(17, 159, 147, .3); }
.feature-icon {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: flex; align-items: center; justify-content: center;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { margin: 0; font-size: 15px; }

/* ---------- 图文 ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
/* 服务能力页的配图是 1:1 的，原比例会比右侧文字高出一大截；裁成 4:3 更平衡。 */
.split-media-sq img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split-body h2 { font-size: 31px; margin-bottom: 18px; }
.split-body p { font-size: 16px; margin: 0 0 16px; }
.split-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.split-list li { position: relative; padding-left: 30px; font-size: 15.5px; color: var(--ink); }
.split-list li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(17, 159, 147, .12);
}
.split-list li::after {
  content: ""; position: absolute; left: 6px; top: 15px; width: 6px; height: 3px;
  border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

/* ---------- CTA 横幅 ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--deep) 0%, #0d3b4a 55%, var(--brand-dark) 100%);
  color: #fff; padding: 66px 0;
}
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: 28px; }
.cta-band p { margin: 10px 0 0; color: #bcd4d8; }

/* ---------- 联系 ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px;
}
.contact-card h3 { font-size: 17px; margin-bottom: 14px; }
.contact-card .big { font-size: 24px; color: var(--brand); font-weight: 700; letter-spacing: .5px; }
.contact-card p { margin: 6px 0 0; font-size: 15px; }
.office-list { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.office-list li {
  border-left: 3px solid var(--brand); padding: 4px 0 4px 16px; font-size: 15.5px; color: var(--ink);
}
.office-list b { display: block; font-size: 16px; }
.office-list span { color: var(--body); font-size: 14.5px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--deep); color: #8ea1b6; padding: 58px 0 26px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; letter-spacing: .5px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #8ea1b6; }
.site-footer a:hover { color: var(--brand-2); }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { margin: 14px 0 0; line-height: 1.85; }
.footer-bottom {
  margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px;
}

/* ---------- 内页标题 ---------- */
.page-head {
  background: linear-gradient(120deg, var(--deep) 0%, #0a2b3c 60%, #0f5a55 100%);
  color: #fff; padding: 74px 0 66px;
}
.page-head h1 { color: #fff; font-size: 36px; }
.page-head p { margin: 14px 0 0; color: #b7c9d8; font-size: 16.5px; max-width: 720px; }
.crumb { font-size: 13.5px; color: #8ba2b8; margin-bottom: 16px; }
.crumb a { color: #8ba2b8; }
.crumb a:hover { color: var(--brand-2); }

.prose h2 { font-size: 26px; margin: 44px 0 16px; }
.prose h3 { font-size: 19px; margin: 30px 0 10px; }
.prose p { margin: 0 0 16px; font-size: 16px; }
.prose ul { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose > :first-child { margin-top: 0; }

/* ---------- 滚动淡入 ----------
   渐进增强：只有 <head> 里的同步脚本给 <html> 加上 .js-anim 之后才隐藏元素。
   JS 被禁用或加载失败时不会出现"整页空白"，内容默认可见。 */
.js-anim .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js-anim .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-anim .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .cards, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 38px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 68px; background: #fff; flex-direction: column;
    align-items: stretch; gap: 0; padding: 8px 24px 18px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: 0; padding-top: 12px; }
  .nav-links a { display: block; padding: 13px 0; }
  /* 同上，必须带 .nav-links a 前缀才盖得住 line 276 的 display:block/padding。 */
  .nav-links a.nav-cta { display: block; text-align: center; padding: 13px 20px; }
  .hero-inner { padding: 84px 0 88px; }
  .hero h1 { font-size: 30px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .stat b { font-size: 28px; }
  .section { padding: 64px 0; }
  .section-head h2 { font-size: 26px; }
  .cards, .contact-grid, .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .page-head h1 { font-size: 28px; }
}
