:root {
    --brand-navy: #0f3f6b;
    --brand-blue: #1c5d92;
    --brand-gold: #d6aa43;
    --brand-berry: #92256f;
    --ink: #1f2b36;
    --muted: #617182;
    --line: rgba(18, 54, 86, 0.12);
    --paper: #ffffff;
    --paper-soft: rgba(255, 255, 255, 0.82);
    --surface: #f4f6f9;
    --shadow-lg: 0 22px 60px rgba(17, 41, 65, 0.14);
    --shadow-md: 0 14px 30px rgba(17, 41, 65, 0.1);
    --shadow-sm: 0 8px 18px rgba(17, 41, 65, 0.08);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

html,
body {
    margin: 0;
    padding: 0;
    font-size: 16px;
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    color: var(--ink);
    line-height: 1.7;
    font-family: "Microsoft JhengHei", "Noto Sans TC", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(214, 170, 67, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(146, 37, 111, 0.12), transparent 24%),
        linear-gradient(180deg, #f9fbfd 0%, #eef2f7 100%);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--brand-blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.page {
    overflow: hidden;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.topbar {
    box-shadow:
        inset 0 6px 0 var(--brand-berry),
        inset 0 10px 0 #ffffff,
        inset 0 14px 0 var(--brand-gold);
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 20px 0 8px;
}

.top-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
}

.top-links a {
    color: var(--brand-navy);
    font-size: 0.98rem;
    font-weight: 600;
}

.topbar-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(214, 170, 67, 0.16);
    color: #7f5d0d;
    font-weight: 700;
}

.meta-text {
    color: var(--muted);
    font-size: 0.95rem;
}

.header {
    padding: 6px 0 12px;
}

.header-card {
    position: relative;
    display: block;
    padding: 0;
    border-radius: 0;
    background:
        linear-gradient(135deg, rgba(15, 63, 107, 0.96) 0%, rgba(27, 93, 146, 0.92) 52%, rgba(146, 37, 111, 0.86) 100%);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.header-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 82% 16%, rgba(255, 255, 255, 0.16), transparent 22%),
        linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.header-copy,
.header-visual {
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-title {
    margin: 0;
    color: #ffffff;
    line-height: 1.2;
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-family: "Palatino Linotype", "Noto Serif TC", serif;
}

.site-summary {
    max-width: 42rem;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
}

.header-actions,
.headline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}

.primary-action,
.headline-more,
.btn-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #f2cb77 0%, #d8a338 100%);
    color: #35270e;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(214, 170, 67, 0.28);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-action:hover,
.headline-more:hover,
.btn-search:hover {
    transform: translateY(-1px);
    text-decoration: none;
    box-shadow: 0 16px 30px rgba(214, 170, 67, 0.32);
}

.secondary-action,
.headline-subaction,
.section-link,
.news-row-link,
.detail-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    font-weight: 700;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.secondary-action:hover,
.headline-subaction:hover,
.section-link:hover,
.news-row-link:hover,
.detail-back-link:hover {
    text-decoration: none;
    background: rgba(255, 255, 255, 0.16);
}

.header-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.stat-card {
    display: grid;
    gap: 4px;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    backdrop-filter: blur(8px);
}

.stat-card strong {
    font-size: 1.25rem;
}

.stat-card span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
}

.header-visual {
    display: grid;
    width: 100%;
}

.visual-frame {
    border-radius: 0;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
}

.visual-frame img {
    width: 100%;
    height: auto;
    min-height: 0;
    object-fit: contain;
    border-radius: 0;
}

.visual-caption {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.96rem;
}

.topic-bar-section {
    padding: 8px 0 14px;
}

.topic-bar-trigger-section {
    display: none;
    padding: 10px 0 12px;
}

