@charset "utf-8";
/* ==========================================================================
   2025 鴻海研究院年鑑 - 全新視覺改版樣式 (style.css 完全重寫)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100;300;400;700;900&display=swap');

/* --- 全域變數 --- */
:root {
    --bg-dark-blue: #0b132b;
    --bg-deep-blue: #050a17;
    --bg-laser-red: #8b1c1c;
    --gradient-red: linear-gradient(135deg, #a80000 0%, #e62e2e 100%);
    --accent-yellow: #FFDD4E;
    --text-white: #ffffff;
    --text-dark: #19264B;
}

*, body, h1, h2, h3, h4, h5, h6, a, p, select {
    font-family: "Noto Sans TC", "微軟正黑體", "Microsoft JhengHei", sans-serif;
    box-sizing: border-box; /* 確保 padding 不會撐破容器 */
}

::selection, ::-moz-selection {
    background: var(--accent-yellow);
    color: var(--text-dark);
}

a { transition: 0.3s ease-in-out; text-decoration: none; }
html { height: 100%; margin: 0; }
body { margin: 0; min-height: 100%; background: var(--bg-dark-blue); color: var(--text-white); }
img { display: block; width: 100%; height: auto; }
.CleanFormat { clear: both; }
article::after, section::after, header::after { content: ""; display: block; clear: both; }

/* --------------------------------------------------------------------------
   Header & Menu (保留手機版選單邏輯，升級視覺)
   -------------------------------------------------------------------------- */
header {
    display: block; position: fixed; width: 100%; top: 0; left: 0; z-index: 50;
    font-size: 0; background: rgba(5, 10, 23, 0.9); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
header > div { display: inline-block; vertical-align: middle; }

.Logo { width: 26vw; }
.Logo a {
    display: block; padding: 1.5vw 2vw; background-color: transparent;
    color: var(--text-white); font-weight: 900; font-size: 1.5vw;
    text-align: center; letter-spacing: 1px;
}
.Logo a:hover { color: var(--accent-yellow); }

.Menu { width: calc(100% - 26vw); font-size: 0; }
nav { display: inline-block; vertical-align: middle; width: calc(100% - 10vw); }
nav ul { display: block; font-size: 0; text-align: right; }
nav ul li { display: inline-block; vertical-align: middle; margin-right: 1.5vw; }
nav ul li a { font-size: 1.1vw; font-weight: 400; color: #fff; padding: 0.5vw 1.5vw; border-radius: 50px; }
nav ul li.active a, nav ul li a:hover { background: var(--text-white); color: var(--text-dark); font-weight: bold; }

#Lan { display: inline-block; vertical-align: middle; width: 10vw; text-align: center; }
#Lan a {
    display: inline-block; padding: 0.5vw 1.5vw; border: 1px solid var(--text-white);
    color: var(--text-white); border-radius: 50px; font-size: 1vw;
}
#Lan a:hover { background: var(--text-white); color: var(--text-dark); }

/* 手機版選單按鈕 */
.MenuBtn { display: none; position: absolute; width: 10vw; top: 3vw; right: 3vw; text-align: center; }
.MenuBtnLine { display: block; width: 100%; padding-top: 60%; position: relative; margin-bottom: 1vw; }
.MenuBtnLine span { display: block; position: absolute; width: 100%; height: 0.8vw; background: #fff; border-radius: 1vw; left: 0; transition: .5s; }
.MenuBtnLine span:nth-child(1) { top: 0; }
.MenuBtnLine span:nth-child(2) { top: calc(50% - 0.4vw); opacity: 1; }
.MenuBtnLine span:nth-child(3) { bottom: 0; }
.MenuBtnTxt { font-size: 2.5vw; font-weight: bold; color: #fff; }

header.active .MenuBtnLine span:nth-child(1) { transform: rotate(45deg); top: calc(50% - 0.4vw); background: var(--accent-yellow); }
header.active .MenuBtnLine span:nth-child(2) { opacity: 0; }
header.active .MenuBtnLine span:nth-child(3) { transform: rotate(-45deg); top: calc(50% - 0.4vw); background: var(--accent-yellow); }
header.active .MenuBtnTxt { color: var(--accent-yellow); }

/* --------------------------------------------------------------------------
   首頁 KV 區塊
   -------------------------------------------------------------------------- */
#KV { display: block; position: relative; width: 100%; height: 100vh; overflow: hidden; }
.videoBgBk { width: 100%; height: 100%; position: absolute; top: 0; left: 0; z-index: -1; }
.videoBgBk video { width: 100%; height: 100%; object-fit: cover; }
.KVTxt { display: block; position: relative; width: 100%; height: 100%; }
.KVTxt img { display: block; position: absolute; width: 35%; margin: auto; top: 0; left: 0; right: 0; bottom: 0; filter: drop-shadow(0 0 20px rgba(0,0,0,0.5)); }

.ScorlAni { display: block; position: absolute; height: 15vh; width: 1px; background: rgba(255,255,255,0.3); bottom: 0; left: calc(50% - 0.5px); }
.ScorlAni::before {
    content: ""; display: block; position: absolute; width: 0.8vw; height: 0.8vw;
    background: #fff; border-radius: 50%; left: calc(-0.4vw + 0.5px);
    animation: scroll-indicator 2.5s ease-in-out infinite;
}
@keyframes scroll-indicator {
    0% { top: 0; opacity: 0; } 10% { opacity: 1; } 80% { top: 100%; opacity: 1; } 100% { top: 100%; opacity: 0; }
}

/* --------------------------------------------------------------------------
   通用區塊設定 & 大圓形標題 (2025 新視覺)
   -------------------------------------------------------------------------- */
section { position: relative; padding: 6vw 0; }

h2.title {
    position: relative; text-align: left; padding: 3vw 0 3vw 8vw;
    font-size: 2.5vw; font-weight: 900; color: var(--text-white); z-index: 2;
    max-width: 80%; margin: 0 auto 3vw; letter-spacing: 2px;
}
h2.title::before {
    content: ""; position: absolute; top: 50%; left: 3vw; transform: translateY(-50%);
    width: 7vw; height: 7vw; border-radius: 50%; z-index: -1;
}
#index_manager h2.title::before { background-color: #d92121; } /* 願景與展望：紅圓 */
#indexTech h2.title::before { background-color: #1c2e5c; }     /* 技術最前線：藍圓 */
#indexWorldLink h2.title::before { background-color: #d92121; }/* 夥伴觀點：紅圓 */

/* 通用膠囊按鈕 */
.ReadMore a {
    display: inline-block; background: var(--accent-yellow); color: var(--text-dark);
    padding: 0.8vw 2.5vw; border-radius: 50px; font-weight: 900; font-size: 1.1vw;
    box-shadow: 0 4px 15px rgba(255, 221, 78, 0.3);
}
.ReadMore a:hover { background: #fff; transform: translateY(-3px); box-shadow: 0 6px 20px rgba(255, 255, 255, 0.5); }

/* --------------------------------------------------------------------------
   Section 1: 願景與展望 (#index_manager)
   -------------------------------------------------------------------------- */
#index_manager { background: var(--bg-dark-blue); }
#first_manager, #second_manager {
    display: flex; align-items: center; justify-content: space-between;
    width: 70%; margin: 0 auto 6vw;
}
#second_manager { flex-direction: row-reverse; } /* 左右交錯排版 */

.managerPaperTitle { width: 50%; }
.managerPaperTitle h3 { font-size: 2.2vw; margin-bottom: 1.5vw; color: var(--accent-yellow); line-height: 1.4; }
.managerPaperDec { font-size: 1.1vw; font-weight: 300; margin-bottom: 2vw; line-height: 1.8; text-align: justify; color: #ccc; }

.managerPhoto { width: 40%; position: relative; }
.indexManagerImg { width: 100%; border-radius: 2vw; overflow: hidden; background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%); }
#Manager1, #Manager2 {
    position: absolute; bottom: 5%;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(5px);
    padding: 1vw 2vw; border-radius: 1vw; border: 1px solid rgba(255,255,255,0.2);
}
#Manager1 { left: -10%; }
#Manager2 { right: -10%; text-align: right; }
.managerName { font-size: 1.5vw; font-weight: bold; color: var(--accent-yellow); }
.managerTitle { font-size: 1vw; color: #fff; }

/* 諮詢委員清單 */
#ManagerList { margin-top: 5vw; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 5vw; }
#ManagerList ul { display: flex; justify-content: center; gap: 2vw; width: 90%; margin: 0 auto; }
#ManagerList ul li { width: 18%; text-align: center; }
.indexManagerListPhoto { 
    width: 100%; aspect-ratio: 1/1.2; overflow: hidden; border-radius: 1.5vw; 
    margin-bottom: 1vw; background: rgba(255,255,255,0.05);
}
.indexManagerListPhoto img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
#ManagerList h3 { font-size: 1.2vw; color: var(--accent-yellow); margin-bottom: 0.5vw; }
#ManagerList .jobTitle { font-size: 0.9vw; color: #aaa; }
#ManagerList a:hover img { transform: scale(1.05); }

/* --------------------------------------------------------------------------
   Section 2: 技術最前線 (#indexTech)
   -------------------------------------------------------------------------- */
#indexTech { background: var(--gradient-red); position: relative; }
#indexTech::before { /* 增加背景紋理/網格感 */
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px); background-size: 30px 30px; z-index: 0;
}
#indexTech > * { position: relative; z-index: 1; }

#indexTechList { width: 80%; margin: 0 auto; }
#indexTechList .slick-slide { text-align: center; padding: 2vw; transition: 0.5s; opacity: 0.5; transform: scale(0.85); }
#indexTechList .slick-slide.slick-active.slick-center { opacity: 1; transform: scale(1); }

/* 將圖片改為設計圖中的大圓形 */
.indexTechCover {
    width: 25vw; height: 25vw; margin: 0 auto 2vw;
    border-radius: 50%; overflow: hidden;
    border: 5px solid rgba(255,255,255,0.2);
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}
.indexTechCover img { width: 100%; height: 100%; object-fit: cover; }

.indexTechTag {
    display: inline-block; background: var(--accent-yellow); color: var(--text-dark);
    padding: 0.5vw 2vw; border-radius: 50px; font-weight: bold; font-size: 1vw; margin-bottom: 1vw;
}
#indexTechList h4 { font-size: 1.8vw; color: var(--text-white); font-weight: 700; }

/* --------------------------------------------------------------------------
   Section 3: 夥伴觀點 (#indexWorldLink)
   -------------------------------------------------------------------------- */
#indexWorldLink { background: var(--bg-deep-blue); }
#indexWorldLinkList { width: 70%; margin: 0 auto; }

.indexWorldLinkBk {
    display: flex !important; align-items: center; justify-content: center; gap: 4vw; padding: 2vw;
}
.indexWorldLinkCover {
    width: 25vw; height: 25vw; border-radius: 50%; overflow: hidden;
    border: 3px solid rgba(255,255,255,0.3); flex-shrink: 0;
}
.indexWorldLinkCover div { width: 100%; height: 100%; background-size: cover !important; background-position: center !important; }

.indexWorldLinkText { width: 50%; }
.indexWorldLinkText h4 { font-size: 2vw; color: var(--accent-yellow); margin-bottom: 1vw; }
.indexWorldLinkDec { font-size: 1.1vw; line-height: 1.8; color: #ccc; margin-bottom: 2vw; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; text-align: justify; }

.indexWorldLinkRead a {
    display: inline-block; border: 1px solid var(--accent-yellow); color: var(--accent-yellow);
    padding: 0.8vw 2.5vw; border-radius: 50px; font-weight: bold; font-size: 1vw;
}
.indexWorldLinkRead a:hover { background: var(--accent-yellow); color: var(--text-dark); }

/* --------------------------------------------------------------------------
   Slick Carousel 覆寫
   -------------------------------------------------------------------------- */
.slick-dots { bottom: -3vw; }
.slick-dots li { margin: 0 5px; }
.slick-dots li button:before { color: #fff; font-size: 12px; opacity: 0.3; }
.slick-dots li.slick-active button:before { color: var(--accent-yellow); opacity: 1; }
.slick-prev, .slick-next { width: 3vw; height: 3vw; background: rgba(255,255,255,0.1); border-radius: 50%; z-index: 10; transition: 0.3s; }
.slick-prev:hover, .slick-next:hover { background: var(--accent-yellow); }
.slick-prev { left: -4vw; } .slick-next { right: -4vw; }
.slick-prev:before, .slick-next:before { color: #fff; font-family: sans-serif; }
.slick-prev:hover:before, .slick-next:hover:before { color: var(--text-dark); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer { background: #03060e; padding: 4vw 0; border-top: 1px solid rgba(255,255,255,0.1); }
#footer { display: flex; justify-content: space-between; width: 80%; margin: 0 auto; }
.footLogo { width: 25%; }
.aboutHH { width: 50%; border-left: 1px solid rgba(255,255,255,0.2); padding-left: 3vw; }
.footerTitle { font-size: 1.2vw; font-weight: bold; color: var(--accent-yellow); margin-bottom: 1vw; }
.footerContent { font-size: 0.9vw; color: #888; line-height: 1.6; text-align: justify; }
.ebook { width: 15%; border-left: 1px solid rgba(255,255,255,0.2); padding-left: 3vw; }
.ebookIcon { width: 4vw; height: 4vw; margin-bottom: 0.5vw; background: url(../images/icon_ebook_02.png) no-repeat center; background-size: contain; filter: brightness(0) invert(1); }
.ebook a:hover .ebookIcon { filter: drop-shadow(0 0 5px var(--accent-yellow)); }
.ebook a div:last-child { color: #fff; font-size: 1vw; font-weight: bold; }

/* --------------------------------------------------------------------------
   RWD 手機版
   -------------------------------------------------------------------------- */
@media only screen and (max-width: 768px) {
    .view_w { display: none; } .view_m { display: block; }
    
    header { padding: 2vw 0; }
    .Logo { width: 60%; } .Logo a { font-size: 4vw; text-align: left; padding-left: 5vw; }
    .MenuBtn { display: block; }
    .Menu { display: none; position: absolute; top: 100%; left: 0; width: 100%; height: 100vh; background: var(--bg-dark-blue); }
    nav { width: 100%; display: block; padding-top: 10vw; }
    nav ul li { display: block; text-align: center; margin: 0 0 5vw 0; }
    nav ul li a { font-size: 5vw; }
    #Lan { width: 100%; display: block; margin-top: 5vw; }
    #Lan a { font-size: 4vw; }

    h2.title { font-size: 6vw; padding: 5vw 0 5vw 15vw; max-width: 90%; }
    h2.title::before { width: 15vw; height: 15vw; left: 2vw; }

    #first_manager, #second_manager { flex-direction: column; width: 90%; gap: 5vw; }
    .managerPaperTitle { width: 100%; }
    .managerPaperTitle h3 { font-size: 6vw; }
    .managerPaperDec { font-size: 3.5vw; }
    .managerPhoto { width: 80%; }
    #Manager1, #Manager2 { position: relative; bottom: 0; left: 0; right: 0; text-align: center; margin-top: -5vw; }
    .managerName { font-size: 4vw; } .managerTitle { font-size: 3vw; }
    .ReadMore a { font-size: 3.5vw; padding: 2vw 6vw; }

    #ManagerList ul { flex-wrap: wrap; gap: 4vw; }
    #ManagerList ul li { width: 45%; margin-bottom: 5vw; }
    #ManagerList h3 { font-size: 4vw; } #ManagerList .jobTitle { font-size: 3vw; }

    .indexTechCover { width: 60vw; height: 60vw; }
    .indexTechTag { font-size: 3vw; padding: 1vw 4vw; }
    #indexTechList h4 { font-size: 5vw; }
    #indexTech .slick-prev { left: 0; } #indexTech .slick-next { right: 0; }

    .indexWorldLinkBk { flex-direction: column !important; text-align: center; }
    .indexWorldLinkCover { width: 60vw; height: 60vw; }
    .indexWorldLinkText { width: 100%; }
    .indexWorldLinkText h4 { font-size: 5vw; }
    .indexWorldLinkDec { font-size: 3.5vw; text-align: center; }
    .indexWorldLinkRead a { font-size: 3.5vw; padding: 2vw 6vw; }

    #footer { flex-direction: column; align-items: center; text-align: center; gap: 8vw; }
    .footLogo, .aboutHH, .ebook { width: 90%; border: none; padding: 0; }
    .footerTitle { font-size: 5vw; } .footerContent { font-size: 3.5vw; text-align: center; }
    .ebookIcon { width: 15vw; height: 15vw; margin: 0 auto 2vw; }
    .ebook a div:last-child { font-size: 4vw; }
}