* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    background-color: #FFFFFF;
    color: #000;
    position: relative;
}

.dropdown-submenu {
    position: relative;
}

    .dropdown-submenu .dropdown-menu {
        top: 0;
        left: 100%;
        margin-top: -1px;
    }

.red_font {
    color: red;
}

.line-box {
    padding: 5px;
}

.line-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-weight: bold;
    color: #06c755;
}

    .line-link:hover {
        opacity: 0.8;
    }

.line-icon {
    width: 80px;
    height: 80px;
}

.line-text {
    font-size: 15px;
}

.ig-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-weight: bold;
    color: #c70000;
}

    .ig-link:hover {
        opacity: 0.8;
    }

.ig-icon {
    width: 80px;
    height: 80px;
}

.ig-text {
    font-size: 15px;
}


.listTitle {
    font-size: 24px;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 20px;
    width:100%;
}

.bg-pink {
    background-color: pink;
}

.font-white {
    color: white;
}

.text-decoration {
    text-decoration: none;
}

.ig-box {
    background: #f7f7f7;
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
}

.ig-box-final {
    background: #fff5f5;
    padding: 30px;
    border-radius: 12px;
    margin: 40px 0;
}

.seo-authority-box,
.seo-cluster-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 22px;
    margin: 40px 0;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
    border-left: 4px solid #4f46e5;
}


    .seo-authority-box h3,
    .seo-cluster-box h3 {
        font-size: 20px;
        font-weight: 700;
        margin-bottom: 12px;
        color: #1e293b;
    }


    .seo-authority-box p {
        font-size: 15px;
        color: #475569;
        margin-bottom: 15px;
        line-height: 1.7;
    }


    .seo-authority-box ul,
    .seo-cluster-box ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }


    .seo-authority-box li,
    .seo-cluster-box li {
        margin-bottom: 10px;
    }


    .seo-authority-box a,
    .seo-cluster-box a {
        display: block;
        padding: 10px 14px;
        border-radius: 8px;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        text-decoration: none;
        font-size: 15px;
        color: #0f172a;
        transition: all .25s;
    }


        .seo-authority-box a:hover,
        .seo-cluster-box a:hover {
            background: #4f46e5;
            color: #ffffff;
            transform: translateX(4px);
        }
.seo-auto-link {
    color: #0d6efd;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed #0d6efd;
}
    .seo-auto-link:hover {
        color: #0047b3;
        border-bottom: 1px solid #0047b3;
    }
.related-articles {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.related-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}

.related-grid {
    display:grid;
    grid-template-columns: repeat(auto-fill,minmax(220px,1fr));
    gap:14px;
}
    .related-grid a{
        color: #2c3e50;
        text-decoration: none;
    }

.related-card {
    padding:14px;
    border-radius:12px;
    background:#fff;
    box-shadow:0 4px 12px rgba(0,0,0,0.06);
    transition:.25s;
}
    .related-card:hover {
        transform: translateY(-4px);
    }

.related-card-title {
    font-size: 16px;
    line-height: 1.5;
}
.banner {
    background-color: white;
    text-align: center;
    padding: 0;
    margin-top: 50px;
    margin-right:auto;
    margin-left:auto;
    position: relative;
}

    .banner img {
        max-width: 100%;
        max-height: 280px;
    }

.content {    
    display: flex;
    flex-wrap: wrap;
    /*margin-top: 20px;*/
}

.left {
    flex: 3;
    background-color: white;
    padding: 10px;
    width:100%;
}

.leftcontact{
    text-align:center;

}

.right {
    flex: 1.1;
    background-color: white;
    padding: 20px;
    margin-left: 5px;
}

    .right a {
        flex: 1.1;
        background-color: white;
        padding: 0px;
        margin-left: 5px;
        color: #000;
    }

.right .main-category {
    margin-bottom: 15px;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 6px;
}

.right .main-category a {
    font-size: 18px;
    color: #2c3e50;
    text-decoration: none;
}

.right .main-category ul.sub-category {
    margin: 10px 0 0 15px;
    padding: 0;
    list-style: none;
}

.right .main-category ul.sub-category li {
    margin: 5px 0;
}

.right .main-category ul.sub-category a {
    font-size: 14px;
    color: #34495e;
}


.article {
    margin-bottom: 20px;
    padding-bottom: 10px;
    padding-right: 30px;
    border-bottom: 1px solid #ddd;
}

.article-item {
    margin-bottom: 50px;
    margin-top: 10px;
}

.article-item a {
    color: #000;
    font-weight: bold;
    text-decoration: none;
}

.article h2 {
    margin-bottom: 10px;
}

.article p {
    color: #666;
    font-size: 18px;
    text-align: justify;
}

.article-container {
    padding: 0 10px;
    text-align: justify !important;
}

.article-container p {
    font-family: Helvetica,Arial,sans-serif !important;
    color: #666 !important;
    font-size: 18px !important;
    text-align: justify !important;
}

.articleimg {
    text-align: center;
    padding-bottom:20px;
}

