/* ============================================
   首页专属样式 - 帝国CMS模板
   仅首页独有的区块样式，公共样式在 css/common.css 中
   ============================================ */

/* --- Hero Banner --- */
.hero-banner {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  background:
    linear-gradient(118deg, #f5fcfd 0%, #d9f2f5 38%, #bce3e9 68%, #edf9fa 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .72);
  isolation: isolate;
  touch-action: pan-y;
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, .7), transparent 34%),
    radial-gradient(ellipse at 78% 20%, rgba(255, 255, 255, .62), transparent 42%),
    radial-gradient(ellipse at 18% 92%, rgba(69, 160, 181, .2), transparent 48%);
  pointer-events: none;
}

.hero-banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 130px;
  z-index: 5;
  background: linear-gradient(180deg, transparent, rgba(247, 249, 252, .96));
  pointer-events: none;
}

.hero-inner {
  width: min(1240px, calc(100% - 40px));
  min-height: 660px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  z-index: 4;
}

.hero-water-canvas {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.hero-glass-layer {
  position: absolute;
  top: 28px;
  bottom: 66px;
  left: 50%;
  width: min(1280px, calc(100% - 32px));
  z-index: 2;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 8px;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, .11) 58%, rgba(225, 246, 249, .16));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .86),
    inset 0 -1px 0 rgba(255, 255, 255, .32),
    0 24px 70px rgba(28, 91, 109, .13);
  backdrop-filter: blur(9px) saturate(128%);
  -webkit-backdrop-filter: blur(9px) saturate(128%);
  pointer-events: none;
}

.hero-copy {
  width: min(650px, 54%);
  padding: 22px 0 54px;
  position: relative;
  z-index: 3;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(50px, 3.9vw, 68px);
  line-height: 1.14;
  font-weight: 750;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-copy h1 span {
  display: block;
  white-space: nowrap;
}

.hero-copy p {
  margin: 28px 0 0;
  max-width: 600px;
  color: #4b6268;
  font-size: 17px;
  line-height: 1.95;
}

.hero-actions {
  margin-top: 38px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-art {
  position: absolute;
  right: 0;
  bottom: 18px;
  width: min(600px, 48vw);
  z-index: 1;
  border-radius: 0;
  opacity: .94;
  filter: drop-shadow(0 30px 54px rgba(31, 88, 101, .12));
  -webkit-mask-image: radial-gradient(ellipse 53% 68% at 52% 48%, #000 34%, rgba(0, 0, 0, .9) 48%, transparent 100%);
  mask-image: radial-gradient(ellipse 53% 68% at 52% 48%, #000 34%, rgba(0, 0, 0, .9) 48%, transparent 100%);
}

/* --- 数据统计条 --- */
.stats {
  width: min(var(--max), calc(100% - 40px));
  margin: -46px auto 8px;
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 28px;
  background: rgba(255, 255, 255, .62);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  position: relative;
  z-index: 5;
}

.stat {
  padding: 16px 22px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* --- 服务列表 --- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0;
  border-radius: 28px;
  background: none;
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.28fr);
  gap: 24px;
  align-items: stretch;
}

.section-media {
  position: relative;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 28px;
  background: rgba(255, 255, 255, .58);
  box-shadow: 0 20px 54px rgba(37, 37, 38, .1);
}

.section-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(180deg, transparent, rgba(146, 18, 65, .08));
  pointer-events: none;
}

.section-media img {
  width: 100%;
  height: 100%;
  min-height: 510px;
  display: block;
  object-fit: cover;
  transition: transform .65s cubic-bezier(.2, .7, .2, 1), filter .4s ease;
}

.section-media:hover img {
  transform: scale(1.035);
  filter: contrast(1.02);
}

.service {
  min-height: 162px;
  padding: 20px 18px;
  text-align: left;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .74);
  background: rgba(255, 255, 255, .48);
  box-shadow: 0 18px 46px rgba(31, 55, 91, .08);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: transform .22s ease, background .22s ease, box-shadow .22s ease;
}

.service:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, .68);
  border-color: rgba(146, 18, 65, .22);
  box-shadow: 0 24px 66px rgba(146, 18, 65, .12);
}

.service h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.38;
}

.service p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* --- 三列网格 --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* --- 视觉卡片 --- */
.visual-card {
  overflow: hidden;
}

.visual-card img {
  display: block;
  width: 100%;
  aspect-ratio: 14 / 9;
  object-fit: cover;
  background: #edf5ff;
  transition: transform .55s cubic-bezier(.2, .7, .2, 1);
}

