/* ============================================================
   藝妍美學館 - 最新消息頁樣式 (news.css)
   風格來源：.專案本案\風格\美容02\美甲-最新消息.html
   命名：遵守 .github\專案架構\css命名規則.md
   Block 使用白名單內單詞 `news`（內容展示）
   ============================================================ */

:root {
  --cream: #faf5ef;
  --cream-2: #f3e9df;
  --rose: #c48a79;
  --rose-deep: #a86e5d;
  --gold: #b08d57;
  --ink: #4a3b33;
  --ink-soft: #7a6a60;
  --line: #e7d9cc;
}
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family: "Noto Serif TC", "PingFang TC", "Microsoft JhengHei", serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
}
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
.section { padding: 60px 0; }
.center { text-align: center; }
.eyebrow {
  display: inline-block;
  letter-spacing: .3em;
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
}
h1, h2, h3 { font-weight: 700; letter-spacing: .03em; line-height: 1.35; }
.title { font-size: 30px; margin-bottom: 12px; color: var(--ink); }
.lead { font-size: 16px; color: var(--ink-soft); max-width: 600px; margin:0 auto; }

/* ===== 頁首 ===== */
.page-header {
  background: var(--cream-2);
  border-bottom: 1px solid var(--line);
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.page-header__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(var(--hero-blur, 0));
  transform: scale(1.05);
  z-index: 0;
}
.page-header.has-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(74, 59, 51, .45);
  z-index: 1;
}
.page-header.has-bg .wrap {
  position: relative;
  z-index: 2;
  color: #fff;
}
.page-header.has-bg .page-header__title {
  color: #fff;
}
.page-header.has-bg .page-header__sub {
  color: #f6ece4;
}
.page-header__title {
  font-size: 30px;
  letter-spacing: .06em;
}
.page-header__sub {
  font-size: 16px;
  color: var(--ink-soft);
  margin-top: 10px;
}

/* ===== 消息列表 ===== */
.news {
  max-width: 820px;
  margin: 0 auto;
}
.news__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 44px;
}
.news__item {
  display: flex;
  gap: 20px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 22px 26px;
  transition: box-shadow .25s;
  align-items: center;
}
.news__item:hover {
  box-shadow: 0 4px 20px rgba(74,59,51,.08);
}
.news__date {
  flex: 0 0 72px;
  text-align: center;
  border-right: 1px solid var(--line);
  padding-right: 20px;
}
.news__day {
  font-size: 26px;
  font-weight: 700;
  color: var(--rose-deep);
  line-height: 1.2;
}
.news__month {
  font-size: 13px;
  color: var(--ink-soft);
}
.news__content {
  flex: 1;
}
.news__tag {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: .1em;
  font-weight: 600;
}
.news__title {
  font-size: 18px;
  margin: 2px 0 4px;
}
.news__desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news__more {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--rose);
  text-decoration: none;
  font-weight: 500;
}
.news__more:hover {
  color: var(--rose-deep);
}

/* ===== 歷史消息（折疊） ===== */
.news__archive {
  margin-top: 40px;
}
.news__archive details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.news__archive summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.news__archive summary::-webkit-details-marker { display: none; }
.news__archive summary::after {
  content: "+";
  color: var(--rose);
  font-size: 20px;
  flex-shrink: 0;
  margin-left: 12px;
}
.news__archive details[open] summary::after { content: "–"; }

.news__archive-list {
  padding: 0 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.news__archive-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.news__archive-item:last-child { border-bottom: 0; }
.news__archive-date {
  color: var(--ink-soft);
  font-size: 13px;
}
.news__archive-title {
  color: var(--ink);
  text-decoration: none;
}
.news__archive-title:hover {
  color: var(--rose);
}

/* ===== CTA ===== */
.cta-section {
  background: var(--ink);
  color: #f6ece4;
  padding: 44px 0;
  text-align: center;
}
.cta-section .title { color: #fff; }
.cta-section__btn {
  display: inline-block;
  background: var(--rose);
  color: #fff;
  text-decoration: none;
  padding: 12px 40px;
  border-radius: 999px;
  font-size: 15px;
  transition: background .2s;
  margin-top: 16px;
}
.cta-section__btn:hover { background: var(--rose-deep); }
.cta-section__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 28px;
  margin-top: 14px;
  font-size: 14px;
  color: #e9d8cb;
}
.cta-section__note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--gold);
}

/* ============================================================
   響應式
   ============================================================ */
@media (max-width: 640px) {
  .wrap { padding: 0 16px !important; }
  .section { padding: 36px 0; }
  .page-header { min-height: 200px; }
  .page-header__title { font-size: 24px; }
  .title { font-size: 22px; }

  .news__item {
    flex-direction: column;
    align-items: stretch;
    padding: 18px 18px;
    gap: 12px;
  }
  .news__date {
    flex: 0 0 auto;
    border-right: 0;
    padding-right: 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
  }
  .news__day { font-size: 20px; }
  .news__title { font-size: 17px; }

  .news__archive summary { font-size: 14px; padding: 14px 18px; }
  .news__archive-list { padding: 0 18px 16px; }
  .news__archive-item { font-size: 13px; flex-wrap: wrap; gap: 4px; }

  .cta-section { padding: 32px 0; }
  .cta-section__btn { padding: 10px 32px; font-size: 14px; }
  .cta-section__row { font-size: 13px; gap: 10px 16px; }
}

@media (max-width: 400px) {
  .wrap { padding: 0 12px !important; }
  .page-header { min-height: 180px; }
  .page-header__title { font-size: 20px; }
  .title { font-size: 18px; }
}

/* ===== 消息詳情彈出框（modal） ===== */
.news-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.news-modal.open { display: flex; }
.news-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(40, 30, 24, 0.55);
}
.news-modal__box {
  position: relative;
  background: #fff;
  border-radius: 14px;
  max-width: 560px;
  width: 100%;
  max-height: 82vh;
  overflow-y: auto;
  padding: 32px 30px;
  box-shadow: 0 24px 60px rgba(40, 30, 24, 0.28);
  animation: newsFadeUp .25s ease;
}
@keyframes newsFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.news-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: 0;
  font-size: 26px;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
}
.news-modal__close:hover { color: var(--ink); }
.news-modal__cat {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--rose-deep);
  background: #f8ece6;
  padding: 3px 12px;
  border-radius: 999px;
}
.news-modal__date {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}
.news-modal__title {
  font-size: 20px;
  margin-top: 12px;
  color: var(--ink);
}
.news-modal__desc {
  margin-top: 12px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.8;
  white-space: pre-line;
}

/* 新聞列表內文：最多 2 行，超出自動「…」（由排版判斷，不需計算字數） */
.news__content .news__desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

