
body{
    font-size: 1em;
    font-family: Arial, Helvetica, "微軟正黑體", sans-serif;
}

.mobile_benner{
    display: block;
}

.bg-light{
    background-color:#fff!important;
}

.all_contain .bg-light{
    background-color:#5a7188!important;
}

.all_contain{
    padding: 40px 0 160px 0;
    
    background-position: top center;
    background-repeat:no-repeat; 
}

.logo_nav li a{
    width: 90%;
    margin: 0 auto;
    color:#5a7188;
    font-size:18px; 
}

.dropdown-toggle::after{
    border:none;
}

.contain_nav ul{
    width: 100%;
}

.contain_nav ul li{
    width: 16.6%;
    font-size:18px; 
}

.mobnav{
    display: none;
}

.navbar-dark .navbar-nav .nav-link{
    color:#fff ;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus{
    color: #fffb8a;
}

.dropdown-menu{
    top:150%;
    color:#203b53;
    background-color:rgba(255, 255, 255, 0.8);
    border:1px solid #203b53;
}

.dropdown-item:focus, .dropdown-item:hover{
    color:#fffb8a;
    background-color:#7d8e9f;
}


.contain{
    
    background-color: rgba(255, 255, 255, .6)
}

.contain h4{
    font-size: 1.6em;
    text-align: center;
    color:#203b53 ;
}

.table-striped tbody tr:nth-of-type(odd){
    background-color:#09c8be;
    font-size: 1.5em;
    color:#fff ;
    text-align: center;
}

.table-striped tbody tr:nth-of-type(even) li{
    border-bottom:1px dotted #7d8e9f;
    padding: 8px 0;
}

.inbtn{
    padding-top:36px;
}

.inbtn div a{
    display: block;
    padding-top:260px; 
    text-align: center;
    background-position: center center;
    background-repeat: no-repeat;
    color: #203b53;
    font-size: 1.1em;
}

.inbtn div:nth-child(1) a{background-image: url(images/BTN01.png);}
.inbtn div:nth-child(2) a{background-image: url(images/BTN02.png);}
.inbtn div:nth-child(3) a{background-image: url(images/BTN03.png);}
.inbtn div:nth-child(4) a{background-image: url(images/BTN04.png);}
.inbtn div:nth-child(5) a{background-image: url(images/BTN05.png);}
.inbtn div:nth-child(6) a{background-image: url(images/BTN06.png);}
.inbtn div:nth-child(7) a{background-image: url(images/BTN07.png);}

.inbtn div:nth-child(1) a:hover{background-image: url(images/BTN01_R.png);}
.inbtn div:nth-child(2) a:hover{background-image: url(images/BTN02_R.png);}
.inbtn div:nth-child(3) a:hover{background-image: url(images/BTN03_R.png);}
.inbtn div:nth-child(4) a:hover{background-image: url(images/BTN04_R.png);}
.inbtn div:nth-child(5) a:hover{background-image: url(images/BTN05_R.png);}
.inbtn div:nth-child(6) a:hover{background-image: url(images/BTN06_R.png);}
.inbtn div:nth-child(7) a:hover{background-image: url(images/BTN07_R.png);}

.contain a{
    opacity: 1;
}

.contain a:hover{
    opacity: .75;
}

.contain h5{
    text-align: center;
}

.contain h5 button{
    color:#fff;
    font-size: 1.1em; 
}

.contain h5 button:focus{
    border: 1px solid #3593df;
}

.contain h5 button:hover{
    color:rgb(181, 255, 255) ;
}

.contain .card .btn-link{
    text-decoration: none;
}

.contain .card:nth-child(odd) .card-header{
    background-color: #09c8be;
}

.contain .card:nth-child(even) .card-header h5 button{
    color: #09c8be;
}

.contain ul li{
    padding: 8px;
    margin:0 12px; 
    border-bottom: 1px dotted #7ba9cf;
    text-align: center;
}

.contain ul li:last-child{
    border-bottom: none;
}

.contain ul li a{
    color:#1d4e50;
}

.contain ul li a:hover{
    color:#296e70;
}