.visual-card:hover img {
  transform: scale(1.045);
}

.visual-card div {
  padding: 24px 26px 28px;
}

.news-meta {
  display: block;
  margin-top: 14px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}

/* --- 解决方案卡片 --- */
.solution-card {
  padding: 0;
  overflow: hidden;
}

.solution-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}

.solution-card:hover img {
  transform: scale(1.05);
}

.solution-copy {
  position: relative;
  padding: 24px 26px 28px;
}

.solution-copy::after {
  content: "\2192";
  position: absolute;
  right: 26px;
  top: 24px;
  color: var(--brand);
  font-size: 22px;
  transition: transform .22s ease;
}

.solution-card:hover .solution-copy::after {
  transform: translateX(5px);
}

/* --- 案例布局 --- */
.case-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.case-layout .section-media img {
  min-height: 430px;
}

.case-list {
  display: grid;
  gap: 14px;
}

.case-list .card {
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 24px;
  align-items: center;
}

.case-list .card p {
  margin-top: 6px;
}

.result {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
  padding: 0 0 0 22px;
  border-top: 0;
  border-left: 1px solid var(--line);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.result span {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

#cases {
  position: relative;
}

#cases .section-head {
  max-width: 720px;
}

.case-carousel {
  --case-gap: 18px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: #080b12;
  box-shadow:
    0 34px 80px rgba(7, 12, 20, .24),
    inset 0 1px 0 rgba(255, 255, 255, .08);
  isolation: isolate;
}

.case-carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 25px, rgba(255, 255, 255, .025) 25px 26px),
    linear-gradient(110deg, rgba(28, 211, 197, .07), transparent 36%, rgba(196, 72, 120, .06));
  pointer-events: none;
}

.case-carousel__bar,
.case-carousel__footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.case-carousel__bar {
  min-height: 58px;
  padding: 8px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(6, 9, 15, .82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.case-carousel__label {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e7edf6;
}

.case-carousel__label svg {
  width: 24px;
  height: 24px;
  padding: 4px;
  border: 1px solid rgba(71, 214, 199, .28);
  border-radius: 4px;
  background: rgba(40, 202, 187, .08);
  fill: none;
  stroke: #54d8ca;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.case-carousel__label > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.case-carousel__label strong {
  overflow: hidden;
  font-family: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-carousel__label small {
  color: #677386;
  font-family: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
  font-size: 9px;
  line-height: 1.2;
}

.case-carousel__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.case-carousel__count {
  min-width: 70px;
  margin-right: 4px;
  color: #687487;
  font-size: 12px;
  font-family: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.case-carousel__count strong {
  color: #f2f6fb;
  font-size: 17px;
}

.case-carousel__count span {
  margin-left: 5px;
}

.case-carousel__button {
  appearance: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
  color: #dbe4ef;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}

.case-carousel__button:hover,
.case-carousel__button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(84, 216, 202, .46);
  background: rgba(84, 216, 202, .14);
  color: #63e1d3;
  outline: 0;
}

.case-carousel__button:disabled {
  opacity: .28;
  cursor: default;
  transform: none;
}

.case-carousel__button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.case-editor__code {
  position: relative;
  z-index: 1;
  height: 168px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  padding: 17px 22px 28px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .025) 0 42px, transparent 42px),
    rgba(5, 8, 13, .54);
}

.case-editor__code::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 54px;
  background: linear-gradient(180deg, transparent, #080b12);
  pointer-events: none;
}

.case-editor__numbers {
  display: grid;
  align-content: start;
  gap: 0;
  padding-top: 1px;
  color: #364253;
  font-family: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.65;
  text-align: right;
  user-select: none;
}

.case-editor__code pre {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #a9b7c6;
  font-family: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.case-editor__code code {
  color: #b7c3d4;
}

.case-editor__code .code-token--keyword {
  color: #d28bff;
}

.case-editor__code .code-token--string {
  color: #a7d978;
}

.case-editor__code .code-token--boolean {
  color: #69b7ff;
}

.case-editor__code .code-token--comment {
  color: #566478;
}

.case-editor__typed {
  width: 0;
  max-width: 22ch;
  display: inline-block;
  overflow: hidden;
  border-right: 1px solid #55decf;
  color: #a7d978;
  line-height: 1.25;
  vertical-align: -3px;
  white-space: nowrap;
  animation:
    case-editor-typing 6.2s steps(22, end) infinite,
    case-editor-cursor .8s steps(1) infinite;
}

.case-editor__meta {
  position: absolute;
  right: 16px;
  bottom: 8px;
  z-index: 2;
  display: flex;
  gap: 14px;
  color: #4e5c70;
  font-family: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
  font-size: 10px;
}

@keyframes case-editor-typing {
  0%,
  8% {
    width: 0;
  }

  42%,
  76% {
    width: 22ch;
  }

  94%,
  100% {
    width: 0;
  }
}

@keyframes case-editor-cursor {
  50% {
    border-color: transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-showcase {
    transition: none;
  }

  .case-editor__typed {
    width: 22ch;
    border-right: 0;
    animation: none;
  }
}

.case-carousel__viewport {
  position: relative;
  z-index: 2;
  overflow: hidden;
  margin: -28px 20px 0;
  padding: 28px 2px 28px;
}

.case-showcase {
  display: flex;
  gap: var(--case-gap);
  width: 100%;
  transform: translate3d(0, 0, 0);
  transition: transform .62s cubic-bezier(.22, .74, .2, 1);
  will-change: transform;
  touch-action: pan-y;
}

.case-showcase:focus-visible {
  outline: 1px solid rgba(84, 216, 202, .42);
  outline-offset: 5px;
}

.case-card {
  appearance: none;
  position: relative;
  flex: 0 0 auto;
  width: 300px;
  height: 430px;
  padding: 9px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .07) 52%, rgba(255, 255, 255, .11)),
    rgba(19, 27, 39, .46);
  box-shadow:
    0 22px 50px rgba(0, 0, 0, .34),
    inset 0 1px 0 rgba(255, 255, 255, .28),
    inset 0 -1px 0 rgba(255, 255, 255, .05);
  color: inherit;
  text-align: left;
  cursor: pointer;
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.case-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  background: linear-gradient(118deg, rgba(255, 255, 255, .18), transparent 24% 76%, rgba(84, 216, 202, .08));
  pointer-events: none;
}

.case-card:hover,
.case-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(84, 216, 202, .46);
  box-shadow:
    0 30px 62px rgba(0, 0, 0, .42),
    0 0 0 1px rgba(84, 216, 202, .12),
    inset 0 1px 0 rgba(255, 255, 255, .3);
  outline: 0;
}

.case-card__media {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 5px;
  background: rgba(235, 242, 248, .92);
}

.case-card__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: inherit;
  pointer-events: none;
}

