@charset "utf-8";
/* CSS Document */
body {
	font-family: arial,"標楷體";
	font-size: 24px;
}
.row{
	display:inline-block;
	font-family: arial,"標楷體";
	font-size: 24px;
}
.text-24{
	font-family: arial,"標楷體";
	font-size:24px;
}
.border{
	border: 1px solid;
}
.border-color1{
	border: 4px solid orange;
}
.border-color2{
	border: 4px solid darkviolet;
}
.border-style1{

}
.center{
	margin: 0 auto;
	width: 80%;
}
.m_r10{
	margin-right:10px
}
.text_left{
	text-align: left;
}
.m_5{
	margin: 5px;
}
.text_B_24{
    font-size: 24px;
    font-family: arial,"標楷體";
    font-weight: bold;
}

.table-style1 thead th {
background-color: rgb(81, 130, 187);
color: #fff;
border-bottom-width: 0;
}

.table-style1 td {
	color: #000;
    border: 1px solid #CCC;
}

.table-style1 tr, .table-style1 th {
border-width: 1px;
border-style: solid;
border-color: rgb(81, 130, 187);
}

.table-style1 td, .table-style1 th {
padding: 5px 10px;
font-size: 20px;
font-family: Verdana;

}

.btn {
	-moz-box-shadow: 0px 0px 0px 2px #9fb4f2;
	-webkit-box-shadow: 0px 0px 0px 2px #9fb4f2;
	box-shadow: 0px 0px 0px 2px #9fb4f2;
	background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #7892c2), color-stop(1, #476e9e));
	background:-moz-linear-gradient(top, #7892c2 5%, #476e9e 100%);
	background:-webkit-linear-gradient(top, #7892c2 5%, #476e9e 100%);
	background:-o-linear-gradient(top, #7892c2 5%, #476e9e 100%);
	background:-ms-linear-gradient(top, #7892c2 5%, #476e9e 100%);
	background:linear-gradient(to bottom, #7892c2 5%, #476e9e 100%);
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#7892c2', endColorstr='#476e9e',GradientType=0);
	background-color:#7892c2;
	-moz-border-radius:10px;
	-webkit-border-radius:10px;
	border-radius:10px;
	border:1px solid #4e6096;
	display:inline-block;
	cursor:pointer;
	color:#ffffff;
	font-family:Arial;
	font-size:19px;
	text-decoration:none;
	text-shadow:0px 1px 0px #283966;
}
.btn:hover {
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #476e9e), color-stop(1, #7892c2));
	background: -moz-linear-gradient(top, #476e9e 5%, #7892c2 100%);
	background: -webkit-linear-gradient(top, #476e9e 5%, #7892c2 100%);
	background: -o-linear-gradient(top, #476e9e 5%, #7892c2 100%);
	background: -ms-linear-gradient(top, #476e9e 5%, #7892c2 100%);
	background: linear-gradient(to bottom, #476e9e 5%, #7892c2 100%);

	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#476e9e', endColorstr='#7892c2',GradientType=0);
	background-color: #5182BB;
}
.btn:active {
	position:relative;
	top:1px;
}
.gray{
	background-color:gray;
}
.star{
	position:absolute;
	width:30px;
	height:30px;
	background-size:100% 100%;
	background: url(/pic/star2.png) no-repeat;'
}
.pick{
	display:none;
	margin:50px 0 0 50px;
	position:absolute;
	width:80px;
	height:80px;
	background-size:100% 100%;
	background: url(/pic/pick22.png) no-repeat;'
}
.pick.active{
	display:block;
}

.pick_line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    outline: 3px solid #ff0000;
    outline-offset: 0px;
    border: 3px solid transparent;
    z-index: 10; 
    pointer-events: none;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
}

.pick-new-icon {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: #FF0000;
    border-radius: 50%;
    background-image: none !important;	
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(255, 77, 79, 0.3);
    display: none;
    align-items: center;
    justify-content: center;
}

.pick-new.active .pick-new-icon {
    display: flex;
    animation: fadeInScale 0.2s ease-out;
}

.pick-new-icon::before {
    content: '\2714\FE0E';
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    -webkit-appearance: none;
    appearance: none;
    font-size: 34px;
    font-weight: 900 !important;
    display: block;
    line-height: 1;
    margin-top: 3px !important;
    text-shadow: none !important;
}

.pick-new-icon {
    display: none;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.pick-new.active .pick-new-icon {
    display: flex;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.7);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

#pick_area {
    box-sizing: border-box !important;
    width: 95% !important;           
    max-width: 1400px !important;    
    margin: 0 auto 20px auto !important;    
    background-color: #f0f0f0 !important;
    border-radius: 8px !important; 
    box-shadow: 
    inset 25px 0 0 0 #ffffff, 
    inset -60px 0 0 0 #ffffff !important;
    padding: 20px 71px 18px 45px !important; 
    display: nono !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important; 
    align-content: flex-start !important;
    overflow: hidden !important;     
    position: relative !important;
    left: 0 !important;
}

#all_card {
    box-sizing: border-box !important;
    width: 95% !important;           
    max-width: 1400px !important;    
    margin: 0 auto !important;
    padding: 20px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    position: relative !important;
    left: 0 !important;
}

.btn-group-custom {
    box-sizing: border-box !important;
    width: 95% !important;
    max-width: 1400px !important;
    min-width: 600px !important;
    margin: 0 auto !important;
    position: relative !important;
    left: 15px !important;
}

@media (max-width: 768px) {
    #pick_area, #all_card {
        left: 0 !important;
        width: 100% !important;
    }
}

.pick-new {	
    width: 88px !important;
    height: 236px !important;
    box-sizing: border-box !important;
    background-color: #f0f0f0 !important; 
    border: 1px solid #000;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.2);
}

.pick-new.active {
    background-color: #f0f0f0 !important; 
    border-color: transparent !important;
    z-index: 10;
    outline: 2px solid #dc0a0a;
    outline-offset: -1px;
    animation: cardPopUpper 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes cardPopUpper {
    0% { transform: scale(1); }
    40% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.pick-new.active {
    filter: brightness(1.1);
}
.pagination-container {
        display: flex;
        gap: 10px;
        padding: 20px 0;
}

.page-link {
        display: block;
        padding: 10px 15px;
        text-decoration: none;
        color: #ff6600;
        background-color: #fff;
        border: 1px solid #ff6600;
        border-radius: 4px;
        font-size: 16px;
        text-align: center;
        cursor: pointer; 
}

    .page-link.active {
        background-color: #ff6600;
        color: #fff;
    }

    .page-link.next-page {
        width: 60px;
    }

.image-wrapper {
  position: relative;
  overflow: visible;
  display: inline-block;
  margin-bottom: 0px;
}

.count-badge {
    position: absolute;
    z-index: 6;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    font-size: 44px;
    font-weight: bold;
    padding: 2px 6px;
    line-height: 1;
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 12px; 
    border: 1px solid rgba(255, 255, 255, 0.5);
    white-space: nowrap;
}

.delete-btn {
    position: absolute;
    top: -7px;
    right: -7px;
    z-index: 1000;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ff4d4f;   
    color: white;
    border-radius: 50%; 
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    border: 2px solid #ffffff;
    transition: transform 0.2s;
}

.delete-btn:hover {
    transform: scale(1.0);
    background: #ff7875;
}

.add-plus-icon {
    display: none; 
    position: absolute;
    top: -7px;
    right: -7px;
    z-index: 999;	
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
    border-radius: 50%;
    align-items: center;
    justify-content: center;	
    font-size: 16px;
    font-weight: bold;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    pointer-events: none;
}

.pick-new.active .add-plus-icon {
    display: flex;
}

.pick-new, 
.pick-new *,
.pick-item,
.delete-btn,
.add-plus-icon, 
.count-badge {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    touch-action: manipulation; 
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -webkit-tap-highlight-color: transparent;
}

@keyframes badgePop {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.4); } 
    100% { transform: translate(-50%, -50%) scale(1); }
}

.badge-bounce {
    animation: badgePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    display: inline-block !important;
    z-index: 9999 !important;
}

.upper-bounce {
    display: inline-block !important;
    animation: cardPopLower 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    z-index: 5;
}

@keyframes cardPopLower {
    0% { transform: scale(1); }
    40% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.badge-shrink {
    animation: badgeShrink 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    display: inline-block !important;
	 animation: badgeScale 0.3s ease !important;
	z-index: 9999;
}

@keyframes badgeShrink {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(0.6); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.control-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5vw; 
    gap: clamp(80px, 5vw, 120px); 
    margin-top: 1px;
    margin-bottom: 10px;
    width: 100%;
}

.custom-blue-btn {
    background: linear-gradient(to bottom, #7892c2 5%, #476e9e 100%);
    background-color: #7892c2;
    color: #ffffff;
    border: 1px solid #4e6096;
    box-shadow: 0px 0px 0px 2px #9fb4f2;
    border-radius: 23px;
    display: inline-block;
    cursor: pointer;
    font-family: "標楷體", Arial, sans-serif;
    font-size: 22px;
    font-weight: bold;
    text-shadow: 0px 1px 0px #283966;
    text-decoration: none;
    height: 46px;
    line-height: 44px;
    padding: 0 20px;
    text-align: center;
    transition: all 0.2s ease;
    outline: none;
    vertical-align: middle;
	
	margin: 0 auto 15px auto;
}

.custom-blue-btn:hover {
    background: linear-gradient(to bottom, #476e9e 5%, #7892c2 100%);
    box-shadow: 0px 0px 5px 2px #9fb4f2;
    transform: translateY(-1px);
}

.custom-blue-btn:active {
    position: relative;
    top: 1px;
    box-shadow: 0px 0px 0px 1px #9fb4f2;
}

.btn-group-custom {
    display: flex !important; 
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 88px;
    flex-wrap: nowrap;
    width: 95% !important;
    max-width: 1400px !important;
    position: static !important;
    transform: none !important;
    margin: 20px auto !important;
    overflow: visible !important;
}

.btn-cnshop {
    width: 190px;
    height: 45px;
    flex-shrink: 0;
    cursor: pointer;
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    border-radius: 5px; 
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 1px;
    font-family: "DFKai-SB", "標楷體", KaiTi, serif;
}

.btn-search {
    background-color: #5182BB; 
    border: 1.8px solid #3d6695;
}

.btn-search:hover {
    background-color: #3d6695;
    border-color: #2b496d;
    box-shadow: 0 4px 10px rgba(81, 130, 187, 0.3);
}

.btn-clear {
    background-color: #888888; 
    color: #ffffff;
    border: 1.8px solid #666666;
}

.btn-clear:hover {
    background-color: #666666;
    border-color: #444444;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-cnshop:active {
    transform: scale(0.95);
}

@media (min-width: 768px) {
    .responsive-img:hover {
    transform: scale(1.05);
    filter: brightness(1.1) drop-shadow(0px 6px 12px rgba(0,0,0,0.3));
    }
}
