/* ============================================================
   丰稷智能 - 首页样式 index.css
   ============================================================ */

/* ---------- Banner 轮播 ---------- */
.banner {
    position: relative;
    height: 100vh;
    min-height: 620px;
    overflow: hidden;
}
.banner-slides { position: absolute; inset: 0; }
.banner-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
}
.banner-slide.active { opacity: 1; }

.banner-text {
    max-width: 680px;
    color: #fff;
    padding-top: 76px;
    animation: fadeUp 1s ease both;
}
.banner-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0,198,255,.18);
    border: 1px solid rgba(0,198,255,.5);
    color: var(--accent);
    border-radius: 20px;
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 24px;
}
.banner-text h1 {
    font-size: 54px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 24px;
    text-shadow: 0 2px 16px rgba(0,0,0,.3);
}
.banner-text p {
    font-size: 17px;
    line-height: 1.9;
    color: rgba(255,255,255,.88);
    margin-bottom: 36px;
}
.banner-btns { display: flex; gap: 16px; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 轮播指示点 */
.banner-dots {
    position: absolute;
    bottom: 50px; left: 0; right: 0;
    text-align: center;
    z-index: 5;
}
.banner-dots .dot {
    display: inline-block;
    width: 36px; height: 4px;
    margin: 0 5px;
    background: rgba(255,255,255,.4);
    border-radius: 2px;
    cursor: pointer;
    transition: background .3s;
}
.banner-dots .dot.active { background: var(--accent); }

/* 向下滚动提示 */
.banner-scroll {
    position: absolute;
    bottom: 18px; left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.7);
    font-size: 28px;
    animation: bounce 2s infinite;
    z-index: 5;
}
@keyframes bounce {
    0%,100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- 数据统计 ---------- */
.stats {
    margin-top: -80px;
    position: relative;
    z-index: 10;
    padding: 0 0 20px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(8,28,68,.12);
    padding: 44px 0;
    text-align: center;
}
.stat-item { position: relative; }
.stat-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0; top: 15%;
    height: 70%;
    width: 1px;
    background: var(--border);
}
.stat-item .num {
    font-size: 46px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}
.stat-item .plus {
    font-size: 26px;
    color: var(--accent);
    font-weight: 700;
    margin-left: 2px;
}
.stat-item p {
    margin-top: 10px;
    color: var(--text-sub);
    font-size: 15px;
}

/* ---------- 产品中心 ---------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.product-card {
    background: #fff;
    border-radius: 10px;
    padding: 42px 32px;
    border: 1px solid var(--border);
    transition: all .35s;
    position: relative;
    overflow: hidden;
}
.product-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(20,102,192,.16);
    border-color: transparent;
}
.product-card:hover::before { transform: scaleX(1); }
.product-card h3 {
    font-size: 20px;
    color: var(--text-main);
    margin-bottom: 14px;
    padding-left: 14px;
    position: relative;
}
.product-card h3::before {
    content: "";
    position: absolute;
    left: 0; top: 4px; bottom: 4px;
    width: 4px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 2px;
}
.product-card p {
    color: var(--text-sub);
    font-size: 14px;
    line-height: 1.85;
    margin-bottom: 20px;
}
.product-more {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
}

/* ---------- 解决方案 ---------- */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.solution-card {
    height: 420px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.sol-1 { background-image: url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&w=800&q=80'); }
.sol-2 { background-image: url('https://images.unsplash.com/photo-1502602898657-3e91760cbb34?auto=format&fit=crop&w=800&q=80'); }
.sol-3 { background-image: url('https://images.unsplash.com/photo-1551632811-561732d1e306?auto=format&fit=crop&w=800&q=80'); }

.sol-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8,28,68,.45) 0%, rgba(8,28,68,.92) 100%);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    transition: background .35s;
}
.solution-card:hover .sol-mask {
    background: linear-gradient(180deg, rgba(20,102,192,.5) 0%, rgba(8,28,68,.95) 100%);
}
.sol-mask h3 {
    font-size: 24px;
    margin-bottom: 14px;
}
.sol-mask > p {
    font-size: 14px;
    color: rgba(255,255,255,.85);
    line-height: 1.85;
    margin-bottom: 18px;
}
.sol-mask ul {
    margin-bottom: 22px;
}
.sol-mask ul li {
    font-size: 14px;
    color: rgba(255,255,255,.78);
    padding: 5px 0 5px 18px;
    position: relative;
}
.sol-mask ul li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent);
}
.sol-link {
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
}