.case-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  pointer-events: none;
  transition: transform .55s cubic-bezier(.2, .7, .2, 1), filter .3s ease;
}

.case-card--landscape .case-card__media img {
  padding: 18px 12px 142px;
  object-fit: contain;
  object-position: center top;
}

.case-card:hover .case-card__media img,
.case-card:focus-visible .case-card__media img {
  transform: scale(1.025);
  filter: saturate(1.04);
}

.case-card__body {
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 9px;
  z-index: 2;
  min-height: 150px;
  display: grid;
  align-content: end;
  gap: 7px;
  padding: 62px 17px 16px;
  border-radius: 0 0 5px 5px;
  background: linear-gradient(180deg, transparent, rgba(6, 11, 18, .96) 55%);
  color: #fff;
  pointer-events: none;
}

.case-card__tag {
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid rgba(111, 226, 214, .3);
  border-radius: 999px;
  background: rgba(13, 29, 34, .7);
  color: #7ae5d9;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.case-card__body strong {
  font-size: 18px;
  line-height: 1.35;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .28);
}

.case-card__body span:last-child {
  display: block;
  overflow: hidden;
  color: rgba(223, 232, 242, .72);
  font-size: 12px;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-carousel__footer {
  padding: 0 20px 16px;
  color: #59677a;
  font-size: 12px;
  font-family: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
}

.case-carousel__progress {
  width: min(360px, 48%);
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}

.case-carousel__progress span {
  width: 8.333%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #55decf, #cf5f8c);
  box-shadow: 0 0 16px rgba(85, 222, 207, .34);
  transition: width .45s ease;
}

.case-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  align-items: start;
  overflow-y: auto;
  padding: 72px 28px 36px;
  visibility: hidden;
  opacity: 0;
  background: rgba(3, 6, 11, .9);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  transition: opacity .22s ease, visibility .22s ease;
}

.case-lightbox.is-open {
  visibility: visible;
  opacity: 1;
}

.case-lightbox figure {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 14px;
  transform: translateY(12px) scale(.985);
  transition: transform .25s ease;
}

.case-lightbox.is-open figure {
  transform: translateY(0) scale(1);
}

.case-lightbox figure.is-portrait {
  width: min(680px, 100%);
}

