/* --- 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%);
    /* 預設維持 PingFang / Microsoft JhengHei */
    font-family: 'PingFang TC', 'Microsoft JhengHei', sans-serif;
    min-height: 100vh;
    padding: 40px 20px 120px 20px;
    display: flex;
    justify-content: center;
    color: #fff;
}

/* --- 2. 排版系統 --- */
.container {
    width: 100%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* --- 3. [一般服務卡片] --- */
.service-card {
    grid-column: span 2;
    min-height: 280px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 30px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.icon-box {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.service-card .card-icon { 
    color: var(--brand-blue); 
    font-size: 2.5rem; 
    transition: 0.3s;
}

.bg-number {
    position: absolute;
    right: -10px;
    bottom: -20px;
    font-size: 8rem;
    font-weight: 900;
    color: var(--brand-blue);
    opacity: 0.08;
    pointer-events: none;
    font-family: sans-serif;
    transition: 0.3s;
}

/* 服務卡片標題 (H3) - 改為特粗黑體 */
.service-card h3 { 
    /* 指定 Noto Sans TC */
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 900; 
    
    color: var(--brand-blue); 
    font-size: 1.6rem; 
    margin-bottom: 15px; 
    position: relative; 
    z-index: 2;
    letter-spacing: 0.5px;
}

.service-card p { 
    color: #333; 
    line-height: 1.6; 
    font-weight: 500;
    margin-bottom: 20px;
    position: relative; z-index: 2;
}

.read-more {
    margin-top: auto;
    color: var(--brand-blue);
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.95rem;
    position: relative; z-index: 2;
    align-self: flex-start;
}
.read-more:hover { gap: 10px; }

.tag-row { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 2; margin-bottom: 15px; }
.tag-text {
    background: rgba(23, 54, 245, 0.1);
    color: var(--brand-blue);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: bold;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}
.service-card:hover .card-icon { transform: scale(1.1); }
.service-card:hover .bg-number { opacity: 0.15; transform: scale(1.1) rotate(-5deg); }


/* --- 4. [虛擬網紅區塊] --- */
.highlight-card {
    grid-column: span 4;
    background: var(--accent-yellow);
    color: #808080;
    border-radius: 30px;
    padding: 40px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(rgba(0,0,0,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
}

.highlight-content { position: relative; z-index: 2; }

/* 虛擬網紅標題 (H2) - 改為特粗黑體 */
.highlight-card h2 { 
    /* 指定 Noto Sans TC */
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 900; 
    
    color: var(--brand-blue); 
    font-size: 2.2rem; 
    margin-bottom: 15px; 
    display: flex; align-items: center; gap: 15px; 
    letter-spacing: -0.5px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 25px;
}
.detail-item {
    background: rgba(255, 255, 255, 0.7);
    padding: 25px;
    border-radius: 20px;
    font-size: 1rem;
    color: #333;
    border: 2px solid rgba(255,255,255,0.8);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
}
.detail-item:hover { transform: translateY(-5px); border-color: var(--brand-blue); }

.detail-icon { font-size: 1.5rem; color: var(--brand-blue); margin-bottom: 10px; display: block; }

.highlight-card:hover { transform: translateY(-5px); }


/* --- 5. [標題區] --- */
.header-card {
    grid-column: span 4;
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.8); 
    border-radius: 30px;
    padding: 40px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    /* [修改] 確保 overflow 為 hidden，讓圖片不超出 */
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15); 
}

.header-content {
    z-index: 2;
    max-width: 600px;
}

.header-tag {
    background: var(--accent-yellow);
    color: var(--brand-blue);
    font-weight: 900;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

/* 主標題 (H1) - 改為特粗黑體 */
.header-card h1 { 
    /* 指定 Noto Sans TC */
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 900; 
    
    font-size: 3.5rem; 
    margin-bottom: 15px; 
    color: var(--brand-blue); 
    text-shadow: none; 
    line-height: 1.1;
    letter-spacing: -1px; 
}

.header-card p { 
    font-size: 1.2rem; 
    color: #333; 
    font-weight: 600; 
    opacity: 0.9; 
}

.header-deco {
    position: absolute;
    right: 0px;
    bottom: -210px;
    width: 350px;
    opacity: 0.9;
    /* [修改] 移除旋轉，為漂浮動畫做準備 */
    transform: rotate(0deg); 
    z-index: 1; 
    pointer-events: none; 
}

/* [新增] 漂浮動畫定義 */
@keyframes float-vertical {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* [修改] 將動畫應用於圖片 */
.header-deco img {
    width: 100%;
    height: auto;
    display: block;
    /* 套用漂浮動畫，持續 6 秒，無限循環 */
    animation: float-vertical 6s ease-in-out infinite;
}


/* --- 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: 768px) {
    .container { grid-template-columns: 1fr; }
    .header-card, .service-card, .highlight-card { grid-column: span 1; }
    .detail-grid { grid-template-columns: 1fr; }
    .dock-nav { 
        width: 90%; 
        justify-content: space-between; 
        padding: 12px 20px; 
        gap: 10px;
        bottom: 20px;
    }
    .dock-nav a { font-size: 0.85rem; }
    .bg-number { font-size: 6rem; }
    
    .header-card { 
        flex-direction: column; 
        align-items: flex-start; 
        padding-bottom: 180px; 
    }
    .header-deco { 
        width: 260px; 
        right: -40px; 
        bottom: -20px;
        opacity: 0.6; 
    }
}
