/* ========== Deploy Process ========== */
.res-deploy {
  margin-top: var(--header-height);
  padding: 72px 0 80px;
  /* background: linear-gradient(180deg, #031530 2%, #093C8A 25%, #094296 40%,#fff 65%); */
  background: url(../img/ind6-bg.png) no-repeat right center / auto 50%, 
  linear-gradient(180deg, #031530 6%, #2C23AF 25%, #729FFF 50%, #fff 100%) no-repeat center / 100% 100%;
  position: relative;
  background-blend-mode: screen; /* multiply / screen 等模式自选 */
  overflow: hidden;
}

.res-deploy::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #0066FF;
}

.res-deploy-head {
  /* max-width: 720px; */
  margin-bottom: 56px;
}

.res-deploy-head h1 {
  font-size: var(--big-font-size);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.3;
}

.res-deploy-head p {
  font-size: var(--mid-font-size-sub);
  color: rgba(255,255,255,0.78);
  line-height: 1.75;
  max-width: 52%;
}

.res-deploy-body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 16px rgba(16, 24, 40, 0.08);
}

.res-deploy-panel {
  background: #fff;
  overflow: hidden;
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 360px;
}

.res-deploy-tabs {
  background: #F3F6FB;
  display: flex;
  flex-direction: column;
}

.res-deploy-tab {
  appearance: none;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 25px 14px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-light);
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all 0.25s ease;
}

.res-deploy-tab img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
  /* opacity: 0.55; */
  transition: opacity 0.25s ease;
}

.res-deploy-tab:hover {
  color: var(--color-text);
}

.res-deploy-tab:hover img {
  opacity: 0.85;
}

.res-deploy-tab.active {
  background: #fff;
  color: var(--color-primary);
  font-weight: 600;
}

.res-deploy-tab.active img {
  opacity: 1;
}

.res-deploy-content {
  padding:  32px;
}

.res-deploy-pane {
  display: none;
}

.res-deploy-pane.active {
  display: block;
}

.res-deploy-pane h3 {
  font-size: 30px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 24px;
}

.res-deploy-pane ul {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.res-deploy-pane li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  position: relative;
  padding-left: 28px;
}

.res-deploy-pane li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: 11px;
  background-repeat: no-repeat;
  background-position: center;
}
.res-deploy-panel .cta-btn{
  margin-top: 24px;
}
.res-point-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.res-point-desc {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.65;
}

.res-deploy-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.res-deploy-btn span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  font-size: 12px;
}

.res-deploy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,102,255,0.35);
}

.res-deploy-image {
  overflow: hidden;
  /* min-height: 340px; */
}

.res-deploy-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== Product Manual ========== */
.res-manual {
  padding: 100px 0;
  background: #fff;
  position: relative;
}
.res-manual::after{
  position: absolute;
  content: '';
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: #F0F3F7;
  border-radius: 30px 30px 0 0;
  z-index: 1;
}
.res-manual .container{
  position: relative;
  z-index: 5;
}
.res-section-title {
  font-size: var(--big-font-size);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 56px;
}

.res-manual-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  /* gap: 40px; */
  align-items: center;
  background: #fff;
  border-radius: 20px;
}

.res-manual-visual {
  background: #fff;
  border-radius: 16px 0 0 16px;
  /* min-height: 260px; */
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.res-manual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px 0 0 16px;
}
.res-manual-info{
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.res-manual-info-txt{
  flex: 1;
}
.res-manual-info h3 {
  font-size: 30px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 16px;
  line-height: 1.45;
}

.res-manual-info > p {
  font-size: 14px;
  color: #667085;
  line-height: 1.7;
  margin-bottom: 18px;
}

.res-manual-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  margin-top: 20px;
}

.res-manual-tags span {
  font-size: 12px;
  color: var(--color-text-light);
  background: #f2f3f4;
  padding: 1px 8px;
  border-radius: 4px;
}

.res-manual-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}

.res-btn-primary,
.res-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}
.res-btn-secondary .jt-down{
  transform: rotate(90deg);
}
.res-btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.res-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,102,255,0.35);
}

.res-btn-secondary {
  background: #fff;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.res-btn-secondary:hover {
  background: rgba(0,102,255,0.06);
}

/* ========== FAQ ========== */
.res-faq {
  padding: 100px 0 ;
  background: #fff;
}

.res-faq-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap:7vw;
  align-items: start;
}

.res-faq-tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.res-faq-tab {
  appearance: none;
  border: none;
  background: #fff;
  text-align: left;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-light);
  cursor: pointer;
  transition: all 0.25s ease;
}

.res-faq-tab:hover {
  color: var(--color-text);
}

.res-faq-tab.active {
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
}

.res-faq-list {
  background: #fff;
  border-radius: 16px;
  padding: 8px 28px;
}

.res-faq-item {
  border-bottom: 1px dashed #EEF1F6;
}

/* .res-faq-item:last-child {
  border-bottom: none;
} */

.res-faq-q {
  appearance: none;
  border: none;
  background: transparent;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  text-align: left;
  position: relative;
  padding-left: 26px;
}
.res-faq-q::after{
  position: absolute;
  content: '';
  left: 0;
  width: 22px;
  height: 22px;
  background-image: url(../img/ind-icon-dot.png);
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 18px auto;
}
.res-faq-icon {
  font-size: 26px;
  color: var(--color-text-lighter);
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
}

.res-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.res-faq-a p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.75;
  margin: 0;
  padding: 0 8vw 20px 26px;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .res-deploy-body,
  .res-manual-card {
    grid-template-columns: 1fr;
  }

  .res-manual-visual {
    min-height: 220px;
  }

  .res-deploy-image {
    min-height: 260px;
  }

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

  .res-faq-tabs {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .res-deploy-head h1 {
    font-size: 26px;
  }
  .res-deploy-head p{
    max-width: 100%;
    font-size: 16px;
  }
 .res-deploy-pane h3{font-size: 24px;}
  .res-deploy-panel {
    grid-template-columns: 1fr;
  }

  .res-deploy-tabs {
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid #E8EDF5;
    padding: 0;
  }

  .res-deploy-tab {
    border-left: none;
    white-space: nowrap;
    padding: 12px 14px;
  }

  .res-deploy-tab img {
    width: 18px;
    height: 18px;
  }

  .res-deploy-tab.active {
    box-shadow: none;
    border-bottom: 3px solid var(--color-primary);
  }

  .res-point-title {
    font-size: 16px;
  }

  .res-section-title {
    font-size: 26px;
  }

  .res-manual-info {
    padding: 28px 24px;
  }

  .res-faq-list {
    padding: 4px 3px;
  }

  .res-faq-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding-bottom: 4px;
  }

  .res-faq-tab {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 12px 16px;
  }
  .res-btn-secondary{padding: 9px 16px;}
}

/* Toast: download manual not configured */
.res-toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%) translateY(10px);
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.res-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ========== Manual online viewer overlay ========== */
.res-viewer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
}

.res-viewer.is-open {
  display: block;
}

.res-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.res-viewer-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(1100px, 94vw);
  height: min(86vh, 900px);
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.res-viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #e6e8eb;
  flex: 0 0 auto;
}

.res-viewer-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text, #1f2329);
}

.res-viewer-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f2f3f4;
  color: #444;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.res-viewer-close:hover {
  background: #e4e6e9;
}

.res-viewer-frame {
  flex: 1 1 auto;
  width: 100%;
  border: 0;
  display: block;
  background: #f2f3f4;
}

@media (max-width: 768px) {
  .res-viewer-panel {
    width: 96vw;
    height: 92vh;
    border-radius: 8px;
  }
}
