/* ==========================================================================
   FeedPortal 1.0.0 — 企业门户主题（蓝白灰 / FB 式动态流）
   Design Tokens 见设计文档 §3.5；零外部依赖，系统字体栈。
   ========================================================================== */

:root {
    --fp-brand: #1677FF;
    --fp-brand-dark: #0958D9;
    --fp-brand-bg: #E6F4FF;
    --fp-bg: #F0F2F5;
    --fp-card: #FFFFFF;
    --fp-border: #E4E6EB;
    --fp-fill: #F0F2F5;
    --fp-text: #1F2329;
    --fp-text-2: #65676B;
    --fp-text-3: #8A919F;
    --fp-hot: #FA541C;
    --fp-success: #52C41A;
    --fp-r: 8px;
    --fp-r-lg: 12px;
    --fp-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    --fp-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
    --fp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- 基础 ---------- */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body.fp-body {
    margin: 0;
    font-family: var(--fp-font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--fp-text);
    background: var(--fp-bg);
}

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

a {
    color: var(--fp-brand);
    text-decoration: none;
}

a:hover {
    color: var(--fp-brand-dark);
}

button {
    font-family: inherit;
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

html.fp-lock,
html.fp-lock body {
    overflow: hidden;
}

:focus-visible {
    outline: 2px solid var(--fp-brand);
    outline-offset: 2px;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
}

/* ---------- 公告条 ---------- */

.fp-announce {
    position: relative;
    z-index: 40;
    background: var(--fp-brand-bg);
    color: var(--fp-brand-dark);
}

.fp-announce__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 9px 48px 9px 20px;
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    align-items: center;
}

.fp-announce__inner a {
    color: var(--fp-brand-dark);
    font-weight: 600;
    text-decoration: underline;
}

.fp-announce__close {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    padding: 8px;
    color: inherit;
    display: flex;
}

.fp-announce__close svg {
    width: 16px;
    height: 16px;
}

/* ---------- 三栏布局 ---------- */

.fp-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 650px) 320px;
    justify-content: center;
    gap: 24px;
    align-items: start;
    padding: 24px 16px 48px;
}

.fp-main {
    min-width: 0;
    max-width: 650px;
}

.fp-main--archive,
.fp-main--single {
    max-width: none;
}

/* ---------- 左栏 ---------- */

.fp-left {
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
}

.fp-left__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    color: var(--fp-text);
    padding: 6px 8px;
    margin-bottom: 12px;
}

.fp-left__brand img {
    border-radius: 8px;
    object-fit: cover;
}

.fp-left__search {
    position: relative;
    margin-bottom: 12px;
}

.fp-left__search input {
    width: 100%;
    border: 0;
    border-radius: 20px;
    background: var(--fp-fill);
    padding: 9px 40px 9px 16px;
    font-size: 14px;
    font-family: inherit;
    color: var(--fp-text);
}

.fp-left__search input:focus {
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 2px var(--fp-brand);
}

.fp-left__search button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    padding: 8px;
    color: var(--fp-text-3);
    display: flex;
}

.fp-left__search button svg {
    width: 18px;
    height: 18px;
}

.fp-left .fp-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fp-left .fp-menu a {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--fp-text);
}

.fp-left .fp-menu a:hover {
    background: var(--fp-border);
}

.fp-left .fp-menu .current-menu-item > a,
.fp-left .fp-menu .current_page_item > a {
    background: var(--fp-brand-bg);
    color: var(--fp-brand);
    font-weight: 600;
}

.fp-left__sect {
    margin: 18px 0 6px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--fp-text-3);
}

.fp-left__cats {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fp-left__cats a {
    display: flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--fp-text-2);
}

.fp-left__cats a:hover,
.fp-left__cats a.is-active {
    background: var(--fp-brand-bg);
    color: var(--fp-brand);
}

.fp-left__count {
    margin-left: auto;
    background: var(--fp-fill);
    border-radius: 10px;
    font-size: 11px;
    color: var(--fp-text-3);
    padding: 1px 8px;
}

.fp-left__cta {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 10px;
    border: 0;
    border-radius: var(--fp-r);
    background: var(--fp-brand);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.15s;
}

.fp-left__cta:hover {
    background: var(--fp-brand-dark);
    color: #fff;
}

/* ---------- 右栏 ---------- */

.fp-right {
    position: sticky;
    top: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.fp-side-card {
    background: var(--fp-card);
    border-radius: var(--fp-r-lg);
    box-shadow: var(--fp-shadow);
    padding: 16px;
}

.fp-side-card h3 {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 600;
}

.fp-side-card__sub {
    margin: 0;
    font-size: 13px;
    color: var(--fp-text-3);
}

.fp-side-card__link {
    display: inline-block;
    margin-top: 6px;
    font-size: 13px;
}

.fp-hotline {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--fp-brand);
    letter-spacing: 0.02em;
}

