/**
 * 對照 Scamadviser 首頁截圖：淺色幾何底紋、頂欄、白卡片搜尋、區塊與頁腳
 * 主色參考截圖與官網：#C8102E
 */
:root {
  --sa-brand-red: #c8102e;
  --sa-brand-red-hover: #a00d25;
  --sa-link-blue: #083062;
  --sa-text: #333333;
  --sa-text-muted: #5c5c5c;
  --sa-line: #e8eaed;
  --sa-bg-alt: #f8f9fa;
  --sa-footer-top: #333333;
  --sa-footer-bottom: #c8102e;
}

/* 淺色幾何紋（近似截圖背景） */
.sa-page-pattern {
  background-color: var(--sa-bg-alt);
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 249, 250, 1) 40%, rgba(255, 255, 255, 0.95) 100%),
    repeating-linear-gradient(-12deg, transparent, transparent 24px, rgba(0, 0, 0, 0.018) 24px, rgba(0, 0, 0, 0.018) 25px),
    repeating-linear-gradient(78deg, transparent, transparent 32px, rgba(0, 0, 0, 0.012) 32px, rgba(0, 0, 0, 0.012) 33px);
}

body.sa-body {
  font-family: Inter, Roboto, "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: var(--sa-text);
  margin: 0;
}

/* ========== 頂欄 V2 ========== */
.sa-header--v2 {
  background: #fff !important;
  border-bottom: 1px solid var(--sa-line) !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.sa-nav-toggle {
  display: none;
}

.sa-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 0;
  min-height: 64px;
  position: relative;
}

.sa-logo--wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.sa-logo__wordmark {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #111 !important;
}

.sa-header__collapse {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  gap: 8px 20px;
  flex-wrap: wrap;
}

.sa-header__nav {
  display: flex;
  align-items: center;
  gap: 6px 22px;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

.sa-header__navlink {
  color: var(--sa-text) !important;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
}

.sa-header__navlink:hover {
  color: var(--sa-brand-red) !important;
}

.sa-header__actions {
  display: flex;
  align-items: center;
  gap: 10px 14px;
  flex-wrap: wrap;
}

.sa-lang--header {
  border-color: var(--sa-line);
}

.sa-header__iconbtn {
  color: var(--sa-text);
  padding: 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sa-header__iconbtn:hover {
  background: var(--sa-bg-alt);
  color: var(--sa-brand-red);
}

.sa-header__textlink {
  color: var(--sa-link-blue) !important;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none !important;
}

.sa-header__textlink:hover {
  text-decoration: underline !important;
}

.btn-solid--compact {
  padding: 0.55em 1em !important;
  font-size: 0.88rem !important;
  border-radius: 6px;
  text-transform: none !important;
}

@media (max-width: 960px) {
  .sa-nav-toggle {
    display: inline-flex !important;
  }
  .sa-header__collapse {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    order: 3;
    padding: 12px 0 8px;
    border-top: 1px solid var(--sa-line);
    background: #fff;
  }
  .sa-header__collapse.is-open {
    display: flex;
  }
  .sa-header__nav {
    flex-direction: column;
    align-items: flex-start;
  }
  .sa-header__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .sa-header__cta {
    text-align: center;
  }
}

.sa-lang__btn.is-active {
  background: var(--sa-brand-red) !important;
  border-color: transparent !important;
  color: #fff !important;
}

/* ========== Hero 白卡片 ========== */
.sa-home-hero {
  padding: 48px 0 56px;
  text-align: center;
}

.sa-home-hero__title {
  margin: 0 auto 12px;
  max-width: 20ch;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--sa-text);
}

.sa-home-hero__subtitle {
  margin: 0 auto 32px;
  max-width: 46ch;
  font-size: 1.05rem;
  color: var(--sa-text-muted);
  line-height: 1.55;
}

.sa-home-hero__grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
  align-items: start;
  text-align: left;
}

@media (max-width: 880px) {
  .sa-home-hero__grid {
    grid-template-columns: 1fr;
  }
}

