/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Template: astra
Author: Brainstorm Force
Author URI: https://wpastra.com/about/?utm_source=theme_preview&utm_medium=author_link&utm_campaign=astra_theme
Description: The Astra WordPress theme is lightning-fast and highly customizable. It has over 1 million downloads and the only theme in the world with 5,700+ five-star reviews! It’s ideal for professional web designers, solopreneurs, small businesses, eCommerce, membership sites and any type of website. It offers special features and templates so it works perfectly with all page builders like Spectra, Elementor, Beaver Builder, etc. Fast performance, clean code, mobile-first design and schema markup are all built-in, making the theme exceptionally SEO-friendly. It’s fully compatible with WooCommerce, SureCart and other eCommerce plugins and comes with lots of store-friendly features and templates. Astra also provides expert support for free users. A dedicated team of fully trained WordPress experts are on hand to help with every aspect of the theme. Try the live demo of Astra: https://zipwp.org/themes/astra/
Tags: custom-menu,custom-logo,entertainment,one-column,two-columns,left-sidebar,e-commerce,right-sidebar,custom-colors,editor-style,featured-images,full-width-template,microformats,post-formats,rtl-language-support,theme-options,threaded-comments,translation-ready,blog
Version: 4.11.5.1752071256
Updated: 2025-07-09 14:27:36

*/

.home p {
  line-height: 1;
  margin-bottom: 0.4em;
}

/*Header 固定於上方*/
.site-header,
.main-header-bar {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #f1f3eb;
  min-height: 50px; /* 視你header實際高度調整 */
}
body.admin-bar .site-header {
  top: 32px;
}
.main-content {
  padding-top: 80px; /* 與header高度一致 */
}



/*文章與頁面分別設定*/
.single-post .site-main {
color: #234556;   /* 文章專用字體色 */
max-width: 1200px; 
}

.page .site-main {
font-size: 16px;
line-height: 1.4;
}

.single-post .site-main {
font-size: 16px;
line-height: 1.5;
}
 /*文末註腳文字樣式設定 */
.wp-block-footnotes {
font-size: 13px;
color: #27624e;
line-height: 1.5;
}

/* 分類名詞筆記頁設定－標題 */
.category-glossary .site-main,
.single-post.category-glossary .site-main {
background: #fcfbe6;
color: #233345;
border-radius: 12px;
max-width: 700px;
margin: 2em auto;
padding: 2.5em 2em;
box-shadow: 0 2px 16px rgba(150, 150, 90, 0.07);
}

.category-glossary .entry-title,
.single-post.category-glossary .entry-title {
color: #bb9900;
font-size: 2.1em;
letter-spacing: 0.02em;
}
/* 超連結 */
.category-glossary a,
.single-post.category-glossary a {
color: #337A85; /* 想要的深綠 */
text-decoration: underline;
transition: color 0.2s;
}
.category-glossary a:hover,
.single-post.category-glossary a:hover {
color: #FF0099;  /* 滑鼠移上去的顏色－我愛的桃紅 */
}
/* 只針對名詞筆記分類的 H2/H3 標題做微調 */
.category-glossary h2,
.single-post.category-glossary h2 {
  font-size: 1.15em;
  font-weight: 600;
  color: #215159;         /* 品牌黃或你想要的重點色 */
  margin-top: 2em;
  margin-bottom: 0.4em;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.category-glossary h3,
.single-post.category-glossary h3 {
  font-size: 1em;
  font-weight: 500;
  color: #215159;         /* 次要重點色，可與 H2 稍微區隔 */
  margin-top: 1.2em;
  margin-bottom: 0.3em;
  letter-spacing: 0.01em;
  line-height: 1.4;
}
.category-glossary h3.reference-title {
  color: #27624e;
  font-style: italic;
  margin-top: 2em;
  margin-bottom: 0.3em;
}

/*文章頁面區塊外觀設定*/
.wp-block-latest-posts__list.is-grid li {
  background: #f6f6f6;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(150,150,90,0.07);
  margin: 10px;
  padding: 20px;
  min-height: 220px;
  transition: box-shadow 0.2s;
}
.wp-block-latest-posts__list.is-grid li:hover {
  box-shadow: 0 6px 24px #C2C2C2 ;  /* 陰影更明顯 */
  cursor: pointer;
  transition: box-shadow 0.22s, background 0.22s;
}

.wp-block-latest-posts__post-title {
    color: #304444 !important;          /* 想改什麼色就調這裡 */
    font-size: 1.15em !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
}
.wp-block-latest-posts__post-title:hover {
    color: #FF0099 !important;/* 滑鼠滑過顏色－我愛的桃紅 */
}
.wp-block-latest-posts__post-date {
    color: #005418 !important;
    font-size: 0.95em;
    font-weight: 500;
    margin-bottom: 6px;
    margin-top: 4px;
}
.wp-block-latest-posts__featured-image {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: auto;
  overflow: hidden;
  display: block;
}
.wp-block-latest-posts__featured-image img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  display: block;
}


/*::::::::名詞筆記格狀控制:::::*/
.cbnotes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 24px;
}
.cbnotes-card {
    background: #F6F6F6;
    border-radius: 10px;
    box-shadow: 0 2px 12px #e0e2dd30;
    width: calc(33.333% - 16px);
    min-width: 240px;
    padding: 24px 18px 18px 18px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow .2s;
}
.cbnotes-card:hover {
    box-shadow: 0 6px 24px #C2C2C2;
}

.cbnotes-title,
.cbnotes-title a {
    font-size: 1.15em !important;           /* 或16px、17px、18px等，依你需求 */
    font-weight: 700 !important;
    line-height: 1.2 !important;           /* 調整行距，預設1.1~1.2之間較緊湊 */
    color: #304444 !important;              /* 你想要的顏色 */
    text-decoration: none !important;       /* 去底線 */
    border-bottom: none !important;
    box-shadow: none !important;
}
.cbnotes-title a:hover {
    color: #FF0099 !important;              /* 滑鼠滑過顏色－我愛的桃紅 */
}
.cbnotes-excerpt {
    color: #2E2E2E;
    margin: 12px 0 10px 0;
    font-size: 1rem;
    line-height: 1.5;
}
.cbnotes-meta {
    color: #005418 !important;     /* 你要的日期顏色 */
    font-size: 0.95em;             /* 字級可依需求微調 */
    font-weight: 500;
    letter-spacing: 0.02em;
}
@media (max-width: 900px) {
    .cbnotes-card {
        width: calc(50% - 12px);
    }
}
@media (max-width: 600px) {
    .cbnotes-card {
        width: 100%;
    }
    .cbnotes-grid {
        gap: 12px;
    }
}
.cbnotes-pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}
.cbnotes-pagination .page-numbers {
    padding: 6px 18px;
    background: #494949;
    border-radius: 14px;
    color: #304444;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background .2s;
}
.cbnotes-pagination .page-numbers {
    color: #fff !important;   /* 替換為你的品牌主色/深色 */
}
.cbnotes-pagination .prev,
.cbnotes-pagination .next {
    color: #fff !important;   /* 上一頁/下一頁字色 */
}
.cbnotes-pagination .current,
.cbnotes-pagination .page-numbers:hover {
    background: #FF0099;
    color: #1a2b2b;
}


/*作者連結取消，沒法點入看見作者所有文章*/
.entry-meta .posted-by a {
    pointer-events: none;
    color: #333 !important;
    text-decoration: none !important;
    cursor: default;
}

