/* 首页推广横幅条 — 由后台「首页推广条」配置，接口 /api/index/promoNav */

/* 无数据或未加载成功时不占高度，避免出现大块空白 */
#home-promo-nav:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
}

.hpn-root {
    margin: 8px 0 10px;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    -webkit-tap-highlight-color: transparent;
}

.hpn-header,
.hpn-footer {
    box-sizing: border-box;
    padding: 8px 10px;
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
    color: #fff;
    background: linear-gradient(180deg, #283593 0%, #1a237e 55%, #0d1642 100%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hpn-header a,
.hpn-footer a {
    color: #ffeb3b;
    text-decoration: none;
}

.hpn-rows {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hpn-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    min-height: 44px;
    padding: 8px 12px;
    text-decoration: none;
    color: #ffeb3b;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(180deg, #303f9f 0%, #1a237e 50%, #0d1642 100%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 4px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 1px 2px rgba(0, 0, 0, 0.2);
}

.hpn-row:active {
    filter: brightness(1.05);
}

.hpn-row-txt {
    flex: 1;
    text-align: left;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.hpn-row-go {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.hpn-bao {
    display: inline-block;
    padding: 0 4px;
    font-size: 12px;
    line-height: 1.4;
    color: #fff;
    background: #e53935;
    border-radius: 3px;
    font-weight: 800;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.hpn-footer {
    margin-top: 6px;
    margin-bottom: 0;
    font-weight: 700;
    color: #ffeb3b;
}

.hpn-footer .hpn-footer-inner {
    color: inherit;
}