/* ---------- 案例展示 ---------- */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.case-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(8,28,68,.06);
    transition: all .35s;
}
.case-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(8,28,68,.14);
}
.case-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.case-tag {
    position: absolute;
    top: 16px; left: 16px;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
}
.case-body { padding: 24px 26px 30px; }
.case-body h3 {
    font-size: 18px;
    color: var(--text-main);
    margin-bottom: 10px;
}
.case-body p {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.8;
}

/* ---------- 关于我们 ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-media { position: relative; }
.about-img {
    height: 440px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
}
.about-badge {
    position: absolute;
    right: -20px; bottom: -20px;
    width: 150px; height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 34px rgba(20,102,192,.36);
}
.about-badge strong {
    font-size: 46px;
    line-height: 1;
}
.about-badge strong span { font-size: 18px; }
.about-badge em {
    font-style: normal;
    font-size: 14px;
    margin-top: 6px;
    color: rgba(255,255,255,.9);
}

.about-text h2 { font-size: 34px; color: var(--text-main); margin: 8px 0 24px; }
.about-text h2::after { display: none; }
.about-lead {
    font-size: 19px;
    color: var(--text-main);
    font-weight: 600;
    margin-bottom: 18px !important;
    line-height: 1.7;
}
.about-text p {
    color: var(--text-sub);
    line-height: 1.95;
    margin-bottom: 16px;
}
.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 28px 0 32px;
}
.about-feat {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--text-main);
}
.about-feat span { color: var(--accent); font-size: 18px; }

/* ---------- 新闻资讯 ---------- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.news-card {
    background: #fff;
    border-radius: 10px;
    padding: 28px;
    border: 1px solid var(--border);
    display: flex;
    gap: 22px;
    transition: all .35s;
}
.news-card:hover {
    border-color: transparent;
    box-shadow: 0 16px 36px rgba(8,28,68,.12);
    transform: translateY(-4px);
}
.news-date {
    flex-shrink: 0;
    text-align: center;
    width: 70px;
    border-right: 1px solid var(--border);
    padding-right: 18px;
}
.news-date strong {
    display: block;
    font-size: 34px;
    color: var(--primary);
    line-height: 1;
}
.news-date span {
    display: block;
    font-size: 13px;
    color: var(--text-sub);
    margin-top: 6px;
}
.news-body { flex: 1; }
.news-cat {
    display: inline-block;
    font-size: 12px;
    color: var(--primary);
    background: rgba(20,102,192,.1);
    padding: 2px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}
.news-body h3 {
    font-size: 17px;
    color: var(--text-main);
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-body p {
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   首页专属区块样式
   ============================================================ */

/* 「查看全部」按钮 + 区段间距 */
.section-more { text-align: center; margin-top: 50px; }
.btn-outline {
    display: inline-block;
    padding: 12px 32px;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    background: transparent;
    transition: all .28s;
}
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

/* 产品：首页3列 */
.products-grid-3 { grid-template-columns: repeat(3, 1fr) !important; }