.case-lightbox img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 34px 100px rgba(0, 0, 0, .52);
}

.case-lightbox figcaption {
  color: #dce5ef;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
}

.case-lightbox__close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 50%;
  background: rgba(12, 17, 25, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}

.case-lightbox__close:hover,
.case-lightbox__close:focus-visible {
  transform: rotate(6deg);
  background: #9e174b;
  outline: 0;
}

body.case-lightbox-open {
  overflow: hidden;
}

/* --- 服务客户 Logo 墙 --- */
.client-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

#clients {
  padding: 52px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, .78);
  background:
    linear-gradient(135deg, rgba(48, 48, 51, .9), rgba(94, 76, 88, .8) 48%, rgba(172, 92, 124, .68)),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, .2), transparent 34%);
  box-shadow: 0 20px 54px rgba(83, 50, 68, .16);
}

#clients .section-head h2 {
  color: #fff;
}

#clients .section-head p {
  color: rgba(255, 255, 255, .72);
}

.client-logo {
  min-height: 142px;
  display: grid;
  grid-template-rows: 72px auto;
  gap: 16px;
  place-items: center;
  padding: 24px 18px 22px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .12);
  box-shadow: 0 16px 40px rgba(48, 31, 42, .12);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  color: #fff;
  transition: transform .24s ease, background .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.client-logo:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, .36);
  background: rgba(255, 255, 255, .18);
  box-shadow: 0 22px 54px rgba(48, 31, 42, .16);
}

.client-logo span {
  align-self: end;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: rgba(255, 255, 255, .86);
  letter-spacing: 0;
  line-height: 1.45;
  transition: color .24s ease;
}

.client-logo img {
  max-width: 100%;
  max-height: 72px;
  object-fit: contain;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .1));
}

.client-logo--dark {
  background: rgba(255, 255, 255, .08);
}

.client-logo--icon img {
  max-height: 76px;
}

.client-logo:hover span {
  color: #fff;
}

/* --- 客户评价 --- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.testimonial {
  position: relative;
  min-height: 320px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 8px;
  background: rgba(255, 255, 255, .58);
  box-shadow: 0 18px 46px rgba(37, 51, 58, .09);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.testimonial::after {
  content: "“";
  position: absolute;
  right: 18px;
  bottom: -48px;
  color: rgba(20, 112, 132, .07);
  font-family: Georgia, serif;
  font-size: 150px;
  line-height: 1;
  pointer-events: none;
}

.testimonial:hover {
  transform: translateY(-4px);
  border-color: rgba(20, 112, 132, .2);
  box-shadow: 0 24px 56px rgba(37, 51, 58, .13);
}

.testimonial-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.testimonial-avatar {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(37, 51, 58, .12);
  color: #23454e;
  font-size: 16px;
  font-weight: 800;
}

.testimonial-avatar--marketing {
  background: #cee8ed;
}

.testimonial-avatar--app {
  background: #dce4f1;
  color: #344e72;
  font-size: 12px;
}

.testimonial-avatar--geo {
  background: #f0d8e0;
  color: #7a2343;
  font-size: 11px;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.testimonial-service {
  margin-left: auto;
  padding-left: 12px;
  border-left: 2px solid rgba(20, 112, 132, .18);
  color: #4b6268;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.stars {
  position: relative;
  z-index: 1;
  font-size: 16px;
  color: #f5a623;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.testimonial-text {
  position: relative;
  z-index: 1;
  flex: 1;
  margin: 0;
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--ink);
}

.testimonial-author {
  min-width: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.testimonial-author span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

/* --- 友情链接 --- */
.footer_yl {
  width: min(var(--max), calc(100% - 40px));
  margin: 24px auto 0;
  padding: 22px 0;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  border-top: 1px solid var(--line);
}

