/* ============================================================
   news.css · 品牌動態頁樣式（列表 + 單篇共用）
   初喚 CHUHUAN · v0.1 · 2026-04
   ============================================================

   架構：
   § A  Hero 區（黑底招牌感 · 和 /contact/ Hero 氣質一致）
   § B  標籤過濾區（橫向 pills · 純 JS 過濾 · 無換頁）
   § C  文章卡片網格（2 欄 grid · 手機 1 欄 · gradient 佔位封面）
   § D  社群 CTA 尾（和 /contact/ §03 一致結構）
   § E  單篇文章頁（Article · 麵包屑 + Header + 正文 + FAQ + 回列表）
   § F  響應式與列印

   ============================================================ */


/* =============== § A  Hero 區 =============== */

.news-hero {
  position: relative;
  background: var(--brand-black);
  color: #fff;
  padding: clamp(80px, 14vw, 160px) 24px clamp(60px, 10vw, 120px);
  overflow: hidden;
}

.news-hero::before {
  /* 黑底上疊一層極淡的霓虹黃斜紋，作為品牌招牌感背景 */
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent 0 80px,
      rgba(255, 212, 1, 0.02) 80px 82px
    );
  pointer-events: none;
}

.news-hero-inner {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}

.news-hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--brand-green);
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.news-hero-title {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 20px;
  color: #fff;
}

.news-hero-title em {
  font-style: normal;
  color: var(--signal-yellow);
  background: linear-gradient(180deg, transparent 60%, rgba(255, 212, 1, 0.25) 60%);
  padding: 0 4px;
}

.news-hero-sub {
  font-size: clamp(15px, 2.2vw, 18px);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
  max-width: 640px;
  margin: 0 auto;
}

/* Hero 底部三色磁磚腰帶（視覺上和 /contact/ 的腰帶呼應） */
.news-hero-stripe {
  display: flex;
  height: 6px;
  margin-top: clamp(50px, 7vw, 80px);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 2px;
  overflow: hidden;
}
.news-hero-stripe > span {
  flex: 1;
}
.news-hero-stripe .s-yellow { background: var(--signal-yellow); }
.news-hero-stripe .s-red    { background: var(--brand-red); }
.news-hero-stripe .s-blue   { background: var(--signal-blue); }


/* =============== § B  標籤過濾區 =============== */

.news-filter-section {
  background: var(--scene-tile);
  padding: clamp(40px, 6vw, 60px) 24px 0;
  position: relative;
}

.news-filter-section::before {
  /* 頂端綠腰線 */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-green);
}

.news-filter-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.news-filter-heading {
  text-align: center;
  margin-bottom: 32px;
}

.news-filter-heading .eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--brand-red);
  font-weight: 700;
  margin-bottom: 10px;
}

.news-filter-heading .heading {
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 700;
  color: var(--brand-black);
  margin: 0;
}

.news-filter-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding-bottom: 8px;
}

.news-pill {
  appearance: none;
  border: 2px solid var(--brand-black);
  background: transparent;
  color: var(--brand-black);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.05em;
}

.news-pill:hover {
  background: var(--brand-black);
  color: #fff;
}

.news-pill.is-active {
  background: var(--brand-black);
  color: var(--signal-yellow);
  border-color: var(--brand-black);
}

.news-pill .count {
  display: inline-block;
  margin-left: 6px;
  font-size: 12px;
  opacity: 0.65;
  font-weight: 500;
}


/* =============== § C  文章卡片網格 =============== */

.news-list-section {
  background: var(--scene-tile);
  padding: clamp(40px, 6vw, 60px) 24px clamp(80px, 10vw, 120px);
}

.news-list-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 8px;
}

.news-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

