/* 绿力质保激活平台 - 查询页（4 种状态：正品未激活 / 激活弹层 / 激活成功 / 非正品） */

body {
    background-color: #e9e9e9;
}

#html-container {
    font-family: "Source Han Sans CN", "Microsoft YaHei", "PingFang SC", sans-serif;
}

/* ========== 页面容器：手机端 H5，桌面端最大宽度 750px ========== */
#html-container .warranty-page {
    max-width: 750px;
    margin: 0 auto;
    min-height: 100vh;
    background-color: #f3f3f3;
    position: relative;
    padding-bottom: 96px;
    box-sizing: border-box;
}

/* ========== 头部横幅 ========== */
#html-container .warranty-hero {
    position: relative;
    height: 265px;
    background: url("https://omo-oss-image.thefastimg.com/portal-saas/pg2024070909504719212/cms/image/9aa05f6d-1707-4706-9f32-5ef0eddf4136.jpg?d=1790040190772") center top / cover no-repeat #075a61;
}

#html-container .warranty-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 154px;
    background: linear-gradient(180deg, rgba(250, 249, 246, 0) 26%, rgba(250, 249, 246, 0.41) 55%, rgba(250, 249, 246, 1) 81%);
    pointer-events: none;
}

#html-container .warranty-hero-logo {
    position: absolute;
    top: 9px;
    right: 19px;
    width: 60px;
    height: 33px;
    z-index: 1;
}

#html-container .warranty-hero-title {
    position: absolute;
    left: 28px;
    top: 49px;
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 20px;
    color: #ffffff;
    z-index: 1;
}

#html-container .warranty-hero-sub {
    position: absolute;
    left: 28px;
    top: 86px;
    width: 280px;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #ffffff;
    z-index: 1;
}

/* ========== 查询结果卡片 ========== */
#html-container .warranty-card {
    position: relative;
    margin: -111px 12px 0;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 7.3px rgba(0, 0, 0, 0.1);
    padding: 28px 12px 24px;
    box-sizing: border-box;
}

#html-container .warranty-card-title {
    margin: 0 4px 24px;
    font-size: 16px;
    font-weight: 400;
    line-height: 23px;
    color: #000000;
}

#html-container .warranty-card-title-bar {
    display: inline-block;
    width: 6px;
    height: 16px;
    margin: 0 6px 0 4px;
    background-color: #075a61;
    border-radius: 10px;
    vertical-align: -2px;
}

/* 正品印章 */
#html-container .warranty-badge {
    position: absolute;
    top: -9px;
    right: 20px;
    width: 60px;
    height: 60px;
}

/* 信息行 */
#html-container .warranty-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    font-size: 14px;
    line-height: 18px;
}

#html-container .warranty-info-row + .warranty-info-row {
    border-top: 1px solid #eaeaea;
}

#html-container .warranty-info-label {
    color: #000000;
    flex-shrink: 0;
}

#html-container .warranty-info-value {
    color: #444444;
    text-align: right;
    word-break: break-all;
}

/* 质保延长记录 */
#html-container .warranty-logs-card {
    margin: 12px 12px 0;
    padding-bottom: 12px;
}

#html-container .warranty-log-item {
    padding: 12px;
    border-top: 1px solid #eaeaea;
    font-size: 13px;
    line-height: 1.6;
    color: #444444;
}

#html-container .warranty-log-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

#html-container .warranty-log-type {
    font-size: 14px;
    color: #000000;
}

#html-container .warranty-log-value {
    color: #02905e;
    font-weight: 700;
}

#html-container .warranty-log-row {
    word-break: break-all;
}

#html-container .warranty-log-time {
    margin-top: 4px;
    color: #898a92;
    font-size: 12px;
}

/* 非正品空状态 */
#html-container .warranty-empty {
    padding: 60px 12px 66px;
    text-align: center;
}

#html-container .warranty-empty-icon {
    width: 100px;
    height: 100px;
}

#html-container .warranty-empty-text {
    margin: 18px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: #bbbbbb;
    white-space: pre-line;
}

