/* style.css - Hergeng Vietnam 完整樣式表 (2025 最新修正版) */

/* =========================================
   1. 全局設定 (Global Settings)
   ========================================= */
:root {
    --primary-color: #f05a28; /* Gema 品牌橘色 */
    --secondary-color: #333;
    --light-bg: #f4f4f4;
    --text-color: #333;
    --white: #fff;
    --footer-bg: #1a1a1a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-color);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   2. Header 與 選單 (Header & Navbar)
   ========================================= */
.header {
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

/* --- Logo 區域修正 (圖左文右) --- */
.logo {
    display: flex;
    align-items: center; /* 讓圖片與文字垂直置中 */
    gap: 15px;           /* Logo 與文字之間的距離 */
    text-decoration: none;
    max-width: 650px;    /* 放寬寬度限制 */
}

.logo img {
    height: 55px;        /* Logo 高度 */
    width: auto;         /* 寬度自動維持比例 */
}

.logo-text {
    display: flex;
    flex-direction: column;
}

/* 中文名稱 - 藍色 */
.logo h2 {
    color: #0056b3;      /* 深藍色 */
    font-weight: 800;
    font-size: 1.2rem;
    line-height: 1.2;
    margin: 0;
    text-transform: uppercase;
}

/* 越文名稱 - 黑色 */
.logo .vn-company {
    color: #000000;      /* 黑色 */
    font-size: 0.8rem;
    font-weight: 700;    /* 加粗 */
    margin-top: 2px;
}

/* --- 選單樣式 --- */
.navbar {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    margin: 0;
}

.nav-links li {
    margin-left: 30px;
    text-align: center;
}

.nav-links a {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s;
    display: block;
    line-height: 1.2;
}

.nav-links .vn-text {
    font-size: 0.75rem;
    color: #888;
    font-weight: normal;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

/* =========================================
   3. 首頁 (Index Page) 專用樣式
   ========================================= */
/* Main Hero (首頁大圖) */
.main-hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('images/hero-bg.png');
    background-size: cover;
    background-position: center;
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 20px;
}

.main-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

.main-hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.vn-title {
    display: block;
    font-size: 0.6em;
    margin-top: 10px;
    font-weight: normal;
    opacity: 0.9;
}

.hero-btn {
    background: #d9534f;
    color: white;
    padding: 12px 35px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(217, 83, 79, 0.4);
    display: inline-block;
}

.hero-btn:hover {
    background: #c9302c;
    transform: translateY(-3px);
}

/* 雙品牌區塊佈局 */
.brands-container {
    display: flex;
    flex-wrap: wrap;
}

.brand-box {
    flex: 1;
    min-width: 320px;
    padding: 70px 40px;
    color: white;
    position: relative;
    overflow: hidden;
}

.brand-box h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 15px;
    display: inline-block;
}

.vn-subtitle {
    display: block;
    font-size: 0.6em;
    margin-top: 5px;
    opacity: 0.9;
    font-weight: normal;
}

.brand-desc {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Gema 專屬樣式 (橘色) */
.gema-section {
    background: linear-gradient(rgba(240, 90, 40, 0.9), rgba(240, 90, 40, 0.9)), url('images/gema-bg.png');
    background-size: cover;
    background-position: center;
}

/* Graco 專屬樣式 (藍色) */
.graco-section {
    background: linear-gradient(rgba(0, 75, 141, 0.9), rgba(0, 75, 141, 0.9)), url('images/graco-bg.png');
    background-size: cover;
    background-position: center;
}

.brand-box .feature-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.brand-box .feature-list i {
    font-size: 1.2rem;
    margin-right: 15px;
    margin-top: 5px;
    color: rgba(255,255,255,0.8);
}

.vn-list {
    display: block;
    font-size: 0.85em;
    opacity: 0.8;
    margin-top: 3px;
    font-weight: normal;
}

.brand-cta {
    border: 2px solid white;
    color: white;
    padding: 10px 30px;
    font-weight: bold;
    display: inline-block;
    margin-top: 20px;
    transition: all 0.3s;
}

.brand-cta:hover {
    background: white;
    color: #333;
}

/* =========================================
   4. Gema 解決方案總覽 (gema_solutions.html)
   ========================================= */
.gema-hero {
    /* 背景圖：Gema 全系列循環圖 */
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/gema-hero-bg.jpg'); 
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content .vn-title {
    font-size: 1.2rem;
    font-weight: 400;
    display: block;
    margin-top: 10px;
}

/* 痛點解決方案卡片樣式 */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 20px;
}

.solution-card {
    display: block;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(0,0,0,0.05);
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(240, 90, 40, 0.2);
    border-color: var(--primary-color);
}

.card-image {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.solution-card:hover .card-image img {
    transform: scale(1.1);
}

.card-image .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-image .overlay i {
    font-size: 3rem;
    color: #fff;
}

.solution-card:hover .card-image .overlay {
    opacity: 1;
}

.card-content {
    padding: 30px;
    text-align: center;
}

.card-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.btn-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: bold;
    margin-top: 10px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.solution-card:hover .btn-link {
    border-bottom-color: var(--primary-color);
}

.category-tag {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    align-self: flex-start;
}

/* =========================================
   5. 產品詳情頁樣式 (Manual / Automatic)
   ========================================= */
.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: #f9f9f9;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--secondary-color);
}

/* 技術圖文排版 */
.tech-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 80px;
    gap: 50px;
}

.tech-row.reverse {
    flex-direction: row-reverse;
}

.tech-text {
    flex: 1;
}

.tech-visual {
    flex: 1;
    text-align: center;
}

.tech-visual img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    background: #fff;
    padding: 10px;
    border: 1px solid #eee;
}

