#container

h1, h2, h3, h4, h5, h6 {
    font-family: "Microsoft JhengHei", Arial, Helvetica, sans-serif;
}
p, a, input, label, textarea, span, ul, li {
    font-family: "Microsoft JhengHei", Arial, Helvetica, cursive;
}


.my-gradient {
    background: linear-gradient(180deg, #dde7f8 0%, #8999c2 100%);
}
.title .navbar {
    background-color: #eefaff;
}

header {
    background: #fff;
    padding: 16px 0;
    width: 100%;
    box-sizing: border-box;
}
.form-control {
    padding: 15px;
    background-color: #eef1f6;
}

body {
    overflow-x: hidden;
    margin: 0px 0px 0px 0px!important;
    min-height: 100vh;
    background: linear-gradient(180deg, #dde7f8 0%, #8999c2 100%);
}
.navbar {
    background: #fff ;
    position: relative;
    z-index: 1001;
    border: none;
    box-shadow: none;
    padding: 10px 20px;
}


.dropdown-menu {
    background-color: #e6f4ff;
    border: none;
    box-shadow: none;
}

.banner-text, .banner-text2 {
    display: inline-block;
    opacity: 0;
    animation-duration: 1.2s;
    animation-fill-mode: forwards;
}

.banner-text {
    transform: translateY(-30px);
    animation-name: fallDown;
}

.banner-text2 {
    transform: translateY(30px);
    animation-name: riseUp;
}

@keyframes fallDown {
    0% {
        opacity: 0;
        transform: translateY(-30px); /* 從上方開始 */
    }

    100% {
        opacity: 1;
        transform: translateY(0); /* 回到原本位置 */
    }
}


@keyframes riseUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 彈跳視窗整個居中 */
.modal-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    z-index: 1055;
}

/* 彈跳視窗內文字居中 */
.modal-body {
    text-align: center;
    font-size: 16px;
    line-height: 1.8;
    
}
.modal-header {
    background-color: #afb5bf;
}
.header_logo {
    width: 320px;
    max-width: 100%;
    height: auto;
}

h3{
    font-size :36px; 
    line-height: 1.5;
}
p{
    color:#707070;
}
img {
    max-width: 100%;
    
}

p.lead{
    color:black;
}
#intro .jumbotron {
    height: 70vh;
    margin-bottom: 0px;
    padding: 80px 0px;
    display: flex;
    justify-content: center; /* 水平置中 */
    align-items: center; /* 垂直置中 */
    text-align: center; /* 文字多行時置中 */
}

/*讓標題文字變大、與網頁上面間隔距離調整*/
#intro h1{
    font-size: 52px;
    font-weight: 500;
    line-height: 2;
}

/*讓文字上下置中*/
#intro .container {
    position: static;
    transform: none;
}
header nav img{
    width: 118px;
}
/* ==== 導覽按鈕樣式 ==== */
.nav-link.btn-nav {
    display: inline-block;
    padding: 10px 26px;
    margin: 4px 8px;
    background-color: #8999c2; /* 按鈕底：柔藍綠 */
    color: #dde7f8 !important; /* 字色：活力藍，不通俗 */
    font-weight: 600;
    border-radius: 12px;
    border: 2px solid transparent;
    text-decoration: none;
    transition: transform 0.35s ease, background-color 0.35s ease, box-shadow 0.35s ease;
   
}



