/* 一肖一码资料模块（蓝金配色） */
.lhif {
    --lhif-blue-950: #031b3a;
    --lhif-blue-900: #05285a;
    --lhif-blue-800: #073d82;
    --lhif-blue-700: #0759b5;
    --lhif-blue-600: #0874dc;
    --lhif-blue-500: #1594ff;
    --lhif-gold: #ffe45c;
    --lhif-gold-light: #fff3a8;
    --lhif-gold-deep: #e3b51c;

    box-sizing: border-box;
    width: 100%;
    padding: 6px;
    overflow: hidden;
    isolation: isolate;
    font-family: KaiTi, "STKaiti", "Microsoft YaHei", Arial, sans-serif;
    color: #fff;
    line-height: 1.5;
    text-align: left;
}

.lhif *,
.lhif *::before,
.lhif *::after {
    box-sizing: border-box;
}

.lhif-shell {
    position: relative;
    width: 100%;
    padding: 5px;
    overflow: hidden;
    border: 3px solid var(--lhif-blue-950);
    border-radius: 20px;
    background: linear-gradient(135deg, #031b3a 0%, #064c9c 48%, #118cff 78%, #e3b51c 100%);
    box-shadow: 7px 7px 0 var(--lhif-blue-950), 0 0 18px rgba(21, 148, 255, .18);
}

.lhif-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--lhif-blue-900);
    border-radius: 14px;
    background:
        radial-gradient(circle at 50% 0%, rgba(105, 189, 255, .35), transparent 32%),
        radial-gradient(circle at 100% 50%, rgba(255, 228, 92, .08), transparent 30%),
        linear-gradient(180deg, var(--lhif-blue-950) 0%, var(--lhif-blue-800) 45%, var(--lhif-blue-950) 100%);
}

.lhif-panel::before {
    content: "";
    position: absolute;
    top: -130px;
    left: 50%;
    width: 420px;
    height: 260px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(21, 148, 255, .32), transparent 68%);
    pointer-events: none;
}

.lhif-header {
    position: relative;
    z-index: 3;
    padding: 24px 14px 14px;
    text-align: center;
}

.lhif-main-title {
    margin: 0;
    color: #fff;
    font-size: clamp(32px, 5vw, 44px);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0 var(--lhif-blue-950), 0 0 8px rgba(255, 255, 255, .25), 0 0 16px rgba(21, 148, 255, .55);
}

