﻿
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #f0f0f0;
    --card-bg: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #444;
    --text-date: #333;
    --border: rgb(14 165 233 / 30%);
    --accent: #0ea5e9;
    --accent-hover: #0284c7;
    --star-color: #c8a800;
    --section-gap: 16px;
    --font: 'Noto Sans TC', sans-serif;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
}

/* ─── 頁面容器 ─────────────────────────────────── */
.page-wrap {
    max-width: 1300px;
    margin: 0 auto;
    padding: 32px 24px 48px;
}

/* ─── 區塊一：新聞圖卡列 ─────────────────────── */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
/*    gap: 8px;*/
    margin-bottom: var(--section-gap);
    margin-top: 2rem;

}

.news-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.2s;
    /*border: 1px solid var(--border);*/ /* 新增外框 */
    box-shadow: 0 1px 4px rgba(0,0,0,0.07); /* 新增陰影 */
    margin: 8px;
    box-shadow: 0 4px 16px rgba(14,165,233,0.10), 0 1px 4px rgba(14,165,233,0.06);
    border: 1px solid var(--border);
}

    .news-card:hover {
        box-shadow: 0 4px 18px rgba(0,0,0,0.13);
        box-shadow: 0 8px 28px rgba(14,165,233,0.18), 0 2px 8px rgba(14,165,233,0.10);
    }

.news-card__img {
    width: 100%;
    aspect-ratio: 4/3;
    /*aspect-ratio: 16 / 9;*/
    object-fit: cover;
    display: block;
    background: #ccc;
}

/* placeholder colored blocks (replace with real <img> in production) */
.news-card__img-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    display: block;
    background-size: cover;
    background-position: center;
}

.news-card__body {
    padding: 10px 12px 14px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.news-card__link {
    display: block; /* <a> 預設 inline，要改成 block 才能撐滿 */
    text-decoration: none;
    color: inherit;
    height: 100%;
}
.news-card__meta {
    font-size: 12px;
    color: var(--text-date);
    font-weight: 500;
    margin-bottom: 4px;
}

.news-card__title {
    font-size: 13.5px;
    color: var(--text-primary);
    line-height: 1.55;
    font-weight: 400;
}

/* ─── 區塊二：下半兩欄 ──────────────────────── */
.bottom-row {
    display: grid;
    /*    grid-template-columns: 1fr 1fr;*/
    /*grid-auto-flow: column;*/ /* 讓內容自動變成橫向排列的欄位 */
    /*grid-auto-columns: 1fr;*/ /* 每一欄都佔 1 分額（自動均分） */
    /*grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));*/
    grid-template-columns: repeat(1fr, 1fr);
    gap: 16px;
}

.panel {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 28px 32px;
    margin: 8px;
    border: 1px solid var(--border);/* 新增外框 */
    /*box-shadow: 0 1px 4px rgba(0,0,0,0.07);*/ /* 新增陰影 */
/*    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.05);*/
/*    box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 8px 8px rgba(0,0,0,0.04);*/
    box-shadow: 0 4px 16px rgba(14,165,233,0.10), 0 1px 4px rgba(14,165,233,0.06);
/*    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 32px rgba(0,0,0,0.10);*/
} 

/* 左側：國際處焦點 */
.focus-panel {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.focus-panel__badge {
    flex-shrink: 0;
    width: 148px;
    height: 148px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
/*    background: linear-gradient(135deg, #fef9e7 0%, #fde68a 40%, #c4b900 100%);*/
    position: relative;
}

.focus-panel__badge-inner {
    text-align: center;
    padding: 6px;
    color: #7a1010;
}

.badge-zh {
    font-size: 22px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 2px;
    display: block;
}

.badge-year {
    font-size: 13px;
    font-weight: 700;
    display: block;
    margin: 2px 0;
}

.badge-en {
    font-size: 11.5px;
    font-weight: 600;
    color: #a05000;
    display: block;
    line-height: 1.3;
}

.focus-panel__content {
    flex: 1;
}
.focus-panel__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* 消除 img 標籤預設的底部幽靈空白間距 */
}
.panel__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}

.focus-intro {
    font-size: 13.5px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.focus-quote {
    font-size: 13.5px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.focus-items {
    list-style: none;
}
body .container-fluid .meddle_area .grid_main_area10 .row .sec-main .mainbox ul.focus-items {
    display: block; /* 蓋掉舊版的 display: flex，讓列表乖乖垂直排列 */
    margin-bottom: 0; /* 蓋掉舊版的 20px 底部留白 (視你的設計需求也可改為其他數值) */
    list-style: none; /* 保留你原本新版的設定 */
    /*padding: 0;*/ /* 保險起見，清除 ul 預設的左側縮排 */

}
    body .container-fluid .meddle_area .grid_main_area10 .row .sec-main .mainbox ul.focus-items li {
        font-size: 13px;
        color: var(--text-secondary);
        border-radius: 12px;
        display: flex;
        align-items: baseline;
        gap: 6px;
        background-image: none; /* 移除背景圖 */
        width: 100%; /* 蓋掉原本的 30.333333% (視你的 flex 需求可改 100% 或 auto) */
        box-shadow: none; /* 移除陰影 */
        padding: 0;
    }
    body .container-fluid .meddle_area .grid_main_area10 .row .sec-main .mainbox ul.focus-items li:hover {
        background: var(--accent);
        color: #ffffff;
        transform: scale(1.03);
        transition: all 0.2s;
        box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
     
    }
        body .container-fluid .meddle_area .grid_main_area10 .row .sec-main .mainbox ul.focus-items li:hover a {
            color: #ffffff !important;
       
        }
        body .container-fluid .meddle_area .grid_main_area10 .row .sec-main .mainbox ul.focus-items li:hover a::before {
            color: #ffffff !important;
        }
        body .container-fluid .meddle_area .grid_main_area10 .row .sec-main .mainbox ul.focus-items li a {
            text-align: left !important;
            padding: 12px 16px;
        }
/*    body .container-fluid .meddle_area .grid_main_area10 .row .sec-main .mainbox ul.focus-items li::before {
        content: '★';
        color: var(--star-color);
        font-size: 12px;
        flex-shrink: 0;
    }*/
    body .container-fluid .meddle_area .grid_main_area10 .row .sec-main .mainbox ul.focus-items li a::before {
        content: '●';
        color: var(--accent);
        font-size: 10px;
        flex-shrink: 0;
        padding-right:4px;
    }

    .focus-items .date-tag {
        font-weight: 600;
        color: var(--text-primary);
    }

/* 右側：國際處系統與鏈結 */
.links-panel {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.links-panel__icon {
    flex-shrink: 0;
    width: 148px;
    height: 148px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e8e8e8;
/*    background: linear-gradient(145deg, #fef3c7, #fcd34d 60%, #d97706);*/
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    line-height: 1;
}

.links-panel__content {
    flex: 1;
}

/* ─── 反應式 ─────────────────────────────────── */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr 1fr;
    }

    .bottom-row {
        grid-template-columns: 1fr;
    }

    .focus-panel, .links-panel {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}


