/* 邱老師的AI筆記 - 全域樣式表 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --ink: #1a1714;
  --ink-soft: #4a443d;
  --ink-faint: #7a7368;
  --paper: #faf7f1;
  --paper-card: #fffdf8;
  --accent: #8a3324;
  --accent-soft: #b5654d;
  --accent-light: #f5eae6;
  --rule: #d9d2c4;
  --rule-soft: #e8e2d6;
  --blue: #2c5670;
  --blue-light: #eef1f3;
  --teal: #1d6b56;
  --teal-light: #eef2ee;
  --shadow: rgba(26, 23, 20, 0.05);
  --shadow-hover: rgba(26, 23, 20, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--paper);
  color: var(--ink);
}

body {
  font-family: 'Noto Serif TC', serif;
  font-weight: 400;
  line-height: 1.8;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', 'Noto Serif TC', serif;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: var(--accent-soft);
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 頂部導覽列 */
.navbar {
  border-bottom: 1px solid var(--rule);
  background-color: rgba(250, 247, 241, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.3s ease;
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  font-family: 'Outfit', sans-serif;
  font-size: 14.5px;
  font-weight: 500;
}

.nav-links a {
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--accent);
  transition: width 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--accent);
}

.nav-links a.active::after {
  width: 100%;
}

/* 底部宣告 */
.footer {
  border-top: 1px solid var(--rule);
  padding: 40px 0 60px;
  margin-top: 80px;
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  color: var(--ink-faint);
}

.footer p {
  margin-bottom: 8px;
}

/* 精美按鈕 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  gap: 8px;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--paper);
}

.btn-primary:hover {
  background-color: var(--accent-soft);
  color: var(--paper-card);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid var(--rule);
  color: var(--ink-soft);
}

.btn-secondary:hover {
  border-color: var(--ink-soft);
  color: var(--ink);
  background-color: rgba(26, 23, 20, 0.02);
}

/* 動態轉場效果 */
.fade-in {
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
