/* ==========================================================================
   STYLE FILES — 設計系統（膠片復古 Warm Film）
   概念：舊時尚雜誌內頁 + 拍立得質感。米杏底色、鏽紅強調色，
   Lora 斜體襯線帶出手寫感的復古氣氛。
   Signature：頁面邊緣直式大字（雜誌書背裁切感）；
   Look 卡片微微傾斜，像隨手夾進相本的拍立得照片。
   ========================================================================== */

:root {
  --ink: #3a2e22;
  --ink-soft: #5a4a38;
  --paper: #f6efe4;
  --paper-2: #eadfcb;
  --line: #ddd0b8;
  --red: #b5502e;
  --grey: #8a7860;

  --serif: "Lora", "Noto Serif TC", serif;
  --sans: "Inter", "Noto Sans TC", -apple-system, sans-serif;

  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- 頂部導覽 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.02em;
}

.logo .dot {
  color: var(--red);
}

.nav {
  display: flex;
  gap: 32px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

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

.nav a.active,
.nav a:hover {
  color: var(--ink);
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--red);
}

/* ---------- Hero（首頁）---------- */

.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
}

.hero .eyebrow {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(48px, 8vw, 108px);
  line-height: 0.96;
  letter-spacing: -0.01em;
  max-width: 14ch;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--grey);
}

.hero p.lede {
  margin-top: 28px;
  max-width: 46ch;
  font-size: 18px;
  color: var(--ink-soft);
}

/* 邊緣直式大字（signature element） */

.spine-text {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 15vw;
  line-height: 1;
  color: var(--paper-2);
  z-index: -1;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

/* ---------- 首頁：三團磚 ---------- */

.group-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-top: 40px;
}

.group-tile {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 48px 32px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.2s ease;
}

.group-tile:hover {
  background: var(--paper-2);
}

.group-tile .num {
  font-size: 13px;
  color: var(--grey);
  letter-spacing: 0.1em;
}

.group-tile h2 {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
  margin-top: 24px;
}

.group-tile p {
  color: var(--ink-soft);
  font-size: 14px;
  margin-top: 10px;
}

