html,
body {
    width: 100%;
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #f4f4f4;
    font-family: "Arial", "Microsoft Yahei", sans-serif;
    font-weight: 400;
    margin: 0;
}

a {
    text-decoration: none;
}

p {
    margin: 0;
}

.home-page {
    min-height: 100vh;
    padding: 3px 0;
}

.nav-card {
    width: 430px;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border: 2px solid #00c829;
    border-radius: 3px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.hero-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;
    padding: 0 6px 0 2px;
    background: #00c514;
}

.hero-logo {
    display: block;
    width: auto;
    max-width: calc(100% - 88px);
    height: 58px;
}

.hero-stamp {
    display: block;
    width: auto;
    height: 55px;
}

.main-poster {
    display: block;
    width: 100%;
    height: auto;
}

.dot {
    width: 8px;
    height: 8px;
    margin: 2px auto 4px;
    border-radius: 50%;
    background: #807f7b;
}

.date-bar {
    padding: 5px 4px 6px;
    border-radius: 3px;
    background: #00c514;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
}

.notice {
    display: flex;
    align-items: center;
    min-height: 39px;
    padding: 0 17px;
    border-top: 1px solid #8cff00;
    background: linear-gradient(#ffff00 0%, #ffff57 60%, #f5ff73 100%);
    font-size: 19px;
    font-weight: 900;
    line-height: 1.2;
}

.notice-blue {
    color: #073dff;
}

.notice-red {
    gap: 6px;
    color: #ff1111;
    white-space: nowrap;
}

.notice-red span {
    color: #111;
}

.notice-red em {
    color: #ff1111;
    font-style: normal;
}

.kj1-panel {
    padding: 4px 8px 0;
    border-top: 3px solid #ff7890;
    background: #fff;
}

.kj1-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 5px;
}

.kj1-tabs button {
    flex: 1;
    height: 26px;
    border: 0;
    border-radius: 4px;
    background: #e6e6e6;
    color: #111;
    font-family: inherit;
    font-size: 15px;
    line-height: 26px;
    cursor: pointer;
}

.kj1-tabs button.active {
    background: #19c51f;
    color: #fff;
}

.kj1-panel iframe {
    display: block;
    width: 100%;
    height: 178px;
    border: 0;
    overflow: hidden;
}

.promo-panel {
    padding: 12px 8px 11px;
    border-top: 1px solid #e7e7e7;
    background: #000;
    color: #fff;
    text-align: center;
}

.promo-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 16px;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}

.promo-row a {
    display: inline-block;
    padding: 5px 7px;
    border-radius: 9px;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}

.domain-red {
    background: #f00;
    color: #ffff00;
}

.domain-yellow {
    background: #ffff00;
    color: #f00;
}

.text-pink {
    color: #ff00ff;
}

.text-yellow {
    color: #ffff00;
}

.text-red {
    color: #ff0000;
}

.text-green {
    color: #00ff48;
}

.promo-panel p {
    margin: 5px 0 28px;
    color: #fff;
    font-size: 16px;
    line-height: 1.2;
}

.promo-panel button {
    min-width: 118px;
    height: 36px;
    border: 0;
    border-radius: 9px;
    background: #dfe7ef;
    color: #111;
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
}

.promo-banner {
    display: block;
    width: 100%;
    height: auto;
    border-top: 4px solid #fff;
}

.recommend-panel {
    margin: 4px 0 0;
    padding: 10px 10px 12px;
    border: 1px solid #91b7ff;
    border-radius: 14px;
    background: radial-gradient(circle at 57% 5%, rgba(255, 255, 255, 0.38) 0 15px, transparent 16px), linear-gradient(135deg, #c9d9ff 0%, #eaf3ff 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75);
}

.recommend-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 50px;
    margin-bottom: 6px;
}

.recommend-head strong {
    color: #12213b;
    font-size: 18px;
    font-weight: 900;
}

.recommend-refresh {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 116px;
    height: 51px;
    padding: 0 8px;
    border-radius: 10px 10px 0 0;
    background: #3c6cf2;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}

.recommend-refresh em {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #ff5b00;
    font-style: normal;
    font-weight: 900;
}

.recommend-refresh em b,
.recommend-refresh em i {
    display: block;
    height: 23px;
    line-height: 23px;
    text-align: center;
}

.recommend-refresh em b {
    width: 17px;
    border-radius: 2px;
    background: #fff3df;
    color: #ff5b00;
}

.recommend-refresh em i {
    width: 6px;
    color: #fff;
    font-style: normal;
}

.recommend-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 11px;
    padding: 11px 12px 16px;
    border-radius: 7px;
    background: #fff;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.recommend-grid.is-refreshing {
    opacity: 0.35;
    transform: scale(0.97);
}

.recommend-grid.is-refreshed a {
    animation: recommendPop 0.42s ease both;
}

.recommend-grid.is-refreshed a:nth-child(2n) {
    animation-delay: 0.04s;
}

.recommend-grid.is-refreshed a:nth-child(3n) {
    animation-delay: 0.08s;
}

.recommend-grid a,
.recommend-grid img {
    display: block;
}

.recommend-grid a {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
}

.recommend-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
}

.quick-site-panel {
    margin-top: 4px;
    padding: 0 8px 9px;
    border: 1px solid #06c929;
    border-radius: 4px;
    background: #fff;
}

.quick-site-title {
    margin: 0 -8px 8px;
    padding: 5px 4px;
    border-bottom: 1px solid #08bb22;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(#10d935 0%, #ffffff 100%);
    color: #111;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.15;
    text-align: center;
}

.quick-site-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px 9px;
}