.lhif-subtitle {
    position: relative;
    max-width: 820px;
    margin: 14px auto 0;
    padding: 10px 18px;
    border: 2px solid var(--lhif-gold-deep);
    border-radius: 10px;
    background: linear-gradient(180deg, #168cff 0%, #0759b5 52%, #053875 100%);
    box-shadow: 3px 3px 0 var(--lhif-blue-950), inset 0 1px 0 rgba(255, 255, 255, .25);
    color: #fff;
    font-size: clamp(18px, 3.2vw, 24px);
    font-weight: 900;
    letter-spacing: 2px;
    text-align: center;
}

.lhif-content {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 14px;
    padding: 14px 14px 18px;
}

.lhif-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 470px;
    padding: 20px 12px;
    border: 2px solid var(--lhif-gold-deep);
    border-radius: 12px;
    background: linear-gradient(180deg, #ffe66c 0%, #1594ff 24%, #0759b5 62%, #031b3a 100%);
    box-shadow: 4px 4px 0 var(--lhif-blue-950), inset 0 0 18px rgba(255, 255, 255, .12);
}

.lhif-side-title {
    writing-mode: vertical-rl;
    color: #fff;
    font-size: 27px;
    font-weight: 900;
    letter-spacing: 8px;
    text-shadow: 2px 2px 0 var(--lhif-blue-950), 0 0 5px rgba(255, 255, 255, .25);
}

.lhif-side-line {
    width: 42px;
    height: 2px;
    margin: 20px 0;
    background: var(--lhif-gold);
    box-shadow: 0 0 5px rgba(255, 228, 92, .65);
}

.lhif-side-small {
    writing-mode: vertical-rl;
    color: var(--lhif-gold-light);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 5px;
    text-shadow: 1px 1px 0 var(--lhif-blue-950);
}

.lhif-records {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
}

.lhif-item {
    position: relative;
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 105px;
    overflow: hidden;
    border: 2px solid var(--lhif-blue-700);
    border-radius: 12px;
    background: linear-gradient(180deg, #fffef1 0%, #e5f4ff 100%);
    box-shadow: 4px 4px 0 var(--lhif-blue-950), inset 0 0 12px rgba(21, 148, 255, .06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.lhif-item:hover {
    transform: translateY(-2px);
    box-shadow: 5px 6px 0 var(--lhif-blue-950), 0 0 14px rgba(21, 148, 255, .25);
}

.lhif-item.lhif-current {
    min-height: 125px;
}

.lhif-period {
    flex: 0 0 115px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 6px;
    border-right: 2px solid var(--lhif-gold-deep);
    background: linear-gradient(180deg, #1697ff 0%, #075bb9 48%, #042b60 100%);
    color: #fff;
    text-align: center;
}

.lhif-period small {
    color: var(--lhif-gold);
    font-size: 14px;
    font-weight: 900;
}

.lhif-period strong {
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 1.5px 1.5px 0 var(--lhif-blue-950);
    white-space: nowrap;
}

.lhif-period em {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 8px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 4px;
    background: var(--lhif-blue-950);
    color: var(--lhif-gold);
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
}

.lhif-data {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    color: var(--lhif-blue-900);
}

.lhif-data-label {
    margin-bottom: 6px;
    color: var(--lhif-blue-700);
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 1px;
}

.lhif-answer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    gap: 8px;
    text-align: center;
}

.lhif-zodiac {
    max-width: 100%;
    color: #05285a;
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 900;
    line-height: 1.25;
    white-space: nowrap;
}

/* 中奖标记：红底黄字 */
.lhif-mark {
    display: inline-block;
    padding: 2px 7px;
    border: 2px solid #ffdd38;
    border-radius: 6px;
    background: linear-gradient(180deg, #f51b31 0%, #d90016 55%, #9e0010 100%);
    color: #ffef4d;
    font-weight: 900;
    line-height: 1.15;
    text-shadow: 1px 1px 0 #83000d, 0 0 3px rgba(255, 238, 77, .45);
    box-shadow: 2px 2px 0 #74000d, 0 0 7px rgba(217, 0, 22, .25);
}

.lhif-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-width: 170px;
    min-height: 46px;
    padding: 7px 20px;
    border: 2px solid var(--lhif-blue-800);
    border-radius: 10px;
    background: linear-gradient(180deg, #fff9b9 0%, #ffe45c 48%, #e3b51c 100%);
    color: var(--lhif-blue-950);
    font-family: inherit;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 1px;
    text-align: center;
    box-shadow: 3px 3px 0 var(--lhif-blue-950), inset 0 1px 0 rgba(255, 255, 255, .8);
    cursor: pointer;
    animation: lhifPulse 1.35s ease-in-out infinite alternate;
}

@keyframes lhifPulse {
    from { transform: scale(1); }
    to { transform: scale(1.035); }
}

.lhif-hit {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 3;
    padding: 2px 8px;
    border: 1px solid var(--lhif-gold);
    border-radius: 6px;
    background: linear-gradient(180deg, #168fff, #0756aa);
    color: var(--lhif-gold);
    font-size: 11px;
    font-weight: 900;
    box-shadow: 1.5px 1.5px 0 var(--lhif-blue-950);
}

@media screen and (max-width: 640px) {
    .lhif {
        padding: 3px;
    }

    .lhif-shell {
        padding: 4px;
        border-radius: 14px;
        box-shadow: 4px 4px 0 var(--lhif-blue-950);
    }

    .lhif-header {
        padding: 16px 8px 10px;
    }

    .lhif-subtitle {
        margin-top: 9px;
        padding: 8px 10px;
        letter-spacing: 1px;
    }

    .lhif-content {
        display: block;
        padding: 8px;
    }

    .lhif-side {
        min-height: 0;
        margin-bottom: 10px;
        padding: 8px;
        flex-direction: row;
        justify-content: center;
    }

    .lhif-side-title {
        writing-mode: horizontal-tb;
        font-size: 18px;
        letter-spacing: 2px;
    }

    .lhif-side-line {
        width: 2px;
        height: 18px;
        margin: 0 14px;
    }

    .lhif-side-small {
        writing-mode: horizontal-tb;
        font-size: 15px;
        letter-spacing: 2px;
    }
}

@media screen and (max-width: 440px) {
    .lhif-item,
    .lhif-item.lhif-current {
        min-height: 104px;
    }

    .lhif-period {
        flex: 0 0 94px;
        padding: 10px 4px;
    }

    .lhif-period small {
        font-size: 12px;
    }

    .lhif-period strong {
        font-size: 19px;
    }

    .lhif-period em {
        padding: 1px 5px;
        font-size: 10px;
    }

    .lhif-data {
        padding: 8px 5px;
    }

    .lhif-data-label {
        font-size: 14px;
    }

    .lhif-zodiac {
        font-size: clamp(21px, 7vw, 27px);
    }

    .lhif-mark {
        padding: 2px 5px;
    }

    .lhif-hit {
        top: 4px;
        right: 4px;
        padding: 1px 5px;
        font-size: 9px;
    }

    .lhif-view {
        min-width: 120px;
        min-height: 36px;
        padding: 5px 9px;
        font-size: 15px;
        letter-spacing: 0;
    }
}
