/* ============================================================
   北京凯普顿医药科技开发有限公司 · 官网样式
   风格参考 bocchem.com —— 深海军蓝 + 柠檬绿
   ============================================================ */

:root {
  --lime: #8acf00;
  --lime-soft: rgba(138, 207, 0, 0.18);
  --navy: #002e73;
  --navy-deep: #00367a;
  --navy-dark: #001f4d;
  --ink: #333333;
  --ink-soft: #444444;
  --muted: #666666;
  --bg: #ffffff;
  --line: #e6e8ec;

  --header-h: 100px;

  --shadow: 0 0 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 46, 115, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', 'Helvetica Neue',
    Helvetica, Arial, sans-serif;
  color: var(--muted);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--lime);
}

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

.container {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 3.75rem;
}

/* 通用大标题 */
.index-title {
  display: block;
  font-size: 3.4rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--navy);
}

/* 滚动显现 */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   顶部导航（固定白底）
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 222;
  background: #fff;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.brand-logo {
  height: 48px;
  width: auto;
  display: block;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 34px;
}

.main-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.main-nav > ul > li {
  position: relative;
}

.nav-item-row {
  display: flex;
  align-items: center;
}

.main-nav > ul > li > .nav-item-row > a {
  display: block;
  font-size: 16px;
  line-height: var(--header-h);
  color: var(--ink);
  padding: 0 17px;
  position: relative;
  white-space: nowrap;
}

.main-nav > ul > li > .nav-item-row > a::after {
  content: '';
  position: absolute;
  left: 17px;
  right: 17px;
  bottom: 0;
  height: 3px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.main-nav > ul > li > .nav-item-row > a:hover,
.main-nav > ul > li > .nav-item-row > a.router-link-active {
  color: var(--lime);
}

.main-nav > ul > li > .nav-item-row > a:hover::after,
.main-nav > ul > li > .nav-item-row > a.router-link-active::after {
  transform: scaleX(1);
}

/* 子菜单展开按钮（桌面端隐藏，移动端显示） */
.child-toggle {
  display: none;
}

/* 下拉子菜单 */
.main-nav li.has-children > ul {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: var(--header-h);
  min-width: 180px;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  padding: 12px 0;
  display: none;
  z-index: 300;
}

.main-nav li.has-children:hover > ul {
  display: block;
}

.main-nav li.has-children > ul li a {
  display: block;
  text-align: center;
  color: var(--ink);
  font-size: 15px;
  line-height: 2.6;
  transition: color 0.3s ease;
}

.main-nav li.has-children > ul li a:hover,
.main-nav li.has-children > ul li a.router-link-active {
  color: var(--lime);
}

/* 语言切换 */
.lang-toggle {
  display: flex;
  align-items: center;
  font-size: 15px;
  color: var(--ink);
}

.lang-toggle a {
  margin: 0 8px;
  color: var(--ink);
}

.lang-toggle a.on {
  color: var(--navy);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 22px;
  color: var(--navy);
}

/* ============================================================
   Banner（全宽主视觉）
   ============================================================ */
.banner {
  margin-top: var(--header-h);
  position: relative;
  height: 560px;
  background:
    radial-gradient(55% 80% at 12% 18%, rgba(138, 207, 0, 0.14) 0%, transparent 55%),
    radial-gradient(90% 120% at 85% 0%, rgba(138, 207, 0, 0.26) 0%, transparent 55%),
    radial-gradient(70% 110% at 10% 100%, rgba(0, 46, 115, 0.9) 0%, transparent 70%),
    linear-gradient(135deg, #001f4d 0%, #002e73 45%, #00367a 100%);
  overflow: hidden;
}

.banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
}

.banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 32, 77, 0.92) 0%,
    rgba(0, 46, 115, 0.72) 45%,
    rgba(0, 46, 115, 0.38) 100%
  );
}

.banner .banner-text {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 3.75rem;
}

