@font-face {
    font-family: "rocom-home";
    src: url("../../ttf/HYWenHei-85W-1.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "rocom-skill";
    src: url("../../ttf/rocom_skill_origin.ttf") format("truetype");
    font-display: swap;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    display: inline-block;
    width: fit-content;
    min-width: 0;
    height: auto;
    min-height: 0;
    background: transparent;
    color: #ffffff;
    font-family: "rocom-home", "Microsoft YaHei", "PingFang SC", sans-serif;
}

.home-page {
    position: relative;
    width: 1000px;
    min-height: 760px;
    overflow: hidden;
    padding-bottom: 72px;
    background: #efe6d2;
}

.page-bg-img {
    position: absolute;
    inset: 0 auto auto 0;
    z-index: 0;
    width: 1000px;
    min-height: 100%;
    object-fit: cover;
    object-position: top center;
    pointer-events: none;
}

.home-top {
    position: relative;
    z-index: 1;
    height: 228px;
}

.top-bg,
.title-fg {
    position: absolute;
    left: 0;
    top: 0;
    width: 1000px;
    pointer-events: none;
}

.top-bg {
    height: 250px;
    object-fit: cover;
}

.title-fg {
    height: 210px;
    object-fit: contain;
}

.avatar-wrap {
    position: absolute;
    left: 31px;
    top: 14px;
    width: 152px;
    height: 152px;
    overflow: hidden;
    border-radius: 50%;
    filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.22));
}

.avatar-img {
    width: 152px;
    height: 152px;
    object-fit: cover;
}

.home-profile {
    position: absolute;
    left: 200px;
    top: 70px;
    right: 130px;
    text-shadow: none;
}

.home-owner {
    overflow: hidden;
    color: #ffffff;
    font-family: "rocom-skill", "rocom-home", "Microsoft YaHei", sans-serif;
    font-size: 46px;
    font-weight: 400;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-uid {
    margin-top: 11px;
    color: #ffffff;
    font-family: "rocom-skill", "rocom-home", "Microsoft YaHei", sans-serif;
    font-size: 38px;
    font-weight: 400;
    line-height: 1;
}

.update-time {
    position: absolute;
    right: 28px;
    top: 18px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.23);
    color: #ffffff;
    font-size: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.28);
}

.home-banner {
    position: relative;
    z-index: 1;
    height: 161px;
}

.banner-bg {
    position: absolute;
    inset: 0;
    width: 1000px;
    height: 161px;
}

.banner-item {
    position: absolute;
    top: 38px;
    width: 170px;
    text-align: center;
}

.banner-item-0 {
    left: 134px;
    top: 38px;
}

.banner-item-1 {
    left: 322px;
    top: 38px;
}

.banner-item-2 {
    left: 511px;
    top: 38px;
}

.banner-item-3 {
    left: 701px;
    top: 38px;
}

.banner-value {
    overflow: hidden;
    color: #000000;
    font-family: "rocom-skill", "rocom-home", "Microsoft YaHei", sans-serif;
    font-size: 42px;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-content {
    position: relative;
    z-index: 1;
    padding-top: 28px;
}

.section-block {
    margin-top: 22px;
}

.section-title {
    position: relative;
    height: 60px;
    margin-left: 48px;
}

.section-title img {
    position: absolute;
    left: 0;
    top: 0;
    width: 312px;
    height: 60px;
}

.section-title span {
    position: absolute;
    left: 66px;
    top: 10px;
    font-family: "rocom-skill", "rocom-home", "Microsoft YaHei", sans-serif;
    font-size: 28px;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.guard-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 46px 0;
    padding: 12px 18px;
    border-radius: 18px;
    background: rgba(42, 93, 16, 0.62);
    font-size: 22px;
}

.guard-row strong {
    color: #ffff00;
    font-weight: 400;
}

.guard-row em {
    font-style: normal;
    color: #ffffff;
}

.pet-grid {
    display: grid;
    grid-template-columns: repeat(2, 486px);
    justify-content: center;
    gap: 0;
    margin-top: 20px;
}

.pet-card {
    position: relative;
    width: 486px;
    height: 192px;
}

.card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}



.pet-avatar-box {
    position: absolute;
    left: 24px;
    top: 28px;
    width: 150px;
    height: 150px;
}

.pet-avatar {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

.pet-star {
    position: absolute;
    left: -3px;
    top: -30px;
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.pet-empty,
.plant-empty {
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.72);
    font-size: 22px;
}

.level-badge {
    position: absolute;
    left: 38px;
    top: 97px;
    width: 82px;
    height: 48px;
    transform: rotate(10deg);
}

.level-badge img {
    width: 74px;
    height: 39px;
}

.level-badge span {
    position: absolute;
    left: 0;
    top: 9px;
    width: 74px;
    text-align: center;
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
}

.pet-info {
    position: absolute;
    left: 166px;
    top: 36px;
    width: 286px;
}

.pet-name,
.plant-name {
    overflow: hidden;
    color: #ffff00;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pet-name {
    font-family: "rocom-skill", "rocom-home", "Microsoft YaHei", sans-serif;
    font-size: 28px;
    line-height: 1.1;
}

.pet-status,
.pet-note {
    overflow: hidden;
    color: #ffffff;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pet-status {
    margin-top: 12px;
    font-family: "rocom-skill", "rocom-home", "Microsoft YaHei", sans-serif;
    font-size: 28px;
    line-height: 1;
}

.pet-note {
    margin-top: 8px;
    font-family: "rocom-skill", "rocom-home", "Microsoft YaHei", sans-serif;
    font-size: 22px;
}

.progress-line,
.plant-progress {
    position: relative;
    overflow: hidden;
    height: 13px;
    margin-top: 10px;
    border-radius: 999px;
}

.progress-line {
    width: 270px;
}

.progress-track,
.progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 13px;
}

.progress-track {
    width: 100%;
}

.progress-bar {
    max-width: 100%;
    object-fit: cover;
    object-position: left center;
}

.plant-grid {
    display: grid;
    grid-template-columns: repeat(3, 306px);
    justify-content: center;
    gap: 0;
    margin-top: 20px;
}

.plant-card {
    position: relative;
    width: 306px;
    height: 148px;
}

.plant-icon {
    position: absolute;
    left: 17px;
    top: 19px;
    width: 105px;
    height: 105px;
    object-fit: contain;
}

.plant-info {
    position: absolute;
    left: 131px;
    top: 24px;
    width: 150px;
}

.plant-name {
    font-family: "rocom-skill", "rocom-home", "Microsoft YaHei", sans-serif;
    font-size: 25px;
    line-height: 1.1;
}

.plant-state,
.plant-time {
    color: #ffffff;
    font-family: "rocom-skill", "rocom-home", "Microsoft YaHei", sans-serif;
    font-size: 22px;
    line-height: 1;
}

.plant-state {
    margin-top: 16px;
}

.plant-time {
    font-size: 18px;
    margin-top: 8px;
}

.state-ready {
    color: #67d737;
    font-size: 35px;
}


.plant-progress {
    width: 147px;
    margin-top: 8px;
}

.empty-state {
    margin: 20px 46px 0;
    padding: 32px;
    border-radius: 18px;
    background: rgba(42, 93, 16, 0.58);
    color: #ffffff;
    text-align: center;
    font-size: 28px;
}

.home-footer {
    position: absolute;
    z-index: 1;
    left: 0;
    bottom: 15px;
    width: 1000px;
    color: rgba(255, 255, 255, 0.82);
    text-align: center;
    font-size: 18px;
    letter-spacing: 1px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.32);
}
