@charset "UTF-8";

@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&display=swap");

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, '微軟正黑體', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding:10px;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 650px;
    margin: 0 auto;
    background: #fff;
    padding:  0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* --- 通知內容樣式 --- */
.announcement p {
    margin: 0 0 10px 0;
    padding: 3px 20px;
}

.announcement strong {
    color: #007bff; /* 藍色強調 */
}

.announcement hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

/* --- 步驟標題樣式 --- */
.step-section {
    margin-bottom: 25px;
    padding: 0 20px;
}

.step-section hr {
    border: 0;
    border-top: 1px dashed #CCC;
    margin: 20px 0;
}

.step-title {
    color: #333;
    font-size: 1.1em;
    font-weight: 550;
    margin-bottom: 15px;
}


.step-title span{
		background:#efe9e5;
    padding:0 5px ;
    margin-right:10px;
}

.step-title img{
		width:auto;
    max-width: 110px; 
}

   
.step-note {
    color: #888;
    font-style: italic;
    font-size: 0.9em;
}

.line-id {
    background-color: #f0f0f0;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 1.25em;
}

/* --- 登入表單卡片樣式 --- */
.login-form-card {
    border-radius: 5px;
    padding: 10px;
    background-color: #f9f9f9;
}

.form-instruction {
    text-align: center;
    color: #666;
    margin-top: 0;
    margin-bottom: 20px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-group {
    display: flex;
    align-items: center;
    border: 1px solid #aaa;
    border-radius: 5px;
    background-color: #fff;
}

.input-label {
    background-color: #eee;
    padding: 10px 15px;
    border-right: 1px solid #aaa;
    width: 60px; /* 固定寬度 */
    text-align: center;
    font-weight: bold;
    color: #555;
    flex-shrink: 0;
}

.input-group input {
	width:100%;
    border: none;
    padding: 10px;
    flex-grow: 1;
    font-size: 1em;
    outline: none;
}

/* --- 忘記密碼連結與按鈕 --- */
.forgot-link {
    align-self: flex-end; /* 靠右對齊 */
    color: #007bff;
    text-decoration: none;
    font-size: 0.9em;
    margin-top: 5px;
    margin-bottom: 15px;
}

.submit-button {
    background-color: #007bff;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #0056b3;
}

/* --- 步驟 2 郵寄資訊卡片樣式 --- */
.mail-info-card {
    background-color: #fff;
    border-radius: 5px;
    margin-bottom: 20px;
    position: relative;
    font-size: 0.9em;
    padding:0;
}
.mail-info-card img {
		width:100%;
    max-width: 400px; 

}


/* --- 步驟 2 序號輸入樣式 --- */
.sequence-form {
    display: flex;
    justify-content: left; /* 讓輸入框和按鈕居中 (如果容器夠寬) */
    margin:0 0 10px 8px;
}


.sequence-input-container {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 350px; /* 限制輸入區塊的寬度 */
}

.sequence-input-container input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #000; /* 模擬圖片中黑色的邊框 */
    border-radius: 5px;
    font-size: 1em;
    text-align: center;
    font-weight: bold;
}

.sequence-submit-button {
    background-color: #007bff; /* 可以使用與登入按鈕相同的顏色 */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    flex-shrink: 0;
    transition: background-color 0.3s;
    display:block;
}

.sequence-submit-button:hover {
    background-color: #0056b3;
}

/* --- 專用於地址與訂閱確認頁面 (根據最新圖片) --- */

.address-update-container {
    /* 保持原有的 .container 樣式，提供白色背景和陰影 */
    padding: 0 20px 20px 20px;
    box-shadow:none;
}

.address-update-container h3 {
    color: #333;
    font-size: 1.15em;
    font-weight: 550;
    margin-bottom: 5px;
}


.address-update-container .step-title {
    color: #333;
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 5px;
}

.address-update-container .step-title span{
		padding:5px;
    background:yellow;
}

.address-update-container hr {
    border: 0;
    border-top: 2px dashed #CCC;
    margin: 20px 0 0 0;
}

.update-title {
    font-size: 1.15em;
    font-weight: bold;
    margin: 0;
}

.update-instruction {
    color: #333; /* 圖片中文字顏色較深 */
    margin: 0;
}

.update-form-final {
    display: flex;
    flex-direction: column;
    gap: 15px; /* 增加主要區塊間的間距 */
}