.footer_yl_l {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.footer_yl_r {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.footer_yl_r a {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  transition: color .2s ease;
}

.footer_yl_r a:hover {
  color: var(--brand);
}

.empty-note {
  width: 100%;
  padding: 22px 24px;
  border: 1px dashed rgba(37, 37, 38, .24);
  border-radius: 18px;
  background: rgba(255, 255, 255, .46);
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

/* --- 响应式：平板 --- */
@media (max-width: 980px) {
  .hero-banner,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    display: block;
    padding: 64px 0 72px;
  }

  .hero-glass-layer {
    top: 22px;
    bottom: 58px;
  }

  .hero-copy {
    width: 100%;
    max-width: 650px;
    padding-bottom: 20px;
  }

  .hero-art {
    position: relative;
    right: auto;
    bottom: auto;
    display: block;
    width: min(100%, 560px);
    margin: 10px auto -50px;
  }

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

  .stat:nth-child(2) {
    border-right: 0;
  }

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

  .service-layout,
  .case-layout {
    grid-template-columns: 1fr;
  }

  .section-media img,
  .case-layout .section-media img {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

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

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

  .review-grid .testimonial:last-child {
    grid-column: 1 / -1;
    min-height: 260px;
  }

  .case-showcase {
    gap: var(--case-gap);
  }

  .case-carousel {
    --case-gap: 16px;
  }

  .case-editor__code {
    height: 150px;
  }

  .case-card {
    height: 420px;
  }

  .client-wall {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --- 响应式：手机 --- */
@media (max-width: 640px) {
  .hero-banner {
    min-height: 540px;
  }

  .hero-inner {
    width: min(100% - 28px, var(--max));
    min-height: 540px;
    display: flex;
    align-items: center;
    padding: 46px 8px 84px;
  }

  .hero-copy h1 {
    font-size: 39px;
    line-height: 1.16;
  }

  .hero-copy {
    max-width: none;
    padding: 0;
  }

  .hero-copy p {
    font-size: 16px;
    line-height: 1.8;
  }

  .hero-actions {
    margin-top: 30px;
  }

  .hero-art {
    display: none;
  }

  .hero-glass-layer {
    top: 14px;
    bottom: 58px;
    width: calc(100% - 20px);
    background: linear-gradient(145deg, rgba(255, 255, 255, .38), rgba(255, 255, 255, .15));
    backdrop-filter: blur(8px) saturate(125%);
    -webkit-backdrop-filter: blur(8px) saturate(125%);
  }

  .stats {
    width: min(100% - 28px, var(--max));
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat:last-child {
    border-bottom: 0;
  }

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

  .service {
    min-height: auto;
  }

  .service-layout {
    gap: 18px;
  }

  .section-media {
    border-radius: 22px;
  }

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

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

  .review-grid .testimonial:last-child {
    grid-column: auto;
  }

  .testimonial {
    min-height: 0;
    padding: 22px;
  }

  .testimonial-service {
    display: none;
  }

  .case-showcase {
    gap: var(--case-gap);
  }

  .case-carousel {
    --case-gap: 12px;
  }

  .case-carousel__bar {
    min-height: 54px;
    padding: 7px 12px;
  }

  .case-carousel__label {
    gap: 8px;
  }

  .case-carousel__label svg {
    width: 22px;
    height: 22px;
  }

  .case-carousel__label strong {
    max-width: 118px;
    font-size: 11px;
  }

  .case-carousel__label small {
    display: none;
  }

  .case-carousel__count {
    min-width: 52px;
    margin-right: 0;
  }

  .case-carousel__button {
    width: 34px;
    height: 34px;
  }

  .case-editor__code {
    height: 126px;
    grid-template-columns: 30px minmax(0, 1fr);
    padding: 13px 12px 24px 8px;
    background:
      linear-gradient(90deg, rgba(255, 255, 255, .025) 0 30px, transparent 30px),
      rgba(5, 8, 13, .54);
  }

  .case-editor__numbers,
  .case-editor__code pre {
    font-size: 10px;
    line-height: 1.58;
  }

  .case-editor__meta {
    right: 10px;
    gap: 9px;
    font-size: 8px;
  }

  .case-editor__meta span:last-child {
    display: none;
  }

  .case-carousel__viewport {
    margin: -22px 11px 0;
    padding: 22px 2px 24px;
  }

  .case-carousel__footer > span {
    display: none;
  }

  .case-carousel__footer {
    padding: 0 12px 14px;
  }

  .case-carousel__progress {
    width: 100%;
  }

  .case-card {
    height: 410px;
  }

  .case-card--landscape .case-card__media img {
    padding: 18px 10px 138px;
  }

  .case-lightbox {
    padding: 66px 12px 24px;
  }

  .case-lightbox img {
    border-radius: 6px;
  }

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

  #clients {
    padding: 30px 18px;
    border-radius: 24px;
  }

  .client-logo {
    min-height: 128px;
    padding: 20px 14px;
  }

  .footer_yl {
    margin-top: 14px;
    padding: 18px 0;
    display: block;
  }

  .footer_yl_l {
    margin-bottom: 8px;
  }

  .footer_yl_r {
    gap: 5px 14px;
  }

  .footer_yl_r a {
    font-size: 13px;
  }

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