/* ===== 全域設定與配色優化 ===== */
:root {
    /* [配色更新] 新增 SeaShell 顏色 */
    --seashell: #FFF5EE; 
    --soft-ivory: #F9F5F0;

    --primary-accent: #FF4500; /* OrangeRed */
    --primary-accent-darker: #CC3700; 
    
    --text-dark: #465C88; 
    --text-muted: #6a7a99;

    --text-light: #fff;
    --border-color: #dee2e6;
    --hover-timing: cubic-bezier(0.25, 0.8, 0.25, 1);
}

html { 
    scroll-behavior: smooth; 
}

body {
    font-family: 'Noto Sans TC', sans-serif; /* 使用 Noto Sans TC */
    margin: 0;
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 17px;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* {
    transition: background-color 0.3s var(--hover-timing), 
                color 0.3s var(--hover-timing),
                box-shadow 0.3s var(--hover-timing),
                transform 0.3s var(--hover-timing);
}

.container { 
    max-width: 1140px; 
    margin-left: auto; 
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

h1, h2, h3, h4 {
    font-weight: 700;
}
h1 { font-size: 4rem; line-height: 1.2; color: var(--dark-blue); }
h2 { font-size: 3rem; text-align: center; margin-bottom: 1.5rem; color: var(--dark-blue); }
h3 { font-size: 1.5rem; color: var(--dark-blue); }
p { font-size: 1.1rem; color: var(--text-muted); }
section { padding: 120px 0; }

/* ===== 通用元件 ===== */
.btn {
    padding: 14px 30px; border-radius: 5px; text-decoration: none;
    font-weight: 700; font-size: 1rem; display: inline-block; 
    border: 1px solid transparent;
}
.btn-primary { background-color: var(--primary-accent); color: white; }
.btn-primary:hover { background-color: var(--primary-accent-darker); transform: translateY(-3px); box-shadow: 0 4px 15px rgba(255, 69, 0, 0.3); }
.btn-secondary { background-color: transparent; color: var(--text-light); border-color: var(--text-light); }
.btn-secondary:hover { background-color: var(--text-light); color: var(--text-dark); }
.section-subtitle { text-align: center; max-width: 700px; margin: 0 auto 60px auto; }

/* ===== 頁首 ===== */
.main-header {
    background-color: var(--seashell); /* [配色更新] 背景改為 SeaShell */
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: padding 0.4s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08); /* 陰影調整以適應淺色背景 */
}
.main-header .container { display: flex; justify-content: space-between; align-items: center; }
.header-logo img { 
    height: 85px;
    transition: transform 0.4s var(--hover-timing);
    border-radius: 5px;
}
.header-logo img:hover {
    transform: scale(1.05);
}
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.main-nav ul li { margin: 0 20px; }
/* 文字顏色維持深灰色系，在 SeaShell 上清晰可讀 */
.main-nav ul li a { 
    position: relative; 
    text-decoration: none; 
    font-weight: 700; 
    font-size: 1.1rem; 
    color: var(--text-muted); 
}
.main-nav ul li a:hover { color: var(--primary-accent); }
.main-nav ul li a::after { content: ''; position: absolute; width: 100%; height: 2px; background-color: var(--primary-accent); bottom: -5px; left: 0; transform: scaleX(0); transition: transform 0.3s ease-out; }
.main-nav ul li a:hover::after { transform: scaleX(1); }


/* ===== 主視覺區 ===== */
.hero-section {
    background-image: linear-gradient(rgba(26, 43, 72, 0.85), rgba(26, 43, 72, 0.85)), url('../assets/hero/hero-background.png');
    background-size: cover; background-position: center;
    color: var(--text-light); text-align: center; padding: 140px 0;
}
.hero-section h1, .hero-section .subtitle { color: var(--text-light); }
.hero-section .subtitle { max-width: 650px; margin: 25px auto 40px auto; opacity: 0.9; font-size: 1.2rem; }
.hero-buttons .btn-secondary { margin-left: 15px; }

/* ===== 核心廣告服務 ===== */
.services-section { background-color: var(--soft-ivory); text-align: center; } 
.tabs { display: flex; justify-content: center; gap: 15px; margin-bottom: 50px; flex-wrap: wrap; }
.tab-btn {
    padding: 12px 28px; border: 1px solid var(--border-color); background-color: white;
    border-radius: 50px; cursor: pointer; font-size: 1.1rem; font-weight: 700;
}
.tab-btn:hover { background-color: #e9ecef; }
.tab-btn.active { background-color: var(--primary-accent); color: white; border-color: var(--primary-accent); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.showcase-video {
    max-width: 100%; width: 800px; height: auto;
    border-radius: 10px; margin: 0 auto 25px auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); display: block;
}
.tab-content p { 
    max-width: 700px; margin: 0 auto; font-size: 1.2rem; font-weight: 500;
}

/* ===== 價值主張 ===== */
.value-prop-section { text-align: center; background-color: #fff; }
.value-prop-section h2 { margin-bottom: 20px; }
.value-prop-section p { max-width: 700px; margin: 0 auto; }

/* ===== 專業服務 ===== */
.stats-section { 
    background-color: var(--soft-ivory);
}
.stats-grid-new { 
    display: grid; 
    grid-template-columns: 1fr 1fr;
    gap: 30px; 
}
.stat-card {
    position: relative; border-radius: 10px; overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); aspect-ratio: 1 / 1;
    color: var(--text-light); display: flex; align-items: flex-end;
}
.stat-card:hover { transform: translateY(-10px); }
.stat-card-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 1;
}
.stat-card:hover .stat-card-bg { transform: scale(1.1); }
.stat-card-overlay {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0) 50%); z-index: 2;
}
.stat-card-content {
    position: relative; z-index: 3; padding: 30px;
    width: 100%; box-sizing: border-box;
}
.stat-card-number {
    display: block; font-size: 4rem; font-weight: 700; line-height: 1.1;
}
.stat-card-label {
    display: block; font-size: 1.2rem; font-weight: 500; opacity: 0.9;
}

