
#product_overview .card {
  position: relative;
  overflow: hidden;
  transition: 
    transform 0.35s cubic-bezier(.2,.8,.2,1),
    box-shadow 0.35s ease,
    filter 0.35s ease,
    opacity 0.35s ease;
  transform: scale(1);
  opacity: 0.92;
  filter: brightness(96%);
  cursor: pointer;
  border-radius: 18px;
  border: none;
  background: linear-gradient(145deg, #ffffff, #f5f7fa);
  box-shadow: 
    0 8px 20px rgba(0, 0, 0, 0.06),
    0 2px 6px rgba(0, 0, 0, 0.04);
}

/* 微光效果 */
#product_overview .card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255,255,255,.6), transparent 60%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}

.card.border-danger {
  border: 2px solid rgba(26, 29, 58, 0.9) !important;
  background: linear-gradient(145deg, #ffffff, #eef1f6);
  box-shadow:
    0 12px 30px rgba(26, 29, 58, 0.18),
    0 4px 10px rgba(26, 29, 58, 0.08);
  transform: translateY(-4px);
}

.card.border-danger::before {
  content: "✓ 已加入";
  position: absolute;
  top: 12px;
  right: 12px;
  background: #1a1d3a;
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 50px;
  letter-spacing: 1px;
  box-shadow: 0 6px 14px rgba(0,0,0,.2);
}

.card.border-danger:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow:
    0 22px 50px rgba(26, 29, 58, 0.28),
    0 6px 14px rgba(0, 0, 0, 0.1);
}

/* 已選圖片背景更乾淨 */
.card.border-danger img {
  background: #ffffff;
}


#product_overview .card.active {
  transform: translateY(-8px) scale(1.05);
  opacity: 1;
  filter: brightness(102%);
  box-shadow:
    0 22px 55px rgba(26, 35, 126, 0.35);
  border: 2px solid #1a1d3a !important;
  animation: cardGlow 0.6s ease;
}

/* 發光動畫 */
@keyframes cardGlow {
  0% {
    box-shadow: 0 0 0 rgba(26, 35, 126, 0);
  }
  50% {
    box-shadow: 0 0 30px rgba(26, 35, 126, 0.45);
  }
  100% {
    box-shadow: 0 22px 55px rgba(26, 35, 126, 0.35);
  }
}

#product_overview .card img {
  transition: transform .4s ease;
}

#product_overview .card:hover img {
  transform: scale(1.05);
}

.info-glass {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #222;
  padding: 20px 24px;
  border-radius: 18px;
  max-width: 380px;

  border: 1px solid rgba(255,255,255,.4);
  box-shadow: 0 15px 40px rgba(0,0,0,.15);

  left: 24px;
  bottom: 24px;
  z-index: 5;
}


#product_overview .btn {
  border-radius: 12px;
  transition: all .25s ease;
}

#product_overview .btn:hover {
  transform: translateY(-2px);
}

#customized {
  background: #fff;
}

.custom-order-hero {
  padding: 1.4rem 0 0.75rem;
}

.hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 2rem;
  min-height: 272px;
  padding: 2.25rem 2.45rem;
  border: 1px solid #dce3ef;
  border-radius: 20px;
  background:
    linear-gradient(122deg, #ffffff 0%, #f7faff 48%, transparent 48.2%),
    linear-gradient(132deg, transparent 0 70%, #071653 70.2% 87%, #f07f22 87.2% 100%),
    #edf3fd;
  color: #081432;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.1);
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto 15% 0 auto;
  width: 34%;
  height: 100%;
  background:
    linear-gradient(135deg, transparent 0 34%, rgba(45, 91, 167, 0.12) 34.3% 62%, transparent 62.3%),
    linear-gradient(132deg, transparent 0 44%, rgba(7, 22, 83, 0.08) 44.3% 78%, transparent 78.3%);
  pointer-events: none;
}

.hero-eyebrow,
.section-kicker {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero-eyebrow {
  color: #51607a;
}

.hero-title {
  margin: 0 0 1rem;
  color: #071653;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  font-weight: 800;
}

.hero-subtitle,
.section-subtitle {
  color: #586275;
  max-width: 720px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-actions .btn-dark {
  background: #071653;
  color: #fff;
  border-color: #071653;
  box-shadow: 0 12px 24px rgba(7, 22, 83, 0.18);
}

.hero-actions .btn-outline-dark {
  color: #071653;
  border-color: #071653;
  background: rgba(255, 255, 255, 0.7);
}

.hero-actions .btn-outline-dark:hover {
  background: #071653;
  color: #fff;
}

.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.hero-trust-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-trust-chip.active {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.hero-service-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.8rem;
  margin-left: auto;
  width: min(100%, 390px);
}

.hero-service-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(7, 22, 83, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.hero-service-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #eef4ff;
  color: #071653;
}

.hero-service-card strong,
.line-help-copy strong {
  display: block;
  color: #071653;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.25;
}

.hero-service-card small,
.line-help-copy small {
  display: block;
  margin-top: 0.2rem;
  color: #6d7789;
  font-size: 0.78rem;
  line-height: 1.35;
}

#order_steps {
  padding-top: 1rem;
}

#order_steps #stepBar {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.06);
}

.overview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-kicker {
  color: #f07f22;
}

.section-title {
  margin: 0;
  color: #171a31;
  font-weight: 800;
  font-size: clamp(1.8rem, 2vw, 2.4rem);
}

.section-subtitle {
  color: #6b7280;
  max-width: 700px;
}

.selection-pill {
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  background: #171a31;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.line-help-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  min-width: 330px;
  padding: 0.85rem 1rem;
  border: 1px solid #dbe4f0;
  border-radius: 16px;
  background: #f8fbff;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.line-help-card:hover,
.line-help-card:focus {
  text-decoration: none;
  border-color: #b8c8dc;
  background: #ffffff;
}

.line-help-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1d7f3b;
  font-size: 1.25rem;
}

.line-help-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.line-help-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.45rem 0.8rem;
  border: 1px solid #071653;
  border-radius: 10px;
  color: #071653;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.category-filter-panel {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(23, 26, 49, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.category-filter-title {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #4b5563;
}

.plan-card,
.product-card {
  border-radius: 24px !important;
}

.plan-card {
  background: linear-gradient(180deg, #ffffff 0%, #fffaf3 100%) !important;
}

.plan-carousel-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.plan-carousel-status {
  min-width: 4.5rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #6b7280;
}

.plan-badge,
.product-group-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.plan-badge {
  background: rgba(23, 26, 49, 0.88);
  color: #fff;
}

.product-group-badge {
  background: rgba(255, 255, 255, 0.92);
  color: #171a31;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

.plan-price-label,
.product-price-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.plan-price-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: #171a31;
}

.plan-description {
  min-height: 3rem;
}

.plan-highlight-list {
  display: grid;
  gap: 0.65rem;
}

.plan-highlight-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 0.95rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(23, 26, 49, 0.06);
}

.plan-highlight-label {
  color: #6b7280;
  font-size: 0.88rem;
}

.plan-highlight-value {
  color: #171a31;
  font-weight: 700;
  text-align: right;
}

.plan-detail-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.plan-card-summary {
  min-height: 1.75rem;
}

.selected-products-bar-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #071653;
  flex: 0 0 auto;
}

.login-prompt-modal {
  border: 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.24);
}

.login-prompt-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(23, 26, 49, 0.08);
  color: #171a31;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.detail-chip,
.product-meta-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 0.82rem;
  font-weight: 600;
}

.detail-chip.muted,
.product-meta-tag.muted {
  background: #eceff3;
  color: #6b7280;
}

.product-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product-title {
  line-height: 1.5;
  min-height: 3rem;
}

.product-card-copy {
  color: #6b7280;
  font-size: 0.94rem;
  line-height: 1.7;
  min-height: 4.8rem;
}

.product-price-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem;
}

.product-card-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.index-login-floating-btn {
  position: fixed;
  right: 24px;
  bottom: 112px;
  z-index: 1045;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  width: 104px;
  padding: 0.9rem 0.75rem 0.8rem;
  border: 1px solid #d9e5f3;
  border-radius: 28px 18px 18px 28px;
  background: rgba(251, 253, 255, 0.97);
  backdrop-filter: blur(14px);
  text-decoration: none;
  box-sizing: border-box;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease;
  animation: index-login-floating-breathe 3.2s ease-in-out infinite;
  overflow: hidden;
}

.index-login-floating-btn:hover,
.index-login-floating-btn:focus {
  background: #ffffff;
  border-color: #c6d9ee;
  text-decoration: none;
}

.index-login-floating-btn::before {
  content: none;
}

.index-login-floating-btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef5ff;
  color: #3554d1;
  box-shadow: inset 0 0 0 1px rgba(53, 84, 209, 0.1);
  font-size: 1.1rem;
  flex: 0 0 auto;
  margin-top: 0.15rem;
  animation: index-login-icon-pulse 2.6s ease-in-out infinite;
}

