/* ========================================
   臺北表演藝術中心 內租系統驗收文檔 v1.4
   政府文件專用樣式（無表情符號、專業簡潔）
   ======================================== */

:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --border: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --accent: #1f2937;
  --sidebar-width: 280px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  min-height: 100vh;
}

/* ========================================
   側邊欄
   ======================================== */
.sidebar {
  background: var(--card);
  border-right: 1px solid var(--border);
  padding: 2rem 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar__header {
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.sidebar__header h1 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.version {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
}

.date {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* ========================================
   導航選單
   ======================================== */
.nav {
  display: flex;
  flex-direction: column;
  padding: 0 0.5rem;
}

.nav__link {
  display: block;
  padding: 0.75rem 1rem;
  margin: 0.125rem 0;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.nav__link:hover {
  background: var(--bg);
  color: var(--accent);
}

.nav__link:first-child {
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* ========================================
   主內容區
   ======================================== */
.content {
  padding: 2rem 3rem;
  max-width: 1200px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}

.desc {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem;
  background: var(--bg);
  border-radius: 4px;
  border-left: 3px solid var(--accent);
}

/* ========================================
   專案總覽資訊
   ======================================== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-item {
  padding: 1rem;
  background: var(--bg);
  border-radius: 6px;
  border: 1px solid var(--border);
}

.info-label {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.info-value {
  font-size: 1rem;
  color: var(--text);
  font-weight: 600;
}

.note {
  background: #fef3c7;
  border: 1px solid #fbbf24;
  border-radius: 6px;
  padding: 1rem;
  margin-top: 1.5rem;
}

.note strong {
  display: block;
  color: #92400e;
  margin-bottom: 0.5rem;
}

.note ul {
  margin-left: 1.5rem;
  color: #78350f;
}

.note li {
  margin: 0.25rem 0;
}

/* ========================================
   截圖區塊
   ======================================== */
.shot {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--bg);
  border-radius: 6px;
  border: 1px solid var(--border);
}

.shot__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.shot__title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--accent);
}

.shot__path {
  font-size: 0.875rem;
  color: var(--muted);
  font-family: "Courier New", monospace;
  background: var(--card);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.shot img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.3s;
  display: block;
}

.shot img:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* ========================================
   頁尾
   ======================================== */
.footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: 0.875rem;
  border-top: 1px solid var(--border);
  background: var(--card);
  margin-top: 2rem;
}

.footer p {
  margin: 0.25rem 0;
}

/* ========================================
   響應式設計
   ======================================== */
@media (max-width: 1024px) {
  body {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .content {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .shot__meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 1.5rem;
  }

  .card h2 {
    font-size: 1.25rem;
  }
}

/* ========================================
   列印樣式
   ======================================== */
@media print {
  body {
    grid-template-columns: 1fr;
    background: white;
  }

  .sidebar {
    display: none;
  }

  .card {
    page-break-inside: avoid;
    box-shadow: none;
  }

  .shot img {
    max-height: 800px;
    object-fit: contain;
  }
}

/* ========================================
   滾動條樣式（僅 Webkit 瀏覽器）
   ======================================== */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: var(--bg);
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}
