/*
 * 新宜蘭民宿網最新消息頁設計樣板
 * 全部自訂選擇器使用 .ib-news- 命名空間，正式併入舊站時避免污染既有 CSS。
 */

.ib-news-demo {
  --ib-news-ink: #22302d;
  --ib-news-muted: #68726f;
  --ib-news-green: #0b7655;
  --ib-news-green-dark: #075740;
  --ib-news-coral: #e85b50;
  --ib-news-blue: #3c8fc2;
  --ib-news-amber: #e99a24;
  --ib-news-paper: #fffdf8;
  --ib-news-line: #dde3df;
  margin: 0;
  color: var(--ib-news-ink);
  background: #fffefb;
  font-family: "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.ib-news-demo *,
.ib-news-demo *::before,
.ib-news-demo *::after {
  box-sizing: border-box;
}

.ib-news-demo img {
  max-width: 100%;
}

.ib-news-demo a,
.ib-news-demo button,
.ib-news-demo input {
  font: inherit;
}

.ib-news-demo a:focus-visible,
.ib-news-demo button:focus-visible,
.ib-news-demo input:focus-visible {
  outline: 3px solid #f2b84b;
  outline-offset: 3px;
}

.ib-news-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ib-news-skip {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  padding: 10px 14px;
  color: #fff;
  background: var(--ib-news-green-dark);
  border-radius: 6px;
  transform: translateY(-160%);
}

.ib-news-skip:focus {
  transform: translateY(0);
}

.ib-news-header {
  position: relative;
  z-index: 30;
  background: rgba(255, 254, 251, .98);
  border-bottom: 1px solid rgba(34, 48, 45, .08);
}

.ib-news-header-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.ib-news-brand {
  display: inline-flex;
  flex: 0 0 auto;
}

.ib-news-brand img {
  display: block;
  width: 190px;
  height: auto;
}

.ib-news-nav {
  margin-left: auto;
  display: flex;
  align-items: stretch;
  gap: 26px;
}

.ib-news-nav a {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #28322f;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.ib-news-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--ib-news-green);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .18s ease;
}

.ib-news-nav a:hover,
.ib-news-nav a.is-active {
  color: var(--ib-news-green);
}

.ib-news-nav a:hover::after,
.ib-news-nav a.is-active::after {
  transform: scaleX(1);
}

.ib-news-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--ib-news-line);
  border-radius: 6px;
  color: var(--ib-news-green-dark);
  background: #fff;
  cursor: pointer;
}

.ib-news-page {
  overflow: hidden;
}

.ib-news-hero {
  position: relative;
  width: min(1440px, calc(100% - 32px));
  height: clamp(220px, 22vw, 320px);
  margin: 18px auto 0;
  overflow: hidden;
  border-radius: 8px;
  background: #e9f5f4;
}

.ib-news-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.ib-news-hero-copy {
  position: relative;
  z-index: 1;
  width: min(680px, 76%);
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #123c34;
  text-align: center;
  text-shadow: 0 2px 0 rgba(255, 255, 255, .75);
}

.ib-news-hero-kicker {
  margin-bottom: 5px;
  color: var(--ib-news-green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.ib-news-hero h1 {
  margin: 0;
  font-family: "Noto Serif TC", "Microsoft JhengHei", serif;
  font-size: clamp(48px, 6.2vw, 82px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0;
}

.ib-news-hero p {
  margin: 14px 0 0;
  color: #34433f;
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 700;
}

.ib-news-content {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 46px;
}

.ib-news-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 22px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.ib-news-filter {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 8px 20px;
  border: 1px solid var(--ib-news-line);
  border-radius: 999px;
  color: #4c5653;
  background: #fff;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.ib-news-filter:hover,
.ib-news-filter.is-active {
  color: #fff;
  background: var(--ib-news-green);
  border-color: var(--ib-news-green);
}

.ib-news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 28px;
  align-items: start;
}

.ib-news-results-head {
  min-height: 34px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--ib-news-muted);
  font-size: 14px;
}

.ib-news-results-head p {
  margin: 0;
  color: var(--ib-news-ink);
  font-size: 18px;
  font-weight: 800;
}

.ib-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ib-news-card {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--ib-news-line);
  border-radius: 8px;
  box-shadow: 0 9px 24px rgba(34, 48, 45, .06);
  transition: transform .18s ease, box-shadow .18s ease;
}

.ib-news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(34, 48, 45, .11);
}

