/* --- 1. 核心設定 --- */
:root {
    --brand-blue: #1736F5;
    --brand-dark: #0b1a7a;
    --accent-yellow: #FFC709;
    --text-dark: #333333;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--brand-blue);
    background-image: radial-gradient(circle at 50% 10%, #4c6aff 0%, var(--brand-blue) 40%, var(--brand-dark) 100%);
    font-family: 'PingFang TC', 'Microsoft JhengHei', sans-serif;
    min-height: 100vh;
    padding: 40px 20px 120px 20px;
    display: flex;
    justify-content: center;
    color: #fff;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* --- 2. 標題區 --- */
.header-card {
    grid-column: span 3;
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 30px;
    padding: 40px;
    text-align: left;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    z-index: 20;
}

.header-tag {
    background: var(--brand-blue);
    color: #fff;
    font-weight: 900;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 15px;
    font-family: 'Noto Sans TC', sans-serif;
}

.header-content h1 { 
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 900;
    font-size: 2.5rem; 
    margin-bottom: 10px; 
    color: var(--brand-blue); 
    line-height: 1.2;
}

.meta-info {
    color: #555;
    font-weight: bold;
    display: flex;
    gap: 15px;
    align-items: center;
}
.meta-info i { color: var(--brand-blue); }

/* 回上一頁按鈕 */
.back-link {
    position: absolute;
    top: 40px;
    right: 40px;
    text-decoration: none;
    color: var(--brand-blue);
    font-weight: 900;
    font-family: 'Noto Sans TC', sans-serif;
    border: 2px solid var(--brand-blue);
    padding: 8px 20px;
    border-radius: 50px;
    transition: 0.3s;
    z-index: 30;
}
.back-link:hover { background: var(--brand-blue); color: #fff; }

/* --- 3. 文章內容區 --- */
.article-card {
    grid-column: span 2;
    background: rgba(255, 255, 255, 0.95); /* 提高不透明度以利閱讀 */
    backdrop-filter: blur(15px);
    border-radius: 30px;
    padding: 40px;
    color: #333;
    line-height: 1.8;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.article-content h2 {
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 900;
    color: var(--brand-blue);
    font-size: 1.8rem;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}
.article-content h2:first-child { margin-top: 0; }

.article-content p { margin-bottom: 20px; font-size: 1.05rem; }

.article-content ul {
    background: rgba(23, 54, 245, 0.05);
    padding: 30px 30px 30px 50px;
    border-radius: 20px;
    margin-bottom: 30px;
}
.article-content li { margin-bottom: 10px; font-weight: bold; }

.highlight-box {
    background: var(--accent-yellow);
    color: var(--brand-blue);
    padding: 20px;
    border-radius: 15px;
    font-weight: bold;
    text-align: center;
    margin: 30px 0;
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 1.2rem;
}

/* --- 4. 側邊欄 (相關資訊/CTA) --- */
.sidebar-card {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-box {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 30px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.info-box h3 {
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 900;
    color: #25F4EE;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.cta-box {
    background: #000;
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cta-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    background: -webkit-linear-gradient(45deg, #00f2ea, #ff0050);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-btn {
    background: #FE2C55;
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    display: inline-block;
    transition: 0.3s;
    width: 100%;
}
.cta-btn:hover { background: #FFFFFF; color: #000000; }

/* --- 5. 漂浮圖片 (小太空人) --- */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}
.small-mascot {
    position: absolute;
    right: 20px;
    bottom: 200px;
    width: 150px;
    animation: float 5s ease-in-out infinite;
    z-index: 1;
    opacity: 1; /* 讓它變成背景裝飾，不搶戲 */
}

/* --- 6. 導覽列 --- */
.dock-nav {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(20px);
    padding: 15px 30px;
    border-radius: 50px;
    display: flex;
    gap: 20px;
    border: 1px solid rgba(255,255,255,0.4);
    z-index: 100;
}
.dock-nav a { text-decoration: none; color: #fff; font-weight: bold; transition: 0.2s; }
.dock-nav a:hover { color: var(--accent-yellow); transform: translateY(-3px); }

/* RWD */
@media (max-width: 900px) {
    .container { grid-template-columns: 1fr; }
    .header-card, .article-card, .sidebar-card { grid-column: span 1; }
    .back-link { position: relative; top: 0; right: 0; display: inline-block; margin-bottom: 20px; text-align: center;}
    .header-card { display: flex; flex-direction: column-reverse; align-items: flex-start; }
    .dock-nav { 
        width: 90%; 
        justify-content: space-between; 
        padding: 12px 20px; 
        gap: 10px;
        bottom: 20px;
    }
    .dock-nav a { font-size: 0.85rem; }
}

@media (max-width: 560px) {
    .small-mascot {
        /* z-index: -1; */
        filter: blur(0.7px);
        opacity: 0.6;
        bottom: 220px;
    }
}