.article-container .wrap {
    overflow: hidden;
    border-radius: 10px 10px 0px 0px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.35);
}

.article-container table {
    font-family: 'Oswald', sans-serif;
    border-collapse: separate;
    width: 100%;
    border-spacing: 10px;
    border: 1px solid white;
}

.article-container th {
    background-color: #f70681;
    color: #ffffff;
    width: 25vw;
    height: 75px;
}

.article-container td {
    background-color: #fcdfed;
    color: #333;
    /*width: 25vw;
    height: 50px;*/
    padding: 10px;
    text-align: center;
    border-top: 1px dotted white;
    border-left: 1px dotted white;
}

.article-container tr {
    border-bottom: 1px solid white;
}

.article-container tr:last-of-type {
    border-bottom: 2px solid pink;
}

.article-container tr:nth-of-type(even) td {
    background-color: #ddd;
}

.article, .article-main {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 32px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.article:hover, .article-main:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.article img, .article-main img {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 12px;
    opacity: 0;
    transform: scale(1.02);
    animation: fadeImg 1s ease-in-out forwards;
}

.hot-articles-box {
    background-color: #fff8f0;
    border: 1px solid #ffc89f;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 20px;
}

.hot-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #ff6600;
    margin-bottom: 8px;
}

.hot-articles-list {
    list-style: none;
    padding-left: 1em;
}

    .hot-articles-list li {
        margin-bottom: 6px;
    }

.hot-link {
    text-decoration: none;
    color: #333;
}

    .hot-link:hover {
        color: #ff6600;
        text-decoration: underline;
    }

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes fadeImg {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.readybutton {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 20px;
    background-color: pink;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.readybutton:hover {
    background-color: pink;
    color: #fff;
}

/*
.readybutton {
    font-family: Oswald;
    background-color: pink;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    padding: 6px 16px;
    margin: 10px 0;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.428571429;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 4px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
}
*/



.img-container {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.img-container img {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 12px;
    opacity: 0;
    transform: scale(1.02);
    animation: fadeImg 1s ease-in-out forwards;
}

.img_source {
    position: absolute;
    right: 5px;
    bottom: 5px;
    background: rgba(255, 255, 255, 0.6);
    padding: 2px 6px;
    font-size: 12px;
    color: #333;
    border-radius: 4px;
}

.main-category {
    font-weight: bold;
    font-size: 18px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.category {
    padding-left: 20px;
    margin-bottom: 10px;
}

.img-fluid {
    max-width: 100%;
    height: auto;
    margin-top: 20px;
    margin-bottom: 20px;
}

h1 {
    /*color: #333;
    line-height: 1.6;*/
    font-size: 28px;
    margin-bottom: 24px;
    border-left: 4px solid pink;
    padding-left: 12px;
    font-weight: 900 !important;
}

h2 {
    /*color: #333;
    line-height: 1.6;*/
    font-size: 28px;
    margin-bottom: 24px;
    border-left: 4px solid pink;
    padding-left: 12px;
}

h3 {
    color: #333;
    line-height: 1.6;
}

p {
    color: #666;
    line-height: 1.6;
}

footer {
    background-color: #ccc;
    text-align: center;
    padding: 15px;
    margin-top: 20px;
    text-align:justify;
}


.logo {
    font-size: 22px;
    font-weight: bold;
}

.imgbox {
    max-width: 100%;
    margin-top: 30px;
}

.imgbox img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
}

.dialog-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

.dialog-box {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    max-width: 90%;
    text-align: center;
    animation: popIn 0.3s ease-in-out;
}

.dialog-img {
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.ad-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
}

.ad-block {
    background-color: #f9f9f9;
    padding: 16px;
    transition: all 0.3s ease;
    border-radius: 8px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.03); 
    /*cursor: pointer;*/
}

    .ad-block img {
        max-width: 100%;
    }

    .ad-block:hover {
        background-color: #f0f8ff;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

.brand-intro-box {
    background-color: #f9f9ff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
    margin-bottom: 30px;
    font-family: "Noto Sans TC", sans-serif;
}

.jc-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ddd;
    margin-bottom: 10px;
}

.jc-name {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.jc-title {
    font-size: 14px;
    color: #777;
    margin: 4px 0 12px;
}

.jc-desc {
    font-size: 13.5px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 16px;
}

.jc-btn, .jc-btn-alt {
    display: block;
    margin: 6px auto;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    max-width: 280px;
    transition: 0.3s;
}

.jc-btn {
    background-color: #4c6ef5;
    color: white;
}

    .jc-btn:hover {
        background-color: #3b5bdb;
    }

.jc-btn-alt {
    background-color: #ffe066;
    color: #333;
}

    .jc-btn-alt:hover {
        background-color: #fab005;
        color: white;
    }

.brand-intro-mobile {
    background-color: #fff9f0;
    padding: 20px;
    margin: 16px 0;
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
    font-family: "Noto Sans TC", sans-serif;
}

.d-mobile-only {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes popIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.ad-box {
    border: 2px solid pink !important;
    border-radius: 12px !important;
    box-shadow: 0 0 12px rgba(181,230,29, 0.2) !important;
    background-color: #fffefc !important;
}

.ad-box:hover {
    border: 2px solid pink !important;
    border-radius: 12px !important;
    box-shadow: 0 0 12px rgba(181,230,29, 0.2) !important;
}

#showbottom{
    margin:20px 0;

}

#showbottom a {
    color: #0d6efd;
    font-weight: 600;
    text-decoration: none;
}

    #showbottom a:hover {
        text-decoration: underline;
    }

.breadcrumb {
    font-size: 14px;
    margin-bottom: 1rem;
    color: #666;
    width:100%;
}

    .breadcrumb a {
        text-decoration: none;
        color: #007BFF;
        transition: color 0.2s ease;
    }

        .breadcrumb a:hover {
            color: #0056b3;
        }

.breadcrumb-separator {
    margin: 0 6px;
    color: #aaa;
}

.breadcrumb-current {
    color: #999;
    font-weight: normal;
}
.seo-latest-box {
    margin-top: 60px;
    padding: 28px;
    background: #f8fafc;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

    .seo-latest-box h3 {
        font-size: 22px;
        font-weight: 700;
        margin-bottom: 20px;
        color: #0f172a;
    }

.latest-articles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.latest-article-item {
    display: block;
    padding: 14px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    transition: .25s;
}

.latest-title {
    font-size: 15px;
    line-height: 1.5;
    color: #1e293b;
}

.latest-article-item:hover {
    background: #4f46e5;
    transform: translateY(-2px);
}

    .latest-article-item:hover .latest-title {
        color: #ffffff;
    }
.toc-box {
    background: #f8fafc;
    border-left: 4px solid #6366f1;
    border-radius: 10px;
    padding: 16px;
}

.toc-title {
    font-weight: 700;
    margin-bottom: 10px;
}

.toc-list {
    padding-left: 18px;
}

    .toc-list li {
        margin-bottom: 6px;
        line-height: 1.5;
    }

        .toc-list li a {
            text-decoration: none;
            color: #2c3e50;
        }
.faq-section {
    margin-top: 40px;
}

.faq-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.faq-item {
    padding: 14px 0;
}

.faq-question {
    padding: 10px;
    line-height: 1.6;
    margin-bottom: 10px;
    color: #000;
    background: #f8fafc;
    font-weight:500;
}

.faq-answer {
    color: #000;
    line-height: 1.6;
    margin-bottom: 10px;
}

.keyword-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.keyword-tag {
    padding: 6px 14px;
    background: #eef2ff;
    border-radius: 999px;
    font-size: 14px;
    transition: .2s;
}

    .keyword-tag:hover {
        background: #6366f1;
        color: #fff;
    }
.cluster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(220px,1fr));
    gap: 10px;
}
.cluster-card {
    background: #fff;
    padding: 10px;
    border-radius: 8px;
}

