﻿/* WikiFX Header/Footer Helpers */
.item-nav-list:hover .icon-arrow-down {
    transform: rotate(180deg);
}

.nav-son {
    display: none;
}

.item-nav-list:hover .nav-son {
    display: block;
}

.wikifx-header-wrapper .nav-son {
    z-index: 1000;
}

.pc-header,
.pc-footer {
    display: block;
}

.mobile-header,
.mobile-footer {
    display: none;
}

@media (max-width: 992px) {

    .pc-header,
    .pc-footer {
        display: none !important;
    }

    .mobile-header,
    .mobile-footer {
        display: block !important;
    }

    .layout-container {
        padding-top: 60px;
    }
}

.mobile-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: #323947;
    height: 60px;
}

.mobile-header .primary-head {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 16px;
    justify-content: space-between;
}

.mobile-header .fx-logo {
    height: 28px;
}

.mobile-head-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.mobile-head-right-search {
    background: #fff;
    border-radius: 17px;
    height: 34px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    margin-right: 15px;
    flex: 1;
    max-width: 200px;
}

.mobile-head-right-search input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 14px;
}

.mobile-head-right-search .iconfont {
    color: #999;
}

.mobile-footer {
    background-color: #2D3340;
    color: rgba(255, 255, 255, 0.7);
    padding: 0 16px 16px;
}

.mobile-footer .country-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.mobile-footer .bottom-logo {
    height: 24px;
}

.mobile-footer .links-box {
    gap: 8px;
    font-size: 13px;
    margin-bottom: 20px;
}

.mobile-footer .links-box a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.mobile-footer .disclaimer {
    font-size: 11px;
    line-height: 1.6;
    opacity: 0.6;
}

/* Account Template Styles */
:root {
    --yellow: #f6c600;
    --ink: #1f2933;
    --muted: #6b7280;
    --line: #e7e9ee;
    --paper: #fff;
    --soft: #f6f7f9;
    --danger: #c2410c;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f3f4f6;
    color: var(--ink);
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    line-height: 1.65;
}

a {
    color: inherit;
    text-decoration: none;
}

.wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.hero {
    /* background: linear-gradient(180deg, #fff 0%, #f7f8fa 100%);
    border-bottom: 1px solid var(--line); */
}

.hero-inner {
    padding: 34px 0 30px;
}

.broker-card {
    background: var(--paper);
    border: 1px solid #9bbfea;
    border-radius: 8px;
    padding: 24px;
    display: grid;
    grid-template-columns: 224px minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
    box-shadow: 0 8px 22px rgba(40, 79, 126, .06);
}

.broker-media {
    display: grid;
    gap: 16px;
    justify-items: center;
    align-items: center;
}

.broker-logo {
    width: 224px;
    height: 134px;
    border-radius: 8px;
    border: 1px solid #d8dde6;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    overflow: hidden;
    position: relative;
}

.broker-logo img {
    width: 150px;
    height: 82px;
    object-fit: contain;
    display: block;
}

.broker-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 4px 0;
}

h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 3vw, 36px);
    line-height: 1.12;
    letter-spacing: 0;
}

.facts {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    color: #4b5563;
    font-size: 15px;
    margin-bottom: 0;
}

.fact {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid #edf0f4;
    border-radius: 6px;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.fact a {
    color: #0074FF;
    text-decoration: none;
}

.fact+.fact::before {
    content: none;
}

.layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 28px;
    padding: 0 0 46px;
}

.toc {
    position: sticky;
    top: 18px;
    align-self: start;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
}

.toc strong {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
}

.toc a {
    display: block;
    padding: 8px 0;
    border-top: 1px solid #f0f1f3;
    color: #4b5563;
    font-size: 14px;
}

.toc a span {
    position: relative;
    padding-left: 10px;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.toc a span::before {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    width: 2px;
    height: 100%;
    background: #f2bb05;
}

.toc a:hover {
    color: #111827;
}

.content {
    display: grid;
    gap: 18px;
}

.section {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: clamp(20px, 3vw, 30px);
}

/* h2 {
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    font-size: 28px;
    line-height: 1.25;
    letter-spacing: 0;
} */

.content h2 {
    margin: 34px 0 18px;
    padding: 14px 18px;
    border-left: 4px solid #2563eb;
    border-bottom: 1px solid #f1e8d8;
    border-radius: 10px;
    background: #fffdf7;
    font-size: 28px;
    line-height: 1.25;
    letter-spacing: 0;
    color: #111827;
    font-weight: 700;
}

h3 {
    margin: 30px 0 14px;
    padding-left: 12px;
    border-left: 4px solid #f6c600;
    font-size: 22px;
    line-height: 1.28;
    font-weight: 800;
    color: #172033;
    letter-spacing: 0;
}

/* .guide-title {
    margin: 32px 0 18px;
    padding: 0 0 12px;
    border-bottom: 1px solid #e6edf5;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 800;
    color: #172033;
} */

h4 {
    margin: 18px 0 8px;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
    color: #3f4a5a;
}

p {
    margin: 0 0 14px;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: anywhere;
}

ol,
ul {
    padding-left: 22px;
    margin: 10px 0 16px;
}

li {
    margin: 5px 0;
}

.guide-callouts {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
    gap: 12px;
    margin: 0 0 18px;
}

.guide-callout {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px 16px;
    background: #f9fafb;
}

.guide-callout strong {
    display: block;
    margin-bottom: 5px;
    color: #111827;
    font-size: 14px;
}

.guide-callout a {
    color: #1d4ed8;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.guide-callout-warning {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #7c2d12;
}

.source-note {
    color: var(--muted);
    font-size: 14px;
    border-top: 1px dashed #d8dde6;
    padding-top: 14px;
}

.source-note a {
    color: #1d4ed8;
    text-decoration: underline;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.data-table th,
.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    background: #f9fafb;
    width: 34%;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.review {
    position: relative;
    border: 1px solid #dde6f2;
    border-radius: 8px;
    height: 280px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 8px 20px rgba(17, 24, 39, .04);
    overflow: hidden;
}

.review.is-expanded {
    height: auto;
    min-height: 280px;
    overflow: visible;
}

.review::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #f2bb05;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #1f2937;
}

.review-logo {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), 0 4px 10px rgba(17, 24, 39, .12);
}

