/* ==========================================================================
   FastTick 官网 / 公开页面
   仅作用于 .ft-site，避免影响 FastAdmin 自带前台与后台样式。
   ========================================================================== */

.ft-site {
    --ft-ink: #0a1220;
    --ft-ink-2: #101c30;
    --ft-text: #182235;
    --ft-muted: #67758c;
    --ft-line: #e3e9f2;
    --ft-bg: #f6f8fc;
    --ft-white: #ffffff;
    --ft-blue: #2563eb;
    --ft-blue-dark: #1d4ed8;
    --ft-cyan: #22d3ee;
    --ft-green: #0f9f6e;
    --ft-amber: #b45309;
    --ft-red: #c2410c;
    --ft-radius: 16px;
    --ft-radius-sm: 10px;
    --ft-shadow: 0 18px 50px rgba(15, 32, 58, .08);
    --ft-shadow-sm: 0 8px 24px rgba(15, 32, 58, .06);
    margin: 0;
    background: var(--ft-white);
    color: var(--ft-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.ft-site *,
.ft-site *::before,
.ft-site *::after {
    box-sizing: border-box;
}

.ft-site h1, .ft-site h2, .ft-site h3, .ft-site h4, .ft-site p, .ft-site ul, .ft-site ol, .ft-site dl, .ft-site dd, .ft-site pre {
    margin: 0;
}

.ft-site a {
    color: inherit;
    text-decoration: none;
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.ft-site a:hover,
.ft-site a:focus {
    color: var(--ft-blue);
    text-decoration: none;
}

.ft-site code, .ft-site kbd, .ft-site samp {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.ft-site :focus-visible {
    outline: 3px solid rgba(37, 99, 235, .35);
    outline-offset: 2px;
}

.ft-shell {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Header ---------- */

.ft-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid transparent;
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.ft-header.is-scrolled {
    border-bottom-color: var(--ft-line);
    box-shadow: 0 6px 24px rgba(15, 32, 58, .05);
}

.ft-header-inner {
    display: flex;
    align-items: center;
    gap: 30px;
    height: 76px;
}

.ft-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: none;
}

.ft-brand:hover {
    color: inherit;
}

.ft-brand-mark {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--ft-ink);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
}

.ft-brand-name {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--ft-ink);
}

.ft-brand-dot {
    color: var(--ft-blue);
}

.ft-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.ft-nav a {
    padding: 8px 13px;
    border-radius: 8px;
    color: #4a5870;
    font-size: 14.5px;
    font-weight: 500;
}

.ft-nav a:hover {
    background: #f2f6fd;
    color: var(--ft-ink);
}

.ft-nav a.is-active {
    color: var(--ft-blue);
    background: #eef4ff;
}

.ft-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
}

.ft-nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 10px 9px;
    border: 1px solid var(--ft-line);
    border-radius: 9px;
    background: #fff;
    margin-left: auto;
}

.ft-nav-toggle span {
    display: block;
    height: 2px;
    margin: 4px 0;
    border-radius: 2px;
    background: var(--ft-ink);
    transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Buttons ---------- */

.ft-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 18px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    transition: transform .16s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.ft-btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.ft-btn:active {
    transform: translateY(0);
}

.ft-btn-primary {
    background: var(--ft-blue);
    color: #fff;
    box-shadow: 0 8px 20px rgba(37, 99, 235, .22);
}

.ft-btn-primary:hover,
.ft-btn-primary:focus {
    background: var(--ft-blue-dark);
    color: #fff;
    box-shadow: 0 10px 26px rgba(37, 99, 235, .28);
}

.ft-btn-ghost {
    border-color: var(--ft-line);
    background: #fff;
    color: var(--ft-ink);
}

.ft-btn-ghost:hover {
    border-color: #c8d3e5;
    background: #f8fafd;
    color: var(--ft-ink);
}

.ft-btn-outline-light {
    border-color: rgba(255, 255, 255, .28);
    background: transparent;
    color: #fff;
}

.ft-btn-outline-light:hover {
    border-color: rgba(255, 255, 255, .55);
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.ft-btn-lg {
    min-height: 52px;
    padding: 13px 26px;
    border-radius: 11px;
    font-size: 16px;
}

.ft-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--ft-blue);
    font-weight: 600;
    font-size: 14.5px;
}

.ft-link:hover {
    color: var(--ft-blue-dark);
}

/* ---------- Hero ---------- */

.ft-hero {
    position: relative;
    overflow: hidden;
    padding: 86px 0 76px;
    background: var(--ft-ink);
    color: #fff;
}

.ft-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 180, 255, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 180, 255, .055) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .9), transparent 88%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .9), transparent 88%);
    pointer-events: none;
}

.ft-hero-glow {
    position: absolute;
    width: 720px;
    height: 720px;
    right: -210px;
    top: -300px;
    background: radial-gradient(circle, rgba(34, 211, 238, .2), rgba(37, 99, 235, .1) 42%, transparent 68%);
    pointer-events: none;
}

.ft-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    gap: 58px;
    align-items: center;
}

.ft-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    color: #c3d2ea;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: .04em;
}

.ft-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, .14);
}

.ft-hero h1 {
    margin: 22px 0 20px;
    font-size: clamp(42px, 5.1vw, 64px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -.045em;
    color: #fff;
}

.ft-gradient-text {
    background: linear-gradient(100deg, #7dd3fc 0%, #22d3ee 45%, #34d399 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ft-hero-sub {
    max-width: 540px;
    color: #aebcd4;
    font-size: 17px;
    line-height: 1.8;
}

.ft-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.ft-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin-top: 26px !important;
    padding: 0;
    list-style: none;
    color: #93a5c2;
    font-size: 13.5px;
}

.ft-hero-points i {
    margin-right: 5px;
    color: #34d399;
    font-size: 12px;
}

/* Terminal mock */

.ft-hero-visual {
    position: relative;
    min-width: 0;
}

.ft-terminal {
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(22, 38, 62, .96), rgba(12, 23, 40, .98));
    box-shadow: 0 40px 90px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06);
    overflow: hidden;
}

.ft-terminal-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    background: rgba(255, 255, 255, .025);
}

.ft-terminal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
}

.ft-terminal-title {
    margin-left: 8px;
    color: #8ea3c2;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 11.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ft-terminal-status {
    margin-left: auto;
    padding: 2px 7px;
    border-radius: 5px;
    background: rgba(52, 211, 153, .12);
    color: #6ee7b7;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 10.5px;
    flex: none;
}

