/* ============================================================
   WASHIN AI — Aesop-Inspired Brand Theme

   對標：Aesop（實測 2026-03-18 Playwright 爬取）
   精神：專業 AI × 人文氣質 × 京都好旅館

   Aesop DNA：
   - 標題字重 400（Regular，不是 Bold）
   - 按鈕全透明，CTA 用底線連結
   - 圓角 0px
   - 背景 #FFFEF2（極淡暖米）
   - 文字 #333（深灰，不是純黑）
   - 照片 hover 8 秒緩慢放大（像呼吸）
   ============================================================ */

/* === DaisyUI 主題色覆蓋（Aesop 色系） === */
[data-theme="nord"] {
  --color-base-100: #FFFEF2;        /* Aesop 實測背景色 */
  --color-base-200: #f0ebe3;        /* 稍深，區塊交替用 */
  --color-base-300: #e0dbd4;        /* 邊界/分隔 */
  --color-base-content: #333333;    /* Aesop 實測文字色 */
  --color-primary: #25201d;         /* Nav/深色區塊 */
  --color-primary-content: #f4f2ed;
  --color-secondary: #945C26;       /* Aesop 實測強調色 */
  --color-secondary-content: #FFFEF2;
  --color-accent: #a0714d;
  --color-accent-content: #333333;
  --color-neutral: #252525;         /* Aesop footer 色 */
  --color-neutral-content: #e0dbd4;
  --color-info: #4a7ec9;
  --color-success: #16a34a;
  --color-warning: #a0714d;
  --color-error: #dc2626;
}

/* ============================================================
   §1 排版 — Aesop: Serif 標題 weight 400 + Sans 正文
   Reading Glasses: 正文 22px + CJK 行高 1.75
   ============================================================ */
body {
  font-size: 22px;
  line-height: 1.75;
  color: #333;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'palt';
}

/* Aesop 關鍵：標題 weight 400 = 高級感 */
h1, h2, .card-title {
  font-family: 'Noto Serif JP', 'Noto Sans JP', serif !important;
  font-weight: 400 !important;    /* Aesop DNA: Regular, not Bold */
  letter-spacing: 0.02em;
}
h1 { font-size: 2.25rem; line-height: 1.4; }
h2 { font-size: 1.75rem; line-height: 1.4; }
h3 {
  font-size: 0.875rem;
  font-weight: 700;              /* Aesop: h3 用 Bold + 小字 + 大間距 */
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}

p, li, td, th, dd {
  line-height: 1.75;
  max-width: 680px;
}

/* 觸碰目標 */
.btn { min-height: 48px; min-width: 48px; }
.btn + .btn { margin-left: 16px; }

/* ============================================================
   §2 Aesop 風格連結 — 底線連結取代填色按鈕
   ============================================================ */
.link-aesop,
.btn-ghost {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: currentColor;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  min-height: auto !important;
  font-weight: 400;
  transition: opacity 0.3s ease;
}
.link-aesop:hover,
.btn-ghost:hover {
  opacity: 0.6;
  background: transparent !important;
}

/* 唯一保留的填色 CTA — Hero 主按鈕 */
.btn-hero-cta {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  border: 1.5px solid rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(4px);
  color: white;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}
.btn-hero-cta:hover {
  background: white;
  color: #333;
}

/* ============================================================
   §3 和紙紋理背景
   ============================================================ */
.washin-bg::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('../img/washi-texture.png');
  background-size: 512px 512px;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   §4 滾動進場 — Aesop 風格（慢，600ms）
   ============================================================ */
@keyframes washin-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.washin-animate { opacity: 0; }
.washin-animate.is-visible {
  animation: washin-fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.washin-animate.is-visible:nth-child(2) { animation-delay: 0.1s; }
.washin-animate.is-visible:nth-child(3) { animation-delay: 0.2s; }
.washin-animate.is-visible:nth-child(4) { animation-delay: 0.3s; }

/* ============================================================
   §5 金色裝飾線
   ============================================================ */
.gold-line {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 auto;
  max-width: 480px;
  padding: 0 2rem;
}
.gold-line::before, .gold-line::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148,92,38,0.3), transparent);
}
.gold-line .ornament {
  color: #945C26;
  font-size: 8px;
  opacity: 0.6;
}

