/* 智作間 AI Atelier — 前台樣式(莫蘭迪/大地色系) */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #F5F2EC;
  color: #3E3A33;
  font-family: 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
  font-size: 16px;
}
a { color: inherit; text-decoration: none; }
.serif { font-family: 'Noto Serif TC', 'Noto Sans TC', serif; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; }

/* ---- 頁首 ---- */
.site-header {
  border-bottom: 1px solid #E3DDD1;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 28px; padding-bottom: 28px;
}
.brand { display: flex; align-items: baseline; gap: 14px; }
.brand-zh { font-family: 'Noto Serif TC', serif; font-size: 24px; font-weight: 700; letter-spacing: 4px; }
.brand-en { font-size: 12px; letter-spacing: 3px; color: #9A9384; text-transform: uppercase; font-weight: 500; }
.nav-back { font-size: 14px; color: #8B7E6A; transition: color .3s ease; }
.nav-back:hover { color: #3E3A33; }

/* ---- Hero ---- */
.hero { padding: 88px 0 64px; max-width: 820px; }
.eyebrow { font-size: 13px; letter-spacing: 5px; color: #A9967E; font-weight: 500; }
.hero h1 {
  margin: 22px 0; font-family: 'Noto Serif TC', serif;
  font-size: 48px; font-weight: 600; line-height: 1.35; letter-spacing: 2px;
}
.hero p { margin: 0; font-size: 17px; line-height: 2; color: #7A7365; max-width: 560px; }

/* ---- 清單 ---- */
.list-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: 28px;
}
.list-head .title { font-family: 'Noto Serif TC', serif; font-size: 26px; font-weight: 600; letter-spacing: 2px; }
.list-head .count { font-size: 14px; color: #9A9384; margin-left: 16px; }
.list-head .page-info { font-size: 13px; color: #9A9384; letter-spacing: 1px; }

.grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px;
  padding-bottom: 64px;
}
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .grid { grid-template-columns: 1fr; } .wrap { padding: 0 20px; } .hero h1 { font-size: 34px; } }

.card {
  display: flex; flex-direction: column;
  background: #FDFCF9; border: 1px solid #E7E1D5;
  transition: transform .35s ease, box-shadow .35s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(74,69,61,0.14); }
.card-img {
  height: 210px; overflow: hidden;
  background: #C7CBBB;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.35) 0 2px, transparent 2px 14px);
  display: flex; align-items: center; justify-content: center;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card-img .ph { font-family: monospace; font-size: 12px; color: rgba(62,58,51,0.55); background: rgba(253,252,249,0.75); padding: 4px 10px; border-radius: 3px; }
.card-body { display: flex; flex-direction: column; gap: 12px; padding: 26px 26px 30px; }
.card-date { font-size: 12px; letter-spacing: 2px; color: #A9967E; font-weight: 500; }
.card-title { font-family: 'Noto Serif TC', serif; font-size: 20px; font-weight: 600; letter-spacing: 1px; }
.card-desc { font-size: 14px; line-height: 1.9; color: #857D6F; }
.card-more { font-size: 13px; color: #8B7E6A; letter-spacing: 1px; margin-top: 6px; }

/* ---- 分頁 ---- */
.pagination { display: flex; justify-content: center; align-items: center; gap: 10px; padding-bottom: 88px; }
.pagination a, .pagination span {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border: 1px solid #DDD6C8; color: #6E6759; font-size: 15px; transition: border-color .3s, color .3s;
}
.pagination a:hover { border-color: #A9967E; color: #3E3A33; }
.pagination .current { background: #4A453D; color: #F2EEE7; border-color: #4A453D; }
.pagination .disabled { color: #B5AE9E; }

/* ---- 專案頁 ---- */
.project-head { padding: 80px 0 52px; max-width: 900px; }
.project-head h1 {
  margin: 22px 0; font-family: 'Noto Serif TC', serif;
  font-size: 42px; font-weight: 600; letter-spacing: 2px; line-height: 1.4;
}
.project-head p { margin: 0; font-size: 17px; line-height: 2; color: #7A7365; max-width: 680px; }

.meta-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #E3DDD1; border-bottom: 1px solid #E3DDD1;
}
.meta-strip > div { display: flex; flex-direction: column; gap: 8px; padding: 28px; }
.meta-strip > div:first-child { padding-left: 0; }
.meta-strip > div + div { border-left: 1px solid #E3DDD1; }
.meta-label { font-size: 12px; letter-spacing: 2px; color: #9A9384; }
.meta-value { font-family: 'Noto Serif TC', serif; font-size: 18px; }
@media (max-width: 700px) {
  .meta-strip { grid-template-columns: 1fr; }
  .meta-strip > div { padding-left: 0; }
  .meta-strip > div + div { border-left: 0; border-top: 1px solid #E3DDD1; }
}

.imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 52px 0; }
@media (max-width: 800px) { .imgs { grid-template-columns: 1fr; } }
.imgs .frame {
  min-height: 300px; background: #C7CBBB;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.35) 0 2px, transparent 2px 14px);
  display: flex; align-items: center; justify-content: center;
}
.imgs .frame img { width: 100%; height: auto; display: block; }
.imgs .frame.f2 { background-color: #D3C4B4; }
.imgs .ph { font-family: monospace; font-size: 12px; color: rgba(62,58,51,0.55); background: rgba(253,252,249,0.75); padding: 4px 10px; border-radius: 3px; }

.links { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding-bottom: 52px; }
@media (max-width: 800px) { .links { grid-template-columns: 1fr; } }
.link-card {
  display: flex; align-items: center; justify-content: space-between;
  background: #FDFCF9; border: 1px solid #E7E1D5; padding: 26px 30px;
  transition: border-color .3s ease;
}
.link-card:hover { border-color: #A9967E; }
.link-card .col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.link-card .url { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-card .arrow { color: #8B7E6A; font-size: 18px; flex: none; margin-left: 16px; }

.notes { padding: 36px 40px; background: #EFEAE0; display: flex; flex-direction: column; gap: 14px; margin-bottom: 72px; }
.notes p { margin: 0; font-size: 15px; line-height: 2; color: #6E6759; white-space: pre-line; }

.prev-next { display: flex; border-top: 1px solid #E3DDD1; }
.prev-next a {
  flex: 1; display: flex; flex-direction: column; gap: 6px;
  padding: 32px 0; transition: background .3s ease;
}
.prev-next a:hover { background: #EFEAE0; }
.prev-next a.next { text-align: right; border-left: 1px solid #E3DDD1; }
.prev-next a .pn-title { font-family: 'Noto Serif TC', serif; font-size: 17px; }
.prev-next a.prev { padding-right: 24px; }
.prev-next a.next { padding-left: 24px; }

/* ---- 頁尾 ---- */
.site-footer { background: #ECE7DD; border-top: 1px solid #E0D9CB; }
.site-footer .wrap {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 34px; padding-bottom: 34px;
}
.site-footer .name { font-family: 'Noto Serif TC', serif; font-size: 16px; color: #6E6759; letter-spacing: 3px; }
.site-footer .copy { font-size: 13px; color: #9A9384; }

/* ---- 進場動效 ---- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp .7s ease both; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .16s; } .d3 { animation-delay: .24s; }
.d4 { animation-delay: .32s; } .d5 { animation-delay: .40s; } .d6 { animation-delay: .48s; }
.d7 { animation-delay: .56s; } .d8 { animation-delay: .64s; } .d9 { animation-delay: .72s; }