.banner .banner-text .en {
  font-size: 15px;
  letter-spacing: 3px;
  color: #9fc1e8;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.banner .banner-text h1 {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin: 0 0 16px;
  line-height: 1.2;
}

.banner .banner-text .lime-bar {
  width: 88px;
  height: 6px;
  background: var(--lime);
  border-radius: 3px;
  margin-bottom: 22px;
}

.banner .banner-text .slogan {
  font-size: 22px;
  color: #d8e6f7;
  margin: 0;
}

/* ============================================================
   ys —— 悬浮于 Banner 下方的标语卡片
   ============================================================ */
.ys {
  position: relative;
  z-index: 2;
  margin-top: -78px;
  margin-bottom: 72px;
}

.ys .info {
  background: linear-gradient(135deg, #ffffff 0%, #f1f8ff 100%);
  border-radius: 16px;
  box-shadow: 0 34px 80px rgba(0, 32, 77, 0.3);
  padding: 52px 60px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.ys .info::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--lime), #66b300);
}

.ys .info::after {
  content: '';
  position: absolute;
  right: -70px;
  top: -70px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(138, 207, 0, 0.13), transparent 70%);
}

.ys .text {
  position: relative;
  z-index: 1;
}

.ys .lime-bar {
  width: 64px;
  height: 5px;
  background: var(--lime);
  border-radius: 3px;
  margin-bottom: 20px;
}

.ys .text h2 {
  font-size: 2.3rem;
  line-height: 1.3;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 16px;
  letter-spacing: 0.5px;
}

.ys .text p {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
  line-height: 1.9;
  max-width: 780px;
}

.ys .btn-pill {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* 通用胶囊按钮（导航蓝底，柠檬绿悬停） */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 58px;
  padding: 0 36px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid var(--navy);
  white-space: nowrap;
  transition: background 0.3s ease, border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.btn-pill:hover {
  background: var(--lime);
  border-color: var(--lime);
  color: #fff;
  box-shadow: 0 12px 30px rgba(138, 207, 0, 0.35);
}

.btn-pill .arr {
  display: inline-flex;
  transition: transform 0.3s ease;
}

.btn-pill:hover .arr {
  transform: translateX(6px);
}

/* ============================================================
   数据条带
   ============================================================ */
.stats-band {
  padding: 0 0 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat {
  text-align: left;
  border-left: 4px solid var(--lime);
  padding-left: 22px;
}

.stat .value {
  font-size: 46px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  font-family: 'Arial', 'Helvetica', sans-serif;
}

.stat .label {
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 1px;
}

/* ============================================================
   solution —— 为什么选择凯普顿（两栏）
   ============================================================ */
.solution {
  position: relative;
  padding: 40px 0 110px;
}

.solution-inner {
  position: relative;
}

.solution .info {
  width: 71%;
  padding-right: 6%;
}

.solution-kicker {
  display: inline-flex;
  align-items: center;
  background: var(--lime);
  color: #fff;
  font-size: 26px;
  line-height: 60px;
  padding: 0 52px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 42px;
}

.solution .info h2 {
  margin-bottom: 36px;
}

.solution .info .point-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.solution .info .point-list li {
  display: flex;
  align-items: flex-start;
  font-size: 19px;
  color: var(--ink-soft);
  margin-bottom: 16px;
  line-height: 1.6;
}

.solution .info .point-list li .dot {
  position: relative;
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--lime);
  margin: 12px 20px 0 0;
}

.solution .info .point-list li .dot::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(138, 207, 0, 0.18);
}

.solution .pic {
  position: absolute;
  right: 0;
  top: 0;
  width: 33.33%;
}

.solution .pic .pic-head {
  font-size: 18px;
  color: var(--navy);
  font-weight: 700;
  position: relative;
  padding-left: 70px;
  margin-bottom: 18px;
  line-height: 1.5;
}

.solution .pic .pic-head::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 54px;
  height: 2px;
  background: var(--navy);
}

/* 图片卡片（配图 + 渐变说明条） */
.pic-photo {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--navy);
}

.pic-photo img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
}

