/* ========== 廣告欄 ========== */
#promo-top, #promo-bottom {
  min-height: 110px;
  padding: 26px 0 20px 0;
  background: #fffbe5;
  border-radius: 2rem;
  box-shadow: 0 8px 32px rgba(60,40,0,0.14), 0 1.5px 0 0 #fae176 inset;
  margin-bottom: 24px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  font-weight: 800;
  border: 3px solid #f7d539;
  outline: 3.5px solid #ffe57a;
  outline-offset: -5px;
  z-index: 10;
  position: relative;
  transition: box-shadow .18s, border .18s;
}
#promo-bottom {
  margin-top: 44px;
  background: #fffde9;
  border: 3px solid #fbeabb;
  box-shadow: 0 -8px 32px rgba(60,40,0,0.11), 0 -1.5px 0 0 #ffec9d inset;
}

/* ========== 主標題 ========== */
.site-title {
  font-size: 1.1rem;
  font-weight: 500;
  opacity: 0.62;
  letter-spacing: 0.07em;
  margin: 0 0 0.6em 0;
  text-align: left;
  color: #2e3235;
}

/* ========== 7語導航收緊 ========== */
.lang-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.17em;
  margin: 0 0 0.75em 0;
  justify-content: flex-end;
}
.lang-nav button, .lang-nav a {
  font-size: 0.92em;
  padding: 2.2px 12px;
  margin: 0 0.08em;
  border-radius: 0.6em;
  background: #fbfbfb;
  border: 1.5px solid #ececec;
  color: #757575;
  font-weight: 600;
  min-width: 54px;
  transition: background 0.17s, border 0.17s, color 0.13s;
}
.lang-nav button.active, .lang-nav a.active, .lang-nav button:hover, .lang-nav a:hover {
  background: #ffeaa7;
  color: #212121;
  border: 1.5px solid #f9d648;
}

/* ========== 新聞列表淡化 ========== */
#news-list, ul#news-list {
  margin: 0.4em 0 0 0;
  padding: 0;
  list-style: none;
  font-size: 1.02em;
  background: transparent;
}
#news-list li, ul#news-list li {
  font-size: 0.97em;
  margin: 0.16em 0 0.12em 0;
  color: #858e9c;
  opacity: 0.85;
  letter-spacing: 0.03em;
  font-weight: 450;
  transition: color 0.2s;
}
#news-list li a {
  color: #57637a;
  text-decoration: none;
  font-size: 0.97em;
  font-weight: 500;
  transition: color 0.18s;
  opacity: 0.83;
}
#news-list li a:hover {
  color: #eeaa00;
  opacity: 1;
  text-decoration: underline;
}
#news-list .source {
  font-size: 0.83em;
  color: #b8b8b8;
  margin-left: 0.38em;
  opacity: 0.59;
}

/* ========== 防止內容區底部溢出 ========== */
.main-content, .container, .main-box, .wrapper {
  overflow: hidden;
  box-sizing: border-box;
  min-height: 90vh;
  background: #fffef8;
  border-radius: 1.2em;
  box-shadow: 0 2px 28px rgba(178, 152, 67, 0.10);
  padding-bottom: 44px;
  position: relative;
  margin-bottom: 0;
}

/* ========== Footer 高亮 ========== */
footer, .footer {
  width: 100%;
  padding: 0.7em 0 1em 0;
  text-align: center;
  background: #25282e;
  color: #f6e789;
  font-size: 1em;
  font-weight: 520;
  letter-spacing: 0.08em;
  border-top: 2.5px solid #e9c84e;
  box-shadow: 0 -2px 14px rgba(42,28,2,0.08) inset;
  margin-top: 0;
  opacity: 1;
}

/* ========== 響應式細節 ========== */
@media (max-width: 680px) {
  #promo-top, #promo-bottom {
      font-size: 1.22rem;
      min-height: 56px;
      padding: 10px 0 8px 0;
      border-radius: 1em;
  }
  .site-title { font-size: 0.89em; }
  .main-content, .container, .main-box, .wrapper { padding-bottom: 32px; border-radius: 0.58em; }
  .lang-nav button, .lang-nav a { font-size: 0.91em; padding: 1.6px 7px; min-width: 34px;}
  footer, .footer { font-size: 1em; padding: 0.5em 0 0.7em 0;}
}