.ft-terminal-body {
    padding: 22px 22px 20px;
}

.ft-quote {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px 14px;
}

.ft-quote-symbol {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .01em;
}

.ft-quote-tag {
    margin-left: 7px;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(34, 211, 238, .1);
    color: #67e8f9;
    font-size: 10.5px;
    vertical-align: 2px;
}

.ft-quote-price {
    margin-left: auto;
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}

.ft-quote-change {
    padding: 2px 7px;
    border-radius: 5px;
    background: rgba(52, 211, 153, .12);
    color: #6ee7b7;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.ft-spark {
    display: block;
    width: 100%;
    height: 128px;
    margin: 18px 0 16px;
}

.ft-terminal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, .07);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.ft-terminal-grid span {
    display: block;
    color: #7f93b2;
    font-size: 10.5px;
    letter-spacing: .03em;
}

.ft-terminal-grid strong {
    display: block;
    margin-top: 3px;
    color: #dbe7f8;
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.ft-code {
    margin: 0;
    padding: 16px 18px;
    border-radius: 10px;
    background: #0a1526;
    border: 1px solid rgba(255, 255, 255, .07);
    color: #b9cbe6;
    font-size: 12px;
    line-height: 1.72;
    overflow: auto;
    white-space: pre;
    tab-size: 2;
}

.ft-code code {
    background: none;
    color: inherit;
    padding: 0;
    font-size: inherit;
    white-space: pre;
}

.ft-code-hero {
    max-height: 170px;
    margin-top: 16px;
    color: #8fb2df;
    font-size: 11.5px;
}

.ft-terminal-note {
    margin-top: 12px;
    color: #7186a5;
    font-size: 11.5px;
    text-align: right;
}

/* ---------- Stats ---------- */

.ft-stats {
    border-bottom: 1px solid var(--ft-line);
    background: var(--ft-white);
}

.ft-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.ft-stat {
    padding: 26px 20px;
    text-align: center;
    border-left: 1px solid var(--ft-line);
}

.ft-stat:first-child {
    border-left: 0;
}

.ft-stat strong {
    display: block;
    color: var(--ft-ink);
    font-size: 30px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
}

.ft-stat strong span {
    margin-left: 2px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ft-muted);
}

.ft-stat > span {
    display: block;
    margin-top: 4px;
    color: var(--ft-muted);
    font-size: 13px;
}

/* ---------- Sections ---------- */

.ft-section {
    padding: 86px 0;
    background: var(--ft-white);
}

.ft-section-tint {
    background: var(--ft-bg);
    border-top: 1px solid var(--ft-line);
    border-bottom: 1px solid var(--ft-line);
}

.ft-section-dark {
    background: var(--ft-ink);
    color: #fff;
}

.ft-section-head {
    max-width: 700px;
    margin: 0 auto 48px;
    text-align: center;
}

.ft-section-head-left {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    max-width: none;
    text-align: left;
}

.ft-kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--ft-blue);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.ft-kicker-light {
    color: #7dd3fc;
}

.ft-section h2,
.ft-page-head h1,
.ft-cta-grid h2,
.ft-faq-aside-card h2 {
    color: var(--ft-ink);
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.28;
    font-weight: 800;
    letter-spacing: -.035em;
}

.ft-section-head p,
.ft-lead {
    margin-top: 14px;
    color: var(--ft-muted);
    font-size: 15.5px;
    line-height: 1.8;
}

.ft-section-dark h2,
.ft-section-dark p {
    color: #fff;
}

.ft-section-dark p {
    margin-top: 12px;
    color: #a8b8d0;
}

/* ---------- Feature grid ---------- */

.ft-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.ft-feature {
    padding: 28px 26px;
    border: 1px solid var(--ft-line);
    border-radius: var(--ft-radius);
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.ft-feature:hover {
    border-color: #cbd8ec;
    box-shadow: var(--ft-shadow-sm);
    transform: translateY(-2px);
}

.ft-feature-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 17px;
    border-radius: 11px;
    background: #eef4ff;
    color: var(--ft-blue);
    font-size: 18px;
}

.ft-feature h3 {
    margin-bottom: 7px;
    color: var(--ft-ink);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.015em;
}

.ft-feature p {
    color: var(--ft-muted);
    font-size: 14px;
    line-height: 1.78;
}

/* ---------- Split / steps / code ---------- */

.ft-split {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 64px;
    align-items: center;
}

.ft-steps {
    list-style: none;
    margin: 32px 0 0 !important;
    padding: 0;
}

.ft-steps li {
    display: flex;
    gap: 18px;
    padding: 18px 0;
    border-top: 1px solid var(--ft-line);
}

.ft-steps li:first-child {
    border-top: 0;
    padding-top: 0;
}

.ft-step-no {
    flex: none;
    color: var(--ft-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    padding-top: 4px;
    font-variant-numeric: tabular-nums;
}

.ft-steps h3 {
    margin-bottom: 4px;
    color: var(--ft-ink);
    font-size: 16.5px;
    font-weight: 700;
}

.ft-steps p {
    color: var(--ft-muted);
    font-size: 14px;
}

.ft-code-card {
    border-radius: var(--ft-radius);
    background: var(--ft-ink);
    box-shadow: 0 30px 70px rgba(15, 32, 58, .18);
    overflow: hidden;
}

.ft-code-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    color: #d7e4f6;
    font-size: 12.5px;
    font-weight: 500;
}

.ft-code-card-head-sub {
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.ft-code-lang {
    color: #7e93b3;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .09em;
}

.ft-code-card .ft-code {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 18px 20px;
    font-size: 12px;
    line-height: 1.75;
}

.ft-code-link {
    display: block;
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: #7dd3fc;
    font-size: 13px;
    font-weight: 600;
}

.ft-code-link:hover {
    background: rgba(255, 255, 255, .04);
    color: #bae6fd;
}

/* ---------- Categories ---------- */

.ft-category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.ft-category {
    position: relative;
    padding: 22px 20px 20px;
    border: 1px solid var(--ft-line);
    border-radius: var(--ft-radius);
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.ft-category:hover {
    border-color: #bcd0ee;
    box-shadow: var(--ft-shadow-sm);
    transform: translateY(-2px);
    color: inherit;
}

.ft-category-count {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--ft-blue);
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.03em;
}

.ft-category h3 {
    margin-bottom: 5px;
    color: var(--ft-ink);
    font-size: 16px;
    font-weight: 700;
}

.ft-category p {
    color: var(--ft-muted);
    font-size: 12.5px;
    line-height: 1.7;
    min-height: 42px;
}

.ft-category-arrow {
    position: absolute;
    top: 20px;
    right: 18px;
    color: #b8c7dd;
    font-size: 12px;
}

.ft-ticker-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 26px;
    padding: 16px 2px 0;
    border-top: 1px solid var(--ft-line);
}