.fp-qr {
    display: block;
    width: 160px;
    max-width: 100%;
    margin: 0 auto 8px;
    border-radius: var(--fp-r);
}

.fp-qr--ph {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fp-fill);
    color: var(--fp-text-3);
    font-size: 12px;
}

.fp-qr-link {
    display: block;
    padding: 6px;
    margin: 0 -6px;
    border-radius: var(--fp-r);
    text-decoration: none;
    cursor: pointer;
}

.fp-qr-link:hover,
.fp-qr-link:active {
    background: var(--fp-fill);
}

.fp-side-card--qr p {
    margin: 0;
    text-align: center;
    font-size: 13px;
    color: var(--fp-text-2);
}

/* 热门榜 */

.fp-hotlist__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fp-hotlist__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-top: 1px solid var(--fp-fill);
}

.fp-hotlist__item:first-child {
    border-top: 0;
    padding-top: 2px;
}

.fp-hotlist__rank {
    flex: 0 0 auto;
    width: 20px;
    font-size: 18px;
    font-weight: 800;
    color: #C0C4CC;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.fp-hotlist__rank.is-top {
    color: var(--fp-hot);
}

.fp-hotlist__item > img {
    width: 48px;
    height: 48px;
    border-radius: var(--fp-r);
    object-fit: cover;
    flex: 0 0 auto;
}

.fp-hotlist__body {
    min-width: 0;
}

.fp-hotlist__body a {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--fp-text);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.fp-hotlist__body a:hover {
    color: var(--fp-brand);
}

.fp-hotlist__views {
    font-size: 11px;
    color: var(--fp-text-3);
}

/* ---------- Tabs / Chips / Composer ---------- */

.fp-tabs {
    display: inline-flex;
    background: var(--fp-border);
    border-radius: 10px;
    padding: 4px;
    gap: 4px;
    margin-bottom: 12px;
}

.fp-tab {
    border: 0;
    background: transparent;
    padding: 7px 22px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--fp-text-2);
}

.fp-tab.is-active {
    background: #fff;
    color: var(--fp-text);
    box-shadow: var(--fp-shadow);
}

.fp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}

.fp-chip {
    border: 1px solid var(--fp-border);
    background: #fff;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 14px;
    color: var(--fp-text-2);
}

.fp-chip:hover,
.fp-chip.is-active {
    border-color: var(--fp-brand);
    color: var(--fp-brand);
    background: var(--fp-brand-bg);
}

/* ---------- 动态流与卡片 ---------- */

.fp-stream {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fp-card {
    background: var(--fp-card);
    border-radius: var(--fp-r-lg);
    box-shadow: var(--fp-shadow);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.fp-card:hover {
    box-shadow: var(--fp-shadow-lg);
}

.fp-card__top {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px 0;
}

.fp-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
}

.fp-card__id {
    flex: 1;
    min-width: 0;
}

.fp-card__author {
    display: flex;
    align-items: center;
    gap: 4px;
}

.fp-card__corp {
    font-size: 14px;
    font-weight: 600;
}

.fp-verified {
    width: 14px;
    height: 14px;
    color: var(--fp-brand);
    vertical-align: -2px;
}

.fp-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    color: var(--fp-text-3);
    margin-top: 2px;
}

.fp-card__client {
    color: var(--fp-text-2);
}

.fp-type-badge {
    display: inline-block;
    background: var(--fp-fill);
    border-radius: 4px;
    padding: 1px 7px;
    font-size: 11px;
    font-weight: 500;
    color: var(--fp-text-2);
    line-height: 1.6;
}

.fp-type-badge--solution {
    background: var(--fp-brand-bg);
    color: var(--fp-brand);
}

.fp-badge {
    flex: 0 0 auto;
    border-radius: 5px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.fp-badge--core {
    background: linear-gradient(135deg, var(--fp-brand-dark), var(--fp-brand));
    color: #fff;
}

.fp-badge--hot {
    background: var(--fp-hot);
    color: #fff;
}

.fp-badge--new {
    background: var(--fp-brand-bg);
    color: var(--fp-brand);
}

.fp-card__text {
    padding: 10px 16px 0;
}

.fp-card__title {
    margin: 0 0 6px;
    font-size: 17px;
    line-height: 1.45;
    font-weight: 600;
}

.fp-card__title a {
    color: var(--fp-text);
}

.fp-card__title a:hover {
    color: var(--fp-brand);
}

.fp-card__excerpt {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--fp-text-2);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.fp-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.fp-tag {
    display: inline-block;
    background: var(--fp-fill);
    border-radius: 6px;
    padding: 2px 9px;
    font-size: 12px;
    color: var(--fp-text-2);
}

.fp-tag:hover {
    background: var(--fp-brand-bg);
    color: var(--fp-brand);
}

.fp-tag--cat {
    background: var(--fp-brand-bg);
    color: var(--fp-brand);
}

.fp-card--compact .fp-card__text {
    padding-bottom: 4px;
}

/* ---------- 媒体四形态（16:9 CLS 预留）---------- */

.fp-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background: var(--fp-fill);
    overflow: hidden;
}

