/* ============================================================
 * 工厂简介小部件 — 样式与源码 styles.css (.fp) 保持一致
 * ============================================================ */

/* 设计令牌（取自源码，便于小部件独立使用） */
.fp {
    --fp-ink: #0f1729;
    --fp-ink-2: #1e293b;
    --fp-muted: #64748b;
    --fp-line: #e6e9ef;
    --fp-bg-alt: #f7f8fb;
    --fp-brand: #103A8E;
    --fp-shadow-sm: 0 1px 2px rgba(15,23,41,.06), 0 4px 12px rgba(15,23,41,.05);
    --fp-shadow-md: 0 8px 30px rgba(15,23,41,.10);
    --fp-display: 'Sora', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 50px;
    align-items: center;
}

/* ── 左侧画廊 ── */
.fp__gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1.4fr 1fr;
    gap: 14px;
    position: relative;
}

.fp__photo {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 150px;
    background: var(--fp-bg-alt);
}
.fp__photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.fp__photo:hover img { transform: scale(1.06); }

/* 主图占左列两行 */
.fp__photo--main {
    grid-row: 1 / 3;
    min-height: 320px;
}

/* 渐变遮罩 */
.fp__photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(12,28,69,.65));
}

/* 图片说明 */
.fp__photo-cap {
    position: absolute;
    bottom: 14px;
    left: 16px;
    z-index: 2;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .3px;
    text-shadow: 0 1px 4px rgba(0,0,0,.4);
}

/* 成立年份徽章 */
.fp__est {
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    box-shadow: var(--fp-shadow-md);
    border-radius: 12px;
    padding: 10px 18px;
    text-align: center;
    z-index: 2;
    border: 1px solid var(--fp-line);
}
.fp__est strong {
    display: block;
    font-family: var(--fp-display);
    font-size: 22px;
    color: var(--fp-brand);
    line-height: 1;
}
.fp__est span {
    font-size: 11px;
    color: var(--fp-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── 右侧文字 ── */
.fp__body {
    min-width: 0;
}

.block-tag {
    display: inline-block;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--fp-brand);
    margin-bottom: 14px;
}
.block-title {
    font-family: var(--fp-display);
    font-weight: 700;
    font-size: clamp(22px, 2.6vw, 30px);
    line-height: 1.2;
    letter-spacing: -.4px;
    color: var(--fp-ink);
}
.block-text {
    margin-top: 14px;
    font-size: 16px;
    color: var(--fp-muted);
    line-height: 1.7;
}

/* 统计数据 — 白色卡片 */
.fp__stats {
    display: flex;
    gap: 12px;
    margin-top: 26px;
    background: #fff;
    border: 1px solid var(--fp-line);
    border-radius: 14px;
    padding: 20px;
    box-shadow: var(--fp-shadow-sm);
}
.fp__stat {
    flex: 1;
    text-align: center;
    position: relative;
}
.fp__stat + .fp__stat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 38px;
    background: var(--fp-line);
}
.fp__stat strong {
    display: block;
    font-family: var(--fp-display);
    font-size: 26px;
    color: var(--fp-ink);
    line-height: 1.1;
}
.fp__stat strong small {
    font-size: 15px;
    color: var(--fp-brand);
    font-weight: 700;
}
.fp__stat span {
    font-size: 12px;
    color: var(--fp-muted);
}

/* 要点列表 */
.fp__points {
    list-style: none;
    margin-top: 24px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.fp__points li {
    padding-left: 28px;
    position: relative;
    color: var(--fp-ink-2);
    font-size: 15px;
}
.fp__points li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #fff;
    font-size: 11px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--fp-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ── 入场动画 ── */
.fp[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fp.in {
    opacity: 1;
    transform: none;
}

/* ── 响应式 ── */
@media (max-width: 980px) {
    .fp {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