.topic-bar-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border: 1px solid rgba(28, 93, 146, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--brand-blue);
    font-size: 0.98rem;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.topic-bar-trigger:hover {
    background: rgba(255, 255, 255, 0.96);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.topic-bar-shell {
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.topic-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.topic-bar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(169, 78, 166, 0.18);
    background: #ad4fa8;
    color: #ffffff;
    font-size: 0.96rem;
    font-weight: 800;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease;
}

.topic-bar a:hover {
    background: #bd62b8;
    text-decoration: none;
    transform: translateY(-1px);
}

.headline-section,
.briefing-section,
.article-detail-section,
.news-section,
.search-news-section {
    padding-bottom: 28px;
}

.portal-card {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--paper-soft);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.portal-card__header {
    display: grid;
    gap: 6px;
    margin-bottom: 16px;
}

.portal-card__eyebrow {
    color: var(--brand-berry);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portal-card__title {
    margin: 0;
    color: var(--brand-navy);
    font-size: 1.45rem;
    font-weight: 800;
}

.portal-card__subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 0.96rem;
}

.headline-box,
.article-detail-card,
.news-row,
.search-box,
.external-news-box,
.insight-box {
    border-radius: var(--radius-lg);
    background: var(--paper-soft);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.ticker-list {
    display: grid;
    gap: 2px;
    max-height: 292px;
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-gutter: stable;
}

.ticker-list::-webkit-scrollbar {
    width: 8px;
}

.ticker-list::-webkit-scrollbar-track {
    background: rgba(28, 93, 146, 0.08);
    border-radius: 999px;
}

.ticker-list::-webkit-scrollbar-thumb {
    background: rgba(28, 93, 146, 0.28);
    border-radius: 999px;
}

.ticker-list::-webkit-scrollbar-thumb:hover {
    background: rgba(28, 93, 146, 0.42);
}

.ticker-item {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr) 108px;
    gap: 14px;
    align-items: start;
    padding: 14px 0;
    border-bottom: 1px dashed rgba(31, 94, 150, 0.2);
}

.ticker-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.ticker-date {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.ticker-link {
    color: var(--ink);
    font-weight: 700;
    line-height: 1.5;
}

.ticker-link:hover {
    color: var(--brand-blue);
}

.ticker-dept {
    color: var(--muted);
    font-size: 0.92rem;
    text-align: right;
}

.message-detail-page {
    background:
        radial-gradient(circle at top left, rgba(214, 170, 67, 0.16), transparent 28%),
        linear-gradient(180deg, #f9fbfd 0%, #eef2f7 100%);
}

.message-detail-shell {
    min-height: 100vh;
    padding: 22px 0;
}

.message-detail-container {
    width: min(920px, calc(100% - 28px));
}

.message-detail-card {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--paper-soft);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.message-detail-header {
    margin-bottom: 18px;
}

.message-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-top: 1px dashed rgba(31, 94, 150, 0.18);
    border-bottom: 1px dashed rgba(31, 94, 150, 0.18);
}

.message-detail-title {
    margin: 22px 0 0;
    color: var(--brand-navy);
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    line-height: 1.35;
    font-family: "Palatino Linotype", "Noto Serif TC", serif;
}

.message-detail-content {
    margin-top: 22px;
    color: #223242;
    font-size: 1.08rem;
    line-height: 1.9;
}

.message-detail-content p {
    margin: 0 0 18px;
}

.message-detail-content p:last-child {
    margin-bottom: 0;
}

.message-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.message-close-button {
    cursor: pointer;
    font: inherit;
}

.headline-issue {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    padding: 18px 24px;
    border-bottom: 1px solid var(--line);
}

.issue-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.issue-label {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(15, 63, 107, 0.08);
    color: var(--brand-blue);
    font-weight: 800;
}

.issue-date,
.issue-no {
    color: var(--muted);
    font-weight: 700;
}

.headline-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
    gap: 28px;
    padding: 28px;
}

.headline-tag {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--brand-berry);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.headline-title {
    margin: 0;
    color: var(--brand-navy);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.28;
    font-family: "Palatino Linotype", "Noto Serif TC", serif;
}

.headline-summary {
    margin: 18px 0 0;
    color: #3e4b59;
    font-size: 1.02rem;
}

.headline-points,
.external-news-list,
.insight-list {
    margin: 22px 0 0;
    padding-left: 1.2rem;
}

.headline-points li,
.external-news-list li,
.insight-list li {
    margin-top: 10px;
    color: #42515f;
}

.headline-media {
    display: grid;
    align-content: center;
}

.headline-side-stack {
    display: grid;
    gap: 22px;
    align-content: start;
}

.headline-image {
    overflow: hidden;
    border-radius: 0;
}

.headline-image img,
.article-detail-image {
    width: 100%;
    object-fit: cover;
}

.headline-image img {
    aspect-ratio: 4 / 3;
}

.article-detail-card {
    --article-content-size: 1.08rem;
    padding: 28px;
}

.article-detail-meta,
.news-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.article-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    align-items: center;
    margin-top: 18px;
}