.fp-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fp-media__ph {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #E4E6EB, #F0F2F5);
}

/* 视频门面 */

.fp-facade {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: #212630;
}

.fp-facade img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fp-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s, background 0.15s;
}

.fp-play svg {
    width: 44px;
    height: 44px;
}

.fp-facade:hover .fp-play {
    background: rgba(22, 119, 255, 0.9);
    transform: translate(-50%, -50%) scale(1.06);
}

.fp-media__vbadge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 5px;
    padding: 2px 9px;
    font-size: 12px;
}

.fp-media--video video,
.fp-media--video iframe,
video.fp-media--video-in,
iframe.fp-media--video-in {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #000;
}

.fp-media--video video {
    object-fit: contain;
}

/* 多图轮播 */

.fp-carousel__link {
    display: block;
    height: 100%;
}

.fp-carousel__track {
    display: flex;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.fp-carousel__track::-webkit-scrollbar {
    display: none;
}

.fp-carousel__item {
    position: relative;
    flex: 0 0 100%;
    margin: 0;
    scroll-snap-align: start;
}

.fp-more {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 26px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fp-carousel__nav {
    position: absolute;
    bottom: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--fp-text);
    box-shadow: var(--fp-shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.fp-carousel__nav svg {
    width: 20px;
    height: 20px;
}

.fp-carousel__nav--prev {
    right: 60px;
}

.fp-carousel__nav--next {
    right: 12px;
}

.fp-carousel__nav:disabled {
    opacity: 0.35;
    cursor: default;
}

.fp-carousel__count {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border-radius: 12px;
    padding: 2px 10px;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

/* ---------- 数据行与操作栏 ---------- */

.fp-card__stats {
    padding: 10px 16px 0;
    font-size: 12px;
    color: var(--fp-text-3);
}

.fp-card__stats:empty {
    display: none;
}

.fp-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 12px 12px;
}

.fp-act {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    border-radius: var(--fp-r);
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--fp-text-2);
}

.fp-act svg {
    width: 17px;
    height: 17px;
}

.fp-act:hover {
    background: var(--fp-fill);
    color: var(--fp-text);
}

.fp-act--primary {
    background: var(--fp-brand-bg);
    color: var(--fp-brand);
    font-weight: 600;
}

.fp-act--primary:hover {
    background: #BAE0FF;
    color: var(--fp-brand-dark);
}

.fp-act--primary,
.fp-act--primary:hover {
    color: var(--fp-brand-dark);
}

.js-fav.is-on {
    color: var(--fp-brand);
}

.js-fav.is-on svg {
    fill: var(--fp-brand);
}

.fp-share-panel {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px 14px;
}

.fp-share-panel__btn {
    border: 1px solid var(--fp-border);
    background: #fff;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 13px;
    color: var(--fp-text-2);
}

.fp-share-panel__btn:hover {
    border-color: var(--fp-brand);
    color: var(--fp-brand);
}

.fp-share-panel__hint {
    font-size: 13px;
    color: var(--fp-success);
}

/* ---------- 流状态 ---------- */

.fp-sentinel {
    height: 4px;
}

.fp-ended,
.fp-failed {
    text-align: center;
    font-size: 13px;
    color: var(--fp-text-3);
    padding: 24px 0;
}

.fp-failed__retry {
    border: 0;
    background: transparent;
    color: var(--fp-brand);
    font-size: 13px;
    text-decoration: underline;
    padding: 0;
}

.fp-empty {
    background: var(--fp-card);
    border-radius: var(--fp-r-lg);
    box-shadow: var(--fp-shadow);
    padding: 56px 24px;
    text-align: center;
    color: var(--fp-text-3);
}

/* ---------- 详情页（Modal 与落地页共享）---------- */

.fp-single-solution,
.fp-single-post,
.fp-page {
    background: var(--fp-card);
    border-radius: var(--fp-r-lg);
    box-shadow: var(--fp-shadow);
    overflow: hidden;
}

.fp-detail__head {
    padding: 16px 20px 0;
}

.fp-detail__title {
    margin: 4px 0 8px;
    font-size: 22px;
    line-height: 1.45;
    font-weight: 700;
}

.fp-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    font-size: 13px;
    color: var(--fp-text-3);
    margin-bottom: 12px;
}

.fp-detail__content {
    padding: 4px 20px;
}

.fp-detail__hero img {
    width: 100%;
    display: block;
}

.fp-detail__terms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 20px 0;
}

