@charset "utf-8";
* {box-sizing:border-box;}

body {
	margin: 0 ;
	padding: 0 ;
	background-image: url(../images/dsej_edutv2_04.jpg);
	background-repeat: repeat-x;
	background-position: top;
	background-color: #99DFE7;
}
td,body,li {
	font-size: 16px;
	line-height: 150%;
}


a:link,a:visited {
	color: #0000FF;
	text-decoration: none;
}
a:hover,a:active {
	color: #FF0000;
}

/* back-to-top */
.back-to-top {
	background: #cecece;
	border-radius: 6px;
	bottom: 20px;
	color: #FFFFFF;
	display: block;
	font-size: 40px;
	height: 50px;
	line-height: 42px;
	position: fixed;
	right: 20px;
	text-align: center;
	width: 50px;
	z-index: 50;
	display: none;
}
.back-to-top:link,.back-to-top:hover, .back-to-top:focus {
	color: #fff;
}

.speclink a:link,.speclink  a:visited {
	color:#333;
	text-decoration: none;
}
.speclink  a:hover,.speclink  a:active {
	color: #FF0000;
	text-decoration: none;
}

.aside_ad {border:1px solid #ccc;width:210px;}
.aside_ad_con {background-color:#f1f1f1;margin:8px;padding:3px;overflow:hidden}
.aside_ad_con div.item {margin:0 0 8px 0;width:100%}
.aside_ad_con div.item .title {margin:0 3px;}

ul.icon_tv {list-style:none;padding:0;margin:0 5px;}
ul.icon_tv li {background:url(../images/ee.gif) 0 2px no-repeat;padding:0 0 0 20px;margin-bottom:3px;}

.maincontent {
	background-color:#fff;
}
.footer a {color:#0099CC;}
.footer a:hover {color:#FF9900;}

.shadow3 {  FILTER: DropShadow(Color=#cccccc, OffX=3, OffY=3, Positive=4)}

.border1 {border:3px solid #fff}
.font15 {font-size:15px;}
.font17 {font-size:17px;}
.footer {
	background-image: url(../images/dsej_edutv2_20.gif);
	background-position: top;
	background-color: #99DFE7;
	background-repeat: repeat-x;
}
.tit_show {color:#000099;font-weight:bold;}
.preview_date {line-height:150%;font-weight:bold;padding:3px 10px;border-left:7px solid #99CC00;color:#000099;margin:10px 0 3px 0;background-color:#fff;font-size:16px;}
.postit {line-height:150%;font-weight:bold;padding:3px 10px;border-left:7px solid #99CC00;color:#000099;margin:10px 0 3px 0;background-color:#fff;font-size:16px;border-right:1px solid #999999;border-bottom:1px solid #999999;}
.index_date {line-height:150%;font-weight:bold;padding:3px 5px;color:#000099;font-size:16px;}
.index_list {border-top:1px solid #ccc;border-bottom:2px solid #ccc;}

.border_dash td {border-bottom:1px dashed #ccc;}

.select {font-size:16px;border:1px solid #009900;background-color:#FFFFCC;font-weight:bold;color:#009900;}
.year td {font-weight:bold;}
.eng {font-family:Arial; font-size:12px;letter-spacing:0px;}

.promo_pic { FILTER: DropShadow(Color=#cccccc, OffX=3, OffY=3, Positive=4);}
.promo_pic img {border:1px solid #ccc;}
.promo_txt {line-height:120%;}
.nav {margin-top:40px;}
.nav td.text {padding:0 7px;}
.nav a {color:#fff;font-weight:bold;font-size:16px;letter-spacing:0;}
.nav a:hover {color:#FFFF00}

/********** nav + con **************/
.nav td.text {padding:0 7px;}
.nav a {color:#fff;font-weight:bold;font-size:16px;letter-spacing:0;}

.fontsize {
	font-size: 13px;
}
img.border1 {
	margin-right: 10px;
}
img.border11 {
	margin-left: 8px;
	width: 100px;
	height: 75px;
	object-fit: cover;
}
.index_list td {
	padding: 3px 8px 3px 8px
}
td, body, li {
	font-size: 16px;
}
.tit_show {
	color: #000099;
}
.alertbox {
	border: 1px #CC0000 solid;
	background: #FFEEEE;
	padding: 5px;
	margin-bottom: 10px;
}
.alertbox ul {
	list-style: none;
	margin: 0;
	padding: 0
}
.alertbox li {
	/*background: url(images/lamp_0016.gif) 4px 7px no-repeat;*/
	padding: 2px 10px;
	margin: 0;
}
.progPreview {
	background-color: #E1FFFF;
	padding: 10px
}
.progItem {
	margin: 10px 5px;
	padding: 10px;
	background-color: #DFFFBF
}
.progDate {
	line-height: 150%;
	font-weight: bold;
	padding: 3px 10px;
	border-left: 7px solid #99CC00;
	color: #000099;
	margin: 10px 0 10px 0;
	background-color: #fff;
	font-size: 16px;
}
.progTV {
	background-color: #BBF4A8;
	padding: 5px;
	font-weight: bold;
	text-align: center;
	margin-bottom: 10px
}
.progContent {
	display: flex;
	justify-content: space-between;
	align-items: start;
	margin-bottom: 10px;
}
.progContent h2 {
	font-weight: bold;
	font-size: 16px;
	margin: 0;
	padding: 0;
	margin-bottom: 5px
}
.progContent .mainpic.index, .progPreview .mainpic {
	width: 120px;
	height: 70px;
	padding-left: 7px;
	object-fit: cover;
}

/*************** intro2 *************/

    .intro {
            max-width: 600px;
            width: 100%; 
             margin: 0 auto;
    }
        .grid-container {
            max-width: 600px;
            width: 100%;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1.2rem;
            margin-bottom:2.5rem;
        }
        .card {
            background-color: #FFFFFF;
            border-radius: 1rem;
            overflow: hidden;
            cursor: pointer;
            text-decoration: none;
            display: block;
            transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.2);
            box-shadow: 0 4px 7px -3px rgba(0, 0, 0, 0.12), 0 2px 3px -2px rgba(0, 0, 0, 0.05);
            border: 1px solid rgba(255, 200, 120, 0.5);
            backdrop-filter: blur(0px);
        }
        .card:hover {
            transform: translateY(-4px);
            box-shadow: 0 7px 9px -3px rgba(0, 0, 0, 0.22), 0 4px 7px -3px rgba(0, 0, 0, 0.1);
            border-color: #FFB347;
        }
        .card-inner {
            padding: 1rem 1.2rem 1rem 1.2rem;
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.9rem;
        }
        .card-icon {
            width: 60px;
            height: 60px;
            background: linear-gradient(145deg, #FFE9BF, #FFD89A);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 0.2rem;
            transition: all 0.25s ease;
         }

        .icon-symbol {
            font-size: 2rem;
            font-weight: 500;
            line-height: 1;
            filter: drop-shadow(0 2px 2px rgba(0,0,0,0.05));
        }
        .card-title {
            font-size: 1.5rem;
            font-weight: 700;
            letter-spacing: 1px;
            color:#000;
            margin: 0;
            line-height: 1.25;
        }
        /* 響應式：平板維持兩列，寬度縮放卡片內距微調 */
        @media (max-width: 780px) {
            .grid-container {
                gap: 1.5rem;
            }
            .card-inner {
                padding: 1.5rem 1rem 1.4rem;
            }
            .card-title {
                font-size: 1.6rem;
            }
            .icon-symbol {
                font-size: 2.4rem;
            }
            .card-icon {
                width: 70px;
                height: 70px;
            }
        }
        /* 手機維持固定一行兩張 (小螢幕時縮小比例但仍保持兩列美觀) */
        @media (max-width: 560px) {
            body {
                padding: 1.5rem 0.8rem;
            }
            .grid-container {
                gap: 1rem;
            }
            .card-inner {
                padding: 1.2rem 0.8rem;
            }
            .card-title {
                font-size: 1.2rem;
                letter-spacing: 0;
            }
            .icon-symbol {
                font-size: 1.8rem;
            }
            .card-icon {
                width: 55px;
                height: 55px;
            }
        }

/***********  preview ************/
        .tit_show {
    color: #000099;
}
.progPreview {background-color:#E1FFFF;padding:10px}
.progItem {margin:10px 5px;padding:10px;background-color:#DFFFBF}
.progDate {
    line-height: 150%;
    font-weight: bold;
    padding: 3px 10px;
    border-left: 7px solid #99CC00;
    color: #000099;
    margin: 10px 0 10px 0;
    background-color: #fff;
    font-size: 16px;
}

.progTV {background-color:#BBF4A8; padding:5px;font-weight:bold;text-align:center;margin-bottom:10px}
.progContent {display:flex;justify-content:space-between;margin-bottom:10px;}
.progContent h2 {font-weight:bold;font-size:16px; margin:0;padding:0;margin-bottom:5px}
.progContent .mainpic, .progPreview .mainpic{
    width: 200px;height: 120px; padding-left:7px;object-fit: cover;

}
.fancybox {cursor:pointer}

/********** promo **********/
/* 最外層容器 (取代原本的 table width="637" bgcolor="#E8FFFF") */
.promo-container {
    width: 637px;
    max-width: 100%; /* 增加響應式支援 */
    margin: 0 auto;
    background-color: #E8FFFF;
    padding: 15px; /* 取代 cellspacing="10" */
}

/* 卡片本體 (取代原本套用背景圖的內層 table) */
.promo-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    padding: 20px 15px 15px 15px;
}

/* 標題列 (使用 CSS 漸層取代圖片 promo_dl.jpg / promo_ad.jpg 的上半部) */
.promo-header {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    padding: 8px 15px;
    margin: -20px -15px 20px -15px; /* 負邊距讓標題列貼齊卡片邊緣 */
    border-radius: 5px 5px 0 0;
}

/* 橘色漸層標題 */
.header-orange {
    background: linear-gradient(to bottom, #ef5a29, #d13d10);
}

/* 黃橘色漸層標題 */
.header-yellow {
    background: linear-gradient(to bottom, #f7ab2a, #e88a11);
}

/* 內容網格 (取代內層 table 與 tr/td) */
.promo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* 設定項目之間的間距 */
}

/* 單一項目 (取代 td width="25%") */
.promo-item {
    width: calc(25% - 15px); /* 維持原本的 25% 寬度比例並扣除間距 */
    min-width: 120px; /* 防止在極小螢幕下擠壓 */
    display: flex;
    flex-direction: column;
    align-items: center; /* 水平置中 */
    text-align: center;
}

/* 圖片連結樣式 */
.promo-img-link {
    display: block;
    margin-bottom: 10px;
}

.promo-img-link img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 1px solid #eee;
    padding: 3px; /* 模擬原本 promo_pic 的內距 */
    background-color: #fff;
    transition: transform 0.2s ease;
}

.promo-img-link:hover img {
    transform: scale(1.05); /* 增加滑鼠移入的微互動效果 */
}

/* 文字連結樣式 (取代 class="promo_txt") */
.promo-txt-link {
    color: blue;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.4;
}

.promo-txt-link:hover {
    text-decoration: underline;
}

/* 響應式設計：在小螢幕上調整為兩欄或一欄 */
@media (max-width: 600px) {
    .promo-item {
        width: calc(50% - 15px); /* 變成兩欄 */
    }
}
@media (max-width: 350px) {
    .promo-item {
        width: 100%; /* 變成單欄 */
    }
}
