/* --- 全域與基本設定 --- */
body {
    font-family: 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
    margin: 0;
    padding: 20px;
    background: linear-gradient(135deg, #fce3ec, #fde4e4, #fff1e6); /* 模擬柔和的背景色 */
    color: #333;
    line-height: 1.7;
}

/* --- 主要邀請卡容器 --- */
.invitation-card {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    border-radius: 20px;
    padding: 30px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #fff;
}

/* --- 頁首區塊 --- */
header {
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.welcome-text {
    font-size: 3em;
    font-weight: bold;
    color: #f7a399; /* 提取 Welcome 的橘色 */
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.school-name {
    font-size: 1.1em;
    color: #555;
    margin: 0;
}

h1 {
    font-size: 2em;
    font-weight: 700;
    color: #222;
    margin: 10px 0 0;
}

/* --- 主要內容區塊 --- */
.content-section p {
    font-size: 1.1em;
    color: #444;
}

.highlight-date {
    color: #d9534f; /* 醒目的紅色 */
    font-weight: bold;
}

.section-title {
    text-align: center;
    font-size: 1.4em;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 500;
}

/* --- 表格樣式 --- */
.table-container {
    overflow-x: auto; /* 在小螢幕上可以橫向滾動 */
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 1em;
}

th, td {
    border: 1px solid #ccc;
    padding: 12px 15px;
    text-align: left;
    vertical-align: top;
}

thead th {
    background-color: #f9f9f9;
    font-weight: 500;
    text-align: center;
}

tbody td {
    background-color: #fff;
}

/* 表格內容中的段落不要有額外邊距 */
td p {
    margin: 0;
    padding: 0;
    font-size: 1em; /* 讓表格內字體稍小 */
}
/* 讓表格內的多行內容有點間距 */
td p + p {
    margin-top: 8px;
}

tbody td:first-child,
tbody td:last-child {
    text-align: center;
    vertical-align: middle;
}


/* --- 頁尾與簽名 --- */
footer {
    margin-top: 30px;
}

.signature-block {
    text-align: right;
    line-height: 1.8;
    font-size: 1.1em;
}

.signature-block p {
    margin: 0;
}

.footer-links {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.footer-links a {
    color: #007bff;
    text-decoration: none;
    display: block; /* 讓連結各自佔一行，方便點擊 */
    margin-bottom: 8px;
    transition: color 0.2s;
    font-size: 1.5rem;
}

.footer-links a:hover {
    color: #0056b3;
    text-decoration: underline;
}
.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;
    }

    .invitation-card {
        padding: 20px;
        margin: 20px auto;
    }

    .welcome-text {
        font-size: 2.5em;
    }

    h1 {
        font-size: 1.6em;
    }

    th, td {
        padding: 8px 10px;
    }
}