/* 首页专用样式 */

.home-page {
    background: #faefdeff;
}

/* 顶部背景图 */
.home-header {
    position: relative;
    width: 100%;
    height: 247px;
    overflow: hidden;
}
.home-header-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 主横幅卡片 */
.home-banner {
    margin: -174px 6px 0;
    position: relative;
    z-index: 10;
}
.home-banner img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 2px solid #f9e1ae;
    display: block;
}

/* 四功能入口 */
.home-nav-grid {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    padding: 16px 20px;
    margin: 10px 6px 10px;
    position: relative;
    z-index: 10;
    background: linear-gradient(180deg, #fdf5de, #fdfdf1);
    border-radius: 10px;
    box-shadow: 0 2px 7px rgba(0,0,0,0.1);
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 25%;
    box-sizing: border-box;
    gap: 6px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.nav-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}
.nav-item span {
    font-size: 14px;
    font-weight: 500;
    color: #5e3a00;
    line-height: 1.43;
}

/* 三张横幅 */
.home-banners {
    padding: 0 6px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 10;
}
.banner-card {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.banner-card:active {
    opacity: .85;
}

/* 底部两卡片 */
.home-contact-row {
    display: flex;
    gap: 8px;
    padding: 14px 6px 0;
    position: relative;
    z-index: 10;
}
.contact-card {
    flex: 1;
    background: #fff;
    border-radius: 15px;
    padding: 6px 5px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.contact-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: #d00300;
    text-align: center;
    margin: 0 0 4px;
    line-height: 1.22;
}
.qr-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 10px;
}
.qr-border {
    width: 130px;
    height: 130px;
    background: #e6001d;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qr-img {
    width: 120px;
    height: 120px;
    background: #fff;
    display: block;
}
.contact-btns {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    width: 100%;
    padding: 0 2px;
}
.btn-action {
    flex: 1;
    height: 32px;
    background: #e6001d;
    color: #fff;
    border: none;
    border-radius: 100px;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    line-height: 32px;
    text-align: center;
}
.btn-action:active { opacity: .8; }
.btn-outline {
    flex: 1;
    height: 32px;
    background: #fce4df;
    color: #e6001d;
    border: 1px solid #e6001d;
    border-radius: 100px;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    line-height: 30px;
    text-align: center;
}
.btn-outline:active { opacity: .8; }

/* 底部导航栏 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1000;
    box-shadow: 0 -1px 4px rgba(0,0,0,.06);
}
.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    gap: 1px;
    -webkit-tap-highlight-color: transparent;
}
.bottom-nav-item img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}
.bottom-nav-item span {
    font-size: 8px;
    color: #6d6d6d;
    line-height: 1.2;
}
.bottom-nav-item.active span {
    color: #dd0200;
}

/* 弹窗内二维码 */
.qr-modal-box {
    max-width: 320px;
}
.qr-modal-img-wrap {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 3px solid #e6001d;
}
.qr-modal-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.btn-qr-action {
    display: block;
    width: 100%;
    height: 42px;
    line-height: 42px;
    background: #dd0200;
    color: #fff;
    border: none;
    border-radius: 100px;
    font-size: 15px;
    text-align: center;
    text-decoration: none;
    margin-bottom: 10px;
    font-family: inherit;
}
.btn-qr-action:active { opacity: .8; }
.btn-qr-download {
    display: block;
    width: 100%;
    height: 38px;
    line-height: 36px;
    background: #fce4df;
    color: #e6001d;
    border: 1px solid #e6001d;
    border-radius: 100px;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    font-family: inherit;
}
.btn-qr-download:active { opacity: .8; }

/* 桌面端底部导航居中 */
@media (min-width: 480px) {
    .bottom-nav {
        max-width: 393px;
        left: 50%;
        transform: translateX(-50%);
    }
}