.ft-ticker-label {
    color: var(--ft-muted);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ft-ticker-item {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    font-size: 13px;
}

.ft-ticker-item strong {
    color: var(--ft-ink);
    font-weight: 700;
}

.ft-ticker-item em {
    color: var(--ft-muted);
    font-style: normal;
    font-size: 12px;
}

/* ---------- Dark CTA ---------- */

.ft-cta-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.ft-cta-grid > div:first-child {
    max-width: 660px;
}

.ft-cta-grid h2 {
    color: #fff;
}

.ft-cta-unit {
    color: #93a5c2;
    font-size: .55em;
    font-weight: 600;
    letter-spacing: 0;
}

.ft-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    flex: none;
}

/* ---------- Page head ---------- */

.ft-page-head {
    padding: 74px 0 52px;
    border-bottom: 1px solid var(--ft-line);
    background:
        radial-gradient(700px 300px at 15% -20%, rgba(37, 99, 235, .09), transparent 70%),
        var(--ft-bg);
}

.ft-page-head h1 {
    margin: 6px 0 16px;
    font-size: clamp(32px, 4.2vw, 50px);
    line-height: 1.2;
}

.ft-page-head p {
    max-width: 720px;
    color: var(--ft-muted);
    font-size: 15.5px;
    line-height: 1.8;
}

.ft-page-head-compact {
    padding: 58px 0 40px;
}

.ft-br-mobile {
    display: none;
}

/* ---------- Pricing ---------- */

.ft-section-pricing {
    padding-top: 46px;
}

.ft-pricing-controls {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 22px;
    padding-bottom: 34px;
}

.ft-control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ft-control-label {
    color: var(--ft-muted);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ft-segmented {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 3px;
    padding: 4px;
    border: 1px solid var(--ft-line);
    border-radius: 11px;
    background: #f7f9fd;
}

.ft-segment {
    padding: 7px 14px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #55647c;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}

.ft-segment:hover {
    color: var(--ft-ink);
}

.ft-segment.is-active {
    background: #fff;
    color: var(--ft-ink);
    box-shadow: 0 2px 7px rgba(15, 32, 58, .09);
}

.ft-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

.ft-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 30px 28px 26px;
    border: 1px solid var(--ft-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 1px 0 rgba(15, 32, 58, .02);
}

.ft-plan.is-featured {
    border-color: var(--ft-ink);
    background: var(--ft-ink);
    color: #fff;
    box-shadow: 0 24px 60px rgba(10, 18, 32, .22);
}

.ft-plan-badge {
    position: absolute;
    top: -11px;
    left: 28px;
    padding: 3px 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, #22d3ee, #34d399);
    color: #06202a;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .04em;
}

.ft-plan-top h2 {
    color: var(--ft-ink);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.025em;
}

.ft-plan.is-featured .ft-plan-top h2 {
    color: #fff;
}

.ft-plan-subtitle {
    margin-top: 6px;
    color: var(--ft-muted);
    font-size: 13.5px;
    min-height: 44px;
    line-height: 1.65;
}

.ft-plan.is-featured .ft-plan-subtitle {
    color: #a8b8d0;
}

.ft-plan-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.ft-plan-cats span {
    padding: 3px 8px;
    border-radius: 5px;
    background: #f0f4fa;
    color: #51617a;
    font-size: 11.5px;
}

.ft-plan.is-featured .ft-plan-cats span {
    background: rgba(255, 255, 255, .08);
    color: #b9cbe2;
}

.ft-plan-trial {
    display: inline-block;
    margin-top: 10px;
    color: var(--ft-green);
    font-size: 12px;
    font-weight: 600;
}

.ft-plan.is-featured .ft-plan-trial {
    color: #6ee7b7;
}

.ft-plan-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 22px;
}

.ft-plan-amount {
    color: var(--ft-ink);
    font-size: 38px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.04em;
    font-variant-numeric: tabular-nums;
}

.ft-plan.is-featured .ft-plan-amount {
    color: #fff;
}

.ft-plan-period {
    color: var(--ft-muted);
    font-size: 13px;
}

.ft-plan.is-featured .ft-plan-period {
    color: #93a5c2;
}

.ft-plan-subprice {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 22px;
    margin-top: 7px !important;
    color: var(--ft-muted);
    font-size: 12px;
}

.ft-plan.is-featured .ft-plan-subprice {
    color: #8fa2bd;
}

.ft-plan-original {
    text-decoration: line-through;
    opacity: .8;
}

.ft-plan-cta {
    width: 100%;
    margin-top: 20px;
}

.ft-plan.is-featured .ft-plan-cta {
    background: linear-gradient(90deg, #22d3ee, #34d399);
    border-color: transparent;
    color: #06202a;
    box-shadow: 0 10px 24px rgba(34, 211, 238, .18);
}

.ft-plan.is-featured .ft-plan-cta:hover {
    color: #06202a;
    filter: brightness(1.04);
}

.ft-plan-cta[aria-disabled="true"] {
    opacity: .45;
    pointer-events: none;
    box-shadow: none;
}

.ft-plan-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 24px 0 16px;
    color: var(--ft-muted);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ft-plan-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--ft-line);
}

.ft-plan.is-featured .ft-plan-divider {
    color: #7e93b3;
}

.ft-plan.is-featured .ft-plan-divider::after {
    background: rgba(255, 255, 255, .1);
}

.ft-plan-features {
    margin: 0 0 18px !important;
    padding: 0;
    list-style: none;
}

.ft-plan-features li {
    position: relative;
    padding-left: 21px;
    margin-bottom: 7px;
    color: #46556d;
    font-size: 13px;
    line-height: 1.65;
}

.ft-plan-features li i {
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--ft-green);
    font-size: 11px;
}

.ft-plan.is-featured .ft-plan-features li {
    color: #b9cbe2;
}

.ft-plan.is-featured .ft-plan-features li i {
    color: #6ee7b7;
}

.ft-plan-limits {
    margin: auto 0 0 !important;
    padding-top: 16px;
    border-top: 1px solid var(--ft-line);
}

