/* ==========================================================================
   基礎重置與共用元件
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--c-ink);
  background: var(--c-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

a { color: inherit; text-decoration: none; }

input {
  font: inherit;
  color: inherit;
}

ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4, p { margin: 0; }

/* 僅供螢幕閱讀器 */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 焦點樣式（無障礙） */
:focus-visible {
  outline: 2px solid var(--c-teal-700);
  outline-offset: 2px;
}

/* 圖示尺寸工具 */
.icon { flex: none; display: block; }

/* 待確認標記：原圖無法判讀之內容 */
[data-tbc] { position: relative; }

/* ==========================================================================
   索引頁（index.html）
   ========================================================================== */

.idx {
  max-width: 960px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.idx__eyebrow {
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--c-teal-600);
  font-weight: 700;
}

.idx__title {
  font-size: 30px;
  font-weight: 700;
  margin-top: 8px;
  letter-spacing: -.01em;
}

.idx__lead {
  margin-top: 10px;
  color: var(--c-muted);
  font-size: 15px;
  line-height: 1.7;
}

.idx__grid {
  margin-top: 32px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.idx__card {
  display: block;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  overflow: hidden;
  transition: border-color .16s ease, transform .16s ease;
}

.idx__card:hover {
  border-color: var(--c-teal-400);
  transform: translateY(-2px);
}

.idx__thumb {
  aspect-ratio: 1586 / 992;
  background: var(--c-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-on-dark-muted);
  font-size: 13px;
}

.idx__thumb img { width: 100%; height: 100%; object-fit: cover; }

.idx__meta { padding: 14px 16px 16px; }

.idx__id {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-teal-600);
  letter-spacing: .04em;
}

.idx__name { font-size: 16px; font-weight: 700; margin-top: 4px; }

.idx__note { font-size: 13px; color: var(--c-muted); margin-top: 6px; }

.idx__section-title {
  margin-top: 44px;
  font-size: 15px;
  font-weight: 700;
}

.idx__list {
  margin-top: 12px;
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.9;
}

.idx__list code {
  background: var(--c-teal-050);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 13px;
  color: var(--c-teal-800);
}
