/**
 * FulfillTrust - 免登录信任工具台样式
 */

.ft-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #2563eb 100%);
    color: #fff;
    padding: 2.75rem 1.5rem 2.25rem;
}

.ft-hero-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.ft-hero h1 {
    font-size: clamp(1.75rem, 3.4vw, 2.6rem);
    line-height: 1.2;
    margin: 0 0 0.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.ft-hero p {
    max-width: 760px;
    margin: 0;
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.7;
}

.ft-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin-top: 1.25rem;
    font-size: 0.8125rem;
    color: #93c5fd;
}

.ft-layout {
    max-width: 1180px;
    margin: -1.25rem auto 0;
    padding: 0 1.5rem 2.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 1.5rem;
    align-items: start;
}

.ft-main {
    min-width: 0;
}

.ft-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.ft-tabs {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.ft-tab {
    flex: 1;
    padding: 1rem 0.75rem;
    border: 0;
    background: transparent;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.15s ease;
}

.ft-tab:hover {
    color: #2563eb;
    background: #eff6ff;
}

.ft-tab.active {
    color: #1d4ed8;
    border-bottom-color: #2563eb;
    background: #fff;
}

.ft-panel {
    display: none;
    padding: 1.5rem;
}

.ft-panel.active {
    display: block;
}

.ft-field {
    margin-bottom: 1rem;
}

.ft-field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.4rem;
}

.ft-input,
.ft-select {
    width: 100%;
    padding: 0.75rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9375rem;
    color: #111827;
    background: #fff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.ft-input:focus,
.ft-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.ft-hint {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.35rem;
}

.ft-submit {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 0;
    border-radius: 9px;
    background: #2563eb;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.ft-submit:hover {
    background: #1d4ed8;
}

.ft-submit:disabled {
    background: #93c5fd;
    cursor: not-allowed;
}

.ft-free-note {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: #059669;
}

.ft-result {
    margin-top: 1.5rem;
}

.ft-result-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    padding: 1.25rem 1.35rem;
}

.ft-result-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.ft-result-head h3 {
    margin: 0;
    font-size: 1.05rem;
    color: #0f172a;
    word-break: break-all;
}

.ft-risk {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.ft-risk.low { background: #dcfce7; color: #166534; }
.ft-risk.medium { background: #fef3c7; color: #92400e; }
.ft-risk.high { background: #fee2e2; color: #991b1b; }

.ft-summary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    padding: 0.85rem 1rem;
    font-size: 0.875rem;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.ft-flags {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.ft-flag {
    display: flex;
    gap: 0.6rem;
    padding: 0.65rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    line-height: 1.5;
    background: #f8fafc;
    border-left: 3px solid #94a3b8;
    color: #334155;
}

.ft-flag.high { background: #fef2f2; border-left-color: #dc2626; color: #7f1d1d; }
.ft-flag.medium { background: #fffbeb; border-left-color: #f59e0b; color: #78350f; }
.ft-flag.info { background: #eff6ff; border-left-color: #3b82f6; color: #1e3a8a; }

.ft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ft-kv {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
}

.ft-kv .k {
    font-size: 0.6875rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.2rem;
}

.ft-kv .v {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
    word-break: break-all;
}

.ft-quota {
    font-size: 0.75rem;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 7px;
    padding: 0.5rem 0.7rem;
    margin-bottom: 1rem;
}

.ft-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding-top: 1rem;
    border-top: 1px dashed #e2e8f0;
}

.ft-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid #2563eb;
    background: #fff;
    color: #1d4ed8;
    transition: all 0.15s;
}

.ft-cta:hover {
    background: #eff6ff;
}

.ft-cta.primary {
    background: #2563eb;
    color: #fff;
}

.ft-cta.primary:hover {
    background: #1d4ed8;
}

.ft-cta .lock {
    font-size: 0.7rem;
    opacity: 0.8;
}

.ft-note {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 0.75rem;
    line-height: 1.5;
}

.ft-actions-empty {
    text-align: center;
    color: #94a3b8;
    font-size: 0.875rem;
    padding: 1.5rem 1rem;
}

.ft-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 9px;
    padding: 0.8rem 1rem;
    font-size: 0.875rem;
}

/* 侧边栏 */
.ft-side {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.ft-side-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.ft-side-head {
    padding: 0.85rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
}

.ft-advisor {
    display: flex;
    flex-direction: column;
    height: 430px;
}

.ft-advisor .messages-container {
    background: #f8fafc;
}

.ft-advisor .chat-input-area {
    padding: 0.6rem 0.75rem 0.75rem;
}

.ft-stats {
    padding: 0.75rem 1rem;
}

.ft-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.8125rem;
    color: #475569;
}

.ft-stat-row:not(:last-child) {
    border-bottom: 1px solid #f1f5f9;
}

.ft-stat-row strong {
    color: #1d4ed8;
    font-size: 0.9375rem;
}

.ft-scam-list {
    max-height: 300px;
    overflow-y: auto;
}

.ft-scam-item {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.8125rem;
    cursor: pointer;
}

.ft-scam-item:hover {
    background: #eff6ff;
}

.ft-scam-item .d {
    font-weight: 600;
    color: #dc2626;
    word-break: break-all;
}

.ft-scam-item .m {
    color: #94a3b8;
    font-size: 0.6875rem;
    margin-top: 0.15rem;
}

@media (max-width: 980px) {
    .ft-layout {
        grid-template-columns: 1fr;
        margin-top: 0;
        padding-top: 1.25rem;
    }
    .ft-hero {
        padding: 2rem 1rem 1.5rem;
    }
    .ft-side {
        order: 2;
    }
}