.ft-plan.is-featured .ft-plan-limits {
    border-top-color: rgba(255, 255, 255, .1);
}

.ft-plan-limits > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 3px 0;
}

.ft-plan-limits dt {
    color: var(--ft-muted);
    font-size: 12px;
    font-weight: 400;
}

.ft-plan-limits dd {
    margin: 0;
    color: var(--ft-ink);
    font-size: 12.5px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.ft-plan.is-featured .ft-plan-limits dt {
    color: #8fa2bd;
}

.ft-plan.is-featured .ft-plan-limits dd {
    color: #e2ecf8;
}

.ft-pricing-footnote {
    margin-top: 28px !important;
    color: var(--ft-muted);
    font-size: 12.5px;
    text-align: center;
}

.ft-pricing-footnote a {
    color: var(--ft-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ft-included-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.ft-included {
    padding: 26px 22px;
    border: 1px solid var(--ft-line);
    border-radius: var(--ft-radius);
    background: #fff;
}

.ft-included > i {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 15px;
    border-radius: 10px;
    background: #eef4ff;
    color: var(--ft-blue);
    font-size: 16px;
}

.ft-included h3 {
    margin-bottom: 5px;
    color: var(--ft-ink);
    font-size: 15.5px;
    font-weight: 700;
}

.ft-included p {
    color: var(--ft-muted);
    font-size: 13px;
    line-height: 1.7;
}

.ft-faq-preview {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 70px;
    align-items: start;
}

.ft-faq-preview h2 {
    margin-bottom: 12px;
}

.ft-faq-preview p {
    color: var(--ft-muted);
    font-size: 14.5px;
}

.ft-faq-preview .ft-link {
    margin-top: 18px;
}

.ft-mini-faq details {
    border-bottom: 1px solid var(--ft-line);
}

.ft-mini-faq details:first-child {
    border-top: 1px solid var(--ft-line);
}

.ft-mini-faq summary {
    padding: 16px 0;
    color: var(--ft-ink);
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
}

.ft-mini-faq p {
    padding: 0 0 16px;
    color: var(--ft-muted);
    font-size: 13.5px;
    line-height: 1.75;
}

.ft-empty {
    padding: 70px 20px;
    border: 1px dashed #cfdae9;
    border-radius: var(--ft-radius);
    text-align: center;
    background: #fbfcfe;
}

.ft-empty i {
    color: #a9bbd3;
    font-size: 30px;
    margin-bottom: 12px;
}

.ft-empty h2 {
    margin-bottom: 6px;
    font-size: 20px;
}

.ft-empty p {
    color: var(--ft-muted);
    font-size: 14px;
    margin-bottom: 18px;
}

.ft-empty-compact {
    padding: 42px 20px;
}

.ft-empty-compact h2 {
    font-size: 17px;
}

/* ---------- Docs ---------- */

.ft-docs {
    padding: 44px 0 90px;
    background: #fff;
}

.ft-docs-layout {
    display: grid;
    grid-template-columns: 268px minmax(0, 1fr);
    gap: 52px;
    align-items: start;
}

.ft-docs-side {
    position: sticky;
    top: 96px;
}

.ft-docs-side-card {
    padding: 22px 20px;
    border: 1px solid var(--ft-line);
    border-radius: var(--ft-radius);
    background: #fbfcfe;
    max-height: calc(100vh - 130px);
    overflow: auto;
}

.ft-docs-version {
    display: inline-block;
    margin-bottom: 9px;
    padding: 2px 8px;
    border-radius: 4px;
    background: #e8f0ff;
    color: var(--ft-blue);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 10.5px;
    font-weight: 600;
}

.ft-docs-side-card h2 {
    color: var(--ft-ink);
    font-size: 18px;
    font-weight: 800;
}

.ft-docs-side-card > p {
    margin-top: 3px;
    color: var(--ft-muted);
    font-size: 12.5px;
}

.ft-docs-toc {
    display: flex;
    flex-direction: column;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--ft-line);
}

.ft-docs-toc a {
    padding: 5px 0;
    color: #506078;
    font-size: 12.5px;
    line-height: 1.5;
}

.ft-docs-toc a:hover {
    color: var(--ft-blue);
}

.ft-docs-toc a.is-active {
    color: var(--ft-blue);
    font-weight: 600;
}

.ft-docs-toc .ft-toc-level-3 {
    padding-left: 14px;
    color: #7a889d;
    font-size: 12px;
}

.ft-docs-side-foot {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--ft-line);
}

.ft-docs-side-foot p {
    margin-bottom: 8px;
    color: #8492a8;
    font-size: 11.5px;
    line-height: 1.6;
}

.ft-docs-side-foot .ft-link {
    font-size: 12px;
}

.ft-docs-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 10px 15px;
    margin-bottom: 26px;
    border: 1px solid var(--ft-line);
    border-radius: 9px;
    background: #fbfcfe;
    color: var(--ft-muted);
    font-size: 12px;
}

.ft-docs-meta i {
    margin-right: 4px;
}

.ft-docs-meta code {
    padding: 2px 6px;
    border-radius: 4px;
    background: #eef2f8;
    color: #43536b;
    font-size: 11.5px;
}

/* 英文协议尚未翻译时的显式提示：不能让用户以为正文已经是英文 */
.ft-docs-fallback {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 860px;
    padding: 12px 15px;
    margin-bottom: 22px;
    border: 1px solid #f0d9b5;
    border-left: 3px solid #d99a26;
    border-radius: 8px;
    background: #fdf7ec;
    color: #7a5a1e;
    font-size: 12.5px;
    line-height: 1.7;
}

.ft-docs-fallback i {
    margin-top: 2px;
    font-size: 14px;
}

.ft-markdown {
    max-width: 860px;
    color: #2a3648;
    font-size: 14.5px;
    line-height: 1.85;
}

.ft-markdown h1 {
    margin: 0 0 18px;
    color: var(--ft-ink);
    font-size: 32px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -.035em;
}

.ft-markdown h2 {
    margin: 48px 0 16px;
    padding-top: 26px;
    border-top: 1px solid var(--ft-line);
    color: var(--ft-ink);
    font-size: 23px;
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: -.025em;
    scroll-margin-top: 96px;
}

.ft-markdown h3 {
    margin: 28px 0 10px;
    color: var(--ft-ink);
    font-size: 17.5px;
    font-weight: 700;
    scroll-margin-top: 96px;
}

.ft-markdown h4 {
    margin: 22px 0 8px;
    color: var(--ft-ink);
    font-size: 15px;
    font-weight: 700;
}