header li{
    margin: 0 18px;
    font-size: 20px;
} 
#second{
    padding: 80px 0px;
}
#second h3{
    width: 780px;
    border-radius: 100px;
    margin-bottom: 36px;
}
#second img{
    width: 100px;
    border-radius: 100px;
    margin-bottom: 36px;
}
#latest{
    padding: 80px 0px;
    background: rgb(248,248,248); 
}
#latest h3{
    margin-bottom:80px;
}
#latest .upper{
    position: relative;
}
#latest .innertext{
    position:absolute;
    bottom:0px;
    left:15px;
}
#latest .innertext span {
    background: rgba(43, 175, 255, 0.3);
    padding: 6px 6px;
    border-radius: 20px;
}
#latest .innertext h4{
    font-size: 14px;
    margin-top:18px;
}
#latest .lower h3{
    font-size: 18px;
    margin-bottom: 10px;
    margin-top: 10px;
}
#latest .lower i{
    margin-right:6px;
}
#latest .outer{
    background: white;
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.13);
}
#latest .lower{
    padding: 6px 20px 20px 20px;
}

#latest a{
    color:black;
    text-decoration:none;
}
#latest a:hover{
    text-decoration:none;
}
#email{
    padding:80px 0px;
}
#email h3{
    margin-bottom: 80px;

}
footer{
    border-top: 1px solid #c9c9c9;
    padding: 80px 0px;
}
footer img{
    width: 166px;
    margin-bottom: 24px;
}
footer h4{
    margin-bottom: 24px;
}
footer a{
    color:red;
    text-decoration: none;
}
footer ul{
    list-style: none;
    padding: 0;
    float: left;
    margin-right: 30px;
    
    
}
footer li{
    margin-bottom: 10px;
    
}
footer ul li a{
    color:#707070;
    text-decoration: none;
       
}
footer ul li a:hover {
    color: #000; /* 滑過可變色 */
    text-decoration: none;
}

.my-swal-popup {
    width: 30%; /* 桌機寬度 */
    max-width: 500px; /* 限制最大寬度 */
}

.pagination-container table {
    margin: 20px auto;
}


.btn-back:hover {
    background-color: #3399ff; /* 滑鼠 hover 顏色加深 */
    transform: translateY(-1px); /* 微微浮起效果 */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}


/* 展開選單背景延伸 */
.navbar-collapse {
    background: #fff;
    width: 100%;
    padding: 10px 20px;
    border-radius: 0 0 20px 20px;
    transition: all 0.4s ease;
}

/* 展開動畫 */
.navbar-collapse.collapse.show {
    background: #fff;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
  0% { opacity: 0; transform: translateY(-15px); }
  100% { opacity: 1; transform: translateY(0); }
}



/* 每個按鈕進場延遲 */
.navbar-nav li:nth-child(1) .btn-nav {
    animation-delay: 0.2s;
}

.navbar-nav li:nth-child(2) .btn-nav {
    animation-delay: 0.4s;
}

/* 滑入動畫 */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* 滑過效果 */
.nav-link.btn-nav:hover {
    background-color: #A3B1D9; /* 更亮一點的清新藍 */
    border-color: #8F9EC2;
    box-shadow: 0 0 12px rgba(120,200,220,0.5);
    color: #0f5470 !important;
    
}

