/* ============================================
   QPAWS 首頁樣式
   設計來源：QPAWS 首頁.dc.html（High-fidelity 重現）
   ============================================ */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #f7f1e8;
  font-family: 'Plus Jakarta Sans', 'Noto Sans TC', sans-serif;
  color: #2c2620;
  overflow-x: hidden;
}

img { display: block; }

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 241, 232, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(44, 38, 32, 0.07);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: #2c2620;
}

/* logo.png 本身已去背（Q 字造型含尾巴），不做圓形裁切以免切到尾巴 */
.logo-icon {
  width: 34px;
  height: 34px;
}

.logo-icon--footer {
  width: 36px;
  height: 36px;
}

/* PNG 版貓頭：黑圓底吃掉部分面積，放大一級補償 */
.logo-icon--lg {
  width: 40px;
  height: 40px;
}

.logo-icon--footer-lg {
  width: 42px;
  height: 42px;
}

.nav__wordmark {
  font-family: 'DM Serif Display', serif;
  font-size: 23px;
  letter-spacing: 0.02em;
}

.nav__links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  flex-wrap: wrap;
}

.nav__links a {
  text-decoration: none;
  color: #6f6357;
  transition: color 0.2s;
}

.nav__links a:hover { color: #c97a2f; }

/* ===== HERO ===== */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
}

.hero__cat {
  position: relative;
  overflow: hidden;
  height: clamp(380px, 46vw, 560px);
}

.hero__cat img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__cat--kiki img { object-position: center 32%; }
.hero__cat--qfi img { object-position: 38% 24%; }

.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__cat--kiki .hero__overlay {
  background: linear-gradient(180deg, rgba(60, 38, 18, 0.04) 30%, rgba(180, 100, 40, 0.5));
}

.hero__cat--qfi .hero__overlay {
  background: linear-gradient(180deg, rgba(40, 36, 30, 0.04) 30%, rgba(78, 66, 52, 0.56));
}

.hero__caption {
  position: absolute;
  left: clamp(24px, 4vw, 52px);
  bottom: clamp(28px, 4vw, 48px);
  color: #fff;
}

.hero__pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.hero__name {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(40px, 6vw, 60px);
  line-height: 0.96;
}

.hero__traits {
  font-size: clamp(13px, 1.5vw, 15px);
  opacity: 0.95;
  margin-top: 8px;
  font-weight: 500;
}

.hero__badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(92px, 11vw, 124px);
  height: clamp(92px, 11vw, 124px);
  border-radius: 50%;
  background: #f7f1e8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 44px -16px rgba(0, 0, 0, 0.55);
  z-index: 2;
}

.hero__badge-amp {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1;
  color: #2c2620;
}

.hero__badge-sub {
  font-size: 11px;
  color: #9a8b7a;
  margin-top: 2px;
  letter-spacing: 0.06em;
}

/* ===== INTRO ===== */
.intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 76px) 32px clamp(8px, 2vw, 16px);
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #c0916a;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.intro h1 {
  font-family: 'DM Serif Display', 'Noto Serif TC', serif;
  font-weight: 400;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.3;
  margin: 0;
}

.intro p {
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.85;
  color: #6f6357;
  margin: 22px auto 0;
  max-width: 480px;
}

/* ===== MEET THEM ===== */
.cats {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 64px) 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 28px;
}

.cat-card {
  background: #fffdf9;
  border: 1px solid rgba(44, 38, 32, 0.07);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 44px -30px rgba(44, 38, 32, 0.4);
}

.cat-card__photo {
  height: 300px;
  overflow: hidden;
  position: relative;
}

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

.cat-card--kiki .cat-card__photo img { object-position: center 30%; }
.cat-card--qfi .cat-card__photo img { object-position: center 35%; }

.cat-card__tag {
  position: absolute;
  left: 18px;
  top: 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: rgba(255, 255, 255, 0.9);
  padding: 5px 12px;
  border-radius: 999px;
}

