/* =========================
   首页专属样式
   本版调整：
   1. 首页 banner 下方入口由 8 个改为 6 个
   2. 6 个入口采用 3 列 × 2 行均匀分布
   3. 去掉“发票查询”“发票台账管理”
   4. “发票拆分”入口由后端指向 PDF发票按页拆分导入页
   ========================= */

.home-page {
    width: 100%;
    max-width: none;
    margin: 0;
    min-height: calc(100vh - 52px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 6px;
    box-sizing: border-box;
}

/* =========================
   Banner
   ========================= */
.home-banner {
    width: 100%;
}

.home-banner-inner {
    width: 100%;
    background: #ffffff;
    border: 1px solid #dbe5f2;
    border-radius: 8px;
    padding: 22px 24px 18px;
    text-align: center;
    box-sizing: border-box;
}

.home-banner-title {
    margin: 0;
    font-size: 28px;
    line-height: 1.25;
    font-weight: 800;
    color: #111111;
}

.home-banner-subtitle {
    margin: 10px 0 0;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 700;
    color: #222222;
}

.home-banner-stats {
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 700;
    color: #222222;
}

.stats-prefix {
    color: #222222;
    font-weight: 700;
}

.stats-sep {
    color: #555555;
    margin: 0 1px;
}

.stats-highlight {
    font-weight: 800;
    font-size: 22px;
    display: inline-block;
    vertical-align: middle;
    margin: 0 2px;
}

.stats-gold {
    color: #f2b300;
}

.stats-orange {
    color: #f08a24;
}

.stats-green {
    color: #14a44d;
}

/* =========================
   功能入口区
   ========================= */
.home-feature-section {
    width: 100%;
    min-height: 520px;
    padding: 2px 0 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-feature-stage {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10px;
    box-sizing: border-box;
}

.home-feature-intro {
    text-align: center;
    margin-bottom: 26px;
}

.home-feature-title-line {
    font-size: 20px;
    line-height: 1.45;
    font-weight: 800;
    color: #1b1b1b;
}

.home-feature-sub-line {
    font-size: 17px;
    line-height: 1.55;
    font-weight: 700;
    color: #1b1b1b;
}

.home-feature-grid-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 6 个入口：3列 × 2行，均匀分布 */
.home-feature-grid {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    grid-auto-rows: 172px;
    gap: 34px 42px;
    align-content: center;
    justify-content: stretch;
}

.home-feature-card {
    min-height: 172px;
    background: #ffffff;
    border: 1px solid #dbe5f2;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #111111;
    box-sizing: border-box;
    transition: all .18s ease;
    box-shadow: 0 2px 10px rgba(50, 80, 130, 0.04);
    padding: 14px;
}

.home-feature-card:hover {
    transform: translateY(-2px);
    border-color: #b9cae3;
    box-shadow: 0 10px 24px rgba(50, 80, 130, 0.10);
    background: #fcfdff;
}

.home-feature-card-title {
    font-size: 24px;
    line-height: 1.4;
    font-weight: 800;
    padding: 0 10px;
    word-break: break-word;
}

/* 6 个入口文字色 */
.home-feature-grid .home-feature-card:nth-child(1) .home-feature-card-title {
    color: #7a3db8;
}

.home-feature-grid .home-feature-card:nth-child(2) .home-feature-card-title {
    color: #0f766e;
}

.home-feature-grid .home-feature-card:nth-child(3) .home-feature-card-title {
    color: #d97706;
}

.home-feature-grid .home-feature-card:nth-child(4) .home-feature-card-title {
    color: #2563eb;
}

.home-feature-grid .home-feature-card:nth-child(5) .home-feature-card-title {
    color: #c2410c;
}

.home-feature-grid .home-feature-card:nth-child(6) .home-feature-card-title {
    color: #be123c;
}

/* =========================
   技术服务区
   ========================= */
.home-service-section {
    width: 100%;
    min-height: 132px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    box-sizing: border-box;
    padding-top: 0;
    margin-top: auto;
}

.home-service-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    min-height: 132px;
    padding-left: 10px;
    box-sizing: border-box;
}

.home-service-title {
    font-size: 14px;
    line-height: 1.45;
    color: #222222;
    margin-bottom: 8px;
}

.home-service-qr-wrap {
    width: 104px;
}

.home-service-qr-img,
.home-wechat-popover-qr {
    width: 104px;
    height: 104px;
    object-fit: contain;
    display: block;
    background: #ffffff;
    border: 1px solid #e3e8ef;
}

.home-service-qr-placeholder,
.home-wechat-popover-placeholder {
    width: 104px;
    height: 104px;
    background: #ffffff;
    border: 1px dashed #cfd9e6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a98ab;
    font-size: 12px;
    box-sizing: border-box;
}

.home-service-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    min-height: 132px;
    position: relative;
    padding-right: 10px;
    box-sizing: border-box;
}

