/* ============================================================
   鏈聞社 — 視覺覆蓋層
   在原站樣式之後載入，只改識別性元素（主色、字體、圓角、間距），
   不動版面結構，避免與原 bundle 衝突。
   ============================================================ */

:root {
    /* 品牌色：深藍 + 青綠，取代原本的亮藍 */
    --tv-color-brand: #17347F;
    --tv-color-brand-hover: #22489B;
    --tv-color-brand-hover-alt: #0E2760;
    --color-clear-blue: #17347F;
    --color-brand: #17347F;
    --color-turquoise: #12B5A5;
}

/* ---------- 主色覆蓋 ---------- */
[class*="blueButton"],
[class*="brandButton"],
button[class*="primary"] {
    background-color: var(--tv-color-brand) !important;
    border-color: var(--tv-color-brand) !important;
}

[class*="blueButton"]:hover,
[class*="brandButton"]:hover {
    background-color: var(--tv-color-brand-hover) !important;
    border-color: var(--tv-color-brand-hover) !important;
}

/* 原本的亮藍連結與圖示 */
a[class*="link"]:hover,
[class*="color-blue"] {
    color: var(--tv-color-brand);
}

/* ---------- 字體棧：偏繁中閱讀 ---------- */
body,
button,
input,
select,
textarea {
    font-family: "PingFang TC", "Hiragino Sans CNS", "Noto Sans TC",
                 "Microsoft JhengHei", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- 頂欄字標 ---------- */
/* 原站的 .tv-header__logo-text 在部分斷點為 display:none，這裡強制顯示文字標 */
.tv-header__logo-text {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
    transform: none !important;
}

.lws-wordmark {
    display: inline-flex;
    align-items: center;
    height: 64px;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--tv-color-brand);
    white-space: nowrap;
}

[data-theme="dark"] .lws-wordmark,
.theme-dark .lws-wordmark {
    color: #e8edf9;
}

/* ---------- 圓角略收，與原站拉開辨識度 ---------- */
[class*="card-"],
[class*="container-"] > section {
    border-radius: 10px;
}

/* ---------- 首屏：覆蓋原站的促銷漸層與排版 ---------- */
.title-group-lN9dkIBN .title-lN9dkIBN,
.title-lN9dkIBN {
    background-image: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-family: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif !important;
    font-size: 56px !important;
    line-height: 1.16 !important;
    letter-spacing: -0.5px !important;
    font-weight: 800 !important;
    padding-right: 0 !important;
    text-align: start !important;
}

/* 副標 */
.sub-title-lN9dkIBN {
    font-family: "PingFang TC", "Noto Sans TC", sans-serif !important;
    font-size: 17px !important;
    line-height: 1.8 !important;
    color: #c3cfe4 !important;
    margin-top: 16px !important;
}

/* 卡片內標題與說明 */
.card-t4spe96m .up-to-t4spe96m {
    font-family: "PingFang TC", "Noto Sans TC", sans-serif !important;
    background-image: none !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-size: 34px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

.card-t4spe96m .free-month-t4spe96m {
    background-image: none !important;
    color: #7fd8cd !important;
    -webkit-text-fill-color: #7fd8cd !important;
    font-family: "PingFang TC", "Noto Sans TC", sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    margin-top: 8px !important;
}

.card-t4spe96m .offer-ends-t4spe96m {
    font-family: "PingFang TC", "Noto Sans TC", sans-serif !important;
    font-size: 13px !important;
    color: #93a2bd !important;
    letter-spacing: 0.5px !important;
}

/* 卡片整體 */
.card-t4spe96m {
    background: rgba(13, 21, 40, 0.72) !important;
    border: 1px solid rgba(120, 145, 190, 0.28) !important;
    border-radius: 14px !important;
    padding: 30px 34px 32px !important;
    backdrop-filter: blur(10px);
}

/* ---------- 首屏特色清單與按鈕 ---------- */
.lws-feature-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-top: 14px !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #d8e2f5 !important;
}

.lws-feature-list span {
    display: flex !important;
    align-items: center;
    gap: 9px;
}

.lws-feature-list span::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tv-color-turquoise, #12B5A5);
    flex: 0 0 auto;
}

.lws-hero-cta { margin-top: 24px; }

