/*
 * Please place your own CSS code to this file
 *
 */
ins.adsbygoogle[data-ad-status="unfilled"] {
  display: none !important;
}
.toc-js-container.is-visible {
  display: contents;
}
.user-logged-in nav.tabs {
    top: 180px;
}    
.site-branding img {
    width: 160px;
}
.node .field--type-image {
  width: 100%;
}
@media all and (min-width: 991px) {
  .page-node-type-article #main-container {
      margin-top: 40px;
  }
}
@media all and (max-width: 768px) {
    header {
      margin-bottom: 0px;
  }
 .toc-js ul {
      padding-left: .1.6rem;
  }
}
li.toc-h3 {
    margin-left: 20px;
    list-style-type: circle;
}
.post p {
    line-height: 1.87;
}
.post h2 {
    margin: 1.6rem 0;
    font-size: 1.6rem;
}
.decoview .post h2 {
    margin: 0;
    font-size: .9rem;
}

.post table {
    border-collapse: separate;
    border-spacing: 0;
    border-width: 1px 0 0 1px;
    margin: 0 0 1.5em;
    width: 100%;
}
.post table {
    border: 1px solid #dddddd;
}
.post td, .post th {
    padding: .7em 1em;
    border-width: 0 1px 1px 0;
}
.post th {
    font-weight: 600;
}
.media {
    position: relative;
    width: 100%;
    height: 450px;
}
@media only screen and (max-width: 480px) {
.media {
    position: relative;
    width: 100%;
    height: 200px;
 }
}
.post iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.post .field--name-field-category,
#block-sandbox-content em {
    display: none;
}
.tsmc1 {
    margin: 0 0 20px 0;
}


/* 表格容器：確保手機版可以橫向捲動 */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-radius: 8px;
}

/* 表格本體設定 */
.jb-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* 強制最小寬度，確保按鈕不會擠在一起 */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #fff;
}

/* 表頭樣式 */
.jb-table thead tr {
    background-color: #2c3e50; /* 深藍色，專業感 */
    color: #ffffff;
    text-align: left;
}

.jb-table th, .jb-table td {
    padding: 15px 15px;
    border-bottom: 1px solid #dddddd;
}

/* 排名欄位特別樣式 */
.rank-col {
    width: 60px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1em;
}

/* 前三名給予金銀銅色標記 */
.jb-table tbody tr:nth-of-type(1) .rank-col { color: #ffbf00; font-size: 1.3em; } /* 金 */
.jb-table tbody tr:nth-of-type(2) .rank-col { color: #a0a0a0; font-size: 1.3em; } /* 銀 */
.jb-table tbody tr:nth-of-type(3) .rank-col { color: #cd7f32; font-size: 1.3em; } /* 銅 */

/* 產品名稱樣式 */
.product-col {
    font-weight: 600;
    color: #333;
    font-size: 1em;
}

/* 按鈕群組容器 */
.btn-group {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
}

/* 通用按鈕樣式 */
.shop-btn {
    display: inline-block;
    padding: 8px 12px;
    font-size: 13px;
    text-decoration: none;
    color: white;
    border-radius: 4px;
    transition: opacity 0.2s;
    text-align: center;
    min-width: 70px;
    font-weight: bold;
}

.shop-btn:hover {
    opacity: 0.85;
    color: white; /* 確保 hover 時文字顏色不變 */
}

/* 各平台專屬顏色 */
.btn-shopee { background-color: #ee4d2d; } /* 蝦皮橘 */
.btn-momo { background-color: #d60c52; }   /* Momo桃紅 */
.btn-coupang { background-color: #e42a36; } /* 酷澎紅 */

/* 隔行變色，增加閱讀舒適度 */
.jb-table tbody tr:nth-of-type(even) {
    background-color: #f9f9f9;
}

/* Hover 效果 */
.jb-table tbody tr:hover {
    background-color: #f1f1f1;
}