@media (max-width:900px) {
    .related-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width: 768px) {
    .container{
        max-width:768px;
        margin:auto;
    }
    .ad-box {
        font-size: 15px;
        padding: 1rem;
    }

    .content {
        flex-direction: column;
    }

    .right {
        margin-left: 0;
        margin-top: 20px;
    }
    .toc-box {
        padding: 12px;
    }

    .latest-articles-grid,
    .related-grid,
    .cluster-grid {
        grid-template-columns: 1fr;
    }

    .faq-title {
        font-size: 18px;
    }
  
    .brand-intro-box {
        margin: 20px auto;
        padding: 20px;
    }
    .jc-photo {
        width: 80px;
        height: 80px;
    }
    .jc-name {
        font-size: 18px;
    }
    .jc-desc {
        font-size: 13px;
    }
    .jc-btn, .jc-btn-alt {
        font-size: 13px;
        padding: 8px 14px;
    }
    .d-mobile-only {
        display: block;
    }
    .seo-authority-box,
    .seo-cluster-box {
        padding: 18px;
        margin: 30px 0;
    }

        .seo-authority-box h3,
        .seo-cluster-box h3 {
            font-size: 18px;
        }

        .seo-authority-box a,
        .seo-cluster-box a {
            font-size: 14px;
            padding: 10px;
        }
    
}


.exit-popup-overlay {
    position: fixed;
    top: -100px; 
    left: 0;
    width: 100vw;
    height: calc(100vh + 100px);
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
}


.exit-popup-content {
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.exit-popup-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
}

.exit-message {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    line-height: 1.6;
}

.brand {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}
  
.brand-name {
    color: #000;
}

.brand-tagline {
    font-size: 14px;
    color: #666;
    margin-left: 8px;
}

.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    color: #888;
    font-size: 13px;
    padding: 5px 10px;
}

.marquee-text {
    animation: marquee 12s linear infinite;
}

@keyframes marquee {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(-100%);
    }
}

.navbar {
    background-color: white !important;
}

.navbar-brand, .nav-link {
    color: black !important;
}