.sa-search-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: 24px 28px 28px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.sa-search-card__label {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 14px;
  color: var(--sa-text);
}

.sa-search-card__field {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--sa-line);
  border-radius: 8px;
  padding: 0 14px;
  margin-bottom: 16px;
  background: #fafbfc;
}

.sa-search-card__icon {
  color: var(--sa-text-muted);
  flex-shrink: 0;
}

.sa-search-card__input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 0;
  font-size: 1rem;
  outline: none;
  min-width: 0;
  font-family: inherit;
}

.sa-search-card__submit {
  width: 100%;
  border-radius: 8px !important;
  padding: 14px !important;
  text-transform: none !important;
  font-size: 1.05rem !important;
}

.sa-home-trending {
  margin: 14px 0 0;
  font-size: 0.88rem;
  color: var(--sa-text-muted);
}

.sa-home-trending a {
  color: var(--sa-link-blue);
  font-weight: 600;
}

.sa-home-trending a:hover {
  color: var(--sa-brand-red);
}

.sa-side-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  padding: 22px 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  text-align: center;
}

.sa-side-card__title {
  margin: 0 0 16px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--sa-text);
}

/* ========== Romance 橫幅 ========== */
.sa-promo-banner {
  padding: 0 0 40px;
}

.sa-promo-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 24px;
  border-radius: 12px;
  background: linear-gradient(90deg, #ffe8ec 0%, #fff5f7 45%, #fff 100%);
  border: 1px solid rgba(200, 16, 46, 0.12);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.sa-promo-banner__left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sa-promo-banner__heart {
  color: var(--sa-brand-red);
  font-size: 1.5rem;
}

.sa-promo-banner__left strong {
  display: block;
  font-size: 0.95rem;
  color: var(--sa-text);
}

.sa-promo-banner__sub {
  display: block;
  font-size: 0.85rem;
  color: var(--sa-text-muted);
  margin-top: 2px;
}

.sa-promo-banner__cta {
  display: inline-block;
  padding: 10px 22px;
  background: var(--sa-brand-red);
  color: #fff !important;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  border-radius: 6px;
  text-decoration: none !important;
}

.sa-promo-banner__cta:hover {
  background: var(--sa-brand-red-hover);
}

/* ========== 區塊通用 ========== */
.sa-section {
  padding: 56px 0;
}

.sa-section--alt {
  background: #fff;
  border-top: 1px solid var(--sa-line);
  border-bottom: 1px solid var(--sa-line);
}

.sa-section__h2 {
  text-align: center;
  font-size: 1.65rem;
  font-weight: 800;
  margin: 0 0 32px;
  color: var(--sa-text);
}

.sa-section__h2--left {
  text-align: left;
}

.sa-section__btnwrap {
  text-align: center;
  margin-top: 8px;
}

/* ========== Scam carousel ========== */
.sa-scam-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 1100px;
  margin: 0 auto;
}

.sa-scam-carousel__viewport {
  overflow: hidden;
  flex: 1;
}

.sa-scam-carousel__track {
  display: flex;
  gap: 18px;
  transition: transform 0.35s ease;
}

.sa-scam-card {
  flex: 0 0 calc(25% - 14px);
  min-width: 220px;
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--sa-line);
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .sa-scam-card {
    flex: 0 0 calc(50% - 9px);
  }
}

@media (max-width: 560px) {
  .sa-scam-card {
    flex: 0 0 100%;
  }
}

.sa-scam-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sa-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--sa-brand-red);
  margin-bottom: 10px;
}

.sa-scam-card__meta {
  font-size: 0.82rem;
  color: var(--sa-text-muted);
  margin-bottom: 8px;
}

.sa-scam-card__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--sa-text);
}

.sa-scam-carousel__arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--sa-line);
  border-radius: 50%;
  background: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--sa-text-muted);
}

.sa-scam-carousel__arrow:hover {
  border-color: var(--sa-brand-red);
  color: var(--sa-brand-red);
}