.fp-detail__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 18px 20px 0;
}

.fp-detail__cta-note {
    padding: 6px 20px 0;
    font-size: 12px;
    color: var(--fp-text-3);
}

.fp-single-solution .fp-detail__cta,
.fp-single-post .fp-detail__cta {
    padding-bottom: 22px;
}

.fp-single-solution .fp-detail__cta-note {
    padding-bottom: 22px;
}

/* 排版（750px 阅读列） */

.fp-prose {
    font-size: 16px;
    line-height: 1.85;
    color: var(--fp-text);
    max-width: 750px;
}

.fp-prose h2 {
    margin: 32px 0 12px;
    font-size: 22px;
    font-weight: 700;
}

.fp-prose h3 {
    margin: 24px 0 10px;
    font-size: 18px;
    font-weight: 600;
}

.fp-prose p {
    margin: 0 0 16px;
}

.fp-prose img {
    border-radius: var(--fp-r);
}

.fp-prose ul,
.fp-prose ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

.fp-prose blockquote {
    margin: 16px 0;
    padding: 12px 16px;
    border-left: 3px solid var(--fp-brand);
    background: var(--fp-brand-bg);
    border-radius: 0 var(--fp-r) var(--fp-r) 0;
    color: var(--fp-text-2);
}

.fp-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
}

.fp-prose th,
.fp-prose td {
    border: 1px solid var(--fp-border);
    padding: 8px 12px;
    text-align: left;
}

.fp-prose th {
    background: #F7F8FA;
}

/* ---------- 面包屑 / 归档头 ---------- */

.fp-breadcrumb {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--fp-text-3);
}

.fp-breadcrumb__list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.fp-breadcrumb__list li {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fp-breadcrumb__list a {
    color: var(--fp-text-3);
}

.fp-breadcrumb__list a:hover {
    color: var(--fp-brand);
}

.fp-breadcrumb__sep {
    color: #C0C4CC;
}

.fp-archhead {
    margin-bottom: 16px;
}

.fp-archhead__title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.fp-archhead__desc {
    margin: 8px 0 0;
    font-size: 14px;
    color: var(--fp-text-2);
}

.fp-archhead .fp-breadcrumb {
    margin-top: 10px;
    margin-bottom: 0;
}

/* ---------- 归档网格 / 案例 ---------- */

.fp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin: 16px 0 24px;
}

.fp-grid .fp-card__excerpt {
    -webkit-line-clamp: 2;
}

.fp-grid .fp-detail,
.fp-grid > .fp-card {
    min-width: 0;
}

.fp-cases {
    margin: 32px 0;
}

.fp-cases__title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 14px;
    font-size: 20px;
    font-weight: 700;
}

.fp-cases__title a {
    color: var(--fp-text);
}

.fp-cases__title a:hover {
    color: var(--fp-brand);
}

.fp-cases__count {
    font-size: 12px;
    font-weight: 400;
    color: var(--fp-text-3);
}

.fp-case {
    display: block;
    background: var(--fp-card);
    border-radius: var(--fp-r-lg);
    box-shadow: var(--fp-shadow);
    overflow: hidden;
    color: var(--fp-text);
}

.fp-case:hover {
    box-shadow: var(--fp-shadow-lg);
    color: var(--fp-text);
}

.fp-case img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: var(--fp-fill);
}

.fp-case__body {
    padding: 14px;
}

.fp-case__title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.fp-case__client {
    font-size: 12px;
    color: var(--fp-brand);
}

.fp-case__desc {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--fp-text-3);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.fp-type-badge--product {
    background: var(--fp-brand-bg);
    color: var(--fp-brand);
}

/* ---------- 相关方案 / 404 / 搜索 / 联系 ---------- */

.fp-related {
    margin-top: 24px;
    background: var(--fp-card);
    border-radius: var(--fp-r-lg);
    box-shadow: var(--fp-shadow);
}

.fp-related h2 {
    margin: 0;
    padding: 16px 16px 6px;
    font-size: 17px;
    font-weight: 700;
}

.fp-related__list {
    list-style: none;
    margin: 0;
    padding: 4px 16px 12px;
}

.fp-related__item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--fp-fill);
}

.fp-related__item:first-child {
    border-top: 0;
}