.ft-markdown p {
    margin: 11px 0;
}

.ft-markdown ul,
.ft-markdown ol {
    margin: 11px 0 !important;
    padding-left: 22px;
}

.ft-markdown li {
    margin: 5px 0;
}

.ft-markdown a {
    color: var(--ft-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ft-markdown strong {
    color: var(--ft-ink);
    font-weight: 700;
}

.ft-markdown hr {
    margin: 32px 0;
    border: 0;
    border-top: 1px solid var(--ft-line);
}

.ft-markdown blockquote {
    margin: 16px 0;
    padding: 12px 18px;
    border-left: 3px solid var(--ft-blue);
    border-radius: 0 8px 8px 0;
    background: #f5f8fe;
    color: #52627a;
}

.ft-markdown blockquote p {
    margin: 0;
}

.ft-markdown code {
    padding: 2px 5px;
    border-radius: 4px;
    background: #eef2f8;
    color: #b03a5b;
    font-size: 12.5px;
}

/*
   行内代码里常是一整条没有空格的 URL：
   `GET /api/v1/klines?symbol=BTC/USDT&interval=1m&limit=500`
   默认不折行，375 宽下把整篇文档撑到 457，页面横向滚动。
   只在行内 code 上允许任意位置断行，代码块（pre code）保持原样横向滚动。
*/
.ft-markdown :not(pre) > code {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.ft-markdown pre {
    margin: 14px 0;
    padding: 16px 18px;
    border-radius: 10px;
    background: #0a1526;
    border: 1px solid #15243b;
    overflow: auto;
    font-size: 12.5px;
    line-height: 1.72;
}

.ft-markdown pre code {
    padding: 0;
    background: none;
    color: #b9cbe6;
    font-size: inherit;
}

.ft-markdown table {
    width: 100%;
    margin: 16px 0;
    border-collapse: collapse;
    font-size: 13px;
    display: block;
    overflow-x: auto;
}

.ft-markdown th,
.ft-markdown td {
    padding: 9px 12px;
    border: 1px solid var(--ft-line);
    text-align: left;
    vertical-align: top;
}

.ft-markdown th {
    background: #f7f9fd;
    color: var(--ft-ink);
    font-weight: 600;
    white-space: nowrap;
}

.ft-markdown td code {
    white-space: nowrap;
}

.ft-markdown img {
    max-width: 100%;
    height: auto;
}

/* ---------- Symbols ---------- */

.ft-section-symbols {
    padding-top: 40px;
}

.ft-symbol-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.ft-symbol-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.ft-symbol-tab {
    padding: 8px 13px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #52627a;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
}

.ft-symbol-tab span {
    margin-left: 3px;
    color: #93a1b5;
    font-size: 11.5px;
}

.ft-symbol-tab:hover {
    background: #f3f7fd;
}

.ft-symbol-tab.is-active {
    border-color: #c9d9f2;
    background: #eef4ff;
    color: var(--ft-blue);
    font-weight: 600;
}

.ft-symbol-tab.is-active span {
    color: var(--ft-blue);
}

.ft-symbol-search {
    position: relative;
    width: 300px;
    max-width: 100%;
}

.ft-symbol-search i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa9bf;
    font-size: 13px;
}

.ft-symbol-search input {
    width: 100%;
    height: 40px;
    padding: 0 14px 0 36px;
    border: 1px solid var(--ft-line);
    border-radius: 9px;
    background: #fff;
    color: var(--ft-text);
    font-size: 13.5px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.ft-symbol-search input:focus {
    border-color: #9dbdf0;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

.ft-symbol-group {
    margin-bottom: 28px;
}

.ft-symbol-group-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.ft-symbol-group-head h2 {
    color: var(--ft-ink);
    font-size: 17px;
    font-weight: 700;
}

.ft-symbol-group-head span {
    color: var(--ft-muted);
    font-size: 12px;
}

.ft-table-wrap {
    border: 1px solid var(--ft-line);
    border-radius: 12px;
    overflow-x: auto;
    background: #fff;
}

.ft-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.ft-table th {
    padding: 11px 16px;
    border-bottom: 1px solid var(--ft-line);
    background: #fafbfe;
    color: #6b7a91;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.ft-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #eef2f7;
    color: #35435a;
    white-space: nowrap;
}

.ft-table tbody tr:last-child td {
    border-bottom: 0;
}

.ft-table tbody tr:hover {
    background: #fafcff;
}

.ft-td-right {
    text-align: right !important;
}

.ft-symbol-code {
    color: var(--ft-ink);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 13px;
    font-weight: 600;
}

.ft-tag {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    background: #f0f4fa;
    color: #5c6c84;
    font-size: 11px;
    font-weight: 500;
}

.ft-mono-muted {
    color: #8a98ac;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 11px;
}

.ft-status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 5px;
    border-radius: 50%;
    background: var(--ft-green);
    vertical-align: 1px;
}

.ft-symbol-note {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    padding: 16px 18px;
    border: 1px solid #dbe7fa;
    border-radius: 10px;
    background: #f6faff;
    color: #52627a;
    font-size: 12.5px;
    line-height: 1.7;
}

.ft-symbol-note i {
    margin-top: 3px;
    color: var(--ft-blue);
}

/* ---------- Status ---------- */

.ft-section-status {
    padding-top: 40px;
}

.ft-status-banner {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    margin-bottom: 24px;
    border: 1px solid;
    border-radius: var(--ft-radius);
}

.ft-status-banner.is-ok {
    border-color: #b9e8d6;
    background: #f2fbf7;
}

.ft-status-banner.is-warn {
    border-color: #f3d7ab;
    background: #fffaf1;
}

.ft-status-banner-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.ft-status-banner.is-ok .ft-status-banner-icon {
    background: #d9f5e8;
    color: #0f9f6e;
}

.ft-status-banner.is-warn .ft-status-banner-icon {
    background: #fbe9c8;
    color: #b45309;
}

.ft-status-banner h2 {
    color: var(--ft-ink);
    font-size: 16.5px;
    font-weight: 700;
}

.ft-status-banner p {
    margin-top: 2px;
    color: #5d6d84;
    font-size: 13px;
}

.ft-status-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 40px;
}

.ft-status-card {
    padding: 20px 20px 16px;
    border: 1px solid var(--ft-line);
    border-radius: 12px;
    background: #fff;
}

.ft-status-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ft-status-name {
    color: var(--ft-ink);
    font-size: 13.5px;
    font-weight: 700;
    white-space: nowrap;
}

.ft-status-name i {
    margin-right: 5px;
    color: #8ea2bd;
}

.ft-status-card > p {
    margin-top: 9px;
    color: var(--ft-muted);
    font-size: 12px;
    line-height: 1.6;
    min-height: 38px;
}

.ft-status-meta {
    padding-top: 10px;
    border-top: 1px solid #eef2f7;
    color: #93a1b5;
    font-size: 10.5px;
    letter-spacing: .02em;
}

.ft-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 600;
    white-space: nowrap;
}

.ft-badge .ft-status-dot {
    margin-right: 0;
}

.ft-badge.is-ok {
    background: #eaf9f2;
    color: #0b7a55;
}

.ft-badge.is-ok .ft-status-dot {
    background: #0f9f6e;
}

.ft-badge.is-warn {
    background: #fdf4e5;
    color: #9a5b08;
}

.ft-badge.is-warn .ft-status-dot {
    background: #d97706;
}

.ft-badge.is-bad {
    background: #fdeeee;
    color: #b42318;
}

.ft-badge.is-bad .ft-status-dot {
    background: #dc2626;
}

.ft-badge.is-muted {
    background: #f1f4f8;
    color: #6c7b91;
}

.ft-badge.is-muted .ft-status-dot {
    background: #98a6ba;
}

.ft-status-section {
    margin-top: 34px;
}

.ft-status-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.ft-status-section-head h2 {
    color: var(--ft-ink);
    font-size: 18px;
    font-weight: 700;
}

.ft-status-section-head span {
    color: var(--ft-muted);
    font-size: 11.5px;
}

.ft-channel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.ft-channel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 18px;
    border: 1px solid var(--ft-line);
    border-radius: 10px;
    background: #fff;
}

