@font-face { font-family: 'Manrope'; font-display: swap !important; }

/* 預留空間防止佈局跳動 (CLS) */
.tradingview-widget-container { 
    min-height: 46px; 
    background: #131722; 
    width: 100%;
}

/* 導航欄圖標與版權優化 */
:where(.nav, .gh-head-menu) :is(.nav-facebook, .nav-instagram, .nav-tiktok, .nav-x, .nav-youtube) a {
    font-size: 0 !important; display: inline-block;
}
:where(.nav, .gh-head-menu) :is(.nav-facebook, .nav-instagram, .nav-tiktok, .nav-x, .nav-youtube) a::before {
    font-family: "Font Awesome 6 Brands"; font-size: 20px; font-display: swap;
}
.nav-facebook a::before {content: "\f09a"} .nav-instagram a::before {content: "\f16d"}
.nav-tiktok a::before {content: "\e07b"} .nav-x a::before {content: "\e61b"}
.nav-youtube a::before {content: "\f167"}

/* 1. 全局 Footer 容器優化 */
.gh-foot {
    background-color: #14467c !important; 
    width: 100%;
    box-sizing: border-box;
    padding: 60px 0 40px;
}

.site-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
    color: #ffffff;
}

.footer-social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.footer-social-links a {
    color: #ffffff !important;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.footer-social-links a:hover {
    opacity: 0.8;
}

.footer-social-links svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-legal-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px 25px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
}

.footer-legal-links a {
    color: #ffffff !important;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-legal-links a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.footer-disclaimer {
    margin-bottom: 24px;
    padding: 0 20px;
}

.disclaimer-text {
    font-size: 12px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9) !important; 
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    white-space: normal;
    word-break: break-word;
}

.footer-copyright {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6) !important; 
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* 7. Logo 高清化優化 */
.gh-head-logo img {
    width: auto;
    height: 40px;
    display: block;
}

/* 8. 強制 Hero Grid 佈局 (2.5fr 1fr) */
.fq-hero-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 30px;
    margin: 40px 0 60px;
}

.fq-main-post {
    position: relative;
}

.fq-hero-post-large {
    position: relative;
    height: 550px;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.fq-hero-post-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: transform 0.5s ease;
}

.fq-hero-post-large:hover .fq-hero-post-image {
    transform: scale(1.05);
}

.fq-hero-post-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: #fff;
    z-index: 2;
}

.fq-hero-post-tags {
    margin-bottom: 12px;
}

.fq-tag {
    background: #14467c;
    color: #fff;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 2px;
}

.fq-hero-post-title {
    font-size: 42px;
    line-height: 1.1;
    font-weight: 800;
    margin: 0 0 20px;
    color: #fff !important;
}

.fq-hero-post-meta {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.8;
}

.fq-sidebar-posts {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.fq-hero-post-small-link {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

.fq-hero-post-small-image-wrapper {
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
}

.fq-hero-post-small-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fq-hero-post-small-title {
    font-size: 17px;
    line-height: 1.3;
    font-weight: 700;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 9. Collection Sections */
.fq-collection {
    margin-bottom: 60px;
}

.fq-collection-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 2px solid #000;
    margin-bottom: 30px;
    padding-bottom: 10px;
}

.fq-collection-title {
    font-size: 26px;
    font-weight: 800;
    margin: 0;
}

.fq-collection-view-all {
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    color: #000;
}

.fq-collection-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.fq-grid-post-link {
    text-decoration: none;
    color: inherit;
}

.fq-grid-post-image-wrapper {
    aspect-ratio: 16/9;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.fq-grid-post-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fq-grid-post-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #14467c;
    display: block;
    margin-bottom: 8px;
}

.fq-grid-post-title {
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
    margin: 0 0 10px;
}

/* 10. 手機版適應 (RWD) */
@media (max-width: 1024px) {
    .fq-hero-grid {
        grid-template-columns: 1fr;
    }
    .fq-collection-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .gh-head-logo img {
        height: 32px;
    }
    .fq-hero-post-large {
        height: 400px;
    }
    .fq-hero-post-title {
        font-size: 30px;
    }
    .fq-hero-post-small-link {
        grid-template-columns: 90px 1fr;
    }
    .fq-collection-grid {
        grid-template-columns: 1fr;
    }
    .gh-foot {
        padding: 40px 0 30px;
    }
}