.pic-photo .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 28px 26px;
  background: linear-gradient(
    to top,
    rgba(0, 32, 77, 0.94) 0%,
    rgba(0, 32, 77, 0.6) 55%,
    transparent 100%
  );
  color: #fff;
}

.pic-photo .cap .cap-title {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.pic-photo .cap p {
  font-size: 13.5px;
  color: #c9d8ec;
  margin: 0 0 10px;
  line-height: 1.7;
}

.pic-photo .cap .panel-link {
  color: var(--lime);
  font-weight: 600;
  font-size: 14px;
}

/* 正文配图（关于页等） */
.page-photo {
  margin: 0 0 26px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.page-photo img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
}

/* ============================================================
   服务内容（横向画廊）
   ============================================================ */
.services-section {
  padding: 0 0 60px;
}

.services-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}

.services-head .kicker {
  display: inline-block;
  color: var(--lime);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.services-head h2 {
  margin: 0;
}

.services-head .head-line {
  width: 90px;
  height: 4px;
  background: var(--lime);
  margin-top: 20px;
  border-radius: 2px;
}

.services-track {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  padding: 10px 4px 22px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--lime) #eee;
}

.services-track::-webkit-scrollbar {
  height: 8px;
}

.services-track::-webkit-scrollbar-thumb {
  background: var(--lime);
  border-radius: 4px;
}

.service-card {
  scroll-snap-align: start;
  flex: 0 0 340px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 34px 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--lime);
}

.service-card .num {
  font-size: 15px;
  color: #bbb;
  font-family: 'Arial', sans-serif;
}

.service-card .service-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--lime-soft);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 18px 0 20px;
}

.service-card h3 {
  font-size: 21px;
  color: var(--navy);
  margin: 0 0 12px;
  font-weight: 700;
}

.service-card p {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.7;
}

.service-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-card ul li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.service-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
}

/* 服务页：网格布局 */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-top: 24px;
}

/* ============================================================
   tech —— 核心技术与平台（深色通栏）
   ============================================================ */
.tech {
  background:
    radial-gradient(60% 100% at 100% 0%, rgba(138, 207, 0, 0.14) 0%, transparent 55%),
    var(--navy-dark);
  padding: 88px 0 100px;
  color: #fff;
}

.tech-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tech-box .info {
  width: 48%;
}

.tech-kicker {
  display: inline-block;
  color: var(--lime);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.tech-box .info h2 {
  color: #fff;
  margin-bottom: 40px;
}

.tech-box .info .tech-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tech-box .info .tech-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 22px;
}

.tech-box .info .tech-list .dot {
  position: relative;
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lime);
  margin: 10px 24px 0 0;
}

.tech-box .info .tech-list .dot::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(138, 207, 0, 0.12);
}

.tech-box .info .tech-list b {
  display: block;
  font-size: 19px;
  color: #fff;
  margin-bottom: 4px;
}

.tech-box .info .tech-list span {
  font-size: 15px;
  color: #a8c0dc;
  line-height: 1.7;
}

.tech-box .pic {
  width: 44%;
}

.tech-box .pic .tech-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 52px 44px;
  text-align: center;
}

.tech-box .pic .tech-panel .big-ic {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: var(--lime);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 26px;
}

.tech-box .pic .tech-panel h3 {
  font-size: 26px;
  color: #fff;
  margin: 0 0 14px;
  font-weight: 700;
}

.tech-box .pic .tech-panel p {
  font-size: 15px;
  color: #a8c0dc;
  line-height: 1.9;
  margin: 0;
}

/* ============================================================
   案例
   ============================================================ */
.cases {
  padding: 88px 0 96px;
}

.cases-head {
  text-align: center;
  margin-bottom: 46px;
}

.cases-head .kicker {
  display: inline-block;
  color: var(--lime);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.case-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 34px 28px;
  transition: all 0.3s ease;
}