.group-tile .go {
  margin-top: 32px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.group-tile .go .arrow {
  transition: transform 0.2s ease;
}

.group-tile:hover .go .arrow {
  transform: translateX(4px);
}

/* ---------- 說明 / About 條列 ---------- */

.notice {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
  margin-top: 8px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
}

.notice .label {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  font-weight: 700;
}

.notice p {
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ---------- 團體頁 header ---------- */

.group-header {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.group-header .eyebrow {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
}

.group-header h1 {
  font-family: var(--serif);
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 600;
  margin-top: 14px;
}

.group-header p {
  margin-top: 16px;
  max-width: 52ch;
  color: var(--ink-soft);
  font-size: 16px;
}

/* ---------- 成員區塊 ---------- */

.member-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}

.member-heading {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.member-heading h2 {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 600;
}

.member-heading .tag {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
  border: 1px solid var(--red);
  padding: 4px 10px;
  border-radius: 999px;
}

.look-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

/* ---------- Look 卡片 ---------- */

.look-card {
  border: 1px solid var(--line);
  background: #fffdf8;
  display: flex;
  flex-direction: column;
  transform: rotate(-1.2deg);
  box-shadow: 0 10px 26px rgba(58, 46, 34, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.look-grid > .look-card:nth-child(even) {
  transform: rotate(1deg);
}

.look-card:hover {
  transform: rotate(0deg) translateY(-3px);
  box-shadow: 0 16px 32px rgba(58, 46, 34, 0.16);
}

.look-visual {
  aspect-ratio: 3 / 4;
  position: relative;
  background: repeating-linear-gradient(
    45deg,
    var(--paper-2) 0px,
    var(--paper-2) 1px,
    var(--paper) 1px,
    var(--paper) 10px
  );
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.look-visual .watermark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--grey);
  letter-spacing: 0.04em;
}

.look-visual .placeholder-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 3px 8px;
}

/* ---------- IG 嵌入區塊 ---------- */
/* 每張 Look 卡的照片位置：貼上該成員該套穿搭的 Instagram 貼文網址即可顯示真實照片。
   還沒貼連結之前，會顯示下面這個「待補照片」的提示畫面，不影響排版。 */

.look-visual.ig-embed-slot {
  align-items: stretch;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.ig-embed-slot .ig-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 16px;
}

.ig-embed-slot .ig-fallback .ig-fallback-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  border: 1px dashed var(--line);
  padding: 3px 8px;
}

.ig-embed-slot .ig-fallback .watermark {
  margin-top: 4px;
}

.ig-embed-slot blockquote.instagram-media {
  margin: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

.look-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.look-body .look-no {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--grey);
  font-weight: 700;
}

.look-body h3 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.item-list {
  list-style: none;
  font-size: 13.5px;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.item-list li {
  display: flex;
  gap: 8px;
}

.item-list .k {
  color: var(--grey);
  min-width: 4.5em;
}

.look-note {
  font-size: 13.5px;
  color: var(--ink-soft);
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}

.look-link {
  margin-top: auto;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.look-link .arrow {
  transition: transform 0.15s ease;
}

.look-card:hover .look-link .arrow {
  transform: translateX(3px);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  margin-top: 40px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer p {
  font-size: 12.5px;
  color: var(--grey);
}

.site-footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 響應式 ---------- */

@media (max-width: 860px) {
  .group-grid {
    grid-template-columns: 1fr;
  }
  .notice {
    grid-template-columns: 1fr;
  }
  .nav {
    gap: 18px;
  }
  .spine-text {
    display: none;
  }
}

@media (max-width: 560px) {
  .wrap {
    padding: 0 20px;
  }
  .site-header .wrap {
    height: 64px;
  }
  .nav {
    font-size: 11px;
    gap: 14px;
  }
}

/* ---------- 暫時隱藏待補照片的小卡 ---------- */
/* 還沒貼上 IG 貼文網址的小卡（含「待補照片」畫面）先不顯示。
   補上網址、刪掉註解標記後，小卡會自動重新出現。
   想全部顯示回來，刪掉這段即可。 */
.look-card:has(.ig-fallback) {
  display: none;
}
.member-section.is-empty {
  display: none;
}

/* ==========================================================================
   2026/10 改版：首頁精選、分類封面、標籤篩選、收藏／分享、Shop the look、Explore
   ========================================================================== */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.eyebrow a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* ---------- 小卡上的 IG 照片：不要裁切，保留完整貼文 ---------- */

.look-visual.ig-embed-slot:not(:has(.ig-fallback)) {
  aspect-ratio: auto;
  display: block;
  background: none;
}
/* 貼文載入前先用 4:5 的位置佔住，避免版面跳動 */
.ig-embed-slot:not(:has(.ig-fallback)):not(:has(iframe)) {
  aspect-ratio: 4 / 5;
  background: repeating-linear-gradient(45deg, var(--paper-2) 0 1px, var(--paper) 1px 10px);
}

/* ---------- 共用：chip ---------- */

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffdf8;
  color: var(--ink);
  font: 600 13.5px/1.2 var(--sans);
  cursor: pointer;
  white-space: nowrap;
}

.chip:hover {
  border-color: var(--ink-soft);
}

.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.chip-count {
  font-size: 12px;
  font-weight: 500;
  color: var(--grey);
}

.chip-count:empty {
  display: none;
}

.chip[aria-pressed="true"] .chip-count {
  color: var(--paper-2);
}

/* ---------- 首頁：精選穿搭 ---------- */

.hero.hero-compact {
  padding: 72px 0 48px;
}

.hero.hero-compact h1 {
  font-size: clamp(42px, 6.4vw, 84px);
  max-width: none;
}

.chip[hidden] {
  display: none;
}

.featured {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding-top: 8px;
  padding-bottom: 72px;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.feature-photo {
  background: #fffdf8;
  border: 1px solid var(--line);
  padding: 12px 12px 36px;
  box-shadow: 0 10px 26px rgba(58, 46, 34, 0.12);
  transform: rotate(-1.5deg);
  min-height: 420px;
}

.feature-photo blockquote.instagram-media,
.feature-photo iframe {
  margin: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

.feature-kicker {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--red);
}

.feature-body h3,
.trend h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
  margin-top: 6px;
}

.feature-lede,
.trend-lede {
  margin-top: 12px;
  color: var(--ink-soft);
  max-width: 52ch;
}

.breakdown {
  list-style: none;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.breakdown li {
  display: grid;
  grid-template-columns: 6.5em minmax(0, 1fr);
  gap: 4px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  align-items: baseline;
}

.bd-key {
  color: var(--grey);
}

.bd-item strong {
  display: block;
  font-weight: 600;
  color: var(--ink);
}

.bd-item {
  color: var(--ink-soft);
}

.bd-shop {
  grid-column: 2;
  display: flex;
  gap: 14px;
  font-size: 13px;
  margin-top: 2px;
}

.bd-shop a,
.shop-links a,
.feature-more,
.shelf-link {
  color: var(--red);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.feature-tip {
  margin-top: 18px;
  font-size: 14.5px;
  color: var(--ink-soft);
  max-width: 58ch;
}

.feature-tip strong {
  color: var(--ink);
}

.feature-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 22px;
}

.trend {
  border-left: 1px solid var(--line);
  padding-left: 32px;
}

.trend-list {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.trend-list a {
  display: flex;
  flex-direction: column;
}

.tb-who {
  font-size: 13px;
  color: var(--grey);
}

.tb-what {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}

.trend-list a:hover .tb-what {
  text-decoration-color: var(--red);
}

.trend-list p {
  margin-top: 4px;
  font-size: 14px;
  color: var(--ink-soft);
}

.trend-all {
  margin-top: 24px;
}

/* ---------- 首頁：依場合／風格瀏覽 ---------- */

.browse {
  padding-top: 56px;
  padding-bottom: 8px;
  border-top: 1px solid var(--line);
}

.browse h2,
.shelf-head h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
}

.browse > p {
  margin: 8px 0 20px;
  color: var(--ink-soft);
}

/* ---------- 分類書架與封面（布料色票卡） ---------- */

.shelf {
  padding-top: 64px;
}

.shelf-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 28px;
}

.shelf-link {
  font-size: 14px;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 32px 28px;
}

.cover-grid-page {
  padding: 48px 0 24px;
}

/* 每位藝人一張色票卡：上方是代表色布料，左上角掛著名牌吊牌 */
.cover {
  position: relative;
  /* 照片與名牌疊在同一格，名牌貼在照片左下角，避免擋到臉 */
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  background: #fffdf8;
  border: 1px solid var(--line);
  padding: 10px 10px 0;
  box-shadow: 0 10px 26px rgba(58, 46, 34, 0.12);
  transform: rotate(-1deg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cover-grid > .cover:nth-child(even) {
  transform: rotate(0.8deg);
}

.cover:hover,
.cover:focus-visible {
  transform: rotate(0deg) translateY(-3px);
  box-shadow: 0 16px 32px rgba(58, 46, 34, 0.18);
}

.cover-swatch {
  position: relative;
  grid-area: 1 / 1;
  /* 照片區固定 4:5，和封面照比例一致，整張臉與頭頂都不會被裁掉 */
  aspect-ratio: 4 / 5;
  display: grid;
  grid-template-columns: 1.5fr 1fr 0.55fr;
  overflow: hidden;
}

.cover-swatch i:nth-child(1) { background: var(--c1); }
.cover-swatch i:nth-child(2) { background: var(--c2); }
.cover-swatch i:nth-child(3) { background: var(--c3); }

/* 布紋質感 */
.cover-swatch::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.06) 0 1px, transparent 1px 4px);
  mix-blend-mode: soft-light;
}

/* 自行上傳的封面照（cover 加上 style="--img:url(images/xxx.jpg)"）會蓋在色票上 */
.cover-swatch {
  background: var(--img, none) center / cover no-repeat;
}
.cover[style*="--img"] .cover-swatch i { opacity: 0; }

.cover-name {
  position: relative;
  grid-area: 1 / 1;
  align-self: end;
  justify-self: start;
  margin: 0 0 18px -10px;
  z-index: 1;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.15;
  padding: 10px 16px 10px 30px;
  max-width: 85%;
  box-shadow: 2px 3px 0 rgba(58, 46, 34, 0.18);
}

/* 吊牌打孔 */
.cover-name::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--c1);
  box-shadow: inset 0 0 0 1.5px rgba(58, 46, 34, 0.35);
}

.cover-caption {
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 4px 14px;
}

.cover-blurb {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cover-count {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--red);
  min-height: 1.2em;
}

.category-more {
  padding: 16px 0 24px;
}

/* ---------- 藝人頁：標籤篩選列 ---------- */

.filter-bar {
  display: flex;
  gap: 8px;
  padding: 28px 0 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-bar:empty {
  display: none;
}

.look-card.is-filtered-out {
  display: none;
}

.look-card.is-highlighted {
  outline: 3px solid var(--red);
  outline-offset: 6px;
  scroll-margin-top: 110px;
}

/* ---------- 小卡：標籤、Shop the look、收藏與分享 ---------- */

.look-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: -6px;
  font-size: 12.5px;
}

.look-tags a {
  color: var(--grey);
}

.look-tags a:hover {
  color: var(--red);
}

.shop-look {
  border: 1px solid var(--line);
  background: var(--paper);
}

.shop-look summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shop-look summary::-webkit-details-marker {
  display: none;
}

.shop-look summary::after {
  content: "+";
  font-size: 18px;
  line-height: 1;
  color: var(--red);
}

.shop-look[open] summary::after {
  content: "–";
}

.shop-look ul {
  list-style: none;
  padding: 0 14px;
}

.shop-look li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 0;
  border-top: 1px dashed var(--line);
  font-size: 13px;
}

