:root {
    --primary-color: #E6007E;
    --secondary-color: #00848E;
    --enterprise-yellow: #ffb718;
    --footer-hover: #007985; /* 更新後的 Footer 懸停色 */
    --text-dark: #333;
    --bg-light: #F8F9FA;
}

/* 平滑捲動 */
html { scroll-behavior: smooth; }

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Noto Sans TC', sans-serif; color: var(--text-dark); line-height: 1.6; background-color: #fff; overflow-x: hidden; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }

/* Navbar */
.navbar { height: 80px; background: #fff; display: flex; align-items: center; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.navbar .container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo img { height: 50px; display: block; }

/* 新增導覽右側容器佈局 */
.nav-right { display: flex; align-items: center; }

.nav-links { display: flex; align-items: center; }
.nav-links a { margin-left: 25px; text-decoration: none; color: #333; font-weight: 500; font-size: 16px; transition: 0.3s; }
.nav-links a:hover { color: var(--secondary-color); }

/* 語系切換器 */
.lang-switcher { margin-left: 30px; cursor: pointer; font-size: 14px; border-left: 1px solid #ddd; padding-left: 20px; }
.lang-switcher span { transition: 0.3s; padding: 2px 5px; }
.lang-switcher .active { font-weight: bold; color: var(--secondary-color); }

/* Hero Section with Parallax */
.hero { 
    height: 600px;
    background-image: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0)), url('../images/Automate26_header.avif');
    background-attachment: fixed;
    background-position: center 60%; 
    background-repeat: no-repeat;
    background-size: cover;
    color: white;
    display: flex;
    align-items: center;
}
.hero-content { width: 100%; }
.hero-text { max-width: 700px; }
.hero-logo { height: 50px; margin-bottom: 15px; }
.hero h2 { font-size: 2.8rem; margin-bottom: 12px; font-weight: 700; color: #ffb718}
.hero p { font-size: 1rem; margin-bottom: 25px; opacity: 0.9; }
.event-info { margin-bottom: 25px; font-size: 1.1rem; }

/* 小螢幕高度優化 */
@media (max-height: 650px) {
    .navbar { height: 70px; }
    .logo img { height: 45px; }
    .hero { height: 530px; }
    .hero h2 { font-size: 2.4rem; color: #ffb718}
    .hero-logo { height: 40px; }
}

/* Buttons */
.btn { 
    padding: 12px 35px;
    border-radius: 50px; 
    border: none; 
    cursor: pointer; 
    font-weight: bold; 
    font-size: 16px; 
    transition: 0.3s; 
    margin-right: 15px;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}
.btn-primary { background: var(--secondary-color); color: white; }
.btn-secondary { background: #00A99D; color: white; }
.btn:hover { filter: brightness(1.1); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

/* Section Title */
.section-title { text-align: center; margin-bottom: 40px; font-size: 1.8rem; position: relative; padding-bottom: 15px; color: #333; }
.section-title::after { content: ''; width: 60px; height: 3px; background: var(--secondary-color); position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); }

/* Solutions Grid */
.solutions { padding: 60px 0; background: #fff; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.card { background: var(--bg-light); border-radius: 0; overflow: hidden; transition: 0.3s; }
.card:hover { box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.img-container { aspect-ratio: 1435 / 753; overflow: hidden; }
.img-container img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.card:hover img { transform: scale(1.05); }
.card-body { padding: 30px; }
.solution-link { text-decoration: none; color: inherit; }
.solution-link h4:hover { color: var(--secondary-color); }

/* Map Section */
.map-section { 
    background: linear-gradient(180deg, #E6EAEB 0%, #FFFFFF 100%);
    padding: 80px 0;
    text-align: center;
}
.map-image-container { margin-bottom: 30px; }
.booth-map { max-width: 100%; height: auto; display: inline-block; }

/* FAQ Accordion */
.faq { padding: 80px 0; background: #C1D2D6; }
.faq-container { max-width: 900px; margin: 0 auto; }
.faq-item { background: #fff; margin-bottom: 10px; border-radius: 4px; overflow: hidden; transition: 0.3s; border: 1px solid transparent; }
.faq-header { 
    padding: 20px 25px; 
    cursor: pointer; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    font-weight: bold; 
    font-size: 1.1rem;
    white-space: normal;
    overflow-wrap: break-word;
    gap: 15px; 
}
.faq-header span { flex: 1; line-height: 1.5; }
.faq-header i { transition: 0.3s; flex-shrink: 0; }
.faq-content { 
    max-height: 0; 
    overflow: hidden; 
    transition: all 0.3s ease; 
    padding: 0 25px; 
    background: #fff;
    white-space: normal;
}
.faq-item.active { border-color: var(--enterprise-yellow); }
.faq-item.active .faq-header { background: var(--enterprise-yellow); color: #000; }
.faq-item.active .faq-header i { transform: rotate(180deg); }
.faq-item.active .faq-content { max-height: 1000px; padding: 25px; }

/* Footer */
footer { background: #0a1118; color: #fff; padding: 60px 0; text-align: center; }
.social-links { margin-bottom: 25px; display: flex; justify-content: center; gap: 15px; }
.social-circle { 
    color: #fff; font-size: 20px; width: 45px; height: 45px; 
    border: 1px solid rgba(255,255,255,0.3); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; transition: 0.3s; text-decoration: none;
}
.social-circle:hover { 
    background: var(--footer-hover); 
    border-color: var(--footer-hover); 
    color: #fff; 
}
footer p { font-size: 14px; opacity: 0.6; }

/* 手機版響應式優化 */
@media (max-width: 768px) {
    .navbar { height: 70px; }
    .logo img { height: 40px; }
    
    /* 隱藏選單按鈕連結，但顯示 nav-right */
    .nav-links { display: none; }
    .nav-right { display: flex; }
    
    /* 手機版語系切換器位置微調 */
    .lang-switcher { margin-left: 10px; border-left: none; padding-left: 0; }

    .grid { grid-template-columns: 1fr; }
    .hero h2 { font-size: 2rem; color: #ffb718}
    .hero { height: auto; padding: 80px 0; text-align: center; background-attachment: scroll;background-position: left 60%;  }
    .hero-btns { flex-direction: column; align-items: center; }
    .btn { margin-right: 0; margin-bottom: 10px; width: 100%; max-width: 280px; }
    
    .container { padding: 0 20px; }
}