/*
Theme Name: Model-key Corporate
Theme URI: https://www.model-key.com
Author: Model-key IT Team
Description: 專為茂鎧設計的達梭系統代理商專屬主題，整合 Tailwind CSS (CDN) 與 Swiper。
Version: 3.1.0 (Stable & SEO Optimized)
License: Proprietary
Text Domain: model-key
*/

/* --- 核心設定 --- */
body {
    font-family: 'Noto Sans TC', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* --- 導航選單 (Flexbox Fix) --- */
#navbar ul.mk-nav-menu { 
    display: flex; 
    gap: 2rem; 
    align-items: center; 
    margin: 0;
    padding: 0;
    list-style: none;
    height: 5rem; /* 80px */
}

#navbar ul.mk-nav-menu > li {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

#navbar ul.mk-nav-menu > li > a { 
    color: #475569; 
    font-weight: 500; 
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.3s; 
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 0.5rem;
}

#navbar ul.mk-nav-menu > li > a:hover { color: #005BBB; }

#navbar ul.mk-nav-menu > li.current-menu-item > a { 
    color: #005BBB; 
    font-weight: 700; 
    box-shadow: inset 0 -3px 0 0 #005BBB; 
}

/* --- 下拉選單微調 --- */
.mk-dropdown-menu ul { list-style: none; padding: 0; margin: 0; }
.mk-dropdown-menu ul li { margin-bottom: 0.75rem; }
.mk-dropdown-menu ul li a { 
    color: #334155; font-size: 0.95rem; font-weight: 500; display: block; transition: all 0.2s;
}
.mk-dropdown-menu ul li a:hover { color: #005BBB; transform: translateX(4px); }
.mk-dropdown-menu ul li a::before {
    content: "\f054"; /* fa-chevron-right */
    font-family: "Font Awesome 6 Free"; 
    font-weight: 900;
    font-size: 0.7rem; 
    color: #cbd5e1; 
    margin-right: 8px; 
    transition: color 0.2s;
}
.mk-dropdown-menu ul li a:hover::before { color: #005BBB; }

/* --- 文章內容排版 (Typography) --- */
.entry-content { color: #334155; }
.entry-content p { margin-bottom: 1.75rem; line-height: 1.85; font-size: 1.05rem; text-align: justify; }
.entry-content h2 { 
    margin-top: 3.5rem; margin-bottom: 1.5rem; font-size: 1.75rem; font-weight: 800; 
    color: #0f172a; border-left: 5px solid #005BBB; padding-left: 1rem; line-height: 1.3; 
}
.entry-content h3 { 
    margin-top: 2.5rem; margin-bottom: 1rem; font-size: 1.4rem; font-weight: 700; 
    color: #005BBB; line-height: 1.4; 
}
.entry-content ul, .entry-content ol { margin-bottom: 1.75rem; padding-left: 1.5rem; }
.entry-content ul li { list-style-type: disc; margin-bottom: 0.5rem; }
.entry-content ol li { list-style-type: decimal; margin-bottom: 0.5rem; }
.entry-content img { border-radius: 0.5rem; box-shadow: 0 4px 6px rgba(0,0,0,0.1); margin: 2rem auto; max-width: 100%; height: auto; }
.entry-content a { color: #005BBB; text-decoration: underline; text-underline-offset: 4px; }
.entry-content blockquote { border-left: 4px solid #cbd5e1; padding-left: 1.5rem; margin: 2rem 0; font-style: italic; color: #64748b; }

/* --- Swiper 客製化 --- */
.swiper-pagination-bullet { 
    background: white; opacity: 0.5; box-shadow: 0 1px 3px rgba(0,0,0,0.3); 
    width: 10px; height: 10px; transition: all 0.3s;
}
.swiper-pagination-bullet-active { background: #005BBB; opacity: 1; transform: scale(1.2); }

/* 導航按鈕：手機預設隱藏，電腦版顯示 */
.swiper-button-next, .swiper-button-prev { 
    display: none; 
    color: #fff; width: 3rem; height: 3rem; 
    background: rgba(0,0,0,0.2); border-radius: 50%; 
    backdrop-filter: blur(4px); transition: all 0.3s;
}
@media (min-width: 768px) {
    .swiper-button-next, .swiper-button-prev { display: flex; }
}
.swiper-button-next:after, .swiper-button-prev:after { font-size: 1.2rem; font-weight: bold; }
.swiper-button-next:hover, .swiper-button-prev:hover { background: rgba(0, 91, 187, 0.9); opacity: 1; }