/* ==== 手機選單開關（漢堡） ==== */
.navbar-toggler {
  background:#8999C2;
  color: #dde7f8 !important;
  border: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.navbar-toggler-icon {
  background-image: none;
  width: 24px;
  height: 2px;
  background-color: #8999c3;
  position: relative;
  display: block;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: "";
    width: 24px;
    height: 2px;
    background-color: #464e63;
    position: absolute;
    left: 0;
}

.navbar-toggler-icon::before { top: -8px; }
.navbar-toggler-icon::after { top: 8px; }

/* ==== 導覽按鈕靠左排列 ==== */
.navbar-nav {
  margin-right: 0 !important;
}
.navbar .container-fluid {
    max-width: 100% !important;
    padding: 0 5%;
}

.btn {
    background: #768abf;
    font-size: 20px;
    color: #dde7f8;
    padding: 9px 25px;
    border-radius: 20px;
    font-weight: bold;
}




.Searchfooter {
    width: 100%;
    background-color: #d8e6f2;
    text-align: center;
    font-size: 15px;
    color: #333;
    padding: 20px 10px; /* 合理 padding，不撐高度 */
}

.title-icon {
    width: 36px; /* 圖片寬度，可依需要調整 */
    height: auto; /* 保持比例 */
    margin-left: 8px; /* 與文字的間距 */
    margin-top:32px;
    vertical-align: middle; /* 垂直置中對齊文字 */
}
.title-flex {
    display: flex;
    justify-content: center; /* 水平置中整組 */
    align-items: center; /* 垂直置中對齊 */
    gap: 10px; /* 文字與圖距離 */
}

.title-flex h1 {
    font-size: 36px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.title-line {
    border: 2px solid #5c6a9b;
    width: 100%;
    margin: 8px auto 25px auto;
    border-radius: 2px;
}


.card {
    border-radius: 20px;
    
}
.card h5, .card h4 {
     margin-bottom: 10px;
}

/* 回上一頁按鈕 */
.btn-back {
    background-color: #4da6ff; /* 較淡的藍色，比首頁/聯絡按鈕低一階 */
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 5px 15px; /* 高度比一般 btn-sm 小一點 */
    font-size: 0.9rem; /* 較小字體 */
    display: flex;
    align-items: center;
    gap: 5px; /* 文字和 icon 間距 */
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    transition: all 0.2s ease-in-out;
}



    /* 加 icon 用 ::before 或直接在 Button 加 <i> */
.btn-back::before {
    content: url('../Images/back_icon.png'); /* 替換成你的回上一頁 icon */
    display: inline-block;
    vertical-align: middle;
}



.pagination-container span {
    background-color: #4b6c8f; /* active 頁碼背景藍色 */
    color: white; /* active 頁碼文字白色 */
    border-color: #4b6c8f;
}

.pagination-container .aspNetDisabled {
    pointer-events: none;
    background-color: #e9ecef;
    color: #6c757d;
    border-color: #dee2e6;
}

/* ===== GridView Pager：桌機 & 手機同款 ===== */
.pagination-container {
    text-align: center;
    padding: 15px 0;
}

.pagination-container a,
.pagination-container span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 34px;
    height: 34px;
    margin: 4px;
    border-radius: 50%;
    background: #C7C3F5;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

/* 目前頁碼 */
.pagination-container span {
    background: #3E597E;
    font-weight: bold;
}

/* hover */
.pagination-container a:hover {
    background: #4a5a78;
}



.scroll-area::-webkit-scrollbar {
    width: 6px;
}
.scroll-area::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.35);
    border-radius: 3px;
}
.scroll-area::-webkit-scrollbar-track {
    background: transparent;
}
.fixed-card {
    position: relative; /* 預設位置 */
    height: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 10px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    z-index: 1;
}

.scroll-area {
    height: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.25s ease;
}
.card-wrapper {
    position: relative; /* 為絕對定位的卡片提供參考 */
    height: auto; /* 預設高度 */
    margin: 10px;
    flex: 1;
}


.card-img-top {
    width: 100%;
    max-height: 210px;
    height: auto;
    object-fit: contain;
}
/* 左側欄位整個欄位垂直排列 */
.custom-left-column {
    display: flex;
    flex-direction: column;
    
}

/* 左側欄位卡片寬度 100%，只影響左側 */
.custom-left-column .card-wrapper {
    width: 100%;
    position: relative; /* 避免 hover 浮起破版 */
}

/* 左側圖片卡片高度可調 */
.custom-left-column .image-card {
    height: auto; /* 或固定高度例如 260px */
}

/* 左側 3 個框框卡片高度可固定 */
.custom-left-column .left-code-card {
    height: 15%;/* 可依需要調整 */
}