.ft-channel strong {
    display: block;
    color: var(--ft-ink);
    font-size: 13.5px;
    font-weight: 600;
}

.ft-channel > div > span {
    display: block;
    color: #8a98ac;
    font-size: 11px;
}

.ft-channel-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: none;
}

.ft-channel-meta > span:first-child {
    color: #5c6c84 !important;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 11px !important;
}

.ft-status-note {
    margin-top: 30px;
    color: var(--ft-muted);
    font-size: 12px;
    line-height: 1.7;
}

.ft-status-note code {
    padding: 1px 5px;
    border-radius: 3px;
    background: #eef2f8;
    color: #4a5a72;
    font-size: 11px;
}

/* ---------- FAQ ---------- */

.ft-section-faq {
    padding-top: 46px;
}

.ft-faq-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

.ft-faq-aside {
    position: sticky;
    top: 100px;
}

.ft-faq-aside-card {
    padding: 24px 22px;
    border: 1px solid var(--ft-line);
    border-radius: var(--ft-radius);
    background: #fbfcfe;
}

.ft-faq-aside-card h2 {
    margin-bottom: 8px;
    font-size: 18px;
}

.ft-faq-aside-card p {
    color: var(--ft-muted);
    font-size: 12.5px;
    line-height: 1.7;
}

.ft-faq-aside-card .ft-btn {
    width: 100%;
    margin-top: 16px;
}

.ft-faq-aside-card .ft-link {
    margin-top: 12px;
    font-size: 12.5px;
}

.ft-faq-aside-links {
    display: flex;
    flex-direction: column;
    margin-top: 18px;
}

.ft-faq-aside-links a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 2px;
    color: #52627a;
    font-size: 13px;
}

.ft-faq-aside-links i {
    width: 16px;
    color: #9aabc1;
    text-align: center;
}

.ft-faq-aside-links a:hover {
    color: var(--ft-blue);
}

.ft-faq-item {
    border-bottom: 1px solid var(--ft-line);
}

.ft-faq-item:first-child {
    border-top: 1px solid var(--ft-line);
}

.ft-faq-item summary {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 19px 0;
    color: var(--ft-ink);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.55;
    cursor: pointer;
    list-style: none;
}

.ft-faq-item summary::-webkit-details-marker {
    display: none;
}

.ft-faq-item summary i {
    margin-left: auto;
    padding-top: 4px;
    color: #9aabc1;
    font-size: 12px;
    transition: transform .2s ease, color .2s ease;
    flex: none;
}

.ft-faq-item[open] summary i {
    transform: rotate(45deg);
    color: var(--ft-blue);
}

.ft-faq-no {
    flex: none;
    padding-top: 2px;
    color: #a7b5c9;
    font-size: 11px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.ft-faq-answer {
    padding: 0 32px 20px 34px;
    color: var(--ft-muted);
    font-size: 13.5px;
    line-height: 1.85;
}

/* ---------- Terms ---------- */

.ft-section-terms {
    padding-top: 46px;
}

.ft-terms-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 780px);
    gap: 66px;
    align-items: start;
}

.ft-terms-side {
    position: sticky;
    top: 100px;
}

.ft-terms-toc {
    display: flex;
    flex-direction: column;
    padding-left: 14px;
    border-left: 1px solid var(--ft-line);
}

.ft-terms-toc a {
    padding: 5px 0;
    color: #68778e;
    font-size: 12.5px;
}

.ft-terms-toc a:hover {
    color: var(--ft-blue);
}

.ft-terms-body section {
    margin-bottom: 38px;
    scroll-margin-top: 100px;
}

.ft-terms-body h2 {
    margin-bottom: 12px;
    color: var(--ft-ink);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.ft-terms-body p {
    margin: 9px 0;
    color: #3c4a60;
    font-size: 14px;
    line-height: 1.85;
}

.ft-terms-body ul {
    margin: 10px 0 !important;
    padding-left: 20px;
}

.ft-terms-body li {
    margin: 5px 0;
    color: #3c4a60;
    font-size: 14px;
    line-height: 1.8;
}

/* ---------- Footer ---------- */

.ft-footer {
    padding: 58px 0 26px;
    background: #070e19;
    color: #8fa2bd;
}

.ft-footer-grid {
    display: grid;
    grid-template-columns: 1.7fr repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.ft-footer .ft-brand-name {
    color: #fff;
}

.ft-footer .ft-brand-mark {
    background: #fff;
    color: var(--ft-ink);
}

.ft-footer-brand p {
    max-width: 330px;
    margin-top: 14px;
    color: #7e90aa;
    font-size: 12.5px;
    line-height: 1.8;
}

.ft-footer-col h4 {
    margin-bottom: 12px;
    color: #d7e3f4;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ft-footer-col a {
    display: block;
    padding: 5px 0;
    color: #8496b0;
    font-size: 12.5px;
}

.ft-footer-col a:hover {
    color: #fff;
}

.ft-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 24px;
    padding-top: 22px;
    color: #6b7d97;
    font-size: 11.5px;
}

.ft-footer-bottom p {
    margin: 0;
}

.ft-footer-bottom a {
    color: #8496b0;
}

.ft-footer-bottom a:hover {
    color: #fff;
}

.ft-footer-sep {
    margin: 0 7px;
    color: #42526a;
}

/* ---------- Responsive ---------- */

/* ---------- News & Calendar ---------- */

.ft-news-livebar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    color: var(--ft-muted);
    font-size: 13px;
}

