﻿.device-page {
  background: #fff;
}

.device-banner {
  position: relative;
  height: 330px;
  background: url('../首页.png') center top / cover no-repeat;
}

.device-banner::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(255, 255, 255, .05);
}

.device-dots {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 28px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.device-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
}

.device-crumb {
  padding: 42px 0 18px;
}

.device-crumb-inner {
  display: grid;
  grid-template-columns: 168px 1fr;
  align-items: end;
  gap: 38px;
}

.device-crumb-title {
  position: relative;
  width: 168px;
  height: 70px;
  padding: 18px 0 0 22px;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  background: var(--primary-blue);
  border-radius: 0 0 22px 0;
}

.device-crumb-title::after {
  position: absolute;
  left: 22px;
  bottom: 22px;
  width: 42px;
  height: 3px;
  content: "";
  background: #fff;
}

.device-crumb-links {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  min-height: 42px;
  padding-top: 18px;
  border-bottom: 2px solid #2f6db6;
}

.device-crumb-links a {
  height: 30px;
  padding: 4px 14px 0;
  color: #333;
  font-size: 16px;
  line-height: 26px;
}

.device-crumb-links a.active,
.device-crumb-links a:hover {
  color: #fff;
  background: var(--primary-blue);
}

.device-position {
  margin-top: 6px;
  color: #315d93;
  font-size: 12px;
}

.device-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 34px;
  color: var(--primary-blue);
}

.device-title img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.device-title h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 4px;
}

.device-all-section {
  padding: 12px 0 92px;
}

.device-feature-card,
.device-story-card {
  display: grid;
  grid-template-columns: 1fr 520px;
  min-height: 214px;
  margin: 0 auto 34px;
  border: 1px solid #e4e4e4;
  background: #fff;
}

.device-feature-card {
  max-width: 100%;
}

.device-feature-card > div,
.device-story-card > div {
  padding: 28px 34px;
}

.device-feature-card h2,
.device-story-card h3 {
  margin: 0 0 14px;
  color: var(--primary-blue);
  font-size: 18px;
}

.device-feature-card p,
.device-story-card p {
  margin: 0;
  color: #333;
  font-size: 14px;
  line-height: 1.9;
}

.device-story-list {
  max-width: 1500px;
  margin: 0 auto;
}

.device-story-card {
  grid-template-columns: 520px 1fr;
  min-height: 190px;
  margin-bottom: 26px;
  transition: box-shadow .2s ease, transform .2s ease;
}

.device-story-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 73, 154, .18);
}

.device-story-card.reverse {
  grid-template-columns: 1fr 520px;
}

.device-story-card.reverse .device-photo {
  order: 2;
}

.device-photo,
.device-detail-photo {
  display: block;
  min-height: 100%;
  background-color: #eef5fb;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.therapy-room {
  background-image: linear-gradient(135deg, rgba(0, 73, 154, .18), rgba(255, 255, 255, .18)), url('../医疗设备/设备介绍.png');
}

.bed {
  background-image: linear-gradient(135deg, #dceefb, #fff 45%, #b8d8ef);
}

.robot {
  background-image: linear-gradient(135deg, #f7f7f7, #d7e8f6 50%, #f4fbff);
}

.monitor {
  background-image: linear-gradient(135deg, #263845 0 38%, #e7eef5 39% 100%);
}

.gait {
  background-image: linear-gradient(135deg, #eff7ff, #fff 42%, #cbe1ef 43% 58%, #fff 59%);
}

.laser {
  background-image: linear-gradient(135deg, #e8eef4, #fff 45%, #b5d2ee);
}

.traction {
  background-image: linear-gradient(135deg, #f6f6f6, #d9e9f8 48%, #fff 49%);
}

.ward {
  background-image: linear-gradient(135deg, #eaf5fb 0 50%, #0a4b9c 51% 65%, #fff 66%);
}

.workstation {
  background-image: linear-gradient(135deg, #e8f1fb, #fff 40%, #bedcf3);
}

.device-list-section {
  padding: 12px 0 150px;
}

.device-list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px 52px;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
}

.device-list-grid a {
  display: flex;
  align-items: center;
  height: 42px;
  padding: 0 16px;
  color: #333;
  font-size: 15px;
  border: 1px solid #e1e1e1;
  background: #fff;
  transition: color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.device-list-grid a:hover {
  color: var(--primary-blue);
  border-color: var(--primary-blue);
  box-shadow: 0 4px 12px rgba(0, 73, 154, .12);
}

.device-list-grid img {
  display: block;
  width: 16px;
  height: 16px;
  margin-right: 12px;
  object-fit: contain;
}

.device-detail-section {
  padding: 6px 0 150px;
}

.device-detail {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
}

.device-detail h1 {
  margin: 0 0 34px;
  color: #222;
  font-size: 28px;
  text-align: center;
}

.device-detail-photo {
  height: 300px;
  margin-bottom: 26px;
  background-image: linear-gradient(135deg, rgba(0, 73, 154, .12), rgba(255, 255, 255, .18)), url('../医疗设备/设备介绍2.png');
}

.device-detail p {
  margin: 0 0 14px;
  color: #222;
  font-size: 15px;
  line-height: 2;
}

.device-page .site-footer {
  margin-top: 0;
}

/* 形式分页：第 1 页列表 / 第 2–4 页宫格 */
.device-panels {
  max-width: 1500px;
  margin: 0 auto;
}

.device-panel[hidden] {
  display: none !important;
}

.device-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 46px 58px;
}

.device-gallery-item {
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.device-gallery-item span {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #e8f6ff;
  border: 1px solid #edf1f4;
}

.device-gallery-item span img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.device-gallery-item p {
  display: inline-block;
  min-width: 140px;
  max-width: calc(100% - 24px);
  margin: -14px 0 0;
  padding: 10px 22px;
  color: #444;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  background: #fff;
  border: 1px solid #eee;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 56px;
}

.device-pager button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #c5d4e8;
  border-radius: 4px;
  color: #00499a;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
  background: #fff;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.device-pager button:hover,
.device-pager button.is-active {
  color: #fff;
  border-color: #00499a;
  background: #00499a;
}

@media (max-width: 900px) {
  .device-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 20px;
  }
}

@media (max-width: 560px) {
  .device-gallery-grid {
    grid-template-columns: 1fr;
  }
}