.article-share {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.article-share-label {
    color: #8a7a56;
    font-weight: 700;
}

.article-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(17, 41, 65, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-share-button:hover,
.article-share-button:focus-visible {
    outline: none;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(17, 41, 65, 0.16);
}

.article-share-button--facebook {
    background: #3b5998;
    font-family: Arial, sans-serif;
    font-size: 2.25rem;
    line-height: 1;
}

.article-share-button--line {
    background: #5acb37;
    font-size: 0.78rem;
    letter-spacing: 0;
}

.article-share-button--twitter {
    background: #55acee;
    font-family: Arial, sans-serif;
}

.detail-category,
.news-row-category {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(28, 93, 146, 0.12);
    color: var(--brand-blue);
    font-size: 0.9rem;
    font-weight: 800;
}

.detail-date,
.detail-author,
.news-row-date,
.news-row-author {
    color: var(--muted);
    font-size: 0.95rem;
}

.article-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(250px, 0.72fr);
    gap: 28px;
    margin-top: 22px;
}

.article-detail-title {
    margin: 0;
    color: var(--brand-navy);
    font-size: clamp(1.7rem, 2.7vw, 2.35rem);
    line-height: 1.3;
    font-family: "Palatino Linotype", "Noto Serif TC", serif;
}

.article-detail-summary {
    margin: 16px 0 0;
    color: #2e3d4c;
    font-size: 1.05rem;
}

.article-detail-content {
    margin-top: 22px;
    color: #223242;
    font-size: var(--article-content-size);
    font-family: "Microsoft JhengHei", "Noto Sans TC", sans-serif;
    line-height: 1.9;
}

.article-detail-content:not(.sms-detail-content) p {
    margin: 0 0 18px;
}

.article-detail-content:not(.sms-detail-content) p,
.article-detail-content:not(.sms-detail-content) span,
.article-detail-content:not(.sms-detail-content) div,
.article-detail-content:not(.sms-detail-content) li,
.article-detail-content:not(.sms-detail-content) a,
.article-detail-content:not(.sms-detail-content) strong,
.article-detail-content:not(.sms-detail-content) em {
    font-size: inherit !important;
    font-family: inherit !important;
    line-height: inherit !important;
}

.sms-detail-content {
    color: initial;
    font-size: initial;
    font-family: initial;
    line-height: normal;
}

.article-font-tools {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
}

.article-font-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--brand-blue);
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.article-font-button:hover,
.article-font-button:focus-visible {
    outline: none;
    background: rgba(28, 93, 146, 0.12);
    color: var(--brand-navy);
}

.article-detail-aside {
    display: grid;
    align-content: start;
    gap: 16px;
}

.article-detail-image {
    border-radius: 0;
    aspect-ratio: 4 / 3;
}

.article-detail-image-mobile {
    display: none;
    margin-top: 18px;
}

.detail-back-link {
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--brand-blue);
}

.sms-detail-layout {
    grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.52fr);
}

.sms-related-panel {
    display: grid;
    gap: 14px;
    padding-top: 4px;
}

