/* ============================================================
   home.css — 首页专属样式
   仅在 c_index.php 引入，避免污染其他页面
   版式：全宽 banner + 左侧分类树浮在 banner 上 + hover 出该分类产品
   配色：参考主题栏目（#1F293B 顶栏 + #009688/#31af99 主色），无红色
   ============================================================ */

/* ============================================================
   首页各板块统一白底
   ============================================================ */

/* ===== hero + 各板块 统一白底 ===== */
.uc-hero,
.home-texin,
.home-moban,
.home-zengzhi,
.home-news,
.link {
    background: #ffffff !important;
}

/* ===== 板块之间间隔（灰底可见，仅在父级有背景时） ===== */
.uc-hero,
.home-texin,
.home-moban,
.home-zengzhi,
.home-news {
    padding-top: 8px;
    padding-bottom: 8px;
}

/* hero 内部白底容器 */
.uc-hero-inner {
    background: #ffffff;
    border-radius: 12px;
}

/* 移除 home-texin 外的 home-page-bg（与 home-texin 同为白底） */
.home-page-bg {
    background: transparent !important;
    padding: 0;
    margin: 0;
}

/* 各板块上下间隔 */
.uc-hero,
.home-texin,
.home-moban,
.home-zengzhi,
.home-news {
    margin-bottom: 14px;
}

/* hero 内部特性面板 */
.uc-hero .uc-features {
    background: #ffffff;
    border-radius: 0 0 12px 12px;
    margin-top: 0;
}

/* 模板市场、增值业务标题区加底部线 */
.home-moban .dyui-main-header,
.home-zengzhi .dyui-main-header {
    padding: 4px 0 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid #F0F1F2;
}

.uc-hero-inner {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    min-height: 420px;
}

/* ===== 全宽大 banner 轮播 ===== */
.uc-banner {
    position: relative;
    overflow: hidden;
    background: #1E293B;
    height: 440px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.uc-banner-slides {
    display: flex;
    transition: transform 0.6s ease;
    height: 100%;
}

.uc-banner-slide {
    flex: 0 0 100%;
    display: block;
    height: 100%;
}

.uc-banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.uc-banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 24px;
    line-height: 42px;
    text-align: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.2s;
}

.uc-banner-nav:hover {
    background: #009688;
}

.uc-banner-prev { left: 270px; }
.uc-banner-next { right: 24px; }

.uc-banner-dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.uc-banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    padding: 0;
    cursor: pointer;
    transition: all 0.2s;
}

.uc-banner-dot.active {
    width: 24px;
    border-radius: 4px;
    background: #009688;
}

/* ===== 左侧产品分类树（浮在 banner 上） ===== */
.uc-hero-sider {
    position: absolute;
    left: 0;
    top: 0;
    width: 230px;
    height: 100%;
    min-height: 440px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px 0 0 12px;
    box-shadow: 4px 0 16px rgba(15, 23, 42, 0.08);
    z-index: 20;
    display: flex;
    flex-direction: column;
}

.uc-sider-head {
    flex-shrink: 0;
    padding: 16px 18px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #1F293B 0%, #0F172A 100%);
    letter-spacing: 0.5px;
}

.uc-sider-tree {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    flex: 1;
    overflow: hidden;
}

.uc-sider-item {
    position: static;
}

.uc-sider-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    color: #374151;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.18s;
    border-left: 3px solid transparent;
    z-index: 21;
}

.uc-sider-link:hover,
.uc-sider-item:hover .uc-sider-link {
    background: #F0FDFA;
    color: #0F766E;
    border-left-color: #009688;
}

.uc-sider-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.uc-sider-arrow {
    color: #9CA3AF;
    font-size: 14px;
    font-style: normal;
}

/* ===== 右侧弹出产品面板 ===== */
.uc-sider-sub {
    position: absolute;
    left: 230px;
    top: 0;
    width: 660px;
    height: 100%;
    margin: 0;
    padding: 22px 24px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 0 12px 12px 0;
    box-shadow: 8px 0 28px rgba(15, 23, 42, 0.12);
    z-index: 19;
    display: none;
    overflow-y: auto;
}

.uc-sider-sub::before {
    content: attr(data-title);
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 2px solid #009688;
}

.uc-sider-item:hover .uc-sider-sub {
    display: block;
}

.uc-sider-products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.uc-sider-product {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: #1F293B;
    padding: 12px 10px;
    border: 1px solid #EBEDF0;
    border-radius: 10px;
    background: #fff;
    transition: all 0.2s;
}

.uc-sider-product:hover {
    border-color: #009688;
    box-shadow: 0 8px 22px rgba(0, 150, 136, 0.12);
    transform: translateY(-3px);
}

.uc-sider-pic {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #F8FAFC;
    margin-bottom: 10px;
}

.uc-sider-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.uc-sider-pname {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== 特性面板 ===== */
.uc-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 16px;
    background: #fff;
    padding: 18px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.uc-feat-item {
    padding: 10px;
    border-radius: 8px;
    transition: background 0.18s;
}

.uc-feat-item:hover {
    background: #F0FDFA;
}

.uc-feat-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.uc-feat-desc {
    font-size: 12px;
    color: #6B7280;
    line-height: 1.5;
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
    .uc-banner { height: 340px; }
    .uc-banner-prev { left: 20px; }
    .uc-hero-sider { width: 200px; min-height: 340px; }
    .uc-sider-sub { left: 200px; width: 480px; }
    .uc-sider-products { grid-template-columns: repeat(3, 1fr); }
    .uc-features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .uc-hero { padding: 10px 0 18px; }
    .uc-hero-inner {
        min-height: auto;
        border-radius: 0;
    }
    .uc-banner { height: 220px; }
    .uc-hero-sider {
        position: relative;
        width: 100%;
        height: auto;
        min-height: auto;
        border-radius: 10px;
        margin-bottom: 10px;
    }
    .uc-sider-tree { display: flex; flex-wrap: wrap; padding: 8px; }
    .uc-sider-item { flex: 0 0 50%; }
    .uc-sider-sub {
        display: none;
        position: static;
        width: 100%;
        height: auto;
        box-shadow: none;
        padding: 12px;
    }
    .uc-sider-product { flex-direction: row; text-align: left; }
    .uc-sider-pic { width: 50px; height: 50px; margin: 0 12px 0 0; flex-shrink: 0; }
    .uc-sider-products { grid-template-columns: 1fr; }
    .uc-features { grid-template-columns: 1fr; gap: 6px; padding: 12px; }
}

/* ============================================================
   系统特性板块：白底卡片网格
   图标类名(fa-*)不变，仅调整卡片布局与描述
   ============================================================ */
.home-texin .home-texin-grid {
    margin: 0 -8px;
}
.home-texin .home-texin-grid > li {
    padding: 8px;
}
.home-texin .home-texin-grid > li > a {
    display: block;
    height: 100%;
    padding: 34px 20px;
    background: #ffffff;
    border: 1px solid #EEF1F4;
    border-radius: 12px;
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.home-texin .home-texin-grid > li > a:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(0, 150, 136, .14);
    border-color: #009688;
}
/* 图标保持原有 fa-* 渲染(60px)，仅统一绿色调 */
.home-texin .home-texin-grid > li > a > i.fa {
    color: #009688;
}
.home-texin .home-texin-grid > li > a .t {
    color: #1F293B;
    font-weight: 600;
}
.home-texin .home-texin-grid > li > a .desc {
    color: #6B7280;
    line-height: 1.7;
    margin-top: 6px;
}
