/**
 * 【首页】15.Features 企业特性展示模块
 * 借鉴 IT 模板 features-section：左插图 + 右 2x2 特性卡；主题金 #f5c12e
 */

.hfs-section {
    --hfs-gold: #f5c12e;
    --hfs-gold-soft: rgba(245, 193, 46, 0.10);
    --hfs-gold-line: rgba(245, 193, 46, 0.35);
    --hfs-title: #2b271b;
    --hfs-title-strong: #1a1730;
    --hfs-text: #5a5770;
    --hfs-text-light: #8a88a0;
    --hfs-bg: #ffffff;
    --hfs-card-bg: #ffffff;
    --hfs-card-bg-alt: #fafbff;

    position: relative;
    padding: 110px 0;
    background: var(--hfs-bg);
    overflow: hidden;
}

/* ============ 通用标题区 ============ */
.hfs-sec-title {
    position: relative;
    margin-bottom: 44px;
    padding-right: 10px;
}

/* 背景巨型水印字（features）—— 灰色叠字效果 */
.hfs-float-text {
    position: absolute;
    top: -34px;
    left: 0;
    font-size: 120px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #f3f2f8;
    z-index: 0;
    user-select: none;
    pointer-events: none;
}

.hfs-main-title {
    position: relative;
    z-index: 1;
    font-size: 42px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.6px;
    margin: 0;
    color: var(--hfs-title-strong);
    max-width: 560px;
}

.hfs-highlight {
    color: var(--hfs-gold);
    position: relative;
    white-space: nowrap;
}

.hfs-highlight::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--hfs-gold) 0%, rgba(245, 193, 46, 0) 100%);
}

/* ============ 插图列 ============ */
.hfs-image-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hfs-image-box {
    position: relative;
    text-align: center;
    display: inline-block;
    padding: 0 10px;
}

/* 背后金色发光圆圈（原模板 bg-icon-one） */
.hfs-bg-icon {
    position: absolute;
    z-index: 0;
    width: 440px;
    height: 440px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, rgba(245, 193, 46, 0.28) 0%, rgba(245, 193, 46, 0.0) 65%);
    animation: hfs-glow 4.2s ease-in-out infinite;
}

@keyframes hfs-glow {
    0%, 100% { transform: translate(-50%, -50%) scale(1);   opacity: 1; }
    50%      { transform: translate(-50%, -50%) scale(1.08); opacity: 0.7; }
}

.hfs-image {
    position: relative;
    z-index: 1;
    margin: 0;
    display: block;
}

.hfs-image img {
    display: block;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 30px 45px rgba(26, 23, 48, 0.18));
    animation: hfs-float 6s ease-in-out infinite;
}

@keyframes hfs-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}

/* ============ 特性卡列 ============ */
.hfs-inner {
    padding-left: 10px;
}

.hfs-blocks {
    margin-left: -16px;
    margin-right: -16px;
}

.hfs-blocks > [class^="col-"] {
    padding: 16px;
}

.hfs-feature-block {
    animation: hfs-fade-up 0.7s ease both;
    animation-delay: calc(var(--i, 1) * 120ms);
    margin-bottom: 10px;
}

@keyframes hfs-fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hfs-inner-box {
    position: relative;
    height: 100%;
    border-radius: 18px;
    background: var(--hfs-card-bg);
    padding: 32px 28px 30px 32px;
    box-shadow: 0 10px 30px rgba(26, 23, 48, 0.06);
    border: 1px solid rgba(26, 23, 48, 0.05);
    transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease, background 0.32s ease;
    overflow: hidden;
}

/* 顶部悬浮金色光晕（原模板 hover 效果核心） */
.hfs-inner-box::before {
    content: "";
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 193, 46, 0.18) 0%, rgba(245, 193, 46, 0) 60%);
    opacity: 0;
    transition: opacity 0.35s ease, top 0.35s ease;
    pointer-events: none;
}

.hfs-inner-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 44px rgba(245, 193, 46, 0.16), 0 10px 28px rgba(26, 23, 48, 0.08);
    border-color: var(--hfs-gold-line);
    background: linear-gradient(180deg, #ffffff 0%, #fffdf5 100%);
}

.hfs-inner-box:hover::before {
    top: -80px;
    opacity: 1;
}

.hfs-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 16px;
    row-gap: 12px;
}

.hfs-icon {
    margin: 0;
    padding: 0;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--hfs-gold-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.hfs-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}

.hfs-inner-box:hover .hfs-icon {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(245, 193, 46, 0.25);
}

.hfs-block-title {
    font-size: 18px;
    line-height: 1.35;
    font-weight: 800;
    margin: 0;
    color: var(--hfs-title);
    letter-spacing: -0.2px;
    flex: 1 1 0;
    min-width: 0;
}

.hfs-block-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.22s ease;
}

.hfs-block-title a:hover {
    color: var(--hfs-gold);
}

.hfs-block-desc {
    font-size: 14px;
    line-height: 1.75;
    color: var(--hfs-text);
    flex: 1 1 100%;
    margin: 0;
}

/* ============ 布局切换 ============ */
.hfs-layout-right .hfs-inner {
    padding-left: 0;
    padding-right: 10px;
}

.hfs-section .flex-row-reverse {
    flex-direction: row-reverse;
}

/* ============ 响应式 ============ */
@media (max-width: 1199.98px) {
    .hfs-float-text { font-size: 92px; top: -26px; }
    .hfs-main-title { font-size: 34px; max-width: 100%; }
}

@media (max-width: 991.98px) {
    .hfs-section { padding: 80px 0; }

    .hfs-image-col { margin-bottom: 44px; }

    .hfs-bg-icon { width: 360px; height: 360px; }
    .hfs-image img { max-width: 72%; margin: 0 auto; }

    .hfs-float-text { font-size: 70px; top: -22px; letter-spacing: 2px; }
    .hfs-main-title { font-size: 30px; text-align: center; }
    .hfs-sec-title { text-align: center; margin-bottom: 32px; padding-right: 0; }
    .hfs-float-text { left: 50%; transform: translateX(-50%); }

    .hfs-inner { padding-left: 0; padding-right: 0; }
    .hfs-block-title { font-size: 18px; }
}

@media (max-width: 575.98px) {
    .hfs-section { padding: 60px 0; }

    .hfs-float-text { font-size: 44px; top: -16px; letter-spacing: 1px; }
    .hfs-main-title { font-size: 24px; }

    .hfs-blocks { margin-left: -8px; margin-right: -8px; }
    .hfs-blocks > [class^="col-"] { padding: 10px 8px; }

    .hfs-inner-box { padding: 24px 20px; border-radius: 16px; }
    .hfs-icon { width: 58px; height: 58px; border-radius: 16px; }
    .hfs-icon img { width: 30px; height: 30px; }

    .hfs-block-title { font-size: 17px; }
    .hfs-block-desc { font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
    .hfs-bg-icon,
    .hfs-image img,
    .hfs-feature-block { animation: none; }
}
