/* ============================================
   1. CSS 變數設定
   ============================================ */
:root {
    /* 字體大小 */
    --base-font-size: 16px;
    --mobile-font-size: 16px;
    
    /* 主色系 */
    --primary-color: #cc8956;
    --secondary-color: #cc8956;
    --accent-color: #e6c4ab;
    
    /* 文字顏色 */
    --text-sub-color: #542913;
    --text-secondary-color: #3d291a;
    
    /* 連結顏色 */
    --link-color: #291b11;
    --link-hover-color: #cc8956;
    
    /* Header */
    --header-bg-color: transparent;
    --header-link-color: #291b11;
    --header-link-hover-color: #cc8956;
    --header-link-hover-bg-color: transparent;
    --header-icon-color: #291b11;
    --header-icon-hover-color: #cc8956;
    --header-mobile-icon-color: #291b11;
    
    /* 按鈕 - 實心 */
    --button-bg-color: #cc8956;
    --button-text-color: #ffffff;
    --button-bg-hover-color: #e6c4ab;
    --button-text-hover-color: #ffffff;
    
    /* 按鈕 - 外框 */
    --outline-button-border-color: #cc8956;
    --outline-button-text-color: #cc8956;
    --outline-button-bg-color: transparent;
    --outline-button-border-hover-color: #cc8956;
    --outline-button-text-hover-color: #ffffff;
    --outline-button-bg-hover-color: #cc8956;
    
    /* Footer */
    --footer-bg-color: #cc8956;
    --footer-text-color: #fff;
    --footer-link-color: #fff;
    --footer-link-hover-color: #e6c4ab;
    
    /* 其他 */
    --basic-font: "GenSenRoundedTW", "Noto Sans TC", "Heiti TC", 微軟正黑體, "Open Sans", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif;
    --sub-bg-color: #fbf6f0;
}

/* ============================================
   2. 基礎樣式
   ============================================ */
body,
.index-editor,
.btn-sideline > span,
.tab-menu,
.signup-footer:before {
    background-color: #ffffff !important;
}

.title,
body,
.pagging-title {
    font-family: var(--basic-font);
}

p {
    color: #333;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    line-height: 1.4 !important;
}

.row {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* ============================================
   3. 連結樣式
   ============================================ */
.html-info a,
.html-info a:visited {
    color: var(--link-color);
}

.html-info a:active,
.html-info a:focus,
.html-info a:hover {
    color: var(--link-hover-color);
}

a.read-more {
    color: var(--primary-color);
    font-size: 0.9rem;
}

a.read-more:hover {
    color: var(--button-bg-hover-color);
}

/* ============================================
   4. Header / Navbar
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    padding: 0.8rem 10%;
    z-index: 1030;
    transition: all 0.3s ease;
    background-color: #ffffff;
    box-sizing: border-box;
}

.navbar.fixed {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    display: inline-block;
    padding-top: 0;
    padding-bottom: 0;
    margin-right: 0;
    font-size: 1.25rem;
    line-height: inherit;
    white-space: nowrap;
}

.pagging-header {
    position: relative;
    height: 120px;
}

.pagging-header::before {
    background: transparent;
}

.pagging-title,
.breadcrumb {
    margin-bottom: 0;
}

.index-banner-slider {
    margin-top: 120px;
}

/* ============================================
   5. 導航選單
   ============================================ */
.naviMain ul {
    justify-content: space-evenly;
}

.naviMain ul > li > a:hover {
    color: var(--header-link-hover-color);
}

.naviMain ul > li > a:hover > span {
    transform: translateY(0);
    opacity: 100;
}

.naviMain ul > li > a::before {
    display: none;
}

.navi-item ul li a span,
.member-item {
    font-family: var(--basic-font);
    font-weight: 500;
}

.navi-item:first-child {
    padding: 15px;
}

/* ============================================
   6. 側邊選單 (Zeynep)
   ============================================ */
.zeynep ul > li > a {
    color: #291b11;
    font-weight: 500;
}

.zeynep ul > li > a:hover {
    background-color: var(--sub-bg-color);
    border-radius: 3px;
    color: var(--primary-color);
}

.zeynep .submenu {
    background-color: var(--sub-bg-color);
}

.zeynep ul > li:not(:last-child) > a,
.zeynep .submenu-header {
    border-bottom: 1px solid #ffffff;
}

/* ============================================
   7. 按鈕樣式
   ============================================ */
.btn {
    padding: 10px 25px;
}

.input-group .btn {
    padding: 0.375rem 0.75rem;
}

.btn-sideline::after {
    background-color: var(--sub-bg-color);
}

.btn-sideline > span {
    padding: 5px 10px;
    z-index: 2;
    position: relative;
    font-family: var(--base-font);
    font-size: 1.3rem;
}

/* ============================================
   8. 分頁
   ============================================ */
.page-link {
    border-radius: 50px;
}

.page-link:hover {
    z-index: 2;
    color: #fff;
    text-decoration: none;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ============================================
   9. 文章 / 部落格
   ============================================ */
.article-category {
    border: 1px solid var(--sub-bg-color);
}

.article-category .article-category-header {
    margin-bottom: 0;
}

.article-intro > h5 {
    color: #666;
    margin-bottom: 1rem;
    font-weight: 400;
}

.article-intro p,
.text-box p {
    font-size: 0.9rem;
    font-weight: 400;
}

/* 部落格列表 */
#index-blog .blog-row .text-box .middle-title {
    height: 100%;
    max-height: 3em;
    line-height: 1.5em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    margin-top: 0;
    transition: 0.3s ease-in;
    font-weight:500;
}

#index-blog .blog-row .text-box .info-group > p {
    max-height: 4.5em;
    line-height: 1.5em;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    height: 100%;
}

