/**
 * Home Feature Showcase Widget
 * 首页「左右特性 + 居中图片」展示模块样式
 * 借鉴 Teeno App Landing Page feature-1 设计风格
 */

.hfs-feature-area {
    position: relative;
    padding: 80px 0;
    background-color: #ffffff;
    overflow: hidden;
}

.hfs-bg-light   { background-color: #ffffff; }
.hfs-bg-gray    { background-color: #f5f7ff; }
.hfs-bg-primary { background-color: #f0f5ff; }
.hfs-bg-dark    { background-color: #1a1a2e; color: #ffffff; }

.hfs-bg-overlay {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.08;
    pointer-events: none;
}

.hfs-feature-area > .container {
    position: relative;
    z-index: 1;
}

/* 标题 */
.hfs-section-title {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}

.hfs-subtitle {
    display: inline-block;
    background: rgba(34, 142, 214, 0.1);
    color: #228ed6;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.hfs-title {
    font-size: 38px;
    line-height: 1.25;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0;
    letter-spacing: -0.5px;
}

.hfs-bg-dark .hfs-title { color: #ffffff; }

/* 布局列 */
.hfs-showcase-row,
.hfs-grid-row {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

.hfs-col {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.hfs-col-left .hfs-item,
.hfs-col-right .hfs-item {
    margin-bottom: 40px;
}

/* 居中大图 */
.hfs-center-image {
    padding: 15px;
    margin-bottom: 40px;
}

.hfs-center-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 24px 48px rgba(34, 41, 68, 0.18));
}

/* 单个特性卡片 */
.hfs-item {
    transition: transform 0.3s ease;
}

.hfs-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.hfs-item-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hfs-item-icon {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(34, 142, 214, 0.4);
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(34, 142, 214, 0.12);
    background: #ffffff;
}

.hfs-bg-dark .hfs-item-icon {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.hfs-item-num {
    font-size: 20px;
    font-weight: 700;
    color: #228ed6;
    line-height: 1;
}

.hfs-bg-dark .hfs-item-num { color: #6cb8ee; }

.hfs-item-top-content {
    min-width: 0;
}

.hfs-item-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 2px;
}

.hfs-bg-dark .hfs-item-title { color: #ffffff; }

.hfs-item-short {
    font-size: 13px;
    color: #8a8aa0;
    margin: 0;
}

.hfs-bg-dark .hfs-item-short { color: #b0b0c5; }

.hfs-item-content {
    margin-top: 16px;
}

.hfs-item-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #5a5a72;
    margin: 0;
}

.hfs-bg-dark .hfs-item-desc { color: #c0c0d0; }

/* 悬停效果 */
.hfs-item:hover .hfs-item-icon {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(34, 142, 214, 0.2);
}

.hfs-item-icon {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 滚动淡入动画：默认隐藏，JS 进入视口时添加 .hfs-animate */
.hfs-anim {
    opacity: 0;
    transform: translateY(30px);
}

.hfs-anim.hfs-animate {
    animation: hfs-fade-up 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.hfs-no-animation .hfs-anim {
    opacity: 1;
    transform: none;
    animation: none;
}

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

/* 响应式 */
@media (max-width: 991px) {
    .hfs-title { font-size: 30px; }
    .hfs-col-left .hfs-item,
    .hfs-col-right .hfs-item { margin-bottom: 24px; }
    .hfs-center-image { margin-top: 24px; margin-bottom: 32px; }
}
