@charset "utf-8";
/* CSS Document */

* {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

html {
    width: 100%;
    height: 100%;
    font-family: Arial, Helvetica, "微軟正黑體", sans-serif;
    text-size-adjust: none;
    font-size: 15px;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}


.wap {
    margin: 0;
    width: 100%;
    height: auto;
	background-color: #06b4ea;
}

header {
    background-image: url(../image/head-bg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: auto;
    background-position: center;
    overflow: hidden;
    padding-bottom: 42%;
}

.header-data {
    background: linear-gradient(to right, #f9b700 0%, #eee18a 30%, #fccc0c 64%, #f1efc4 100%);
    min-height: 150px;
    /* 關鍵 */
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.title-outline {
    font-size: 50px;
    font-weight: 900;
    color: #1F429B;
    text-shadow:
        /* 白色外框八方向 */
        2px 0 #fff, -2px 0 #fff, 0 2px #fff, 0 -2px #fff,
        1.5px 1.5px #fff, -1.5px 1.5px #fff, 1.5px -1.5px #fff, -1.5px -1.5px #fff,
        /* 橘色陰影 */
        4px 4px 8px rgba(255, 162, 0, 0.6);
}

/* 歷年狀元*/
main {
  padding: 0px calc((100% - 1200px) / 2) 80px;
}
header1 {
  overflow: hidden;
}

header1 img {
  object-fit: cover;
  width: 100%;
}

main .bo01 {
  width: 1200px;
  margin: 20px auto 40px;
  padding: 5px;
  float: left;overflow:hidden;
}
main .bo01 ul { margin: 0;
      padding: 0;
      list-style: none; /* 移除 li 前面的點點或數字 */
        }
main .bo02 {
	margin: 1%;
  width: 23%; /* 25% 減去 padding 的空間 */
  padding: 5px; /* 1% + 1% = 2% */
  float: left; /* 讓元素向左浮動 */
  background: #d3a879;
  text-align: center;
  box-sizing: border-box; /* 同樣建議使用 */
}

main .bo03 {
  width: 100%;
  margin: 0 auto;
  padding:5px;
  background: #b81c25;
  font-size: 2rem;
  color: #fac243;
  font-weight: bold;
}
 main .bo04 {
  width: 100%;
  margin: 0 auto;
  padding:10px;
  background: #f9efe5;
  font-size: 1.2rem;
  color: #231815;
}
main .bo05{ font-size: 1.6em;font-weight: bold;color:#113c96; }


/*圖片切換*/
.pic {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0;
    text-align: center;
}

.pic-m {
    width: 0;
    height: 0;
    overflow: hidden;
}
.h2{font-size:1.2em ;}

/* 榜單區 */
.top01 {
    padding: 0px calc((100% - 1100px)/2);
    text-align: center;
    padding-bottom: 70px;
	overflow: hidden;
background: 
        url(../image/firework-2.png) no-repeat 10% 10% / 100px,
        url(../image/firework-3.png) no-repeat 90% 20% / 80px,
		url(../image/firework-3.png) no-repeat 15% 85% / 120px,
        url(../image/firework-2.png) no-repeat 85% 90% / 90px, /* 煙火圖案的位置 */
		         #06b4ea; /* 最後是底色 */
 }

.top01 img {
    max-width: 100%;
}

.top01 .st-title{
	font-size: 50px;
    font-weight: 700;
    text-align: center;
    margin-top: 40px;
	padding:40px 0 20px 0;
    color: #ffffff;
	

    /* 白色主字 */
    text-shadow:
        2.5px 0 #663500,
        -2.5px 0 #663500,
        0 2.5px #663500,
        0 -2.5px #663500,
        2.5px 2.5px #663500,
        -2.5px 2.5px #663500,
        2.5px -2.5px #663500,
        -2.5px -2.5px #663500,
        /* 陰影 */
        4px 4px 6px rgba(255, 255, 255, 0.538);

	
}
.top01>div {
    padding: 20px 15px;
    background-color: #fff;
    border: 5px solid #efc203;
    border-radius: 15px;
    box-shadow: 0 0 10px #840000;
}



.top01>div table {
    width: 100%;
    text-align: center;
}

.top01 > div table tr:nth-child(odd) {
  background-color: #ddbff7;
}

.top01>div table td {
	padding: 0 0 0 20px;
    font-size: 1.6em;
    line-height: 1.6;
    color: #005BAC;
}



.top01>div table td:nth-child(1) {
    width: 45%;
}

.top01>div table td:nth-child(2) {
    width: 30%;
    }
.top01>div table td:nth-child(3) {
    width: 25%;color: #030303;
    }

/* 115警察榜單 */
.top02 {
    padding: 0px calc((100% - 1100px)/2);
    text-align: center;
    padding-bottom: 70px;
	overflow: hidden;
background: 
        url(../image/firework-2.png) no-repeat 10% 10% / 100px,
        url(../image/firework-3.png) no-repeat 90% 20% / 80px,
		url(../image/firework-3.png) no-repeat 15% 85% / 120px,
        url(../image/firework-2.png) no-repeat 85% 90% / 90px, /* 煙火圖案的位置 */
		         #06b4ea; /* 最後是底色 */
 }

.top02 img {
    max-width: 100%;
}

.top02 .st-title{
	font-size: 50px;
    font-weight: 700;
    text-align: center;
    margin-top: 40px;
	padding:40px 0 20px 0;
    color: #ffffff;
	

    /* 白色主字 */
    text-shadow:
        2.5px 0 #663500,
        -2.5px 0 #663500,
        0 2.5px #663500,
        0 -2.5px #663500,
        2.5px 2.5px #663500,
        -2.5px 2.5px #663500,
        2.5px -2.5px #663500,
        -2.5px -2.5px #663500,
        /* 陰影 */
        4px 4px 6px rgba(255, 255, 255, 0.538);

	
}
.top02>div {
    padding: 20px 15px;
    background-color: #fff;
    border: 5px solid #562AD6;
    border-radius: 15px;
    box-shadow: 0 0 10px #840000;
}



.top02>div table {
    width: 100%;
    text-align: center;
}

.top02 > div table tr:nth-child(odd) {
  background-color: #F9E7C0;
}

.top02>div table td {
	padding: 0 0 0 20px;
    font-size: 1.6em;
    line-height: 1.6;
    color: #005BAC;
}



.top02>div table td:nth-child(1) {
    width: 33%;
}

.top02>div table td:nth-child(2) {
    width: 13%;
    }
.top02>div table td:nth-child(3) {
    width: 35%;
    }
.top02>div table td:nth-child(4) {
    width: 19%;color: #030303;
    }

/* 警特考取榜單 */
.alllist {
    padding: 0 calc((100% - 1100px)/2);
    text-align: center;
	background: 
        url(../image/firework.png) no-repeat 10% 10% / 100px,
        url(../image/firework-1.png) no-repeat 90% 20% / 80px,
		url(../image/firework-1.png) no-repeat 15% 85% / 120px,
        url(../image/firework.png) no-repeat 85% 90% / 90px, /* 煙火圖案的位置 */
		         #06b4ea; /* 最後是底色 */
	
}

.alllist .st-title {
    font-size: 50px;
    font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    font-weight: 700;
    margin-top: 5px;
	padding:30px 0 10px 0;
    /* 粗一點的中文字 */
    color: #c9172c;
	    /* 白色主字 */
    text-shadow:
        /* 藍色外框八方向 */
        2.5px 0 #fff,
        -2.5px 0 #fff,
        0 2.5px #fff,
        0 -2.5px #fff,
        2.5px 2.5px #fff,
        -2.5px 2.5px #fff,
        2.5px -2.5px #fff,
        -2.5px -2.5px #fff,

        /* 橘色陰影，遠一點模糊一點 */
        4px 4px 6px rgba(255, 200, 0, 0.8);
}
.alllist img {
    max-width: 100%;
}

.alllist>div {
    margin: 10px 0 30px;
    padding: 10px 40px;
    background-color: #fff;
    border: 5px solid #bcbbbb;
    border-radius: 15px;
    box-shadow: 0 0 10px #4f4f4e;
display: flex;
}

.grid.info {
    display: grid;
    /* 4組：(標題佔一份) (名字自動寬度) - 重複4次共8欄 */
    grid-template-columns: repeat(4, auto auto ); 
    justify-content: center; 
	column-gap: 0;
    width: 100%;
    align-items: center;
    padding: 20px 10px;
	font-size: 1.5em;
	overflow:hidden;
}
/* --- 類科格 (1, 3, 5,7,9) --- */
.grid.info > div:nth-child(odd) {
    color: #005BAC;
        text-align: right; /* 讓標題往右靠，貼近名字 */
    padding-right: 20px; /* 控制【類科】與【名字】的距離，越小越近 */
}

/* --- 名字格 (2, 4, 6,8,10) --- */
.grid.info > div:nth-child(even) {
    color: #333;
	font-weight: bold;
    text-align: left; /* 讓名字往左靠，貼近標題 */
    padding-right: 40px; /* 控制【這一組】與【下一組】的距離 */
}

/* ---畫垂直線 --- */
.grid.info > div:nth-child(8n-2),.grid.info > div:nth-child(8n-4),
.grid.info > div:nth-child(8n-6){
    position: relative;
}
.grid.info > div:nth-child(8n-2)::after,.grid.info > div:nth-child(8n-4)::after,
.grid.info > div:nth-child(8n-6)::after{
    content: "";
    position: absolute;
    right: 20px; /* 控制線條在間距中的位置 */
    top: 25%;
    height: 50%;
    border-right: 1px solid #878686;
}

/* 針對每一排的最後一個名字格（第 8, 16... 格） */
.grid.info > div:nth-child(8n) {
    padding-right: 0; /* 消除最後一組多餘的右邊距 */
    text-align: left;
}

.ta1 {
    text-align: center;
    font-size: 1.2em;
    color: #231815;
    padding: 5px;}
/*考經 */
.experience .st-title{
    font-size: 50px;
    font-weight: 700;
    text-align: center;
    margin-top: 0px;
	padding:40px 0 20px 0;
    color: #ffffff;

    /* 藍色外框八方向 */
    text-shadow:
        2.5px 0 #004584,
        -2.5px 0 #004584,
        0 2.5px #004584,
        0 -2.5px #004584,
        2.5px 2.5px #004584,
        -2.5px 2.5px #004584,
        2.5px -2.5px #004584,
        -2.5px -2.5px #004584,
		
        /* 陰影 */
        4px 4px 6px rgba(255, 255, 255, 0.538);
}

.experience img {
    max-width: 100%;
}
.experience {
	padding: 0 calc((100% - 1100px)/2);
    text-align: center;
     
    }

.exp-card {
    max-width: 600px;
    margin: 0 auto; margin-bottom: 40px;
    text-align: left; /* 修正原本 center 的影響 */
	padding: 25px 0 8px 0;
	background: repeating-linear-gradient(
        45deg,                /* 斜線角度 */
        #e3f7fc,              /* 顏色 1 (淺黃) */
        #e3f7fc 2px,         /* 顏色 1 結束位置 */
        #d7f0f4 6px,         /* 顏色 2 (稍微深一點點的黃) 開始位置 */
        #d7f0f4 12px          /* 顏色 2 結束位置 */
    );
}

.exp-header {
    display: flex;
    align-items: center;
	justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 0 15px;
	
}

.exp-avatar {
    width:130px;
    height:130px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #fcf3c5;
    flex-shrink: 0;
}
.exp-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.exp-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.f1 {
    background-color: #5572e7;
    color: #fff;
    padding: 5px 20px;
    border-radius: 50px;
    font-weight: bold;
    display: inline-block;
    width: fit-content;
    font-size: 2em;
}

.exp-name {
    font-size: 2em;
    margin: 0;
    font-weight: bold;
    color: #333;
}

.exp-category {
    font-size: 1.2em;
    color: #555;
    margin: 0;
}

.exp-content { width: 90%; margin: 0 auto;margin-bottom: 20px;
    background-color: #fff;
    border-radius: 20px;
    padding: 20px;
    line-height: 1.8;
    color: #333;
    font-size: 1.2em;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: relative;
	height: 280px;       /* 根據需求調整數值 */
    overflow-y: auto;   
}

.f2 {
    color: #e60012; /* 依照需求改色，圖中似乎是強調色 */
    font-weight: bold;
}



.updata {
    text-align: center;
    font-size: 1.2em;
    color: #231815;
    padding: 5px;
}



/* ===== 筆電(1400px 以下) ===== */
@media screen and (max-width: 1400px) {
    .grid.info {
        /* 維持 4 組 8 欄位 */
        grid-template-columns: repeat(4, auto auto);
        /* 稍微降低字體大小，增加保險絲 */
        font-size: 1.4em;         
    }

    /* 調整名字格的右間距：因為字少了，間距可以縮小一點 */
    .grid.info > div:nth-child(even) {
        padding-right: 35px; 
    }

    /* 線條位置同步微調 */
    .grid.info > div:nth-child(8n-6)::after,
    .grid.info > div:nth-child(8n-4)::after,
    .grid.info > div:nth-child(8n-2)::after {
        right: 15px; 
    }
	
	.grid.info > div:nth-child(8n) {
    padding-right: 0; /* 消除最後一組多餘的右邊距 */
    text-align: left;
}
}
  


/* ===== moblie ===== */
@media (max-width:767px) {
    header {
        background-image: url(../image/head-moblie.jpg);
        background-repeat: no-repeat;
        background-size: cover;
        width: 100%;
        height: auto;
        padding-bottom: 85%;
    }

    main {
        padding: 0;
    }

    /*圖片切換*/
    .pic {
        width: 0;
        height: 0;
        overflow: hidden;
    }

    .pic-m {
        display: block;
        width: 100%;
        height: auto;
        margin: 0;
    }

    /* 榜單區 */
    .top01 {
        padding: 0;
        padding-bottom: 20px;
		
		
    }

    .top01 img {
        max-width: 90%;
    }

    .top01>div {
        margin:  0 10px 0;
        padding: 10px;
        border: 2px solid #fef176;
		
    }

   .top01>div table {
        margin: 0;
        width: 100%;
		padding: 5px;
    }

   .top01>div table td {
        font-size: 0.9em;
    }

    .top01>div table td:nth-child(1) {
        width: 45%;
    }

    .top01>div table td:nth-child(2) {
        width: 30%;
    }

    .top01>div table td:nth-child(3) {
        width: 25%;
    }

    

	.top01 .st-title{
	font-size: 1.3em;
	margin-top: 10px;
	padding:15px 0 5px 0;
	background-image: url(../image/h01-m.png);
	background-repeat: no-repeat;
        background-size: cover;}
	
	
	
 /* 115警察榜單 */
    .top02 {
        padding: 0;
        padding-bottom: 20px;
		
		
    }

    .top02 img {
        max-width: 90%;
    }

    .top02>div {
        margin:  0 10px 0;
        padding: 10px;
        border: 2px solid #fef176;
		
    }

   .top02>div table {
        margin: 0;
        width: 100%;
		padding: 5px;
    }

   .top02>div table td {
        font-size: 0.9em;
    }

    .top02>div table td:nth-child(1) {
        width: 28%;
    }

    .top02>div table td:nth-child(2) {
        width: 15%;
    }

    .top02>div table td:nth-child(3) {
        width: 35%;
    }
.top02>div table td:nth-child(4) {
        width: 22%;
    }
    

	.top02 .st-title{
	font-size: 1.3em;
	margin-top: 10px;
	padding:15px 0 5px 0;
	background-image: url(../image/h01-m.png);
	background-repeat: no-repeat;
        background-size: cover;}	
	
	
.alllist .st-title {
    font-size: 1.3em;
     margin-top: 5px;
	padding:15px 0 5px 0;
	background-image: url(../image/h02-m.png);
	background-repeat: no-repeat;
        background-size: cover;
    
}

.alllist {  padding: 0 10px; /* 留一點邊距，不要貼死螢幕 */
    }
.alllist>div {
    margin: 10px 0 40px;
    padding: 8px 20px;    
    border: 2px solid #bcbbbb;
    border-radius: 15px;
    }
.grid.info {
        /* 改為 2 組：(類科 名字) (類科 名字) 共 4 欄 */
        grid-template-columns: repeat(2, auto auto); 
        padding: 15px 5px;
        font-size: 0.9em; /* 手機版字體稍微縮小一點才不會太擠 */
    }

    /* --- 先清除電腦版 8 欄位的線條邏輯 --- */
    .grid.info > div::after {
        display: none; 
    }

    /* --- 重新設定 4 欄位的線條邏輯 --- */
    /* 只要是第 2, 6, 10... 個格子（也就是第一組的名字）就畫線 */
    /* 公式是 4n-2 */
    .grid.info > div:nth-child(4n-2) {
        position: relative;
    }

    .grid.info > div:nth-child(4n-2)::after {
        content: "";
        display: block; /* 重新顯示線條 */
        position: absolute;
        right: 20px;    /* 調整線條在間距中的位置 */
        top: 25%;
        height: 50%;
        border-right: 1px solid #878686;
    }

    /* --- 調整手機版的間距 --- */
    .grid.info > div:nth-child(even) {
        padding-right: 40px; /* 組與組之間的距離 */
    }
    
    /* 每排最後一格（第 4, 8, 12...）不需要右邊距與線條 */
    .grid.info > div:nth-child(4n) {
        padding-right: 0;
    }
    
.ta1 {font-size: 0.8em;    }
    
/* 歷年狀元*/
	
header1 img {max-width: 100%;
  object-fit: cover;  
}	
	
main .bo01 {
  width: 100%;
  margin: 5px auto 10px;
  padding: 5px;
  float: left;overflow:hidden;
}
main .bo01 ul { margin: 0;
      padding: 0;
      list-style: none; /* 移除 li 前面的點點或數字 */
        }
	
main .bo02 {
	margin: 1%;
  width: 48%; /* 25% 減去 padding 的空間 */
  padding: 5px; /* 1% + 1% = 2% */
  float: left; /* 讓元素向左浮動 */
   box-sizing: border-box; /* 同樣建議使用 */
}

main .bo03 {
  width: 100%;
	height: 20%;
   padding:5px;
   font-size: 1.3rem;
  
}
main .bo04 {
	height: 90px;
  width: 100%;
   padding:10px;
    font-size: 1rem;
  }	
	
main .bo05{ font-size: 1.3em;}	
	
	
	
    /*考經*/
     .experience {
        padding: 3% 0;
         }
 .experience .st-title{
	font-size: 1.3em;
	margin-top: 8px;
	padding:6px 0 10px 0;}
   
	.experience img {
        max-width: 90%;
    }
.exp-header {
        flex-direction: column;
        text-align: center;
    }
    .f1 {font-size: 1.2em;
        margin: 0 auto;
    }
    .exp-avatar {
        width: 100px;
        height: 100px;
    }
	
	.exp-card {
    width: 90%;
    margin-bottom: 10px;
    padding: 15px 0 5px 0;
	}

	
	

.exp-name {
    font-size: 1.2em;
    }

.exp-category {
    font-size: 0.9em;
    
}
.exp-content { 
    font-size: 0.9em;
    
}


	
    .win {
        padding: 0;

    }

    .win img {
        max-width: 90%;
    }

   
 .updata {
        font-size: 0.8em;
    }


	
}