.drug-img-box {
    width: 100%;
    height: 120px;
    background-color: #AEE2FF; /* 與圖1相同藍色 */
    display: flex;
    justify-content: center;
    align-items: center;
}
.drug-img-box.no-img {
    background-color: #AEE2FF;
}
.drug-img-box img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}
.nav-pills .nav-link{
    font-weight:bold;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    background-color: white;
}
.text-ingredient {
    color: #6f00b6;
}
.nav-pills .nav-link {
    transition: all 0.3s ease;
}
.nav-pills .nav-link:hover {
    transform: translateY(-2px);
}

.text-warning {
    color: rgb(93 70 5) !important;
}
.text-primary {
    color: rgb(25 50 72) !important;
}
.text-danger {
    color: rgb(150 7 21) !important;
}
.text-success {
    color: rgb(0 84 46) !important;
}

.dataTables_info {
    font-size: 14px !important;
    color: #352172 !important;
    margin-top: 10px !important;
    margin-left: 37px !important;
}
/*表格右下的頁碼列*/
.dataTables_paginate {
    margin-right: 35px;
}

.dataTables_wrapper .dataTables_paginate {
    float: none !important;
    text-align: center;
    margin-top: 10px !important;
    padding:10px 0;
}

/*表格右下的頁碼列-按鈕樣式*/
.dataTables_paginate .paginate_button {
    padding: 6px 12px !important;
    margin: 0 3px !important;
    border-radius: 6px !important;
    border: 1px solid #8999c2 !important;
    background: #fff !important;
    color: #352172 !important;
}

/*表格右下的頁碼列-目前頁按鈕樣式*/
.dataTables_paginate .paginate_button.current {
    background: #c5cfe8 !important;
    color: #fff !important;
    border: 1px solid #8999c2!important;
}

/*表格右下的頁碼列-滑鼠hover按鈕樣式*/
.dataTables_paginate .paginate_button:hover {
    background: #4d6e90 !important;
    
}
/* 修正 Previous / Next（disabled）hover 變黑字 */
.dataTables_paginate .paginate_button.disabled,
.dataTables_paginate .paginate_button.disabled:hover {
    color: #aaa !important;
    background: #e0e0e0 !important;
    cursor: not-allowed;
}

/*表格左上，顯示X筆資料css*/
.dataTables_length label {
    font-size: 14px !important;
    color: #352172 !important;
    margin-top: 10px !important;
    margin-bottom: 10px !important;  
    font-weight: bold; /*粗體*/
}

/*表格右上，篩選欄位資料css*/
.dataTables_filter label {
    font-size: 14px !important;
    color: #352172 !important;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
    font-weight: bold; /*粗體*/
}


/*網頁到底部後，一鍵往上按鈕*/
#gotoTop {
    position: fixed;
    right: 20px;
    bottom: 30px;
    width: 40px;
    height: 40px;

    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    z-index: 9999;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#gotoTop.show {
    opacity: 1;
    pointer-events: auto;
}

#gotoTop:hover {
    background: rgba(0, 0, 0, 0.45);
}

/* 向上箭頭 */
#gotoTop .icon-angle-up {
    width: 10px;
    height: 10px;
    border-left: 2px solid #fff;
    border-top: 2px solid #fff;
    transform: rotate(45deg);
    margin-top: 4px;
}

/* 補回左 / 右 / 下邊框（模擬正常表格外框） */
.GvG tr:last-child {
    border-left: 1px solid #ffffff;
    border-right: 1px solid #ffffff;
    border-bottom: 1px solid #ffffff;
}
/* 滑鼠移到整列時，該列所有 td 都變色 */
.GvG tr:not(:first-child):not(:last-child):hover td {
    background-color: #aac9eb; /* hover色 */
    cursor: pointer; /* 滑鼠變手型 */
}
/* 中文名第 2 欄 */
.GvG td:nth-child(2) {
    font-size: medium;
}

/* 商品名第 3 欄 */
.GvG td:nth-child(3) {
    font-size: medium;
}

/*drugdetail用藥方法多出文字滾動*/
.drugmethod-scroll {
    max-height: 250px; /* ⭐ 重點：限制高度 */
    overflow-y: auto; /* ⭐ 超出 → 上下滾動 */
}