.ft-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ft-green);
    box-shadow: 0 0 0 0 rgba(15, 159, 110, .45);
    animation: ft-live-pulse 2.2s ease-out infinite;
}

@keyframes ft-live-pulse {
    0% { box-shadow: 0 0 0 0 rgba(15, 159, 110, .45); }
    70% { box-shadow: 0 0 0 9px rgba(15, 159, 110, 0); }
    100% { box-shadow: 0 0 0 0 rgba(15, 159, 110, 0); }
}

.ft-news-live {
    color: var(--ft-green);
    font-weight: 600;
}

.ft-news-livebar.is-stale .ft-live-dot {
    background: var(--ft-amber);
    animation: none;
}

.ft-news-live.is-stale {
    color: var(--ft-amber);
}

.ft-news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 296px;
    gap: 36px;
    align-items: start;
}

.ft-news-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--ft-line);
}

.ft-news-refresh {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.ft-news-day + .ft-news-day {
    margin-top: 26px;
}

.ft-news-day-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 0 12px;
    color: var(--ft-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ft-news-day-head::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--ft-line);
}

.ft-news-item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 16px;
    padding: 16px 0 16px 14px;
    border-bottom: 1px solid var(--ft-line);
    border-left: 2px solid transparent;
}

.ft-news-item.is-important {
    border-left-color: var(--ft-red);
    background: rgba(194, 65, 12, .035);
    border-radius: 0 8px 8px 0;
}

.ft-news-item:hover {
    background: var(--ft-bg);
}

.ft-news-time {
    padding-top: 2px;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.ft-news-time span {
    display: block;
    color: var(--ft-ink);
    font-size: 14.5px;
    font-weight: 700;
}

.ft-news-time em {
    display: block;
    color: var(--ft-muted);
    font-size: 11px;
    font-style: normal;
}

.ft-news-flag {
    display: inline-block;
    margin-bottom: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    background: rgba(194, 65, 12, .12);
    color: var(--ft-red);
    font-size: 11px;
    font-weight: 700;
}

.ft-news-text {
    display: block;
    color: var(--ft-text);
    font-size: 14.5px;
    line-height: 1.75;
    word-break: break-word;
}

/* 正文是纯文本，不再有 a.ft-news-text 的 hover 变色 */

.ft-news-stocks {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.ft-news-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 9px;
    border: 1px solid var(--ft-line);
    border-radius: 6px;
    background: var(--ft-bg);
    font-size: 11.5px;
    line-height: 1.7;
}

.ft-news-stock b {
    color: var(--ft-ink);
    font-weight: 600;
}

.ft-news-stock em {
    font-style: normal;
    font-variant-numeric: tabular-nums;
}

.ft-news-stock em.is-up {
    color: var(--ft-green);
}

.ft-news-stock em.is-down {
    color: var(--ft-red);
}

.ft-news-meta {
    margin-top: 8px;
    color: var(--ft-muted);
    font-size: 11.5px;
}

.ft-news-more-wrap {
    padding-top: 22px;
    text-align: center;
}

.ft-news-notice {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 22px;
    padding: 16px 18px;
    border: 1px solid rgba(180, 83, 9, .3);
    border-radius: 12px;
    background: rgba(180, 83, 9, .06);
}

.ft-news-notice i {
    margin-top: 3px;
    color: var(--ft-amber);
}

.ft-news-notice strong {
    display: block;
    color: var(--ft-ink);
    font-size: 14px;
}

.ft-news-notice p {
    margin-top: 4px;
    color: var(--ft-muted);
    font-size: 13px;
}

.ft-news-aside {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 16px;
}

.ft-news-card {
    padding: 22px;
    border: 1px solid var(--ft-line);
    border-radius: var(--ft-radius);
    background: var(--ft-white);
    box-shadow: var(--ft-shadow-sm);
}

.ft-news-card h2 {
    color: var(--ft-ink);
    font-size: 15px;
    font-weight: 700;
}

.ft-news-card ul {
    margin: 12px 0 0;
    padding-left: 18px;
    color: var(--ft-muted);
    font-size: 13px;
    line-height: 1.8;
}

.ft-news-card li + li {
    margin-top: 6px;
}

.ft-news-card-cta {
    background: var(--ft-bg);
}

.ft-news-card-cta p {
    margin-top: 10px;
    color: var(--ft-muted);
    font-size: 13px;
    line-height: 1.75;
}

.ft-news-card-cta .ft-btn {
    margin-top: 16px;
}

.ft-news-link {
    display: block;
    margin-top: 12px;
    color: var(--ft-blue);
    font-size: 13px;
    font-weight: 600;
}

.ft-cal-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    color: var(--ft-muted);
    font-size: 13px;
}

.ft-cal-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.ft-cal-toolbar .ft-segment span {
    color: var(--ft-muted);
    font-size: 11.5px;
}

.ft-cal-day + .ft-cal-day {
    margin-top: 30px;
}

.ft-cal-day-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 12px;
}

.ft-cal-day-head h2 {
    color: var(--ft-ink);
    font-size: 16px;
    font-weight: 700;
}