.tech-tag {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.tech-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.tech-benefits {
    margin-top: 20px;
    list-style: none;
}

.tech-benefits li {
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

.tech-benefits i {
    color: #2e7d32;
    margin-right: 10px;
}

.caption {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #777;
    font-style: italic;
}

/* 手動噴槍頁 (Manual Coating) */
.manual-hero {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('images/manual-hero-bg.png'); 
    background-size: cover;
    background-position: center;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

/* 自動化噴槍頁 (Automatic Coating) */
.auto-hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/auto-hero-bg.jpg'); 
    background-size: cover;
    background-position: center;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

/* 確保系統大圖不被切且無邊框 (針對自動化頁面) */
.system-section .tech-visual img {
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
}

/* 產品型號卡片 (白色懸浮風格) */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 20px;
}

.model-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); 
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

.model-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(240, 90, 40, 0.15);
}

.model-img {
    height: 350px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.model-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.model-card:hover .model-img img {
    transform: scale(1.05);
}

.model-info {
    padding: 30px;
    text-align: center;
}

.model-info h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.vn-model {
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 20px;
    font-weight: 500;
}

/* =========================================
   6. Footer 頁尾 (Footer)
   ========================================= */
.footer {
    background: var(--footer-bg);
    color: #ccc;
    padding: 40px 0 20px;
    text-align: center;
    font-size: 0.95rem;
}

.footer h4 {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 5px;
}

.footer h5 {
    font-size: 0.95rem;
    color: #aaa;
    font-weight: 400;
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 0.9rem;
    margin: 8px 0;
    color: #ccc;
}

.contact-info .highlight {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 15px;
    display: block;
}

.copyright {
    margin-top: 30px;
    font-size: 0.8rem;
    color: #666;
    border-top: 1px solid #333;
    padding-top: 20px;
}

/* =========================================
   7. 手機版 RWD 設定 (Mobile Responsive)
   ========================================= */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 5px 5px rgba(0,0,0,0.1);
        padding: 20px 0;
    }

    .nav-links.active {
        display: fl/Users/jimyang/Documents/Zalo Received Files/越南網站/images/PCC_and_SuperCorona_169.jpegex;
    }

    .nav-links li {
        margin: 15px 0;
        margin-left: 0;
    }

    .hamburger {
        display: block;
    }

    /* 首頁調整 */
    .main-hero {
        height: 450px;
    }
    .main-hero h1 {
        font-size: 1.8rem;
    }
    .brand-box {
        padding: 50px 20px;
    }

    /* 內頁調整 */
    .solution-row, .solution-row.reverse, 
    .tech-row, .tech-row.reverse {
        flex-direction: column;
    }
    
    .manual-hero h1, .auto-hero h1 {
        font-size: 1.6rem;
    }
    
    .logo {
        max-width: 250px; /* 手機版 Logo 縮小 */
    }
    
    .logo img {
        height: 40px;
    }
    
    .logo h2 {
        font-size: 0.9rem;
    }
    
    .logo .vn-company {
        font-size: 0.6rem;
    }
}