.case-card:hover {
  border-color: var(--lime);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.case-card .tag {
  display: inline-block;
  background: var(--lime);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.case-card h3 {
  font-size: 18px;
  color: var(--navy);
  margin: 0;
  font-weight: 700;
  line-height: 1.5;
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  background: var(--navy-dark);
  padding: 80px 0 0;
  color: #9fb3cc;
}

.footer-box {
  border-bottom: 1px solid rgba(153, 153, 153, 0.16);
  padding-bottom: 34px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-logo {
  width: 30%;
}

.footer-logo .logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

/* 深色底上使用白色版 logo */
.footer-logo-img {
  height: 44px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

.footer-logo .logo-name {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

.footer-logo .info p {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.9;
  color: #9fb3cc;
  margin: 8px 0;
}

.footer-logo .info p .ic {
  flex-shrink: 0;
  color: var(--lime);
  margin-top: 5px;
}

.footer-nav {
  width: 62%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-nav dl {
  margin: 0;
  min-width: 150px;
}

.footer-nav dt {
  font-size: 18px;
  color: #fff;
  margin-bottom: 26px;
  font-weight: 700;
}

.footer-nav dd {
  margin: 0 0 10px;
}

.footer-nav dd a {
  font-size: 14px;
  color: #9fb3cc;
  line-height: 1.9;
}

.footer-nav dd a:hover {
  color: var(--lime);
}

.foot-copy {
  padding: 22px 0;
  text-align: center;
  font-size: 13px;
  color: #7b91ab;
}

/* ============================================================
   内容页（page-hero / 侧边栏 / 正文）
   ============================================================ */
.page-hero {
  margin-top: var(--header-h);
  background: var(--navy);
  color: #fff;
  padding: 66px 0;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(138, 207, 0, 0.22), transparent 70%);
}

.page-hero .crumb {
  font-size: 14px;
  color: #9fc1e8;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.page-hero .crumb a {
  color: #9fc1e8;
}

.page-hero h1 {
  margin: 0;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

.page-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
  padding: 56px 0 80px;
}

.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.sidebar .sidebar-title {
  background: var(--navy);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  padding: 20px 24px;
  letter-spacing: 1px;
}

.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 10px 0;
}

.sidebar ul li a {
  display: block;
  padding: 13px 24px;
  color: var(--ink-soft);
  font-size: 15px;
  border-left: 3px solid transparent;
  transition: all 0.25s ease;
}

.sidebar ul li a:hover,
.sidebar ul li a.router-link-active {
  color: var(--lime);
  border-left-color: var(--lime);
  background: #f7fbf0;
}

.content-card {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 46px 52px;
}

.rich-text h2 {
  font-size: 24px;
  color: var(--navy);
  margin: 30px 0 16px;
  padding-left: 16px;
  border-left: 4px solid var(--lime);
  line-height: 1.3;
  font-weight: 700;
}

.rich-text h2:first-child {
  margin-top: 0;
}

.rich-text p {
  margin: 0 0 16px;
  text-align: justify;
  color: var(--ink-soft);
  font-size: 16px;
}

.rich-text ul,
.rich-text .lead-list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.rich-text ul li,
.rich-text .lead-list li {
  position: relative;
  padding: 8px 0 8px 26px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
}

.rich-text ul li::before,
.rich-text .lead-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 17px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
}

table.facts {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 22px;
  font-size: 15.5px;
  border: 1px solid var(--line);
}

table.facts th,
table.facts td {
  padding: 13px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

table.facts tr:last-child th,
table.facts tr:last-child td {
  border-bottom: none;
}

table.facts th {
  background: #f5f9ee;
  color: var(--navy);
  width: 150px;
  font-weight: 700;
}

.org-chart {
  margin-top: 16px;
}

.org-node {
  background: var(--navy);
  color: #fff;
  padding: 12px 22px;
  border-radius: 6px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  display: inline-block;
}

.org-node.org-root {
  background: var(--navy-dark);
  font-size: 17px;
  font-weight: 800;
  display: block;
  width: 220px;
  margin: 0 auto 28px;
}

.org-branches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  position: relative;
  padding-top: 24px;
}

.org-branches::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 24px;
  border-top: 2px solid var(--lime);
}

.org-branches .org-node {
  font-size: 14px;
}

.contact-block {
  background: #f7fbf0;
  border: 1px solid #e2efc4;
  border-radius: 6px;
  padding: 24px 30px;
  margin-top: 10px;
}

.contact-block p {
  margin: 8px 0;
  color: var(--ink-soft);
}

/* 联系表单 */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 20px;
}

.contact-form .field.full {
  grid-column: 1 / -1;
}

.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 7px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(138, 207, 0, 0.15);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 6px;
  padding: 14px 36px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  background: var(--navy);
  color: #fff;
  transition: background 0.3s ease, transform 0.15s ease;
}

