#article a {
    color: #fa6400 !important;
    text-decoration: none;
    }
    
    #article p {
     margin-bottom: 1.2rem;
    }
  
   
[id^="section"] {
    scroll-margin-top: 80px; /* 手機版，設置為 80px */
}

@media screen and (min-width: 768px) {
    [id^="section"] {
        scroll-margin-top: 160px; /* 電腦版，設置為 160px */
    }
}

    .leo-toc-container {
        border: 2px solid #aaa;
        border-radius: 4px;
        max-width: 300px; 
        padding: 16px;
        margin-bottom: 1rem;
        background-color: #f9f9f9;
        font-size: 14px;
    }

    .leo-toc-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 8px;
    }

    .leo-toc-title {
        font-size: 16px;
        font-weight: bold;
    }

    .leo-toc-list {
        list-style: none;
        padding-left: 0;
        line-height: 1.8;
        display: none; 
    }

    .leo-toc-list li {
        margin-bottom: 5px;
    }

    .leo-link {
        color: #fa6400;
        text-decoration: none;
    }

    .leo-link:hover {
        text-decoration: underline;
    }

    
    .leo-toggle-btn {
        background: none;
        border: none;
        cursor: pointer;
        font-size: 16px;
        color: #555;
    }

    .leo-toggle-btn:hover {
        color: #fa6400;
    }

   .leo-section-title, .leo-section-subtitle {
            font-size: 1.8rem;
            font-weight: 700; 
            font-family: "Arial Black", sans-serif; 
            margin-bottom: 1.2rem;
            line-height: 170%;
        }

    .leo-section-title {
        margin: 2em 0 .8em 0;
        padding: .6rem 1.2rem;
        font-size: 1.6rem;
        font-weight: 600;
        border: 2px solid #000;
        border-radius: 4px;
        box-shadow: 4px 4px 0px 0px #000000;
        background-color: #f7f7f7;
    }

    .leo-section-subtitle {
        padding: 10px 0;
        border-bottom: 2px solid #000;
        background-color: #f7f7f7;
         
    }
    .leo-section-subtitle:before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    margin:-3px 8px;
    background-image: url(https://hhenhenpeng.com/9stateswebp/title-icon.svg);
    background-repeat: no-repeat;
}
.leo-focus-end {
    background-color: #f7f7f7;
    border: 1px solid #eee;
    padding: 30px; 
    margin-bottom: 1.2rem;
    border-radius: 4px; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    text-align: left; 
   
}

 .leo-focus-news {
    background-color: #f7f7f7;
    border: 1px solid #eee;
    padding: 30px; 
    margin-bottom: 1.2rem;
    border-radius: 4px; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    text-align: left; 
   
}

.leo-focus-news:before {
    content: "";
    display: inline-block;
    width: 30px;
    height: 30px;
    background-image: url("https://hhenhenpeng.com/9stateswebp/focus-news-icon.svg"); 
    background-repeat: no-repeat; 
    background-size: cover;
    flex-shrink: 0;
}

.leo-warning-news {
    background-color: #ffede6;
    border: 1px solid #ffdacd;
    padding: 30px; 
    margin-bottom: 1.2rem;
    border-radius: 4px; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    text-align: left;  
}

.leo-warning-news strong {
    font-weight: bold; 
    display: contents; 
    margin: 0; 
    padding: 0; 
    line-height: inherit; !important 
    font-size: inherit; 
}

.leo-warning-news:before {
    content: "";
    display: inline-block;
    width: 30px;
    height: 30px;
    background-image: url("https://hhenhenpeng.com/9stateswebp/warning-news-icon.svg"); 
    background-repeat: no-repeat; 
    background-size: cover; 
    flex-shrink: 0;
}

.leo-success-news {
    background-color: #f4ffe6;
    border: 1px solid #dfffb3;
    padding: 30px; 
    margin-bottom: 1.2rem;
    border-radius: 4px; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    text-align: left;  
}

.leo-success-news strong {
    font-weight: bold; 
    display: contents; 
    margin: 0; 
    padding: 0; 
    line-height: inherit; !important 
    font-size: inherit; 
}

.leo-success-news:before {
    content: "";
    display: inline-block;
    width: 30px;
    height: 30px;
    background-image: url("https://hhenhenpeng.com/9stateswebp/success-news-icon.svg"); 
    background-repeat: no-repeat; 
    background-size: cover; 
    flex-shrink: 0;
}


@media screen and (max-width: 768px) {
    .leo-focus-news {
        display: block; 
        text-align: center; 
    }
    .leo-focus-news:before {
        display: block;
        margin: 0 auto 10px; 
    }    


    .leo-warning-news {
        display: block; 
        text-align: center; 
    }
    .leo-warning-news:before {
        display: block;
        margin: 0 auto 10px; 
    }
    .leo-success-news {
        display: block; 
        text-align: center; 
    }
    .leo-success-news:before {
        display: block;
        margin: 0 auto 10px; 
    }

}


    .leo-figure {
    text-align: center;
    padding-top: 10px; 
    margin: 10px 20px; 
    display: inline-block; 
    width: 100%; 
    max-width: 100%; 
    box-sizing: border-box;
}

.leo-image {
    display: table; 
    clear: both; 
    text-align: center;
    margin: 0.9em auto;
    min-width: 50px; 
}
.leo-image img {
    max-width: 100%; 
    height: auto; 
    display: block;
    margin: 0 auto; 
}

.leo-figcaption {
    display: block; 
    caption-side: bottom; 
    word-break: break-word; 
    text-align: center; 
    color: var(--ck-color-image-caption-text, #333);
    background-color: var(--ck-color-image-caption-background, #f9f9f9); 
    padding: 0.6em; 
    font-size: 0.75em; 
    margin-top: 8px; 
    line-height: 1.4; 
    white-space: normal;
}
@media screen and (max-width: 768px) {
        .leo-toc-container {
            max-width: 100%; 
            font-size: 12px;
        }

        .leo-section-title, .leo-section-subtitle {
            font-size: 1.5rem;
            font-weight: 700; 
            font-family: "Arial Black", sans-serif; 
        }

        .leo-figure {
            margin: 10px 0; 
        }

        .leo-figcaption {
            font-size: 0.65em;
        }
    }
    
    
    
.qa-section {
  max-width: 100%;
  width: 800px;
  margin: 0 auto;
  font-family: "Microsoft JhengHei", sans-serif;
  padding: 10px;
  box-sizing: border-box;
}

/* 問題按鈕 */
.accordion {
  background-color: #ff6600;
  color: #fff;
  cursor: pointer;
  padding: 15px 20px;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  font-size: 16px;
  font-weight: normal;
  transition: background-color 0.3s ease;
  border-radius: 5px;
  margin: 8px 0;
  display: block;
  box-sizing: border-box;
  word-wrap: break-word;
}

.accordion:hover {
  background-color: #e05500;
}

/* 展開後的答案區塊 */
.panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.3s ease;
  background-color: #fff7f0;
  padding: 0 20px;
  border-left: 3px solid #ff6600;
  border-right: 3px solid #ff6600;
  border-bottom: 3px solid #ff6600;
  border-radius: 0 0 5px 5px;
  box-sizing: border-box;
}

.panel.open {
  padding: 15px 20px;
}

.panel p {
  margin: 0;
  line-height: 1.6;
  color: #333;
  word-break: break-word;
  font-weight: normal;
}