/* EasyEnglish HK · 學習資源頁面共用樣式 */
:root {
  --brand:    #1E3A5F;
  --brand-2:  #2B4D80;
  --accent:   #FFD700;
  --pink:     #FF6B9D;
  --orange:   #FFB84D;
  --green:    #2D6A4F;
  --bg-soft:  #F5F7FA;
  --text:     #1A1A1A;
  --text-2:   #555;
  --border:   #E8ECF0;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-2); text-decoration: none; transition: color .15s; }
a:hover { color: var(--pink); text-decoration: underline; }

/* ── Header ── */
.site-header {
  background: var(--brand);
  color: #fff;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.site-header .wrap {
  max-width: 1100px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.site-header .logo {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 800; font-size: 18px;
}
.site-header .logo img { width: 36px; height: 36px; border-radius: 8px; }
.site-header nav { display: flex; gap: 18px; align-items: center; }
.site-header nav a { color: rgba(255,255,255,0.85); font-size: 15px; }
.site-header nav a:hover { color: var(--accent); text-decoration: none; }
.cta-btn {
  background: var(--accent); color: var(--brand) !important;
  padding: 8px 18px; border-radius: 999px; font-weight: 800; font-size: 14px;
  transition: transform .15s, box-shadow .15s;
}
.cta-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,215,0,0.4); text-decoration: none; }

/* ── Article ── */
.article {
  max-width: 760px;
  margin: 40px auto;
  padding: 0 24px;
}
.breadcrumb {
  font-size: 13px; color: var(--text-2);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--text-2); }
.breadcrumb .sep { margin: 0 8px; opacity: .5; }

article h1 {
  font-size: 36px; font-weight: 900; line-height: 1.25;
  color: var(--brand); margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.article-meta {
  font-size: 14px; color: var(--text-2);
  margin-bottom: 28px;
  display: flex; gap: 14px; flex-wrap: wrap;
}
.article-meta span::before { content: "·"; margin-right: 8px; opacity: .4; }
.article-meta span:first-child::before { content: ""; margin: 0; }

.lead {
  font-size: 19px;
  line-height: 1.65;
  color: #2C3E50;
  margin-bottom: 28px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #FFF8E6 0%, #FFEED0 100%);
  border-left: 4px solid var(--orange);
  border-radius: 8px;
}

article h2 {
  font-size: 26px; font-weight: 800; color: var(--brand);
  margin-top: 42px; margin-bottom: 14px;
  padding-top: 8px;
  letter-spacing: -0.005em;
}
article h3 {
  font-size: 20px; font-weight: 700; color: var(--brand-2);
  margin-top: 28px; margin-bottom: 10px;
}
article p { margin-bottom: 16px; }
article ul, article ol { margin: 12px 0 22px 24px; }
article li { margin-bottom: 8px; }
article strong { color: var(--brand); font-weight: 700; }

article blockquote {
  background: var(--bg-soft);
  border-left: 4px solid var(--brand-2);
  padding: 14px 20px;
  margin: 22px 0;
  border-radius: 8px;
  color: var(--text-2);
  font-style: italic;
}

/* Tables */
.table-wrap { overflow-x: auto; margin: 22px 0; }
article table {
  width: 100%; border-collapse: collapse;
  font-size: 15px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
article th {
  background: var(--brand); color: #fff;
  text-align: left; padding: 12px 14px;
  font-weight: 700;
}
article td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
article tr:last-child td { border-bottom: none; }
article tr:nth-child(even) td { background: #FAFBFC; }

/* Callout boxes */
.callout {
  background: #EBF4FF;
  border: 1px solid #C8DFFF;
  border-radius: 12px;
  padding: 18px 22px;
  margin: 24px 0;
}
.callout-title {
  font-weight: 800; color: var(--brand);
  margin-bottom: 8px; font-size: 16px;
}
.callout-tip {
  background: #EBF8EE;
  border-color: #BFE2C9;
}
.callout-tip .callout-title { color: var(--green); }
.callout-warn {
  background: #FFF3E0;
  border-color: #FFD9A6;
}
.callout-warn .callout-title { color: #C77700; }

/* CTA Card */
.cta-card {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  border-radius: 18px;
  padding: 28px 26px;
  margin: 36px 0;
  text-align: center;
}
.cta-card h3 {
  color: #fff !important; font-size: 22px; margin-top: 0; margin-bottom: 10px;
}
.cta-card p { color: rgba(255,255,255,0.9); margin-bottom: 18px; }
.cta-card .btn-primary {
  display: inline-block;
  background: var(--accent); color: var(--brand);
  padding: 12px 28px; border-radius: 999px;
  font-weight: 800; font-size: 16px;
  transition: transform .15s, box-shadow .15s;
}
.cta-card .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,215,0,0.5);
  text-decoration: none;
}

/* FAQ */
.faq { margin: 28px 0; }
.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 10px;
}
.faq details[open] { border-color: var(--brand-2); box-shadow: 0 2px 10px rgba(43,77,128,0.06); }
.faq summary {
  font-weight: 700; color: var(--brand);
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::after {
  content: "+"; font-size: 22px; color: var(--brand-2);
  transition: transform .2s;
}
.faq details[open] summary::after { content: "−"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details > p {
  margin-top: 12px; color: var(--text-2);
}

/* Related */
.related {
  border-top: 2px solid var(--border);
  padding-top: 28px;
  margin-top: 50px;
}
.related h3 { color: var(--brand); margin-bottom: 18px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.related-card {
  display: block;
  background: var(--bg-soft);
  padding: 18px 20px;
  border-radius: 12px;
  transition: transform .15s, box-shadow .15s;
}
.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  text-decoration: none;
}
.related-card .tag {
  font-size: 12px; color: var(--pink); font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
}
.related-card .title {
  display: block; font-size: 16px; font-weight: 700;
  color: var(--brand); margin-top: 6px; line-height: 1.4;
}

/* ── Footer ── */
.site-footer {
  background: var(--brand);
  color: rgba(255,255,255,0.7);
  padding: 36px 0 24px;
  margin-top: 60px;
  text-align: center;
  font-size: 14px;
}
.site-footer .wrap { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.site-footer a { color: rgba(255,255,255,0.85); margin: 0 12px; }
.site-footer a:hover { color: var(--accent); }
.site-footer .copy { margin-top: 14px; font-size: 12px; opacity: .6; }

/* ── Mobile ── */
@media (max-width: 720px) {
  body { font-size: 16px; }
  article h1 { font-size: 28px; }
  article h2 { font-size: 22px; }
  article h3 { font-size: 18px; }
  .lead { font-size: 17px; padding: 14px 16px; }
  .article { margin: 24px auto; padding: 0 18px; }
  .site-header .wrap { gap: 8px; }
  .site-header nav { gap: 12px; }
  .site-header nav a { font-size: 13px; }
  .cta-btn { padding: 6px 14px; font-size: 13px; }
  .cta-card { padding: 22px 18px; margin: 24px 0; }
  .related-grid { grid-template-columns: 1fr; }
}