/* 確保圖示樣式正確 (加在 style.css 最後面) */
.brand-box .feature-list li {
    display: flex;
    align-items: center; /* 垂直置中 */
    margin-bottom: 25px;
}

.brand-box .feature-list i {
    font-size: 1.5rem;    /* 圖示大小 */
    margin-right: 15px;   /* 圖示與文字距離 */
    color: rgba(255, 255, 255, 0.9); /* 微透明白色 */
    width: 30px;          /* 固定寬度確保對齊 */
    text-align: center;
}

.text-content {
    display: flex;
    flex-direction: column;
}

/* --- Graco IPK 專屬顏色樣式 --- */

/* 基礎設定：增加左側粗邊框，讓區塊更明顯 */
.ipk-row {
    border-left: 6px solid #ddd; 
    padding-left: 30px;
    margin-bottom: 60px;
}

/* 1. 藍色 - 泵浦控制 */
.ipk-blue {
    border-color: #00539B; /* Graco Blue */
}
.ipk-blue .tech-tag {
    background-color: #00539B;
    color: white;
}
.ipk-blue h3 {
    color: #00539B;
}

/* 2. 橘黃色 - 儲罐控制 */
.ipk-orange {
    border-color: #F58220; /* Graco/Safety Orange */
}
.ipk-orange .tech-tag {
    background-color: #F58220;
    color: white;
}
.ipk-orange h3 {
    color: #E06000; /* 稍微深一點的橘色以利閱讀 */
}

/* 3. 綠色 - 整體控制 */
.ipk-green {
    border-color: #00964E; /* Graco Green */
}
.ipk-green .tech-tag {
    background-color: #00964E;
    color: white;
}
.ipk-green h3 {
    color: #007A3E;
}

/* --- 下拉選單樣式 (Dropdown Menu) --- */

/* 1. 父層容器 */
.navbar .nav-links li {
    position: relative; /* 讓子選單相對於父層定位 */
}

/* 2. 下拉內容容器 (預設隱藏) */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%; /* 顯示在按鈕正下方 */
    left: 0;
    background-color: #ffffff;
    min-width: 260px; /* 選單寬度 */
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    border-top: 3px solid #F58220; /* 頂部加一條 Gema 橘色線條 */
    border-radius: 0 0 5px 5px;
    padding: 10px 0;
}

/* 3. 滑鼠移入顯示 */
.navbar .nav-links li:hover .dropdown-content {
    display: block;
}

/* 4. 選單內的分組標題 (OptiFlex Pro / 自動化) */
.dropdown-group-title {
    display: block;
    padding: 10px 20px 5px 20px;
    color: #333;
    font-weight: bold;
    font-size: 0.95rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 5px;
    pointer-events: none; /* 標題不可點擊，只做分類 */
}

.dropdown-group-title .vn-sub {
    display: block;
    font-size: 0.8em;
    color: #666;
    font-weight: normal;
}

/* 5. 具體的產品連結 (Pro B, Pro F...) */
.dropdown-content a {
    color: #555;
    padding: 8px 20px 8px 30px !important; /* 左邊多一點縮排 */
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: 0.3s;
    line-height: 1.4;
}

