/* --- 全域與基本設定 --- */
body {
    font-family: 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #fdfaf6; /* 溫暖的米白色背景 */
    color: #333;
    line-height: 1.8;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    background-color: #fff;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
}

/* --- 頁首 --- */
header {
    text-align: center;
    border-bottom: 3px solid #d69e8b; /* 仿照圖片的下邊線 */
    margin-bottom: 25px;
    padding-bottom: 15px;
}

h1 {
    font-size: 2.2em;
    color: #5a3a30; /* 深棕色 */
    font-weight: 700;
}

.intro-note {
    font-size: 1.1em;
    text-align: left;
}

.intro-note .star {
    color: #e53935; /* 紅色星號 */
    font-weight: bold;
}

.intro-note .highlight {
    color: #e53935;
}

/* --- 表格樣式 --- */
.table-wrapper {
    overflow-x: auto; /* 核心：讓表格在小螢幕上可以橫向滾動 */
}

table {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid #d69e8b; /* 棕色外框 */
}

th, td {
    border: 1px solid #d69e8b;
    padding: 15px;
    vertical-align: top;
    text-align: left;
}

thead th {
    background-color: #fbeee2; /* 淡橘色/米色 */
    font-size: 1.1em;
    font-weight: 500;
    text-align: center;
}

tbody td {
    background-color: #fff;
}

/* 表格內元素樣式 */
td h3 {
    margin-top: 0;
    font-size: 1.2em;
}

.qr-code {
    display: block;
    width: 100px;
    height: 100px;
    margin-top: 10px;
}

.link-block {
    display: inline-block;
    word-break: break-all;
    color: #007bff;
}

/* 表格內的自訂清單 */
.custom-list {
    list-style-type: none;
    padding-left: 0;
    margin-top: 10px;
}

.custom-list li {
    padding-left: 1.5em;
    position: relative;
    margin-bottom: 5px;
}

.custom-list li::before {
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.custom-list .star-item::before {
    content: '★';
    color: #e53935; /* 紅色 */
}

.custom-list .dot-item::before {
    content: '●';
    color: #333; /* 黑色 */
}

.remark-star {
    color: #e53935; /* 紅色 */
}
.remark-star strong {
    text-decoration: underline;
}

/* --- 底部注意事項 --- */
.notes-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.star-note {
    padding-left: 1.5em;
    position: relative;
}

.star-note::before {
    content: '★';
    color: #e53935;
    position: absolute;
    left: 0;
    font-weight: bold;
}
.star-note.important {
    background-color: #fff9c4; /* 淡黃色背景凸顯 */
    padding: 15px;
    padding-left: 2em;
    border-radius: 5px;
}
.star-note.important::before {
    left: 10px;
}
.button {
	display: inline-block;
	padding: 8px 16px;
	border: 1px solid #1fe028;
	border-radius: 6px;
	color: #15a033;
	min-width: 120px;
	/*margin-top: 1em;*/
	text-decoration: none;
	position: relative;
	transition: all .25s;
	font-size: 1.25em;

    left: 50%;     
	transform: translateX(-50%); /* 再用 transform 往左移自身寬度的一半來精確置中 */
}
.button:after {
	content: "";          /* 偽元素必備 */
	display: block;       /* 讓偽元素成為區塊 */
	position: absolute;   /* 相對於 .button 定位 */
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;             /* top/bottom/left/right 設為 0，使其填滿整個按鈕 */
	
	/* --- 請在這裡設定你想要的底色 --- */
	background: #e0e40a;  /* 例如：一個深綠色 */
	
	/* 確保圓角和按鈕本身一致 */
	border-radius: 4px;   
	
	/* 這是最關鍵的一步！ */
	z-index: -2;          /* 把它放到比 :before 的 -1 更後面一層 */
}
.button:before {
	content: "";
	display: block;
	position: absolute;
	top: 0; bottom: 0; left: 0;
	width: 0;
	background: #f0cd0b;
	border-radius: 4px;
	overflow: hidden;
	opacity: 0;
	transition: all .25s;
	z-index: -1;
}
.button:hover {
	border-color: #28CCF8;
}
.button:hover:before {
	width: 100%;
	right: 0;
	opacity: 1;
}

/* --- 響應式設計 (RWD) --- */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    .container {
        padding: 15px;
    }
    h1 {
        font-size: 1.8em;
    }
    th, td {
        padding: 10px;
        min-width: 180px; /* 確保欄位不會被過度擠壓 */
    }
}