.btn:hover {
  background: #00367a;
  color: #fff;
}

.btn:active {
  transform: translateY(1px);
}

.form-msg {
  grid-column: 1 / -1;
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 6px;
}

.form-msg.ok {
  background: #f2fbea;
  color: #4a7c00;
  border: 1px solid #cdeaa0;
}

.form-msg.err {
  background: #fdf0ef;
  color: #b00020;
  border: 1px solid #f5c6cb;
}

.not-found {
  text-align: center;
  padding: 140px 20px;
}

.not-found h1 {
  font-size: 96px;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
  line-height: 1;
}

.not-found p {
  color: var(--muted);
  margin: 16px 0 30px;
  font-size: 17px;
}

/* ============================================================
   管理后台
   ============================================================ */
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(60% 90% at 85% 10%, rgba(138, 207, 0, 0.14) 0%, transparent 60%),
    linear-gradient(135deg, #001f4d 0%, #002e73 100%);
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 430px;
  background: #fff;
  border-radius: 16px;
  padding: 42px 40px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.login-brand {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo {
  height: 60px;
  width: auto;
  display: inline-block;
}

.login-brand h1 {
  font-size: 20px;
  color: var(--navy);
  margin: 16px 0 4px;
  font-weight: 700;
}

.login-brand p {
  font-size: 11.5px;
  color: #999;
  margin: 0;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.login-card .field {
  margin-bottom: 16px;
}

.login-card .field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
}

.login-card .field input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
}

.login-card .field input:focus {
  outline: none;
  border-color: var(--lime);
}

.login-error {
  color: #b00020;
  font-size: 14px;
  margin: 10px 0 0;
}

.login-tip {
  text-align: center;
  color: #999;
  font-size: 13px;
  margin: 18px 0 0;
}

.login-back {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  color: var(--navy);
}

/* 布局 */
.admin-shell {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 232px;
  background: var(--navy-dark);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-logo {
  height: 34px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

.admin-menu {
  flex: 1;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  color: #9fb3cc;
  border-radius: 8px;
  font-size: 14.5px;
  transition: all 0.2s ease;
}

.admin-menu a:hover,
.admin-menu a.router-link-active {
  background: var(--lime);
  color: #fff;
}

.admin-menu .mi {
  width: 22px;
  text-align: center;
}

.admin-sidebar-foot {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar-foot a {
  color: #7dd3fc;
  font-size: 13px;
}

.admin-main {
  flex: 1;
  margin-left: 232px;
  background: #f3f6fa;
  min-height: 100vh;
}

.admin-topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 28px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-topbar h2 {
  font-size: 18px;
  color: var(--navy);
  margin: 0;
  font-weight: 700;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #666;
  font-size: 14px;
}

.admin-content {
  padding: 28px;
}

/* 组件 */
.admin-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 26px;
  margin-bottom: 22px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.admin-panel h3 {
  margin: 0 0 16px;
  font-size: 17px;
  color: var(--navy);
  font-weight: 700;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.panel-head h3 {
  margin: 0;
}

.admin-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

.admin-stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.2s ease;
}

.admin-stat-card:hover {
  border-color: var(--lime);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.admin-stat-card .num {
  font-size: 36px;
  font-weight: 800;
  color: var(--navy);
}

.admin-stat-card .label {
  color: #888;
  font-size: 14px;
  margin-top: 6px;
}

.admin-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-form .field.full {
  grid-column: 1 / -1;
}

.admin-form label {
  display: block;
  font-size: 13px;
  color: #555;
  font-weight: 600;
  margin-bottom: 6px;
}

.admin-form input,
.admin-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
}

.admin-form input:focus,
.admin-form textarea:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(138, 207, 0, 0.12);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid #eef1f5;
  font-size: 14px;
  vertical-align: middle;
}

.admin-table th {
  background: #f8fafc;
  color: #555;
  font-weight: 600;
}

.admin-table tr:hover td {
  background: #fafcfd;
}

.nav-edit-item {
  border: 1px solid #eef1f5;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
  background: #fbfcfe;
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.nav-row input {
  padding: 9px 12px;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
}

.nav-row.child {
  margin-left: 26px;
}

.nav-children {
  margin-top: 8px;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #dde3ea;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  color: #555;
  font-size: 14px;
  flex-shrink: 0;
}

.icon-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.icon-btn.danger:hover {
  border-color: #dc2626;
  color: #dc2626;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  height: auto;
  border-radius: 8px;
}

.btn-outline {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: #fff;
}

.btn-ghost {
  background: #f1f4f8;
  color: #555;
}

.btn-ghost:hover {
  background: #e3e9f0;
  color: #333;
}

.btn-danger {
  background: #dc2626;
}

.btn-danger:hover {
  background: #b91c1c;
}

@media (max-width: 900px) {
  .admin-sidebar {
    width: 60px;
  }

  .admin-sidebar-brand span:last-child,
  .admin-menu a span:last-child {
    display: none;
  }

  .admin-main {
    margin-left: 60px;
  }

  .admin-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-form {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   列表页 / 详情页（新闻中心 · 产品中心 · 学术交流）
   ============================================================ */
.list-page {
  padding: 48px 0 80px;
}

.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.cat-tabs a {
  display: inline-block;
  padding: 9px 26px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--ink-soft);
  background: #f4f6f9;
  transition: all 0.25s ease;
}

.cat-tabs a:hover {
  background: #e9eef4;
  color: var(--navy);
}

.cat-tabs a.on {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
}

.cat-tabs a.on:hover {
  background: var(--navy);
  color: #fff;
}

.list-count {
  color: #99a3b0;
  font-size: 13px;
  margin-bottom: 20px;
}

.list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.list-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.list-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--lime);
}

.list-cover {
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #eef3f9, #dfe8f3);
}

.list-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.list-card:hover .list-cover img {
  transform: scale(1.06);
}

.list-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.list-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.list-meta .tag {
  display: inline-block;
  background: var(--lime);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 999px;
}

.list-meta .date {
  color: #9aa5b1;
  font-size: 13px;
}

.list-card h3 {
  font-size: 17.5px;
  color: var(--navy);
  margin: 0 0 10px;
  font-weight: 700;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.list-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.list-card .more {
  margin-top: auto;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
}

.list-card:hover .more {
  color: var(--lime);
}

.list-empty {
  text-align: center;
  color: #99a3b0;
  padding: 70px 0;
  font-size: 15px;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 46px;
}

.pager-btn {
  padding: 10px 26px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  font-size: 14px;
  color: var(--navy);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s ease;
}

.pager-btn:hover:not(:disabled) {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.pager-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pager-info {
  color: var(--muted);
  font-size: 14px;
}

/* 详情页 */
.detail-hero-title {
  font-size: 30px !important;
  line-height: 1.4;
  max-width: 1000px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  color: #8a95a3;
  font-size: 13.5px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}

.detail-meta .tag {
  background: var(--lime);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 999px;
}

.detail-cover {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 34px;
  box-shadow: var(--shadow);
}

.detail-cover img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 44px;
  align-items: start;
}

.detail-content {
  min-width: 0;
}

.detail-content h2 {
  font-size: 21px;
  color: var(--navy);
  margin: 30px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--lime);
  line-height: 1.4;
}

.detail-content h2:first-child {
  margin-top: 0;
}

.detail-content p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.95;
  text-align: justify;
}

.detail-content ul {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.detail-content ul li {
  position: relative;
  padding: 7px 0 7px 26px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.75;
}

.detail-content ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 16px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
}

.detail-aside .aside-box {
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 24px;
  margin-bottom: 20px;
}

.detail-aside .aside-box h4 {
  margin: 0 0 14px;
  font-size: 16px;
  color: var(--navy);
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--lime);
  display: inline-block;
}

.detail-aside .aside-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-aside .aside-box ul li {
  position: relative;
  padding: 6px 0 6px 18px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.detail-aside .aside-box ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
}

.detail-aside .aside-links a {
  color: var(--navy);
  font-size: 14px;
}

.detail-aside .aside-links a:hover {
  color: var(--lime);
}

.detail-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.detail-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: all 0.25s ease;
}