/* 連結 hover 效果 */
.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: #F58220; /* Gema 橘 */
    padding-left: 35px !important; /* hover 時稍微右移的動效 */
}

/* 6. 手機版 RWD 調整 (選用) */
@media (max-width: 768px) {
    .dropdown-content {
        position: static; /* 手機版不浮動，直接擠開內容 */
        box-shadow: none;
        border-top: none;
        padding-left: 20px;
        background-color: #f9f9f9;
        display: none; /* 預設隱藏，需搭配 JS 點擊顯示，這裡先保持簡單 */
    }
    .navbar .nav-links li:hover .dropdown-content {
        display: block; /* 手機版點擊/長按顯示 */
    }
}

/* --- 導航列下拉選單樣式 (Dropdown Menu) --- */

/* 1. 父層容器定位 */
.navbar .nav-links li {
    position: relative;
}

/* 2. 下拉內容容器 (預設隱藏) */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 280px; /* 寬度足夠容納長文字 */
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.15); /* 陰影更柔和 */
    z-index: 1000;
    border-radius: 0 0 5px 5px;
    padding: 10px 0;
    text-align: left; /* 確保內容靠左 */
}

/* 3. 品牌色頂部線條 (區分 Gema 與 Graco) */
/* 給 HTML 加上 class="gema-menu" 或 "graco-menu" */
.gema-menu .dropdown-content {
    border-top: 4px solid #F58220; /* Gema 橘 */
}
.graco-menu .dropdown-content {
    border-top: 4px solid #00539B; /* Graco 藍 */
}

/* 4. 滑鼠移入顯示 */
.navbar .nav-links li:hover .dropdown-content {
    display: block;
}

/* 5. 分組標題樣式 */
.dropdown-group-title {
    display: block;
    padding: 12px 20px 5px 20px;
    color: #333;
    font-weight: 700; /* 粗體 */
    font-size: 0.95rem;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 5px;
    pointer-events: none; /* 標題不可點擊 */
}

.dropdown-group-title .vn-sub {
    display: block;
    font-size: 0.8em;
    color: #888;
    font-weight: normal;
    margin-top: 2px;
}

/* 6. 選單連結樣式 */
.dropdown-content a {
    color: #555 !important; /* 強制覆蓋 navbar a 的顏色 */
    padding: 8px 20px 8px 30px !important; /* 左側縮排 */
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: all 0.2s ease;
}

/* 連結 Hover 效果 */
.gema-menu .dropdown-content a:hover {
    background-color: #fff8f0; /* Gema 淡橘背景 */
    color: #F58220 !important;
    padding-left: 35px !important;
}

.graco-menu .dropdown-content a:hover {
    background-color: #f0f8ff; /* Graco 淡藍背景 */
    color: #00539B !important;
    padding-left: 35px !important;
}

/* --- 下拉選單連結內的越文樣式 --- */
.dropdown-content a .vn-item {
    display: block;       /* 換行顯示 */
    font-size: 0.85em;    /* 字體縮小 */
    color: #888;          /* 顏色變淡 */
    font-weight: normal;  /* 正常粗細 */
    margin-top: 2px;      /* 與中文的間距 */
}

/* Hover 時讓越文顏色跟著變 */
.gema-menu .dropdown-content a:hover .vn-item,
.graco-menu .dropdown-content a:hover .vn-item {
    color: inherit;       /* 跟隨父層 hover 顏色 */
    opacity: 0.8;
}

/* 讓下拉選單中的標題變成可點擊的連結樣式 */
a.dropdown-group-title.hover-link {
    pointer-events: auto; /* 恢復可點擊 */
    cursor: pointer;
    text-decoration: none;
    display: block;
    width: 100%;
}

a.dropdown-group-title.hover-link:hover {
    background-color: rgba(0,0,0,0.05); /* 輕微背景色變化 */
    color: inherit; /* 保持文字顏色 */
}