body {
  font-size: 16px;
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  color:#555;
}
    
* {
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

a,
a:visited {
  color: inherit; 
  text-decoration: none; 
  -webkit-tap-highlight-color: transparent rgba(0, 0, 0, 0);
}

.header-wrapper {
  background-color: #2366AD; /* 跟 header 同色 */
  position: relative;
  height: 56px; /* ✅ 跟 header 完全一樣，佔位不閃動 */
  box-sizing: border-box;
  width: 100%;
}

main {
  min-height: calc(100vh - 60px); /* 頁面主體要撐開視窗 */
}

footer {
  background-color: #7c7b7b;
  color: #ffffff;
  text-align: center;
  padding: 16px;
  font-size: 1rem;
}

.main-container {
  width: 100%;
  padding: 18px 16px;
}

.course-nav-bar-menu-wrapper {
  width: 100%;
  padding-bottom: 0px;
  background-color: #fff;
  position: relative;
  top: 0px;
}

/* bar 本體，有下方陰影 */
.course-nav-bar-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  padding: 10px 10px;
  border-bottom: 1px solid #e0e0e0;
}

/* 左邊純文字 */
.course-nav-bar-menu-text {
  font-size: 1.2rem;
}

/* 右邊按鈕樣式 */
.course-nav-bar-menu-link {
  background-color: #ffffff;
  border: 2px solid #d3b48d;
  border-radius: 24px;
  padding: 4px 10px;
  color: #777;
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
}

.nav-bar-link {
  position: relative;
  top: -1px;
}

.course-nav-bar-menu-link:active {
  background-color: #FFF9DD;
}

.course-nav-bar-menu-link:visited {
  color: #616870;
}


.title-section { 
  padding: 0 16px;
  padding-top: 30px;
}

p {
    font-size: 1.35rem;
    line-height: 1.75;
    overflow-wrap: break-word;
    word-wrap: break-word;
    padding: 0 0;
    margin: 0 0;
    height: 1%;
    overflow: hidden;
    padding-bottom: 18px;

}

/* 整頁主標題 */
p.page-main-title {
  font-size: 1.8rem;
  font-weight: 600;
  padding-bottom: 12px;
}

/* 課程主標題 */
p.lesson-main-title {
  font-size: 1.65rem;
  font-weight: 600;
  padding-bottom: 12px;
  color: #3f4564;
}

/*  課程次標題 */
p.lesson-sub-title {
  font-size: 1.55rem;
  font-weight: 600;
  padding-bottom: 12px;
  color: #3f4564;
}

p.unit-main-title {
  font-size: 1.35rem;
  font-weight: 600;
  padding-bottom: 6px;
  color: #3e5384;
}

/* 段落主標題 */
p.pa-main-title {
  font-size: 1.55rem;
  font-weight: bold;
  padding-bottom: 12px;
  color: #385597;
}

/* 段落次標題 */
p.pa-sub-title {
  font-size: 1.45rem;
  font-weight: bold;
  padding-bottom: 12px;
  color:#5662a7;
}

/* 段落次標題 */
p.pa-sub-title-second {
  font-size: 1.4rem;
  font-weight: bold;
  padding-bottom: 12px;
  color:#5662a7;
}

p.pa-title-instruction {
  font-size: 1.45rem;
  font-weight: bold;
  padding-bottom: 6px;
  padding-top: 6px;
  color:#41455f;
}

/* 課程介紹文 */
p.lesson-intro {
  font-size: 1.25rem;
  color:#666;
  padding-bottom: 18px;
 line-height: 1.5;
}

p.lesson-instruction {
  font-size: 1.3rem;
  color:#666;
  padding-bottom: 18px;
}


.between-line {
  border-bottom: 1px solid #ccc;
  margin-bottom: 18px;
}

.padtop-zero {
  padding-top: 0 !important;
}

.padtop24 {
  padding-top: 24px;
}

.padtop12 {
  padding-top: 12px;
}

.padbt-zero {
  padding-bottom: 0 !important;
}

.padbt6 {
  padding-bottom: 6px !important;
}

.padbt12 {
  padding-bottom: 12px !important;
}

.padbt18 {
  padding-bottom: 18px !important;
}

.padbt24 {
  padding-bottom: 24px !important;
}

.icon-folder {
  width: 26px;      /* 或你想要的大小 */
  height: 26px;
  position: relative;
  top: 2px;
  margin-right: 3px; /* 圖跟文字之間的距離 */
}

.icon-smile {
  width: 30px;      /* 或你想要的大小 */
  height: 30px;
  position: relative;
  top: 4px;
  margin-right: 3px; /* 圖跟文字之間的距離 */
}

.highlight {
  background-color: #fff3cd;
  color: #d6336c;
  padding: 2px 4px;
  border-radius: 4px;
  font-weight: bold;
}

u {
  text-decoration: underline;
  text-decoration-color: #4da6ff;
  text-underline-offset: 5px;
}

strong {
  font-weight: bold;
}

/* 電腦版本單字例句的段落間距 */
.brgap {
  display: block;
  height: 24px;    
}

/* ── 書本資訊卡片 ── */
.vocab-info-card {
  background: #fff;
  border-radius: 12px;
   border: 1.5px solid #ccd3dc;
  box-shadow: 0 4px 16px rgba(122,154,181,0.10);
  padding: 14px 18px;
  margin: 12px 12px 0 12px;
}

.vocab-title {
  font-size: 1.55rem;
  font-weight: 600;
  padding-bottom: 6px;
  color: #494e6a;
}

.vocab-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: #5a629c;
  line-height: 1.6;
  padding-bottom: 6px;
}
.vocab-count {
  font-size: 1.15rem;
  color:#577ab0;
  font-weight: 600;
}
.vocab-desc {
  font-size: 1.2rem;
  color: #777;
  margin-top: 9px;
  line-height: 1.56;
}

.unit-word-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 24px 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  margin: 12px 12px 0 12px;
  border: 1px solid #ccd3dc;
  box-sizing: border-box;
}
