
/* ─────────────────────────────────────────
   [保留] mybook 選單按鈕
   其他頁面仍在使用，不可刪除
───────────────────────────────────────── */
body { background-color: #f7f4ef; }

.mybook-menu-button {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border-radius: 14px;
  padding: 12px 12px;
  text-align: left;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1.5px solid #d6e0ec;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: background-color 0.1s;
}
.mybook-menu-button:active {
  background-color: #FFF9DD;
}
.mybook-menu-button img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}
.mybook-menu-text {
  display: flex;
  flex-direction: column;
}
.mybook-menu-subtitle {
  font-size: 1.1rem;
  color: #999;
  margin-bottom: 0.2rem;
}
.mybook-menu-title {
  font-size: 1.35rem;
  color: #4d5567;
}


/* ─────────────────────────────────────────
   [新版] 卡片式選單 mb- 系列
   取代舊版橫列式，批次替換後全站使用
───────────────────────────────────────── */

/* 資訊卡（標題＋主題） */
.mb-info-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #c8d4e0;
  box-shadow: 0 4px 16px rgba(122,154,181,0.10);
  padding: 18px 18px;
  margin: 12px 12px 0px 12px;
}
.mb-book-name {
  font-size: 1.55rem;
  font-weight: 600;
  color: #494e6a;
  line-height: 33px;
  padding-bottom: 6px;
}

.mb-book-name-inter {
  font-size: 1.55rem;
  font-weight: 600;
  color: #494e6a;
  line-height: 33px;
  padding-bottom: 0px;
}


.mb-book-count {
  font-size: 1.3rem;
  color: #5a629c;
  font-weight: 600;
}
.mb-book-desc {
  font-size: 1.15rem;
  color: #777;
  margin-top: 9px;
  line-height: 26px;
}

/* 入口型卡片（自訂課程）*/
.mb-edit-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #d2dce8;
 box-shadow: 0 4px 16px rgba(122,154,181,0.10);
  margin: 16px 12px 16px 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}
.mb-edit-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 12px 12px 16px;
}
.mb-edit-img {
  flex: 0.7;
  height: 100px;
  object-fit: contain;
  border-radius: 12px;
  padding: 12px;
}
.mb-edit-right {
  flex: 1.3;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mb-edit-desc {
  font-size: 1.05rem;
  color: #888;
  line-height: 26px;
}
.mb-edit-btn {
  padding: 10px 0;
  border-radius: 12px;
  border: none;
  background: #7a9ab5;
  color: #fff !important;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.1s ease;
  text-decoration: none;
}
.mb-edit-btn:active {
  background: #5a7a95;
  transform: scale(0.99);
}

/* 2欄功能格線 */
.mb-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 12px;
  margin-top: 14px;
}
.mb-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #d2dce8;
  
  padding: 12px 6px;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.mb-btn img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}
.mb-btn-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #5c6989;
  padding-top: 8px;
}

/* Game Zone 卡片 */
.mb-game-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #d2dce8;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  padding: 14px 12px;
  margin: 10px 12px 16px 12px;
}
.mb-game-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.mb-game-card-line {
  flex: 1;
  height: 1px;
  background: #d2dce8;
}
.mb-game-card-label {
  font-size: 13px;
  font-weight: 700;
  color: #7a9ab5;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.mb-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.mb-game-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px;
  border-radius: 12px;
  border: 1px solid #e4ecf4;
  background: #f7fafd;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: border-color 0.15s, background 0.15s;
}
.mb-game-cell:active {
  border-color: #7a9ab5;
  background: #eaf2f8;
}
.mb-game-cell img {
  width: 58%;
  height: auto;
  object-fit: contain;
  pointer-events: none;
}
.mb-game-cell-subtitle {
  font-size: 0.8rem;
  color: #aaa;
  text-align: center;
  pointer-events: none;
}
.mb-game-cell-title {
  font-size: 1rem;
  font-weight: 600;
  color: #3f5568;
  text-align: center;
  pointer-events: none;
}

/* 結語文字 */
.mb-menu-outro {
  font-size: 1rem;
  color: #888;
  line-height: 26px;
  padding: 0 16px 32px 16px;
  text-align: center;
}