/* 
   只影響桌機（Bootstrap lg↑）
 */
@media (min-width: 992px) {
    /* 1️⃣ 桌機表格使用固定欄寬策略 */
    .GvG {
        table-layout: fixed;
        width: 100%;
    }

    /* 2️⃣ 中文名、商品名是主要欄位 */
    .GvG th:nth-child(1),
    .GvG td:nth-child(1) {
        width: 6%;
    }



    /* 2️⃣ 中文名、商品名是主要欄位 */
    .GvG th:nth-child(2),
    .GvG td:nth-child(2) {
        width: 20%;
    }

    .GvG th:nth-child(3),
    .GvG td:nth-child(3) {
        width: 20%;
    }

    /* 3️⃣ 成份及含量：不撐寬，只負責換行 */
    .GvG th:nth-child(4),
    .GvG td:nth-child(4) {
        white-space: normal; /* 允許換行 */
        word-break: break-word; /* 長字強制斷行 */
        word-wrap: break-word;
    }

    /* 2️⃣ 中文名、商品名是主要欄位 */
    .GvG th:nth-child(5),
    .GvG td:nth-child(5) {
        width: 6%;
    }


    /* Pager 那一格 td */
    .GvG tr.pagination-container > td {
        text-align: center; /* 核心 */
        padding: 16px 0;
     }

    /* Pager 內層 table */
    .GvG tr.pagination-container table {
        margin: 0 auto; /* 核心 */
        width: auto; /* 避免被撐滿 */
    }
     /* Pager 那一格 td */
    .GvG tr.pagination-container > td {
        text-align: center; /* 核心 */
        padding: 16px 0;
    }

    /* Pager 內層 table */
    .GvG tr.pagination-container table {
        margin: 0 auto; /* 核心 */
        width: auto; /* 避免被撐滿 */
    }

    .GvG tr:hover td {
        background: #9ebbd9 ;
    }

    /* table pager */
    .pagination-container table {
        display: inline-block; /* 保證 table 可見並置中 */
        margin: 0 auto; /* 水平置中 */
        border-collapse: separate; /* td 間距獨立 */
        border-spacing: 6px; /* 每個頁碼間距 */
    }

    .pagination-container td {
        padding: 0; /* 移除多餘 padding */
        text-align: center; /* 文字置中 */
    }

    .pagination-container a,
    .pagination-container span {
        display: inline-flex; /* flex 方便置中 */
        justify-content: center;
        align-items: center;
        width: 36px; /* 固定大小 */
        height: 36px; /* 固定大小 */
        border-radius: 50%; /* 圓形 */
        margin: 0; /* 間距靠 table border-spacing */
        font-size: 14px;
        text-decoration: none;
        color: #fff;
        background: #C7C3F5;
    }

    /* 當前頁 */
    .pagination-container span {
        background: #3E597E;
        font-weight: bold;
    }

    /* hover 效果 */
    .pagination-container a:hover {
        background: #4a5a78;
    }
    /* 奇數列 */
    table.GvG tbody tr.odd td {
        background-color: #e8edf5;
    }

    /* 偶數列 */
    table.GvG tbody tr.even td {
        background-color: #c4d2ed;
    }

    /*表格左上，顯示X筆資料css*/
    .dataTables_length label {
        margin-left: 38px;
    }

    /*表格右上，篩選欄位資料css*/
    .dataTables_filter label {
        margin-right: 38px;
    }

   

    

}



