@media (max-width: 767px) {
    .ssContent {
        display: flex;
        flex-direction: column; /* 預設手機版上下排列 */
        gap: 32px;
    }
}
/* 手機版不 sticky */
@media (max-width: 767px) {
    .ss_sticky_area {
        position: static;
    }
    .sticky-container{
        position: static;
    }
}
.ss_sticky_area .event_name{
    font-size: 32px;
}
@media(max-width:575px){
    .ss_sticky_area .event_name{
        font-size: 20px;
    }
}



.ssContent {
    display: flex;
    gap: 32px;
}

@media (max-width: 767px) {
    .ssContent-left {
        width: 100%;
    }
}

@media (min-width: 992px) {
    .ssContent-left {
        width: 100%;
        max-width:65%;
    }
}
.ss_sticky_area {
    position: sticky;
    top: 90px;
}

.ssContent-left .ssImgArea {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    width: 100%;
    display: block;
    margin-bottom: 16px;
}

.ssImgArea img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 浮水印 icon */
.ssImgArea img.watermark {
    position: absolute;
    opacity: 0.8;
    pointer-events: none; /* 不阻擋點擊 */
}
@media (max-width: 767px) {
    .ssImgArea img.watermark {
        position: absolute;
        opacity: 0.8;
        pointer-events: none;
    }
}




.ssContent-left img {
    width: 100%;
    height: 100%;
    display: block;
}

.event_name {
    font-size: 18px;
    letter-spacing:1px;
    color:var(--header_main_f_color,#3B3B3B);
}


.event_name .fz21{
    font-size: 21px;
}

.event_time {
    color: #8E8E8E;
    font-size: 18px;
}
@media(max-width:575px){
.event_time {
    font-size: 14px;
}
}

@media (min-width: 992px) {
    .ssContent-right {
        max-width:35%;
        width:100%;
    }
}

@media (max-width: 767px) {
    /* 2. 分頁標籤結構 */
    .ssContent-description {
        display: flex; /* 讓兩個 Tab 並排 */
        width: 100%;
        margin-top: 32px;
        margin-bottom: 16px;
    }

    /* 3. 內容切換顯示 */
    .tab-content {
        display: none; /* 預設隱藏所有內容 */
    }

    .tab-content.active {
        display: block; /* 顯示當前選中的內容 */
    }

    /* 4. 獎項列表垂直堆疊 */
    .activity-prizes-list {
        display: block; /* 在手機上，不需要任何特殊的 Flex/Grid 設置，因為區塊元素 (div) 本身就會垂直堆疊 */
    }

    /* 讓每個獎項卡片填滿寬度 */
    .activity-item-card {
        width: 100%;
        box-sizing: border-box; /* 確保 padding 不會撐大寬度 */
    }
}


/* 卡片外框（灰底）*/
.tab-card {
    background: #F7F7F7; /* 外層灰底 */
    border-radius: 12px;
    margin-top: 32px;
    box-sizing: border-box;
}

/* tab header */
.tab-card .tab-header {
    display: flex;
    align-items: stretch;
}

.tab-card .tab-item {
    background: #D8D8D8;
    flex: 1;
    padding: 10px 0;
    border-radius: 8px;
    cursor: pointer;
    color: #8a8a8a; /* 非選取文字較灰 */
    user-select: none;
    text-align: center;
    font-family: "Noto Sans TC";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
}

/* 被選中 tab */
.tab-card .tab-item.active {
    background: #F7F7F7;
    color: #222;
    font-weight: 700;
}

/* 內容區塊：圓角並與 header 做段落分隔 */
.tab-card .tab-body {
    border-radius: 8px;
    padding: 16px;
    box-sizing: border-box;
    color: #333;
    line-height: 1.8;
}

/* 隱藏/顯示內容 */
.tab-card .tab-content { display: none; }
.tab-card .tab-content.active { display: block; }

/* 微調內文的左邊 pink 條 */
.tab-body .note-title {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
}
.tab-body .note-title .accent {
    width: 6px;
    height: 36px;
    background: #ff4d7a;
    border-radius: 2px;
    margin-left: 4px;
}

.mobile_event_content {
    margin:0;
    font-size:20px;
}


.ssContent-subTitle {
    position: relative;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.ssContent-subTitle::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 30px;
    background-color: #ff4b83;
    margin-right: 12px;
}


.varTitle{
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 5px;

    margin-top: 5px;
}

.ssContent-btnArea button{
    padding:  27px 0;
    font-size:20px;
    letter-spacing:2px;
}
@media(max-width:767px){
	.ssContent-btnArea button{
		font-size:17px;
	}
}
.ssContent-step1 {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.line-oa-guide-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 16px;
    padding: 16px 18px;
    border: 1px solid #dcefd9;
    border-radius: 18px;
    background: linear-gradient(135deg, #f5fbf3 0%, #ffffff 100%);
}

.line-oa-guide-entry__copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.line-oa-guide-entry__title {
    color: #243224;
    font-size: 16px;
    font-weight: 700;
}

.line-oa-guide-entry__desc {
    color: #617061;
    font-size: 13px;
    line-height: 1.6;
}

.line-oa-guide-entry__link {
    flex: 0 0 auto;
    color: #32a852;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.line-oa-guide-entry__link:hover {
    color: #1e8a3e;
}

@media(max-width:767px){
    .line-oa-guide-entry {
        align-items: flex-start;
        flex-direction: column;
    }
}

.ssSearch-btn {
    background: transparent;
    border: 1px solid #ff3c74;
    color: #ff3c74;
}
.ssSearch-btn:hover {
    color: #ff3c74;
    opacity:0.7;
}

/* --- 右側卡片樣式 --- */
.activity-item-card {
    padding: 24px;
    border: 1px solid #eee;
    border-radius: 8px; /* 輕微圓角 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    background-color: #fff;
    position: relative;
    /* 確保其在 Flexbox 佈局中正確佔位 */
    box-sizing: border-box;
    overflow: hidden;
}

/* --- 獎項標籤樣式 --- */
.activity-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px; /* 標籤內部間距 */
    background-color: #f26b8d;
    color: #fff;
    font-size: 14px;
    border-radius: 4px; /* 輕微圓角 */
    font-weight: normal;
    margin-bottom: 16px; /* 標籤與商品名稱的間距 */
}

.prize_quota_c {
    color: #e94b7c;
}

/* --- 商品資訊排版 --- */
.activity-info h4 {
    /* 商品名稱 */
    font-size: 18px;
    color:var(--header_main_f_color,#3B3B3B);
    margin-bottom: 16px; /* 移除瀏覽器預設的 margin */
    /* 行高調整，讓其看起來像圖片中的垂直間距 */
    line-height: 1.4;
}

.detail-row {
    display: flex;
    gap:8px;
    /* 這裡使用 flex-wrap 來防止長內容溢出 */
    flex-wrap: wrap;
    font-size: 14px;
    color: #777;
    margin-top: 8px; /* 區隔不同資訊行 */
}

.detail-label {
    /* 型號, SKU, 市價 的標籤 */
    width: 60px; /* 確保標籤對齊 */
    color: #464646;
}

.detail-value {
    /* 實際的值 */
    color:var(--header_main_f_color,#3B3B3B);
    font-weight: normal;
}



/* --- Modal 基礎與背景遮罩 --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none; /* 預設隱藏 */
    justify-content: center;
    align-items: center;
}

/* Modal 內容容器 */
.modal-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 840px; /* 根據圖片設定一個合適的寬度 */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin:auto;
}
@media(max-width:1199px){
	.modal-content{
		padding:24px;
	}
}
@media(max-width:767px){
	.modal-content{
		padding:16px;
	}
}

/* --- Modal Header (標題) --- */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding:0;
    padding-bottom: 24px;
    position: relative;
}

