.news-page-hero::before,
.news-page-hero::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.news-page-hero::before {
    width: 360px;
    height: 360px;
    right: 9%;
    top: -190px;
    border: 1px solid rgba(180, 211, 51, 0.22);
    box-shadow: 0 0 0 60px rgba(180, 211, 51, 0.035),
                0 0 0 120px rgba(0, 160, 233, 0.025);
}

.news-page-hero::after {
    width: 9px;
    height: 9px;
    right: 18%;
    bottom: 72px;
    background: var(--primary-lime);
    box-shadow: 0 0 24px rgba(180, 211, 51, 0.9);
}

.news-page-hero > * {
    position: relative;
    z-index: 1;
}

.news-page-hero {
    padding-bottom: 72px;
}

.news-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 64px 5% 100px;
}

.news-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    margin-bottom: 36px;
}

.news-section-kicker,
.article-kicker {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--tech-blue);
    margin-bottom: 12px;
}

.news-heading {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.2;
    letter-spacing: -0.035em;
}

.news-filter-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.news-filter {
    appearance: none;
    border: 1px solid #DCE2EA;
    background: #fff;
    color: #5D6470;
    border-radius: 999px;
    padding: 9px 15px;
    font: inherit;
    font-size: 0.75rem;
    cursor: pointer;
    transition: border-color 0.25s, background-color 0.25s, color 0.25s;
}

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

.news-featured {
    --card-accent: var(--primary-lime);
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(340px, 0.72fr);
    min-height: 500px;
    color: #fff;
    background: #0B1731;
    border: 1px solid rgba(5, 15, 39, 0.1);
    border-radius: 22px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 22px 60px rgba(5, 15, 39, 0.12);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.news-featured:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 76px rgba(5, 15, 39, 0.2);
}

.news-featured-media,
.news-card-media {
    position: relative;
    overflow: hidden;
    background: #071127;
}

.news-featured-media img,
.news-card-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.news-featured:hover img,
.news-card:hover img,
.related-news-card:hover img {
    transform: scale(1.045);
}

.news-visual-label {
    position: absolute;
    left: 22px;
    top: 22px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--bg-dark);
    background: var(--card-accent, var(--primary-lime));
    font-family: 'Orbitron', sans-serif;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.news-visual-label::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.news-featured-body {
    display: flex;
    flex-direction: column;
    padding: clamp(34px, 4vw, 58px);
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    color: rgba(255, 255, 255, 0.58);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.625rem;
    letter-spacing: 0.04em;
}

.news-meta span:not(:last-child)::after {
    content: '';
    display: inline-block;
    width: 3px;
    height: 3px;
    margin-left: 18px;
    border-radius: 50%;
    vertical-align: 2px;
    background: var(--card-accent, var(--primary-lime));
}

.news-featured-title {
    margin: 28px 0 20px;
    font-size: clamp(1.875rem, 3.2vw, 2.75rem);
    line-height: 1.3;
    letter-spacing: -0.045em;
}

.news-featured-desc {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.875rem;
    line-height: 1.95;
}

.news-read-more {
    margin-top: auto;
    padding: 38px 0 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--card-accent, var(--primary-lime));
    border-bottom: 1px solid currentColor;
    font-size: 0.75rem;
    font-weight: 700;
}

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

.news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    margin-top: 58px;
    padding-top: 28px;
    border-top: 1px solid #E2E7ED;
}

.news-pagination[hidden] {
    display: none;
}

.news-page-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-page-number,
.news-page-step {
    appearance: none;
    border: 0;
    color: #69717D;
    background: transparent;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.625rem;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.25s, background-color 0.25s, transform 0.25s;
}

.news-page-number {
    width: 42px;
    height: 42px;
    border: 1px solid #DCE2EA;
    border-radius: 50%;
}

.news-page-number:hover,
.news-page-number.is-active {
    color: var(--bg-dark);
    background: var(--primary-lime);
    border-color: var(--primary-lime);
}

.news-page-step {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 4px;
}

.news-page-step:hover:not(:disabled) {
    color: var(--tech-blue);
    transform: translateX(2px);
}