/* ========== 底部主操作按钮 ========== */
#html-container .warranty-action {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100%;
    max-width: 750px;
    padding: 12px 12px 18px;
    box-sizing: border-box;
    z-index: 10;
}

#html-container .warranty-action-btn {
    display: block;
    width: 100%;
    height: 48px;
    line-height: 48px;
    text-align: center;
    border: none;
    border-radius: 24px;
    background-color: #075a61;
    color: #ffffff;
    font-size: 16px;
    font-family: inherit;
    cursor: pointer;
}

#html-container .warranty-action-btn.disabled,
#html-container .warranty-action-btn:disabled {
    background-color: #bbbbbb;
    cursor: not-allowed;
}

/* ========== 产品激活弹层 ========== */
#html-container .warranty-sheet-mask {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3.75px);
    -webkit-backdrop-filter: blur(3.75px);
    z-index: 100;
    display: none;
}

#html-container .warranty-sheet-mask.show {
    display: block;
}

#html-container .warranty-sheet {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100%;
    max-width: 750px;
    background-color: #ffffff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 0 7.3px rgba(0, 0, 0, 0.1);
    padding: 18px 12px 31px;
    box-sizing: border-box;
    z-index: 101;
    display: none;
}

#html-container .warranty-sheet.show {
    display: block;
}

#html-container .warranty-sheet-title {
    margin: 0 0 19px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
    color: #000000;
}

#html-container .warranty-field {
    margin-bottom: 17px;
}

#html-container .warranty-field-label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
    line-height: 18px;
    color: #1a1b23;
}

#html-container .warranty-field-input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: none;
    border-radius: 8px;
    background-color: #f5f5f5;
    outline: none;
    font-size: 14px;
    font-family: inherit;
    color: #1a1b23;
    box-sizing: border-box;
}

#html-container .warranty-field-input::placeholder {
    color: #898a92;
}

#html-container .warranty-sheet-btn {
    display: block;
    width: 100%;
    height: 48px;
    margin-top: 27px;
    border: none;
    border-radius: 24px;
    background-color: #075a61;
    color: #ffffff;
    font-size: 16px;
    font-family: inherit;
    cursor: pointer;
}

/* ========== 轻提示 ========== */
#html-container .warranty-toast {
    position: fixed;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 80%;
    padding: 10px 20px;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    z-index: 200;
    display: none;
}


/* ========== 质保卡查询入口卡片 ========== */
#html-container .warranty-search-card {
    padding: 28px 26px 50px 16px;
}

#html-container .warranty-search-title {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 23px;
    color: #000000;
}

#html-container .warranty-search-row {
    display: flex;
    margin-top: 26px;
}

#html-container .warranty-search-input {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 12px;
    border: none;
    outline: none;
    background-color: #f5f5f5;
    border-radius: 8px 0 0 8px;
    font-family: inherit;
    font-size: 14px;
    line-height: 22px;
    color: #000000;
    box-sizing: border-box;
}

#html-container .warranty-search-input::placeholder {
    color: #898a92;
}

#html-container .warranty-search-btn {
    flex: 0 0 auto;
    width: 86px;
    height: 44px;
    padding: 0;
    border: none;
    outline: none;
    background-color: #075a61;
    border-radius: 0 8px 8px 0;
    font-family: inherit;
    font-size: 16px;
    line-height: 44px;
    color: #ffffff;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
}

#html-container .warranty-search-btn:active {
    opacity: 0.85;
}


#html-container .warranty-scan-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    height: 44px;
    margin: 16px auto 0;
    padding: 0;
    border: 1px solid #075a61;
    background-color: #ffffff;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    line-height: 1;
    color: #075a61;
    cursor: pointer;
    outline: none;
    box-sizing: border-box;
}

#html-container .warranty-scan-icon {
    width: 20px;
    height: 20px;
    margin-right: 6px;
}

#html-container .warranty-scan-btn:active {
    background-color: #f5f5f5;
}