/* ---------- 为什么选择我们 ---------- */
.why-us { background: var(--primary-deep); color: #fff; }
.why-us .section-head h2 { color: #fff; }
.why-us .section-head p { color: rgba(255,255,255,.7); }
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}
.why-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    padding: 36px 28px;
    transition: all .3s;
}
.why-card:hover {
    background: rgba(255,255,255,.1);
    transform: translateY(-6px);
    border-color: var(--accent);
}
.why-num {
    font-size: 38px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 18px;
    opacity: .85;
}
.why-card h3 { font-size: 19px; margin-bottom: 12px; color: #fff; }
.why-card p { font-size: 14px; line-height: 1.85; color: rgba(255,255,255,.7); }

/* ---------- 解决方案：首页3列 + 编号 ---------- */
.solutions-grid-3 { grid-template-columns: repeat(3, 1fr) !important; }
.solution-card .sol-idx {
    display: inline-block;
    font-size: 36px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 14px;
    opacity: .9;
}

/* ---------- 服务流程 ---------- */
.process { background: var(--bg-soft); }
.process-flow {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.process-step {
    flex: 1;
    min-width: 180px;
    max-width: 240px;
    background: #fff;
    border-radius: 10px;
    padding: 34px 22px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(8,28,68,.06);
    transition: transform .3s;
}
.process-step:hover { transform: translateY(-5px); }
.ps-icon {
    width: 60px; height: 60px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 26px;
    display: flex; align-items: center; justify-content: center;
}
.process-step h4 { font-size: 18px; color: var(--text-main); margin-bottom: 8px; }
.process-step p { font-size: 13px; color: var(--text-sub); }
.process-arrow {
    display: flex;
    align-items: center;
    font-size: 24px;
    color: var(--primary);
    opacity: .4;
}

/* ---------- 精选案例（横向大卡） ---------- */
.cases-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.case-feature-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(8,28,68,.1);
    transition: transform .35s;
}
.case-feature-card:hover { transform: translateY(-6px); }
.cfc-img { height: 240px; background-size: cover; background-position: center; }
.cfc-body { padding: 28px 30px 32px; }
.cfc-label {
    display: inline-block;
    font-size: 12px;
    color: var(--accent);
    background: rgba(0,198,255,.1);
    padding: 3px 12px;
    border-radius: 12px;
    margin-bottom: 12px;
}
.cfc-body h3 { font-size: 20px; color: var(--text-main); margin-bottom: 12px; }
.cfc-body p { font-size: 14px; color: var(--text-sub); line-height: 1.85; margin-bottom: 16px; }
.cfc-link { color: var(--primary); font-weight: 600; font-size: 14px; }

/* ---------- 新闻首页差异化布局 ---------- */
.news-home-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    align-items: start;
}
.news-feature {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(8,28,68,.1);
}
.nf-img { height: 280px; background-size: cover; background-position: center; }
.nf-body { padding: 26px 30px; background: #fff; }
.nf-body h3 { font-size: 22px; color: var(--text-main); margin: 10px 0 12px; line-height: 1.5; }
.nf-body p { font-size: 14px; color: var(--text-sub); line-height: 1.85; margin-bottom: 14px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nf-date { font-size: 13px; color: var(--text-sub); }
.news-side { display: flex; flex-direction: column; gap: 0; }
.news-side-item {
    display: flex;
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}
.news-side-item:first-child { padding-top: 0; }
.nss-date {
    flex-shrink: 0;
    text-align: center;
    width: 58px;
    border-right: 2px solid var(--bg-soft);
    padding-right: 14px;
}
.nss-date strong { display: block; font-size: 28px; color: var(--primary); line-height: 1; }
.nss-date span { display: block; font-size: 12px; color: var(--text-sub); margin-top: 4px; }
.nss-body { flex: 1; }
.nss-body h4 { font-size: 15px; color: var(--text-main); line-height: 1.5; margin-top: 4px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-cat.sm { font-size: 11px; padding: 1px 8px; }
.news-side-more {
    margin-top: 20px;
    text-align: center;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    transition: all .25s;
}
.news-side-more:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- 合作伙伴 / 服务领域 ---------- */
.partners { background: #fff; }
.partner-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}
.partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: var(--bg-soft);
    border-radius: 8px;
    padding: 28px 10px;
    text-align: center;
    font-size: 14px;
    color: var(--text-main);
    font-weight: 500;
    transition: all .3s;
}
.partner-item svg {
    width: 36px; height: 36px;
    color: var(--primary);
    transition: color .3s, transform .3s;
}
.partner-item:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-4px);
}
.partner-item:hover svg {
    color: #fff;
    transform: scale(1.1);
}
}

/* ---------- 底部 CTA ---------- */
.home-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    padding: 60px 0;
}
.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}
.cta-text h2 { color: #fff; font-size: 28px; margin-bottom: 8px; }
.cta-text p { color: rgba(255,255,255,.85); font-size: 15px; }
.btn-light {
    background: #fff;
    color: var(--primary) !important;
    padding: 14px 36px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    white-space: nowrap;
}
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.2); }

/* ---------- 响应式 ---------- */
@media (max-width: 1200px) {
    .banner-text h1 { font-size: 46px; }
    .banner-text p { font-size: 16px; }
}