.news-page-step:first-child:hover:not(:disabled) {
    transform: translateX(-2px);
}

.news-page-step:disabled {
    opacity: 0.32;
    cursor: not-allowed;
}

.news-filter:focus-visible,
.news-page-number:focus-visible,
.news-page-step:focus-visible {
    outline: 3px solid rgba(0, 160, 233, 0.28);
    outline-offset: 3px;
}

.news-card {
    --card-accent: var(--tech-blue);
    display: flex;
    min-height: 530px;
    flex-direction: column;
    color: #222;
    background: #fff;
    border: 1px solid #E3E8EF;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: var(--card-accent);
    box-shadow: 0 20px 48px rgba(5, 15, 39, 0.1);
}

.news-card[hidden] {
    display: none;
}

.news-card-media {
    aspect-ratio: 16 / 10;
}

.news-card-index {
    position: absolute;
    right: 15px;
    bottom: 14px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(5, 15, 39, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    backdrop-filter: blur(8px);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.625rem;
}

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

.news-card .news-meta {
    color: #7A818D;
}

.news-card .news-meta span:not(:last-child)::after {
    background: var(--card-accent);
}

.news-card-title {
    margin: 20px 0 12px;
    font-size: 1.2rem;
    line-height: 1.55;
    letter-spacing: -0.025em;
}

.news-card-desc {
    color: var(--text-grey);
    font-size: 0.8125rem;
    line-height: 1.85;
}

.news-card-footer {
    margin-top: auto;
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #7A818D;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.625rem;
}

.news-card-arrow {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: var(--bg-dark);
    background: var(--card-accent);
    border-radius: 50%;
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 0.875rem;
    transition: transform 0.3s;
}

.news-card:hover .news-card-arrow {
    transform: rotate(45deg);
}

.accent-lime { --card-accent: var(--primary-lime); }
.accent-blue { --card-accent: #2EC5FF; }
.accent-violet { --card-accent: #9A83FF; }
.accent-mint { --card-accent: #68EBC8; }
.accent-amber { --card-accent: #FFBC4C; }
.accent-coral { --card-accent: #FF8C75; }
.accent-magenta { --card-accent: #F06BC8; }

.news-empty {
    margin: 44px 0 0;
    padding: 36px;
    border: 1px dashed #CCD4DE;
    border-radius: 14px;
    color: var(--text-grey);
    text-align: center;
}

.news-archive {
    margin-top: 84px;
    padding-top: 40px;
    border-top: 1px solid #E2E7ED;
}

.news-archive-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 16px;
}

.news-archive-heading h2 {
    font-size: clamp(1.375rem, 3vw, 1.75rem);
}

.news-archive-heading p {
    color: var(--text-grey);
    font-size: 0.75rem;
}

.news-item {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 30px;
    padding: 26px 0;
    border-bottom: 1px solid #E7EBF0;
}

.news-date {
    padding-top: 2px;
    color: var(--tech-blue);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
}

.news-tag {
    display: inline-block;
    padding: 3px 10px;
    margin-bottom: 9px;
    color: #6C8410;
    background: rgba(180, 211, 51, 0.18);
    border-radius: 3px;
    font-size: 0.6875rem;
    font-weight: 700;
}

.news-title {
    margin-bottom: 8px;
    font-size: 1rem;
    line-height: 1.7;
}

.news-client {
    margin-bottom: 8px;
    color: var(--tech-blue);
    font-size: 0.75rem;
}

.news-desc {
    color: var(--text-grey);
    font-size: 0.8125rem;
    line-height: 1.85;
}

.news-more {
    margin-top: 44px;
    text-align: center;
}

.news-more p {
    margin-bottom: 20px;
    color: var(--text-grey);
    font-size: 0.8125rem;
}

.news-cta {
    padding: 70px 5%;
    background: #F5F7FA;
    text-align: center;
}

.news-cta h2 {
    margin-bottom: 14px;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

.news-cta p {
    margin-bottom: 28px;
    color: var(--text-grey);
    font-size: 0.9375rem;
}

/* ---------- 文章內頁 ---------- */
.article-main {
    background: #fff;
}

.article-loading,
.article-error {
    max-width: 900px;
    margin: 0 auto;
    padding: 120px 5%;
    color: var(--text-grey);
    text-align: center;
}

.article-error h1 {
    margin-bottom: 14px;
    color: var(--bg-dark);
}

.article-error p {
    margin-bottom: 28px;
}

.article-hero {
    display: block;
    width: min(1380px, calc(100% - 48px));
    margin: 0 auto;
    padding: 82px clamp(24px, 4.1vw, 70px) 54px;
    box-sizing: border-box;
}

.article-breadcrumb {
    margin-bottom: 28px;
    color: #7A818D;
    font-size: 0.75rem;
}

.article-breadcrumb a {
    color: #7A818D;
    text-decoration: none;
}

.article-breadcrumb a:hover {
    color: var(--tech-blue);
}

.article-title {
    max-width: 1240px;
    margin: 0;
    color: var(--bg-dark);
    font-size: clamp(2.45rem, 4.35vw, 4.3rem);
    line-height: 1.12;
    letter-spacing: -0.055em;
}

.article-deck {
    max-width: 760px;
    margin-top: 30px;
    color: #59616C;
    font-size: 1.0625rem;
    line-height: 1.95;
    text-align: justify;
    text-justify: inter-ideograph;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 26px;
    margin-top: 40px;
    padding-top: 18px;
    border-top: 1px solid #E0E5EB;
    color: #7A818D;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.625rem;
    letter-spacing: 0.04em;
}

.article-image-wrap {
    position: relative;
    width: min(1380px, calc(100% - 48px));
    margin: 0 auto;
    overflow: hidden;
    aspect-ratio: 16 / 7.8;
    background: var(--bg-dark);
    border-radius: 20px;
}

.article-image-wrap img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.article-image-note {
    position: absolute;
    right: 14px;
    bottom: 12px;
    padding: 6px 9px;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(5, 15, 39, 0.62);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.5rem;
    letter-spacing: 0.08em;
}

.article-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 760px);
    gap: clamp(48px, 8vw, 120px);
    max-width: 1160px;
    margin: 86px auto 120px;
    padding: 0 24px;
    align-items: start;
}

.article-toc {
    position: sticky;
    top: 120px;
}

.article-toc-label {
    color: #7A818D;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.article-toc ol {
    margin-top: 18px;
    list-style: none;
    border-top: 1px solid #DDE3E9;
}

.article-toc li {
    border-bottom: 1px solid #DDE3E9;
}

.article-toc a {
    display: block;
    padding: 13px 2px;
    color: #646C78;
    font-size: 0.75rem;
    line-height: 1.65;
    text-decoration: none;
}

.article-toc a:hover {
    color: var(--bg-dark);
}

.article-takeaways {
    margin-bottom: 72px;
    padding: 32px;
    color: #fff;
    background: var(--bg-dark);
    border-top: 4px solid var(--article-accent, var(--primary-lime));
    border-radius: 0 0 14px 14px;
}

.article-takeaways h2 {
    color: var(--article-accent, var(--primary-lime));
    font-family: 'Orbitron', sans-serif;
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
}

.article-takeaways ul {
    margin-top: 18px;
    list-style: none;
}

.article-takeaways li {
    position: relative;
    padding: 13px 0 13px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.875rem;
    line-height: 1.75;
}

.article-takeaways li::before {
    content: '↗';
    position: absolute;
    left: 0;
    color: var(--article-accent, var(--primary-lime));
}

.article-section {
    margin-bottom: 72px;
    scroll-margin-top: 110px;
}

.article-section-index {
    display: block;
    margin-bottom: 12px;
    color: var(--article-accent, var(--tech-blue));
    font-family: 'Orbitron', sans-serif;
    font-size: 0.625rem;
    font-weight: 700;
}

.article-section h2 {
    margin-bottom: 24px;
    color: var(--bg-dark);
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    line-height: 1.4;
    letter-spacing: -0.035em;
}

.article-section p {
    margin-bottom: 20px;
    color: #3F4650;
    font-size: 1rem;
    line-height: 2.05;
}

.article-bullets {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 30px;
    list-style: none;
    border-top: 1px solid #DDE3E9;
}

.article-bullets li {
    position: relative;
    padding: 17px 18px 17px 27px;
    border-bottom: 1px solid #DDE3E9;
    color: #4D5560;
    font-size: 0.8125rem;
    line-height: 1.65;
}

.article-bullets li:nth-child(odd) {
    border-right: 1px solid #DDE3E9;
}

.article-bullets li::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 24px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--article-accent, var(--primary-lime));
}

.article-sources {
    padding-top: 24px;
    border-top: 1px solid #DDE3E9;
}

.article-sources h2 {
    margin-bottom: 8px;
    color: #7A818D;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.625rem;
    letter-spacing: 0.12em;
}

.article-source {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
    color: #59616C;
    border-bottom: 1px solid #E2E7ED;
    font-size: 0.75rem;
    line-height: 1.55;
    text-decoration: none;
}

.article-source:hover {
    color: var(--tech-blue);
}

.related-news {
    padding: 80px 5% 100px;
    color: #fff;
    background: var(--bg-dark);
}

.related-news-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.related-news-heading {
    margin-bottom: 30px;
}

.related-news-heading h2 {
    margin-top: 10px;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

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

.related-news-card {
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    padding-top: 14px;
    text-decoration: none;
}

.related-news-card-image {
    aspect-ratio: 16 / 9;
    margin-bottom: 18px;
    overflow: hidden;
    border-radius: 10px;
}

.related-news-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-news-card small {
    color: var(--primary-lime);
    font-size: 0.625rem;
}

.related-news-card h3 {
    margin: 10px 0 18px;
    font-size: 1rem;
    line-height: 1.55;
}

.related-news-card span {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.6875rem;
}

@media (max-width: 1024px) {
    .news-featured {
        grid-template-columns: 1.05fr 0.95fr;
    }

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

    .news-pagination {
        gap: 14px;
        margin-top: 42px;
    }

    .news-page-step span {
        display: none;
    }

    .article-layout {
        grid-template-columns: 190px minmax(0, 1fr);
        gap: 44px;
    }
}

@media (max-width: 768px) {
    .news-page-hero {
        padding-bottom: 52px;
    }

    .news-wrap {
        padding: 42px 5% 72px;
    }

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

    .news-filter-list {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .news-filter-list::-webkit-scrollbar {
        display: none;
    }

    .news-filter {
        flex: 0 0 auto;
    }

    .news-featured {
        display: flex;
        min-height: 0;
        flex-direction: column;
        border-radius: 16px;
    }

    .news-featured-media {
        aspect-ratio: 16 / 10;
    }

    .news-featured-body {
        min-height: 400px;
        padding: 28px 22px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .news-card {
        min-height: 520px;
    }

    .news-archive {
        margin-top: 62px;
    }

    .news-archive-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .news-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .article-hero {
        width: calc(100% - 32px);
        padding: 58px 0 42px;
    }

    .article-title {
        font-size: clamp(2rem, 8.5vw, 2.5rem);
        text-wrap: balance;
    }

    .article-title br {
        display: none;
    }

    .article-deck {
        font-size: 0.9375rem;
    }

    .article-image-wrap {
        width: calc(100% - 24px);
        aspect-ratio: 4 / 3;
        border-radius: 14px;
    }

    .article-layout {
        display: block;
        margin: 58px auto 86px;
    }

    .article-toc {
        display: none;
    }

    .article-takeaways {
        margin-bottom: 58px;
        padding: 25px 21px;
    }

    .article-section p {
        font-size: 0.9375rem;
        line-height: 1.95;
    }

    .article-bullets {
        grid-template-columns: 1fr;
    }

    .article-bullets li:nth-child(odd) {
        border-right: 0;
    }

    .related-news-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .news-featured,
    .news-card,
    .news-featured img,
    .news-card img,
    .related-news-card img {
        transition: none;
    }
}