.sms-related-heading {
    display: grid;
    gap: 6px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(31, 94, 150, 0.14);
}

.sms-related-eyebrow {
    color: var(--brand-berry);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.sms-related-title {
    margin: 0;
    color: var(--brand-navy);
    font-size: 1.16rem;
    line-height: 1.45;
}

.sms-related-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sms-related-list li {
    padding: 12px 0;
    border-bottom: 1px dashed rgba(31, 94, 150, 0.18);
}

.sms-related-list li:first-child {
    padding-top: 0;
}

.sms-related-list li:last-child {
    border-bottom: 0;
}

.sms-related-list a {
    color: var(--brand-blue);
    font-weight: 700;
    line-height: 1.6;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    margin-bottom: 18px;
}

.section-caption,
.block-title {
    margin: 0;
    color: var(--brand-navy);
    font-size: 1.5rem;
    font-weight: 800;
}

.section-description,
.block-subtitle {
    margin: 8px 0 0;
    color: var(--muted);
}

.section-link {
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.7);
    color: var(--brand-blue);
}

.news-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr);
    gap: 24px;
    align-items: center;
    padding: 26px 30px;
    margin-bottom: 18px;
}

.news-row--no-image {
    grid-template-columns: 1fr;
}

.news-row-body {
    display: grid;
    justify-items: start;
}

.news-row-title {
    margin: 16px 0 0;
    font-size: clamp(1.35rem, 2vw, 1.65rem);
    line-height: 1.42;
    font-family: "Palatino Linotype", "Noto Serif TC", serif;
}

.news-row-title a {
    color: #1f3550;
}

.news-row-summary {
    max-width: 58rem;
    margin: 14px 0 20px;
    color: #465463;
}

.news-row-link {
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--brand-blue);
}

.news-row-media {
    align-self: stretch;
    min-height: 100%;
}

.news-row-image-link {
    display: block;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fbff 0%, #edf3fa 100%);
}

.news-row-image-link:hover {
    text-decoration: none;
}

.news-row-image {
    width: 100%;
    height: 100%;
    min-height: 220px;
    max-height: 320px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.24s ease;
}

.news-row-image-link:hover .news-row-image {
    transform: scale(1.025);
}

.empty-state {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.82);
    border: 1px dashed rgba(28, 93, 146, 0.3);
    color: var(--muted);
    text-align: center;
}

.news-content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.42fr);
    gap: 22px;
    align-items: start;
}

.news-feed,
.news-sidebar {
    display: grid;
    gap: 18px;
}

.search-news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 22px;
    align-items: start;
}

.search-box,
.external-news-box,
.insight-box {
    padding: 24px;
}

.block-header {
    margin-bottom: 18px;
}

.search-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-row {
    display: grid;
    gap: 8px;
}

.form-row label {
    color: var(--brand-navy);
    font-weight: 700;
}

.input-text,
.input-select {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(28, 93, 146, 0.18);
    border-radius: 14px;
    background: #ffffff;
    color: var(--ink);
    font-size: 1rem;
}

.input-text:focus,
.input-select:focus {
    outline: none;
    border-color: rgba(28, 93, 146, 0.46);
    box-shadow: 0 0 0 4px rgba(28, 93, 146, 0.12);
}

.form-actions {
    display: flex;
    align-items: end;
}

.btn-search {
    width: 100%;
}

.info-stack {
    display: grid;
    gap: 22px;
}

.widget-card {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--paper-soft);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.widget-card__header {
    display: grid;
    gap: 6px;
    margin-bottom: 16px;
}

.widget-card__eyebrow {
    color: var(--brand-berry);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.widget-card__title {
    margin: 0;
    color: var(--brand-navy);
    font-size: 1.45rem;
    font-weight: 800;
}

.widget-card__subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 0.96rem;
}

.widget-card__body {
    display: grid;
    gap: 16px;
}