/* ========== 分類 8 格 ========== */
.sa-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .sa-cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.sa-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 12px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--sa-line);
  text-decoration: none !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s, transform 0.2s;
}

.sa-cat-item:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.sa-cat-item__icon {
  width: 40px;
  height: 40px;
  border: 2px solid var(--sa-brand-red);
  border-radius: 8px;
  margin-bottom: 10px;
  opacity: 0.9;
}

.sa-cat-item__label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--sa-brand-red);
}

/* ========== 統計紅條 ========== */
.sa-stats-bar {
  padding: 0 0 48px;
}

.sa-stats-bar__grid {
  display: flex;
  flex-wrap: wrap;
  background: var(--sa-brand-red);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(200, 16, 46, 0.35);
}

.sa-stats-bar__cell {
  flex: 1 1 16.66%;
  min-width: 140px;
  padding: 22px 12px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.35);
  box-sizing: border-box;
}

.sa-stats-bar__cell:last-child {
  border-right: none;
}

.sa-stats-bar__val {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.sa-stats-bar__lbl {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.92);
  margin-top: 6px;
}

@media (max-width: 720px) {
  .sa-stats-bar__cell {
    flex: 1 1 50%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  }
}

/* ========== 三欄趨勢 ========== */
.sa-trends-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 960px) {
  .sa-trends-grid {
    grid-template-columns: 1fr;
  }
}

.sa-trends-col__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--sa-link-blue);
}