.fp-related__item img {
    width: 72px;
    height: 72px;
    border-radius: var(--fp-r);
    object-fit: cover;
    flex: 0 0 auto;
}

.fp-related__link {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--fp-text);
    margin-bottom: 4px;
}

.fp-related__link:hover {
    color: var(--fp-brand);
}

.fp-related__meta {
    font-size: 12px;
    color: var(--fp-text-3);
}

.fp-404 {
    text-align: center;
    padding: 56px 16px;
    background: var(--fp-card);
    border-radius: var(--fp-r-lg);
    box-shadow: var(--fp-shadow);
}

.fp-404__code {
    margin: 0;
    font-size: 72px;
    font-weight: 800;
    color: var(--fp-brand-bg);
    line-height: 1;
    -webkit-text-stroke: 2px var(--fp-brand);
}

.fp-404__title {
    margin: 12px 0 20px;
    font-size: 20px;
    font-weight: 600;
}

.fp-404 .fp-searchpage {
    justify-content: center;
    margin-bottom: 16px;
}

.fp-searchpage {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.fp-searchpage input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--fp-border);
    border-radius: var(--fp-r);
    padding: 9px 14px;
    font-size: 16px;
    font-family: inherit;
}

.fp-searchpage input:focus {
    outline: none;
    border-color: var(--fp-brand);
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
}

.fp-contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    margin-top: 8px;
}

.fp-contact__form {
    background: var(--fp-card);
    border-radius: var(--fp-r-lg);
    box-shadow: var(--fp-shadow);
    padding: 24px;
}

.fp-contact__form h2 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 700;
}

.fp-contact__side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fp-contact__map {
    margin-top: 24px;
}

.fp-contact__map iframe {
    width: 100%;
    height: 360px;
    border: 0;
    border-radius: var(--fp-r-lg);
    display: block;
}

/* 普通页面 */

.fp-page__hero {
    padding: 24px 24px 0;
}

.fp-page__title {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
}

.fp-page__content {
    padding: 8px 24px 28px;
}

/* ---------- 按钮 / 表单 ---------- */

.fp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: var(--fp-r);
    padding: 10px 22px;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.15s, color 0.15s;
}

.fp-btn--primary {
    background: var(--fp-brand);
    color: #fff;
}

.fp-btn--primary:hover {
    background: var(--fp-brand-dark);
    color: #fff;
}

.fp-btn--ghost {
    background: transparent;
    border: 1px solid var(--fp-brand);
    color: var(--fp-brand);
}

.fp-btn--ghost:hover {
    background: var(--fp-brand-bg);
}

.fp-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.fp-field {
    margin-bottom: 14px;
}

.fp-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.fp-field em {
    color: var(--fp-hot);
    font-style: normal;
}

.fp-field input,
.fp-field textarea {
    width: 100%;
    border: 1px solid var(--fp-border);
    border-radius: var(--fp-r);
    padding: 10px 12px;
    font-size: 16px;
    font-family: inherit;
    background: #fff;
    color: var(--fp-text);
}

.fp-field input:focus,
.fp-field textarea:focus {
    outline: none;
    border-color: var(--fp-brand);
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
}

.fp-leadform__hp {
    position: absolute;
    left: -9999px;
}

.fp-leadform__privacy {
    margin: 12px 0 16px;
    font-size: 12px;
    color: var(--fp-text-3);
}

.fp-leadform__msg {
    margin: 12px 0 0;
    font-size: 14px;
    color: var(--fp-text-2);
}

.fp-leadform__msg.is-error {
    color: var(--fp-hot);
}

.fp-lead-success {
    padding: 32px 16px;
    text-align: center;
}

.fp-lead-success__title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--fp-brand);
}

.fp-lead-success p {
    margin: 0;
    color: var(--fp-text-2);
    font-size: 14px;
}

/* ---------- Modal ---------- */

.fp-modal {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.fp-modal.is-in {
    opacity: 1;
}

.fp-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(24, 28, 32, 0.55);
}

.fp-modal__panel {
    position: relative;
    background: #fff;
    border-radius: var(--fp-r-lg);
    width: min(880px, 100%);
    height: calc(100dvh - 48px);
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
    transform: translateY(12px) scale(0.985);
    transition: transform 0.2s ease;
}

.fp-modal.is-in .fp-modal__panel {
    transform: none;
}

.fp-modal__progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--fp-brand), #69B1FF);
    z-index: 3;
    transition: width 0.1s linear;
}