/* 平板 */
@media (min-width: 769px) and (max-width: 991px) {
    .my-swal-popup {
        width: 60%;
    }

    body {
        margin: 0px 0px 0px 0px !important;
    }
    /* 奇數列 hover */
    table.GvG tbody tr.odd:hover td {
        background-color: #e8edf5 !important;
    }
    /* 偶數列 hover */
    table.GvG tbody tr.even:hover td {
        background-color: #c4d2ed !important;
    }

    /*    .GvG tr:first-child:last-child:hover td {
        background: #aac9eb;
    }*/

    /* 奇數列 */
    table.GvG tbody tr.odd td {
        background-color: #e8edf5;
    }

    /* 偶數列 */
    table.GvG tbody tr.even td {
        background-color: #c4d2ed;
    }


    /* 1取消藥品查詢按鈕 (及所有 .btn) 的 hover 效果 */
    .btn:hover {
        background-color: #768abf !important; /* 強制維持原色 */
        color: #dde7f8 !important; /* 強制維持原字色 */
        transform: none !important; /* 取消任何位移 */
        box-shadow: none !important; /* 取消陰影 */
    }


    /* 回上一頁hover */
    .btn-back:hover {
        background-color: #4da6ff; /* 滑鼠 hover 顏色加深 */
        transform: none; /* 微微浮起效果 */
        box-shadow: none;
        color: white;
    }

    /*頁碼hover*/
    .pagination-container a:hover {
        background: #c7c3f5;
    }

    a:link:hover {
        color: #352172;
        text-decoration: none;
    }




    /* 漢堡展開時 navbar-collapse */
    .navbar-collapse {
        opacity: 0;
        transform: translateX(-30px);
        transition: none; /* 關掉原本的 transition */
    }


    .navbar-collapse.collapse.show {
        opacity: 1;
        transform: translateX(0);
        transition: transform 0.5s ease, opacity 0.5s ease;
    }

    /* 每個按鈕依序延遲出現 */
    .navbar-nav li:nth-child(1) .btn-nav {
        opacity: 0;
        transform: translateX(-20px);
        transition: transform 0.5s ease 0.2s, opacity 0.5s ease 0.2s;
    }

    .navbar-collapse.collapse.show .navbar-nav li:nth-child(1) .btn-nav {
        opacity: 1;
        transform: translateX(0);
    }

    .navbar-nav li:nth-child(2) .btn-nav {
        opacity: 0;
        transform: translateX(-20px);
        transition: transform 0.5s ease 0.4s, opacity 0.5s ease 0.4s;
    }

    .navbar-collapse.collapse.show .navbar-nav li:nth-child(2) .btn-nav {
        opacity: 1;
        transform: translateX(0);
    }

    /*漢堡列hover*/
    .nav-link.btn-nav:hover {
        background-color: #8999c2; /* 更亮一點的清新藍 */
        border-color: none;
        box-shadow: none;
        color: #dde7f8 !important;
    }

    .nav-pills .nav-link:hover {
        transition: none;
        transform: none;
    }
    /*表格下方，顯示共幾筆資料*/
    .dataTables_info {
        margin-left: 25px !important;
    }

    /*表格左上，顯示X筆資料css*/
    .dataTables_length label {
        margin-left: 20px;
    }

    /*表格右上，篩選欄位資料css*/
    .dataTables_filter label {
        margin-right: 20px;
    }

    /*表格右下的頁碼列*/
    .dataTables_paginate {
        margin-right: 20px;
    }

    /*表格右下的頁碼列-滑鼠hover按鈕樣式*/
    body #container .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
        background: #fff !important;
        background-image: none !important; /* 強制移除原廠漸層 */
        color: #696969 !important;
    }
    /* 修正 Previous / Next（disabled）hover 變黑字 */
    body #container .dataTables_paginate .paginate_button.disabled,
    body #container .dataTables_paginate .paginate_button.disabled:hover {
        color: #696969 !important;
        background: #e0e0e0 !important;
        cursor: not-allowed;
    }

     /*表格右下的頁碼列-目前頁按鈕樣式*/
    body #container .dataTables_wrapper .dataTables_paginate .paginate_button.current,
    body #container .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
        background: #c5cfe8 !important;
        background-image: none !important; /* 強制移除原廠漸層 */
        color: #696969 !important;
    }

    /*網頁到底部後，一鍵往上按鈕*/
    #gotoTop:hover {
        background: rgba(0, 0, 0, 0.3);
    }
}

