:root {
    --primary: #021226; 
    --gold: #d4af37;
    --gold-light: #f3d573;
    --white: #ffffff;
    --gray: #f4f7fa;
    --text-dark: #222222;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Helvetica Neue', 'Noto Sans TC', sans-serif; background: var(--gray); color: var(--text-dark); line-height: 1.8; scroll-behavior: smooth; }

/* 🌍 語言選擇初始攔截畫面 */
.lang-splash { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(2, 18, 38, 0.98); z-index: 9999; display: flex; justify-content: center; align-items: center; backdrop-filter: blur(5px); }
.splash-box { background: var(--primary); padding: 3rem; border-radius: 12px; text-align: center; max-width: 500px; width: 90%; border: 1px solid rgba(212,175,55,0.3); box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.splash-box h2 { color: var(--gold); margin-bottom: 5px; font-size: 1.8rem; letter-spacing: 2px; }
.splash-box p { color: #ccc; margin-bottom: 2rem; font-size: 0.9rem; }
.splash-langs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.splash-langs button { padding: 12px; cursor: pointer; border: 1px solid rgba(255,255,255,0.2); background: transparent; color: white; border-radius: 6px; font-size: 1rem; transition: 0.3s; }
.splash-langs button:hover { background: var(--gold); color: var(--primary); border-color: var(--gold); font-weight: bold; }

/* 導覽列與選單 */
.top-bar { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 3%; background: var(--primary); position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.logo-link { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 50px; width: auto; object-fit: contain; } 

.nav ul { display: flex; list-style: none; gap: 1.2rem; align-items: center; margin: 0; padding: 0; }
.nav a { color: var(--white); text-decoration: none; font-weight: 500; font-size: 0.9rem; transition: color 0.3s; }
.nav a:hover { color: var(--gold); }
.login-btn { border: 1px solid var(--gold); padding: 6px 15px; border-radius: 50px; color: var(--gold) !important; transition: all 0.3s; }
.login-btn:hover { background: var(--gold); color: var(--primary) !important; }

/* 下拉選單：純 JS 控制 */
.lang-dropdown { position: relative; cursor: pointer; color: var(--white); font-weight: 500; font-size: 0.9rem; user-select: none; }
.lang-current { display: flex; align-items: center; gap: 5px; padding: 5px 10px; border: 1px solid rgba(255,255,255,0.2); border-radius: 4px; transition: 0.3s; }
.lang-current:hover { border-color: var(--gold); color: var(--gold); }
.lang-menu { position: absolute; top: 130%; right: 0; background: var(--primary); border: 1px solid var(--gold); border-radius: 6px; overflow: hidden; display: none; flex-direction: column; min-width: 150px; box-shadow: 0 10px 30px rgba(0,0,0,0.8); z-index: 1001; }
.lang-menu.show { display: flex; } 
.lang-menu li { padding: 12px 20px; color: var(--white); transition: 0.3s; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 0.9rem; }
.lang-menu li:last-child { border-bottom: none; }
.lang-menu li:hover { background: var(--gold); color: var(--primary); font-weight: bold; }

/* 主視覺 */
.hero { min-height: 85vh; background: linear-gradient(rgba(2, 18, 38, 0.85), rgba(2, 18, 38, 0.85)), url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&q=80&w=1600') center/cover; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 5%; }
.hero-content { max-width: 1000px; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.hero h1 { font-size: 4rem; color: var(--gold); letter-spacing: 5px; line-height: 1.2; font-weight: 900; }
.hero .subtitle { font-size: 1.5rem; color: var(--white); letter-spacing: 4px; font-weight: 300; }
.hero .desc { font-size: 1.15rem; color: #d0d0d0; margin-bottom: 1.5rem; max-width: 800px; line-height: 1.8; }
.btn-gold { background: linear-gradient(135deg, var(--gold), #b5902b); color: var(--primary); padding: 15px 45px; text-decoration: none; border-radius: 50px; font-weight: bold; font-size: 1.1rem; box-shadow: 0 5px 20px rgba(212,175,55,0.4); transition: transform 0.3s; display: inline-block; }
.btn-gold:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(212,175,55,0.6); }

/* 共用排版 */
.section-padding { padding: 6rem 5%; }
.section-title { text-align: center; margin-bottom: 4rem; color: var(--primary); font-size: 2.5rem; font-weight: 700; position: relative; padding-bottom: 15px; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background: var(--gold); border-radius: 2px; }

/* 雙欄圖文區塊 */
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; max-width: 1200px; margin: 0 auto; }
.split-content h3 { color: var(--gold); font-size: 1.2rem; letter-spacing: 3px; margin-bottom: 1rem; }
.split-content h2 { color: var(--primary); font-size: 2.2rem; margin-bottom: 1.5rem; line-height: 1.3; }
.split-content p { font-size: 1.1rem; color: #444; margin-bottom: 1.5rem; line-height: 1.8; text-align: justify; }
.split-img { width: 100%; border-radius: 12px; box-shadow: 0 15px 40px rgba(0,0,0,0.15); }
.hr-box { background: #f8f9fa; border-left: 4px solid var(--gold); padding: 2rem; margin-top: 2rem; }

/* 網格系統 (使用 auto-fill 讓擴增的新聞與洞察完美自適應) */
.grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2.5rem; max-width: 1300px; margin: 0 auto; align-items: stretch; }
.card { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.06); transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column; border-top: 5px solid var(--gold); height: 100%; }
.card:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(0,0,0,0.12); }
.card-img { width: 100%; height: 220px; object-fit: cover; flex-shrink: 0; }
.card-body { padding: 2.5rem 2rem; display: flex; flex-direction: column; flex-grow: 1; }
.card-date { color: var(--gold); font-size: 0.9rem; font-weight: 700; margin-bottom: 10px; letter-spacing: 1px; }
.card-title { color: var(--primary); font-size: 1.2rem; margin-bottom: 15px; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-text { color: #555; font-size: 0.95rem; margin-bottom: 20px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-link { margin-top: auto; color: var(--primary); text-decoration: none; font-weight: bold; font-size: 1rem; align-self: flex-start; border-bottom: 2px solid var(--gold); padding-bottom: 5px; transition: color 0.3s; }

/* 聯絡區塊 */
.contact-section { background: var(--primary); color: var(--white); }
.contact-section .section-title { color: var(--white); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; max-width: 1100px; margin: 0 auto; }
.contact-item { background: rgba(255,255,255,0.05); padding: 3rem 2rem; border-radius: 12px; border: 1px solid rgba(212,175,55,0.2); text-align: center; }
.contact-icon { font-size: 3rem; margin-bottom: 1rem; display: block; }
.contact-item h3 { color: var(--gold); font-size: 1.4rem; margin-bottom: 1rem; }
.contact-item a { color: var(--white); text-decoration: none; font-size: 1.2rem; }
.line-btn { background: #06C755; color: white; padding: 12px 30px; border-radius: 8px; font-weight: bold; display: inline-block; width: 100%; font-size: 1.1rem; }

/* 內頁排版 */
.article-header { background: var(--primary); padding: 5rem 5% 4rem; text-align: center; }
.article-header h1 { font-size: 2.2rem; max-width: 900px; margin: 0 auto; color: var(--gold); line-height: 1.4; }
.article-meta { color: #a0a0a0; font-size: 1rem; margin-top: 1.5rem; letter-spacing: 1px; }
.article-container { max-width: 900px; margin: 4rem auto; padding: 0 5%; }
.article-body { background: var(--white); padding: 4rem; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.05); }
.article-body img { width: 100%; border-radius: 8px; margin: 2.5rem 0; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.article-body h3 { color: var(--primary); font-size: 1.6rem; margin: 3rem 0 1.5rem; border-left: 5px solid var(--gold); padding-left: 15px; }
.article-body p { font-size: 1.1rem; color: #333; line-height: 2; margin-bottom: 1.8rem; text-align: justify; }
.article-quote { font-size: 1.2rem; font-weight: 500; color: var(--primary); background: #f8f9fa; padding: 2rem; border-left: 5px solid var(--gold); margin: 3rem 0; font-style: italic; }

.footer { background: #010a17; color: #777; text-align: center; padding: 3rem 5%; font-size: 0.95rem; }

/* RWD */
@media (max-width: 1200px) {
    .nav ul { gap: 0.8rem; }
    .nav a { font-size: 0.85rem; }
}
@media (max-width: 1024px) { 
    .contact-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; } 
    .split-section { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .top-bar { flex-direction: column; padding: 1rem; gap: 1rem; }
    .nav ul { flex-wrap: wrap; justify-content: center; gap: 1rem; }
    .hero { min-height: 70vh; padding: 120px 20px 80px; }
    .hero h1 { font-size: 2.2rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .article-header h1 { font-size: 1.6rem; }
    .article-body { padding: 2rem 1.5rem; }
}