.fp-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(240, 242, 245, 0.92);
    color: var(--fp-text-2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.fp-modal__close svg {
    width: 20px;
    height: 20px;
}

.fp-modal__close:hover {
    background: var(--fp-border);
    color: var(--fp-text);
}

.fp-modal__body {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.fp-modal__panel--narrow {
    width: min(480px, 100%);
    height: auto;
    max-height: calc(100dvh - 64px);
}

.fp-modal__panel--narrow .fp-modal__body {
    position: static;
    max-height: calc(100dvh - 120px);
    padding: 28px 24px 24px;
}

.fp-modal__heading {
    margin: 0 0 16px;
    font-size: 19px;
    font-weight: 700;
}

.fp-modal__loading {
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fp-spinner {
    display: block;
    width: 34px;
    height: 34px;
    border: 3px solid var(--fp-border);
    border-top-color: var(--fp-brand);
    border-radius: 50%;
    animation: fp-spin 0.8s linear infinite;
}

@keyframes fp-spin {
    to {
        transform: rotate(360deg);
    }
}

.fp-modal__error {
    text-align: center;
    padding: 80px 24px;
    color: var(--fp-text-2);
}

.fp-modal__error p {
    margin: 0 0 16px;
}

/* Modal 内详情留出关闭按钮空间 */

.fp-detail .fp-detail__head,
.fp-detail .fp-detail__content,
.fp-detail .fp-detail__terms,
.fp-detail .fp-detail__cta,
.fp-detail .fp-detail__cta-note {
    padding-left: 24px;
    padding-right: 24px;
}

.fp-modal .fp-detail__head {
    padding-top: 20px;
}

/* ---------- 收藏抽屉 ---------- */

.fp-saved__panel {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(360px, 92vw);
    background: #fff;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.25s ease;
}

.fp-saved.is-in .fp-saved__panel {
    transform: none;
}

.fp-saved__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--fp-border);
}

.fp-saved__head h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.fp-saved__list {
    list-style: none;
    margin: 0;
    padding: 8px 12px;
    overflow-y: auto;
    flex: 1;
}

.fp-saved__item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border-radius: var(--fp-r);
}

.fp-saved__item:hover {
    background: var(--fp-fill);
}

.fp-saved__item img {
    width: 64px;
    height: 64px;
    border-radius: var(--fp-r);
    object-fit: cover;
    flex: 0 0 auto;
}

.fp-saved__body {
    min-width: 0;
    flex: 1;
}

.fp-saved__body a {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--fp-text);
    margin-bottom: 4px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.fp-saved__remove {
    border: 0;
    background: transparent;
    font-size: 12px;
    color: var(--fp-text-3);
    text-decoration: underline;
    padding: 0;
}

.fp-saved__remove:hover {
    color: var(--fp-hot);
}

.fp-saved__empty {
    margin: 0;
    padding: 40px 16px;
    text-align: center;
    font-size: 13px;
    color: var(--fp-text-3);
}

/* ---------- 分页 ---------- */

.fp-seo-nav {
    margin: 24px 0 8px;
}

.pagination {
    margin: 0;
}

.page-numbers {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.page-numbers li {
    display: inline-flex;
}

.page-numbers a,
.page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    background: #fff;
    border: 1px solid var(--fp-border);
    border-radius: var(--fp-r);
    font-size: 14px;
    color: var(--fp-text-2);
}

.page-numbers a:hover {
    border-color: var(--fp-brand);
    color: var(--fp-brand);
}

.page-numbers .current {
    background: var(--fp-brand);
    border-color: var(--fp-brand);
    color: #fff;
    font-weight: 600;
}

.page-numbers .dots {
    border: 0;
    background: transparent;
}

/* ---------- 页脚 ---------- */

/* ---------- 企业资质 ---------- */

.fp-quals {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.fp-quals__item {
    margin: 0;
    background: var(--fp-card);
    border-radius: var(--fp-r-lg);
    box-shadow: var(--fp-shadow);
    overflow: hidden;
}

.fp-quals__item img {
    display: block;
    width: 100%;
    height: auto;
}

.fp-quals__item figcaption {
    padding: 10px 14px;
    font-size: 13px;
    color: var(--fp-text-2);
    text-align: center;
}

.fp-footer {
    background: #fff;
    border-top: 1px solid var(--fp-border);
    margin-top: 24px;
}

.fp-footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 20px 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}

.fp-footer__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.fp-footer__brand img {
    display: block;
    height: 28px;
    width: auto;
}

.fp-footer__desc {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--fp-text-3);
}

.fp-footer__contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    font-size: 13px;
    color: var(--fp-text-2);
}

.fp-footer__col h3 {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
}

.fp-footer__col ul,
.fp-footer__menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fp-footer__col li {
    margin: 8px 0;
}