/* ========== 超小語言導航 ========== */
.lang-nav a {
  font-size: 0.83em !important;
  padding: 1px 7px !important;
  min-width: 22px !important;
  margin: 0 0.03em !important;
  border-radius: 0.52em !important;
}

/* ========== 強調前11條新聞（top-news） ========== */
ul#news-list li.top-news {
  font-weight: 600;
  font-size: 1.08em;
  background-color: #f9f9f9;
  border-left: 3px solid #333;
  padding-left: 0.6em;
  color: #212121;
  opacity: 1;
}
ul#news-list li.top-news a {
  color: #111;
  text-decoration: none;
}

/* ===== EN homepage: highlight TOP 11 (cache-safe, no DOM/fragment/template changes) ===== */
html:lang(en) #news-list > li:nth-child(-n+11),
body.lang-en  #news-list > li:nth-child(-n+11) {
  background-color: #f9f9f9;
  font-weight: 600;
  font-size: 1.08em;
  border-left: 3px solid #333;
  padding-left: 0.6em;
  color: #212121;
  opacity: 1;
}
html:lang(en) #news-list > li:nth-child(-n+11) a,
body.lang-en  #news-list > li:nth-child(-n+11) a {
  color: #111;
  text-decoration: none;
  line-height: 1.35;
}
html:lang(en) #news-list > li:nth-child(-n+11):hover,
body.lang-en  #news-list > li:nth-child(-n+11):hover {
  filter: brightness(0.98);
}

/* ===== Non-EN homepages: highlight TOP 11 (CSS-only, cache-safe) ===== */
html:lang(es) #news-list > li:nth-child(-n+11), body.lang-es  #news-list > li:nth-child(-n+11),
html:lang(fr) #news-list > li:nth-child(-n+11), body.lang-fr  #news-list > li:nth-child(-n+11),
html:lang(de) #news-list > li:nth-child(-n+11), body.lang-de  #news-list > li:nth-child(-n+11),
html:lang(ja) #news-list > li:nth-child(-n+11), body.lang-ja  #news-list > li:nth-child(-n+11),
html:lang(ko) #news-list > li:nth-child(-n+11), body.lang-ko  #news-list > li:nth-child(-n+11),
html:lang(zh-TW) #news-list > li:nth-child(-n+11), body.lang-zh-tw #news-list > li:nth-child(-n+11) {
  background-color: #f9f9f9;
  font-weight: 600;
  font-size: 1.08em;
  border-left: 3px solid #333;
  padding-left: 0.6em;
  color: #212121;
  opacity: 1;
}
html:lang(es) #news-list > li:nth-child(-n+11) a, body.lang-es  #news-list > li:nth-child(-n+11) a,
html:lang(fr) #news-list > li:nth-child(-n+11) a, body.lang-fr  #news-list > li:nth-child(-n+11) a,
html:lang(de) #news-list > li:nth-child(-n+11) a, body.lang-de  #news-list > li:nth-child(-n+11) a,
html:lang(ja) #news-list > li:nth-child(-n+11) a, body.lang-ja  #news-list > li:nth-child(-n+11) a,
html:lang(ko) #news-list > li:nth-child(-n+11) a, body.lang-ko  #news-list > li:nth-child(-n+11) a,
html:lang(zh-TW) #news-list > li:nth-child(-n+11) a, body.lang-zh-tw #news-list > li:nth-child(-n+11) a {
  color: #111;
  text-decoration: none;
  line-height: 1.35;
}
html:lang(es) #news-list > li:nth-child(-n+11):hover, body.lang-es  #news-list > li:nth-child(-n+11):hover,
html:lang(fr) #news-list > li:nth-child(-n+11):hover, body.lang-fr  #news-list > li:nth-child(-n+11):hover,
html:lang(de) #news-list > li:nth-child(-n+11):hover, body.lang-de  #news-list > li:nth-child(-n+11):hover,
html:lang(ja) #news-list > li:nth-child(-n+11):hover, body.lang-ja  #news-list > li:nth-child(-n+11):hover,
html:lang(ko) #news-list > li:nth-child(-n+11):hover, body.lang-ko  #news-list > li:nth-child(-n+11):hover,
html:lang(zh-TW) #news-list > li:nth-child(-n+11):hover, body.lang-zh-tw #news-list > li:nth-child(-n+11):hover {
  filter: brightness(0.98);
}
