/* 延長保固流程全螢幕（maincont1-ecoblock10 按鈕開啟）
   主色：青 #00b2bb、綠 #23bf68、藍綠 #209cb5 */
.eco-warranty-flow__openBtn {
  margin-top: 16px;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: #80ba34;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
}

.eco-warranty-flow__openBtn:hover {
  background: #209cb5;
}

.eco-warranty-flow__openBtn:active {
  transform: scale(0.98);
}

.eco-warranty-flow {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: none;
  flex-direction: column;
  background:
    radial-gradient(
      ellipse 90% 55% at 85% 95%,
      rgba(35, 191, 104, 0.09),
      transparent 52%
    ),
    radial-gradient(
      ellipse 70% 45% at 10% 88%,
      rgba(32, 156, 181, 0.07),
      transparent 50%
    ),
    #0e1218;
  overflow: hidden;
}

.eco-warranty-flow.is-open {
  display: flex;
}

.eco-warranty-flow__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #80ba34;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.eco-warranty-flow__close:hover {
  background: #209cb5;
}

.eco-warranty-flow__hint {
  flex-shrink: 0;
  text-align: center;
  padding: 10px 48px 8px;
  font-size: 14px;
  color: #333;
  background: rgba(255, 255, 255, 0.85);
}

.eco-warranty-flow__viewport {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.eco-warranty-flow__track {
  position: relative;
  width: 100%;
  will-change: transform;
}

.eco-warranty-flow__panel {
  height: 100vh;
  height: 100dvh;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px 20px;
  box-sizing: border-box;
  gap: 16px;
}

/* 前兩頁：上方純文字 + 下方圖片 */
.eco-warranty-flow__panel--hasImg {
  justify-content: center;
  align-items: stretch;
  min-height: 0;
}

.eco-warranty-flow__intro {
  flex-shrink: 0;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(15px, 3.8vw, 20px);
  font-weight: 700;
  line-height: 1.55;
  color: #e60012;
}

/* 三頁共用：霧面卡片；左側直向漸層條取代頂部橫線 */
.eco-warranty-flow__panel--hasImg .eco-warranty-flow__intro,
.eco-warranty-flow__panel--textOnly .eco-warranty-flow__intro--solo {
  position: relative;
  max-width: 42rem;
  padding: clamp(1.35rem, 3.2vw, 1.85rem) clamp(1.35rem, 3.5vw, 2rem);
  text-align: center;
  color: #1a2332;
  background: linear-gradient(
    170deg,
    rgba(255, 255, 255, 0.995) 0%,
    rgba(250, 252, 254, 0.98) 42%,
    rgba(244, 248, 251, 0.96) 100%
  );
  border-radius: 1.125rem;
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 0 0 1px rgba(0, 178, 187, 0.06),
    0 28px 56px -18px rgba(12, 20, 35, 0.42),
    0 12px 28px -12px rgba(12, 24, 40, 0.16),
    0 0 40px -24px rgba(0, 178, 187, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
/* 
.eco-warranty-flow__panel--hasImg .eco-warranty-flow__intro::before,
.eco-warranty-flow__panel--textOnly .eco-warranty-flow__intro--solo::before {
  content: "";
  position: absolute;
  top: 0.75rem;
  bottom: 0.75rem;
  left: 5px;
  width: 4px;
  border-radius: 0 5px 5px 0;
  background: linear-gradient(
    180deg,
    #00b2bb 0%,
    #1fb89a 45%,
    #23bf68 100%
  );
  opacity: 0.88;
  pointer-events: none;
  box-shadow: 2px 0 18px rgba(0, 178, 187, 0.22);
} */

/* 步驟一～三：純文字標題 + 底線漸層（無圖示／無數字章） */
.eco-warranty-flow__panel--hasImg .eco-warranty-flow__intro > p:first-child,
.eco-warranty-flow__panel--textOnly
  .eco-warranty-flow__intro--solo
  > p:first-child {
  display: inline-block;
  margin: 0 0 0.35rem;
  padding: 0;
  font-size: clamp(0.9375rem, 2.3vw, 1.0625rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  color: #5c6b7f;
  background: none;
  border: none;
  box-shadow: none;
}

.eco-warranty-flow__panel--hasImg
  .eco-warranty-flow__intro
  > p:first-child
  strong,
.eco-warranty-flow__panel--textOnly
  .eco-warranty-flow__intro--solo
  > p:first-child
  strong {
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #0a3d45;
}

/* 步驟內文（三頁一致）：漸層線疊在內文區塊頂端（用 ::before 才能壓在段落之上） */
.eco-warranty-flow__panel--hasImg
  .eco-warranty-flow__intro
  > p:not(:first-child),
.eco-warranty-flow__panel--textOnly
  .eco-warranty-flow__intro--solo
  > p:not(:first-child) {
  position: relative;
  margin: 0;
  margin-top: -0.35rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.26);
  color: #4a5d6e;
  font-size: clamp(0.9375rem, 3.15vw, 1.0625rem);
  font-weight: 500;
  line-height: 1.72;
  letter-spacing: 0.03em;
  text-align: center;
  text-wrap: pretty;
}

.eco-warranty-flow__panel--hasImg
  .eco-warranty-flow__intro
  > p:not(:first-child)::before,
.eco-warranty-flow__panel--textOnly
  .eco-warranty-flow__intro--solo
  > p:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(5.25rem, 44vw);
  height: 4px;
  margin: 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(0, 178, 187, 0) 0%,
    rgba(0, 178, 187, 0.92) 28%,
    rgba(35, 191, 104, 0.92) 72%,
    rgba(35, 191, 104, 0) 100%
  );
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.45),
    0 3px 16px rgba(0, 178, 187, 0.28);
}

.eco-warranty-flow__intro--solo {
  max-width: 42rem;
  font-size: inherit;
  line-height: 1.65;
}

.eco-warranty-flow__panel--textOnly
  .eco-warranty-flow__intro--solo
  > p:last-child {
  margin-bottom: 0;
}

.eco-warranty-flow__intro p {
  margin: 0 0 0.35em;
}

.eco-warranty-flow__intro p:last-child {
  margin-bottom: 0;
}

/* 下方區塊吃滿 intro 以外的剩餘高度；圖片再以 object-fit 放大到可用空間 */
.eco-warranty-flow__media {
  /* flex: 1 1 0%; */
  min-height: 0;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 4px;
  border-radius: 0.875rem;
  box-sizing: border-box;
}

.eco-warranty-flow__media picture {
  flex: 1 1 0%;
  display: block;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 0.65rem;
  overflow: hidden;
}

.eco-warranty-flow__media img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
  display: block;
}

/* 第三頁：僅純文字置中（與步驟卡共用霧面卡片，見上方） */
.eco-warranty-flow__panel--textOnly {
  justify-content: center;
  /* padding-top: 72px; */
}

.eco-warranty-flow__dots {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 12px 0 16px;
  /* background: rgba(255, 255, 255, 0.9); */
}

.eco-warranty-flow__dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.eco-warranty-flow__dots button:hover {
  background: rgba(255, 255, 255, 0.55);
}

.eco-warranty-flow__dots button.is-active {
  width: 22px;
  border-radius: 999px;
  background: linear-gradient(115deg, #00b2bb 0%, #1ab896 48%, #23bf68 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.28) inset,
    0 2px 14px rgba(0, 178, 187, 0.32),
    0 0 20px rgba(35, 191, 104, 0.18);
}