.fp-footer__col a,
.fp-footer__menu a {
    font-size: 13px;
    color: var(--fp-text-3);
}

.fp-footer__col a:hover,
.fp-footer__menu a:hover {
    color: var(--fp-brand);
}

.fp-footer__legal {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 20px;
    border-top: 1px solid var(--fp-border);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--fp-text-3);
}

.fp-footer__legal a {
    color: var(--fp-text-3);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.fp-footer__legal img {
    width: 16px;
    height: 16px;
}

/* ---------- 移动端（默认隐藏，<768 显示）---------- */

.fp-mtop,
.fp-msearch,
.fp-mbar {
    display: none;
}

.fp-mtop {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid var(--fp-border);
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
}

.fp-mtop__burger,
.fp-mtop__search {
    background: transparent;
    border: 0;
    padding: 8px;
    color: var(--fp-text-2);
    display: flex;
}

.fp-mtop__burger svg,
.fp-mtop__search svg {
    width: 24px;
    height: 24px;
}

.fp-mtop__brand {
    font-size: 17px;
    font-weight: 700;
    color: var(--fp-text);
}

.fp-mtop__brand img {
    display: block;
    height: 26px;
    width: auto;
}

.fp-msearch {
    padding: 8px 12px;
    background: #fff;
    border-bottom: 1px solid var(--fp-border);
}

.fp-msearch input {
    width: 100%;
    border: 1px solid var(--fp-border);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 16px;
    font-family: inherit;
}

.fp-drawer {
    position: fixed;
    inset: 0;
    z-index: 60;
}

.fp-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(24, 28, 32, 0.45);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.fp-drawer__panel {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    max-width: 86vw;
    background: #fff;
    padding: 16px 12px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
}

.fp-drawer.is-in .fp-drawer__backdrop {
    opacity: 1;
}

.fp-drawer.is-in .fp-drawer__panel {
    transform: none;
}

.fp-drawer__menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fp-drawer__menu a {
    display: block;
    padding: 10px 12px;
    border-radius: var(--fp-r);
    font-size: 15px;
    color: var(--fp-text);
}

.fp-drawer__menu a:hover {
    background: var(--fp-fill);
}

.fp-drawer__sect {
    margin: 16px 0 6px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--fp-text-3);
}

.fp-drawer__foot {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(28, 32, 38, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fp-drawer__cta {
    display: block;
    width: 100%;
    margin: 0 0 10px;
    padding: 10px;
    border: 0;
    border-radius: var(--fp-r);
    background: var(--fp-brand);
    color: #fff;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
}

.fp-drawer__tel {
    display: block;
    margin: 0 0 4px;
    padding: 6px 12px;
    border-radius: var(--fp-r);
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--fp-text);
    text-decoration: none;
}

.fp-drawer__qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 12px;
    border-radius: var(--fp-r);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.fp-drawer__qr img {
    width: 140px;
    height: 140px;
    border-radius: var(--fp-r);
}

.fp-drawer__qr span {
    font-size: 12px;
    color: var(--fp-text-3);
}

.fp-drawer__qr:active {
    background: var(--fp-fill);
}

.fp-mbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: #fff;
    border-top: 1px solid var(--fp-border);
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    padding: 4px 0 calc(4px + env(safe-area-inset-bottom, 0px));
}

.fp-mbar a,
.fp-mbar button {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 4px;
    background: transparent;
    border: 0;
    font-size: 11px;
    color: var(--fp-text-2);
}

.fp-mbar svg {
    width: 22px;
    height: 22px;
}

.fp-mbar__badge {
    position: absolute;
    top: 0;
    right: calc(50% - 22px);
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: var(--fp-hot);
    color: #fff;
    font-size: 10px;
    line-height: 16px;
    text-align: center;
}

/* ---------- 响应式 ---------- */

@media (max-width: 1199px) {
    .fp-layout {
        grid-template-columns: 220px minmax(0, 1fr) 300px;
        gap: 16px;
        padding: 16px 12px 40px;
    }
}

