/* 修改 mkdocs-material 的 Grid Card 背景顏色 */
.grid.cards li {
    background-color: #ecfbf1; /* 你想要的背景顏色 */
}

/* .md-typeset table:not([class]) th,
.md-typeset table:not([class]) td {
    padding: 4px 4px;
    margin: 4px 4px;
} */

/* table {
    width: auto;  
    font-size: 12px; 
    line-height: 1.0;
}

table th {
    padding: 2px 2px;  
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
}

table td {
    padding: 2px 2px;  
    text-align: left;
    white-space: nowrap; 
}

table, th, td {
    border: 1px solid #ddd;
    border-collapse: collapse;  
} */


/* table {
    width: 100%;
    table-layout: fixed;
}

table th:nth-child(1), table td:nth-child(1) {
    width: 90px; 
}

.md-typeset table:not([class]) {
    display: table;
} */

/* 

table {
    width: auto;  
    font-size: 12px; 
    line-height: 1.0;
}

th, td {
    border: 1px solid var(--md-typeset-table-color);
    border-spacing: 0;
    border-bottom: none;
    border-left: none;
    border-top: none;
    width: auto;
}

.md-typeset__table {
    line-height: 1;
    width: auto;
}

.md-typeset__table table:not([class]) {
    font-size: .74rem;
    border-right: none;
}

.md-typeset__table table:not([class]) td,
.md-typeset__table table:not([class]) th {
    padding: 1px;
}

.md-typeset__table tr:nth-child(2n) {
    background-color: #f8f8f8;
}

[data-md-color-scheme="slate"] .md-typeset__table tr:nth-child(2n) {
    background-color: hsla(var(--md-hue),25%,25%,1)
} */

.md-nav__title {
    display: none;
}

/* 設定 md-main__inner 的 margin 和 padding 為 0 */
.md-main__inner.md-grid {
    margin-top: 0 !important;
    /* padding: 0 !important; */
}

/* 修正 inline <code> 裡面的 css，凸顯他的顯示 */
.md-typeset code:not(pre code) {
    /* font-family: "Courier New", Consolas, monospace; 改字體 */
    font-family: "JetBrains Mono", "Source Code Pro", Consolas, Menlo, monospace;
    font-size: 1em;   
    color: red;
    background-color: #f0f0f0;  /* 底色淡粉紅 (可選) */
    /* font-weight: bold;      */
    padding: 0.1em 0.25em; /* 讓字不會太擠 */
    border-radius: 3px;    /* 圓角 */
}

/* 讓 admonition 裡的文字恢復正常字體大小 */
.md-typeset .admonition,
.md-typeset details {
  font-size: 1em;  /* 預設正文大小 */
}


.grid.cards li {
  position: relative;
  background: #ffffff;
  border: 4px solid #ff0000;           /* 🟥 更粗更亮的紅邊 */
  border-radius: 14px;
  padding: 1.6rem;
  color: #222;
  list-style: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* 🌫️ 灰色陰影 */
  transition: all 0.25s ease;
  overflow: visible;
}

/* 🖱️ Hover 時紅邊更亮＋光暈更強 */
.grid.cards li:hover {
  transform: translateY(-4px);
  border-color: #ff1a1a;
  box-shadow: 0 8px 25px rgba(255, 0, 0, 0.3); /* 🔥 紅光外暈 */
  background: linear-gradient(145deg, #ffffff, #fff3f3);
}

/* 🎯 優惠中徽章（貼角＋不遮字） */
.grid.cards li::before {
  content: "優惠中";
  position: absolute;
  top: 3px;
  right: 6px;
  background: linear-gradient(90deg, #ff4d4f, #cc0000);
  color: #fff;
  font-weight: 700;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 4px;
  line-height: 1.2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  z-index: 10;
}

/* 🔗 連結樣式 */
.grid.cards li a {
  display: block;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 1.1rem;
  color: #c40000;
  transition: color 0.3s ease;
}

.grid.cards li a:hover {
  color: #ff0000;
}

/* ✨ 內文顏色 */
.grid.cards li p,
.grid.cards li strong {
  color: #333;
}

/* 📱 手機調整 */
@media (max-width: 768px) {
  .grid.cards li {
    padding: 1.2rem;
  }
  .grid.cards li::before {
    font-size: 0.6rem;
    top: 2px;
    right: 5px;
    padding: 2px 6px;
  }
}