.review-logo.logo-blue {
    background: linear-gradient(135deg, #2563eb, #38bdf8);
}

.review-logo.logo-orange {
    background: linear-gradient(135deg, #f97316, #facc15);
}

.review-logo.logo-green {
    background: linear-gradient(135deg, #059669, #34d399);
}

.review-logo.logo-purple {
    background: linear-gradient(135deg, #7c3aed, #f472b6);
}

.review-logo.logo-red {
    background: linear-gradient(135deg, #dc2626, #fb7185);
}

.review-logo.logo-teal {
    background: linear-gradient(135deg, #0f766e, #2dd4bf);
}

.review-logo.logo-indigo {
    background: linear-gradient(135deg, #4f46e5, #818cf8);
}

.review-logo.logo-pink {
    background: linear-gradient(135deg, #db2777, #f9a8d4);
}

.review-logo.logo-slate {
    background: linear-gradient(135deg, #334155, #94a3b8);
}

.review-logo.logo-amber {
    background: linear-gradient(135deg, #d97706, #fbbf24);
}

.review h4 {
    margin: 0 0 8px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 16px;
    line-height: 1.35;
    color: #111827;
}

.review.is-expanded h4 {
    display: block;
    overflow: visible;
}

.review-content {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.review.is-overflowing:not(.is-expanded) .review-content::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 46px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 78%);
    pointer-events: none;
}

.review.is-expanded .review-content {
    flex: none;
    overflow: visible;
}

.review-text {
    margin: 0;
    color: #374151;
}

.review-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed #dbe1ea;
}

.review-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    flex: 0 0 auto;
    padding: 6px 12px;
    border: 1px solid #1d4ed8;
    border-radius: 4px;
    background: #1d4ed8;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.review-toggle:hover {
    border-color: #1e40af;
    background: #1e40af;
}

.review:not(.is-overflowing) .review-toggle {
    display: none;
}

.review:not(.is-overflowing) .review-footer-action-only {
    display: none;
}

.review-meta {
    min-width: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

details {
    border: 1px solid #d8e2ef;
    border-radius: 8px;
    padding: 0;
    background: #fff;
    box-shadow: 0 4px 14px rgba(17, 24, 39, .03);
    overflow: hidden;
}

details[open] {
    border-color: #9bbfea;
    background: #f8fbff;
}

details+details {
    margin-top: 10px;
}

summary {
    position: relative;
    cursor: pointer;
    padding: 15px 48px 15px 16px;
    font-weight: 800;
    list-style: none;
    color: #111827;
}

summary::after {
    content: "+";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    background: #eef2f7;
    color: #1f2937;
    font-size: 18px;
    line-height: 1;
}

details[open] summary::after {
    content: "-";
    background: #3f84b3;
    color: #fff;
}

summary::-webkit-details-marker {
    display: none;
}

details p {
    padding: 0 16px 16px;
    color: #374151;
}

.popular-broker-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.popular-broker {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f9fafb;
}

.popular-broker-logo {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #d8dde6;
    border-radius: 6px;
    background: #fff;
}

.popular-broker-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.popular-broker-name {
    min-width: 0;
    color: #111827;
    font-weight: 800;
    line-height: 1.3;
}

@media (max-width: 860px) {
    .broker-card {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }

    /* .broker-media {
        grid-template-columns: 160px minmax(0, 1fr);
        align-items: stretch;
        gap: 12px;
    } */

    .broker-logo {
        width: 160px;
        height: 92px;
    }

    .broker-logo img {
        width: min(112px, 72%);
        height: auto;
        object-fit: contain;
    }

    .facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .layout {
        grid-template-columns: 1fr;
    }

    .toc {
        display: flex;
        overflow-x: auto;
        align-items: center;
        gap: 20px;
        padding: 0 16px;
        top: 60px;
        z-index: 99;
    }

    .toc a {
        border-top: none;
        flex: none;
    }

    .toc strong {
        margin: 0;
    }

    .review-grid {
        grid-template-columns: 1fr;
    }

    .guide-callouts {
        grid-template-columns: 1fr;
    }

    .popular-broker-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .hero-inner {
        padding: 20px 0 22px;
    }

    .broker-media {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .broker-logo {
        width: 160px;
    }

    .broker-logo {
        height: 104px;
    }

    h1 {
        font-size: 28px;
    }

    .facts {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .fact {
        width: 100%;
        min-height: auto;
        padding: 8px 10px;
        background: #f3f4f6;
        border-radius: 4px;
    }

    .fact+.fact::before {
        content: none;
    }

    .popular-broker-grid {
        grid-template-columns: 1fr;
    }
}