/* ─── ARTICLE PAGE ─── */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 400;
  height: 3px;
  background: var(--c-bilingual);
  width: 0%;
  transition: width 0.1s linear;
}
.breadcrumb {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--muted);
}
.breadcrumb-inner a {
  color: var(--muted);
  transition: color 0.2s;
}
.breadcrumb-inner a:hover {
  color: var(--navy);
}
.breadcrumb-inner .sep {
  color: #ccc;
  font-size: 0.9em;
}
.breadcrumb-inner .current {
  color: var(--navy);
  font-weight: 500;
}
.article-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  padding: 0 0 48px;
  align-items: start;
}
.article-main {
  min-width: 0;
}
.article-cat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--earth-yellow-dark);
  margin-top: 40px;
  margin-bottom: 14px;
}
.article-cat::before {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
}
.article-title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  color: #1a1a1a;
}
.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.meta-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.author-block {
  display: flex;
  align-items: center;
  gap: 10px;
}
.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.author-name {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--muted);
}
.author-role {
  font-size: 18px;
  color: var(--muted);
}
.meta-info {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 16px;
  border-left: 1px solid var(--border);
}
.meta-info span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.meta-info svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
}
.share-row-desktop {
  display: flex;
  align-items: center;
  gap: 8px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  transition:
    border-color 0.2s,
    color 0.2s;
}
.share-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}
.share-btn svg {
  width: 20px;
  height: 20px;
}
.share-btn svg path {
  fill: currentColor;
  stroke: none;
}
.share-row-mobile {
  display: none;
}
.article-img {
  width: 100%;
  overflow: hidden;
  margin-bottom: 24px;
}
.article-img > figure > picture {
  display: block;
  max-width: var(--pic-width, 100%);
  width: 100%;
  margin: 0 auto;
}
.article-img-caption {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
  padding-left: 12px;
  border-left: 1px solid var(--border);
}
.article-body {
  font-size: 18px;
  line-height: 1.9;
  color: var(--text);
}
.article-body p {
  margin-bottom: 1.6rem;
}
.article-body p > a {
  color: #972018;
  text-decoration: underline;
}
.article-body h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  margin: 2em 0 0.8em;
  color: var(--red, #c4501e);
}
.pull-quote {
  margin: 2.4em 0;
  padding: 24px 28px;
  background: var(--bg2);
  border-left: 1px solid var(--c-bilingual);
  border-radius: 0 4px 4px 0;
}
.pull-quote p {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--navy);
  margin-bottom: 0;
  font-style: normal;
}
.pull-quote cite {
  display: block;
  margin-top: 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--muted);
  font-style: italic;
  letter-spacing: 0.05em;
}
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.tag-label {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--muted);
  margin-right: 4px;
  align-self: center;
}
.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}
.sidebar-tag {
  display: inline-block;
  padding: 3px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--muted);
  background: #fff;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.sidebar-tag:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.related-sec {
  background: var(--bg2);
  padding: var(--section-gap) 0 0;
  border-top: 1px solid var(--navy);
}
.related-sec .wrap {
  padding-bottom: var(--section-gap);
}
.related-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 20px;
}
.rel-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.rel-card:hover {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
}
.rel-card:hover .rel-title {
  color: var(--red);
}
.rel-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.rel-body {
  padding: 16px;
}
.rel-cat {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--c-finance);
}
.rel-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.rel-meta {
  font-size: 14px;
  color: var(--muted);
}
.back-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 42px;
  height: 42px;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  transition: background 0.2s;
}
.back-top:hover {
  background: var(--red);
}
.back-top svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
}
.youtube {
  margin: 40px 0;
}
.youtube-des {
  color: var(--muted);
  font-size: 16px;
  margin: 8px 0 0;
}
.iframe-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
}
.iframe-wrapper > iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.article-top-ad-pc {
  width: 970px;
  height: 250px;
  margin: 0 auto;
}
.article-inner-ad-mb {
  display: none;
  width: 300px;
  height: 250px;
  margin: 0 auto 24px;
}

@media screen and (max-width: 1024px) {
  .article-top-ad-pc {
    display: none;
  }
}

@media (min-width: 769px) and (max-width: 1200px) {
  .article-wrap {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .article-meta {
    flex-wrap: wrap;
    gap: 12px;
  }
  .share-row-desktop {
    flex-wrap: wrap;
  }
  .related-cards {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  /* Article mobile */
  .breadcrumb {
    display: none;
  }
  .article-wrap {
    display: block;
    padding: 0 0 var(--section-gap-sm);
  }
  .article-cat {
    margin: 20px 0 10px;
    font-size: 16px;
  }
  .article-title {
    font-size: 22px;
    line-height: 1.4;
    margin: 0 0 12px;
  }
  .article-meta {
    margin: 0;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 12px;
  }
  .meta-left {
    gap: 10px;
  }
  .author-avatar {
    width: 36px;
    height: 36px;
  }
  .author-role {
    font-size: 15px;
  }
  .meta-info {
    padding-left: 12px;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 14px;
  }
  /* 手機：分享鈕獨立一行、靠右對齊 */
  .article-main .article-meta .share-row-desktop {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
    flex-basis: 100%;
    margin-left: 0;
    justify-content: flex-end;
  }
  .share-row-mobile {
    display: none !important;
  }
  .article-img {
    border-radius: 0;
    margin-bottom: 0;
  }
  .article-img-caption {
    margin: 8px 0 20px;
    border-left-width: 1px;
    font-size: 15px;
  }
  .article-body {
    font-size: 18px;
    padding: 20px 0 0;
  }
  .article-body h2 {
    font-size: 19px;
  }
  .pull-quote {
    padding: 18px 20px;
  }
  .pull-quote p {
    font-size: 17px;
  }
  .pull-quote cite {
    font-size: 16px;
  }
  .article-tags {
    margin: 0 0 4px;
    padding: 18px 0 20px;
  }
  .tag-label {
    font-size: 14px !important;
    line-height: 1.6;
  }
  .tag {
    font-size: 14px !important;
    line-height: 1.6;
    padding: 3px 12px;
  }
  .related-sec {
    padding: 0;
  }
  .related-sec .wrap {
    padding: 0 0 var(--section-gap-sm);
  }
  .related-sec .sec-hd {
    padding: 16px 16px 10px;
    margin-bottom: 0;
  }
  .related-cards {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 12px;
    padding: 14px 16px;
    margin-top: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .related-cards::-webkit-scrollbar {
    display: none;
  }
  .rel-card {
    flex-shrink: 0;
    width: 210px;
    border-radius: 4px;
  }
  .rel-img {
    aspect-ratio: auto;
    height: 120px;
  }
  .rel-body {
    padding: 12px;
  }
  .rel-cat {
    font-size: 16px;
    margin-bottom: 6px;
  }
  .rel-title {
    font-size: 16px;
    margin-bottom: 5px;
  }
  .rel-meta {
    font-size: 14px;
  }
  .back-top {
    bottom: 76px;
    right: 16px;
    width: 38px;
    height: 38px;
  }
  .sidebar-tag {
    font-size: 15px !important;
  }
}

@media (max-width: 576px) {
  .article-inner-ad-mb {
    display: block;
  }
}