.index-login-floating-btn-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.18rem;
  line-height: 1.15;
  text-align: center;
}

.index-login-floating-btn-label {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7b90a8;
}

.index-login-floating-btn-title {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.02rem;
  margin-top: 0.04rem;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #3554d1;
  line-height: 1.2;
  white-space: nowrap;
}

.index-login-floating-btn-char {
  display: inline-block;
  animation: index-login-title-bounce 1.2s ease-in-out infinite;
  transform-origin: center bottom;
}

.index-login-floating-btn-char:nth-child(1) {
  animation-delay: 0s;
}

.index-login-floating-btn-char:nth-child(2) {
  animation-delay: 0.15s;
}

.index-login-floating-btn-char:nth-child(4) {
  animation-delay: 0.3s;
}

.index-login-floating-btn-char:nth-child(5) {
  animation-delay: 0.45s;
}

.index-login-floating-btn-separator {
  display: inline-block;
  margin: 0 0.08rem;
}

@keyframes index-login-title-bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  30% {
    transform: translateY(-5px);
  }

  55% {
    transform: translateY(0);
  }

  72% {
    transform: translateY(-2px);
  }
}

.index-login-floating-btn-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.3rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: #eef4fb;
  color: #6d85a4;
  font-size: 0.62rem;
  font-weight: 700;
}

.index-back-to-top-btn {
  position: fixed;
  right: 36px;
  bottom: 268px;
  z-index: 1044;
  width: 60px;
  height: 60px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  border: 1px solid #d9e5f3;
  border-radius: 20px;
  background: rgba(251, 253, 255, 0.96);
  appearance: none;
  backdrop-filter: blur(14px);
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
  outline: none;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease;
  animation: index-login-floating-breathe 3.2s ease-in-out infinite;
}

.index-back-to-top-btn:hover,
.index-back-to-top-btn:focus {
  background: #ffffff;
  border-color: #c6d9ee;
  text-decoration: none;
}

.index-back-to-top-btn-icon {
  color: #3554d1;
  font-size: 1.05rem;
  line-height: 1;
}

.index-back-to-top-btn-text {
  color: #7b90a8;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
}

@keyframes index-login-floating-breathe {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

@keyframes index-login-icon-pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.07);
  }
}

@media (max-width: 991.98px) {
  .overview-toolbar {
    align-items: start;
    flex-direction: column;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .hero-panel::after {
    display: none;
  }

  .hero-service-panel {
    margin-left: 0;
    width: 100%;
  }

  .line-help-card {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 767.98px) {
  .custom-order-hero {
    padding-top: 1.5rem;
  }

  .hero-panel {
    padding: 1.5rem;
    border-radius: 22px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .product-card-copy,
  .product-title,
  .plan-description {
    min-height: auto;
  }

  .product-price-row,
  .plan-highlight-item {
    flex-direction: column;
    align-items: start;
  }

  .plan-carousel-controls {
    width: 100%;
    justify-content: space-between;
  }

  .line-help-card {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .line-help-action {
    grid-column: 1 / -1;
    width: 100%;
  }

  .index-login-floating-btn {
    right: 16px;
    bottom: 98px;
    width: 88px;
    padding: 0.72rem 0.58rem 0.64rem;
    gap: 0.5rem;
    border-radius: 24px 16px 16px 24px;
  }

  .index-login-floating-btn-icon {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }

  .index-login-floating-btn-label,
  .index-login-floating-btn-hint {
    font-size: 0.55rem;
  }

  .index-login-floating-btn-title {
    font-size: 0.72rem;
  }

  .index-back-to-top-btn {
    right: 28px;
    bottom: 236px;
    width: 50px;
    height: 50px;
    border-radius: 18px;
  }

  .index-back-to-top-btn-icon {
    font-size: 0.95rem;
  }

  .index-back-to-top-btn-text {
    font-size: 0.54rem;
  }
}

@media (max-width: 479.98px) {
  .index-login-floating-btn {
    right: 12px;
    bottom: 88px;
    width: 80px;
    padding: 0.65rem 0.5rem 0.58rem;
  }

  .index-login-floating-btn-icon {
    width: 30px;
    height: 30px;
    border-radius: 12px;
    font-size: 0.85rem;
  }

  .index-login-floating-btn-title {
    font-size: 0.68rem;
  }

  .index-back-to-top-btn {
    right: 20px;
    bottom: 208px;
    width: 46px;
    height: 46px;
  }
}