/* Gradient 佔位封面 · 三種分類配不同 gradient */
.news-card-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 媒體報導 · 藍 */
.news-card-cover[data-tag="media"] {
  background: linear-gradient(135deg, #2b6cb0 0%, #1e4e7a 100%);
}
/* 新菜上市 · 紅 */
.news-card-cover[data-tag="menu"] {
  background: linear-gradient(135deg, #c2412e 0%, #8c2e1f 100%);
}
/* 品牌活動 · 黃 */
.news-card-cover[data-tag="event"] {
  background: linear-gradient(135deg, #ffd401 0%, #d97706 100%);
}

/* 封面上大大的水印（無圖時用分類 icon 塑造視覺） */
.news-card-watermark {
  font-size: clamp(52px, 9vw, 88px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  text-align: center;
  padding: 12px 16px;
  user-select: none;
}

.news-card-cover[data-tag="media"] .news-card-watermark {
  color: rgba(255, 255, 255, 0.18);
}
.news-card-cover[data-tag="menu"] .news-card-watermark {
  color: rgba(255, 212, 1, 0.25);
}
.news-card-cover[data-tag="event"] .news-card-watermark {
  color: rgba(194, 65, 46, 0.3);
}

/* 未來有圖時可用 <img> 覆蓋 · 圖片會完整遮住 gradient */
.news-card-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-card-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
  align-self: flex-start;
  text-transform: uppercase;
}

.news-card-tag[data-tag="media"] {
  background: rgba(43, 108, 176, 0.12);
  color: var(--signal-blue);
  border-top: 3px solid var(--signal-blue);
  padding-top: 6px;
  border-radius: 0 0 4px 4px;
}
.news-card-tag[data-tag="menu"] {
  background: rgba(194, 65, 46, 0.1);
  color: var(--brand-red);
  border-top: 3px solid var(--brand-red);
  padding-top: 6px;
  border-radius: 0 0 4px 4px;
}
.news-card-tag[data-tag="event"] {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
  border-top: 3px solid var(--signal-yellow);
  padding-top: 6px;
  border-radius: 0 0 4px 4px;
}

.news-card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--brand-black);
  margin: 0 0 10px;
  /* 最多兩行 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-excerpt {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.6);
  margin: 0 0 16px;
  /* 最多兩行 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.45);
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.news-card-date {
  letter-spacing: 0.05em;
}

.news-card-readmore {
  color: var(--brand-red);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.news-card:hover .news-card-readmore {
  text-decoration: underline;
}

/* 空狀態 */
.news-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: 12px;
  border: 2px dashed rgba(0, 0, 0, 0.1);
}

.news-empty-icon {
  font-size: 40px;
  opacity: 0.4;
  margin-bottom: 12px;
}

.news-empty-text {
  color: rgba(0, 0, 0, 0.5);
  font-size: 15px;
  margin: 0;
}

/* 載入中 */
.news-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: rgba(0, 0, 0, 0.4);
  font-size: 14px;
}


/* =============== § D  社群 CTA 尾 =============== */

.news-social-cta {
  background: var(--scene-tile);
  padding: clamp(50px, 8vw, 90px) 24px;
  position: relative;
}

.news-social-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-green);
}

.news-social-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.news-social-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--brand-red);
  font-weight: 700;
  margin-bottom: 12px;
}

.news-social-title {
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 700;
  color: var(--brand-black);
  margin: 0 0 16px;
  line-height: 1.4;
}

.news-social-sub {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(0, 0, 0, 0.65);
  margin: 0 0 36px;
}

.news-social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 640px;
  margin: 0 auto;
}

.news-social-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px 16px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.news-social-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.news-social-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 4px;
}

.news-social-icon.ig {
  background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
}
.news-social-icon.xhs {
  background: #ff2442;
}
.news-social-icon.tt {
  background: #000;
  position: relative;
  overflow: hidden;
}
.news-social-icon.tt::before {
  content: "♪";
  position: absolute;
  color: #25f4ee;
  transform: translate(-2px, -1px);
}
.news-social-icon.tt::after {
  content: "♪";
  position: absolute;
  color: #fe2c55;
  transform: translate(2px, 1px);
}

.news-social-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-black);
}

.news-social-handle {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.5);
}

.news-social-card.static {
  cursor: default;
}
.news-social-card.static:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}


/* ============================================================
   § E  單篇文章頁（Article）
   ============================================================ */

.article-wrap {
  background: var(--scene-tile);
  min-height: 80vh;
  padding: clamp(40px, 6vw, 80px) 24px clamp(80px, 10vw, 120px);
}

.article-inner {
  max-width: 760px;
  margin: 0 auto;
}

/* 麵包屑 */
.article-breadcrumb {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.5);
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.article-breadcrumb a {
  color: rgba(0, 0, 0, 0.55);
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-breadcrumb a:hover {
  color: var(--brand-red);
}

.article-breadcrumb .sep {
  opacity: 0.35;
  padding: 0 2px;
}

.article-breadcrumb .current {
  color: var(--brand-black);
  font-weight: 600;
}

/* 文章頭部 */
.article-header {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.article-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 4px;
  margin-bottom: 20px;
  text-transform: uppercase;
  border-top: 3px solid currentColor;
  border-radius: 0 0 4px 4px;
  padding-top: 8px;
}

.article-tag[data-tag="media"] {
  background: rgba(43, 108, 176, 0.12);
  color: var(--signal-blue);
}
.article-tag[data-tag="menu"] {
  background: rgba(194, 65, 46, 0.1);
  color: var(--brand-red);
}
.article-tag[data-tag="event"] {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
}

.article-title {
  font-size: clamp(26px, 4.5vw, 40px);
  font-weight: 800;
  line-height: 1.3;
  color: var(--brand-black);
  margin: 0 0 18px;
}

.article-lead {
  font-size: clamp(16px, 2.2vw, 18px);
  line-height: 1.75;
  color: rgba(0, 0, 0, 0.68);
  margin: 0 0 20px;
  font-weight: 500;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.5);
}

.article-meta .dot {
  color: rgba(0, 0, 0, 0.25);
}