.quick-site-grid a {
    display: block;
    padding: 8px 2px;
    border-radius: 4px;
    background: #00b928;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.35);
}

.custom-plan-panel {
    margin-top: 4px;
    border: 2px solid #00c829;
    border-radius: 3px;
    overflow: hidden;
    background: #fff3c4;
}

.custom-plan-title {
    padding: 5px 6px;
    border-bottom: 1px solid currentColor;
    background: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
    color: #111;
    font-weight: 900;
    line-height: 1.2;
}

.custom-plan-image {
    display: block;
    width: 100%;
    height: auto;
}

.custom-plan-content {
    padding: 8px 10px;
    color: #ff1111;
    font-weight: 900;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
}

.plan-panel {
    margin-top: 4px;
    border: 2px solid #00c829;
    border-radius: 3px;
    overflow: hidden;
    background: #fff7d7;
}

.plan-title {
    padding: 4px 4px 5px;
    border-bottom: 2px solid #00c829;
    background: linear-gradient(#00f23a 0%, #baffbe 50%, #fff 100%);
    color: #111;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.05;
    text-align: center;
}

.plan-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.plan-table td {
    border: 1px solid #00c829;
    background: #fff3c4;
    font-weight: 900;
    line-height: 1.1;
    vertical-align: middle;
}

.plan-issue {
    width: 26%;
    padding: 4px 2px;
    color: #111;
    font-size: 18px;
    text-align: center;
    white-space: nowrap;
}

.plan-content {
    padding: 4px 3px;
    color: #ff1111;
    font-size: 24px;
    letter-spacing: 1px;
    line-height: 1.12;
    text-align: center;
    word-break: break-all;
}

.plan-content span {
    display: inline-block;
}

.plan-content .hit-zodiac {
    background: #ffff00;
}

.plan-result {
    width: 17%;
    padding: 4px 2px;
    color: #111;
    font-size: 18px;
    text-align: center;
    white-space: nowrap;
}

.plan-pick-row td {
    padding: 3px 6px;
    color: #ff1111;
    font-size: 17px;
    line-height: 1.15;
    text-align: center;
    background: #fff3c4;
}

.plan-pick-row span {
    display: inline-block;
    padding: 1px 8px;
    border: 2px solid #ff5a78;
    border-radius: 3px;
    color: #ff1111;
    letter-spacing: 1px;
}

.plan-disclaimer {
    padding: 8px 36px 7px;
    background: #00c81f;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.45;
    text-align: center;
}

.plan-disclaimer p {
    margin: 0;
}

.plan-disclaimer strong {
    display: block;
    color: #fff;
}

.plan-disclaimer i {
    display: block;
    height: 1px;
    margin: 3px 8px 4px;
    background: #002900;
}

.health-panel {
    margin-top: 4px;
    border: 2px solid #00c829;
    border-radius: 3px;
    overflow: hidden;
    background: #fff;
}

.health-title {
    padding: 6px 8px;
    background: linear-gradient(#00d92a 0%, #009d18 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.35);
}

.health-article {
    padding: 8px 10px;
    border-top: 1px solid #c8f5c8;
    background: #fbfffb;
    color: #222;
    font-size: 14px;
    line-height: 1.6;
}

.health-article:nth-child(odd) {
    background: #f4fff4;
}

.health-article h2 {
    margin: 0 0 4px;
    color: #008c16;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.3;
}

.health-article p {
    margin: 0;
}

.health-article ul {
    margin: 0;
    padding-left: 18px;
}

.health-article li {
    margin: 2px 0;
}

@keyframes recommendPop {
    0% {
        opacity: 0;
        transform: translateY(8px) scale(0.92);
    }
    70% {
        opacity: 1;
        transform: translateY(-2px) scale(1.03);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 430px) {
    .home-page {
        padding: 0;
    }

    .nav-card {
        border-width: 1px;
    }

    .notice {
        font-size: 4.3vw;
    }

    .notice-red {
        gap: 4px;
        padding-right: 10px;
        padding-left: 10px;
        font-size: 4vw;
    }

    .hero-logo {
        max-width: calc(100% - 76px);
        height: 13.5vw;
        min-height: 52px;
    }

    .hero-stamp {
        height: 12.8vw;
        min-height: 50px;
    }

    .kj1-panel {
        padding-right: 6px;
        padding-left: 6px;
    }

    .kj1-panel iframe {
        height: 178px;
    }

    .promo-row {
        gap: 4px;
        font-size: 5.2vw;
    }

    .promo-row a {
        padding: 5px 6px;
        font-size: 5.2vw;
    }

    .promo-panel p {
        font-size: 3.8vw;
    }

    .recommend-panel {
        padding: 10px 9px 12px;
    }

    .recommend-grid {
        gap: 11px 9px;
        padding: 10px 11px 15px;
    }

    .recommend-head strong {
        font-size: 4.5vw;
    }

    .recommend-refresh {
        width: 28vw;
        min-width: 108px;
    }

    .quick-site-grid {
        gap: 7px 7px;
    }

    .quick-site-grid a {
        font-size: 4.8vw;
    }

    .plan-title {
        font-size: 4.2vw;
    }

    .plan-issue {
        width: 26%;
        font-size: 4.2vw;
    }

    .plan-content {
        font-size: 5.6vw;
        letter-spacing: 0.5px;
    }

    .plan-result {
        width: 17%;
        font-size: 4.2vw;
    }

    .plan-pick-row td {
        font-size: 4vw;
    }

    .plan-disclaimer {
        padding-right: 24px;
        padding-left: 24px;
        font-size: 3.3vw;
    }
}