/*手機板*/
@media (max-width: 768px) {
    #intro h1 {
        font-size: 52px;
        font-weight: 500;
        line-height: 1.5;
    }
    .GvG {
        width: 100%;
        table-layout: auto;
    }


    /* 隱藏bootstrap內建code會多出thead表頭 */
    .GvG thead tr {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

    /* 1. 取消藥品查詢按鈕 (及所有 .btn) 的 hover 效果 */
    .btn:hover {
        background-color: #768abf !important; /* 強制維持原色 */
        color: #dde7f8 !important; /* 強制維持原字色 */
        transform: none !important; /* 取消任何位移 */
        box-shadow: none !important; /* 取消陰影 */
    }

    .GvG td {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        padding: 8px 0 !important;
        border: none !important;
        width: 100%;
        text-align: left;
    }

    .GvG td > *:last-child {
        text-align: left !important;
    }

     /* ⭐ 關鍵：欄位名稱來自 data-label */
    .GvG td::before {
       content: attr(data-label) "：";
       font-weight: bold;
       color: #555;
       display: inline-block; /* 改 flex 預設成 inline-block */
       min-width: 40%; /* 保持欄位寬度 */
       box-sizing: border-box;
    }

    /* 整列卡片樣式（只限資料列，不含 Pager） */
    .GvG tr:not(.pagination-container) {
       display: block;
       margin: 12px 0;
       padding: 12px 15px;
       border: 1px solid #ccc;
       border-radius: 12px;
       background: #fff;
       box-shadow: 0 2px 5px rgba(0,0,0,.07);
     }

     /* 第一欄（醫令代碼）字變大 */
    .GvG td:first-child {
       font-size: 18px;
       font-weight: bold;
       margin-bottom: 6px;
       color: #333;
       border-bottom: 1px solid #ddd;
       padding-bottom: 10px;
    }



    /* 第一欄下面畫分隔線 */
    .GvG td:first-child {
       border-bottom: 1px solid #ddd;
       padding-bottom: 10px;
       margin-bottom: 10px;
    }

    .fixed-card {
        height: auto; /* 整個卡片高度，可依需要調整 */
        min-height: unset;
        display: flex;
        flex-direction: column; /* 標題跟內容垂直排列 */
    }

    /* 🔒 Pager：手機版保持表格行為 */
    .GvG tr.pagination-container td {
        display: inline-block !important;
        width: auto !important;
        padding: 0 !important;
        border: none !important;
    }

    .GvG tr.pagination-container {
        display: flex !important;
        justify-content: center;
        flex-wrap: wrap;
        align-items: center;
    }

    /* 🔒 Pager：不要顯示欄位標題文字 */
    .GvG tr.pagination-container td::before {
        content: none !important;
        display: none !important;
    }

    /* td 不准自己長腳 */
    .pagination-container td {
        margin: 0 !important;
        padding: 0 !important;
        vertical-align: middle;
    }

    .GvG tr:last-child {
        border-left: none;
        border-right: none;
        border-bottom: none;
    }

    .pagination-container table {
        margin: 0px;
    }

    /* 讓外層 group 變成一個整體 */
    .custom-mobile-group {
        display: flex;
        flex-direction: column;
    }

    /* 讓代碼卡片往上靠近上一個 card */
    .custom-mobile-group .code-card {
        margin-top: -10px; /* 貼到上一卡片底部 */
        margin-left: 20px; /* 與內層對齊 */
        margin-right: 20px;
        border-radius: 0 0 10px 10px; /* 視覺整合 */
    }

    /* 移除額外陰影，變得像同一卡片 */
    .custom-mobile-group .code-card {
        box-shadow: none !important;
        border-top: 1px solid #ddd; /* 分隔線 */
    }

    .btn-nav.animate-in {
        animation: navSlideIn 0.45s ease forwards;
    }

    /* 漢堡展開時 navbar-collapse */
    .navbar-collapse {
        opacity: 0;
        transform: translateX(-30px);
        transition: none; /* 關掉原本的 transition */
    }


    .navbar-collapse.collapse.show {
        opacity: 1;
        transform: translateX(0);
        transition: transform 0.5s ease, opacity 0.5s ease;
    }

    /* 每個按鈕依序延遲出現 */
    .navbar-nav li:nth-child(1) .btn-nav {
        opacity: 0;
        transform: translateX(-20px);
        transition: transform 0.5s ease 0.2s, opacity 0.5s ease 0.2s;
    }

    .navbar-collapse.collapse.show .navbar-nav li:nth-child(1) .btn-nav {
        opacity: 1;
        transform: translateX(0);
    }

    .navbar-nav li:nth-child(2) .btn-nav {
        opacity: 0;
        transform: translateX(-20px);
        transition: transform 0.5s ease 0.4s, opacity 0.5s ease 0.4s;
    }

    .navbar-collapse.collapse.show .navbar-nav li:nth-child(2) .btn-nav {
        opacity: 1;
        transform: translateX(0);
    }

    .my-swal-popup {
        width: 79%;
    }
    /* 手機板表格hover */
    .GvG tr:not(:first-child):not(:last-child):hover td {
        background: #E8EDF5;
    }

    /* 回上一頁hover */
    .btn-back:hover {
        background-color: #4da6ff; /* 滑鼠 hover 顏色加深 */
        transform: none; /* 微微浮起效果 */
        box-shadow: none;
        color: white;
    }

    .pagination-container a:hover {
        background: #c7c3f5;
    }

    /*頁碼hover*/
    .pagination-container a:hover {
        background: #c7c3f5;
    }
    a:link:hover {
        color: #352172;
        text-decoration: none;
    }
    /*漢堡列hover*/
    .nav-link.btn-nav:hover {
        background-color: #8999c2; /* 更亮一點的清新藍 */
        border-color: none;
        box-shadow: none;
        color: #dde7f8 !important;
    }

    .nav-pills .nav-link:hover {
        transition: none;
        transform: none;
    }

    /*表格左上，顯示X筆資料css*/
    .dataTables_length label {
        margin-left: 16px;
    }

    /*表格右上，篩選欄位資料css*/
    .dataTables_filter label {
        margin-right: 18px;
    }

    /*表格右下的頁碼列-目前頁按鈕樣式*/
    /*因為權重不足，color設定會被內建jqery.dataTables.min.css吃掉，故加上"body #container"、".dataTables_wrapper"*/
    body #container .dataTables_wrapper .dataTables_paginate .paginate_button.current,
    body #container .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
        background: #c5cfe8 !important;
        background-image: none !important;
        color: #696969 !important;
    }

    /*表格右下的頁碼列-滑鼠hover按鈕樣式*/
    /*因為權重不足，color設定會被內建jqery.dataTables.min.css吃掉，故加上"body #container"、".dataTables_wrapper"*/
    body #container .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
        background: #fff !important;
        background-image: none !important; /* 強制移除原廠漸層 */
        color: #696969 !important;
    }

    /* 修正 Previous / Next（disabled）hover 變黑字 */
    /*因為權重不足，color設定會被內建jqery.dataTables.min.css吃掉，故加上"body #container"*/
    body #container .dataTables_paginate .paginate_button.disabled, 
    body #container .dataTables_paginate .paginate_button.disabled:hover {
        color: #696969 !important;
        background: #e0e0e0 !important;
        cursor: not-allowed;
    }

    /*網頁到底部後，一鍵往上按鈕*/
    #gotoTop:hover {
        background: rgba(0, 0, 0, 0.3);
    }
}