/* --- 新聞與文章 --- */
.page-title {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 40px 0 60px 0;
    color: #333;
    letter-spacing: 2px;
}

.news-sidebar {
    padding-right: 20px;
}

.sidebar-widget {
    margin-bottom: 40px;
}

.widget-title {
    font-size: 1.1rem;
    color: #333;
    font-weight: bold;
    margin-bottom: 20px;
}

.search-input-group {
    background-color: #f7f7f7;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    border-radius: 2px;
}

.search-input-group input {
    border: none;
    background: transparent;
    width: 100%;
    outline: none;
    color: #666;
}

.cat-list {
    list-style: none;
    padding: 0;
}

.cat-list li {
    margin-bottom: 12px;
}

.cat-list a {
    color: #888;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.cat-list a:hover {
    color: var(--brand-green);
}

.recent-post-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.recent-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    margin-right: 15px;
    background-color: #eee;
    overflow: hidden;
}

.recent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-meta {
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 2px;
}

.recent-title {
    font-size: 0.9rem;
    color: #555;
    font-weight: bold;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-ad {
    position: relative;
    width: 100%;
    height: 300px;
    background: #f0f0f0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.sidebar-ad img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.ad-btn {
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
    background: #fff;
    color: #333;
    padding: 8px 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.ad-btn:hover {
    background: #333;
    color: #fff;
}

.tag-cloud a {
    display: inline-block;
    color: #888;
    border: 1px solid #eee;
    padding: 5px 10px;
    margin: 0 5px 8px 0;
    font-size: 0.85rem;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.3s;
}

.tag-cloud a:hover {
    background-color: var(--brand-green);
    color: #fff;
    border-color: var(--brand-green);
}

.follow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.follow-item {
    aspect-ratio: 1/1;
    background-color: #eee;
    overflow: hidden;
}

.follow-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-item {
    margin-bottom: 60px;
}

.news-img-box {
    width: 100%;
    aspect-ratio: 361 / 195;
    /* 符合上傳圖片的原始比例 */
    overflow: hidden;
    background-color: #f9f9f9;
}

.news-img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* 改為 contain，完整顯示不裁切 */
    transition: transform 0.5s;
}

.news-item:hover .news-img-box img {
    transform: scale(1.05);
}

.news-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
    display: block;
    text-decoration: none;
    transition: color 0.3s;
}

.news-title:hover {
    color: var(--brand-green);
}

.read-more {
    display: inline-flex;
    align-items: center;
    padding: 6px 20px;
    border: 1px solid #888;
    border-radius: 50px;
    font-size: 0.85rem;
    color: #555;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    margin-top: 15px;
}

.read-more:hover {
    background-color: var(--brand-green);
    color: #fff;
    border-color: var(--brand-green);
}

/* 文章內頁 */
.article-header {
    text-align: center;
    margin-bottom: 40px;
}

.article-cat-badge {
    background-color: #eee;
    color: #666;
    padding: 3px 10px;
    font-size: 0.85rem;
    border-radius: 2px;
    display: inline-block;
    margin-bottom: 15px;
}

.article-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.article-meta {
    font-size: 0.9rem;
    color: #999;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.author-avatar {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #ccc;
    display: inline-block;
    margin-right: 5px;
    vertical-align: middle;
}

.article-content {
    color: #555;
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 60px;
}

.article-content img {
    margin: 0 auto;
    max-width: 80%;
    border: 2px solid var(--brand-green);
    border-radius: 20px;
}

.article-footer {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-tags a {
    color: #888;
    text-decoration: none;
    margin-right: 10px;
    font-size: 0.9rem;
}

.footer-share a {
    color: #555;
    margin-left: 15px;
    font-size: 1.1rem;
}

.footer-share a:hover {
    color: var(--brand-green);
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
    font-size: 0.95rem;
    font-weight: bold;
}

.post-navigation a {
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
}

.post-navigation a:hover {
    color: var(--brand-green);
}

.bottom-related-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #444;
}

.related-card {
    margin-bottom: 20px;
}

.related-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f9f9f9;
    margin-bottom: 10px;
}

.related-cat {
    font-size: 0.8rem;
    color: #999;
}

.related-link {
    font-weight: bold;
    color: #333;
    text-decoration: none;
    display: block;
    margin-top: 5px;
}

.related-link:hover {
    color: var(--brand-green);
}

/* --- FAQ 頁面 --- */
.faq-search-box {
    max-width: 600px;
    margin: 0 auto 50px auto;
    position: relative;
}

.faq-search-box input {
    background: #f5f5f5;
    border: none;
    padding: 15px 20px 15px 50px;
    border-radius: 4px;
    width: 100%;
    font-size: 0.95rem;
    color: #666;
}

.faq-search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

.process-img-box {
    background-color: #f0f0f0;
    padding: 40px;
    text-align: center;
    margin-bottom: 80px;
    border-radius: 4px;
}

.process-img-box img {
    max-width: 100%;
    height: auto;
}

.faq-section {
    border-bottom: 1px solid #eee;
    padding: 40px 0;
}