@media (max-width: 991px) {
    .fp-layout {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .fp-right {
        display: none;
    }

    .fp-contact {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .fp-left,
    .fp-right {
        display: none;
    }

    .fp-layout {
        display: block;
        padding: 12px 12px 76px;
    }

    .fp-main {
        max-width: none;
    }

    .fp-mtop {
        display: flex;
    }

    .fp-msearch:not([hidden]) {
        display: block;
    }

    .fp-mbar {
        display: grid;
    }

    .fp-modal {
        padding: 12px;
    }

    .fp-modal__panel {
        height: calc(100dvh - 24px);
    }

    .fp-detail__title {
        font-size: 19px;
    }

    .fp-detail__head,
    .fp-detail__content,
    .fp-detail__terms,
    .fp-detail__cta,
    .fp-detail__cta-note,
    .fp-detail .fp-detail__head,
    .fp-detail .fp-detail__content,
    .fp-detail .fp-detail__terms,
    .fp-detail .fp-detail__cta,
    .fp-detail .fp-detail__cta-note {
        padding-left: 16px;
        padding-right: 16px;
    }

    .fp-card__text {
        padding: 8px 14px 0;
    }

    .fp-card__top {
        padding: 12px 14px 0;
    }

    .fp-card__actions {
        padding: 8px 10px 10px;
    }

    .fp-act {
        padding: 8px 11px;
        font-size: 13px;
    }

    .fp-carousel__nav {
        display: none;
    }

    .fp-footer__inner {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 28px 16px 20px;
    }

    .fp-footer__legal {
        justify-content: center;
        text-align: center;
    }

    .fp-page__hero {
        padding: 20px 16px 0;
    }

    .fp-page__content {
        padding: 8px 16px 24px;
    }
}

/* ---------- 智能客服浮窗 ---------- */

.fp-chat {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 55;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.fp-chat__fab {
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: var(--fp-brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(22, 119, 255, 0.35);
    transition: transform 0.2s ease, background 0.2s ease;
}

.fp-chat__fab:hover {
    background: var(--fp-brand-dark);
    transform: translateY(-2px);
}

.fp-chat__panel {
    display: flex;
    flex-direction: column;
    width: min(360px, calc(100vw - 40px));
    height: min(520px, calc(100vh - 140px));
    margin-bottom: 12px;
    background: var(--fp-card);
    border: 1px solid var(--fp-border);
    border-radius: var(--fp-r-lg);
    box-shadow: var(--fp-shadow-lg);
    overflow: hidden;
    opacity: 0;
    transform: translateY(8px) scale(0.98);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.fp-chat__panel.is-in {
    opacity: 1;
    transform: none;
}

.fp-chat__panel[hidden] {
    display: none;
}

.fp-chat__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--fp-brand);
    color: #fff;
}

.fp-chat__avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.fp-chat__title {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
}

.fp-chat__title strong {
    font-size: 14px;
}

.fp-chat__status {
    font-size: 12px;
    opacity: 0.85;
}

.fp-chat__close {
    background: transparent;
    border: 0;
    padding: 6px;
    color: #fff;
    cursor: pointer;
    display: flex;
    border-radius: 6px;
}

.fp-chat__close:hover {
    background: rgba(255, 255, 255, 0.15);
}

.fp-chat__log {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 14px;
    background: var(--fp-bg);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fp-chat__msg {
    max-width: 82%;
}

.fp-chat__msg p {
    margin: 0;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.55;
    word-break: break-word;
}

.fp-chat__msg--bot {
    align-self: flex-start;
}

.fp-chat__msg--bot p {
    background: var(--fp-card);
    border: 1px solid var(--fp-border);
    border-top-left-radius: 4px;
    color: var(--fp-text);
}

.fp-chat__msg--user {
    align-self: flex-end;
}

.fp-chat__msg--user p {
    background: var(--fp-brand);
    color: #fff;
    border-top-right-radius: 4px;
}

.fp-chat__msg--typing p {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 12px;
}

.fp-chat__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--fp-text-3);
    animation: fp-chat-blink 1.2s infinite;
}

.fp-chat__dot:nth-child(2) {
    animation-delay: 0.2s;
}

.fp-chat__dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes fp-chat-blink {

    0%,
    80%,
    100% {
        opacity: 0.25;
    }

    40% {
        opacity: 1;
    }
}

.fp-chat__form {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid var(--fp-border);
    background: var(--fp-card);
}

.fp-chat__form input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--fp-border);
    border-radius: 20px;
    padding: 8px 14px;
    font: inherit;
    font-size: 14px;
    color: var(--fp-text);
    background: var(--fp-fill);
    outline: none;
}

.fp-chat__form input:focus {
    border-color: var(--fp-brand);
    background: #fff;
}

.fp-chat__send {
    border: 0;
    background: var(--fp-brand);
    color: #fff;
    border-radius: 20px;
    padding: 8px 16px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    flex: none;
}

.fp-chat__send:hover {
    background: var(--fp-brand-dark);
}

.fp-chat__send:disabled {
    opacity: 0.6;
    cursor: default;
}

@media (max-width: 767px) {
    .fp-chat {
        right: 12px;
        bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    }

    .fp-chat__panel {
        width: calc(100vw - 24px);
        height: min(480px, calc(100vh - 160px));
    }
}

/* ---------- 减少动效 ---------- */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