.contain h4{
    font-size: 2em;
    color:#335879;
    border-bottom: 1px solid #c0c0c0;
    padding: 0 0px 16px 0px;
    margin: 0 25px;
}

.contain section{
    text-align: center;
}

.contain section a{
    display: block;
    width: 100%;
    height:160px;
    line-height: 160px;
    border-radius: 10px; 
    background-color: #9db9b8;
    font-size: 2em;
    color: #ffffff;
}
.contain section .guide01 a:hover{background-color:#df3559 ; font-size: 1.05em;}
.contain section .guide02 a:hover{background-color:#df3535 ; font-size: 1.05em;}
.contain section .guide03 a:hover{background-color:#df35d1 ; font-size: 1.05em;}
.contain section .guide04 a:hover{background-color:#a935df ; font-size: 1.05em;}
.contain section .guide05 a:hover{background-color:#7635df ; font-size: 1.05em;}
.contain section .guide06 a:hover{background-color:#5a35df ; font-size: 1.05em;}
.contain section .guide07 a:hover{background-color:#354fdf ; font-size: 1.05em;}
.contain section .guide08 a:hover{background-color:#3593df ; font-size: 1.05em;}
.contain section .guide09 a:hover{background-color:#35cbdf ; font-size: 1.05em;}
.contain section .guide10 a:hover{background-color:#35df82 ; font-size: 1.05em;}
.contain section .guide11 a:hover{background-color:#49df35 ; font-size: 1.05em;}
.contain section .guide12 a:hover{background-color:#acdf35 ; font-size: 1.05em;}
.contain section .guide13 a:hover{background-color:#dfdc35 ; font-size: 1.05em;}
.contain section .guide14 a:hover{background-color:#df8735 ; font-size: 1.05em;}
.contain section .guide15 a:hover{background-color:#df4935 ; font-size: 1.05em;}

.contain section .guide01 a:focus{background-color:#df3559 ; font-size: 1.05em;}
.contain section .guide02 a:focus{background-color:#df3535 ; font-size: 1.05em;}
.contain section .guide03 a:focus{background-color:#df35d1 ; font-size: 1.05em;}
.contain section .guide04 a:focus{background-color:#a935df ; font-size: 1.05em;}
.contain section .guide05 a:focus{background-color:#7635df ; font-size: 1.05em;}
.contain section .guide06 a:focus{background-color:#5a35df ; font-size: 1.05em;}
.contain section .guide07 a:focus{background-color:#354fdf ; font-size: 1.05em;}
.contain section .guide08 a:focus{background-color:#3593df ; font-size: 1.05em;}
.contain section .guide09 a:focus{background-color:#35cbdf ; font-size: 1.05em;}
.contain section .guide10 a:focus{background-color:#35df82 ; font-size: 1.05em;}
.contain section .guide11 a:focus{background-color:#49df35 ; font-size: 1.05em;}
.contain section .guide12 a:focus{background-color:#acdf35 ; font-size: 1.05em;}
.contain section .guide13 a:focus{background-color:#dfdc35 ; font-size: 1.05em;}
.contain section .guide14 a:focus{background-color:#df8735 ; font-size: 1.05em;}
.contain section .guide15 a:focus{background-color:#df4935 ; font-size: 1.05em;}

footer{
    background-color:#344d62 ;
    color: #fff;
    line-height:1.8;
}

footer a{
    color: #fffb8a;
}

footer a:hover{
    color:#fadb2e ;
}



/*-----------------------------------------------------*/
@media (max-width: 992px) {

.mobile_benner{
    display: block;
    }    

.all_contain{
    background-image: none;
    background-position: top center;
    background-repeat:none; 
    padding: 15px 0;
    }    

.contain_head{
    display: none;
}

.logo_head .navbar-brand{
    width: 75%;
    height: auto;
}

.mobnav{
    display: block;
}

.contain{
    padding-top:20px;
    background-color: rgba(255, 255, 255, .6)
}

.inbtn div a{
    display: block;
    padding-top:260px; 
    text-align: center;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 90%;
    color: #203b53;
    font-size: 1.1em;
}

.contain section a{
    display: block;
    width: 100%;
    height:100px;
    line-height: 100px;
    border-radius: 10px; 
    background-color: #9db9b8;
    font-size: 1em;
    color: #ffffff;
}


footer{
    background-color:#344d62 ;
    color: #fff;
    text-align: center;
}

footer a{
    color: #fffb8a;
}

footer a:hover{
    color:#fadb2e ;
}

/* ===================================================== */
/* 法規頁面現代化美化樣式 (Law Page UI Enhancement)        */
/* ===================================================== */
.law-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a365d;
}

.law-title-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3182ce, #63b3ed);
    border-radius: 2px;
    margin: 8px 0 14px 0;
}

.law-search-bar .form-control {
    border-radius: 0 10px 10px 0;
    padding: 12px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.law-search-bar .input-group-text {
    border-radius: 10px 0 0 10px;
}

.law-table-wrapper {
    overflow-x: auto;
}

.law-table th {
    font-weight: 700;
    color: #4a5568;
    background-color: #f7fafc;
    border-top: none;
    padding: 14px 18px;
}

.law-table td {
    padding: 16px 18px;
    vertical-align: middle;
}

.law-num-td {
    width: 8%;
}

.law-num-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #edf2f7;
    color: #4a5568;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
}

.law-link {
    font-weight: 600;
    color: #2b6cb0;
    font-size: 1.025rem;
    line-height: 1.6;
    transition: color 0.2s ease;
}

/* ===================================================== */
/* 水污染防治頁面現代化美化樣式 (Water Page UI Enhancement)*/
/* ===================================================== */
.water-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a365d;
}

.water-title-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #319795, #3182ce);
    border-radius: 2px;
    margin: 8px 0 14px 0;
}

.water-map-card img {
    max-height: 450px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.water-map-card img:hover {
    transform: scale(1.01);
}

.river-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    margin-bottom: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.river-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.river-card-header {
    background: #f7fafc;
    border-bottom: 1px solid #edf2f7;
    padding: 16px 24px;
}

.river-card-body {
    padding: 22px 24px;
}

.river-desc {
    font-size: 0.975rem;
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 16px;
}

.text-teal { color: #319795; }

/* 宣導觀念卡片顏色對比度修正 (High Contrast Concept Cards) */
.concept-card {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.concept-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

.concept-card h6 {
    color: #1a202c !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin-top: 10px;
    margin-bottom: 8px;
}

.concept-card p {
    color: #4a5568 !important;
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
}


.law-link:hover {
    color: #2c5282;
    text-decoration: underline;
}

.date-badge {
    background: #ebf8ff;
    color: #2b6cb0;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.badge-primary-light { background: #ebf8ff; color: #3182ce; }
.badge-info-light { background: #e6fffa; color: #319795; }

.team-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 8px;
}

.team-title-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #2b6cb0, #4299e1);
    border-radius: 2px;
    margin-bottom: 20px;
}

.team-banner-wrapper {
    margin-bottom: 24px;
    text-align: center;
}

.team-banner-wrapper img {
    width: 100%;
    max-width: 850px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.info-badge-card {
    display: flex;
    align-items: flex-start;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 16px;
}

.info-badge-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.badge-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-right: 14px;
    flex-shrink: 0;
}

.bg-primary-light { background: #ebf8ff; color: #3182ce; }
.bg-success-light { background: #f0fff4; color: #38a169; }

.badge-content {
    flex-grow: 1;
}

.badge-label {
    display: block;
    font-size: 0.85rem;
    color: #718096;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-value {
    display: block;
    font-size: 0.95rem;
    color: #2d3748;
    font-weight: 600;
    margin-top: 4px;
    line-height: 1.5;
}

.feature-card {
    background: #ffffff;
    border-radius: 14px;
    border-left: 5px solid #38a169;
    border-top: 1px solid #edf2f7;
    border-right: 1px solid #edf2f7;
    border-bottom: 1px solid #edf2f7;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    padding: 24px 28px;
    margin-top: 8px;
    margin-bottom: 24px;
}

.feature-card-header h5 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
}

.feature-card-body p {
    font-size: 0.975rem;
    color: #4a5568;
    line-height: 1.85;
    margin-bottom: 14px;
}

.feature-card-body p:last-child {
    margin-bottom: 0;
}









}