.faq-cat-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #555;
    letter-spacing: 1px;
}

.accordion-item {
    border: 0 !important;
    border-bottom: 1px solid #eee !important;
    background: transparent !important;
    border-radius: 0 !important;
}

.accordion-button {
    background: transparent !important;
    color: #444;
    font-weight: bold;
    padding: 20px 0;
    box-shadow: none !important;
    font-size: 1rem;
}

.accordion-button:not(.collapsed) {
    color: #000;
    background-color: transparent !important;
}

.accordion-button::after {
    background-image: none !important;
    content: "+";
    font-family: Arial, sans-serif;
    font-size: 1.5rem;
    color: #333;
    width: auto;
    height: auto;
    transform: none !important;
    margin-left: auto;
}

.accordion-button:not(.collapsed)::after {
    content: "-";
}

/* =========================================
   關於我們 (About Us) 專用樣式
   ========================================= */

/* 上半部：形象圖 */
.about-img-box {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 圖片中間的 Logo 橫條 */
.logo-strip {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 15px 0;
    text-align: center;
}

.logo-strip img {
    height: 50px;
    width: auto;
    display: inline-block;
    /* 確保圖片置中 */
}

/* 上半部：文字區 */
.about-title {
    font-size: 2rem;
    color: #444;
    margin-bottom: 20px;
    letter-spacing: 2px;
    font-weight: bold;
}

.about-desc {
    color: #666;
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.about-subtitle {
    font-weight: bold;
    color: #555;
    margin-bottom: 10px;
    font-size: 1rem;
    margin-top: 20px;
}

/* 聯絡資訊 Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.contact-item h6 {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 5px;
    font-weight: bold;
}

.contact-item h6.text-green {
    color: var(--brand-green);
}

.contact-item p {
    font-size: 1rem;
    color: #444;
    margin: 0;
}

.text-green {
    color: var(--brand-green);
    font-weight: bold;
}


/* =========================================
   下半部：六大特色 (修正置中)
   ========================================= */
.feature-section {
    margin-top: 80px;
    text-align: center;
    /* 關鍵：讓內部所有文字置中 */
}

.feature-main-title {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 10px;
    letter-spacing: 3px;
    font-weight: bold;
    display: block;
    /* 確保獨佔一行 */
}

.feature-sub-title {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
    display: block;
}

.feature-desc {
    color: #888;
    max-width: 600px;
    /* 關鍵：區塊水平置中 */
    margin: 0 auto 60px auto;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 特色項目小卡 */
.feature-item {
    text-align: center;
    /* 讓每個小卡內容都置中 */
    margin-bottom: 40px;
}

.feature-icon-box {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    /* 讓 icon 絕對置中 */
}

.feature-icon {
    font-size: 3.5rem;
    color: var(--brand-green);
}

.feature-item h4 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.feature-item p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    padding: 0 15px;
}

/* RWD */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-img-box {
        height: 250px;
    }
}

/* 印刷選擇特殊樣式 */
.print-img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: 2px solid var(--brand-green) !important;
    border-radius: 20px !important;
    box-sizing: border-box !important;
}

.bag-row,
.mat-item {
    text-align: center;
    margin-bottom: 80px;
}

.bag-title,
.mat-title {
    color: var(--brand-green);
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

/* --- 客製流程 (Process) --- */

.process-container {
    max-width: 600px;
    /* 限制寬度，讓內容集中 */
    margin: 0 auto;
    /* 區塊置中 */
    padding: 0 20px;
}

.process-layout {
    display: flex;
    justify-content: center;
    /* 內容水平置中 */
    gap: 30px;
    /* 圖片與文字的間距 */
}

/* 左側：圖片區 */
.process-left {
    flex: 0 0 auto;
    width: 130px;
    /* 依照您的圖片寬度微調 */
    display: flex;
    align-items: center;
    /* 讓圖片垂直置中 */
}

.process-flow-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border: none !important;
    /* 確保無框線 */
    padding: 0;
}

/* 右側：文字區 */
.process-right {
    flex: 1;
    display: flex;
    flex-direction: column;

    /* ▼▼▼ 修改重點：改用 center + gap 來控制間距 ▼▼▼ */
    justify-content: center;
    /* 垂直置中對齊圖片 */
    gap: 20px;
    /* 設定文字區塊之間的固定距離 (縮小間隔) */
    /* ▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲ */
}

/* 單個文字區塊 */
.step-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* 步驟標題 (方框樣式) */
.step-title-box {
    display: inline-block;
    border: 1px solid #555;
    /* 深灰細框 */
    padding: 4px 15px;
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    background-color: #fff;
}

/* 步驟說明文字 */
.step-desc {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* RWD 手機版 */
@media (max-width: 768px) {
    .process-layout {
        flex-direction: column;
        align-items: center;
    }

    .process-left {
        width: 100px;
        margin-bottom: 30px;
    }

    .process-right {
        gap: 30px;
        text-align: center;
        align-items: center;
    }

    .step-item {
        align-items: center;
    }
}