.lws-hero-btn,
.card-t4spe96m a.lws-hero-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 14px 26px !important;
    border-radius: 9px !important;
    background: var(--tv-color-brand, #17347F) !important;
    background-image: none !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-family: "PingFang TC", "Noto Sans TC", sans-serif !important;
    font-size: 15.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    line-height: 1.3 !important;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    transition: background 0.16s;
}

.lws-hero-btn:hover { background: var(--tv-color-brand-hover, #22489B) !important; }

/* ---------- 免責聲明條 ---------- */
.lws-disclaimer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 9px 16px;
    font-size: 12.5px;
    line-height: 1.5;
    text-align: center;
    color: #3d4a63;
    background: #eef2f9;
    border-bottom: 1px solid #dde4f0;
}

.lws-disclaimer strong {
    font-weight: 700;
    color: var(--tv-color-brand);
}

.lws-disclaimer a {
    color: var(--tv-color-brand);
    text-decoration: underline;
    text-underline-offset: 2px;
}

[data-theme="dark"] .lws-disclaimer,
.theme-dark .lws-disclaimer {
    color: #aab4c8;
    background: #101828;
    border-bottom-color: #1e293b;
}

[data-theme="dark"] .lws-disclaimer strong,
[data-theme="dark"] .lws-disclaimer a,
.theme-dark .lws-disclaimer strong,
.theme-dark .lws-disclaimer a {
    color: #7fd8cd;
}

/* ---------- 頁尾品牌區 ---------- */
/* ---------- 頁尾品牌 ---------- */
/* 頁尾 logo 原本是背景圖繪製的原站字標，這裡改成文字 */
.logo-s9vf589d.lws-footer-logo {
    display: inline-flex !important;
    align-items: center;
    width: auto !important;
    height: auto !important;
    background: none !important;
    background-image: none !important;
    -webkit-mask: none !important;
    mask: none !important;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.2;
    color: var(--tv-color-brand, #17347F);
    white-space: nowrap;
}

[data-theme="dark"] .logo-s9vf589d.lws-footer-logo,
.theme-dark .logo-s9vf589d.lws-footer-logo {
    color: #e8edf9;
}

.lws-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.lws-footer-brand .lws-footer-name {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--tv-color-brand);
}

[data-theme="dark"] .lws-footer-brand .lws-footer-name,
.theme-dark .lws-footer-brand .lws-footer-name {
    color: #e8edf9;
}

.lws-footer-brand .lws-footer-desc {
    font-size: 12px;
    line-height: 1.7;
    color: #6b7688;
    max-width: 420px;
}

/* ---------- 響應式 ---------- */
@media (max-width: 720px) {
    .lws-wordmark { font-size: 18px; height: 52px; letter-spacing: 1px; }
    .lws-disclaimer { font-size: 11.5px; padding: 8px 12px; }
}

/* ---------- 語言切換器（首頁浮在右下角，避開頂欄的站內按鈕） ---------- */
.lws-lang-wrap {
    position: fixed;
    right: 14px;
    bottom: 16px;
    z-index: 2147483000;
    font-family: "PingFang TC", "Noto Sans TC", -apple-system, BlinkMacSystemFont, sans-serif;
}

.lws-lang {
    position: relative;
    display: inline-block;
    font-size: 12.5px;
}

.lws-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid rgba(23, 52, 127, .16);
    background: rgba(255, 255, 255, .94);
    color: #17347F;
    list-style: none;
    user-select: none;
    box-shadow: 0 2px 10px rgba(23, 52, 127, .10);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.lws-lang-btn::-webkit-details-marker { display: none; }
.lws-lang-btn svg { flex: 0 0 auto; opacity: .8; }
.lws-lang[open] .lws-lang-btn { border-color: #17347F; }

.lws-lang-menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 6px);
    min-width: 158px;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #fff;
    border: 1px solid #e3e9f2;
    border-radius: 12px;
    box-shadow: 0 12px 34px rgba(23, 52, 127, .16);
    max-height: 70vh;
    overflow: auto;
}

.lws-lang-menu li { margin: 0; }

.lws-lang-item {
    display: block;
    padding: 7px 10px;
    border-radius: 8px;
    color: #1f2937;
    text-decoration: none;
    white-space: nowrap;
}

.lws-lang-item:hover { background: #f2f6fd; }
.lws-lang-item.is-active { color: #17347F; font-weight: 700; background: #eef4ff; }

@media (max-width: 720px) {
    .lws-lang-wrap { top: 6px; right: 8px; }
    .lws-lang-btn { padding: 5px 9px; font-size: 12px; }
}
