@charset "utf-8";
/* ==========================================================================
   应用场景 / Application Scenarios  （category-68）
   依赖：Bootstrap 4 · Swiper 11
   图片目录：images/application/   命名规则见 data/applications.json 的 img 字段
   ========================================================================== */

.apps-sec,
.appcase {
  --navy: #0e1c33;
  --navy-2: #16294a;
  --red: #d40000;
  --ink: #1b2230;
  --gray: #6b7280;
  --line: #e6e8ec;
}

.apps-sec {
  position: relative;
  padding: 70px 0 40px;
  background: #fff;
  font-family: 'Open Sans', "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  color: var(--ink);
  overflow: hidden;
}

.apps-sec *,
.apps-sec *::before,
.apps-sec *::after { box-sizing: border-box; }

/* ---------------- 区块标题 ---------------- */
.apps-intro {  margin: 0 0 56px; }
.apps-intro__kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--red);
  padding-left: 34px;
  position: relative;
  margin-bottom: 14px;
}
.apps-intro__kicker::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 24px; height: 2px;
  background: var(--red);
}
.apps-intro h2 {
  font-size: 40px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .01em;
  margin: 0 0 16px;
  color: var(--navy);
}
.apps-intro p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--gray);
  margin: 0;
}

/* ---------------- 分组标题 ---------------- */
.apps-group { padding-top: 26px; }
.apps-group + .apps-group {
  margin-top: 64px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}

.apps-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-bottom: 26px;
}
.apps-head__l { display: flex; align-items: center; gap: 18px; }
.apps-head__num {
  font-size: 54px;
  line-height: .9;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.5px #c8ccd6;
  letter-spacing: -.02em;
  font-family: 'Open Sans', sans-serif;
}
.apps-head h3 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 14px;
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
}
.apps-head h3 em {
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #98a1b1;
}
.apps-head__lead {
  font-size: 13px;
  color: var(--gray);
  margin: 6px 0 0;
  letter-spacing: .02em;
}
.apps-head__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.apps-head__tags li {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  background: #f3f5f9;
  border: 1px solid #e7eaf0;
  padding: 7px 14px;
  border-radius: 2px;
  letter-spacing: .02em;
}

/* ---------------- 拼图网格 ---------------- */
.apps-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.apps-mosaic--5 {
  grid-template-rows: repeat(2, 252px);
  grid-template-areas:
    "a a a a b b b b c c c c"
    "a a a a d d d d e e e e";
}
.apps-mosaic--6 {
  /* 左 1 大块（占 2 行）+ 右侧 5 块（上 3 / 下 2） */
  grid-template-columns: repeat(24, 1fr);
  grid-template-rows: repeat(2, 252px);
  grid-template-areas:
    "a a a a a a b b b b b b c c c c c c d d d d d d"
    "a a a a a a e e e e e e e e e f f f f f f f f f";
}
.apps-mosaic--5 > :nth-child(1),
.apps-mosaic--6 > :nth-child(1) { grid-area: a; }
.apps-mosaic--5 > :nth-child(2),
.apps-mosaic--6 > :nth-child(2) { grid-area: b; }
.apps-mosaic--5 > :nth-child(3),
.apps-mosaic--6 > :nth-child(3) { grid-area: c; }
.apps-mosaic--5 > :nth-child(4),
.apps-mosaic--6 > :nth-child(4) { grid-area: d; }
.apps-mosaic--5 > :nth-child(5),
.apps-mosaic--6 > :nth-child(5) { grid-area: e; }
.apps-mosaic--6 > :nth-child(6) { grid-area: f; }

