/* 页脚四栏：品牌 / 更多栏目 / 联系方式 / 友情链接 */
.footer-grid {
  grid-template-columns: 1.1fr 1.3fr 1fr 1.2fr;
}

/* 案例卡片 hover：图片右移换图 + 图标滑入 + 标题从上方滑下 */
.case-cover {
  position: relative;
  overflow: hidden;
  padding-bottom: 70%;
}

.case-cover-slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: transform 0.5s;
}

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

.case-cover-img-alt {
  position: absolute;
  top: 0;
  left: -100%;
  height: 100%;
}

.case-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(11, 33, 54, 0.45);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.case-cover-icon {
  position: absolute;
  top: 50%;
  left: 100%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  color: var(--white);
  transform: translateX(0);
  transition: left 0.5s, transform 0.5s;
}

.case-cover-overlay {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 3;
  display: block;
  width: 100%;
  padding: 0 18px;
  text-align: center;
  transition: top 0.5s;
}

.case-cover-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.case-cover-url {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: var(--white);
  word-break: break-all;
}

.case-card:hover .case-cover-slide {
  transform: translateX(100%);
}

.case-card:hover .case-cover::after {
  opacity: 1;
}

.case-card:hover .case-cover-icon {
  left: 50%;
  transform: translateX(-50%);
}

.case-card:hover .case-cover-overlay {
  top: 22%;
}

.case-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.case-actions-single {
  grid-template-columns: 1fr;
}

.case-actions button {
  padding: 7px 4px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.case-actions button:hover {
  border-color: var(--blue);
  background: rgba(10, 111, 192, 0.08);
  color: var(--blue);
}

.case-qr {
  position: relative;
}

.case-qr > button {
  width: 100%;
}

.case-qr:last-child .case-qr-popover {
  left: auto;
  right: 0;
}

.case-qr-popover {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  z-index: 20;
  display: block;
  width: 154px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(11, 33, 54, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}

.case-qr-popover img {
  display: block;
  width: 100%;
  height: auto;
}

.case-qr:hover .case-qr-popover,
.case-qr:focus-within .case-qr-popover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 步骤指示器分页 */
.steps-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 44px;
}

.steps-nav {
  flex: none;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  font-size: 14px;
  color: var(--text);
  transition: border-color 0.2s, color 0.2s;
}

.steps-nav:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.steps-nav.is-disabled {
  border-color: var(--line);
  background: var(--bg);
  color: #b8c4d0;
}

.steps {
  display: flex;
  align-items: center;
}

.step {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.step::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cbd8e6;
  transition: background 0.2s, width 0.2s, height 0.2s, border-radius 0.2s;
}

.step + .step {
  margin-left: 34px;
}

.step + .step::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -34px;
  width: 34px;
  height: 2px;
  transform: translateY(-50%);
  background: var(--line);
}

.step a {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.step:hover::after {
  background: var(--orange);
}

.step.is-active::after {
  width: 20px;
  height: 12px;
  border-radius: 999px;
  background: var(--orange);
}

.step.is-gap {
  width: 20px;
}

.step.is-gap::after {
  display: none;
}

.step.is-gap span {
  color: var(--muted);
}

/* 标题列表 */
.article-list {
  border-top: 1px solid var(--line);
}

.article-list-item {
  border-bottom: 1px solid var(--line);
}

.article-list-item a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 12px 16px 24px;
  transition: background 0.2s;
}

.article-list-item a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 6px;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--blue);
}

.article-list-item a:hover {
  background: var(--bg);
}

.article-list-title {
  font-size: 16px;
  color: var(--navy);
  transition: color 0.2s;
}

.article-list-item a:hover .article-list-title {
  color: var(--blue);
}

.article-list-item time {
  flex: none;
  font-size: 13px;
  color: var(--muted);
}

/* 文章详情 */
.article-detail {
  max-width: 860px;
}

.article-detail h1 {
  font-size: 30px;
  line-height: 1.4;
  color: var(--navy);
}

.article-meta {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.article-content {
  margin-top: 26px;
}

.article-content p {
  margin-bottom: 18px;
  font-size: 16px;
  line-height: 1.9;
}

.article-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.article-nav-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.article-nav-item span {
  font-size: 13px;
  color: var(--muted);
}

.article-nav-item strong {
  font-size: 15px;
  color: var(--navy);
}

a.article-nav-item:hover {
  border-color: var(--blue);
}

a.article-nav-item:hover strong {
  color: var(--blue);
}

.article-nav-item.is-empty strong {
  font-weight: 400;
  color: #b8c4d0;
}

.article-back {
  margin-top: 30px;
  text-align: center;
}

/* 关于我们 */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-copy h2 {
  font-size: 28px;
  line-height: 1.4;
  color: var(--navy);
}

.about-copy p {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
}

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

.about-stats div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.about-stats strong {
  display: block;
  font-size: 26px;
  color: var(--blue);
}

.about-stats span {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}

.about-stats em {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-style: normal;
  color: var(--muted);
}

.about-services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.about-service {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.about-service h3 {
  font-size: 17px;
  color: var(--navy);
}

.about-service ul {
  margin-top: 12px;
}

.about-service li {
  padding: 5px 0;
  font-size: 14px;
}

.about-service a:hover {
  color: var(--blue);
}

/* 联系我们 */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-cards {
  display: grid;
  gap: 18px;
}

.contact-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.contact-card span {
  font-size: 13px;
  color: var(--muted);
}

.contact-card strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
  color: var(--navy);
  word-break: break-all;
}

.contact-card p {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.contact-note h2 {
  font-size: 26px;
  color: var(--navy);
}

.contact-note p {
  margin-top: 14px;
  color: var(--muted);
}

.contact-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.contact-points li {
  padding: 12px 16px;
  border-radius: 6px;
  background: var(--bg);
  font-size: 14px;
}

@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .about-services,
  .about-stats,
  .contact-points {
    grid-template-columns: 1fr;
  }

  .article-nav {
    grid-template-columns: 1fr;
  }

  .article-detail h1 {
    font-size: 24px;
  }

  .article-list-item a {
    align-items: flex-start;
    gap: 10px;
    padding: 14px 8px 14px 22px;
  }

  .article-list-title {
    font-size: 15px;
  }

  .article-list-item time {
    font-size: 12px;
    padding-top: 2px;
  }

  .steps-pager {
    justify-content: flex-start;
    gap: 10px;
    padding-bottom: 6px;
    overflow-x: auto;
  }

  .steps-nav {
    padding: 6px 12px;
    font-size: 13px;
  }

  .step {
    width: 28px;
    height: 28px;
  }

  .step::after {
    width: 10px;
    height: 10px;
  }

  .step.is-active::after {
    width: 18px;
    height: 10px;
  }

  .step + .step {
    margin-left: 26px;
  }

  .step + .step::before {
    left: -26px;
    width: 26px;
  }
}