.blog-row .text-box .article-classify > a {
    background-color: var(--sub-bg-color);
    color: #313131;
    border-radius: 8px;
}

/* ============================================
   10. 側邊欄 (Aside)
   ============================================ */
aside > ul > li > a {
    color: var(--text-secondary-color);
    font-weight: 500;
}

aside .article-group .group-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    padding: 5px 10px;
}

aside .article-group > ul > li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--sub-bg-color);
    padding-bottom: 0.5rem;
}

/* 標籤 */
aside .tag-group {
    padding: 0;
    background-color: #ffffff;
    border: 0;
    border-radius: 0;
}

aside .tag-group::before {
    content: attr(data-title);
    position: relative;
    top: 0;
    display: none;
}

aside .tag-group .article-tag {
    background-color: var(--sub-bg-color) !important;
    color: var(--primary-color) !important;
    margin-left: 0 !important;
    border-radius: 30px;
}

aside .tag-group .article-tag:hover {
    background-color: var(--primary-color) !important;
    color: #fff !important;
}

.tag-box {
    margin-top: 10px;
}

/* 資訊列表 */
.info-list li a {
    background-color: transparent;
    border-bottom: 1px dotted #dcdcdc;
    font-weight: 500;
}

/* ============================================
   11. 產品 / 活動區塊
   ============================================ */
.middle-title,
.product-group > a .text-box > .middle-title {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

.product-group > a .text-box {
    margin-top: 0;
}

.product-group > a .text-box > p {
    margin-top: 5px;
}

.slider-item p,
.product-group > a .text-box > p,
.event-list-content p {
    font-size: 0.9rem;
    font-weight: 400;
}

.price-row {
    margin-top: 0.5rem;
}

#product-index a {
    color: var(--link-color);
}

#product-index a:hover {
    color: var(--link-hover-color);
}

/* 活動區塊 */
.event-block {
    background-color: transparent;
    box-shadow: none;
}

.event-block:hover {
    box-shadow: none;
}

.event-block > .text-box {
    padding: 0;
}

.event-block .img-box {
    overflow: hidden;
}

.event-block .img-box img {
    aspect-ratio: 3 / 2;
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.event-block:hover .img-box img {
    transform: scale(1.05);
}

.event-block > .img-box > .event-date {
    display: none;
}

.event-block i {
    color: var(--primary-color);
}

/* 產品輪播 */
.product-slider-nav .slider-item {
    overflow: hidden;
}

.product-slider-nav .slider-item img {
    aspect-ratio: 1 / 1;
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-slider-nav .slider-item:hover img {
    transform: scale(1.05);
}

/* ============================================
   12. 新聞列表
   ============================================ */
.index-news > li {
    margin-bottom: 0;
}

.index-news li {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* ============================================
   13. 固定元素
   ============================================ */
.sticky-purchase {
    top: 140px !important;
}

.tab-menu {
    top: 115px !important;
}

.cta-fix-bottom {
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
}

/* ============================================
   14. 社群連結 / 返回頂部
   ============================================ */
.social-link > li > a {
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
}
#gotop {
    width: 36px;
    height: 36px;
    margin-bottom: 20px;
}

#share-btn {
    width: 30px;
    height: 30px;
    padding: 0;
}

/* ============================================
   15. Footer
   ============================================ */
footer {
    padding-top: 30px;
    padding-bottom: 10px;
}

footer .small-title {
    font-family: var(--basic-font);
}

footer ul,
footer .small-title {
    font-size: 0.9rem;
}

footer .copyright {
    padding: 0 10px;
    margin-top: 10px;
}

footer .copyright,
footer .copyright a {
    color: var(--footer-text-color);
}

.footer-logo img {
    max-width: 160px;
    margin: 0 auto 20px auto;
}

/* Footer 社群連結 */
footer .social-link {
    display: flex;
    margin-top: 10px;
}

footer .social-link a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--sub-bg-color);
    color: var(--primary-color);
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
}