.modal-header .close{
	top:-24px;
	right:-16px;
	width:24px;
	height:24px;
}
@media(max-width:1199px){
	.modal-header .close{
		top:-16px;
		right:-8px;
	}
}

.modal-title {
    font-size: 31px;
    color:var(--header_main_f_color,#3B3B3B);
}

/* 關閉按鈕 */
.close-btn {
    position: absolute;
    right: -10px;   /* 與右邊距離 */
    top: -25px;     /* 與上方距離 */
    font-size: 30px;
    font-weight: 200;
    color: #aaa;
    cursor: pointer;
}

.close-btn:hover {
    color: #f26b8d;
}

/* --- Modal Body (表單佈局) --- */
.modal-body {
    padding: 0;
}
.invoice-layout{
	display: flex;
    flex-wrap: wrap;
    gap: 24px; /* 行間距和欄間距 */
}
@media(max-width:575px){
	.invoice-layout{
    	gap: 12px;
	}
	.invoice-layout .form-group {
    	width: 100%;
	}
}
/* 「登錄查詢」身分證後4碼 + 行動電話 並列 */
.form-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.form-group {
    width: calc(50% - 12px); /* 每行兩個欄位 */
    display: flex;
    flex-direction: column;
}
.form-group .w35calc {
    width: calc(35% - 20px);
}
.form-group .w25calc {
    width: calc(25% - 20px);
}
.form-group .w13calc {
    width: calc(13%);
}

.form-group label {
    font-size: 14px;
    color: #464646;
    display:inline-flex;
    align-items:center;
}

/* 輸入框和下拉選單樣式 */
.form-group input:not([type="radio"]),
.form-group select,
.form-group textarea {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    color:var(--header_main_f_color,#3B3B3B);
    outline: none;
    transition: border-color 0.3s;
    height: 40px;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #f26b8d;
}


/* --- 地址欄位佈局 (三欄) --- */
.address-group {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    width: 100%;
    margin-top:12px;
    margin-bottom:40px;
}

@media(max-width:575px){
	.address-group {
	    gap: 12px;
	    margin-top:12px;
	    margin-bottom:24px;
	}
	.address-group .form-group {
       width: calc(50% - 12px);
	}
	#addrSelect{
	   max-width:575px;
	}
}
.address-group.flex-line{
	display:flex;
	flex-wrap:nowrap;
}
@media(max-width:767px){
	.address-group.flex-line{
		flex-wrap:wrap;
	}
	.address-group.flex-line .form-group.w25calc{
		flex: 1 1 0%;
	}
	.address-group.flex-line .form-group:nth-child(3){
		width:100%;
	}
}

/* --- Footer (按鈕和聲明) --- */
.modal-footer {
    text-align: center;
    flex-direction: column;
    background: none;
}

.privacy-check {
    font-size: 14px;
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content:center;
    gap: 4px;
}
@media(max-width:575px){
	.privacy-check {
		font-size:12px;
		margin-top:24px;
	}
}

/* 特殊欄位（如開獎日期） */
.date-input-group {
    position: relative;
}
.date-input-group i {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: #aaa;
    pointer-events: none; /* 讓圖標不影響點擊 */
}
.form-group .receipt_div {
    display: flex;
    flex-direction: row; /* 水平排列 */
    gap: 24px; /* 設置 input 之間的間隔 */
}



/*  明細頁顯示中獎名單  */
.winner-list-container {
    background-color: #f5f5f5;
    border-radius: 8px; /* 圓角 */
    padding: 8px 16px; /* 讓內部內容與容器有上下間距 */
}

.winner-content {
    display: flex; /* 讓所有子元素排成一行 */
    align-items: center; /* 垂直置中 */
    padding: 8px 0;
    border-top: 1px solid #e0e0e0; /* 添加分割線 */
    font-size: 14px;
    color:var(--header_main_f_color,#3B3B3B);
}

.winner-list-container .winner-content:first-child {
    border-top: none;
}


.winner-label {
    flex-shrink: 0;
    /*width: 60px;*/
    text-align: left;
    font-family: "Noto Sans TC";
    font-size: 12px;
}

.winner-value {
    flex-grow: 1;
    font-family: "Noto Sans TC";
    font-size: 15px;
}

.name-value {
    text-align: left;
    flex-grow: 0;
}
.invoice-value {
    text-align: right;
    flex-grow: 1;
}
.privacy-link {
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
}

.fz16 {
    font-size: 16px;
}

.w100 {
    width: 100%;
}
.w80 {
    width: 80%;
}

.w20 {
    width: 20%;
}

.w15 {
    width: 15%;
}

.w-100pi {
    width: 100px !important;
}

/*  Modal樣式  */
.sweepstake_event_name{
	text-align:center;
	margin-bottom:24px;
}
.event_list_content{
	background:#FAFAFA;
	border-radius:14px;
	padding:32px;
	margin-top:24px;
	display:flex;
	flex-direction:column;
	gap:8px;
}
@media(max-width:991px){
	.event_list_content{
		padding:24px;
	}
}
@media(max-width:767px){
	.event_list_content{
		padding:16px;
	}
}
.modal-body.p-b-0{
	padding-bottom:0!important;
}
.event_list_content .event-item {
	font-size:14px;
	line-height:30px;
	color:#787878;
}
@media(max-width:767px){
	.event_list_content .event-item  {
		font-size:12px;
		line-height:22px;
	}
}
.event_list_content .event-item-content {
	font-size:18px;
}
@media(max-width:767px){
	.event_list_content .event-item-content {
		font-size:15px;
	}
}
@media(max-width:991px){
	.mb-gap8{
		width:100%;
		display:flex;
		gap:8px;
		margin-top:24px;
	}	
	.mb-gap8 button{
		width:100%;
	}
}
.address-select{
	display:flex;
	flex-wrap:wrap;
	gap:16px;
	align-items:flex-start;
}
#common_addr_info #addrSelect{
	width:50%;
}
@media(max-width:575px){
	#common_addr_info #addrSelect{
		width:100%;
	}
}


/* 取消訂單排版 */
.agree-item .form-check{
	display:grid;
	grid-template-columns:auto 1fr auto;
}
.agree-item .invalid-feedback {
	grid-column: 1 / -1;
	padding-left:28px;
}

#receipt-form_submit {
    margin-left: -2px;
}

.ssNotStartContent {
    width: 100%;
    box-sizing: border-box;
}

.ssNoSweepstakeImgArea {
    width: 70%;
    margin: auto;
}

.ssNoSweepstakeHint {
    margin: auto;
    padding-top: 120px;
    text-align: center;
}

@media(max-width:575px){
    .ssNoSweepstakeHint {
        margin: auto;
        padding-top: 60px;
        text-align: center;
    }
}

.ssNoSweepstakeHint span {
    font-size: 32px;
    color: #C2C2C2;
    font-weight: 400;
}

@media(max-width:575px){
    .ssNoSweepstakeHint span {
        font-size: 24px;
        color: #C2C2C2;
        font-weight: 400;
    }
}

.winner-number {
    flex-shrink: 0;
    width: 20px;
    font-family: "Noto Sans TC";
    font-size: 15px;
    color: var(--header_main_f_color,#3B3B3B);
}