.widget-cover {
    overflow: hidden;
    border-radius: 0;
    background: linear-gradient(180deg, #f8fbff 0%, #edf3fa 100%);
    box-shadow: inset 0 0 0 1px rgba(31, 94, 150, 0.08);
}

.widget-cover a,
.issue-cover-link {
    display: block;
}

.widget-cover img,
.issue-cover-image {
    width: 100%;
    display: block;
}

.widget-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.widget-links li {
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(31, 94, 150, 0.16);
}

.widget-links li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.widget-links a {
    color: var(--brand-blue);
    font-weight: 700;
    line-height: 1.55;
}

.widget-video-embed {
    position: relative;
    overflow: hidden;
    background: #0f2846;
    aspect-ratio: 16 / 9;
}

.widget-video-embed iframe,
.widget-video-embed embed,
.widget-video-embed object {
    width: 100%;
    height: 100%;
    border: 0;
}

.widget-photo-link {
    display: block;
    overflow: hidden;
}

.widget-photo-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.widget-photo-caption {
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.6;
}

.album-section {
    padding: 18px 0 42px;
}

.album-hero {
    padding: 28px 32px;
    margin-bottom: 22px;
    border-radius: var(--radius-xl);
    background: var(--paper-soft);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.album-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--brand-berry);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.album-heading {
    margin-bottom: 0;
}

.album-title {
    margin: 0;
    color: var(--brand-navy);
    font-size: clamp(2rem, 3vw, 2.65rem);
    line-height: 1.25;
    font-weight: 800;
}

.album-description {
    margin: 8px 0 0;
    color: var(--muted);
}

.album-filter {
    display: grid;
    grid-template-columns: minmax(180px, 0.32fr) minmax(240px, 1fr) auto;
    gap: 14px;
    align-items: end;
    margin-top: 24px;
}

.album-filter__field {
    display: grid;
    gap: 8px;
}

.album-filter__field label {
    color: var(--brand-navy);
    font-weight: 700;
}

.album-filter__actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.album-search-button {
    min-width: 108px;
}

.album-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--brand-blue);
    font-weight: 800;
    white-space: nowrap;
}

.album-reset:hover {
    text-decoration: none;
    background: rgba(28, 93, 146, 0.08);
}

.album-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-top: 16px;
}

.album-count {
    color: var(--muted);
    font-weight: 700;
}

.album-count__page-size {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-left: 10px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(28, 93, 146, 0.08);
    color: var(--brand-blue);
    font-size: 0.92rem;
}

.album-pager {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.album-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--brand-blue);
    font-weight: 800;
    line-height: 1;
}

.album-page-link:hover {
    text-decoration: none;
    background: rgba(28, 93, 146, 0.08);
}

.album-page-link.is-current {
    border-color: transparent;
    background: var(--brand-blue);
    color: #ffffff;
}

.album-page-link.is-disabled {
    color: rgba(97, 113, 130, 0.55);
    pointer-events: none;
    background: rgba(255, 255, 255, 0.56);
}

.album-page-summary {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.album-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-md);
}

.album-card__image-link {
    display: block;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fbff 0%, #edf3fa 100%);
}

.album-card__image-link:hover {
    text-decoration: none;
}

.album-card__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.24s ease;
}

.album-card__image-link:hover .album-card__image {
    transform: scale(1.025);
}

.album-card__body {
    display: grid;
    gap: 12px;
    padding: 18px 20px 22px;
}

.album-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    min-height: 32px;
}

.album-card__date,
.album-card__category {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 800;
}

.album-card__date {
    background: rgba(28, 93, 146, 0.11);
    color: var(--brand-blue);
}

.album-card__category {
    background: rgba(146, 37, 111, 0.1);
    color: var(--brand-berry);
}

.album-card__category:empty {
    display: none;
}

.album-card__title {
    margin: 0;
    color: #26384d;
    font-size: 1.18rem;
    line-height: 1.55;
    font-weight: 700;
}

.album-empty {
    margin-top: 18px;
}

.article-search-section {
    padding: 18px 0 42px;
}