.cat-card--kiki .cat-card__tag { color: #c97a2f; }
.cat-card--qfi .cat-card__tag { color: #8a7459; }

.cat-card__body { padding: 26px 28px 30px; }

.cat-card__body h3 {
  font-family: 'DM Serif Display', 'Noto Serif TC', serif;
  font-weight: 400;
  font-size: 26px;
  margin: 0 0 10px;
}

.cat-card__body p {
  font-size: 14.5px;
  line-height: 1.8;
  color: #6f6357;
  margin: 0;
}

/* ===== ALBUM ===== */
.album {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 32px) 32px clamp(40px, 6vw, 64px);
}

.album__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.album__head .eyebrow { margin-bottom: 10px; letter-spacing: 0.16em; }

.album__head h2 {
  font-family: 'DM Serif Display', 'Noto Serif TC', serif;
  font-weight: 400;
  font-size: clamp(26px, 3.6vw, 36px);
  margin: 0;
}

.album__more {
  font-size: 14px;
  font-weight: 600;
  color: #2c2620;
  text-decoration: none;
  border-bottom: 2px solid #d9b27f;
  padding-bottom: 3px;
  transition: color 0.2s;
}

.album__more:hover { color: #c97a2f; }

.album__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  grid-auto-rows: clamp(150px, 18vw, 200px);
  gap: 14px;
}

.album__grid > div {
  border-radius: 18px;
  overflow: hidden;
}

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

.album__item--big { grid-column: span 2; grid-row: span 2; }
.album__item--wide { grid-column: span 2; }

.album__item--big img { object-position: center 40%; }
.album__item--look img { object-position: center 28%; }
.album__item--tent img { object-position: center 45%; }
.album__item--wide img { object-position: center 40%; }

/* ===== LEDGER BAND ===== */
.ledger {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px clamp(40px, 6vw, 64px);
}

.ledger__card {
  background: linear-gradient(105deg, #e8c9a0, #d9b27f);
  border-radius: 28px;
  padding: clamp(32px, 5vw, 52px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 28px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.ledger__watermark {
  position: absolute;
  right: -20px;
  top: -24px;
  opacity: 0.16;
}

.ledger__text { position: relative; }

.ledger__text .eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: #7a5b34;
  margin-bottom: 12px;
}

.ledger__text h2 {
  font-family: 'DM Serif Display', 'Noto Serif TC', serif;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 38px);
  margin: 0 0 12px;
  color: #3a2c18;
}

.ledger__text p {
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.75;
  color: #6b5535;
  margin: 0;
  max-width: 440px;
}

.ledger__actions {
  position: relative;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.btn-pill {
  padding: 15px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}

.btn-pill--dark {
  background: #3a2c18;
  color: #f7eede;
}

.btn-pill--dark:hover { background: #503c22; }

.btn-pill--light {
  background: rgba(255, 255, 255, 0.55);
  color: #3a2c18;
}

.btn-pill--light:hover { background: rgba(255, 255, 255, 0.8); }

/* ===== ABOUT ===== */
.about { background: #efe7da; }

.about__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 80px) 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}

.about__photo {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 30px 60px -34px rgba(44, 38, 32, 0.5);
  height: clamp(300px, 38vw, 420px);
}

.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.about__text .eyebrow { letter-spacing: 0.16em; margin-bottom: 14px; }

.about__text h2 {
  font-family: 'DM Serif Display', 'Noto Serif TC', serif;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.32;
  margin: 0 0 18px;
}

.about__text p {
  font-size: clamp(15px, 1.7vw, 16.5px);
  line-height: 1.9;
  color: #6f6357;
  margin: 0 0 16px;
}

.about__text p:last-child { margin-bottom: 0; }

/* ===== FOOTER ===== */
.footer {
  background: #2c2620;
  color: #e8dccd;
}

.footer__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 52px) 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__wordmark {
  font-family: 'DM Serif Display', serif;
  font-size: 21px;
  color: #f7f1e8;
}

.footer__copy {
  font-size: 13px;
  color: #a99a85;
}

/* ============================================
   夜間模式（18:00–06:00 自動；?theme=night|day 強制）
   配色與 Lite 夜間版一致
   ============================================ */
body.night {
  background: #221c16;
  color: #f3ead9;
}

body.night .nav {
  background: rgba(34, 28, 22, 0.86);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

body.night .nav__brand { color: #f3ead9; }
body.night .nav__links a { color: #a99a85; }
body.night .nav__links a:hover { color: #e0904a; }

body.night .hero__badge {
  background: #2e2720;
  box-shadow: 0 18px 44px -16px rgba(0, 0, 0, 0.85);
}
body.night .hero__badge-amp { color: #f3ead9; }
body.night .hero__badge-sub { color: #8a7a68; }

body.night .eyebrow { color: #c8a468; }
body.night .intro p { color: #a99a85; }

body.night .cat-card {
  background: #2e2720;
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 44px -30px rgba(0, 0, 0, 0.8);
}
body.night .cat-card__tag { background: rgba(34, 28, 22, 0.88); }
body.night .cat-card--kiki .cat-card__tag { color: #e0904a; }
body.night .cat-card--qfi .cat-card__tag { color: #c9b89e; }
body.night .cat-card__body p { color: #a99a85; }

body.night .album__more { color: #f3ead9; border-bottom-color: #8a6a3f; }
body.night .album__more:hover { color: #e0904a; }

body.night .ledger__card {
  background: linear-gradient(105deg, #7a5d36, #5d4625);
}
body.night .ledger__text .eyebrow { color: #d8bd92; }
body.night .ledger__text h2 { color: #f7eede; }
body.night .ledger__text p { color: #d8bd92; }
body.night .btn-pill--dark { background: #221c16; color: #f7eede; }
body.night .btn-pill--dark:hover { background: #2e2720; }
body.night .btn-pill--light { background: rgba(0, 0, 0, 0.28); color: #f3ead9; }
body.night .btn-pill--light:hover { background: rgba(0, 0, 0, 0.42); }

body.night .about { background: #1c1712; }
body.night .about__text p { color: #a99a85; }
body.night .about__photo { box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.9); }

body.night .footer { background: #18130f; }

body, .nav, .cat-card, .ledger__card, .about, .footer, .hero__badge {
  transition: background 0.6s ease, background-color 0.6s ease, color 0.6s ease;
}
