@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@400;700;900&family=Noto+Sans+TC:wght@300;400;600;700&family=Inter:wght@300;400;600;700;800&display=swap');

:root {
  --bg: #faf8f5;
  --card: #ffffff;
  --card-hover: #fefefe;
  --border: #e8e4df;
  --ink: #1a1a1a;
  --sub: #6b7280;
  --muted: #9ca3af;
  --accent: #2d6a4f;
  --warm: #b45309;
  --shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.04);
  --shadow-hover: 0 2px 6px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Noto Sans TC', 'Inter', sans-serif; background: var(--bg); color: var(--ink); min-height: 100vh; -webkit-font-smoothing: antialiased; }

/* Header */
header { text-align: center; padding: 32px 24px 20px; }
header h1 { font-family: 'Noto Serif TC', serif; font-size: clamp(2.2rem, 5vw, 3.1rem); font-weight: 900; color: var(--ink); letter-spacing: 2px; }
header h1 span { color: var(--accent); }
.tagline { font-size: 17px; color: var(--sub); margin-top: 6px; letter-spacing: 1px; }
.update-info { font-family: 'Inter', sans-serif; font-size: 15px; color: var(--muted); margin-top: 10px; letter-spacing: 0.5px; }

/* Stats bar */
.stats-bar { display: flex; justify-content: center; gap: 2.5rem; margin-top: 1.2rem; }
.stat-item { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-family: 'Inter', sans-serif; font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; color: var(--accent); line-height: 1.1; letter-spacing: -.02em; }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; letter-spacing: 0.5px; }

/* Main */
main { max-width: 960px; margin: 0 auto; padding: 0 24px 64px; }
.section-label { font-family: 'Inter', sans-serif; font-size: 14px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; font-weight: 600; }

/* Cards */
.card-list { display: flex; flex-direction: column; gap: 14px; }

.card {
  display: flex; align-items: center; gap: 18px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px 24px; text-decoration: none; color: inherit;
  transition: all .2s ease; box-shadow: var(--shadow);
}
.card:hover { box-shadow: var(--shadow-hover); border-color: #d1cdc8; transform: translateY(-1px); }

.card-icon {
  width: 52px; height: 52px; min-width: 52px;
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
}
.card-icon svg { width: 26px; height: 26px; color: white; stroke-width: 1.8; }

.card-body { flex: 1; min-width: 0; }
.card-title { font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.card-desc { font-size: 16px; color: var(--sub); line-height: 1.5; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; font-family: 'Inter', sans-serif; font-size: 14px; color: var(--muted); }
.card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.card-meta svg { width: 15px; height: 15px; }

.badge {
  position: absolute; top: 14px; right: 18px;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
  color: white; padding: 3px 10px; border-radius: 5px; letter-spacing: 0.5px;
}

.card-arrow { color: var(--muted); flex-shrink: 0; }
.card-arrow svg { width: 18px; height: 18px; }

/* Protected section */
.protected-section { margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 2px dashed #d4c8f0; }
.protected-label { color: #7c3aed !important; }

/* Footer */
footer { text-align: center; padding: 24px; font-size: 13px; color: var(--muted); letter-spacing: 0.5px; }

/* RWD */
@media (max-width: 640px) {
  header { padding: 24px 16px 16px; }
  header h1 { font-size: 2rem; }
  .tagline { font-size: 15px; }
  .update-info { font-size: 13px; }
  main { padding: 0 10px 48px; }
  .section-label { font-size: 12px; margin-bottom: 14px; }
  .card-list { gap: 10px; }
  .card { padding: 14px 14px; gap: 10px; flex-wrap: wrap; }
  .card-icon { width: 36px; height: 36px; min-width: 36px; border-radius: 8px; }
  .card-icon svg { width: 18px; height: 18px; }
  .card-title { font-size: 17px; padding-right: 70px; }
  .card-desc { font-size: 14px; white-space: normal; line-height: 1.45; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; }
  .card-meta { font-size: 12px; gap: 8px; margin-top: 6px; }
  .card-meta svg { width: 13px; height: 13px; }
  .badge { font-size: 11px; padding: 2px 7px; top: 12px; right: 12px; }
  .card-arrow { display: none; }
  .stats-bar { gap: 1.5rem; margin-top: .8rem; }
  .stat-num { font-size: clamp(1.4rem, 6vw, 1.8rem); }
  .stat-label { font-size: 12px; }
  footer { font-size: 12px; padding: 20px 12px; }
  .protected-section { margin-bottom: 1.5rem; padding-bottom: 1.2rem; }
}