/* Cover gradient box（當無圖時展示） */
.article-cover {
  aspect-ratio: 21 / 9;
  border-radius: 12px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.article-cover[data-tag="media"] {
  background: linear-gradient(135deg, #2b6cb0 0%, #1e4e7a 100%);
}
.article-cover[data-tag="menu"] {
  background: linear-gradient(135deg, #c2412e 0%, #8c2e1f 100%);
}
.article-cover[data-tag="event"] {
  background: linear-gradient(135deg, #ffd401 0%, #d97706 100%);
}

.article-cover-watermark {
  font-size: clamp(70px, 13vw, 140px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

.article-cover[data-tag="media"] .article-cover-watermark {
  color: rgba(255, 255, 255, 0.16);
}
.article-cover[data-tag="menu"] .article-cover-watermark {
  color: rgba(255, 212, 1, 0.22);
}
.article-cover[data-tag="event"] .article-cover-watermark {
  color: rgba(194, 65, 46, 0.3);
}

/* 正文 */
.article-body {
  font-size: 16px;
  line-height: 1.85;
  color: rgba(0, 0, 0, 0.82);
}

.article-body h2 {
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 700;
  color: var(--brand-black);
  margin: 48px 0 18px;
  padding-left: 14px;
  border-left: 4px solid var(--brand-red);
  line-height: 1.4;
}

.article-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-black);
  margin: 36px 0 14px;
  line-height: 1.5;
}

.article-body p {
  margin: 0 0 20px;
}

.article-body strong {
  color: var(--brand-black);
  font-weight: 700;
}

.article-body em {
  font-style: normal;
  background: linear-gradient(180deg, transparent 60%, rgba(255, 212, 1, 0.35) 60%);
  padding: 0 2px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 20px;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 8px;
}

.article-body blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  background: rgba(255, 212, 1, 0.1);
  border-left: 4px solid var(--signal-yellow);
  color: var(--brand-black);
  font-size: 16px;
  line-height: 1.8;
  border-radius: 0 8px 8px 0;
}

.article-body blockquote p:last-child {
  margin-bottom: 0;
}

.article-body blockquote .quote-source {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.55);
  font-weight: 500;
}

/* 資訊 box（相關店、事件備註） */
.article-infobox {
  background: #fff;
  border-radius: 10px;
  padding: 20px 24px;
  margin: 32px 0;
  border-top: 3px solid var(--brand-green);
}

.article-infobox .label {
  font-size: 11px;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--brand-green);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.article-infobox .title {
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-black);
  margin: 0 0 6px;
}

.article-infobox .desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.65);
  margin: 0 0 10px;
}

.article-infobox a {
  font-size: 13px;
  color: var(--brand-red);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.05em;
}

.article-infobox a:hover {
  text-decoration: underline;
}

/* 文末 FAQ（GEO 核心） */
.article-faq {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid var(--brand-black);
}

.article-faq-label {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--brand-red);
  font-weight: 700;
  margin-bottom: 10px;
}

.article-faq-heading {
  font-size: clamp(22px, 3.5vw, 28px);
  font-weight: 700;
  color: var(--brand-black);
  margin: 0 0 30px;
}

.article-faq-item {
  background: #fff;
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.article-faq-item summary {
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-black);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: background 0.15s ease;
}

.article-faq-item summary::-webkit-details-marker {
  display: none;
}

.article-faq-item summary::before {
  content: attr(data-q);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-red);
  color: var(--signal-yellow);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
}

.article-faq-item summary::after {
  content: "+";
  margin-left: auto;
  font-size: 22px;
  color: var(--brand-red);
  font-weight: 300;
  line-height: 1;
  transition: transform 0.2s ease;
}

.article-faq-item[open] summary::after {
  transform: rotate(45deg);
}

.article-faq-item summary:hover {
  background: rgba(255, 212, 1, 0.06);
}

.article-faq-answer {
  padding: 0 22px 20px 64px;
  font-size: 14.5px;
  line-height: 1.75;
  color: rgba(0, 0, 0, 0.72);
}

/* 回列表按鈕 */
.article-back {
  margin-top: 60px;
  text-align: center;
}

.article-back a {
  display: inline-block;
  padding: 14px 32px;
  background: var(--brand-black);
  color: var(--signal-yellow);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.article-back a:hover {
  background: var(--brand-red);
  color: #fff;
}


/* =============== § F  響應式 =============== */

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .news-social-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
  }

  .news-filter-pills {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
  }

  .news-pill {
    flex-shrink: 0;
  }

  .article-body h2 {
    margin: 36px 0 14px;
  }

  .article-faq-answer {
    padding-left: 22px;
  }
}

@media print {
  .news-hero,
  .news-filter-section,
  .news-social-cta,
  .article-back,
  .site-header,
  .site-footer {
    display: none;
  }

  .article-wrap {
    background: #fff;
    padding: 0;
  }
}