.shop-look .piece {
  color: var(--ink);
}

.shop-links {
  display: flex;
  gap: 14px;
  font-size: 12.5px;
}

.shop-note {
  padding: 8px 14px 12px;
  font-size: 11.5px;
  color: var(--grey);
}

.look-actions {
  display: flex;
  gap: 8px;
  padding-top: 4px;
}

.action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffdf8;
  color: var(--ink);
  font: 600 13px/1 var(--sans);
  cursor: pointer;
}

.action svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.action[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.action[aria-pressed="true"] svg {
  fill: currentColor;
}

.look-artist {
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
}

/* ---------- Explore 頁 ---------- */

.explore-filters {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 0 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
}

.filter-group {
  display: grid;
  grid-template-columns: 6.5em minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.filter-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-soft);
  padding-top: 7px;
}

.explore-status {
  padding: 24px 0;
  color: var(--grey);
  font-size: 14px;
}

.explore-grid {
  padding-bottom: 24px;
}

.explore-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 32px 0;
  color: var(--ink-soft);
}

.explore-more-wrap {
  padding: 8px 0 32px;
  display: flex;
  justify-content: center;
}

/* ---------- 響應式（手機優先的調整） ---------- */

@media (max-width: 1000px) {
  .featured {
    grid-template-columns: 1fr;
  }
  .trend {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 32px;
  }
}

