/* ========================================================
   🌐 全局基礎重置（Mobile First）
   ======================================================== */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f7f9fa;
    color: #333333;
    -webkit-tap-highlight-color: transparent;
}

ul, li {
    list-style: none;
    margin: 0;
    padding: 0;
}

a {
    text-style: none;
    text-decoration: none;
    color: #333333;
}

.clearfix::after {
    content: "";
    display: block;
    clear: both;
}

/* 間距緩衝塊 */
.hr10 {
    height: 10px;
    background-color: #f2f5f7;
    width: 100%;
}

.nullbox {
    height: 10px;
    background-color: #ffffff;
}

/* 全局主包裹容器 */
.wrap {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    background-color: #ffffff;
    box-sizing: border-box;
}

/* ========================================================
   🍔 頂部移動端微標籤導航欄（滑動網格布局）
   ======================================================== */
header {
    background-color: #ffffff;
    border-bottom: 1px solid #eef2f5;
    position: sticky;
    top: 0;
    z-index: 100;
}

.channels-wrap {
    width: 100%;
    overflow-x: auto; /* 開啟橫向滾動，完美適應手機端多標籤 */
    -webkit-overflow-scrolling: touch;
}

.channels-wrap::-webkit-scrollbar {
    display: none; /* 隱藏原生滾動條，保持視覺整潔 */
}

.channels {
    display: flex;
    white-space: nowrap;
    padding: 12px 10px;
}

.channels li {
    display: inline-block;
    margin-right: 15px;
    padding: 0 5px;
}

.channels li a {
    font-size: 16px;
    font-weight: bold;
    color: #444444;
    position: relative;
    padding-bottom: 5px;
}

/* 當前選中或懸停的高亮綠色小橫條 */
.channels li a:hover, .channels li.active a {
    color: #008800;
}

/* ========================================================
   🔍 百度/站內自適應搜索欄样式
   ======================================================== */
.search {
    padding: 10px 15px;
    background-color: #ffffff;
    max-width: 640px;
    margin: 0 auto;
    box-sizing: border-box;
}

.bdcs-search-form {
    display: flex;
    width: 100%;
    height: 42px;
    border: 2px solid #1a3a60; /* 深藍色經典邊框 */
    border-radius: 4px;
    overflow: hidden;
    box-sizing: border-box;
}

.search_txt {
    flex: 1;
    border: none;
    padding: 0 12px;
    font-size: 14px;
    color: #666666;
    outline: none;
    background-color: #fafafa;
}

.search_btn {
    width: 85px;
    background-color: #1a3a60; /* 經典深藍商務配色 */
    color: #ffffff;
    font-size: 15px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.search_btn:active {
    background-color: #11263f;
}

/* ========================================================
   📰 新聞塊模組與高仿文章列表（核心視覺）
   ======================================================== */
.modd {
    padding: 10px 15px;
    background-color: #ffffff;
}

/* 欄目美化標題頭 */
.title.TitA {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

/* 標題左側的标志性小綠裝飾方塊 */
.title.TitA em {
    width: 4px;
    height: 18px;
    background-color: #008800; /* 綠色主題視覺線 */
    display: inline-block;
    margin-right: 8px;
    border-radius: 2px;
}

.title.TitA h3 {
    margin: 0;
    font-size: 17px;
    font-weight: bold;
    color: #111111;
}

.title.TitA h3 a {
    color: #111111;
}

.title.TitA h3 a:hover {
    color: #008800;
}

/* 文章緊湊列表排版 */
.article-hot li {
    border-bottom: 1px dashed #ebee00; /* 仿製原版的淡黃/灰色點綴虛線 */
    padding: 12px 0;
    line-height: 1.5;
}

.article-hot li:last-child {
    border-bottom: none;
}

/* 文章標題連結 */
.article-hot li a {
    font-size: 16px;
    font-weight: 700;
    color: #222222;
    transition: color 0.15s;
    display: inline-block;
    margin-bottom: 4px;
}

.article-hot li a:hover {
    color: #008800;
}

/* 文章摘要導語 */
.article-hot li p {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: #666666;
    text-align: justify;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 最多顯示兩行，超出自動省略號 */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================================
   👣 網頁底部通用導航與版權頁尾
   ======================================================== */
.nav-foot {
    background-color: #333333;
    padding: 15px 10px;
    max-width: 640px;
    margin: 0 auto;
}

.nav-foot ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-foot ul li {
    margin: 5px 10px;
}

.nav-foot ul li a {
    color: #bbbbbb;
    font-size: 14px;
}

.nav-foot ul li a:hover {
    color: #ffffff;
}

.footer-min {
    background-color: #262626;
    padding: 20px 10px;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.footer-min .pc {
    display: inline-block;
    color: #999999;
    font-size: 13px;
    border: 1px solid #444444;
    padding: 4px 12px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.footer-min .copyright {
    font-size: 12px;
    color: #777777;
    line-height: 1.6;
}

/* ========================================================
   🖥️ 寬螢幕 PC 端的完美置中相容
   ======================================================== */
@media (min-width: 641px) {
    body {
        background-color: #eef2f5;
    }
    header, .search {
        max-width: 640px;
    }
}