.ft-cal-day-head h2 em {
    margin-left: 6px;
    color: var(--ft-muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
}

.ft-cal-day-head > span {
    color: var(--ft-muted);
    font-size: 12px;
}

.ft-cal-table td {
    white-space: normal;
}

.ft-cal-time {
    color: var(--ft-ink);
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.ft-cal-star {
    display: block;
    color: var(--ft-amber);
    font-size: 11px;
    letter-spacing: 1px;
    line-height: 1.2;
}

.ft-cal-title {
    min-width: 220px;
    color: var(--ft-text);
    font-weight: 500;
}

.ft-cal-num {
    color: var(--ft-muted);
    font-variant-numeric: tabular-nums;
}

.ft-cal-actual {
    color: var(--ft-ink);
    font-weight: 600;
}

/* 过滤/增量更新会直接切 hidden；组件本身设了 display，必须显式覆盖 */
.ft-news-item[hidden],
.ft-news-day[hidden],
.ft-cal-day[hidden],
.ft-cal-table tr[hidden] {
    display: none !important;
}

@media (max-width: 1080px) {
    .ft-news-layout {
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 26px;
    }
}

@media (max-width: 900px) {
    .ft-news-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .ft-news-aside {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .ft-news-item {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 12px;
        padding-left: 10px;
    }

    .ft-news-aside {
        grid-template-columns: minmax(0, 1fr);
    }

    .ft-cal-title {
        min-width: 0;
    }
}

@media (max-width: 1080px) {
    .ft-hero-grid {
        gap: 38px;
    }

    .ft-feature-grid,
    .ft-plan-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ft-category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ft-status-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ft-included-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ft-docs-layout {
        grid-template-columns: 230px minmax(0, 1fr);
        gap: 34px;
    }
}

@media (max-width: 900px) {
    .ft-header-inner {
        gap: 16px;
    }

    .ft-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
        padding: 12px 20px 18px;
        border-bottom: 1px solid var(--ft-line);
        background: #fff;
        box-shadow: 0 18px 30px rgba(15, 32, 58, .08);
    }

    .ft-nav.is-open {
        display: flex;
    }

    .ft-nav a {
        padding: 10px 12px;
    }

    .ft-nav-toggle {
        display: block;
        order: 3;
    }

    .ft-header-actions {
        margin-left: auto;
    }

    .ft-nav-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .ft-nav-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .ft-nav-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .ft-hero {
        padding: 62px 0 58px;
    }

    .ft-hero-grid {
        grid-template-columns: 1fr;
    }

    .ft-hero-sub {
        max-width: none;
    }

    .ft-hero-visual {
        max-width: 620px;
    }

    .ft-section {
        padding: 64px 0;
    }

    .ft-split,
    .ft-faq-preview {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .ft-section-head-left {
        display: block;
    }

    .ft-section-head-left .ft-link {
        margin-top: 14px;
    }

    .ft-cta-grid {
        display: block;
    }

    .ft-cta-actions {
        margin-top: 24px;
    }

    /*
       1fr 的最小尺寸是子项的 min-content，文档主体里有一条 100+ 字符的
       curl 命令，min-content 约 456px，于是整列在 375 视口被撑到 456 ——
       页面横向溢出的根因在这里，不在代码块本身。改成 minmax(0, 1fr)
       才允许轨道收缩到容器宽度以内，代码块再自己横向滚动。
    */
    .ft-docs-layout,
    .ft-faq-layout,
    .ft-terms-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    /* 网格子项默认 min-width:auto，同样会拒绝收缩 */
    .ft-docs-side,
    .ft-docs-main,
    .ft-faq-aside,
    .ft-faq-list,
    .ft-terms-side,
    .ft-terms-body {
        min-width: 0;
    }

    .ft-docs-side,
    .ft-faq-aside,
    .ft-terms-side {
        position: static;
    }

    .ft-docs-side-card {
        max-height: none;
    }

    .ft-docs-toc {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0 18px;
    }

    .ft-docs-toc .ft-toc-level-3 {
        display: none;
    }

    .ft-terms-toc {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px 18px;
        padding: 12px 0 0;
        border-left: 0;
        border-top: 1px solid var(--ft-line);
    }
}

@media (max-width: 720px) {
    .ft-shell {
        padding: 0 18px;
    }

    .ft-header-actions .ft-btn-ghost {
        display: none;
    }

    .ft-hero h1 {
        font-size: 38px;
    }

    .ft-hero-actions .ft-btn {
        width: 100%;
    }

    .ft-hero-points {
        display: block;
    }

    .ft-hero-points li {
        margin: 6px 0;
    }

    .ft-terminal-body {
        padding: 18px 16px 16px;
    }

    .ft-quote-price {
        margin-left: 0;
        width: 100%;
        font-size: 26px;
    }

    .ft-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ft-stat {
        border-left: 0;
        border-top: 1px solid var(--ft-line);
        padding: 20px 12px;
    }

    .ft-stat:nth-child(-n+2) {
        border-top: 0;
    }

    .ft-stat:nth-child(even) {
        border-left: 1px solid var(--ft-line);
    }

    .ft-feature-grid,
    .ft-plan-grid,
    .ft-category-grid,
    .ft-included-grid,
    .ft-status-grid,
    .ft-channel-grid {
        grid-template-columns: 1fr;
    }

    .ft-plan.is-featured {
        order: -1;
    }

    .ft-plan {
        padding: 26px 22px 22px;
    }

    .ft-pricing-controls {
        display: block;
    }

    .ft-control-group + .ft-control-group {
        margin-top: 16px;
    }

    .ft-segmented {
        display: flex;
        width: 100%;
    }

    .ft-segment {
        flex: 1 1 auto;
        padding: 7px 8px;
        font-size: 12.5px;
    }

    .ft-section-head {
        margin-bottom: 32px;
    }

    .ft-section h2,
    .ft-page-head h1 {
        font-size: 28px;
    }

    .ft-br-mobile {
        display: block;
    }

    .ft-page-head {
        padding: 48px 0 36px;
    }

    .ft-symbol-toolbar {
        display: block;
    }

    .ft-symbol-search {
        width: 100%;
        margin-top: 14px;
    }

    .ft-symbol-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }

    .ft-symbol-tab {
        flex: none;
    }

    .ft-table th,
    .ft-table td {
        padding: 10px 12px;
    }

    .ft-markdown {
        font-size: 14px;
    }

    .ft-markdown h1 {
        font-size: 26px;
    }

    .ft-markdown h2 {
        font-size: 20px;
        margin-top: 38px;
    }

    .ft-markdown table {
        font-size: 12px;
    }

    .ft-markdown th,
    .ft-markdown td {
        padding: 8px 10px;
    }

    .ft-faq-answer {
        padding: 0 0 18px 30px;
    }

    .ft-footer {
        padding-top: 42px;
    }

    .ft-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 26px;
    }

    .ft-footer-brand {
        grid-column: 1 / -1;
    }

    .ft-footer-bottom {
        display: block;
    }

    .ft-footer-bottom p + p {
        margin-top: 7px;
    }

    .ft-cta-actions .ft-btn {
        width: 100%;
    }
}