@media (max-width: 760px) {
  .feature {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .feature-photo {
    max-width: 380px;
    width: 100%;
    margin: 0 auto;
  }
  .breakdown li {
    grid-template-columns: 1fr;
  }
  .bd-shop {
    grid-column: 1;
  }
  .bd-key {
    font-size: 12.5px;
  }
}

@media (max-width: 560px) {
  /* 手機：Logo 一行、選單一行可左右滑，表頭不固定以騰出畫面 */
  .site-header {
    position: static;
  }
  .site-header .wrap {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-top: 14px;
    padding-bottom: 4px;
  }
  .nav {
    width: calc(100% + 20px);
    margin-right: -20px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 22px;
    padding: 6px 20px 8px 0;
  }
  .nav::-webkit-scrollbar {
    display: none;
  }
  .nav a {
    white-space: nowrap;
  }
  .hero.hero-compact {
    padding: 44px 0 32px;
  }
  .hero p.lede {
    font-size: 16.5px;
  }
  /* 手機上不傾斜，避免邊緣被裁到或出現橫向捲動 */
  .look-card,
  .look-grid > .look-card:nth-child(even),
  .feature-photo,
  .cover,
  .cover-grid > .cover:nth-child(even) {
    transform: none;
  }
  .look-grid {
    grid-template-columns: 1fr;
  }
  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .cover {
    padding: 6px 6px 0;
  }
  .cover-name {
    margin: 0 0 10px -6px;
    font-size: 15px;
    padding: 7px 10px 7px 22px;
    max-width: 92%;
  }
  .cover-name::before {
    left: 8px;
    width: 6px;
    height: 6px;
    margin-top: -3px;
  }
  .cover-blurb {
    font-size: 12px;
  }
  .cover-count {
    font-size: 13px;
  }
  /* 標籤列改成左右滑動 */
  .browse .chip-row,
  .explore-filters .chip-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-right: -20px;
    padding-right: 20px;
  }
  .browse .chip-row::-webkit-scrollbar,
  .explore-filters .chip-row::-webkit-scrollbar {
    display: none;
  }
  .filter-group {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .filter-label {
    padding-top: 0;
    font-size: 15px;
  }
  .filter-bar {
    margin-right: -20px;
    padding-right: 20px;
  }
}

/* ---------- IG 照片載入不出來時的備援連結 ---------- */
.ig-embed-slot blockquote.instagram-media,
.feature-photo blockquote.instagram-media {
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  height: 100%;
}
.ig-open {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 100%;
  aspect-ratio: 4 / 5;
  padding: 24px;
  text-align: center;
  color: var(--ink);
}
.ig-open-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 4px;
}
.ig-open-hint {
  font-size: 12.5px;
  color: var(--grey);
}