@media (max-width: 1024px) {
    .products-grid, .solutions-grid, .cases-grid, .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .banner-text h1 { font-size: 40px; }
    .banner-text { max-width: 560px; }
    /* Banner：保持 slide 绝对叠加，容器用固定高度撑开 */
    .banner { height: 560px; min-height: 0; }
    .stats { margin-top: -60px; }
    /* 首页专属 */
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid-3, .solutions-grid-3 { grid-template-columns: repeat(2, 1fr) !important; }
    .cases-feature { grid-template-columns: 1fr; }
    .news-home-layout { grid-template-columns: 1fr; }
    .partner-grid { grid-template-columns: repeat(3, 1fr); }
    .process-flow { gap: 6px; }
    .process-arrow { display: none; }
    .cta-inner { justify-content: center; text-align: center; }
}

@media (max-width: 768px) {
    .products-grid, .solutions-grid, .cases-grid, .news-grid, .stats-grid {
        grid-template-columns: 1fr;
    }
    .stat-item:not(:last-child)::after { display: none; }
    .section { padding: 50px 0; }

    /* Banner */
    .banner { height: 460px; min-height: 0; }
    .banner-text h1 { font-size: 30px; line-height: 1.3; }
    .banner-text p { font-size: 14px; }
    .banner-text br { display: none; }
    .banner-tag { font-size: 12px; padding: 5px 12px; }
    .banner-btns { flex-wrap: wrap; }
    .banner-dots { bottom: 24px; }
    .banner-scroll { display: none; }

    /* 数据统计 */
    .stats-grid { padding: 32px 0; grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
    .stat-item .num { font-size: 38px; }
    .stat-item .plus { font-size: 22px; }
    .stat-item:nth-child(2)::after { display: none; }

    /* 产品 */
    .product-card { padding: 32px 24px; }
    .product-card h3 { font-size: 18px; }

    /* 解决方案 */
    .solution-card { height: 360px; }
    .sol-mask { padding: 28px 22px; }
    .sol-mask h3 { font-size: 20px; }

    /* 案例 */
    .case-img { height: 180px; }
    .case-body { padding: 20px; }

    /* 关于我们 */
    .about-img { height: 320px; }
    .about-badge { width: 110px; height: 110px; right: -10px; bottom: -10px; }
    .about-badge strong { font-size: 36px; }
    .about-features { grid-template-columns: 1fr; }
    .about-text h2 { font-size: 26px; }

    /* 新闻 */
    .news-card { padding: 22px; gap: 16px; }
    .news-body h3 { font-size: 16px; }
    /* 首页专属 768 */
    .why-grid, .products-grid-3, .solutions-grid-3 { grid-template-columns: 1fr !important; }
    .partner-grid { grid-template-columns: repeat(2, 1fr); }
    .process-step { min-width: 45%; }
    .cta-text h2 { font-size: 22px; }
    .cfc-img { height: 180px; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .stat-item:nth-child(2)::after { display: block; }
    .banner-text h1 { font-size: 26px; }
    .product-card { padding: 26px 20px; }
    .sol-mask ul li { font-size: 13px; }
    .partner-grid { grid-template-columns: 1fr; }
    .process-step { min-width: 100%; }
}


/* ============================================================
   合作伙伴 logo 墙（首页）
   ============================================================ */
.logo-wall {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}
.logo-item {
    height: 130px;
    background: #fff;
    border: 1px solid #e8edf4;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 8px;
    transition: all .3s;
    cursor: default;
    overflow: hidden;
}
.logo-item span {
    font-size: 13px;
    font-weight: 500;
    color: #6b7a8a;
    letter-spacing: .5px;
    transition: all .3s;
    text-align: center;
    line-height: 1.3;
}
.logo-item:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(20,102,192,.12);
    transform: translateY(-3px);
}
.logo-item:hover span {
    color: var(--primary);
}
.logo-item img {
    max-width: 75%;
    max-height: 56px;
    object-fit: contain;
    opacity: .85;
    transition: all .3s;
}
.logo-item:hover img {
    opacity: 1;
    transform: scale(1.06);
}
@media (max-width: 1024px) {
    .logo-wall { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
    .logo-wall { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .logo-item { height: 110px; }
    .logo-item img { max-height: 40px; }
    .logo-item span { font-size: 12px; }
}
