﻿img.agenda { width:50%; max-width:278px;}

.tableFrame { margin: 50px auto 130px auto; padding: 30px; border-radius: 20px; background:#fff; width:100%;}

table.morning,
table.afternoon { margin: 0 auto; padding: 0; width:100%; text-align: left; border-top:#4e1500 1px solid; font-size:22px; font-weight:600; color:#333;}

tbody { width:100%;}

table.morning th,
table.afternoon th { background:#b190c8; color:#fff; font-size:20px; padding: 4px 8px;}
table.morning th.time,
table.afternoon th.time { font-family: var(--font-en); font-size:16px; color:#fff; width:12%;}
table.morning th.issue,
table.afternoon th.issue { width:53%;}
table.morning th.name,
table.afternoon th.name { width:35%;}
table.morning tr,
table.afternoon tr { border-bottom:#cf9ade 1px solid;}
table.morning tr.rest td,
table.afternoon tr.rest td { background:#f1f1f1; color:#666;}
table.morning tr.rest td.issue,
table.afternoon tr.rest td.issue { color:#2e004e;}
table.morning td,
table.afternoon td { line-height: 26px; padding: 8px; background:#fff;}
table.morning td.time,
table.afternoon td.time { font-family: var(--font-en); font-size:16px; color:#716271;}
table.morning td.issue,
table.afternoon td.issue { font-size:24px; font-weight:800; color:#2e004e; width:53%;}
table.afternoon th.RD { background:#9ea0ce; width:29.33%;}
table.afternoon th.RE { background:#9cbde2; width:29.33%;}
table.afternoon th.RF { background:#d18bcd; width:29.33%;}

table.afternoon td.RD { background:#f0f0fc; font-size:20px;}
table.afternoon td.RE { background:#eef7ff; font-size:20px;}
table.afternoon td.RF { background:#ffebfe; font-size:20px;}

table.afternoon .name { display:block; font-size:18px; padding-top:20px; color:#565656;}
table.afternoon .name b { color:#7700a4; font-size:20px;}
table.afternoon .name .line { display:inline-block; margin: 0 8px; color:#ccc; font-weight:normal;}
 
table.morning td.name { font-size:18px; color:#565656; width:35%;}
table.morning td.name b { display:inline-block; color:#7700a4; font-size:22px;}
table.morning td.name .line { display:inline-block; margin: 0 8px; color:#ccc; font-weight:normal;}
table.morning td .brick { color:#b97bc5; font-size:18px; display:block; margin-bottom:0px;}

.note { display:block; text-align:center; padding: 30px 0 0 0; color:#bc8d85; font-size:18px; font-weight:bold;}

.talk { font-size:16px; color:#666; display:block; margin-bottom:0;}
.itemS { font-size:16px; display:block;}

.takeaway { display:block; text-align:center; font-size:24px; color:#cebc9f; font-weight:bold; margin: 50px auto 35px auto;}
.txtL { font-size: 32px; font-family: 'Noto Sans TC', sans-serif; font-weight:800; color:#fff; display:block; margin-top:10px;}
.txtL b { display: inline-block; margin: 0 10px; color:#cebc9f; font-weight:200;}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* 表格基本設定 */
.sticky-table {
  /*min-width: 768px;  依實際欄位寬度可調整 */
  border-spacing: 0;
}

/* 表頭固定（上下） */
.sticky-table thead th {
  position: sticky;
  top: 0;
  background: #f0c5f2;
  z-index: 5;
}

/* 第一欄固定（左右） */
.sticky-table th:first-child,
.sticky-table td:first-child {
  position: sticky;
  left: 0;
  background: #f0c5f2; width:12%;
  z-index: 4;
}

/* 左上角交叉處層級最高 */
.sticky-table thead th:first-child {
  z-index: 6;
}

/* 固定欄陰影（增加專業感） */
.sticky-table th:first-child,
.sticky-table td:first-child {
  box-shadow: 3px 0 8px rgba(0, 0, 0, 0.05);
}

.table-PC { display:table; width:100%;}
.table-M { display: none;}

/* 手機優化 */
@media (max-width: 768px) {

  .sticky-table {
    min-width: 100%;
  }

}


/* --窄螢幕版型------------------------------------- */
@media screen and (min-width: 1025px) and (max-width: 1249px) {

table.morning,
table.afternoon { font-size:22px;}
table.morning th,
table.afternoon th { font-size:20px;}
table.morning td.time,
table.afternoon td.time { font-size:18px;  width:10%;}
table.morning td.issue,
table.afternoon td.issue { font-size:24px; }

table.afternoon td.RD,
table.afternoon td.RE,
table.afternoon td.RF { font-size:20px;}

table.afternoon .name { font-size:18px;}
table.afternoon .name b { font-size:20px;}
 
table.morning td.name { font-size:18px;}
table.morning td.name b { font-size:22px;}
table.morning td .brick { font-size:18px;}

}


/* --平板版型------------------------------------- */

@media screen and (min-width: 768px) and (max-width: 1024px) {

table.morning,
table.afternoon { font-size:20px;}
table.morning th,
table.afternoon th { font-size:18px;}
table.morning td.time,
table.afternoon td.time { font-size:16px;  width:10%;}
table.morning td.issue,
table.afternoon td.issue { font-size:20px; }

table.afternoon td.RD,
table.afternoon td.RE,
table.afternoon td.RF { font-size:18px;}

table.afternoon th.RD,
table.afternoon th.RE,
table.afternoon th.RF { width:23%;}

table.afternoon .name { font-size:16px;}
table.afternoon .name b { font-size:18px;}
 
table.morning td.name { font-size:16px; width:40%;}
table.morning td.name b { font-size:20px;}
table.morning td .brick { font-size:16px;}
}

/* --手機版型------------------------------------- */

@media screen and (max-width: 767px) {

.table-PC { display: none;}
.table-M { display: table;}

.tableFrame { margin: 10px auto 50px auto; padding: 12px; border-radius: 10px; background:#fff;}

table.morning,
table.afternoon { font-size:16px;}
table.morning th,
table.afternoon th { font-size:15px; padding:6px;}
table.morning td,
table.afternoon td { line-height: 22px; padding: 6px;}
table.morning th.time,
table.afternoon th.time,
table.morning td.time,
table.afternoon td.time { font-size:13px; width:6%; line-height:18px;}
table.morning td.issue,
table.afternoon td.issue { font-size:18px; }

table.afternoon td.RD,
table.afternoon td.RE,
table.afternoon td.RF { font-size:16px;}

table.afternoon th.RD,
table.afternoon th.RE,
table.afternoon th.RF { width:26%;}

table.afternoon .name { font-size:14px;}
table.afternoon .name b { font-size:15px;}
 
table.morning td.name { font-size:14px; width:45%;}
table.morning td.name b { font-size:18px;}
table.morning td .brick { font-size:13px;}

.table-M td.time { width:6%;}
.table-M th.issue,
.table-M td.issue { width:94%;}
.table-M .name { font-size:14px; display:block; border-top:#CCC 1px solid; padding: 5px 0 0 0; margin:10px 0 0 0; color:#666;}
.table-M .name b  { font-size:18px; color:#7700a4;}
.table-M .brick { font-size:13px; color:#b97bc5; font-size:18px; display:block; margin-bottom:0px;}

}