/* 卡片 */
.apps-tile {
  position: relative;
  display: block;
  overflow: hidden;
  background-color: #10151d;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  text-decoration: none !important;
  color: #fff;
  isolation: isolate;
  transition: box-shadow .35s ease, transform .35s ease;
}
.apps-tile::before {
  /* 底色统一压暗，保证文字可读 */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9,14,22,0) 28%, rgba(9,14,22,.55) 62%, rgba(9,14,22,.92) 100%);
  z-index: 1;
  transition: background .45s ease;
}
.apps-tile::after {
  /* hover 时的品牌红罩 */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,28,51,0) 0%, rgba(14,28,51,.55) 55%, rgba(120,6,6,.72) 100%);
  opacity: 0;
  z-index: 1;
  transition: opacity .45s ease;
}
.apps-tile__bg {
  position: absolute;
  inset: 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.001);
  transition: transform .8s cubic-bezier(.2,.7,.3,1), filter .6s ease;
  z-index: 0;
}
/* 无实拍图：统一的设计感占位面板 */
.apps-tile__bg.is-ph {
  background:
    radial-gradient(92% 78% at 12% 0%, rgba(44,74,120,.9) 0%, rgba(23,44,74,0) 62%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.032) 0 1px, rgba(255,255,255,0) 1px 10px),
    linear-gradient(155deg, #1c2c48 0%, #0e1c33 54%, #0a1220 100%);
}
.apps-tile__bg.is-ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 62px 62px;
  -webkit-mask-image: radial-gradient(circle at 28% 6%, #000 0%, rgba(0,0,0,.35) 48%, transparent 78%);
  mask-image: radial-gradient(circle at 28% 6%, #000 0%, rgba(0,0,0,.35) 48%, transparent 78%);
}
.apps-tile__bg.is-photo { filter: saturate(.88) brightness(.92); }

/* 占位面板里的巨大描边编号 */
.apps-tile__ghost {
  position: absolute;
  right: 14px;
  top: 0;
  z-index: 1;
  font-size: 92px;
  line-height: 1;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.16);
  letter-spacing: -.05em;
  pointer-events: none;
  transition: opacity .4s ease, -webkit-text-stroke-color .4s ease;
  font-family: 'Open Sans', sans-serif;
}
.apps-mosaic > .apps-tile:first-child .apps-tile__ghost { font-size: 132px; right: 18px; top: -6px; }
.apps-tile:hover .apps-tile__ghost { -webkit-text-stroke-color: rgba(255,255,255,.3); }

/* 文字层 */
.apps-tile__body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 22px 24px 22px;
  display: block;
}
.apps-tile__idx {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  color: rgba(255,255,255,.55);
  margin-bottom: 8px;
}
.apps-tile__name {
  display: block;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  letter-spacing: .01em;
  transition: transform .4s cubic-bezier(.2,.7,.3,1);
}
.apps-tile__name em {
  display: block;
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
  margin-top: 6px;
  transition: opacity .3s ease;
}
.apps-tile__desc {
  display: block;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,.86);
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(10px);
  transition: max-height .5s cubic-bezier(.2,.7,.3,1), opacity .35s ease .06s, transform .45s cubic-bezier(.2,.7,.3,1), margin .4s ease;
}
.apps-tile__line {
  display: block;
  width: 0;
  height: 2px;
  background: var(--red);
  margin-top: 10px;
  transition: width .45s cubic-bezier(.2,.7,.3,1), background .3s ease;
}

/* 首个（大）卡片 */
.apps-mosaic > .apps-tile:first-child .apps-tile__name { font-size: 24px; }
.apps-mosaic > .apps-tile:first-child .apps-tile__body { padding: 28px 28px 28px; }

/* hover / 展开 */
.apps-tile:hover,
.apps-tile:focus,
.apps-tile.is-open { text-decoration: none; color: #fff; }
.apps-tile:hover::after,
.apps-tile.is-open::after { opacity: 1; }
.apps-tile:hover .apps-tile__bg,
.apps-tile.is-open .apps-tile__bg { transform: scale(1.07); }
.apps-tile:hover .apps-tile__bg.is-ph,
.apps-tile.is-open .apps-tile__bg.is-ph { filter: brightness(1.22) saturate(1.08); }
.apps-tile:hover .apps-tile__name,
.apps-tile.is-open .apps-tile__name { transform: translateY(-2px); }
.apps-tile:hover .apps-tile__name em,
.apps-tile.is-open .apps-tile__name em { opacity: .85; }
.apps-tile:hover .apps-tile__desc,
.apps-tile.is-open .apps-tile__desc {
  max-height: 150px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 12px;
}
.apps-tile:hover .apps-tile__line,
.apps-tile.is-open .apps-tile__line { width: 46px; }
.apps-tile:hover { box-shadow: 0 18px 40px -18px rgba(14,28,51,.55); }

/* 键盘可达性 */
.apps-tile:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }

