/* ===================================================== */
/* 🌐 全域設定 */
/* ===================================================== */
:root {
  --nav-h: 78px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans TC", system-ui, sans-serif;
  color: #fff;
  background: linear-gradient(180deg, #7db7d9, #3a6ea5);
  min-height: 100vh;
}

/* ===================================================== */
/* 🧭 導覽列（完整重寫，防裁切版） */
/* ===================================================== */
#nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-h);
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* 導覽內容容器 */
#nav-fixed .nav-container {
  width: 100%;
  max-width: 1200px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 1rem;
}

/* 左側 Logo */
.nav-left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-left img {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* 右側連結 */
.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;

  flex-wrap: wrap;           /* ✅ 關鍵：允許換行 */
  max-width: 100%;
}

.nav-right a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;

  padding: 0.45rem 0.85rem;
  border-radius: 999px;

  white-space: nowrap;       /* 不斷字 */
  transition: background .2s ease, transform .2s ease;
}

.nav-right a:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

/* ===================================================== */
/* 📱 RWD：中小螢幕調整 */
/* ===================================================== */
@media (max-width: 900px) {
  .nav-right a {
    font-size: 0.95rem;
    padding: 0.4rem 0.7rem;
  }
}

@media (max-width: 520px) {
  #nav-fixed {
    height: 64px;
  }

  .nav-left img {
    height: 36px;
  }

  .nav-right {
    gap: 0.4rem;
  }

  .nav-right a {
    font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
  }
}

/* ===================================================== */
/* 📄 主內容（避免被導覽列蓋住） */
/* ===================================================== */
.author-page {
  max-width: 720px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 1.5rem) 1.2rem 3rem;
}

/* ===================================================== */
/* 👤 作者卡片 */
/* ===================================================== */
.author-card {
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(12px);
  border-radius: 22px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}
.author-card h1 {
  margin: 0.3rem 0;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.35),
    0 0 12px rgba(255, 255, 255, 0.15);
}

.author-subtitle {
  opacity: 0.95;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.author-avatar img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.6);
  margin-bottom: 1rem;
}
.author-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.95;
  text-shadow:
    0 1px 2px rgba(10, 40, 70, 0.35),
    0 0 8px rgba(255,255,255,0.08);
}

.author-card {
  box-shadow:
    0 18px 40px rgba(0,0,0,0.35),
    inset 0 0 0 1px rgba(255,255,255,0.12);
}

.author-card h1 {
  margin: 0.3rem 0;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.author-subtitle {
  opacity: 0.9;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.author-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.95;
}

/* ===================================================== */
/* 🔗 連結卡片 */
/* ===================================================== */
.links-card {
  margin-top: 2rem;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 16px 36px rgba(0,0,0,0.3);
}

.links-card h2 {
  text-align: center;
  margin-bottom: 1.2rem;
  letter-spacing: 0.08em;
}

.links-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.link-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  background: rgba(0,0,0,0.25);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: transform .2s, box-shadow .2s;
}

.link-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

.link-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.2rem;
}

/* ===================================================== */
/* 🧾 Footer */
/* ===================================================== */
.author-footer {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.85;
}