/* --- 地址欄位樣式 --- */
.address-section-final {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.address-line-final {
    display: flex;
    gap: 5px;
    align-items: center;
}

.addr-select-final, .zipcode-input-final, .addr2-input-final {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 2px; /* 邊角較不圓潤 */
    font-size: 1em;
    height: 35px; /* 略微縮小高度 */
    box-sizing: border-box;
}

.addr-select-final {
    width: 100px; /* 讓兩個下拉框更小 */
    flex-shrink: 0;
}

.zipcode-input-final {
    flex-grow: 1; /* 佔據剩餘空間 */
    max-width: 100px; /* 限制寬度，使其看起來更短 */
    width: 20%;
}

.addr2-line .addr2-input-final {
    width: 80%; /* 固定 Adr2 寬度與 ZipCode 大致對齊 */
}

/* --- 訂閱選項樣式 --- */
.subscription-section-final {
    display: flex; /* 使用 Flexbox 讓標題和選項在同一行 */
    align-items: center;
    padding: 5px 0;
}

.subscription-title-final {
    font-weight: normal;
    margin: 0;
    flex-basis: 155px; /* 固定標題寬度 */
    flex-shrink: 0;
    margin-top:-25px;
}

.radio-group-final {
    display: block;
    gap: 15px; /* 是/否之間的間距 */
    align-items: center;
}

.radio-group-final label {
    /* 確保選項文字和按鈕排在一起 */
    display: block;
    align-items: center;
    margin-top: 5px;
    white-space: nowrap; /* 防止換行 */
}

/* 調整單選按鈕和文字的間距 */
.radio-group-final input[type="radio"] {
    margin-right: 5px;
    transform: scale(1); /* 不放大 */
}

/* --- 送出按鈕樣式 --- */
.submit-button-final {
    /* 模仿圖片中左下角的小按鈕 */
    background-color: #007bff; /* 圖片中按鈕為白色背景帶灰色邊框 */
    color: #FFF;
    padding: 8px 20px;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    font-size: 1em;
    font-weight: normal;
    width: 80px; /* 固定小尺寸 */
    align-self: flex-start; /* 靠左對齊 */
    margin-top: 10px;
    transition: background-color 0.3s;
}

footer{
    
	clear:both;
	width:100%;
	margin:0 auto;
	background:#4B3100;
	color:#FFF;
	padding:8px 0;
	text-align:center;
	font-size:0.85rem;
	line-height:1.5;
}


/* --- 手機版響應式優化 (最大寬度 550px) --- */
@media (max-width: 768px) {

.container {
    max-width: 100%;
    padding: 10px 5px;
}

    
    /* 調整容器填充，讓內容不頂到手機邊緣 */
    .address-update-container {
        padding: 5px 15px 15px 15px;
    }

.address-update-container h3 {
    color: #333;
    font-size: 1.05em;
    font-weight: 550;
    margin: 0 0 15px 0;
}


.address-update-container .step-title {
    margin-bottom: 0;
}


.address-update-container hr {
    border: 0;
    border-top: 2px dashed #CCC;
    margin: 10px 0 10px 0;
}
    /* --- 地址欄位調整 --- */

    /* 在小螢幕上，讓第一行地址元素依然使用 Flex 佈局 */
    .address-line-final {
        flex-direction: row; /* 保持水平排列 */
        align-items: center; 
        flex-wrap: wrap; /* 允許元素在空間不足時換行 */
        gap: 10px; /* 元素之間的間距 */
    }

    /* 讓兩個下拉選單 (select) 保持並排，並平均分配寬度 */
    .address-line-final:first-child .addr-select-final {
        width: calc(50% - 5px) !important; /* 讓兩個 select 各佔 50% 寬度，扣除 gap */
        max-width: none !important;
    }
    
    /* 讓郵遞區號 (ZipCode) 佔據一整行 */
    .zipcode-input-final {
        width: 100% !important; /* 郵遞區號單獨佔一行 */
        max-width: none !important;
        /* 在 Flex 容器中，強制它換到下一行 */
        order: 3; 
        margin-top: 5px; 
    }
    
    /* Adr2 輸入框也佔滿寬度 */
    .addr2-line .addr2-input-final {
        width: 100% !important; 
    }

    /* --- 訂閱選項調整 (保持垂直堆疊以優化手機可讀性) --- */
    
    /* 讓標題和選項在小螢幕上垂直堆疊 */
    .subscription-section-final {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .subscription-title-final {
        /* 釋放固定寬度，讓標題佔滿一行 */
        flex-basis: auto; 
        width: 100%;
        margin-bottom: 5px;
    margin-top:5px;
    }

    /* 讓 '是' 和 '否' 的選項依然並排顯示，但靠左 */
    .radio-group-final {
        width: 100%;
        justify-content: flex-start;
    }

    /* --- 送出按鈕調整 --- */
    
    /* 讓按鈕在底部佔滿寬度，更易於點擊 */
    .submit-button-final {
        width: 100% !important; 
        align-self: center; /* 居中 */
        padding: 12px;
        font-size: 1.1em;
    }
    footer span{
    	display:none;
    }
}