/* ---------------- 应用案例 Swiper ---------------- */
.appcase {
  margin-top: 74px;
  padding: 58px 0 64px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.appcase::before {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 420px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 50%;
  pointer-events: none;
}
.appcase .container { position: relative; z-index: 2; }
.appcase__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.appcase__head h2 {
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.3;
}
.appcase__head h2 em {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  color: rgba(255,255,255,.45);
  display: block;
  margin-top: 8px;
}
.appcase__head p {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  margin: 0;
}

.appcase-swiper { overflow: hidden; padding-bottom: 4px; }
.appcase-card {
  display: block;
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #0a1220;
  aspect-ratio: 4 / 3;
}
.appcase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s cubic-bezier(.2,.7,.3,1), filter .5s ease;
  filter: saturate(.9);
}
.appcase-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,14,24,0) 45%, rgba(8,14,24,.88) 100%);
  pointer-events: none;
}
.appcase-card:hover img { transform: scale(1.06); filter: saturate(1.05); }
.appcase-card figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 20px 22px;
}
.appcase-card figcaption h4 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.4;
}
.appcase-card figcaption span {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
}
.appcase-card figcaption span i {
  font-style: normal;
  color: var(--red);
  font-weight: 700;
  margin-right: 8px;
}

/* 控制条 */
.appcase__ctrl {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}
.appcase__btn {
  width: 46px; height: 46px;
  border: 1px solid rgba(255,255,255,.22);
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: .3s;
  border-radius: 0;
  padding: 0;
}
.appcase__btn:hover { background: var(--red); border-color: var(--red); }
.appcase__btn.swiper-button-disabled { opacity: .3; cursor: default; }
.appcase__btn.swiper-button-disabled:hover { background: transparent; border-color: rgba(255,255,255,.22); }
.appcase__btn svg { width: 18px; height: 18px; }
.appcase__pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.appcase__pagination .swiper-pagination-bullet {
  width: 26px; height: 4px;
  border-radius: 0;
  background: rgba(255,255,255,.4);
  opacity: 1;
  margin: 0 !important;
  transition: .3s;
}
.appcase__pagination .swiper-pagination-bullet-active { background: var(--red); width: 40px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1199px) {
  .apps-intro h2 { font-size: 34px; }
  .apps-mosaic--5 { grid-template-rows: repeat(2, 224px); }
  .apps-mosaic--6 { grid-template-rows: repeat(2, 224px); }
  .apps-tile__name { font-size: 18px; }
  .apps-mosaic > .apps-tile:first-child .apps-tile__name { font-size: 21px; }
}

@media (max-width: 991px) {
  .apps-sec { padding: 52px 0 30px; }
  .apps-mosaic,
  .apps-mosaic--5,
  .apps-mosaic--6 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
    grid-template-areas: none;
    gap: 12px;
  }
  .apps-mosaic > .apps-tile {
    grid-area: auto !important;
    min-height: 210px;
  }
  .apps-mosaic > .apps-tile:first-child {
    grid-column: span 2 !important;
    min-height: 300px;
  }
  .apps-mosaic--6 > .apps-tile:nth-child(6) { grid-column: span 2 !important; min-height: 190px; }
  .apps-head__num { font-size: 42px; }
  .apps-head h3 { font-size: 25px; }
  .apps-group + .apps-group { margin-top: 44px; padding-top: 38px; }
  .appcase { margin-top: 52px; padding: 44px 0 48px; }

  /* 触摸设备：文字常显一半，点击展开 */
  .apps-tile__desc { max-height: 0; }
}

@media (max-width: 575px) {
  .apps-intro h2 { font-size: 27px; }
  .apps-intro p { font-size: 14px; }
  .apps-mosaic,
  .apps-mosaic--5,
  .apps-mosaic--6 { grid-template-columns: 1fr; }
  .apps-mosaic > .apps-tile,
  .apps-mosaic > .apps-tile:first-child,
  .apps-mosaic--6 > .apps-tile:nth-child(6) {
    grid-column: auto !important;
    min-height: 220px;
  }
  .apps-head { align-items: flex-start; }
  .apps-head__num { display: none; }
  .apps-head h3 { font-size: 22px; }
  .apps-head__tags li { font-size: 12px; padding: 6px 11px; }
  .apps-tile__body { padding: 18px 18px 18px; }
  .apps-tile__name,
  .apps-mosaic > .apps-tile:first-child .apps-tile__name { font-size: 18px; }
  .appcase__head h2 { font-size: 24px; }
}