.sa-trust-widget {
  background: #fff;
  border: 1px solid var(--sa-line);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.sa-trust-widget__gauge {
  position: relative;
  width: 180px;
  height: 90px;
  margin: 0 auto 12px;
}

.sa-trust-widget__arc {
  position: absolute;
  inset: 0;
  border-radius: 180px 180px 0 0;
  background: conic-gradient(from 180deg at 50% 100%, #c8102e 0deg, #f5a623 90deg, #2eac6a 180deg);
  mask: radial-gradient(circle at 50% 100%, transparent 55%, #000 56%);
  -webkit-mask: radial-gradient(circle at 50% 100%, transparent 55%, #000 56%);
}

.sa-trust-widget__score {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  font-weight: 800;
  color: var(--sa-text);
}

.sa-trust-widget__cap {
  font-size: 0.88rem;
  color: var(--sa-text-muted);
  margin: 0 0 14px;
}

.sa-mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sa-mini-list li + li {
  margin-top: 12px;
}

.sa-mini-list__link {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-decoration: none !important;
  color: inherit;
}

.sa-mini-list__thumb {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  background-color: var(--sa-bg-alt);
}

.sa-mini-list__thumb--ph {
  background: linear-gradient(135deg, #e8ecf0, #dde3ea);
}

.sa-mini-list__t {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--sa-text);
}

.sa-mini-list__link:hover .sa-mini-list__t {
  color: var(--sa-brand-red);
}

.sa-mini-list__d {
  display: block;
  font-size: 0.78rem;
  color: var(--sa-text-muted);
  margin-top: 4px;
}

/* ========== 使命 / 媒體 ========== */
.sa-mission {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 32px;
  align-items: center;
  padding-bottom: 32px;
}

@media (max-width: 640px) {
  .sa-mission {
    grid-template-columns: 1fr;
  }
}

.sa-mission__text p {
  margin: 0;
  line-height: 1.65;
  color: var(--sa-text-muted);
}

.sa-mission__visual {
  display: flex;
  justify-content: center;
}

.sa-media-strip {
  text-align: center;
  padding: 24px 0 8px;
  border-top: 1px solid var(--sa-line);
}

.sa-media-strip__label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sa-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 16px 0 8px;
}

.sa-media-strip__logos {
  font-size: 0.95rem;
  color: #888;
  margin-bottom: 8px;
}

/* ========== 資料 / 訂閱 ========== */
.sa-data-row {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 24px;
  align-items: center;
  padding-bottom: 40px;
}

.sa-data-row__art {
  height: 100px;
  border-radius: 8px;
  background: linear-gradient(160deg, #083062, #0a4a8c);
  opacity: 0.85;
}

.sa-app-newsletter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--sa-line);
}

@media (max-width: 720px) {
  .sa-data-row {
    grid-template-columns: 1fr;
  }
  .sa-app-newsletter {
    grid-template-columns: 1fr;
  }
}

.sa-app-banner {
  background: linear-gradient(90deg, #c8102e, #e6a01a);
  color: #fff;
  padding: 20px 22px;
  border-radius: 10px;
  font-size: 1.05rem;
}

.sa-newsletter__title {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.sa-newsletter__form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sa-newsletter__input {
  flex: 1;
  min-width: 180px;
  padding: 12px 14px;
  border: 1px solid var(--sa-line);
  border-radius: 8px;
  font-size: 1rem;
}

/* ========== 按鈕 & tile（沿用） ========== */
.btn-solid--red {
  background: var(--sa-brand-red);
  color: #fff !important;
  border: none;
  box-sizing: border-box;
  cursor: pointer;
  display: inline-block;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  outline: none;
  padding: 0.65em 1.2em;
  text-align: center;
  text-decoration: none !important;
  transition: background-color 0.15s ease;
}

.btn-solid--red:hover,
.btn-solid--red:active {
  background: var(--sa-brand-red-hover);
  color: #fff !important;
}

.btn--wide {
  display: block;
  width: 100%;
}

.home-block {
  padding: 48px 0 72px;
  background: var(--sa-bg-alt);
}

.home-block__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--sa-text);
  margin: 0 0 24px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -12px;
}

.col-12 {
  width: 100%;
  padding: 0 12px;
  box-sizing: border-box;
}

@media screen and (min-width: 640px) {
  .col-phablet-6 {
    width: 50%;
  }
}

.tile--bottom {
  margin-bottom: 24px;
}

.tile {
  height: 100%;
}

.tile__link {
  color: var(--sa-text-muted);
  display: block;
  height: 100%;
  text-decoration: none;
}

.tile-link__hover:hover .tile__body {
  background-color: rgba(200, 16, 46, 0.06);
  transition: background-color 0.2s ease;
}

.tile__body {
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  height: 100%;
  padding: 22px;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid var(--sa-line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tile-header__title {
  color: var(--sa-text);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.35;
}

.tile__excerpt {
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 16px;
  font-size: 0.92rem;
  line-height: 1.5;
  flex: 1;
}

.tile__link:hover .tile-header__title {
  color: var(--sa-brand-red);
}

.mb-0 {
  margin-bottom: 0;
}
.mb-25 {
  margin-bottom: 20px;
}
.h-100 {
  height: 100%;
}

.btn__link div {
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
}

.text-link--blue {
  color: var(--sa-link-blue);
}

/* ========== 頁腳 ========== */
.footer-top {
  background-color: var(--sa-footer-top);
  color: #fff;
  padding: 44px 0 40px;
}

.footer-top__grid {
  display: grid;
  grid-template-columns: 1.1fr repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 900px) {
  .footer-top__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .footer-top__grid {
    grid-template-columns: 1fr;
  }
}

.footer-top a {
  color: #ddd !important;
  display: block;
  padding: 5px 0;
  font-size: 0.92rem;
  text-decoration: none !important;
}

.footer-top a:hover {
  color: #fff !important;
}

.footer-top__title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: #fff;
}

.footer-top__text {
  margin: 0;
  line-height: 1.6;
  opacity: 0.88;
  font-size: 0.92rem;
}

.footer-bottom {
  background: var(--sa-footer-bottom);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  padding: 14px 16px;
  font-size: 0.85rem;
}

.footer-bottom__inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

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

.footer-bottom__social a {
  color: #fff !important;
  opacity: 0.95;
  font-size: 1.1rem;
  text-decoration: none !important;
}

.footer-bottom__gasa {
  font-size: 0.78rem;
  opacity: 0.9;
}

/* reveal */
.sa-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.sa-reveal.is-visible {
  opacity: 1;
  transform: none;
}