.home-wechat-float {
    position: relative;
    display: inline-flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.home-wechat-trigger {
    width: 48px;
    height: 48px;
    border-radius: 0;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
    overflow: hidden;
}

.home-wechat-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-wechat-icon-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #20c05c;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
}

.home-wechat-popover {
    position: absolute;
    right: 58px;
    bottom: 0;
    width: 156px;
    background: #ffffff;
    border: 1px solid #dbe5f2;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
    padding: 12px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all .18s ease;
    z-index: 5;
}

.home-wechat-float:hover .home-wechat-popover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.home-wechat-popover-title {
    font-size: 14px;
    font-weight: 800;
    color: #222222;
    margin-bottom: 5px;
    text-align: center;
}

.home-wechat-popover-desc {
    font-size: 12px;
    line-height: 1.45;
    color: #666666;
    margin-bottom: 8px;
    text-align: center;
}

.home-wechat-popover .home-wechat-popover-qr,
.home-wechat-popover .home-wechat-popover-placeholder {
    margin: 0 auto;
}

/* =========================
   Footer
   ========================= */
.home-footer-section {
    width: 100%;
    background: #f7f9fc;
    border: 1px solid #dbe5f2;
    border-radius: 10px;
    padding: 14px 16px 12px;
    box-sizing: border-box;
    text-align: center;
    margin-top: 6px;
}

.home-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    font-size: 13px;
    color: #333333;
}

.home-footer-links a {
    color: #222222;
    position: relative;
    padding: 0 8px;
}

.home-footer-links a:not(:last-child)::after {
    content: "|";
    position: absolute;
    right: -2px;
    top: 0;
    color: #666666;
}

.home-footer-copy {
    margin-top: 8px;
    font-size: 12px;
    color: #444444;
    line-height: 1.55;
}

/* =========================
   响应式
   ========================= */
@media (max-width: 1400px) {
    .home-feature-stage {
        max-width: 1080px;
        min-height: 500px;
    }

    .home-feature-grid {
        max-width: 1020px;
        grid-template-columns: repeat(3, minmax(190px, 1fr));
        grid-auto-rows: 160px;
        row-gap: 28px;
        column-gap: 36px;
    }

    .home-feature-card {
        min-height: 160px;
    }

    .home-feature-card-title {
        font-size: 22px;
    }
}

@media (max-width: 1180px) {
    .home-banner-title {
        font-size: 24px;
    }

    .home-banner-subtitle {
        font-size: 15px;
    }

    .home-banner-stats {
        font-size: 15px;
    }

    .stats-highlight {
        font-size: 20px;
    }

    .home-feature-section {
        min-height: auto;
    }

    .home-feature-stage {
        min-height: auto;
        max-width: 860px;
        padding: 0;
    }

    .home-feature-grid {
        grid-template-columns: repeat(2, minmax(240px, 1fr));
        max-width: 760px;
        grid-auto-rows: 150px;
        row-gap: 24px;
        column-gap: 46px;
    }

    .home-feature-card {
        min-height: 150px;
    }

    .home-feature-card-title {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .home-page {
        gap: 14px;
        min-height: auto;
    }

    .home-banner-inner {
        padding: 18px 14px 16px;
    }

    .home-banner-title {
        font-size: 22px;
    }

    .home-banner-subtitle {
        font-size: 14px;
        margin-top: 8px;
    }

    .home-banner-stats {
        margin-top: 12px;
        font-size: 14px;
        line-height: 1.8;
    }

    .stats-highlight {
        font-size: 20px;
    }

    .home-feature-stage {
        min-height: auto;
        padding: 0;
    }

    .home-feature-intro {
        margin-bottom: 18px;
    }

    .home-feature-title-line {
        font-size: 16px;
    }

    .home-feature-sub-line {
        font-size: 14px;
    }

    .home-feature-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        grid-auto-rows: 112px;
        gap: 16px;
    }

    .home-feature-card {
        min-height: 112px;
    }

    .home-feature-card-title {
        font-size: 18px;
    }

    .home-service-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        min-height: auto;
        margin-top: 0;
    }

    .home-service-left,
    .home-service-right {
        min-height: auto;
        padding-left: 0;
        padding-right: 0;
    }

    .home-service-right {
        width: 100%;
        justify-content: flex-start;
    }

    .home-wechat-popover {
        right: auto;
        left: 56px;
        bottom: -8px;
    }

    .home-footer-section {
        padding: 14px 10px 12px;
    }

    .home-footer-links {
        line-height: 1.9;
    }
}