.article-search-filter {
    grid-template-columns: minmax(260px, 1fr) minmax(170px, 0.36fr) minmax(180px, 0.38fr) auto;
}

.brief-search-filter {
    grid-template-columns: minmax(220px, 0.5fr) minmax(260px, 1fr) auto;
}

.article-result-list {
    display: grid;
    gap: 18px;
}

.article-result-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr);
    gap: 24px;
    align-items: center;
    padding: 24px 28px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.article-result-card--no-image {
    grid-template-columns: 1fr;
}

.article-result-card__body {
    display: grid;
    justify-items: start;
}

.article-result-card__header {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.article-result-issue {
    color: var(--muted);
    font-size: 0.96rem;
    font-weight: 700;
}

.article-result-title {
    margin: 14px 0 0;
    font-size: clamp(1.35rem, 2vw, 1.72rem);
    line-height: 1.42;
    font-family: "Palatino Linotype", "Noto Serif TC", serif;
}

.article-result-title a {
    color: #1f3550;
}

.article-result-summary {
    max-width: 62rem;
    margin: 12px 0 18px;
    color: #465463;
    line-height: 1.75;
}

.article-result-link {
    min-height: 42px;
}

.article-result-media {
    align-self: stretch;
    min-height: 100%;
}

.article-result-image-link {
    display: block;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fbff 0%, #edf3fa 100%);
}

.article-result-image-link:hover {
    text-decoration: none;
}

.article-result-image {
    width: 100%;
    height: 100%;
    min-height: 220px;
    max-height: 320px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.24s ease;
}

.article-result-image-link:hover .article-result-image {
    transform: scale(1.025);
}

.widget-field {
    display: grid;
    gap: 8px;
}

.widget-label {
    color: var(--brand-navy);
    font-weight: 700;
    font-size: 0.95rem;
}

.widget-input,
.widget-select {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(28, 93, 146, 0.18);
    border-radius: 14px;
    background: #ffffff;
    color: var(--ink);
    font-size: 1rem;
}

.widget-input:focus,
.widget-select:focus {
    outline: none;
    border-color: rgba(28, 93, 146, 0.46);
    box-shadow: 0 0 0 4px rgba(28, 93, 146, 0.12);
}

.widget-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.widget-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #f2cb77 0%, #d8a338 100%);
    color: #35270e;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(214, 170, 67, 0.28);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.widget-button:hover {
    transform: translateY(-1px);
    text-decoration: none;
    box-shadow: 0 16px 30px rgba(214, 170, 67, 0.32);
}

.external-news-list,
.insight-list {
    margin-bottom: 0;
}

.external-news-list a {
    color: #294968;
    font-weight: 600;
}

.footer {
    margin-top: 12px;
    padding: 20px 0 32px;
}

.footer-card {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr) auto;
    gap: 22px;
    align-items: start;
    margin-top: 8px;
    padding: 26px 28px;
    border-radius: 0;
    background: linear-gradient(180deg, #bb4cad 0%, #b143a4 100%);
    color: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 36px rgba(177, 67, 164, 0.2);
}

.footer-card__brand h2 {
    margin: 0;
    color: #ffffff;
    font-size: 1.35rem;
}

.footer-card__brand p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.84);
}

.footer-contact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 22px;
}

.footer-contact__item {
    display: grid;
    gap: 2px;
}

.footer-contact__label {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.88rem;
}

.footer-contact__item a {
    color: #ffffff;
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-weight: 700;
}

.back-to-top:hover {
    text-decoration: none;
    background: rgba(255, 255, 255, 0.26);
}

.go-top-button {
    position: fixed;
    right: 24px;
    bottom: 28px;
    z-index: 50;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #f2cb77 0%, #d8a338 100%);
    color: #35270e;
    font-weight: 900;
    box-shadow: 0 14px 32px rgba(17, 41, 65, 0.22);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

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

.go-top-button:hover,
.go-top-button:focus-visible {
    outline: none;
    box-shadow: 0 18px 38px rgba(17, 41, 65, 0.28);
    transform: translateY(-2px);
}

.go-top-button__arrow {
    font-size: 1.25rem;
    line-height: 1;
}

.go-top-button__text {
    margin-top: 2px;
    font-size: 0.72rem;
    line-height: 1;
    letter-spacing: 0.04em;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
    padding: 24px 28px;
    border-radius: 24px;
    background: #153757;
    color: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-md);
}