.ib-news-card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef3f0;
}

.ib-news-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .35s ease;
}

.ib-news-card:hover .ib-news-card-media img {
  transform: scale(1.035);
}

.ib-news-card-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--ib-news-green);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .16);
}

.ib-news-card--travel .ib-news-card-badge { background: var(--ib-news-amber); }
.ib-news-card--food .ib-news-card-badge { background: var(--ib-news-coral); }
.ib-news-card--attraction .ib-news-card-badge { background: var(--ib-news-blue); }
.ib-news-card--transport .ib-news-card-badge { background: #64757e; }

.ib-news-card-body {
  padding: 12px 13px 11px;
}

.ib-news-card h2 {
  min-height: 46px;
  margin: 0 0 5px;
  display: -webkit-box;
  overflow: hidden;
  color: var(--ib-news-ink);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ib-news-card h2 a {
  color: inherit;
  text-decoration: none;
}

.ib-news-card h2 a:hover {
  color: var(--ib-news-green);
}

.ib-news-card-summary {
  min-height: 39px;
  margin: 0 0 9px;
  display: -webkit-box;
  overflow: hidden;
  color: #5f6865;
  font-size: 12.5px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ib-news-card-meta {
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #89918e;
  border-top: 1px solid #edf0ee;
  font-size: 11.5px;
}

.ib-news-card-meta time,
.ib-news-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ib-news-empty {
  padding: 64px 24px;
  color: var(--ib-news-muted);
  text-align: center;
  border: 1px dashed #cbd4cf;
  border-radius: 8px;
}

.ib-news-empty i {
  color: var(--ib-news-green);
  font-size: 36px;
}

.ib-news-empty h2 {
  margin: 12px 0 5px;
  color: var(--ib-news-ink);
  font-size: 20px;
}

.ib-news-empty p,
.ib-news-noscript {
  margin: 0;
}

.ib-news-pagination {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ib-news-page-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--ib-news-line);
  border-radius: 6px;
  color: #4d5754;
  background: #fff;
  cursor: pointer;
}

.ib-news-page-button:hover,
.ib-news-page-button.is-active {
  color: #fff;
  background: var(--ib-news-green);
  border-color: var(--ib-news-green);
}

.ib-news-page-button:disabled {
  color: #b1b8b5;
  background: #f3f5f4;
  cursor: not-allowed;
}

.ib-news-sidebar {
  display: grid;
  gap: 20px;
}

.ib-news-side-tool,
.ib-news-bnb-cta,
.ib-news-subscribe {
  padding: 20px;
  border-radius: 8px;
}

.ib-news-side-tool {
  background: #fff;
  border: 1px solid var(--ib-news-line);
}

.ib-news-side-tool h2,
.ib-news-bnb-cta h2,
.ib-news-subscribe h2 {
  margin: 0 0 14px;
  color: var(--ib-news-ink);
  font-family: "Noto Serif TC", "Microsoft JhengHei", serif;
  font-size: 21px;
  line-height: 1.35;
}

.ib-news-category-list {
  display: grid;
}

.ib-news-category-button {
  width: 100%;
  min-height: 48px;
  padding: 8px 2px;
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 8px;
  color: #3e4a46;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #edf0ee;
  text-align: left;
  cursor: pointer;
}

.ib-news-category-button:last-child {
  border-bottom: 0;
}

.ib-news-category-button:hover {
  color: var(--ib-news-green);
}

.ib-news-category-button i {
  color: var(--ib-news-green);
  font-size: 18px;
  text-align: center;
}

.ib-news-category-count {
  min-width: 28px;
  min-height: 28px;
  padding: 3px 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--ib-news-green);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.ib-news-bnb-cta {
  background: #fff1ed;
  border: 1px solid #f7d5cf;
}

.ib-news-bnb-cta span {
  color: var(--ib-news-coral);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ib-news-bnb-cta h2 {
  margin: 5px 0;
}

.ib-news-bnb-cta p {
  margin: 0 0 14px;
  color: #665d5a;
  font-size: 13px;
}

.ib-news-bnb-cta a {
  min-height: 44px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  background: var(--ib-news-coral);
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.ib-news-popular-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.ib-news-popular-list li {
  min-width: 0;
  padding: 10px 0;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #edf0ee;
}

.ib-news-popular-list li:last-child {
  border-bottom: 0;
}

.ib-news-popular-rank {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--ib-news-amber);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
}

.ib-news-popular-list li:nth-child(n+4) .ib-news-popular-rank {
  color: #5a6360;
  background: #edf0ee;
}

.ib-news-popular-list a {
  min-width: 0;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 9px;
  color: var(--ib-news-ink);
  text-decoration: none;
}

.ib-news-popular-list img {
  width: 66px;
  height: 52px;
  display: block;
  object-fit: cover;
  border-radius: 6px;
}

.ib-news-popular-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ib-news-popular-copy strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 12.5px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ib-news-popular-copy time {
  margin-top: 2px;
  color: #939a97;
  font-size: 11px;
}

.ib-news-subscribe {
  position: relative;
  overflow: hidden;
  background: #e5f5ef;
  border: 1px solid #cde7dc;
}

.ib-news-subscribe > i {
  position: absolute;
  right: 18px;
  top: 18px;
  color: rgba(11, 118, 85, .2);
  font-size: 42px;
}

.ib-news-subscribe h2 {
  margin-bottom: 5px;
  padding-right: 48px;
}

.ib-news-subscribe > p {
  margin: 0 0 14px;
  color: #5c6964;
  font-size: 13px;
}

.ib-news-subscribe-field {
  padding: 4px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px;
  background: #fff;
  border: 1px solid #c9ded5;
  border-radius: 999px;
}

.ib-news-subscribe-field input {
  min-width: 0;
  height: 40px;
  padding: 0 10px;
  color: var(--ib-news-ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 13px;
}

.ib-news-subscribe-field button {
  min-width: 64px;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--ib-news-green);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.ib-news-form-message {
  min-height: 20px;
  margin: 8px 3px 0;
  font-size: 12px;
}

.ib-news-form-message.is-error { color: #a8332e; }
.ib-news-form-message.is-success { color: var(--ib-news-green-dark); }

.ib-news-service-band {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 26px max(24px, calc((100% - 1180px) / 2));
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 28px;
  align-items: center;
  background: #fff5e7;
  border-top: 1px solid #f1e2cb;
}

.ib-news-service-intro {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.ib-news-service-intro > i {
  color: #826347;
  font-size: 44px;
}

.ib-news-service-intro h2,
.ib-news-service-intro p {
  margin: 0;
}

.ib-news-service-intro h2 {
  font-family: "Noto Serif TC", "Microsoft JhengHei", serif;
  font-size: 21px;
}

.ib-news-service-intro p {
  color: #70675f;
  font-size: 13px;
}

.ib-news-service-intro a {
  min-height: 44px;
  padding: 8px 15px;
  display: inline-flex;
  align-items: center;
  color: #fff;
  background: var(--ib-news-green);
  border-radius: 999px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}

.ib-news-service-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
}

.ib-news-service-list li {
  min-width: 0;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 8px;
  align-items: center;
  border-left: 1px solid #e7d8c3;
}

.ib-news-service-list i {
  grid-row: 1 / span 2;
  color: var(--ib-news-green);
  font-size: 28px;
}

.ib-news-service-list strong {
  font-size: 14px;
}

.ib-news-service-list span {
  color: #7a7169;
  font-size: 11px;
}

.ib-news-demo-footer {
  min-height: 82px;
  padding: 18px max(24px, calc((100% - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: rgba(255, 255, 255, .78);
  background: #174b3e;
  font-size: 13px;
}

.ib-news-demo-footer p {
  margin: 0;
}

.ib-news-demo-footer nav {
  display: flex;
  gap: 18px;
}

.ib-news-demo-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
}

.ib-news-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 25;
  width: 54px;
  height: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--ib-news-green-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .18s ease, transform .18s ease;
  cursor: pointer;
}

.ib-news-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.ib-news-top i {
  font-size: 16px;
  line-height: 1;
}

.ib-news-top span {
  font-size: 10px;
  line-height: 1.1;
}

@media (max-width: 1120px) {
  .ib-news-header-inner {
    gap: 18px;
  }

  .ib-news-nav {
    gap: 16px;
  }

  .ib-news-nav a {
    font-size: 14px;
  }

  .ib-news-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 22px;
  }

  .ib-news-service-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .ib-news-header-inner {
    min-height: 76px;
  }

  .ib-news-brand img {
    width: 164px;
  }

  .ib-news-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .ib-news-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(100% + 1px);
    margin: 0;
    padding: 10px;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 10px;
    background: #fff;
    border: 1px solid var(--ib-news-line);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 16px 28px rgba(34, 48, 45, .14);
  }

  .ib-news-nav.is-open {
    display: grid;
  }

  .ib-news-nav a {
    padding: 6px 10px;
  }

  .ib-news-layout {
    grid-template-columns: 1fr;
  }

  .ib-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ib-news-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ib-news-service-intro {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .ib-news-service-intro a {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .ib-news-demo {
    font-size: 15px;
  }

  .ib-news-header-inner,
  .ib-news-content {
    width: min(100% - 28px, 1180px);
  }

  .ib-news-hero {
    width: 100%;
    height: 250px;
    margin-top: 0;
    border-radius: 0;
  }

  .ib-news-hero-image {
    object-position: center;
  }

  .ib-news-hero-copy {
    width: 84%;
  }

  .ib-news-hero-kicker {
    font-size: 11px;
  }

  .ib-news-hero h1 {
    font-size: 43px;
  }

  .ib-news-hero p {
    max-width: 260px;
    margin-top: 9px;
    font-size: 15px;
  }

  .ib-news-content {
    padding: 24px 0 34px;
  }

  .ib-news-filter-bar {
    width: calc(100% + 14px);
    padding-bottom: 20px;
  }

  .ib-news-filter {
    padding-inline: 16px;
  }

  .ib-news-grid,
  .ib-news-sidebar {
    grid-template-columns: 1fr;
  }

  .ib-news-card h2,
  .ib-news-card-summary {
    min-height: 0;
  }

  .ib-news-service-band {
    padding: 24px 18px;
  }

  .ib-news-service-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ib-news-service-list li {
    min-height: 48px;
    padding: 0;
    border-left: 0;
  }

  .ib-news-demo-footer {
    padding: 20px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    text-align: center;
  }

  .ib-news-demo-footer nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .ib-news-top {
    right: 14px;
    bottom: 14px;
  }
}

/* ── 正式整合補充(2026-09-03):全站共用 Header/Footer 下的防護、連結化元件、內頁文章 ── */
.ib-news-page {
  text-align: left;
}

.ib-news-page h1,
.ib-news-page h2,
.ib-news-page h3 {
  position: static;
  opacity: 1;
  visibility: visible;
  text-indent: 0;
}

.ib-news-page a {
  display: inline;
}

.ib-news-page a:hover {
  text-decoration: none;
}

.ib-news-page .ib-news-card-media,
.ib-news-page .ib-news-popular-list a,
.ib-news-page .ib-news-category-button {
  display: grid;
}

.ib-news-page .ib-news-card-media {
  display: block;
}

.ib-news-page .ib-news-filter,
.ib-news-page .ib-news-page-button,
.ib-news-page .ib-news-bnb-cta a,
.ib-news-page .ib-news-service-intro a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.ib-news-page .ib-news-filter,
.ib-news-page .ib-news-category-button {
  text-decoration: none;
}

.ib-news-category-button.is-active {
  color: var(--ib-news-green);
  font-weight: 700;
}

.ib-news-page-button.is-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #b1b8b5;
  background: #f3f5f4;
  cursor: not-allowed;
}

.ib-news-results-head a {
  color: var(--ib-news-green);
  font-weight: 700;
  text-decoration: none;
}

/* 內頁 */
.ib-news-crumb {
  margin: 20px 0 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--ib-news-muted);
  font-size: 13.5px;
}

.ib-news-crumb a {
  color: var(--ib-news-green);
  text-decoration: none;
}

.ib-news-article {
  min-width: 0;
  padding: 28px 30px 26px;
  background: #fff;
  border: 1px solid var(--ib-news-line);
  border-radius: 8px;
  box-shadow: 0 9px 24px rgba(34, 48, 45, .06);
}

.ib-news-article-head .ib-news-card-badge {
  position: static;
  margin-bottom: 14px;
  box-shadow: none;
}

.ib-news-article h1 {
  margin: 0 0 12px;
  font-family: "Noto Serif TC", "Microsoft JhengHei", serif;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 900;
  line-height: 1.4;
  color: var(--ib-news-ink);
}

.ib-news-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid #edf0ee;
  color: #89918e;
  font-size: 13px;
}

.ib-news-article-meta time,
.ib-news-article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ib-news-pin {
  color: var(--ib-news-coral);
  font-weight: 700;
}

.ib-news-article-cover {
  margin: 0 0 22px;
  overflow: hidden;
  border-radius: 8px;
  background: #eef3f0;
}

.ib-news-article-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.ib-news-article-summary {
  margin: 0 0 26px;
  padding: 16px 20px;
  background: #e5f5ef;
  border-left: 4px solid var(--ib-news-green);
  border-radius: 0 8px 8px 0;
  color: #2c433c;
  font-size: 15.5px;
  line-height: 1.8;
}

.ib-news-article-body {
  color: #34403d;
  font-size: 16px;
  line-height: 1.95;
}

.ib-news-article-body p {
  margin: 0 0 1.1em;
}

.ib-news-article-body h2,
.ib-news-article-body h3,
.ib-news-article-body h4 {
  margin: 1.8em 0 .7em;
  color: var(--ib-news-ink);
  font-family: "Noto Serif TC", "Microsoft JhengHei", serif;
  line-height: 1.4;
}

.ib-news-article-body h2 {
  padding-left: 12px;
  border-left: 4px solid var(--ib-news-green);
  font-size: 22px;
}

.ib-news-article-body h3 {
  font-size: 19px;
}

.ib-news-article-body h4 {
  font-size: 17px;
}

.ib-news-article-body ul,
.ib-news-article-body ol {
  margin: 0 0 1.1em;
  padding-left: 1.6em;
}

.ib-news-article-body li {
  margin-bottom: .35em;
}

.ib-news-article-body a {
  color: var(--ib-news-green);
  text-decoration: underline;
}

.ib-news-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.ib-news-article-body blockquote {
  margin: 1.2em 0;
  padding: 12px 18px;
  background: #f6f8f7;
  border-left: 3px solid var(--ib-news-amber);
  color: #4a5a54;
}

.ib-news-article-body table {
  width: 100%;
  margin: 1.2em 0;
  border-collapse: collapse;
  font-size: 14.5px;
}

.ib-news-article-body th,
.ib-news-article-body td {
  padding: 8px 12px;
  border: 1px solid var(--ib-news-line);
  text-align: left;
}

.ib-news-article-body th {
  background: #f1f5f3;
}

.ib-news-article-body figure {
  margin: 1.2em 0;
}

.ib-news-article-body figcaption {
  margin-top: 6px;
  color: var(--ib-news-muted);
  font-size: 13px;
  text-align: center;
}

.ib-news-article-foot {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #edf0ee;
}

.ib-news-back {
  min-height: 44px;
  padding: 8px 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ib-news-green);
  background: #fff;
  border: 1px solid var(--ib-news-green);
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.ib-news-back:hover {
  color: #fff;
  background: var(--ib-news-green);
}

.ib-news-related {
  margin-top: 34px;
}

@media (max-width: 620px) {
  /* 八字 H1「宜蘭民宿最新消息」在 390px 會折行並被裁切,縮字並禁止換行 */
  .ib-news-hero h1 {
    font-size: 32px;
    white-space: nowrap;
    letter-spacing: 0;
  }

  .ib-news-hero p {
    max-width: 300px;
    font-size: 14px;
  }

  .ib-news-article {
    padding: 20px 16px;
  }

  .ib-news-crumb {
    margin-top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ib-news-demo *,
  .ib-news-demo *::before,
  .ib-news-demo *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