/* ---------- Stars 頁與場合入口 ---------- */
.cover[hidden],
.cover.is-filtered-out,
.occasion-tile[hidden],
.filter-group[hidden] { display: none; }

.cover-group {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.stars-filter { padding-top: 32px; }
.stars-filter + .cover-grid-page { padding-top: 28px; }
.stars-empty { padding: 24px 0 48px; color: var(--ink-soft); }

.occasion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.occasion-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 22px 20px;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.occasion-tile:hover,
.occasion-tile:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(58, 46, 34, 0.14);
}

.occasion-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
}

.occasion-lede {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  flex: 1;
}

.occasion-count {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--red);
  min-height: 1.2em;
}

@media (max-width: 760px) {
  .occasion-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .occasion-tile { padding: 16px; }
  .occasion-name { font-size: 18px; }
  .occasion-lede { font-size: 13px; }
}

/* ---------- 意見回饋 ---------- */
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

.feedback-form,
.feedback-done {
  max-width: 720px;
  padding: 40px 0 64px;
}

.feedback-form[hidden],
.feedback-done[hidden] { display: none; }

.fb-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  min-width: 0;
}

.fb-label {
  font: 600 14px/1.3 var(--sans);
  color: var(--ink);
  padding: 0;
}

.fb-req,
.fb-opt {
  font-weight: 400;
  font-size: 12.5px;
  color: var(--grey);
  margin-left: 6px;
}

.fb-topics { flex-wrap: wrap; gap: 8px; }
.fb-topics .chip input { position: absolute; opacity: 0; pointer-events: none; }
.fb-topics .chip:has(input:checked) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.fb-topics .chip:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: 2px; }

.feedback-form input[type="text"],
.feedback-form input[type="email"],
.feedback-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffdf8;
  color: var(--ink);
  font: 400 15px/1.5 var(--sans);
}

.feedback-form textarea { resize: vertical; min-height: 160px; }

.feedback-form input:focus,
.feedback-form textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(181, 80, 46, 0.15);
}

.feedback-form [aria-invalid="true"] { border-color: var(--red); }
.fb-error { margin: 0; font-size: 13px; color: var(--red); }

.fb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }

.fb-honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.fb-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.fb-submit {
  min-height: 46px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fffdf8;
  font: 600 15px/1 var(--sans);
  cursor: pointer;
}

.fb-submit:hover { background: #9c4325; }
.fb-submit:disabled { opacity: 0.6; cursor: wait; }
.fb-status { margin: 0; font-size: 14px; color: var(--ink-soft); }

.feedback-done h2 { font-family: var(--serif); font-size: 30px; margin: 0 0 8px; }
.feedback-done p { color: var(--ink-soft); }
.feedback-done .chip { margin-right: 8px; }

@media (max-width: 760px) {
  .fb-row { grid-template-columns: 1fr; }
  .fb-submit { width: 100%; }
}