/* ===== 合作夥伴 ===== */
.partners-section { text-align: center; background-color: #fff; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.logo-slider { position: relative; width: 100%; margin-top: 50px; overflow: hidden; }
.logo-track { display: flex; align-items: center; width: 4000px; animation: scroll 40s linear infinite; }
.logo-track:hover { animation-play-state: paused; }
.slide { width: 250px; padding: 0 40px; box-sizing: border-box; flex-shrink: 0; }
.slide img { width: 100%; height: 60px; object-fit: contain; filter: grayscale(100%); opacity: 0.7; }
.slide img:hover { filter: grayscale(0%); opacity: 1; }

/* ===== 聯絡我們 ===== */
.contact-section { background-color: var(--soft-ivory); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: start; }
.contact-info h3 { font-size: 2rem; }
.info-item { display: flex; align-items: flex-start; margin-top: 30px; }
.info-icon { font-size: 1.5rem; margin-right: 15px; color: var(--primary-accent); margin-top: 5px; }
.info-item h4 { margin: 0 0 5px 0; font-size: 1.2rem; }
.info-item a { color: var(--primary-accent); text-decoration: none; font-weight: 500; }
.contact-form-wrapper { background-color: white; padding: 40px; border-radius: 10px; box-shadow: var(--box-shadow); }
.contact-form-wrapper h3 { margin-top: 0; margin-bottom: 30px; text-align: center; font-size: 2rem; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: 5px; box-sizing: border-box; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-accent); box-shadow: 0 0 0 3px rgba(255, 69, 0, 0.2); }
.contact-form button { width: 100%; border: none; }

/* ===== 頁尾 ===== */
.main-footer { 
    background-color: var(--seashell); /* [配色更新] 背景改為 SeaShell */
    color: var(--text-muted); /* 文字顏色改為深灰色系 */
    padding: 80px 0 0 0;
    font-size: 0.95rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    padding-bottom: 60px;
}
.footer-column h4 {
    color: var(--text-dark); /* 標題顏色改為深灰色系 */
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 700;
}
.footer-brand .footer-logo-img {
    height: 120px;
    margin-bottom: 20px;
    border-radius: 5px;
}
.footer-brand p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1rem;
    font-weight: 500;
}
.footer-links, .footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li, .footer-contact li {
    margin-bottom: 12px;
}
/* 連結文字顏色維持深灰色系 */
.footer-column a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
}
.footer-column a:hover {
    color: var(--primary-accent);
    padding-left: 5px;
}
.social-links a {
    display: inline-block;
    margin-right: 15px;
}
.footer-bottom {
    border-top: 1px solid #EFEAE3; /* 分隔線顏色調整 */
    text-align: center;
    padding: 25px 0;
}
.footer-bottom p {
    margin: 0;
    font-size: 0.95rem;
    color: #b0a894; /* 版權文字顏色調整 */
}

/* ===== 響應式設計 ===== */
@media (max-width: 992px) {
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    section { padding: 80px 0; }
    .main-nav, .nav-contact-btn { display: none; }
    .stats-grid-new { 
        grid-template-columns: 1fr;
    }
}

/* ===== 語言切換選單樣式 ===== */
.language-switcher {
    position: relative; margin-left: 20px; padding-bottom: 10px; 
}
.language-label {
    cursor: pointer; font-weight: 700; font-size: 1.1rem;
    color: var(--text-muted); padding: 8px 12px; border-radius: 5px;
}
.language-dropdown {
    display: none; position: absolute; top: 100%; right: 0;
    background-color: white; border-radius: 5px; box-shadow: var(--box-shadow);
    padding: 10px; width: 100px; z-index: 1100;
}
.language-switcher:hover .language-dropdown { display: block; }
.language-option {
    display: block; padding: 8px 12px; color: var(--text-dark);
    text-decoration: none; border-radius: 5px; font-weight: 500;
}
.language-option:hover { background-color: var(--light-gray); }