footer .social-link a:hover {
    background-color: #fff;
    transform: translateY(-2px);
}

/* ============================================
   16. RWD - 平板 (max-width: 992px)
   ============================================ */
@media (max-width: 992px) {
    body {
        padding-top: 67px;
    }
    
    /* ⭐ 修正：Navbar 手機版 padding */
    .navbar {
        padding: 0.8rem 15px;
    }
    
    .pagging-header {
        height: 0;
    }
    
    .index-banner-slider {
        margin-top: 0;
    }
    
    .tab-menu {
        top: 67px !important;
        z-index: 90;
    }
    
    /* 側邊欄展開狀態 */
    aside > ul > li > a[aria-expanded=true],
    aside > ul > li > a.selected {
        font-weight: bold;
        color: var(--primary-color);
        background-color: transparent;
    }
    
    aside > ul > li + li {
        border-top: 1px solid #eee;
    }
    
    aside > ul > li:last-child {
        border-bottom: 1px solid #eee;
    }
    
    /* ⭐ 修正：手機版選單滿版 */
    .mobile-menu {
        width: 100%;
        max-width: 100%;
        padding: 1rem 15px;
        z-index: 1000;
        height: 67px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: fixed;
        left: 0;
        top: 0;
        background: #fff;
        box-sizing: border-box;
font-family: "Noto Sans TC", "微軟正黑體", "Heiti TC", "Open Sans", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
    }
    
    .mobile-menu.left-style .mobile-btn {
        float: none;
    }
    
    .mobile-menu.left-style .mobile-logo {
        float: none;
        margin-left: 0;
    }
    
    .mobile-menu.left-style .hamburger {
        margin-right: 0;
        margin-left: 0;
        margin-top: 0;
        float: none;
    }
    
    .mobile-btn {
        font-size: 1.1rem;
        padding: 0;
    }
    
    .mobile-nav {
        background-color: var(--sub-bg-color);
    }
aside .article-group .group-title {
        border-bottom: 0;
        border-top: 0;
        padding-left: 0 !important;
    }
    
}

/* ============================================
   17. RWD - 手機 (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    h2, .h2 {
        font-size: 1.6rem;
    }
    
    .blog-row .text-box {
        padding-left: 0;
    }
    
    #index-blog .blog-row .text-box .middle-title {
        margin-top: 10px;
    }
    
    .tag-box {
        height: auto !important;
    }
    
    footer .social-link {
        justify-content: center;
    }
}
@media (max-width: 479px) {
    .price-row span {
        font-size: 0.875rem;
         display: inline-block;
    }
.price-row span + span {
    margin-left: 0;
}
}
/* ============================================
   18. RWD - 桌機 (min-width: 993px)
   ============================================ */
@media (min-width: 993px) {
    .navbar-brand {
        display: inline-block;
        max-width: 80px;
    }
}
.btn-border {
    border: 2px solid var(--outline-button-border-color);
}
.blog-grid .text-box .middle-title {
    text-align: left;
}
.navi-item ul li.dropdown a span:after {
position:absolute;
}
.member-item {
position: relative;
    z-index: 999;
}

.event-block > .text-box > h3 {
    height: 2.6em;
    line-height: 1.3em;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    display: -webkit-box;
}
.blog-info .subTitle {
    margin-bottom: 10px;
    margin-top: 15px;
    font-size: 1.1rem;
}

.blog-info .title > span:only-child {
    font-size: 1.8rem;
    line-height: 1.1;
    font-weight: 600;
}

