/* =========================================================
   News page — dark theme, matches homepage Product Series style
   ========================================================= */
@font-face {
    font-family: "Metropolis";
    src: url("/fonts/metropolis/Metropolis-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: "Metropolis";
    src: url("/fonts/metropolis/Metropolis-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: "Metropolis";
    src: url("/fonts/metropolis/Metropolis-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: "Metropolis";
    src: url("/fonts/metropolis/Metropolis-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: "Metropolis";
    src: url("/fonts/metropolis/Metropolis-ExtraBold.woff2") format("woff2");
    font-weight: 800;
    font-style: normal;
    font-display: swap
}

:root {
    --news-bg: #080809;
    --news-panel: #0e0e11;
}

body {
    background: var(--news-bg)
}

.news-hero h1, .news-panel h2, .news-highlights h2, .news-report h2 {
    font-family: "Metropolis","Noto Sans TC",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    font-weight: 800;
}

.dash {
    display: block;
    width: 35px;
    height: 3px;
    background: var(--accent);
    margin: 20px auto 20px 0px;
}

/* ---------- Hero ---------- */
.news-hero {
    padding: 220px 0 220px;
    background: linear-gradient(to bottom, #00000000, #00000000), url(../dayin/images/news/banner.webp) no-repeat center center/ cover scroll;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

   /* .news-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse 60% 60% at 50% 20%,rgba(228,106,88,.14),transparent 70%);
        pointer-events: none
    }*/

.news-hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 820px;
    margin: 0 auto
}

   /* .news-hero-inner .dash {
        margin: 20px auto 0px
    }
*/
.news-hero h1 {
    font-size: clamp(30px,4.5vw,40px);
    color: #fff;
    margin: 50px 0 30px 0;
    text-align: left;
}

.dash {
    display: block;
    width: 35px;
    height: 3px;
    background: var(--accent);
    margin: 20px auto 20px 0px
}

.news-hero p {
    text-align: left;
    color: #eee;
    font-size: 20px;
}
@media (max-width:767px) {
    .news-hero {
        padding: 0;
        min-height: 70vh;
    }

    .sect-head-center {
        margin: 0 auto 20px;
    }

    .news-hero h1 {
        font-size: 20px
    }

    .news-hero p {
        font-size: 16px;
    }
}
/* ---------- Intro ---------- */
.news-intro {
    background: var(--news-bg);
    padding: 60px 0;
    border-bottom: 1px solid rgba(255,255,255,.08)
}

    .news-intro p {
        color: #9a9aa2;
        font-size: 16px;
        line-height: 1.9;
        max-width: 760px;
        margin: 0 auto;
        text-align: center
    }
@media(max-width:960px){
  .n-search{min-width:unset}
  .feat-card{grid-template-columns:1fr}
  .feat-body{padding:36px 28px}
}
.n-bar {
    padding: 36px 0;
    background: var(--news-bg);
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.n-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 36px;
}
    .n-filter-link {
        margin: 0;
        padding: 0;
        color: #9a9aa2;
        font-size: 16px;
        font-weight: 600;
        white-space: nowrap;
        transition: color .2s;
    }
    .n-filter-link:hover {
        color: #fff;
    }
    .n-filter-link.active {
        color: var(--accent);
    }
@media(max-width:767px){
  .n-filters{gap:20px}
  .n-filter-link{font-size:12px}
}
.news-card {
    background: #dbdadf;
    display: block;
    border-radius: 15px;
}
    .news-card:hover .text-item h3{
        color: #ea6852;
    }
    .news-card:hover .text-item .rd {
        background: #ea6852;
    }
    
    .news-card .pic-item {
        position: relative;
        width: 100%;
        padding-bottom: 75%;
        overflow: hidden;
        border-radius: 15px 15px 0 0;
    }
        .news-card .pic-item img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            transition:all .25s;
            object-fit: cover;
            transform: scale(1);
        }
    .news-card:hover img {
        transform: scale(1.1);
    }
    .news-card .text-item {
        padding: 20px 15px;
        position: relative;
    }
        .news-card .text-item h3 {
            font-size: 20px;
            color: #000;
            font-weight: bolder;
            margin: 10px 0;
            transition: all .25s;
        }
        .news-card .text-item .date {
            color: #666; 
        
        }
        
        .news-card .text-item .rd {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: #000;
            color: #fff;
            width: 30px;
            height: 30px;
            border-radius: 100%;
            position: absolute;
            right: 15px;
            bottom: 20px;
            transition: all .25s;
        }

/* ---------- News Detail ---------- */
.news-hero .crumbs { color: #aaa }
.news-hero .crumbs a { color: #aaa }
    .news-hero .crumbs .current {
        color: var(--accent);
    }
.nd-hero { padding: 160px 0 }
.nd-date { color: #9a9aa2; font-size: 14px; margin-top: 14px }

.nd-body { background: #fff; padding: 70px 0 40px }
.nd-toc {
    display: none !important;
    background: var(--bg-soft); border-left: 3px solid var(--accent);
    padding: 24px 26px; margin-bottom: 34px
}
.nd-toc-title { font-size: 16px; font-weight: 800; color: var(--ink); margin: 0 0 14px }
.nd-toc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px }
.nd-toc-item a {
    color: var(--ink-3); font-size: 14.5px; line-height: 1.6; text-decoration: none; transition: color .2s
}
.nd-toc-item a:hover { color: var(--accent) }
.nd-toc-level-2 { padding-left: 0 }
.nd-toc-level-3 { padding-left: 18px }
.nd-toc-level-4 { padding-left: 36px }
.nd-toc-level-5 { padding-left: 54px }
.nd-toc-level-6 { padding-left: 72px }

/* offset scroll targets so the sticky topbar+nav don't cover the heading */
.ck-content h1, .ck-content h2, .ck-content h3,
.ck-content h4, .ck-content h5, .ck-content h6 {
    scroll-margin-top: 140px;
}
@media (max-width: 960px) {
  .ck-content h1, .ck-content h2, .ck-content h3,
  .ck-content h4, .ck-content h5, .ck-content h6 {
      scroll-margin-top: 90px;
  }
}
.nd-article-head { margin-bottom: 34px }
.nd-article-crumbs { color: var(--ink-4); margin-bottom: 18px }
.nd-article-crumbs a { color: var(--ink-4) }
.nd-article-crumbs .current { color: var(--ink-2) }
.nd-article-head .cat-tag {
    display: inline-block;
    /*padding: 6px 16px;*/
    /*border: 1px solid var(--line);*/
    color: var(--accent);
    font-family: "Oswald", sans-serif;
    font-family: "Metropolis","Noto Sans TC";
    font-size: 12px;
    /*letter-spacing: .15em;
    text-transform: uppercase;*/
    font-weight: 700;
    margin-bottom: 16px
}
.nd-article-title { color: var(--ink); font-weight: 800; font-size: clamp(24px,3vw,34px); margin: 0 }
.nd-article-head .nd-date { color: var(--ink-4); margin-top: 12px }
.ck-content { color: var(--ink-2); font-size: 16px; line-height: 1.95 }
/*.ck-content p { margin-bottom: 22px }*/
.ck-content h2, .ck-content h3 { color: var(--ink); font-weight: 800; margin: 40px 0 16px }
.ck-content img { max-width: 100%; height: auto; margin: 24px 0 }
.ck-content a { color: var(--accent); text-decoration: underline }
.ck-content ul, .ck-content ol { margin-bottom: 22px; padding-left: 22px }
.ck-content iframe { max-width: 100%; margin: 24px 0 }
.ck-content blockquote { border-left: 3px solid var(--accent); padding-left: 20px; color: var(--ink-3); font-style: italic; margin: 24px 0 }
.nd-back { margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--line) }

.nd-author { display: flex; align-items: center; gap: 14px; margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line) }
.nd-author-avatar {
    width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; flex: none
}
.nd-author-name { color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none }
a.nd-author-name:hover { color: var(--accent) }
.nd-author-title { color: var(--ink-4); font-size: 12.5px; margin-top: 2px }

.nd-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px }
.nd-tag {
    display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--bg-soft);
    color: var(--ink-3); font-size: 13px; font-weight: 600
}

.nd-faq { margin-top: 56px }
.nd-faq-title { font-size: 22px; font-weight: 800; color: var(--ink); margin-bottom: 20px }
.nd-faq-list { display: flex; flex-direction: column; gap: 12px }
.nd-faq-item { border: 1px solid var(--line); border-radius: 8px; padding: 4px 20px; background: var(--bg-soft) }
.nd-faq-item summary {
    padding: 16px 0; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; align-items: center
}
.nd-faq-item summary::-webkit-details-marker { display: none }
.nd-faq-item summary::after { content: "+"; color: var(--accent); font-size: 20px; font-weight: 400; flex: none; margin-left: 12px }
.nd-faq-item[open] summary::after { content: "–" }
.nd-faq-answer { padding: 0 0 18px; color: var(--ink-3); font-size: 14.5px; line-height: 1.85 }

.nd-more { background: var(--news-bg); padding: 90px 0 110px; border-top: 1px solid rgba(255,255,255,.08) }
.nd-more-head { text-align: left; margin-bottom: 44px }
    .nd-more-head h2 {
        text-align: left;
        color: #fff;
        font-size: clamp(24px,3vw,32px);
        font-weight: 800;
        margin: 0;
        padding: 40px 0 0;
    }
@media (min-width: 992px) {
    .nd-more-head h2 {
        font-size: 36px;
    }
}
.nd-more-head .dash { margin: 20px auto 20px 0  }
.nd-related { background: #fff; padding: 70px 0 110px; }
    .nd-related .nd-more-head h2 {
        color: var(--ink);
        border-top: 1px solid var(--line)
    }
.nd-related .nd-more-head .dash { background: var(--accent) }
    .nd-more .news-card .cat-tag,
    .nd-related .news-card .cat-tag {
        display: inline-block;
        font-family: "Oswald", sans-serif;
        font-family: "Metropolis","Noto Sans TC";
        font-size: 10.5px;
        letter-spacing: .12em;
        color: var(--accent);
        text-transform: uppercase;
        font-weight: 700;
        margin-bottom: 6px
    }

@media (max-width: 767px) {
  .nd-hero { padding: 90px 0 50px }
  .nd-body { padding: 40px 0 }
  .nd-more { padding: 60px 0 70px }
    .nd-tags {
        margin-top: 20px
    }

}
@media (max-width: 960px) {

   /* .news-hero {
        padding: 70px 0;
    }
        .news-hero h1{
            font-size:20px;
        }*/
    .news-card .text-item h3 {
        font-size: 18px;
    }
    .nd-article-title, .nd-more-head h2 {
        font-size: 18px;
    }
    }

.news-list{
    padding: 40px 0;
}
/* --End content--------------- */
.ck-content .media {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

    .ck-content .media iframe,
    .ck-content .media object,
    .ck-content .media embed {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

/* --End content--------------- */
.ck-content img {
    width: 100%;
    height: auto;
    max-width: 100%;
}

@media (min-width: 992px) {
    .ck-content img {
        width: auto;
    }
    .news-list {
        padding: 70px 0;
    }
}