.detail-nav-item:hover {
  border-color: var(--lime);
  background: #fbfdf7;
}

.detail-nav-item.right {
  text-align: right;
  align-items: flex-end;
}

.detail-nav-item .lbl {
  font-size: 12.5px;
  color: #9aa5b1;
}

.detail-nav-item .ttl {
  font-size: 15px;
  color: var(--navy);
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.detail-nav-item.empty {
  opacity: 0.5;
  pointer-events: none;
}

.admin-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
}

.admin-select:focus {
  outline: none;
  border-color: var(--lime);
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1080px) {
  .main-nav {
    display: none;
  }

  .lang-toggle {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav.open {
    display: block;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .main-nav.open > ul {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 0;
  }

  .main-nav.open > ul > li > .nav-item-row > a {
    line-height: 3;
    padding: 0 24px;
  }

  .main-nav.open > ul > li > .nav-item-row > a::after {
    display: none;
  }

  .nav-item-row {
    justify-content: space-between;
  }

  .child-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 48px;
    margin-right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    transition: transform 0.3s ease;
  }

  .main-nav.open li.has-children.open .child-toggle {
    transform: rotate(180deg);
    color: var(--lime);
  }

  .main-nav.open li.has-children > ul {
    position: static;
    transform: none;
    box-shadow: none;
    display: none;
    padding: 0 0 0 20px;
  }

  .main-nav.open li.has-children.open > ul {
    display: block;
  }

  .main-nav.open li.has-children > ul li a {
    text-align: left;
    line-height: 2.4;
  }

  .ys .info {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 34px;
  }

  .ys .text h2 {
    font-size: 1.9rem;
  }

  .solution .info {
    width: 100%;
    padding-right: 0;
  }

  .solution .pic {
    position: static;
    width: 100%;
    margin-top: 40px;
  }

  .tech-box {
    flex-direction: column;
    gap: 44px;
  }

  .tech-box .info,
  .tech-box .pic {
    width: 100%;
  }

  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .list-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .page-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .footer-logo,
  .footer-nav {
    width: 100%;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 72px;
  }

  .container {
    padding: 0 22px;
  }

  .banner {
    height: 380px;
  }

  .brand-logo {
    height: 38px;
  }

  .banner .banner-text h1 {
    font-size: 2.3rem;
  }

  .index-title {
    font-size: 2.1rem;
  }

  .ys .info h2 {
    font-size: 1.8rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  .service-card {
    flex: 0 0 280px;
  }

  .cases-grid {
    grid-template-columns: 1fr;
  }

  .list-grid {
    grid-template-columns: 1fr;
  }

  .list-page {
    padding: 32px 0 56px;
  }

  .detail-hero-title {
    font-size: 22px !important;
  }

  .detail-nav {
    flex-direction: column;
  }

  .detail-nav-item.right {
    text-align: left;
    align-items: flex-start;
  }

  .content-card {
    padding: 28px 22px;
  }

  .org-branches {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-form {
    grid-template-columns: 1fr;
  }
}