/* ============================================================
   §6 卡片 — Aesop: 無邊框、無圓角、無陰影
   ============================================================ */
.card {
  border: none !important;
  border-radius: 0 !important;     /* Aesop: 直角 */
  background: transparent;
  box-shadow: none !important;
  overflow: hidden;
  transition: none;
}
.card:hover {
  transform: none;
  box-shadow: none !important;
}

/* Aesop: 全域消除 Tailwind shadow 和 border 殘留 */
.card[class*="shadow"] { box-shadow: none !important; }
.card[class*="border"] { border: none !important; }
/* 展示型卡片透明背景；功能型卡片（exam/dashboard 內）保留 */
[id*="grid"] .card { background: transparent !important; }

/* Badge — Hero/section 內改為純文字；功能型 badge（exam/dashboard）不動 */
section > .badge,
.hero .badge,
[id*="grid"] .badge,
[id*="container"] .badge:not(.badge-outline) {
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  min-height: auto !important;
  height: auto !important;
}

/* 照片 hover: 8 秒緩慢放大（像呼吸） */
.card figure img {
  transition: transform 8s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.card:hover figure img {
  transform: scale(1.04);
}

/* 卡片內距 */
.card .card-body {
  padding: 20px 0 0 0;            /* Aesop: 只有上方間距 */
}

/* Hero 照片區 — 無圓角 */
.hero {
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden;
}

/* ============================================================
   §7 Nav — 極簡 + 金線
   ============================================================ */
.navbar {
  border-bottom: 1px solid rgba(148, 92, 38, 0.15) !important;
}

/* Nav 連結: Aesop 風格 */
.navbar .btn-ghost {
  text-decoration: none !important;   /* Nav 不加底線 */
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* ============================================================
   §8 Footer — Aesop: #252525 + 金線頂部
   ============================================================ */
footer.washin-footer {
  background-color: #252525 !important;
  border-top: none !important;
  color: rgba(244, 242, 237, 0.55);
  position: relative;
  padding-top: 3rem;
}
footer.washin-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #945C26, transparent);
}
footer.washin-footer * {
  color: rgba(244, 242, 237, 0.55);
  border-color: rgba(244, 242, 237, 0.08);
}
footer.washin-footer a:hover { color: #a0714d; }

/* ============================================================
   §9 Kicker — Aesop h3 風格：小字、大間距、全大寫
   ============================================================ */
.kicker-text {
  color: #945C26 !important;
  font-family: 'Noto Sans JP', sans-serif !important;
  font-weight: 600;
  font-size: 0.7rem !important;
  letter-spacing: 0.15em !important;
}

/* ============================================================
   §10 區塊間距 — Aesop: 80px（比一般網站寬 2 倍）
   ============================================================ */
main {
  gap: 80px !important;
}

/* ============================================================
   §11 品牌印章
   ============================================================ */
.washin-stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #945C26;
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  font-weight: 400;
  color: #945C26;
  opacity: 0.7;
}

/* ============================================================
   §12 引言區塊 — Aesop 招牌：深色背景 + serif 引言
   ============================================================ */
.quote-block {
  background: #333;
  color: #FFFEF2;
  padding: 80px 2rem;
  text-align: center;
}
.quote-block blockquote {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.8;
  max-width: 680px;
  margin: 0 auto;
}
.quote-block cite {
  display: block;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  font-style: normal;
  opacity: 0.6;
}

/* ============================================================
   §13 無障礙
   ============================================================ */
*:focus-visible {
  outline: 2px solid #945C26;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .washin-animate { opacity: 1; }
}

/* ============================================================
   §14 響應式
   ============================================================ */
@media (max-width: 768px) {
  body { font-size: 20px; }
  h1 { font-size: 1.75rem !important; }
  h2 { font-size: 1.5rem !important; }
  main { gap: 48px !important; }
  .quote-block { padding: 48px 1.5rem; }
  .quote-block blockquote { font-size: 1.25rem; }
  .gold-line { max-width: 280px; }
}
