﻿/* 預設名片管理功能樣式 - 簡化版 */.namecard-type input[type="checkbox"] {  width: 3em;  height: 1.5em;  appearance: none;  background-color: #e0e0e0;  border-radius: 1em;  position: relative;  cursor: pointer;  transition: background-color 0.2s;  display: block;  margin-bottom: 0;}.namecard-type input[type="checkbox"]::before {  content: "";  position: absolute;  width: 1.2em;  height: 1.2em;  border-radius: 50%;  background-color: white;  top: 0.15em;  left: 0.15em;  transition: transform 0.2s;}.namecard-type input[type="checkbox"]:checked {  background-color: #4CAF50;}.namecard-type input[type="checkbox"]:checked::before {  transform: translateX(1.5em);}/* 預設名片容器樣式 */.card-selection-wrapper.default-card {  position: relative !important;}/* 角標容器 */.card-selection-wrapper.default-card::before {  content: '★ 預設名片';  position: absolute;  top: 0;  right: 0;  background: linear-gradient(135deg, #FFD700, #FFA500);  color: white;  font-size: 12px;  font-weight: bold;  padding: 4px 8px;  border-radius: 0 8px 0 8px;  z-index: 15;  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);  box-shadow: 0 2px 6px rgba(255, 193, 7, 0.4);  animation: badgeGlow 2s ease-in-out infinite alternate;  pointer-events: none;  transform-origin: top right;}.is_default_text{  position: absolute;  right: 4px;  top: calc(100% - 104px);  /* 背景加深並改為深色文字，提升可讀性 */  background: linear-gradient(135deg, #FFD700, #FFA500);  color: #8b5b07;  padding: 4px;  border-radius: 4px;  z-index: 15;}#setDefaultCheckbox{  margin-bottom: 0;}/* 移除原本的 ::after 星星 */.card-selection-wrapper.default-card::after {  display: none;}/* 角標發光動畫 */@keyframes badgeGlow {  0% {    box-shadow: 0 2px 6px rgba(255, 193, 7, 0.4);    transform: scale(1);  }  50% {    box-shadow: 0 3px 8px rgba(255, 193, 7, 0.6);    transform: scale(1.02);  }  100% {    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.8);    transform: scale(1.05);  }}/* 按鈕樣式 - 完全參考 page-btn */#setDefaultBtn, #setDefaultBtn-step4 {  display: inline-block;  padding: 10px 15px;          /* 與 page-btn 相同 */  text-decoration: none;  border-radius: 5px;          /* 與 page-btn 相同 */  cursor: pointer !important;  border: none;  font-weight: normal;         /* 與 page-btn 保持一致 */  font-size: inherit;          /* 繼承父容器字體大小 */  transition: all 0.3s ease;  position: relative;  z-index: 10;  margin-right: 10px;          /* 添加右邊距，避免和編輯按鈕擠在一起 */}#setDefaultBtn-step4{  margin-right: 0;}/* 防止游標抖動 - 確保按鈕及其偽元素都有正確的cursor */#setDefaultBtn,#setDefaultBtn::before,#setDefaultBtn::after,#setDefaultBtn:hover,#setDefaultBtn:focus,#setDefaultBtn:active,#setDefaultBtn-step4,#setDefaultBtn-step4::before,#setDefaultBtn-step4::after,#setDefaultBtn-step4:hover,#setDefaultBtn-step4:focus,#setDefaultBtn-step4:active {  cursor: pointer !important;}/* 設為預設名片 - 紅色實心按鈕 (參考 page-btn 樣式) */#setDefaultBtn.btn-set-default, #setDefaultBtn-step4.btn-set-default{  background-color: #dc3545;  color: white;  font-size: 1.6rem;  font-weight: 700;    margin-bottom: .5rem;    line-height: 1.4;    height: 42.3984px;}#setDefaultBtn-step4.btn-set-default {  font-size: 17px;  margin-bottom: 0;  height: 52px;}#setDefaultBtn.btn-set-default:hover, #setDefaultBtn-step4.btn-set-default:hover {  background-color: #c82333;  transform: translateY(-1px);  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);}/* 取消預設 - 白底紅框按鈕 */#setDefaultBtn.btn-cancel-default, #setDefaultBtn-step4.btn-cancel-default {  background-color: white;  color: #dc3545;  border: 2px solid #dc3545;  font-size: 1.6rem;  font-weight: 700;    margin-bottom: .5rem;    line-height: 1.4;    height: 44.3984px;}#setDefaultBtn-step4.btn-cancel-default {  font-size: 17px;  margin-bottom: 0;  height: 52px;}#setDefaultBtn.btn-cancel-default:hover, #setDefaultBtn-step4.btn-cancel-default:hover {  background-color: #dc3545;  color: white;  transform: translateY(-1px);  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);}/* 禁用狀態 - 當只有一個名片時 */#setDefaultBtn.btn-disabled, #setDefaultBtn-step4.btn-disabled {  background-color: #6c757d;  color: white;  cursor: not-allowed !important;  opacity: 0.6;}#setDefaultBtn.btn-disabled:hover, #setDefaultBtn-step4.btn-disabled:hover {  background-color: #6c757d;  transform: none;  box-shadow: none;}#setDefaultBtn:active, #setDefaultBtn-step4:active {  transform: translateY(0);} /* 只有一張名片時的禁用樣式 */ .form-check-input:disabled.only-one-card {  cursor: not-allowed !important;  opacity: 0.6;}.form-check-label.disabled-label {  cursor: not-allowed !important;  opacity: 0.6;  color: #6c757d !important;}.form-check.disabled-container {  cursor: not-allowed !important;}.form-check.disabled-container * {  cursor: not-allowed !important;}@media screen and (max-width: 1024px) {  .action-buttons{    position: relative;  }  .action-button{    width: 100%;  }  .action-buttons #setDefaultBtn-step4{    flex-grow: 1;  } }/* 響應式設計 */@media (max-width: 768px) {  .card-selection-wrapper.default-card::before {    font-size: 10px;    padding: 3px 6px;    border-radius: 0 6px 0 6px;  }    #setDefaultBtn{    font-size: 14px;    padding: 8px 12px;    margin-right: 8px;  }} 