.footer-inner strong {
    display: block;
    color: #ffffff;
}

.footer-inner span {
    display: block;
    margin-top: 4px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links a {
    color: #ffffff;
    font-weight: 700;
}

@media (max-width: 1080px) {
    .header-card,
    .headline-layout,
    .article-detail-layout,
    .news-content-layout,
    .search-news-layout {
        grid-template-columns: 1fr;
    }

    .header-card {
        padding: 0;
    }

    .header-visual {
        width: 100%;
        max-width: none;
        justify-self: stretch;
    }

    .article-detail-aside {
        max-width: 420px;
    }

    .article-detail-image-mobile {
        display: block;
    }

    .article-detail-aside .article-detail-image {
        display: none;
    }

    .footer-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .container {
        width: min(100%, calc(100% - 24px));
    }

    .topbar-inner,
    .section-heading,
    .footer-inner,
    .footer-card {
        align-items: flex-start;
    }

    .header-card {
        padding: 0;
    }

    .header-stats,
    .search-form,
    .article-search-filter,
    .album-filter {
        grid-template-columns: 1fr;
    }

    .album-filter__actions {
        align-items: stretch;
    }

    .album-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .album-pager {
        justify-content: flex-start;
    }

    .topic-bar-trigger-section {
        display: none;
    }

    .topic-bar-section,
    .topic-bar-section.is-open {
        display: none;
    }

    .topic-bar {
        flex-direction: column;
    }

    .topic-bar-trigger {
        width: 100%;
    }

    .topic-bar a {
        width: 100%;
        justify-content: center;
    }

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

    .ticker-item {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .ticker-dept {
        text-align: left;
    }

    .article-detail-image,
    .headline-image img {
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 600px) {
    .topbar-inner {
        padding-top: 22px;
    }

    .site-title {
        font-size: 2rem;
    }

    .headline-box,
    .portal-card,
    .message-detail-card,
    .article-detail-card,
    .news-row,
    .article-result-card,
    .album-hero,
    .album-card,
    .search-box,
    .external-news-box,
    .insight-box,
    .widget-card,
    .footer-inner {
        border-radius: 18px;
    }

    .footer-card {
        border-radius: 0;
    }

    .headline-layout,
    .portal-card,
    .message-detail-card,
    .article-detail-card,
    .news-row,
    .article-result-card,
    .album-hero,
    .search-box,
    .external-news-box,
    .insight-box,
    .widget-card,
    .footer-card,
    .footer-inner {
        padding: 20px;
    }

    .headline-issue {
        padding: 16px 20px;
    }

    .secondary-action,
    .headline-subaction,
    .section-link,
    .news-row-link,
    .album-reset,
    .detail-back-link,
    .primary-action,
    .headline-more,
    .btn-search {
        width: 100%;
    }

    .section-heading {
        flex-direction: column;
        gap: 12px;
    }

    .section-heading > div {
        width: 100%;
    }

    .section-caption {
        white-space: nowrap;
    }

    .latest-news-heading {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .latest-news-heading > div {
        width: auto;
        flex: 0 0 auto;
    }

    .latest-news-heading .section-link {
        width: auto;
        min-width: 132px;
        flex: 0 0 auto;
    }

    .album-filter__actions {
        flex-direction: column;
    }

    .album-grid {
        gap: 18px;
    }

    .album-count__page-size {
        margin: 8px 0 0;
    }

    .go-top-button {
        right: 14px;
        bottom: 16px;
        width: 54px;
        height: 54px;
    }

    .header-actions,
    .headline-actions {
        flex-direction: column;
    }
}