.html-info h1 {
    font-size: 2.1rem;
    margin: 1.8rem 0 1rem 0;
    font-weight: 700;
}

.html-info h2 {
    font-size: 1.8rem;
    margin: 1.5rem 0 1rem 0;
    font-weight: 600;
    color:var(--primary-color);
}

.html-info h3 {
    font-size: 1.3rem;
    margin: 1rem 0 0.6rem 0;
    font-weight: 500;
}

.html-info h4 {
    font-size: 1.15rem;
    margin: 0.5rem 0;
    font-weight: 500;
}

.html-info h5 {
    font-size: 1.05rem;
    margin: 0.4rem 0;
    font-weight: 500;
}

.html-info h6 {
    font-size: 0.95rem;
    margin: 0.3rem 0;
    font-weight: 500;
}

.html-info p {
    margin: 0 0 1rem 0;
    text-align: justify;
}

.html-info blockquote {
    margin: 1rem 0;
    padding: 20px 30px;
    background-color: var(--sub-bg-color);
    border-left: 5px solid var(--primary-color);
}

.html-info blockquote p {
    margin: 0;
}

.youtube-embed-wrapper,
.embed-responsive-16by9 {
    border-radius: 12px;
}

/* 表格 */
.html-info table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 1rem;
    border: 1px solid var(--sub-bg-color);
}

.html-info table th,
.html-info table td {
    padding: 12px 10px;
    border: 1px solid var(--sub-bg-color);
    text-align: left;
}

.html-info table th,
.html-info table thead td {
    font-weight: 700;
    background-color: var(--primary-color);
    border-bottom: 2px solid var(--sub-bg-color);
    color: #fff;
    letter-spacing: 2px;
    text-align: center;
}

.html-info tr:nth-child(even) {
    background-color: var(--sub-bg-color);
}

.html-info table th[scope="row"],
.html-info table thead td[scope="row"] {
    width: 100px;
    background-color: var(--primary-color);
    vertical-align: top;
    text-align: left;
}

/* 列表 */
.html-info ul,
.html-info ol {
    margin: 24px 0;
    padding-left: 24px;
}

.html-info ul li,
.html-info ol li {
    margin-bottom: 10px;
    padding-left: 8px;
}

.html-info ul li::marker {
    color: var(--primary-color);
}

.html-info ol li::marker {
    color: var(--primary-color);
    font-weight: 600;
}

/* 按鈕 */
.html-info a.btn,
.html-info a.btn:hover,
.html-info a.btn:active,
.html-info a.btn:focus,
.html-info a.btn:visited {
    color: #fff;
    margin: 1rem auto;
    min-width: 200px;
    display: inline-block;
}
.html-info a.btn.btn-border,
.html-info a.btn.btn-border:visited {
color: #cc8956!important;
}
.html-info a.btn.btn-border:hover,
.html-info a.btn.btn-border:active,
.html-info a.btn.btn-border:focus {
    color: #fff!important;
}
.html-info a.btn.btn-border {
    border: 2px solid var(--outline-button-border-color);
   padding:7px 25px; 
}

.html-info .row {
    padding-top: 0;
    padding-bottom: 0;
}

/* 響應式 */
@media (max-width: 768px) {
    .blog-info .title > span:only-child {
        font-size: 1.4rem;
        line-height: 1.1;
        font-weight: 600;
    }

    .html-info h1 {
        font-size: 1.6rem;
    }

    .html-info h2 {
        font-size: 1.4rem;
    }

    .html-info h3 {
        font-size: 1.2rem;
    }

    .html-info h4 {
        font-size: 1.1rem;
    }

    .html-info h5 {
        font-size: 1rem;
    }

    .html-info h6 {
        font-size: 0.9rem;
    }

    .html-info a.btn,
    .html-info a.btn:hover {
        max-width: 100%;
        width:100%;
        display:block;
    }
}
/* 錨點偏移 - 避免被固定 header 遮住 */
.html-info h2[id],
.html-info h3[id],
.html-info h4[id] {
    scroll-margin-top: 100px; /* 根據你的 header 高度調整 */
}
.style404 .title span {
    margin: 0px auto;
    font-size: 1.4rem;
}
.style404 .title {
font-size: 6rem;
}
section.style404 {
    height: auto;
    min-height: auto;
    margin-top:80px;
}

@media (max-width: 768px) {
    section.style404 {
       margin-top:0px;
    }
}